OSDN Git Service

2010-08-04 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-04  Richard Guenther  <rguenther@suse.de>
2
3         * tree-ssa-ccp.c (get_constant_value): New function.
4         (get_rhs_assign_op_for_ccp): Remove.
5         (valueize_op): New function.
6         (ccp_fold): Use get_constant_value and valueize_op.
7         (fold_const_aggregate_ref): Likewise.
8         (ccp_fold_stmt): Likewise.
9         (visit_assignment): Simplify.
10
11 2010-08-04  Richard Guenther  <rguenther@suse.de>
12
13         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
14         * double-int.h (double_int_ctz): Declare.
15         * double-int.c (double_int_ctz): New function.
16
17 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
18
19         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
20         Define.
21         picochip_expand_movmemhi : Expand movmem pattern.
22         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
23         Declare.
24         * config/picochip/picochip.md (movmemhi) : New pattern.
25
26 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
27
28         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
29
30 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
31
32         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
33         NEG as operand of a MULT by merging it with the other operand.
34         * combine.c (make_compound_operation): Use trunc_int_for_mode when
35         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
36         MULT.
37         * config/arm/constraints.md (M): Examine only 32 bits of a
38         HOST_WIDE_INT.
39         * config/arm/predicates.md (power_of_two_operand): Likewise.
40
41 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
42
43         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
44         non-NOTE insns.
45
46 2010-08-03  Jan Hubicka  <jh@suse.cz>
47
48         * ipa-split.c (struct split_point): Add split_part_set_retval.
49         (find_retval): Forward declare.
50         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
51         (consider_split): Compute current->split_part_set_retval.
52         (visit_bb): Do not look into return value.
53         (split_function): Handle !split_part_set_retval
54
55 2010-08-03  Martin Jambor  <mjambor@suse.cz>
56
57         * tree-sra.c (completely_scalarize_record): New parameter REF, create
58         its own access->expr intead of using build_ref_for_offset.
59
60 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
61
62         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
63         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
64         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
65         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
66         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
67         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
68         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
69         DEFAULT_SWITCH_TAKES_ARG.
70         * config/rx/rx.opt (-patch=): Remove option.
71         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
72         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
73         * doc/invoke.texi (RX Options): Remove -patch=.
74         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
75         (option_map): Remove --profile-blocks, --quiet and --silent.
76
77 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
78
79         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
80         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
81         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
82         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
83         Update calls to ix86_expand_compare and ix86_expand_branch.
84         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
85         ix86_expand_compare.
86         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
87         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
88         Make static.
89         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
90         and ix86_compare_op1.  Update calls to ix86_expand_compare.
91         (ix86_expand_int_movcc): Ditto.
92         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
93         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
94         (ix86_expand_setcc): Ditto.
95         (ix86_expand_compare): Remove prototype.
96         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
97         ix86_compare_op0 and ix86_compare_op1.  Update calls
98         to ix86_expand_branch to directly pass operands[1] and operands[2].
99         (cbranchxf4): Ditto.
100         (cbranch<MODEF:mode>4): Ditto.
101         (cbranchcc4): Ditto.
102         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
103         Update calls to ix86_expand_setcc to directly pass operands[2] and
104         operands[3].
105         (cstorexf4): Ditto.
106         (cstore<MODEF:mode>4): Ditto.
107         (cstorecc4): Ditto.
108
109 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
110
111         PR target/45063
112         * caller-save.c (save_call_clobbered_regs): Remove regs from
113         hard_regs_saved when they are set.
114
115 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
116
117         PR target/41089
118         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
119         as volatile.
120
121 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
122
123         * common.opt (ftree-loop-distribute-patterns): New.
124         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
125         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
126         at -O3.
127         * tree-data-ref.c (stores_zero_from_loop): New.
128         * tree-data-ref.h (stores_zero_from_loop): Declared.
129         * tree-loop-distribution.c (tree_loop_distribution): Call
130         stores_zero_from_loop.
131         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
132
133 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
134
135         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
136         into account.
137
138         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
139         * config/arm/arm.c (thumb1_code): New variable.
140         (arm_override_options): Set it.
141         (thumb1_final_prescan_insn): Keep track of condition code status.
142         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
143         jumps that depend on them.
144         * config/arm/arm.h (thumb1_code): Declare variable.
145         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
146         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
147         thumb1_cc_mode.
148         (CC_STATUS_INIT): New macro.
149         * config/arm/constraints.md (Pd): New constraint.
150         * config/arm/predicates.md (noov_comparison_operator): New predicate.
151         * config/arm/arm.md (is_thumb1): New define_attr.
152         (conds): Set default to "clob" when generating Thumb1 code.
153         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
154         code are set.  Use two-operand assembly syntax.
155         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
156         pattern.
157         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
158         codes are set.  Use two-operand assembly syntax.
159         (zero_extendhisi splitter): Remove constraints.
160         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
161         thumb1_movsf_insn): Set conds attribute as appropriate.
162         (cbranchsi4_insn): Use condition code status from struct
163         machine_function to determine whether the comparison can be eliminated.
164         Discourage the alternative using high registers.
165         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
166         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
167         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
168         subsi3_cbranch): Delete.
169         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
170         one subtract and one cbranch insn.
171
172         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
173         thumb2_movdf_soft_insn): Delete patterns.
174         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
175         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
176         (pool_range, neg_pool_range): Use them to define defaults.
177         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
178         and allow for TARGET_32BIT.
179
180         PR target/40457
181         * config/arm/arm.h (arm_regs_in_sequence): Declare.
182         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
183         load_multiple_sequence, store_multiple_sequence): Delete
184         declarations.
185         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
186         declarations.
187         * config/arm/ldmstm.md: New file.
188         * config/arm/arm.c (arm_regs_in_sequence): New array.
189         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
190         CHECK_REGS.  All callers changed.
191         If SAVED_ORDER is nonnull, copy the computed order into it.
192         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
193         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
194         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
195         If SAVED_ORDER is nonnull, copy the computed order into it.
196         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
197         like REGS.  Handle Thumb mode.
198         (arm_gen_load_multiple_1): New function, broken out of
199         arm_gen_load_multiple.
200         (arm_gen_store_multiple_1): New function, broken out of
201         arm_gen_store_multiple.
202         (arm_gen_multiple_op): New function, with code from
203         arm_gen_load_multiple and arm_gen_store_multiple moved here.
204         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
205         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
206         changed.
207         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
208         * config/arm/predicates.md (commutative_binary_operator): New.
209         (load_multiple_operation, store_multiple_operation): Handle more
210         variants of these patterns with different starting offsets.  Handle
211         Thumb-1.
212         * config/arm/arm.md: Include "ldmstm.md".
213         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
214         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
215         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
216         peepholes): Delete.
217         * config/arm/ldmstm.md: New file.
218         * config/arm/arm-ldmstm.ml: New file.
219
220         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
221         if statement which adds extra costs to frame-related expressions.
222
223 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
224
225         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
226
227 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
228
229         PR target/45142
230         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
231         alternative 2.
232         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
233         split V4SI operands.
234
235 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
236
237         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
238         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
239         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
240         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
241
242 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
243
244         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
245         LOCAL_INCLUDE_DIR.
246
247 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
248
249         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
250         used in the call to optab_for_tree_code.  Fix the second
251         is_widening_mult_p call.  Check that both unwidened operands
252         have the same sign.
253
254 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
255
256         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
257
258 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
259
260         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
261
262 2010-07-30  DJ Delorie  <dj@redhat.com>
263
264         * config/rx/predicates.md (rx_constshift_operand): New.
265         * config/rx/rx.md (zs_cond): New.
266         (cbranchsi4): Remove mode.
267         (*cbranchsi4_<code>): Likewise.
268         (*tstbranchsi4_<code>): New.
269         (*tstbranchsi4r_<code>): New.
270         (*tstbranchsi4m_eq): New.
271         (*tstbranchsi4m_ne): New.
272         (cbranchsf4): Remove mode.
273         (*cbranchsf4_<code>): Likewise.
274
275 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
276
277         * rtlanal.c (simplify_subreg_regno): Don't treat
278         HARD_FRAME_POINTER_REGNUM specially.
279
280 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
281
282         * common.opt (-G): Don't define option here.
283         * config/g.opt: New.
284         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
285         rs6000/powerpc and score targets.
286         * opts.c (common_handle_option): Don't handle -G here.
287         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
288         * config/frv/frv.c (frv_handle_option): Handle -G.
289         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
290         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
291         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
292         * config/mips/mips.c (mips_handle_option): Handle -G.
293         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
294         * config/score/score.c (score_handle_option): Handle -G.
295
296 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
297
298         * config/mmix/mmix.c: Include basic-block.h.
299
300 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
301
302         PR debug/45055
303         PR rtl-optimization/45137
304         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
305         prototypes.
306         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
307         New functions.
308         * combine.c (next_nonnote_nondebug_insn): Removed.
309         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
310         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
311         * sched-deps.c (sched_analyze_insn): Likewise.
312         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
313         * rtlanal.c (canonicalize_condition): Likewise.
314         * postreload.c (reload_combine_recognize_pattern): Likewise.
315         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
316
317 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
318
319         * config/i386/i386.md (int_cond): Remove code iterator.
320         (fp_cond): Ditto.
321         (cbranch<mode>4): Use ordered_comparison_operator predicate
322         for operator0.
323         (cstore<mode>4): Ditto for operator1.
324         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
325         (add<mode>cc): ditto.
326
327 2010-07-30  Richard Guenther  <rguenther@suse.de>
328
329         PR middle-end/45141
330         * expr.c (expand_expr_real_1): Check for not handled base address.
331
332 2010-07-30  Richard Guenther  <rguenther@suse.de>
333
334         * ipa-prop.c (ipa_modify_formal_parameters): Use
335         build_distinct_type_copy.
336
337 2010-07-30  Anthony Green  <green@moxielogic.com>
338
339         * config/moxie/rtems.h: New file.
340         * config.gcc: Add moxie-rtems support.
341
342 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
343
344         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
345         df flags as in run_fast_df_dce.
346
347 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
348
349         Revert:
350         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
351
352         * rtl.def (NOTE): Swap operands 4 and 5.
353         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
354         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
355         Adjust accordingly.
356         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
357
358 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
359
360         PR debug/45110
361         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
362         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
363         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
364         formal parameters.
365         (gen_decl_die): Change return type to dw_die_ref, return what
366         gen_formal_parameter_die returned.
367
368 2010-07-29  Martin Jambor  <mjambor@suse.cz>
369
370         * dbgcnt.def (eipa_sra): New counter.
371         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
372
373 2010-07-29  Xinliang David Li  <davidxl@google.com>
374
375         PR bootstrap/45119
376         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
377         in revision 162652.
378
379 2010-07-29  Richard Guenther  <rguenther@suse.de>
380
381         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
382         (TV_TREE_STORE_CCP): Likewise.
383         (TV_TREE_REDPHI): Likewise.
384
385 2010-07-29  Richard Guenther  <rguenther@suse.de>
386
387         * double-int.h (double_int_and_not): New function.
388         * combine.c (try_combine): Use it.
389         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
390
391 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
392
393         PR rtl-optimization/42575
394         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
395         Argument AU removed.  All callers changed.  Ignore artificial refs.
396         Use return value of df_word_lr_simulate_defs to decide whether an insn
397         is necessary.
398         (fast_dce): Rename arg to WORD_LEVEL.
399         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
400         static.
401         (pass_fast_rtl_byte_dce): Delete.
402         * dce.h (run_word_dce): Declare.
403         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
404         All callers changed.  Simplify code to only deal with two-word regs.
405         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
406         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
407         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
408         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
409         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
410         (df_word_lr_mark_ref): Declare.
411         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
412         df_word_lr_simulate_uses): Declare or rename from byte variants.
413         (df_byte_lr_simulate_artificial_refs_at_top,
414         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
415         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
416         declarations.
417         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
418         (enum df_mm): Delete.
419         * df-byte-scan.c: Delete file.
420         * df-problems.c (df_word_lr_problem_data): Renamed from
421         df_byte_lr_problem_data, all members deleted except for
422         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
423         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
424         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
425         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
426         df_byte_lr_confluence_0): Delete functions.
427         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
428         callers changed.
429         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
430         Don't initialize members that were deleted, don't try to discover data
431         about registers.  Ignore hard regs.
432         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
433         (df_word_lr_mark_ref): New function.
434         (df_word_lr_bb_local_compute): Renamed from
435         df_byte_bb_lr_local_compute; all callers changed.  Use
436         df_word_lr_mark_ref.  Assert that artificial refs don't include
437         pseudos.  Ignore hard registers.
438         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
439         Assert that exit block uses don't contain pseudos.
440         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
441         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
442         callers changed.  Ignore hard regs.
443         (df_word_lr_transfer_function): Renamed from
444         df_byte_lr_transfer_function; all callers changed.
445         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
446         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
447         changed.
448         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
449         callers changed.
450         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
451         confluence operator 0 set to NULL.
452         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
453         callers changed.
454         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
455         Return bool, true if bitmap changed or insn otherwise necessary.
456         All callers changed.  Simplify using df_word_lr_mark_ref.
457         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
458         all callers changed.  Simplify using df_word_lr_mark_ref.
459         * lower-subreg.c: Include "dce.h"
460         (decompose_multiword_subregs): Call run_word_dce if df available.
461         * Makefile.in (lower-subreg.o): Adjust dependencies.
462         (df-byte-scan.o): Delete.
463         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
464
465 2010-07-29  Richard Guenther  <rguenther@suse.de>
466
467         * tree.c (build_vector): Assert that the vector constant
468         has enough elements.
469         (build_vector_from_ctor): Pad with trailing zeros.
470
471 2010-07-29  Richard Guenther  <rguenther@suse.de>
472
473         PR tree-optimization/45120
474         * tree-ssa-structalias.c (get_constraint_for_component_ref):
475         Handle offset in DEREFs properly.
476         (get_constraint_for_1): Handle MEM_REF offset properly.
477
478 2010-07-29  Richard Guenther  <rguenther@suse.de>
479
480         PR middle-end/45034
481         * convert.c (convert_to_integer): Always use an unsigned
482         type for narrowed negate and bitwise not.
483
484 2010-07-29  Ira Rosen  <irar@il.ibm.com>
485
486         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
487         to outer loop when creating reduction epilogue for double reduction,
488         and switch back to the inner loop when updating the phi nodes.
489         Update uses of outer loop exit phi nodes in double reduction (instead
490         of uses of reduction).
491
492 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
493
494         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
495         popcount on power7 and parity on power6 systems.
496         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
497         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
498         instructions.
499
500         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
501         (UNSPEC_PARITY): Ditto.
502         (SFDF): New iterator for SF/DF.
503         (rreg2): New mode attribute for floating register constraint.
504         (TARGET_FLOAT): New mode attribute for whether single/double float
505         is supported.
506         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
507         pattern.
508         (parity<mode>2_cmpb): New insn for parity on power6 and newer
509         machines.
510         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
511         pattern.  Add support for fcpsgn instruction added in power6.
512         (copysignsf3): Delete.
513         (copysigndf3): Delete.
514         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
515         instead of if_then_else in RTL to avoid problems with -0.
516
517         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
518         of if_then_else to mirror scalar code.
519         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
520         rs6000.md.
521
522         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
523         instead of if_then_else.
524
525 2010-07-28  Xinliang David Li  <davidxl@google.com>
526
527         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
528         (dump_cand): Dump var_before/after.
529         (htab_inv_expr_eq): New function.
530         (htab_inv_expr_hash): New function.
531         (tree_ssa_iv_optimize_init): Support pseudo invariants.
532         (add_candidate_1): consider base type precision.
533         (set_use_iv_cost): New parameter.
534         (adjust_setup_cost): Use profile information.
535         (get_address_cost): Do not hard code width in computing address
536         offset limits.
537         (compare_aff_trees): New function.
538         (get_loop_invariant_expr_id): New function.
539         (get_computation_cost_at): New parameter and use profile information.
540         (get_computation_cost): New parameter.
541         (determine_use_iv_cost_generic): Pass new parameter.
542         (determine_use_iv_cost_address): Ditto.
543         (determine_use_iv_cost_condition): Ditto.
544         (autoinc_possible_for_pair): Ditto.
545         (determine_use_iv_costs): More dumps.
546         (iv_ca_get_num_inv_exprs): New function.
547         (iv_ca_recount_cost): Consider loop invariants in register pressure
548         cost.
549         (iv_ca_add_use): New parameter.
550         (iv_ca_dump): Better dumping.
551         (iv_ca_extend): New parameter.
552         (try_add_cand_for): Attempt to get better partial solution.
553         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
554         (create_new-ivs): More dumps.
555         (rewrite_use_compare): Ditto.
556         (free_loop_data): More cleanup.
557         (treee_ssa_iv_optimize_finalize): Ditto.
558
559 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
560
561         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
562         * config/i386/i386.c (ix86_profile_before_prologue): New.
563         (override_options): Add special handling for -mfentry.
564         (ix86_function_regparm): Likewise.
565         (ix86_function_sseregparm): Likewise.
566         (ix86_frame_pointer_required): Likewise.
567         (ix86_expand_prologue): Check for ms_hook_prologue.
568         (x86_function_profiler): Adjust mcount output.
569         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
570         * config/i386/i386.opt (mfentry): New.
571         * doc/invoke.texi (mfentry): Add documentation.
572         * doc/tm.texi: Regenerated..
573         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
574         * final.c (final_start_function): Replace macro
575         PROFILE_BEFORE_PROLOGUE by target hook.
576         * function.c (thread_prologue_and_epilogue_insns): Likewise.
577         * target.def (profile_before_prologue): New hook.
578         * targhooks.c (default_profile_before_prologue): New.
579         * targhooks.h (default_profile_before_prologue): New.
580
581 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
582
583         PR debug/45105
584         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
585
586         PR debug/45103
587         * dwarf2out.c (dwarf2out_var_location): Always consider
588         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
589
590 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
591
592         PR rtl-optimization/45107
593         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
594
595 2010-07-28  Richard Guenther  <rguenther@suse.de>
596
597         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
598         (set_lattice_value): Do not query an old default value.
599         (get_value_for_expr): New function.  Properly canonicalize
600         float values.
601         (ccp_visit_phi_node): Use it.
602
603 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
604
605         * config/arm/arm.c (arm_pcs_default): Remove static.
606         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
607         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
608         (arm_pcs_default): Declare.
609
610 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
611
612         * config/rs6000/rs6000.c (rs6000_override_options):
613         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
614         ... to darwin_rs6000_override_options.
615         (rs6000_return_in_memory): Update preceding comment for darwin
616         64 bit ABI.  Use TARGET_MACHO inline.
617         (rs6000_darwin64_struct_check_p): New.
618         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
619         (function_arg): Likewise.
620         (rs6000_arg_partial_bytes): Likewise.
621         (rs6000_function_value): Likewise.
622
623 2010-07-28  Andi Kleen <ak@linux.intel.com>
624
625         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
626
627 2010-07-28  Richard Guenther  <rguenther@suse.de>
628
629         PR middle-end/44903
630         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
631         targets try harder to not generate unaligned accesses.
632
633 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
634
635         PR rtl-optimization/45101
636         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
637         for gcse-las.
638
639 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
640
641         PR tree-optimization/44885
642         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
643         with non-aliased component.
644
645 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
646
647         * config/darwin-driver.c (SWITCH_TAKES_ARG,
648         WORD_SWITCH_TAKES_ARG): Remove.
649         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
650         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
651         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
652         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
653         definitions from gcc.c.
654         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
655         defaults.h.
656         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
657         Move to defaults.h.
658         * opts-common.c: Include tm.h.
659         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
660         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
661         Handle more than one argument.  Set canonical_option_num_elements.
662         (decode_cmdline_options_to_array): Set
663         canonical_option_num_elements and trailing elements of
664         canonical_option.
665         * opts.h (struct cl_decoded_option): Allow four elements in
666         canonical_option.  Add field canonical_option_num_elements.
667         * Makefile.in (opts-common.o): Update dependencies.
668
669 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
670
671         PR middle-end/44790
672         PR middle-end/44993
673         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
674         sure the base has address_mode before adding the offset.
675
676 2010-07-27  Xinliang David Li <davidxl@google.com>
677
678         * tree-flow.h (create_mem_ref): Add one new parameter.
679         * tree-ssa-address.c (create_mem_ref): New parameter.
680         (addr_to_parts): Ditto.
681         (move_variant_to_index): New function.
682         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
683
684 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
685
686         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
687         4 and 5.
688         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
689         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
690         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
691         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
692         CODE_LABELs and NOTEs.
693         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
694         * combine.c (try_combine): Likewise.
695         * ira.c (setup_prohibited_mode_move_regs): Likewise.
696         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
697
698 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
699
700         * coretypes.h (struct cl_option_handlers): Declare.
701         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
702         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
703         * langhooks-def.h (lhd_handle_option): Declare.
704         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
705         * langhooks.c (lhd_handle_option): New.
706         * langhooks.h (struct lang_hooks): Update prototype and return
707         value type of handle_option hook.
708         * optc-gen.awk: Generate target_flags_explicit definition for the
709         driver.
710         * opts-common.c: Include diagnostic.h.
711         (handle_option): Move from opts.c.  Update prototype and return
712         value type.  Use handlers structure.
713         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
714         handlers structure.
715         (set_option): Move from opts.c.
716         * opts.c (common_handle_option): Update prototype and return value
717         type.  Update calls to handle_option and enable_warning_as_error.
718         (unknown_option_callback, post_handling_callback,
719         lang_handle_option, target_handle_option): New.
720         (handle_option, read_cmdline_option): Move to opts-common.c.
721         (read_cmdline_options): Update prototype.  Update call to
722         read_cmdline_option.
723         (decode_options): Initialize and use handlers structure.
724         (set_option): Move to opts-common.c.
725         (enable_warning_as_error): Update prototype.  Update call to
726         handle_option.
727         * opts.h (struct cl_option_handler_func, struct
728         cl_option_handlers): New.
729         (handle_option, enable_warning_as_error): Update prototypes.
730         (read_cmdline_option): Declare.
731         * Makefile.in (opts-common.o): Update dependencies.
732
733 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
734
735         * config/arm/arm.c (params.h): Include.
736         (arm_override_options): Tune gcse-unrestricted-cost.
737         * config/arm/t-arm (arm.o): Define dependencies.
738
739 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
740
741         PR target/42495
742         PR middle-end/42574
743         * basic-block.h (get_dominated_to_depth): Declare.
744         * dominance.c (get_dominated_to_depth): New function, use
745         get_all_dominated_blocks as a base.
746         (get_all_dominated_blocks): Use get_dominated_to_depth.
747
748         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
749         (hoist_exprs): Remove.
750         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
751         (compute_code_hoist_vbeinout): Add debug print outs.
752         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
753
754         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
755         quadratic behavior.
756         * params.h (MAX_HOIST_DEPTH): New macro.
757         * doc/invoke.texi (max-hoist-depth): Document.
758
759 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
760
761         PR rtl-optimization/40956
762         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
763         constants.
764
765 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
766
767         PR target/42495
768         PR middle-end/42574
769         * config/arm/arm.c (legitimize_pic_address): Use
770         gen_calculate_pic_address pattern to emit calculation of PIC address.
771         (will_be_in_index_register): New function.
772         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
773         (thumb1_legitimate_address_p): Use it provided !strict_p.
774         * config/arm/arm.md (calculate_pic_address): New expand and split.
775
776 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
777
778         PR target/42495
779         PR middle-end/42574
780         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
781         * config/arm/arm.md (define_split "J", define_split "K"): Make
782         IRA/reload friendly.
783
784 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
785
786         * gcse.c (insert_insn_end_basic_block): Update signature, remove
787         unused checks.
788         (pre_edge_insert, hoist_code): Update.
789
790 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
791
792         PR target/42495
793         PR middle-end/42574
794         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
795
796 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
797
798         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
799
800 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
801
802         PR rtl-optimization/40956
803         PR target/42495
804         PR middle-end/42574
805         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
806         for hoisting.
807         (hoist_code): Count occurences in current block too.
808
809 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
810
811         * gcse.c (struct expr:max_distance): New field.
812         (doing_code_hoisting_p): New static variable.
813         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
814         simple expressions, don't change behavior for PRE.  Set max_distance.
815         (insert_expr_in_table): Set new max_distance field.
816         (hash_scan_set): Update.
817         (hoist_expr_reaches_here_p): Stop search after max_distance
818         instructions.
819         (find_occr_in_bb): New static function.  Use it in ...
820         (hoist_code): Calculate sizes of basic block before any changes are
821         done.  Pass max_distance to hoist_expr_reaches_here_p.
822         (one_code_hoisting_pass): Set doing_code_hoisting_p.
823
824         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
825         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
826         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
827         macros.
828         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
829         Document.
830
831 2010-07-27  Jeff Law  <law@redhat.com>
832             Maxim Kuvyrkov  <maxim@codesourcery.com>
833
834         * gcse.c (compute_transpout, transpout): Remove, move logic
835         to prune_expressions.
836         (compute_pre_data): Move pruning of trapping expressions ...
837         (prune_expressions): ... here.  New static function.
838         (compute_code_hoist_data): Use it.
839         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
840
841 2010-07-27  Xinliang David Li  <davidxl@google.com>
842
843         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
844         (rewrite_use_address): Adjust iv update position when needed.
845
846 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
847
848         * dbgcnt.def (hoist_insn): New debug counter.
849         * gcse.c (hoist_code): Use it.
850
851 2010-07-27  Xinliang David Li  <davidxl@google.com>
852
853         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
854         (niter_for_single_dom_exit): Passes additional parameter.
855         (iv_period): Fix comments.
856         (may_eliminate_iv): Handles multiple exit loops properly.
857         (free_tree_niter_desc): New function.
858         (free_loop_data): Frees up loop iteration descriptors.
859
860 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
861
862         PR target/44542
863         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
864         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
865         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
866         (expand_one_var): Don't consider DECL_ALIGN for variables for
867         which expand_one_stack_var_at has been already called.
868
869         PR testsuite/44701
870         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
871         constraints on IA-64.
872
873 2010-07-27  Jie Zhang  <jie@codesourcery.com>
874
875         PR target/44290
876         Revert:
877         2010-07-23  Jie Zhang  <jie@codesourcery.com>
878
879         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
880         false if ! tree_versionable_function_p.
881
882 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
883
884         * dwarf2out.c (add_data_member_location_attribute): Use
885         add_AT_unsigned instead of add_AT_int if offset is non-negative.
886
887 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
888
889         * postreload.c (try_replace_in_use): New static function.
890         (reload_combine_recognize_const_pattern): Use it here.  Allow
891         substituting into a final add insn, and substituting into a memory
892         reference in an insn that sets the reg.
893
894 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
895
896         * common.opt (o): Add MissingArgError.
897         * doc/options.texi (MissingArgError): Document.
898         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
899         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
900         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
901         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
902         * langhooks.h (struct lang_hooks): Remove missing_argument.
903         * optc-gen.awk: Handle MissingArgError and output new structure
904         field initializers.
905         * opts.c (read_cmdline_option): Use missing_argument_error field
906         instead of missing_argument langhook.
907         * opts.h (struct cl_option): Add missing_argument_error field.
908         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
909
910 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
911
912         PR target/29090
913         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
914         Darwin64 ABI, for zero-sized objects.
915
916 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
917
918         PR target/35491
919         PR target/29090
920
921         Merge from Apple local 4.2.1.
922         2005-05-11  Stan Shebs  <shebs@apple.com>
923         Fix 64-bit varargs for Darwin (Radar 4028089).
924         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
925         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
926         Add argument, add case for 8-byte register half-filled with a float.
927         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
928         single-precision floats specially.
929
930 2010-07-27  Ira Rosen  <irar@il.ibm.com>
931
932         PR tree-optimization/44152
933         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
934         complex numbers for further check.
935         (vect_supported_load_permutation_p): Check nodes with
936         complex numbers.
937
938 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
939
940         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
941         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
942         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
943         (LANG_HOOKS_INITIALIZER): Add new hooks.
944         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
945         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
946         and complain_wrong_lang_p.  Update init_options prototype.
947         * c-objc-common.c (c_initialize_diagnostics): First call
948         c_common_initialize_diagnostics.
949         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
950         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
951         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
952         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
953         (hook_uint_void_0): New.
954         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
955         (hook_uint_void_0): New.
956         * opts-common.c (decode_cmdline_option,
957         decode_cmdline_options_to_array): Also fill in canonical_option field.
958         * opts.c (complain_wrong_lang): Use langhook to determine whether
959         to complain instead of special-casing LTO.
960         (decode_options): Separate lang_mask determination with
961         option_lang_mask hook from call of init_options hook.
962         * opts.h (struct cl_decoded_option): Add canonical_option.
963
964 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
965
966         PR tree-optimization/45083
967         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
968
969 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
970
971         * postreload.c (reload_combine_recognize_const_pattern): Move test
972         for limiting the insn movement to the right scope.
973
974         PR rtl-optimization/45051
975         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
976         than reg_mentioned_p.
977
978 2010-07-26  Richard Henderson  <rth@redhat.com>
979
980         PR target/44132
981         * tree-emutls.c: New file.
982         * Makefile.in (OBJS-common): Add it.
983         * tree-pass.h (pass_ipa_lower_emutls): Declare.
984         * passes.c (init_optimization_passes): Add it.
985
986         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
987         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
988         * expr.c (emutls_var_address): Delete.
989         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
990         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
991         (emutls_finish): Delete.
992         * toplev.c (compile_file): Don't call it.
993         * tree.h (emutls_decl): Delete.
994         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
995         (emutls_finish, emutls_finalize_control_var): Delete.
996         (emutls_object_type): Move to tree-emutls.c.
997         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
998         default_emutls_var_fields, get_emutls_object_type,
999         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
1000         default_emutls_var_init): Likewise.
1001         (get_variable_section): Don't special case emutls.
1002         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
1003         default_elf_select_section, default_unique_section,
1004         default_encode_section_info): Likewise.
1005         * varpool.c (decide_is_variable_needed): Likewise.
1006         * gimple-iterator.c (update_call_edge_frequencies): New
1007         (gsi_insert_on_edge_immediate): Use it.
1008         (gsi_insert_seq_on_edge_immediate): Likewise.
1009         (gsi_commit_one_edge_insert): Likewise.
1010
1011         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
1012         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
1013         (x86_64_elf_unique_section): Likewise.
1014
1015 2010-07-26  Jan Hubicka  <jh@suse.cz>
1016
1017         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
1018         GTY((skip)).
1019
1020 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
1021
1022         * target.def (output_source_filename): New hook.
1023         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
1024         * doc/tm.texi: Regenerate.
1025         * toplev.c (output_file_directive) Remove function.
1026         * toplev.h (output_file_directive) Remove.
1027         * output.h (default_asm_output_source_filename,
1028         output_file_directive): Declare.
1029         * varasm.h (default_asm_output_source_filename,
1030         output_file_directive): New functions.
1031
1032         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1033         * config/mips/mips-protos.h (mips_output_filename): Remove.
1034         * config/mips/mips.c (mips_output_filename): Make Static.
1035         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
1036
1037 2010-07-26  Richard Guenther  <rguenther@suse.de>
1038
1039         PR tree-optimization/43784
1040         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
1041         if the destination is used by the call.
1042
1043 2010-07-26  Richard Guenther  <rguenther@suse.de>
1044
1045         PR middle-end/45073
1046         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
1047         SSA updating on being in SSA form.
1048
1049 2010-07-26  Richard Guenther  <rguenther@suse.de>
1050
1051         PR middle-end/45056
1052         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
1053
1054 2010-07-26  Richard Guenther  <rguenther@suse.de>
1055
1056         PR tree-optimization/45071
1057         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
1058         adjust op->opcode.
1059
1060 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
1061
1062         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
1063         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
1064         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
1065         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
1066         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
1067         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
1068         save_r31, return_r31, save_interrupt, return_interrupt,
1069         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
1070         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
1071         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
1072         new ABI requirements.
1073         (save_r6_r9, L_callt_save_r6_r9): Remove.
1074         * config/v850/predicates.md (even_reg_operand, disp23_operand,
1075         const_float_1_operand const_float_0_operand): New Predicates.
1076         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
1077         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
1078         * config/v850/t-v850: Update multilibs for new target variants.
1079         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
1080         * config/v850/t-v850e: Likewise.
1081         * config/v850/v850.c (v850_issue_rate): New.
1082         (v850_strict_argument_naming): New.
1083         (function_arg): Modify to generate a different ABI.
1084         (print_operand): Update case 'z' to support float modes.
1085         (output_move_single): Modify to generate appropriate and better
1086         assembly.
1087         (v850_float_z_comparison_operator, v850_select_cc_mode,
1088         v850_float_nz_comparison_operator,  v850_gen_float_compare,
1089         v850_gen_compare): New functions to support comparison of float values.
1090         (ep_memory_offset): Add support for V850E2 targets.
1091         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
1092         (INTERRUPT_REGPARM_NUM): Remove.
1093         (compute_register_save_size): Add extra case to save/restore long call.
1094         (use_prolog_function): New function to support prologue.
1095         (expand_prologue): Add support for V850E2 targets and modified
1096         as per the current ABI requirements.
1097         (expand_epilogue): Likewise.
1098         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
1099         (construct_save_jarl): Likewise.
1100         (construct_dispose_instruction): Update as per the current ABI
1101         requirements.
1102         (construct_prepare_instruction): Likewise.
1103         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
1104         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
1105         (CPP_SPEC): Updated to support v850e2 targets.
1106         (STRICT_ALIGNMENT): Modified.
1107         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
1108         (FIXED_REGISTERS): Likewise.
1109         (CALL_USED_REGISTERS): Likewise.
1110         (CONDITIONAL_REGISTER_USAGE): Updated.
1111         (HARD_REGNO_MODE_OK): Updated.
1112         (reg_class): Updated to add even registers.
1113         (REG_CLASS_NAMES): Likewise.
1114         (REG_CLASS_CONTENTS): Likewise.
1115         (REGNO_REG_CLASS): Updated for CC registers.
1116         (REG_CLASS_FROM_LETTER): Added support for even registers.
1117         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
1118         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
1119         ARG_POINTER_REGNUM): Updated.
1120         (FUNCTION_ARG_ADVANCE): Define.
1121         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
1122         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
1123         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
1124         (GO_IF_LEGITIMATE_ADDRESS): Updated.
1125         (SELECT_CC_MODE): Define.
1126         (REGISTER_NAMES): Updated to add psw and fcc registers.
1127         (ADDITIONAL_REGISTER_NAMES): Updated.
1128         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
1129         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
1130         * config/v850/v850.md (define_constants): Define new constants.
1131         (type): Update store,bit1,macc,div,fpu and single attributes.
1132         (cpu): New attribute.
1133         (cc): Add set_z attribute.
1134         (unsign23byte_load, sign23byte_load, unsign23hword_load,
1135         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
1136         23word_store): New instructions for 23-bit displacement load and store.
1137         (movqi_internal, movhi_internal): Update the attributes.
1138         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
1139         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
1140         the attributes.
1141         (v850_tst1): Modified using CC_REGNUM.
1142         (tstsi): Remove.
1143         (cmpsi): Modified as define_expand from define_insn.
1144         (cmpsi_insn, cmpsf, cmpdf): New instructions.
1145         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
1146         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
1147         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
1148         one_cmplsi2): Clobber the CC_REGNUM register.
1149         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
1150         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
1151         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
1152         (setf_insn, set_z_insn, set_nz_insn): New instructions for
1153         v850e2v3 target.
1154         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
1155         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
1156         targets.
1157         (sasf_1, sasf_2): Remove.
1158         (sasf): New instruction.
1159         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
1160         targets. CC_REGNUM register is clobbered and attributes are
1161         updated.
1162         (branch_z_normal, branch_z_invert, branch_nz_normal,
1163         branch_nz_invert): New branch related instructions.
1164         (jump): Updated the attributes.
1165         (switch): Update to support new targets. CC_REGNUM register is
1166         clobbered and attributes are updated.
1167         (call_internal_short, call_internal_long, call_value_internal_short,
1168         call_value_internal_long): Updated the attributes.
1169         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
1170         clobbered and attributes are updated.
1171         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
1172         Update to support new targets. CC_REGNUM register is clobbered.
1173         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
1174         instructions.
1175         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
1176         are updated.
1177         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
1178         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
1179         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
1180         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
1181         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
1182         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
1183         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
1184         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
1185         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
1186         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
1187         point instructions defined for V850e2v3 target.
1188         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
1189         Add support for V850E2 targets and CC_REGNUM register is clobbered.
1190         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
1191         support for new targets.
1192         * config/v850/v850-modes.def: New file.
1193         * config/v850/v850.opt(mstrict-align): Remove.
1194         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
1195         mv850e2v3): New command line options for V850.
1196         * config.gcc: Update the newly added files.
1197         * doc/invoke.texi: Update the newly added command line options for
1198         V850 target.
1199
1200 2010-07-26  Richard Guenther  <rguenther@suse.de>
1201
1202         PR tree-optimization/45052
1203         * ipa-pure-const.c (check_stmt): Check volatileness.
1204
1205 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1206
1207         PR target/44707
1208         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
1209         * config/sparc/sparc.c: Include reload.h.
1210         (legitimize_tls_address): Rename into...
1211         (sparc_legitimize_tls_address): ...this.
1212         (legitimize_pic_address): Rename into...
1213         (sparc_legitimize_pic_address): ...this.
1214         (sparc_expand_move): Adjust to above renaming.
1215         (sparc_tls_referenced_p): Likewise.
1216         (sparc_legitimize_tls_address): Likewise.
1217         (sparc_legitimize_pic_address): Likewise.
1218         (sparc_legitimize_address): Likewise.
1219         (sparc_output_mi_thunk): Likewise.
1220         (sparc_legitimize_reload_address): New global function.  Recognize
1221         (lo_sum (high ...) ...) patterns generated by earlier passes.
1222         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
1223
1224 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1225
1226         PR target/44484
1227         * config/sparc/predicates.md (memory_reg_operand): Delete.
1228         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
1229         (*sync_compare_and_swap): Encode the address form in the pattern.
1230         (*sync_compare_and_swapdi_v8plus): Likewise.
1231
1232 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
1233
1234         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
1235         Streamline paragraph on compatibility with the system compiler.
1236
1237 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
1238
1239         PR middle-end/45035
1240         * alias.c (true_dependence_1): Fix thinko in merge of old
1241         true_dependence and canon_true_dependence.
1242
1243 2010-07-23  Jan Hubicka  <jh@suse.cz>
1244
1245         * lto-streamer-out.c (write_symbol): Fix visibilities of external
1246         references.
1247
1248 2010-07-23  Le-Chun Wu  <lcwu@google.com>
1249
1250         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
1251         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
1252         and an unnecessary assignment.
1253         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
1254         self-assign warning.
1255         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
1256         unnecessary self-init.
1257
1258 2010-07-23  Richard Guenther  <rguenther@suse.de>
1259
1260         PR lto/43071
1261         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
1262         for -flto and -fwhopr.
1263
1264 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
1265
1266         PR target/41943
1267         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
1268         (stmp-int-hdrs): Prefix/postfix headers by include_next.
1269         * config.gcc (user_headers_inc_next_pre): New.
1270         (user_headers_inc_next_post): Likewise.
1271         (*-w64-mingw*): Use for float.h post-fixing, and for
1272         stddef.h/stdarg.h pre-fixing by include_next.
1273         * configure.ac (user_headers_inc_next_post): New.
1274         (user_headers_inc_next_pre): New.
1275         * configure: Regenerated.
1276
1277 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1278
1279         * configure.ac: Don't disable TLS on Solaris 8/9 by default
1280         Set tga_func for Solaris 2/x86 resp. SPARC.
1281         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
1282         (LIB_THREAD_LDFLAGS_SPEC): Define.
1283         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
1284         * configure: Regenerate.
1285         * config.in: Regenerate.
1286         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
1287         -pthread, -threads, LIB_TLS_SPEC with -pthread.
1288         * doc/install.texi (Specific, *-*-solaris2*): Document use of
1289         alternate thread libraries on Solaris 8.
1290         Document TLS patch requirements.
1291         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
1292         Document tls.
1293
1294         PR target/18788
1295         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
1296         -shared.
1297
1298 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
1299
1300         * tree.h (struct tree_base): Add nameless_flag bitfield.
1301         (TYPE_NAMELESS, DECL_NAMELESS): Define.
1302         * omp-low.c (create_omp_child_function, scan_omp_parallel,
1303         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
1304         DECL_ARTIFICIAL where needed.
1305         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
1306         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
1307         has DECL_NAMELESS set.
1308
1309 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1310
1311         PR tree-optimization/44915
1312         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
1313         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
1314         (analyze_function): Likewise.
1315
1316 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1317
1318         PR tree-optimization/44914
1319         * tree-sra.c (sra_modify_function_body): Return true if CFG was
1320         changed, add purging dead eh edges.
1321         (ipa_sra_modify_function_body): Return true if CFG was changed,
1322         simplify purging dead eh edges.
1323         (modify_function): Return true if CFG was changed.
1324         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
1325         was changed.
1326         (ipa_early_sra): Likewise.
1327
1328 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1329
1330         PR target/44290
1331         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
1332         if "naked".
1333         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1334         false if ! tree_versionable_function_p.
1335
1336 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
1337
1338         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
1339         * ipa-pure-const.c (special_builtlin_state): Remove
1340         BUILT_IN_ARGS_INFO case.
1341         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1342         * builtins.c (expand_builtin): Likewise.
1343         (expand_builtin_args_info): Remove.
1344         * doc/tm.texi (__builtin_args_info): Remove.
1345         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
1346         * doc/tm.text.in: Likewise.
1347
1348 2010-07-23  Richard Guenther  <rguenther@suse.de>
1349
1350         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
1351         (lto_symtab_merge_decls_2): Likewise.
1352         * tree-ssa.c (useless_type_conversion_p): Likewise.
1353         * lto-streamer-in.c (input_gimple_stmt): Likewise.
1354         * gimple.c (gtc_visited2, gtc_ob2): Remove.
1355         (struct type_pair_d): Make same_p an array indexed by mode.
1356         Update comment.
1357         (lookup_type_pair): Update initialization.
1358         (struct sccs): Adjust same_p type.
1359         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
1360         Adjust.
1361         (print_gimple_types_stats): Likewise.
1362         * gimple.h (enum gtc_mode): New.
1363         (gimple_types_compatible_p): Adjust prototype.
1364
1365 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
1366
1367         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
1368         again after processing insn.
1369
1370 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1371
1372         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
1373         proper words when !tree_versionable_function_p.
1374
1375 2010-07-23  Richard Guenther  <rguenther@suse.de>
1376
1377         PR tree-optimization/45037
1378         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
1379
1380 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1381
1382         * doc/extend.texi: Remove IP2K from the description of naked attribute.
1383         Add MCORE instead.
1384
1385 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1386
1387         PR lto/44992
1388         * lto-opts.c (lto_write_options): Add NULL file_data argument to
1389         lto_get_section_name.
1390         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
1391         * lto-streamer-out.c (produce_asm): Likewise.
1392         (copy_function): Likewise.
1393         (produce_symtab): Likewise.
1394         (produce_asm_for_decls): Likewise.
1395         * lto-streamer.c (lto_get_section_name): Add file_data argument.
1396         Rewrite to add random postfix to LTO sections.
1397         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
1398         (lto_get_section_name): Add file_data argument to prototype.
1399
1400 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1401
1402         * lto-section-in.c (lto_section_name): Synchronize names
1403         with lto_get_section_name.
1404
1405 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1406
1407         * lto-opts.c (lto_read_file_options): Check for missing section.
1408
1409 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1410
1411         * ira.c (check_allocation): Correctly handle the case where an allocno
1412         with two objects was allocated to a single reg.
1413
1414 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
1415
1416         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
1417         (is_widening_mult_p): Likewise.
1418         (convert_to_widen): Use them.
1419         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
1420         well as integer ones.
1421
1422 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
1423
1424         * alias.c (true_dependence_1): New function, merged version of
1425         true_dependence and canon_true_dependence.
1426         (true_dependence): Simplify.
1427         (canon_true_dependence): Simplify.
1428
1429 2010-07-22  Richard Henderson  <rth@redhat.com>
1430
1431         PR target/45027
1432         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
1433         of V4SFmode for the SSE saves; increase stack alignment if needed.
1434         (ix86_gimplify_va_arg): Don't increase stack alignment here.
1435
1436 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
1437
1438         PR bootstrap/45028
1439         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
1440         call cprop_find_used_regs again via note_uses.
1441
1442 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1443
1444         * alias.c (get_alias_set): Fix formatting issues.
1445
1446 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
1447
1448         PR middle-end/44878
1449         * stmt.c (expand_value_return):  Call promote_function_mode with
1450         a for_return argument of 2 when returning by reference.
1451
1452 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
1453
1454         PR debug/45024
1455         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
1456         unit DIE if we can find the scope DIE.
1457
1458 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1459
1460         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
1461         changed.  Initialize OBJECT_SUBWORD.
1462         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
1463         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
1464         all callers changed.
1465         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
1466         (finish_allocno): Likewise.
1467         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
1468         (remove_low_level_allocnos): Likewise.
1469         (update_bad_spill_attribute): Likewise.
1470         (setup_min_max_allocno_live_range_point): Likewise.
1471         (sort_conflict_id_map): Likewise.
1472         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
1473         (ior_hard_reg_conflicts): New function.
1474         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
1475         (compress_conflict_vecs): Iterate over objects, not allocnos.
1476         (ira_add_live_range_to_object): New function.
1477         (object_range_compare_func): Renamed from allocno_range_compare_func.
1478         All callers changed.
1479         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
1480         subobjects, widen the min/max range of the lowest-order object to
1481         potentially include all other such low-order objects.
1482         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
1483         (check_allocation): Likewise.  Use more fine-grained tests for register
1484         conflicts.
1485         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
1486         allocno subobjects.
1487         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
1488         choices about which bits to set in each set.  Don't use
1489         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
1490         using the multiple sets we computed.
1491         (push_allocno_to_stack): Iterate over allocno subobjects.
1492         (all_conflicting_hard_regs_coalesced): New static function.
1493         (setup_allocno_available_regs_num): Use it.
1494         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
1495         subobjects.
1496         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
1497         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1498         by ALLOCNO_NUM_OBJECTS.
1499         (calculate_spill_cost): Likewise.
1500         (color_pass): Express if statement in a more normal way.
1501         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
1502         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
1503         (setup_slot_coalesced_allocno_live_ranges): Likewise.
1504         (allocno_reload_assign): Likewise.
1505         (ira_reassign_pseudos): Likewise.
1506         (fast_allocation): Likewise.
1507         * ira-conflicts.c (build_conflict_bit_table): Likewise.
1508         (print_allocno_conflicts): Likewise.
1509         (ira_build_conflicts): Likewise.
1510         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
1511         callers changed.  Test subword 0 of each allocno for conflicts.
1512         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
1513         callers changed.  Iterate over allocno subobjects.
1514         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
1515         * ira-int.h (struct ira_allocno): New member: num_objects.
1516         Rename object to objects and change it into an array.
1517         (ALLOCNO_OBJECT): Add new argument N.
1518         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
1519         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
1520         (ior_hard_reg_conflicts): Declare.
1521         (ira_add_live_range_to_object): Declare.
1522         (ira_allocno_object_iterator): New.
1523         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
1524         (FOR_EACH_ALLOCNO_OBJECT): New macro.
1525         * ira-lives.c (objects_live): Renamed from allocnos_live; all
1526         uses changed.
1527         (allocnos_processed): New sparseset.
1528         (make_object_born): Renamed from make_allocno_born; take an
1529         ira_object_t argument.  All callers changed.
1530         (make_object_dead): Renamed from make_allocno_dead; take an
1531         ira_object_t argument.  All callers changed.
1532         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
1533         All callers changed.
1534         (mark_pseudo_regno_live): Iterate over allocno subobjects.
1535         (mark_pseudo_regno_dead): Likewise.
1536         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
1537         functions.
1538         (mark_ref_live): Detect subword accesses and call
1539         mark_pseudo_regno_subword_live as appropriate.
1540         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
1541         (process_bb_nodes_live): Deal with object-related updates first; set
1542         and test bits in allocnos_processed to avoid computing allocno
1543         statistics more than once.
1544         (create_start_finish_chains): Iterate over objects, not allocnos.
1545         (print_object_live_ranges): New function.
1546         (print_allocno_live_ranges): Use it.
1547         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
1548         and objects_live.
1549
1550 2010-07-22  Richard Guenther  <rguenther@suse.de>
1551
1552         PR lto/42451
1553         * gimple.c (gtc_next_dfs_num): New global.
1554         (struct sccs): Make value a union, add integer same_p member.
1555         (gtc_visit): New function.
1556         (gimple_types_compatible_p_1): New function, split out from ...
1557         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
1558         (iterative_hash_gimple_type): Adjust for sccs change.
1559
1560 2010-07-22  Martin Jambor  <mjambor@suse.cz>
1561
1562         PR tree-optimization/44891
1563         * tree-sra.c: Include gimple-pretty-print.h.
1564         (replace_uses_with_default_def_ssa_name): Renamed to
1565         get_repl_default_def_ssa_name, return the new SSA name instead of
1566         replacing the old one.
1567         (sra_modify_assign): Dump a message when removing a load, if the LHS
1568         is an SSA_NAME, do not do any propagation, just set the RHS to a
1569         default definition SSA NAME, type convert if necessary.
1570         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
1571
1572 2010-07-22  Richard Guenther  <rguenther@suse.de>
1573
1574         PR tree-optimization/45017
1575         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
1576         TYPE_PRECISION of integral types in addition to size.
1577
1578 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1579
1580         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
1581         when no C library is specified.
1582
1583 2010-07-22  Martin Jambor  <mjambor@suse.cz>
1584
1585         * ipa-prop.h (struct ipa_node_params): Updated comment.
1586         (struct ipa_edge_args): Likewise.
1587         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
1588
1589 2010-07-22  Martin Jambor  <mjambor@suse.cz>
1590
1591         * cgraphunit.c (verify_edge_count_and_frequency): New function.
1592         (verify_cgraph_node): Verify frequencies of indirect edges.
1593         * tree-inline.c (tree_function_versioning): Update frequencies of
1594         indirect edges.
1595
1596 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1597
1598         PR target/43698
1599         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
1600         Set *arm_rev to be predicable.
1601
1602 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
1603
1604         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
1605         (LINK_COMMAND_SPEC_A): New.
1606         (DSYMUTIL): New.
1607         (DSYMUTIL_SPEC): New.
1608         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
1609         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
1610
1611 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
1612
1613         * calls.c (load_register_parameters): Move check for zero
1614         sized items so that only the call to
1615         mem_overlaps_already_clobbered_arg_p () is protected.
1616
1617 2010-07-22  Jan Hubicka  <jh@suse.cz>
1618
1619         * ipa-pure-const.c (varying_state): Break out from ...
1620         (get_function_state): ... here; always return varying_state
1621         when state would be NULL otherwise.
1622         (remove_node_data): Do not free varying state.
1623
1624 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1625
1626         PR bootstrap/44970
1627         PR middle-end/45009
1628         * postreload.c: Include "target.h".
1629         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
1630         into account.
1631         (fixup_debug_insns): Don't copy the rtx.
1632         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
1633         Don't copy when replacing.  Call fixup_debug_insns in the case where
1634         we merged one add with another.
1635         (reload_combine_recognize_pattern): Fail if there aren't any uses.
1636         Try harder to determine whether we're picking a valid index register.
1637         Don't set store_ruid for an insn we're going to scan in the
1638         next iteration.
1639         (reload_combine): Remove unused code.
1640         (reload_combine_note_use): When updating use information for
1641         an old insn, ignore a use that occurs after store_ruid.
1642         * Makefile.in (postreload.o): Update dependencies.
1643
1644         * function.c (record_hard_reg_sets): Restrict the previous change
1645         to cases where the incoming nominal mode is the same as the
1646         incoming promoted mode and everything happens in MODE_INT.
1647
1648 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
1649
1650         PR debug/45015
1651         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
1652         ASM_OPERANDS_OUTPUT_IDX.
1653         (adjust_insn): For inline asm with multiple sets ensure first
1654         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
1655         the insn.
1656
1657 2010-07-21  Richard Henderson  <rth@redhat.com>
1658
1659         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
1660         comparison for avoiding xmm register saves.  Emit the xmm register
1661         saves explicitly.
1662         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
1663         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
1664         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
1665         Remove patterns and the associated splitters.
1666
1667 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
1668
1669         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
1670         and imagine parts of a complex, so that they can have the same
1671         base and fall into the same group.
1672
1673 2010-07-21  Richard Guenther  <rguenther@suse.de>
1674
1675         PR lto/45018
1676         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
1677         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
1678         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
1679
1680 2010-07-21  Martin Jambor  <mjambor@suse.cz>
1681
1682         PR tree-optimization/44900
1683         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
1684         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
1685
1686 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
1687
1688         PR middle-end/44738
1689         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
1690
1691 2010-07-21  Richard Guenther  <rguenther@suse.de>
1692
1693         PR middle-end/45013
1694         * tree-ssa.c (useless_type_conversion_p): Dispatch to
1695         gimple_types_compatible_p only when in lto.
1696         * gimple.c (gimple_types_compatible_p): Use canonical types
1697         to speed up comparison.
1698
1699 2010-07-21  Richard Guenther  <rguenther@suse.de>
1700
1701         * tree-flow.h (referenced_var): Move define ...
1702         * tree-flow-inline.h (referenced_var): ... here as an inline
1703         function.  Assert here ...
1704         * tree-dfa.c (referenced_var_lookup): ... instead of here.
1705         * tree-ssa.c (maybe_optimize_var): Check if the variable
1706         is in referenced vars.
1707         (execute_update_addresses_taken): Remove old broken check.
1708         * gimple-pretty-print.c (pp_points_to_solution): Use
1709         referenced_var_lookup.
1710         * tree-into-ssa.c (dump_decl_set): Likewise.
1711
1712 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
1713
1714         PR debug/45003
1715         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
1716         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
1717         ZERO_EXTEND here.
1718
1719 2010-07-20  Richard Henderson  <rth@redhat.com>
1720
1721         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
1722
1723 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
1724
1725         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
1726         computing the sum of the stack pointer and a large constant.
1727         * config/arm/constraints.md (M): Remove superfluous parentheses.
1728         (Pc): New constraint.
1729
1730 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
1731
1732         PR debug/45006
1733         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
1734         operand's type if exp is tcc_unary class tree.
1735
1736 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
1737
1738         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
1739         Reverse sense of if_then_else condition.
1740
1741 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
1742
1743         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
1744         * config/rs6000/rs6000.c (rs6000_override_options): Set
1745         rs6000_block_move_inline_limit appropriately.
1746         (expand_block_move): Use rs6000_block_move_inline_limit.
1747         * doc/invoke.texi (mblock-move-inline-limit): Document.
1748
1749 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
1750
1751         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
1752         FROM and TO.  All callers changed.  Don't look for tracked uses,
1753         just scan the RTL for DEBUG_INSNs and substitute.
1754         (reload_combine_recognize_pattern): Call fixup_debug_insns.
1755         (reload_combine): Ignore DEBUG_INSNs.
1756
1757 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
1758
1759         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
1760         depth to 8 from 5.
1761
1762         PR debug/45003
1763         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
1764         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
1765         instead of the result's type.
1766
1767 2010-07-20  Richard Guenther  <rguenther@suse.de>
1768
1769         PR tree-optimization/44977
1770         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
1771         SSA form.
1772
1773 2010-07-20  Richard Guenther  <rguenther@suse.de>
1774
1775         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
1776         (lto_symtab_merge_decls_2): Likewise.
1777         * gimple.h (gimple_types_compatible_p): Declare.
1778         * gimple.c (gimple_queue_type_fixup): Remove.
1779         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
1780         (gimple_compatible_complete_and_incomplete_type_p): New function.
1781         (gimple_types_compatible_p): Adjust.
1782         (gimple_register_type): Remove type fixup code.
1783         (print_gimple_types_stats): Adjust.
1784         (free_gimple_type_tables): Likewise.
1785         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
1786         * tree-ssa.c (useless_type_conversion_p): Likewise.
1787
1788 2010-07-20  Richard Guenther  <rguenther@suse.de>
1789
1790         PR middle-end/44971
1791         PR middle-end/44988
1792         * tree-ssa.c (maybe_optimize_var): New function split out from ...
1793         (execute_update_addresses_taken): ... here.
1794         (non_rewritable_mem_ref_base): Likewise.
1795         (execute_update_addresses_taken): Do not iterate over all referenced
1796         vars but just all local decls and parms.
1797         Properly check call and asm arguments and rewrite call arguments.
1798
1799 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
1800
1801         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
1802         to top level.
1803         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
1804         definitions ...
1805         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
1806         New macro.
1807         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
1808
1809 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1810
1811         * gengtype.c (start_root_entry): New function, split out from
1812         write_root.  Check whether V is null and raise an error if so.
1813         (write_field_root): Check for V being null.  Don't raise an error here;
1814         set V to null instead.
1815         (write_root): Update comment above function.  Use start_root_entry.
1816
1817 2010-07-19  Xinliang David Li  <davidxl@google.com>
1818
1819         PR testsuite/44932
1820         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
1821         def edges.
1822         (find_uninit_use): Add dump.
1823         (is_use_properly_guarded): Ditto.
1824         (warn_uninitialized_phi): Ditto.
1825         (execute_late_warn_uninitialized): Ditto.
1826
1827 2010-07-19  Richard Guenther  <rguenther@suse.de>
1828
1829         PR middle-end/44941
1830         * expr.c (emit_block_move_hints): Move zero size check first.
1831         Move asserts to more useful places.
1832         * calls.c (load_register_parameters): Check for zero size.
1833
1834 2010-07-19  Richard Henderson  <rth@redhat.com>
1835
1836         * tree-optimize.c (execute_all_early_local_passes): New.  Change
1837         cgraph_state here ...
1838         (execute_early_local_optimizations): ... not here.  Remove.
1839         (pass_early_local_passes, pass_all_early_optimizations): Update.
1840
1841 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
1842
1843         * postreload.c (reload_combine_closest_single_use): Ignore the
1844         number of uses for DEBUG_INSNs.
1845         (fixup_debug_insns): New static function.
1846         (reload_combine_recognize_const_pattern): Use it.  Don't let the
1847         main loop be affected by DEBUG_INSNs.
1848         Really disallow moving adds past a jump insn.
1849         (reload_combine_recognize_pattern): Don't update use_ruid here.
1850         (reload_combine_note_use): Do it here.
1851         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
1852
1853 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
1854
1855         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
1856         of a loop.
1857         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
1858
1859 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
1860
1861         * config/i386/darwin.h: Define darwin_emit_branch_islands.
1862         (TARGET_MACHO_BRANCH_ISLANDS): New.
1863         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
1864         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
1865         default value.
1866         * config/i386/i386.c (output_pic_addr_const): Do not emit
1867         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
1868         (x86_output_mi_thunk): Adjust symbol creation.
1869         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
1870         Remove out of date comment.
1871         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
1872         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
1873         (DARWIN_GENERATE_ISLANDS): Ditto.
1874         (output_call):  Do not emit branch islands unless
1875         darwin_emit_branch_islands is set.
1876         * config/darwin.c: Declare darwin_emit_branch_islands.
1877         (machopic_indirect_data_reference): Do not emit unless
1878         darwin_emit_branch_islands is set.
1879         (darwin_override_options): Set darwin_emit_branch_islands
1880         where it is needed.
1881         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
1882
1883 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1884
1885         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1886         sse_runtime, sse2_runtime.
1887
1888 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
1889
1890         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
1891         low half of a single-register SCmode return value before ORing
1892         it with the high half.
1893         * config/mips/mips16.S (MERGE_GPRf): Likewise.
1894
1895 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1896
1897         PR target/44805
1898         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
1899         on all targets.
1900
1901 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
1902
1903         PR target/42235
1904         * postreload.c (reload_cse_move2add): Return bool, true if anything.
1905         changed.  All callers changed.
1906         (move2add_use_add2_insn): Likewise.
1907         (move2add_use_add3_insn): Likewise.
1908         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
1909         reload_combine.
1910         (RELOAD_COMBINE_MAX_USES): Bump to 16.
1911         (last_jump_ruid): New static variable.
1912         (struct reg_use): New members CONTAINING_MEM and RUID.
1913         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
1914         (reload_combine_split_one_ruid, reload_combine_split_ruids,
1915         reload_combine_purge_insn_uses, reload_combine_closest_single_use
1916         reload_combine_purge_reg_uses_after_ruid,
1917         reload_combine_recognize_const_pattern): New static functions.
1918         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
1919         is true for our reg and that we have available index regs.
1920         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
1921         callers changed.  Use them to initialize fields in struct reg_use.
1922         (reload_combine): Initialize last_jump_ruid.  Be careful when to
1923         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
1924         Call reload_combine_recognize_const_pattern.
1925         (reload_combine_note_store): Update REAL_STORE_RUID field.
1926
1927 2010-07-16  Jason Merrill  <jason@redhat.com>
1928
1929         * Makefile.in (opts-common.o): Depend on options.h.
1930
1931 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
1932
1933         * tree.c (build_common_builtin_nodes): Use build_function_type_list
1934         instead of build_function_type.
1935         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
1936         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1937
1938 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
1939
1940         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
1941         do all the work.
1942         (rs6000_emit_int_cmove): Use function pointers for insn generation.
1943         Don't force values into registers unnecessarily.
1944         (output_isel): Assert that we're not given conditions we can't handle.
1945         Delete corresponding code.
1946         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
1947         scc_comparison_operator constraint.  Permit 0 for the consequent
1948         operand.  Permit any GPR for the alternative operand.
1949         (isel_unsigned_<mode>): Likewise.
1950
1951 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
1952
1953         PR target/44942
1954         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
1955         argument to const_tree.
1956         * config/i386/i386.c (function_arg_advance): If padding needs to be
1957         inserted before argument, increment cum->words by number of padding
1958         words as well.
1959         (contains_aligned_value_p): Change argument to const_tree.
1960         (ix86_function_arg_boundary): Change second argument to const_tree.
1961
1962 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
1963
1964         PR target/42235
1965         * function.c (record_hard_reg_sets): New static function.
1966         (assign_parm_setup_reg): If an optab for extending exists and the
1967         generated code clobbbers no hard regs, emit the insn directly and
1968         create a REG_EQUIV note.
1969
1970 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1971
1972         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
1973         TREE_CHAIN.
1974         * c-typeck.c (push_init_level): Likewise.
1975         (process_init_element): Likewise.
1976
1977 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
1978
1979         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
1980         (integer_three_node): Add.
1981         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
1982         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
1983         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
1984         of call build_int_cst.
1985         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
1986         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
1987         (find_interesting_uses_address): Ditto.
1988         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
1989         * tree-eh.c (lower_eh_constructs_2): Ditto.
1990         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
1991         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
1992         * expmed.c (expand_divmod): Ditto.
1993         * tree-mudflap.c (mx_register_decls): Ditto.
1994         * varasm.c (array_size_for_constructor): Ditto.
1995         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1996         * c-parser.c (c_parser_postfix_expression): Ditto.
1997
1998 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
1999
2000         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
2001         New static variables.
2002         (reload_combine_recognize_pattern): New static function, broken out
2003         of reload_combine.
2004         (reload_combine): Use it.  Only initialize first_index_reg and
2005         last_index_reg once.
2006
2007 2010-07-15  Richard Henderson  <rth@redhat.com>
2008
2009         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
2010         when done.
2011
2012 2010-07-15  Jan Hubicka  <jh@suse.cz>
2013
2014         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
2015         comdats for broken gold.
2016         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
2017
2018 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2019
2020         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
2021
2022 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2023
2024         * tree.h (DECL_CHAIN): Define.
2025         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2026         * c-decl.c: Likewise.
2027         * c-parser.c: Likewise.
2028         * c-typeck.c: Likewise.
2029         * cfgexpand.c: Likewise.
2030         * cgraph.c: Likewise.
2031         * cgraphunit.c: Likewise.
2032         * combine.c: Likewise.
2033         * config/alpha/alpha.c: Likewise.
2034         * config/arm/arm.c: Likewise.
2035         * config/frv/frv.c: Likewise.
2036         * config/i386/i386.c: Likewise.
2037         * config/i386/winnt-cxx.c: Likewise.
2038         * config/ia64/ia64.c: Likewise.
2039         * config/iq2000/iq2000.c: Likewise.
2040         * config/mep/mep.c: Likewise.
2041         * config/mips/mips.c: Likewise.
2042         * config/pa/som.h: Likewise.
2043         * config/rs6000/rs6000.c: Likewise.
2044         * config/s390/s390.c: Likewise.
2045         * config/sh/sh.c: Likewise.
2046         * config/sh/symbian-cxx.c: Likewise.
2047         * config/sparc/sparc.c: Likewise.
2048         * config/spu/spu.c: Likewise.
2049         * config/stormy16/stormy16.c: Likewise.
2050         * config/vxworks.c: Likewise.
2051         * config/xtensa/xtensa.c: Likewise.
2052         * coverage.c: Likewise.
2053         * dbxout.c: Likewise.
2054         * dwarf2out.c: Likewise.
2055         * emit-rtl.c: Likewise.
2056         * expr.c: Likewise.
2057         * function.c: Likewise.
2058         * gimple-low.c: Likewise.
2059         * gimple-pretty-print.c: Likewise.
2060         * gimplify.c: Likewise.
2061         * integrate.c: Likewise.
2062         * ipa-inline.c: Likewise.
2063         * ipa-prop.c: Likewise.
2064         * ipa-split.c: Likewise.
2065         * ipa-struct-reorg.c: Likewise.
2066         * ipa-type-escape.c: Likewise.
2067         * langhooks.c: Likewise.
2068         * lto-cgraph.c: Likewise.
2069         * omp-low.c: Likewise.
2070         * stor-layout.c: Likewise.
2071         * tree-cfg.c: Likewise.
2072         * tree-complex.c: Likewise.
2073         * tree-dfa.c: Likewise.
2074         * tree-dump.c: Likewise.
2075         * tree-inline.c: Likewise.
2076         * tree-mudflap.c: Likewise.
2077         * tree-nested.c: Likewise.
2078         * tree-object-size.c: Likewise.
2079         * tree-pretty-print.c: Likewise.
2080         * tree-sra.c: Likewise.
2081         * tree-ssa-live.c: Likewise.
2082         * tree-ssa-loop-niter.c: Likewise.
2083         * tree-ssa-math-opts.c: Likewise.
2084         * tree-ssa-reassoc.c: Likewise.
2085         * tree-ssa-sccvn.c: Likewise.
2086         * tree-ssa-structalias.c: Likewise.
2087         * tree-tailcall.c: Likewise.
2088         * tree-vrp.c: Likewise.
2089         * tree.c: Likewise.
2090         * var-tracking.c: Likewise.
2091         * varasm.c: Likewise.
2092
2093 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2094
2095         PR target/44877
2096         * config/spu/spu.c (spu_expand_builtin_1): Allow references
2097         (as well as pointers) as argument to mask_for_load builtins.
2098
2099 2010-07-15  Richard Guenther  <rguenther@suse.de>
2100
2101         PR tree-optimization/44946
2102         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
2103         with accessing only padding properly.
2104
2105 2010-07-15  Jan Hubicka  <jh@suse.cz>
2106
2107         * ipa.c (function_and_variable_visibility): Variables marked as used
2108         should not be localized.
2109
2110 2010-07-15  Jan Hubicka  <jh@suse.cz>
2111
2112         * cgraph.c: Include lto-streamer.h
2113         (change_decl_assembler_name): Work when assembler name hash is at place.
2114         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
2115         be sure to rename it to avoid name clash.
2116         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
2117         Localize hidden symbols only when locally defined.
2118
2119 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
2120
2121         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
2122
2123 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
2124             Kevin F. Quinn  <kevquinn@gentoo.org>
2125
2126         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
2127         * common.opt: Add -Wtrampolines.
2128         * doc/invoke.texi: Add -Wtrampolines.
2129
2130 2010-07-15  Jie Zhang  <jie@codesourcery.com>
2131
2132         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
2133         cortex_a8_issue_ls.
2134
2135 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
2136
2137         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
2138         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2139
2140 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2141
2142         * config/spu/spu.c (reg_names): Remove prototype.
2143         (call_used_regs): Likewise.
2144
2145 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
2146
2147         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
2148         "unused" with attribute "used".
2149         (__JCR_END__): Likewise.
2150         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
2151         "used" attribute.
2152         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
2153
2154 2010-07-14  Richard Guenther  <rguenther@suse.de>
2155
2156         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
2157         (maybe_fixup_decls): Likewise.
2158         (input_gimple_stmt): Do not fixup anything.
2159         * lto-streamer-out.c (output_gimple_stmt): Make sure all
2160         non-automatic variable uses are wrapped inside a MEM_REF.
2161
2162 2010-07-14  Richard Henderson  <rth@redhat.com>
2163
2164         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
2165         for functions.
2166         * varasm.c (assemble_variable): Remove early exit for functions;
2167         assert that we're given a variable.
2168
2169 2010-07-14  Jie Zhang  <jie@codesourcery.com>
2170
2171         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
2172         cortex_a8_default when neon_type is not none.
2173
2174 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2175
2176         * lower-subreg.c (subreg_context): New static bitmap.
2177         (decompose_multiword_subregs): Allocate and free it.
2178         (find_decomposable_subregs): Set a bit in it for a register that
2179         occurs in a subreg that changes mode but not size.
2180         (can_decompose_p): Test it instead of non_decomposable_context.
2181
2182 2010-07-14  Richard Guenther  <rguenther@suse.de>
2183
2184         PR tree-optimization/44824
2185         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
2186         is_gimple_mem_ref_addr.
2187         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
2188         non-decl_address_invariant_p addresses.
2189
2190 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2191
2192         * reload.c (find_reloads): Revert code to penalize small register
2193         classes that was brought in with the IRA merge.
2194
2195 2010-07-14  Richard Guenther  <rguenther@suse.de>
2196
2197         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
2198         as base of ARRAY_REFs.
2199
2200 2010-07-14  Richard Guenther  <rguenther@suse.de>
2201
2202         PR middle-end/44930
2203         * tree-pretty-print.c (do_niy): Do not print a newline.
2204
2205 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2206
2207         * ira-int.h (struct ira_object): New.
2208         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
2209         (struct ira_allocno): Remove members min, max,
2210         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
2211         conflict_allocnos_num and conflict_vec_p.  Add new member object.
2212         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
2213         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
2214         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
2215         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
2216         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
2217         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
2218         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
2219         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
2220         an ira_object_t rather than ira_allocno_t.  All uses changed.
2221         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2222         contains a vector of ira_object_t; all uses changed.
2223         (ira_objects_num): Declare variable.
2224         (ira_create_allocno_object): Declare function.
2225         (ira_conflict_vector_profitable_p): Adjust prototype.
2226         (ira_allocate_conflict_vec): Renamed from
2227         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
2228         (ira_allocate_object_conflicts): Renamed from
2229         ira_allocate_allocno_conflicts; first arg now ira_object_t.
2230         (struct ira_object_iterator): New.
2231         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
2232         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
2233         to conflict_vec_p.  All uses changed.
2234         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
2235         Changed to take into account that conflicts are now tracked for
2236         objects.
2237         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
2238         Args changed to accept ira_object_t.  All uses changed.
2239         (allocnos_conflict_p): New static function.
2240         (collected_conflict_objects): Renamed from collected_allocno_objects;
2241         now a vector of ira_object_t.  All uses changed.
2242         (build_conflict_bit_table): Changed to take into account that
2243         conflicts are now tracked for objects.
2244         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
2245         (print_allocno_conflicts, ira_build_conflicts): Likewise.
2246         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
2247         setup_allocno_left_conflicts_size, allocno_reload_assign,
2248         fast_allocation): Likewise.
2249         * ira-lives.c (make_hard_regno_born, make_allocno_born)
2250         process_single_reg_class_operands, process_bb_node_lives): Likewise.
2251         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
2252         Likewise.
2253         * ira-build.c (ira_objects_num): New variable.
2254         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2255         contains a vector of ira_object_t; all uses changed.
2256         (ira_object_id_map_vec): Corresponding change.
2257         (object_pool): New static variable.
2258         (initiate_allocnos): Initialize it.
2259         (finish_allocnos): Free it.
2260         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
2261         New functions.
2262         (ira_create_allocno): Don't set members that were removed.
2263         (ira_set_allocno_cover_class): Don't change conflict hard regs.
2264         (merge_hard_reg_conflicts): Changed to take into account that
2265         conflicts are now tracked for objects.
2266         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
2267         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
2268         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
2269         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
2270         setup_min_max_conflict_allocno_ids, ):  Likewise.
2271         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
2272         to ira_object_t; all callers changed.
2273         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
2274         to ira_object_t, all callers changed.
2275         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
2276         to ira_object_t, all callers changed.
2277         (conflict_check, curr_conflict_check_tick): Renamed from
2278         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
2279         changed.
2280         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
2281         arg changed to ira_object_t, all callers changed.
2282         (create_cap_allocno): Call ira_create_allocno_object.
2283         (finish_allocno): Free the corresponding object.
2284         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
2285         callers changed.  Adjusted for dealing with objects.
2286         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
2287         dealing with objects.
2288         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
2289
2290         * ira-int.h (struct live_range): Rename allocno member to object
2291         and change type to ira_object_t.
2292         (struct ira_object): New member live_ranges.
2293         (struct ira_allocno): Remove member live_ranges.
2294         (ALLOCNO_LIVE_RANGES): Remove.
2295         (OBJECT_LIVE_RANGES): New macro.
2296         (ira_create_live_range, ira_copy_live_range_list,
2297         ira_merge_live_range_list, ira_live_ranges_intersect_p,
2298         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
2299         * ira-build.c (ira_create_object): Initialize live ranges here.
2300         (ira_create_allocno): Not here.
2301         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
2302         changed to ira_object_t, all callers changed.
2303         (copy_live_range): Rename from copy_allocno_live_range, all callers
2304         changed.
2305         (ira_copy_live_range_list): Rename from
2306         ira_copy_allocno_live_range_list, all callers changed.
2307         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
2308         all callers changed.
2309         (ira_live_ranges_intersect_p): Rename from
2310         ira_allocno_live_ranges_intersect_p, all callers changed.
2311         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
2312         callers changed.
2313         (ira_finish_live_range_list): Rename from
2314         ira_finish_allocno_live_range_list, all callers changed.
2315         (change_object_in_range_list): Rename from change_allocno_in_range_list,
2316         last arg changed to ira_object_t, all callers changed.
2317         (finish_allocno): Changed to expect live ranges in the allocno's object.
2318         (move_allocno_live_ranges, copy_allocno_live_ranges,
2319         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
2320         ira_flattening, ira_build): Likewise.
2321         * ira-color.c (allocnos_have_intersected_live_ranges_p,
2322         slot_coalesced_allocno_live_ranges_intersect,
2323         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
2324         * ira-conflicts.c (build_conflict_bit_table): Likewise.
2325         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2326         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
2327         make_allocno_dead, create_start_finish_chains,
2328         remove_some_program_points_and_update_live_ranges,
2329         ira_debug_live_range_list): Likewise.
2330
2331         * ira-int.h (ira_object_conflict_iterator): Rename from
2332         ira_allocno_conflict_iterator.
2333         (ira_object_conflict_iter_init): Rename from
2334         ira_allocno_conflict_iter_init, second arg changed to
2335         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
2336         FOR_EACH_ALLOCNO_CONFLICT.
2337         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
2338         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
2339         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
2340         * ira-conflicts.c (print_allocno_conflicts): Likewise.
2341
2342 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
2343
2344         PR other/44874
2345         * tree-dump.c (dump_options): Add enumerate_locals entry.
2346         Add TDF_NOID exclusion to all entry.
2347         * tree-dump.h (dump_enumerated_decls): Declare.
2348         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
2349         Don't display type uid.
2350         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
2351         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
2352         * tree-ssa-live.c: Include gimple.h.
2353         (numbered_tree_d): New struct.
2354         (numbered_tree): New typedef.
2355         (DEF_VEC_O (numbered_tree): New.
2356         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
2357         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
2358         (dump_enumerated_decls): Likewise.
2359         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
2360         debug info and flag_dump_final_insns, call dump_enumerated_decls.
2361         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
2362         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
2363
2364 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
2365
2366         * expmed.h (MAX_BITS_PER_WORD): Move to...
2367         * defaults.h (MAX_BITS_PER_WORD): ...here.
2368
2369 2010-07-13  DJ Delorie  <dj@redhat.com>
2370
2371         * config/h8300/h8300.c (h8300_init_once): Default to
2372         -fstrict_volatile_bitfields.
2373
2374         * config/sh/sh.c (sh_override_options): Default to
2375         -fstrict_volatile_bitfields.
2376
2377         * config/rx/rx.c (rx_option_override): New.
2378
2379         * config/m32c/m32c.c (m32c_override_options): Default to
2380         -fstrict_volatile_bitfields.
2381
2382 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
2383
2384         * tree.h (build_function_call_expr): Delete.
2385         (build_call_expr_loc_array): New function.
2386         (build_call_expr_loc_vec): New function.
2387         * tree-flow.h (struct omp_region): Change type of ws_args field
2388         to a VEC.
2389         * builtins.c (build_function_call_expr): Delete.
2390         (build_call_expr_loc_array): New function.
2391         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
2392         (build_call_expr): Likewise.
2393         (build_call_expr_loc_vec): New function.
2394         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
2395         build_function_call_expr.
2396         * expr.c (emutls_var_address): Likewise.
2397         * varasm.c (emutls_common_1): Likewise.
2398         * omp-low.c (expand_omp_atomic_mutex): Likewise.
2399         (expand_omp_taskreg): Adjust for new type of region->ws_args.
2400         (get_ws_args_for): Return a VEC instead of a tree.
2401         (expand_parallel_call): Call build_call_expr_loc_vec instead of
2402         build_function_call_expr.
2403         * stor-layout.c (self_referential_size): Likewise.
2404
2405 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
2406
2407         PR testsuite/44701
2408         * recog.c (constrain_operands): Allow side-effects in memory
2409         operands if either < or > constraint is used, rather than if
2410         both < and > is used.
2411
2412 2010-07-13  Richard Guenther  <rguenther@suse.de>
2413
2414         PR middle-end/44911
2415         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
2416         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
2417         without name.
2418
2419 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2420
2421         PR target/44761
2422         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
2423         to variable emited.
2424         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
2425         * config/sh/sh.md (symGOT_load): Likewise.
2426         (symDTPOFF2reg): Likewise.
2427         (symTPOFF2reg): Likewise.
2428
2429 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2430
2431         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
2432         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
2433
2434 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2435
2436         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
2437         explanation.
2438         Find ucontext_t * on Solaris 11.
2439         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
2440         Handle new Solaris 11 __sighndlr patterns.
2441
2442 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
2443
2444         PR debug/44901
2445         * vec.h (VEC_block_remove): Fix comment.
2446         * tree-ssa-live.c (remove_unused_locals): Don't use
2447         VEC_unordered_remove on local_decls, instead replace a single
2448         vector element in each iteration if at least one element had
2449         to be removed and VEC_truncate at the end.
2450         * omp-low.c (expand_omp_taskreg): Likewise.
2451
2452 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2453
2454         * c-decl.c (finish_function): Fix typo in comment.
2455
2456 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
2457
2458         PR bootstrap/44921
2459         * postreload.c (move2add_use_add3_insn): Silence gcc warning
2460         on min_regno.
2461
2462 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
2463
2464         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
2465         (simplify_stmt_using_ranges): Use it.
2466
2467 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2468
2469         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
2470         member.  Do not mark as GTY(()).
2471         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
2472         (spu_builtin_decls): New static variable.
2473         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
2474         (spu_init_builtins): Likewise.
2475         (spu_builtin_mul_widen_even): Likewise.
2476         (spu_builtin_mul_widen_odd): Likewise.
2477         (spu_builtin_mask_for_load): Likewise.
2478         (spu_builtin_vec_perm): Likewise.
2479         * config/spu/spu-c.c: Include "target.h".
2480         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
2481         of using spu_builtins[].fndecl.
2482
2483 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2484
2485         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
2486         imply -minterlink-mips16.
2487
2488 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2489
2490         * config/mips/mips.h (mips16_globals): Declare.
2491         (SWITCHABLE_TARGET): Define.
2492         * config/mips/mips.c: Include target-globals.h.
2493         (mips16_globals): New variable.
2494         (mips_set_mips16_mode): Use save_target_globals and
2495         restore_target_globals instead of target_reinit.
2496
2497 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2498
2499         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
2500         to say that the function can be called more than once.
2501         * target-globals.c (save_target_globals): Call init_reg_sets.
2502
2503 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2504
2505         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
2506         * bb-reorder.h: New file.
2507         * bb-reorder.c (default_target_bb_reorder): New variable.
2508         (this_target_bb_reorder): New conditional variable.
2509         (uncond_jump_length): Redefine as a macro.
2510         * target-globals.h (this_target_bb_reorder): Declare.
2511         (target_globals): Add a bb_reorder field.
2512         (restore_target_globals): Copy the bb_reorder field to
2513         this_target_bb-reorder.
2514         * target-globals.c: Include bb-reorder.h.
2515         (default_target_globals): Initialize the bb_reorder field.
2516         (save_target_globals): Likewise.
2517
2518 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2519
2520         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
2521         * gcse.h: New file.
2522         * gcse.c: Include gcse.h.
2523         (default_target_gcse): New variable.
2524         (this_target_gcse): New conditional variable.
2525         (can_copy): Redefine as a macro.
2526         (can_copy_init_p): New macro.
2527         (can_copy_p): Remove can_copy_init_p.
2528         * target-globals.h (this_target_gcse): Declare.
2529         (target_globals): Add a gcse field.
2530         (restore_target_globals): Copy the gcse field to this_target_gcse.
2531         * target-globals.c: Include gcse.h.
2532         (default_target_globals): Initialize the gcse field.
2533         (save_target_globals): Likewise.
2534
2535 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2536
2537         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
2538         and x_ira_prohibited_mode_move_regs_initialized_p.
2539         (ira_prohibited_mode_move_regs): Redefine as a macro.
2540         * ira.c (ira_prohibited_mode_move_regs): Delete.
2541         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
2542
2543 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2544
2545         * reload.h (target_reload): Add x_cached_reg_save_code and
2546         x_cached_reg_restore_code.
2547         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
2548         Redefine as macros.
2549
2550 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2551
2552         * Makefile.in (target-globals.o): Depend on builtins.h.
2553         * builtins.h: New file.
2554         * builtins.c: Include builtins.h.
2555         (default_target_builtins): New variable.
2556         (this_target_builtins): New conditional variable.
2557         (apply_args_mode, apply_result_mode): Redefine as macros.
2558         * target-globals.h (this_target_builtins): Declare.
2559         (target_globals): Add a builtins field.
2560         (restore_target_globals): Copy the builtins field to
2561         this_target_builtins.
2562         * target-globals.c: Include builtins.h.
2563         (default_target_globals): Initialize the builtins field.
2564         (save_target_globals): Likewise.
2565
2566 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2567
2568         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
2569         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
2570         from expmed.c.
2571         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
2572         (alg_hash, alg_hash_used_p): New macros.
2573         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
2574         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
2575         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
2576
2577 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2578
2579         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
2580         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
2581         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
2582         (this_op_costs, costs_classes): Redefine as macros.
2583         (record_reg_classes): Don't take op_costs as a parameter.
2584         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
2585         (scan_one_insn): Update call to record_operand_costs.
2586
2587 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2588
2589         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
2590         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
2591         (target_ira_int): New structure.
2592         (default_target_ira_int): Declare.
2593         (this_target_ira_int): Declare as a variable or define as a macro.
2594         (ira_reg_mode_hard_regset, ira_register_move_cost)
2595         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
2596         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
2597         (prohibited_class_mode_regs, ira_important_classes_num)
2598         (ira_important_classes, ira_reg_class_intersect)
2599         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
2600         (ira_reg_class_union): Redefine as macros.
2601         * ira.h (target_ira): New structure.
2602         (default_target_ira): Declare.
2603         (this_target_ira): Declare as a variable or define as a macro.
2604         (ira_available_class_regs, ira_hard_regno_cover_class)
2605         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
2606         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
2607         (ira_class_hard_regs_num): Redefine as macros.
2608         * ira.c (default_target_ira, default_target_ira_int): New variables.
2609         (this_target_ira, this_target_ira_int): New conditional variables.
2610         (ira_reg_mode_hard_regset, ira_memory_move_cost)
2611         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
2612         (ira_class_subset_p): Delete.
2613         (no_unit_alloc_regs): Redefine as a macro.
2614         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
2615         (ira_class_hard_regs_num, ira_class_hard_reg_index)
2616         (ira_available_class_regs): Delete.
2617         (alloc_reg_class_subclasses): Redefine as a macro.
2618         (ira_reg_class_cover_size, ira_reg_class_cover)
2619         (ira_important_classes_num, ira_important_classes)
2620         (ira_important_class_nums, ira_class_translate): Delete.
2621         (cover_class_order): Document the variable's lifetime.
2622         (reorder_important_classes): Don't set ira_important_class_nums.
2623         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
2624         (ira_reg_class_super_classes, ira_reg_class_union)
2625         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
2626         Delete.
2627         (setup_reg_class_nregs): Don't set ira_max_regs.
2628         (prohibited_class_mode_regs): Delete.
2629         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
2630         (target_globals): Add ira and ira_int fields.
2631         (restore_target_globals): Copy the ira field to this_target_ira
2632         and the ira_int field to this_target_ira_int.
2633         * target-globals.c: Include ira-int.h.
2634         (default_target_globals): Initialize the ira and ira_int fields.
2635         (save_target_globals): Likewise.
2636
2637 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2638
2639         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
2640         * cfgloop.h (target_cfgloop): New structure.
2641         (default_target_cfgloop): Declare.
2642         (this_target_cfgloop): Declare as a variable or define as a macro.
2643         (target_avail_regs, target_clobbered_regs, target_res_regs)
2644         (target_reg_cost, target_spill_cost): Redefine as macros.
2645         * cfgloopanal.c (default_target_cfgloop): New variable.
2646         (this_target_cfgloop): New conditional variable.
2647         (target_avail_regs, target_clobbered_regs, target_res_regs)
2648         (target_reg_cost, target_spill_cost): Delete.
2649         * target-globals.h (this_target_cfgloop): Declare.
2650         (target_globals): Add a cfgloop field.
2651         (restore_target_globals): Copy the cfgloop field to
2652         this_target_cfgloop.
2653         * target-globals.c: Include cfgloop.h.
2654         (default_target_globals): Initialize the cfgloop field.
2655         (save_target_globals): Likewise.
2656
2657 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2658
2659         * regs.h (target_regs): Add x_direct_load, x_direct_store and
2660         x_float_extend_from_mem.
2661         (direct_load, direct_store, float_extend_from_mem): New macros.
2662         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
2663
2664 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2665
2666         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
2667         (target-globals.o): Depend on $(LIBFUNCS_H).
2668         * libfuncs.h: Include hashtab.h.
2669         (libfunc_entry): Moved from optabs.c.
2670         (target_libfuncs): New structure.
2671         (default_target_libfuncs): Declare.
2672         (this_target_libfuncs): Declare as a variable or define as a macro.
2673         (libfunc_table): Redefine as a macro.
2674         * optabs.c (default_target_libfuncs): New variable.
2675         (this_target_libfuncs): New conditional variable.
2676         (libfunc_table): Delete.
2677         (libfunc_entry): Moved to optabs.h.
2678         (libfunc_hash): Redefine as a macro.
2679         (hash_libfunc, eq_libfunc): Fix comments.
2680         (init_optabs): Use libfunc_hash to detect cases where the function
2681         has already been called.  Clear the hash table instead of
2682         recreating it.
2683         * target-globals.h (this_target_libfuncs): Declare.
2684         (target_globals): Add a libfuncs field.
2685         (restore_target_globals): Copy the libfuncs field to
2686         this_target_libfuncs.
2687         * target-globals.c: Include libfuncs.h.
2688         (default_target_globals): Initialize the libfuncs field.
2689         (save_target_globals): Likewise.
2690
2691 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2692
2693         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
2694         in all dependency lists.
2695
2696 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2697
2698         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
2699         * optabs.h (target_optabs): New structure.
2700         (default_target_optabs): Declare.
2701         (this_target_optabs): Declare as a variable or define as a macro.
2702         (optab_table, convert_optab_table, direct_optab_table): Redefine
2703         as macros.
2704         * optabs.c (default_target_optabs): New variable.
2705         (this_target_optabs): New conditional variable.
2706         (optab_table, convert_optab_table, direct_optab_table): Delete.
2707         * target-globals.h (this_target_optabs): Declare.
2708         (target_globals): Add a optabs field.
2709         (restore_target_globals): Copy the optabs field to
2710         this_target_optabs.
2711         * target-globals.c: Include expr.h and optabs.h.
2712         (default_target_globals): Initialize the optabs field.
2713         (save_target_globals): Likewise.
2714
2715 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2716
2717         * flags.h (target_flagstate): Add x_flag_excess_precision.
2718         (flag_excess_precision): Redefine as a macro.
2719         * toplev.c (flag_excess_precision): Delete.
2720
2721 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2722
2723         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
2724         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
2725         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
2726         (no_caller_save_reg_set): Redefine as a macro.
2727         * reload.h (target_reload): Add x_caller_save_initialized_p and
2728         x_regno_save_mode.
2729         (caller_save_initialized_p): Redefine as a macro.
2730         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
2731         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
2732         (regno_save_mode): Redefine as a macro.
2733
2734 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2735
2736         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
2737         * expmed.h: New file.
2738         * expmed.c (default_target_costs): New variable.
2739         (this_target_costs): New conditional variable.
2740         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
2741         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
2742         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
2743         * target-globals.h (this_target_expmed): Declare.
2744         (target_globals): Add a expmed field.
2745         (restore_target_globals): Copy the expmed field to
2746         this_target_expmed.
2747         * target-globals.c: Include expmed.h.
2748         (default_target_globals): Initialize the expmed field.
2749         (save_target_globals): Likewise.
2750
2751 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2752
2753         * Makefile.in (target-globals.o): Depend on reload.h.
2754         * reload.h (target_reload): New structure.
2755         (default_target_reload): Declare.
2756         (this_target_reload): Declare as a variable or define as a macro.
2757         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
2758         * reload1.c (default_target_reload): New variable
2759         (this_target_reload): New conditional variable.
2760         (indirect_symref_ok, double_reg_address_ok): Delete.
2761         (spill_indirect_levels): Redefine as a macro.
2762         * target-globals.h (this_target_reload): Declare.
2763         (target_globals): Add a reload field.
2764         (restore_target_globals): Copy the reload field to
2765         this_target_reload.
2766         * target-globals.c: Include hard-reg-set.h.
2767         (default_target_globals): Initialize the reload field.
2768         (save_target_globals): Likewise.
2769
2770 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2771
2772         * rtl.h (target_rtl): Add x_static_reg_base_value.
2773         * alias.c (static_reg_base_value): Redefine as a macro.
2774
2775 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2776
2777         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
2778         (GTFILES): Remove reginfo.c.
2779         * rtl.h (target_rtl): Add x_top_of_stack.
2780         (top_of_stack): New macro.
2781         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
2782         (top_of_stack): Delete.
2783
2784 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2785
2786         * regs.h (target_regs): Add x_hard_regs_of_mode,
2787         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
2788         x_may_move_out_cost and x_last_mode_for_init_move_cost.
2789         (have_regs_of_mode, contains_reg_of_mode, move_cost)
2790         (may_move_in_cost, may_move_out_cost): Redefine as macros.
2791         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
2792         (may_move_in_cost, may_move_out_cost): Delete.
2793         (last_mode_for_init_move_cost): Redefine as a macro.
2794
2795 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2796
2797         * hard-reg-set.h (target_hard_regs): New structure.
2798         (default_target_hard_regs): Declare.
2799         (this_target_hard_regs): Declare as a variable or define as a macro.
2800         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
2801         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
2802         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
2803         (reg_class_size, reg_class_subclasses, reg_class_subunion)
2804         (reg_class_superunion, reg_names): Redefine as macros.
2805         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
2806         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
2807         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
2808         (reg_class_contents, reg_class_size, reg_class_subclasses)
2809         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
2810         (default_target_hard_regs): New variable
2811         (this_target_hard_regs, initial_call_really_used_regs)
2812         (initial_reg_alloc_order): New conditional variables.
2813         (initial_reg_names): New variable.
2814         (init_reg_sets): Assert that initial_call_really_used_regs,
2815         initial_reg_alloc_order and initial_reg_names
2816         are all the same size as their variable counterparts.  Use them to
2817         initialize those counterparts.
2818         * target-globals.h (this_target_hard_regs): Declare.
2819         (target_globals): Add a hard_regs field.
2820         (restore_target_globals): Copy the hard_regs field to
2821         this_target_hard_regs.
2822         * target-globals.c: Include hard-reg-set.h.
2823         (default_target_globals): Initialize the hard_regs field.
2824         (save_target_globals): Likewise.
2825
2826 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2827
2828         * Makefile.in (target-globals.o): Depend on $(RTL_H).
2829         * rtl.h (target_rtl): New structure.
2830         (default_target_rtl): Declare.
2831         (this_target_rtl): Declare as a variable or define as a macro.
2832         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
2833         Redefine as macros.
2834         * emit-rtl.c (default_target_rtl): New variable.
2835         (this_target_rtl): New conditional variable.
2836         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
2837         (return_address_pointer_rtx): Delete.
2838         (initial_regno_reg_rtx): New macro.
2839         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
2840         (init_emit_regs): Likewise.
2841         * target-globals.h (this_target_rtl): Declare.
2842         (target_globals): Add a rtl field.
2843         (restore_target_globals): Copy the rtl field to this_target_rtl.
2844         * target-globals.c: Include rtl.h.
2845         (default_target_globals): Initialize the rtl field.
2846         (save_target_globals): Likewise.
2847
2848 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2849
2850         * Makefile.in (target-globals.o): Depend on $(REGS_H).
2851         * regs.h (target_reg_modes): New structure.
2852         (default_target_reg_modes): Declare.
2853         (this_target_reg_modes): Declare as a variable or define as a macro.
2854         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
2855         * reginfo.c (default_target_reg_modes): New variable.
2856         (this_target_reg_modes): New conditional variable.
2857         (hard_regno_nregs, reg_raw_mode): Delete.
2858         * target-globals.h (this_target_regs): Declare.
2859         (target_globals): Add a regs field.
2860         (restore_target_globals): Copy the regs field to this_target_regs.
2861         * target-globals.c: Include regs.h.
2862         (default_target_globals): Initialize the regs field.
2863         (save_target_globals): Likewise.
2864
2865 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2866
2867         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
2868         * doc/tm.texi: Regenerate.
2869         * Makefile.in (OBJS-common): Add target-globals.o.
2870         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
2871         and target-globals.h.
2872         (target-globals.o): New rule.
2873         (GTFILES): Include $(srcdir)/target-globals.h.
2874         * defaults.h (SWITCHABLE_TARGET): Define.
2875         * gengtype.c (open_base_files): Add target-globals.h to the
2876         list of includes.
2877         * target-globals.h: New file.
2878         * target-globals.c: Likewise.
2879
2880         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
2881         * flags.h (target_flag_state): New structure.
2882         (default_target_flag_state): Declare.
2883         (this_target_flag_state): Declare as a variable or define as a macro.
2884         (align_loops_log): Redefine as a macro.
2885         (align_loops_max_skip, align_jumps_log): Likewise.
2886         (align_jumps_max_skip, align_labels_log): Likewise.
2887         (align_labels_max_skip, align_functions_log): Likewise.
2888         * toplev.c (default_target_flag_state): New variable.
2889         (this_target_flag_state): New conditional variable.
2890         (align_loops_log): Delete.
2891         (align_loops_max_skip, align_jumps_log): Likewise.
2892         (align_jumps_max_skip, align_labels_log): Likewise.
2893         (align_labels_max_skip, align_functions_log): Likewise.
2894         * target-globals.h (this_target_flag_state): Declare.
2895         (target_globals): Add a flag_state field.
2896         (restore_target_globals): Copy the flag_state field to
2897         this_target_flag_state.
2898         * target-globals.c: Include flags.h.
2899         (default_target_globals): Initialize the flag_state field.
2900         (save_target_globals): Likewise.
2901
2902 2010-07-12  Jie Zhang  <jie@codesourcery.com>
2903
2904         * postreload.c (reg_symbol_ref[]): New.
2905         (move2add_use_add2_insn): New.
2906         (move2add_use_add3_insn): New.
2907         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
2908         (move2add_note_store): Likewise.
2909
2910 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
2911
2912         PR rtl-optimization/44752
2913         * genautomata.c (main): Don't emit an empty file even if there
2914         is no automaton.
2915
2916 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2917
2918         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
2919         ix86_solaris_return_in_memory.
2920         * config/i386-protos.h: Reflect this.
2921         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2922         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2923         Move ...
2924         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
2925
2926 2010-07-12  Jie Zhang  <jie@codesourcery.com>
2927
2928         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
2929         align the stack when it's going to be saved.
2930
2931 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2932
2933         PR pch/14940
2934         * config/host-solaris.c (mmap_fixed): New function.
2935         (sol_gt_pch_get_address): Use it.
2936         (sol_gt_pch_use_address): Likewise.
2937
2938 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2939
2940         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2941         pentiumpro on Solaris 8 and 9/x86.
2942         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
2943         Document SSE/SSE2 support.
2944         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
2945
2946 2010-07-12  Andi Kleen  <ak@linux.intel.com>
2947
2948         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
2949         instead of gcc_assert to print better error message for multiple
2950         prevailing defs.
2951
2952 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
2953
2954         * config/i386/i386.c (ix86_asm_output_function_label): Change format
2955         string placeholder from 0x%x to %#x.
2956         (ix86_code_end): Use putc to output '\n'.
2957         (ix86_print_operand) <case ';'>: Use putc to output ';'.
2958
2959 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
2960
2961         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
2962         in directive -export.
2963
2964 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
2965
2966         * reginfo.h (reg_classes_intersect_p): Change arguments type to
2967         reg_class_t.
2968         * rtl.h (reg_classes_intersect_p): Adjust prototype.
2969
2970         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2971         Remove macros.
2972         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
2973         rs6000_memory_move_cost): Remove
2974         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
2975         TARGET_MEMORY_MOVE_COST): Define.
2976         (rs6000_register_move_cost): Make static. Change arguments type from
2977         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
2978         (rs6000_memory_move_cost): Make static. Change arguments type from
2979         'enum reg_class' to reg_class_t.
2980
2981 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
2982
2983         PR middle-end/42505
2984         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
2985         lookup code into....
2986         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
2987         new functions.
2988         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
2989         * cfgloopanal.c (target_clobbered_regs): Define.
2990         (init_set_costs): Initialize target_clobbered_regs.
2991         (estimate_reg_pressure_cost): Add call_p argument.  When true,
2992         adjust the number of available registers to exclude the
2993         call-clobbered registers.
2994         * cfgloop.h (target_clobbered_regs): Declare.
2995         (estimate_reg_pressure_cost): Adjust declaration.
2996         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
2997         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
2998         (determine_set_costs): Dump target_clobbered_regs.
2999         (loop_body_includes_call): New function.
3000         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
3001         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
3002         call_p flag through.
3003         (best_gain_for_invariant): Likewise.
3004         (find_invariants_to_move): Likewise.
3005         (move_single_loop_invariants): Likewise, using already-computed
3006         has_call field.
3007
3008 2010-07-10  Richard Guenther  <rguenther@suse.de>
3009             Joern Rennecke  <joern.rennecke@embecosm.com>
3010
3011         PR debug/44832
3012         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
3013         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
3014         unless they have DECL_IGNORED_P set.
3015
3016 2010-07-10  Richard Guenther  <rguenther@suse.de>
3017
3018         PR lto/44889
3019         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
3020         helper function.
3021         (gimple_types_compatible_p): Similar to pointed-to
3022         types allow and merge a mix of complete and incomplete aggregate.
3023         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
3024         (iterative_hash_gimple_type): Adjust for that.
3025
3026 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
3027
3028         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
3029
3030 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
3031
3032         PR objc/44140
3033         * config/darwin.c (output_objc_section_asm_op): Save and restore
3034         section when outputting ObjC section list.
3035
3036 2010-07-09  Jan Hubicka  <jh@suse.cz>
3037
3038         * lto-streamer-out.c (produce_symtab): Do not write alias
3039         cgraph/varpool nodes.
3040
3041 2010-07-09  Jan Hubicka  <jh@suse.cz>
3042
3043         * tree-inline.c (declare_return_variable): Fix ICE while
3044         inlining DECL_BY_VALUE function not in SSA form
3045
3046 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
3047
3048         PR tree-optimization/44576
3049         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
3050         New.  Pull out from is_loop_prefetching_profitable to implement
3051         the trip count to ahead ratio heuristic.
3052         (mem_ref_count_reasonable_p): New.  Pull out from
3053         is_loop_prefetching_profitable to implement the instruction to
3054         memory reference ratio heuristic.  Also consider not reasonable if
3055         the memory reference count is above a threshold (to avoid
3056         explosive compilation time.
3057         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
3058         is_loop_prefetching_profitable to implement the instruction to
3059         prefetch ratio heuristic.
3060         (is_loop_prefetching_profitable): Removed.
3061         (loop_prefetch_arrays): Distribute the cost analysis across the
3062         function to allow early exit of the prefetch analysis.
3063         is_loop_prefetching_profitable is splitted into three functions,
3064         with each one called as early as possible.
3065         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
3066         number of memory references in a loop is considered too many.
3067
3068 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
3069
3070         * reload.c (find_reloads): Don't clear badop if we have a winreg
3071         alternative, but not win, and the class only has fixed regs.
3072         * hard-reg-set.h (class_only_fixed_regs): Declare.
3073         * reginfo.c (class_only_fixed_regs): New array.
3074         (init_reg_sets_1): Initialize it.
3075         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
3076         discourage alternatives using the stack pointer.
3077
3078         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
3079
3080         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
3081
3082         * config/arm/arm.md (cbranchqi4): Fix array size.
3083         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
3084         calculating length.
3085
3086 2010-07-09  Richard Guenther  <rguenther@suse.de>
3087
3088         * gimple.c (struct type_fixup_s): New struct and VEC type.
3089         (gimple_register_type_fixups): New static global.
3090         (gimple_queue_type_fixup): New function.
3091         (gimple_types_compatible_p): Queue type fixups instead of
3092         applying them here.
3093         (gimple_register_type): Apply queued fixups for the
3094         canonical type.  Empty the type fixup queue.
3095
3096 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3097
3098         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
3099         * configure: Regenerate.
3100         * config.in: Ditto.
3101
3102 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
3103             Denys Vlasenko  <dvlasenk@redhat.com>
3104             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3105
3106         PR tree-optimization/28632
3107         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
3108         (extract_range_from_binary_expr): Further optimize
3109         BIT_AND_EXPR and BIT_IOR_EXPR.
3110
3111 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
3112
3113         * tree-if-conv.c (fold_or_predicates): New.
3114         (add_to_predicate_list): Call it.
3115
3116 2010-07-09  Richard Guenther  <rguenther@suse.de>
3117
3118         PR middle-end/44890
3119         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
3120         if base is a pointer.
3121         * tree-cfg.c (verify_expr): Update MEM_REF checking.
3122
3123 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3124
3125         PR target/44877
3126         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
3127         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
3128         builtin mask for load/store builtins.
3129
3130 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3131
3132         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
3133         for "lock addl".
3134         * configure: Regenerate.
3135         * config/i386/i386.c (ix86_print_operand) <case ';'>:
3136         Remove TARGET_MACHO.
3137
3138 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
3139
3140         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
3141         default ISA flags.
3142         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
3143
3144 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
3145
3146         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
3147
3148 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3149
3150         * config/picochip/picochip.md (commsTestPort): Emit more
3151         efficient sequence for tstport instruction.
3152
3153 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3154
3155         * config/i386/i386.c (ix86_veclib_handler): Make static.
3156
3157 2010-07-09  Richard Guenther  <rguenther@suse.de>
3158
3159         PR tree-optimization/44852
3160         * tree-ssa-alias.c: Include toplev.h for exact_log2.
3161         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
3162         in MEM_REF.
3163         (indirect_refs_may_alias_p): Likewise.
3164         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
3165
3166 2010-07-09  Richard Guenther  <rguenther@suse.de>
3167
3168         PR tree-optimization/44882
3169         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
3170         sets do conflict.
3171         (vectorizable_load): Likewise.
3172
3173 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
3174
3175         PR target/40657
3176         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
3177         All callers changed.
3178         Handle the case when we're called for the epilogue.
3179         (thumb_unexpanded_epilogue): Use it.
3180         (thumb1_expand_epilogue): Likewise.
3181
3182 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
3183
3184         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
3185         both ranges are range_int_cst_p with non-negative minimum,
3186         try harder to derive smaller range.
3187
3188 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3189
3190         * genrecog.c: Include diagnostic-core.h before toplev.h.
3191         * genoutput.c: Likewise.
3192         * genextract.c: Likewise.
3193         * genautomata.c: Likewise.
3194         * genemit.c: Likewise.
3195         * genpeep.c: Likewise.
3196         * genattrtab.c: Likewise.
3197         * genconditions.c: Likewise.
3198         * genpreds.c: Likewise.
3199
3200 2010-07-08  Andi Kleen  <ak@linux.intel.com>
3201
3202         * lto-section-in.c (lto_section_name): Add missing comma.
3203
3204 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
3205
3206         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
3207         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
3208         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
3209         (ia64_override_options): Rename to...
3210         (ia64_option_override): ... this one. Make static.
3211
3212 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3213
3214         PR middle-end/44843
3215         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
3216         pointed-to type of the offset in a MEM_REF to compute the alignment.
3217
3218 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
3219
3220         * final.c (final_scan_insn): Replace
3221         TARGET_UNWIND_INFO macro check by unwind_emit
3222         hook NULL check.
3223         * targhooks.c (default_unwind_emit): Removed.
3224         * targhooks.h (default_unwind_emit): Likewise.
3225         * target.def (unwind_emit): Set default value to NULL.
3226
3227         * config/i386/i386-protos.h (ix86_asm_output_function_label):
3228         New prototype.
3229         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
3230         for NULL fntype argument and allow 64-bit targets.
3231         (ix86_asm_output_function_label): New function.
3232         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
3233         (ix86_handle_fndecl_attribute): Likewise.
3234         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
3235         * doc/doc/tm.texi: Regenerated.
3236         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
3237         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
3238         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
3239         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
3240         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3241         * config/elfos.h: Likewise.
3242         * config/i386/cygming.h: Likewise.
3243         * config/netbsd-aout.h: Likewise.
3244         * config/openbsd.h: Likewise.
3245         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
3246         by ix86_asm_output_function_label function call.
3247         * varasm.c (assemble_start_function): Use
3248         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3249
3250 2010-07-08  Jan Hubicka  <jh@suse.cz>
3251
3252         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
3253         New function.
3254         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
3255         Declare.
3256         * ipa-cp.c (ipcp_estimate_growth): Use it.
3257         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
3258         Likewise.
3259
3260 2010-07-08  Jan Hubicka  <jh@suse.cz>
3261
3262         * tree-inline.c (declare_return_variable): Allocate annotation for new
3263         temporary.
3264
3265 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3266
3267         PR tree-optimization/44710
3268         * tree-if-conv.c (parse_predicate): New.
3269         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
3270         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
3271
3272 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3273
3274         * common.opt (ftree-loop-if-convert): New flag.
3275         * doc/invoke.texi (ftree-loop-if-convert): Documented.
3276         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
3277         when flag_tree_loop_if_convert is set.
3278
3279 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
3280
3281         * config/i386/i386.c: Use short syntax for function calls
3282         through function pointers.
3283         * config/i386/i386.md: Ditto.
3284
3285 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3286
3287         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
3288
3289 2010-07-08  Richard Guenther  <rguenther@suse.de>
3290
3291         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
3292         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
3293
3294 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
3295
3296         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
3297         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
3298         (loc_list_from_tree): Likewise.
3299         (output_loc_operands): Handle outputting DW_OP_const[48]u
3300         with loc->dtprel set.
3301         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
3302
3303 2010-07-08  Jan Hubicka  <jh@suse.cz>
3304
3305         * ipa.c: Include pointer-set.h
3306         (cgraph_externally_visible_p): New attribute ALIASED;
3307         when in LTO, hidden symbols are local unless they are aliased.
3308         (function_and_variable_visibility): Compute aliased nodes;
3309         handle LTO and hidden symbol on functions and vars.
3310         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
3311         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
3312
3313 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3314
3315         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3316         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3317         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3318         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3319         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3320         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
3321         (ix86_gen_probe_stack_range): Likewise.
3322         (override_options): Set them.
3323         (ix86_target_stack_probe): New function.
3324         (ix86_compute_frame_layout): Force use of push instructions to
3325         save registers if stack checking with probes is enabled.
3326         (get_scratch_register_on_entry): New function.
3327         (release_scratch_register_on_entry): Likewise.
3328         (ix86_adjust_stack_and_probe): Likewise.
3329         (output_adjust_stack_and_probe): Likewise.
3330         (ix86_emit_probe_stack_range): Likewise.
3331         (output_probe_stack_range): Likewise.
3332         (ix86_expand_prologue): Emit stack checking code if static built-in
3333         stack checking is enabled.
3334         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
3335         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
3336         (output_adjust_stack_and_probe): Likewise.
3337         (output_probe_stack_range): Likewise.
3338         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3339         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
3340         TARGET_STACK_PROBE.
3341         (allocate_stack_worker_64): Likewise.
3342         (allocate_stack): Likewise.
3343         (adjust_stack_and_probe): New insn.
3344         (probe_stack_range): Likewise.
3345
3346 2010-07-08  Richard Guenther  <rguenther@suse.de>
3347
3348         PR tree-optimization/44831
3349         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
3350         a MEM_REF preserving TBAA info of the original dereference.
3351         Dereference the original pointer if the address is not invariant.
3352         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
3353         at least one invariant address that we are going to dereference.
3354
3355 2010-07-08  Richard Guenther  <rguenther@suse.de>
3356
3357         PR tree-optimization/44861
3358         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
3359         information when building MEM_REFs.
3360         (vectorizable_load): Likewise.
3361         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
3362
3363 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3364
3365         * config/sol2-c.c: Do not include diagnostic-core.h.
3366
3367 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3368
3369         PR bootstrap/44768
3370         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
3371         with respect to current_function_decl. Pass decl of the function.
3372         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
3373         * ipa-inline.c (compute_inline_parameters): Pass decl to
3374         estimated_stack_frame_size.
3375
3376 2010-07-08  Richard Guenther  <rguenther@suse.de>
3377
3378         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3379         New function.
3380         (valueize_refs): Call it.
3381
3382 2010-07-08  Richard Guenther  <rguenther@suse.de>
3383
3384         PR rtl-optimization/44838
3385         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
3386         SSA form do not use pointer equivalence.
3387
3388 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3389
3390         * dwarf2out.c (AT_linkage_name): Delete.
3391         (add_linkage_attr): New function.
3392         (add_linkage_name): Call it to emit the linkage attribute.
3393         (dwarf2out_finish): Likewise.
3394         (move_linkage_attr): Explicitly accept both attribute variants.
3395
3396 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3397
3398         * toplev.h: Do not include diagnostic-core.h.
3399         Include diagnostic-core.h in every file that includes toplev.h.
3400         * c-tree.h: Do not include toplev.h.
3401         * pretty-print.h: Update comment.
3402         * Makefile.in: Update dependencies.
3403         * alias.c: Include diagnostic-core.h in every file that includes
3404         toplev.h.
3405         * attribs.c: Likewise.
3406         * auto-inc-dec.c: Likewise.
3407         * bb-reorder.c: Likewise.
3408         * bt-load.c: Likewise.
3409         * caller-save.c: Likewise.
3410         * calls.c: Likewise.
3411         * cfg.c: Likewise.
3412         * cfganal.c: Likewise.
3413         * cfgbuild.c: Likewise.
3414         * cfgcleanup.c: Likewise.
3415         * cfghooks.c: Likewise.
3416         * cfgloop.c: Likewise.
3417         * combine.c: Likewise.
3418         * config/alpha/alpha.c: Likewise.
3419         * config/arc/arc.c: Likewise.
3420         * config/arm/arm.c: Likewise.
3421         * config/arm/pe.c: Likewise.
3422         * config/avr/avr.c: Likewise.
3423         * config/bfin/bfin.c: Likewise.
3424         * config/cris/cris.c: Likewise.
3425         * config/crx/crx.c: Likewise.
3426         * config/darwin-c.c: Likewise.
3427         * config/darwin.c: Likewise.
3428         * config/fr30/fr30.c: Likewise.
3429         * config/frv/frv.c: Likewise.
3430         * config/h8300/h8300.c: Likewise.
3431         * config/host-darwin.c: Likewise.
3432         * config/i386/i386.c: Likewise.
3433         * config/i386/netware.c: Likewise.
3434         * config/i386/nwld.c: Likewise.
3435         * config/i386/winnt-cxx.c: Likewise.
3436         * config/i386/winnt-stubs.c: Likewise.
3437         * config/i386/winnt.c: Likewise.
3438         * config/ia64/ia64-c.c: Likewise.
3439         * config/ia64/ia64.c: Likewise.
3440         * config/iq2000/iq2000.c: Likewise.
3441         * config/lm32/lm32.c: Likewise.
3442         * config/m32c/m32c-pragma.c: Likewise.
3443         * config/m32c/m32c.c: Likewise.
3444         * config/m32r/m32r.c: Likewise.
3445         * config/m68hc11/m68hc11.c: Likewise.
3446         * config/m68k/m68k.c: Likewise.
3447         * config/mcore/mcore.c: Likewise.
3448         * config/mep/mep-pragma.c: Likewise.
3449         * config/mep/mep.c: Likewise.
3450         * config/mmix/mmix.c: Likewise.
3451         * config/mn10300/mn10300.c: Likewise.
3452         * config/moxie/moxie.c: Likewise.
3453         * config/pa/pa.c: Likewise.
3454         * config/pdp11/pdp11.c: Likewise.
3455         * config/picochip/picochip.c: Likewise.
3456         * config/rs6000/rs6000-c.c: Likewise.
3457         * config/rs6000/rs6000.c: Likewise.
3458         * config/rx/rx.c: Likewise.
3459         * config/s390/s390.c: Likewise.
3460         * config/score/score.c: Likewise.
3461         * config/score/score3.c: Likewise.
3462         * config/score/score7.c: Likewise.
3463         * config/sh/sh.c: Likewise.
3464         * config/sh/symbian-base.c: Likewise.
3465         * config/sh/symbian-c.c: Likewise.
3466         * config/sh/symbian-cxx.c: Likewise.
3467         * config/sol2-c.c: Likewise.
3468         * config/sol2.c: Likewise.
3469         * config/sparc/sparc.c: Likewise.
3470         * config/spu/spu.c: Likewise.
3471         * config/stormy16/stormy16.c: Likewise.
3472         * config/v850/v850-c.c: Likewise.
3473         * config/v850/v850.c: Likewise.
3474         * config/vax/vax.c: Likewise.
3475         * config/vxworks.c: Likewise.
3476         * config/xtensa/xtensa.c: Likewise.
3477         * convert.c: Likewise.
3478         * cse.c: Likewise.
3479         * cselib.c: Likewise.
3480         * dbgcnt.c: Likewise.
3481         * dbxout.c: Likewise.
3482         * ddg.c: Likewise.
3483         * dominance.c: Likewise.
3484         * emit-rtl.c: Likewise.
3485         * explow.c: Likewise.
3486         * expmed.c: Likewise.
3487         * fixed-value.c: Likewise.
3488         * fold-const.c: Likewise.
3489         * fwprop.c: Likewise.
3490         * gcse.c: Likewise.
3491         * ggc-common.c: Likewise.
3492         * ggc-page.c: Likewise.
3493         * ggc-zone.c: Likewise.
3494         * gimple-low.c: Likewise.
3495         * gimplify.c: Likewise.
3496         * graph.c: Likewise.
3497         * haifa-sched.c: Likewise.
3498         * ifcvt.c: Likewise.
3499         * implicit-zee.c: Likewise.
3500         * integrate.c: Likewise.
3501         * ira-build.c: Likewise.
3502         * ira-color.c: Likewise.
3503         * ira-conflicts.c: Likewise.
3504         * ira-costs.c: Likewise.
3505         * ira-lives.c: Likewise.
3506         * ira.c: Likewise.
3507         * lists.c: Likewise.
3508         * loop-doloop.c: Likewise.
3509         * loop-iv.c: Likewise.
3510         * lto-opts.c: Likewise.
3511         * lto-symtab.c: Likewise.
3512         * main.c: Likewise.
3513         * modulo-sched.c: Likewise.
3514         * optabs.c: Likewise.
3515         * params.c: Likewise.
3516         * plugin.c: Likewise.
3517         * postreload-gcse.c: Likewise.
3518         * postreload.c: Likewise.
3519         * predict.c: Likewise.
3520         * profile.c: Likewise.
3521         * real.c: Likewise.
3522         * regcprop.c: Likewise.
3523         * reginfo.c: Likewise.
3524         * regmove.c: Likewise.
3525         * reorg.c: Likewise.
3526         * resource.c: Likewise.
3527         * rtl.c: Likewise.
3528         * rtlanal.c: Likewise.
3529         * sched-deps.c: Likewise.
3530         * sched-ebb.c: Likewise.
3531         * sched-rgn.c: Likewise.
3532         * sdbout.c: Likewise.
3533         * sel-sched-dump.c: Likewise.
3534         * sel-sched-ir.c: Likewise.
3535         * simplify-rtx.c: Likewise.
3536         * stmt.c: Likewise.
3537         * stor-layout.c: Likewise.
3538         * store-motion.c: Likewise.
3539         * targhooks.c: Likewise.
3540         * tree-cfg.c: Likewise.
3541         * tree-cfgcleanup.c: Likewise.
3542         * tree-dump.c: Likewise.
3543         * tree-eh.c: Likewise.
3544         * tree-inline.c: Likewise.
3545         * tree-nomudflap.c: Likewise.
3546         * tree-object-size.c: Likewise.
3547         * tree-optimize.c: Likewise.
3548         * tree-outof-ssa.c: Likewise.
3549         * tree-phinodes.c: Likewise.
3550         * tree-profile.c: Likewise.
3551         * tree-ssa-ccp.c: Likewise.
3552         * tree-ssa-coalesce.c: Likewise.
3553         * tree-ssa-live.c: Likewise.
3554         * tree-ssa-loop-niter.c: Likewise.
3555         * tree-ssa-loop-prefetch.c: Likewise.
3556         * tree-ssa-loop.c: Likewise.
3557         * tree-ssa-structalias.c: Likewise.
3558         * tree-ssa-uninit.c: Likewise.
3559         * tree-ssa.c: Likewise.
3560         * tree-vect-data-refs.c: Likewise.
3561         * tree-vect-loop-manip.c: Likewise.
3562         * tree-vect-loop.c: Likewise.
3563         * tree-vect-patterns.c: Likewise.
3564         * tree-vect-stmts.c: Likewise.
3565         * tree-vrp.c: Likewise.
3566         * varasm.c: Likewise.
3567         * vec.c: Likewise.
3568         * web.c: Likewise.
3569         * xcoffout.c: Likewise.
3570
3571 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
3572
3573         * gengtype.c (write_field_root): New function.
3574         (write_root): Use it.
3575
3576 2010-07-07  Wei Guozhi  <carrot@google.com>
3577
3578         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
3579         of lowest bits to lshift/compare): Add a missing line.
3580
3581 2010-07-07  Wei Guozhi  <carrot@google.com>
3582
3583         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
3584         of lowest bits to lshift/compare): New.
3585
3586 2010-07-07  Tom Tromey  <tromey@redhat.com>
3587
3588         * doc/tm.texi: Update.
3589         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
3590         Add @hook.
3591         * target.def (want_debug_pub_sections): New hook.
3592         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
3593         * dwarf2out.c (add_pubname_string): Check
3594         targetm.want_debug_pub_sections.
3595         (add_pubname): Likewise.
3596         (add_pubtype): Likewise.
3597
3598 2010-07-07  Jie Zhang  <jie@codesourcery.com>
3599
3600         * genautomata.c (output_automata_list_min_issue_delay_code):
3601         Correctly decompress min_issue_delay.
3602
3603 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3604
3605         PR rtl-optimization/44404
3606         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
3607         possible, use reg_overlap_mentioned_p instead.
3608
3609 2010-07-07  Duncan Sands  <baldrick@free.fr>
3610
3611         PR middle-end/41355
3612         * tree.c (build_function_type_skip_args): Copy the original type using
3613         build_distinct_type_copy rather than copy_node.
3614
3615 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3616
3617         PR target/44850
3618         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
3619         revision 161876.
3620         (ix86_expand_prologue): Likewise.
3621         (ix86_handle_fndecl_attribute): Likewise.
3622         (ix86_asm_declare_function_name): Likewise.
3623         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3624         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3625         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
3626         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
3627         * doc/extend.texi: Likewise.
3628
3629 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3630
3631         PR target/44844
3632         * config/i386/i386.md (rdrand<mode>): Changed to expand to
3633         retry if the carry flag isn't valid.
3634         (rdrand<mode>_1): New.
3635
3636 2010-07-07  Richard Guenther  <rguenther@suse.de>
3637
3638         PR middle-end/44790
3639         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
3640         for expanding the constant offset for MEM_REFs.
3641
3642 2010-07-07  Richard Guenther  <rguenther@suse.de>
3643
3644         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
3645         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
3646         * gimple.h (is_gimple_operand): Remove.
3647         * gimple.c (is_gimple_operand): Likewise.
3648         (walk_gimple_op): Fix wi->val_only setting for calls.
3649         * tree-cfg.c (verify_gimple_call): Fix argument validation.
3650         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
3651         invalid gimple calls.
3652
3653 2010-07-06  Jan Hubicka  <jh@suse.cz>
3654
3655         * lto-cgraph.c (output_cgraph): Add missing declaration.
3656
3657 2010-07-06  Jan Hubicka  <jh@suse.cz>
3658
3659         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
3660         partition.
3661
3662 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
3663
3664         * doc/gimple.texi (GIMPLE_DEBUG): Document.
3665         * doc/rtl.texi (Debug Information): New node.
3666         (NOTE_INSN_VAR_LOCATION): Document.
3667         (debug_insn): Likewise.
3668         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
3669
3670 2010-07-07  Jan Hubicka  <jh@suse.cz>
3671
3672         With parts by Richard Guenther.
3673
3674         PR middle-end/44813
3675         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
3676         for functions passed by reference.
3677         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
3678         in memory when passed by reference.
3679         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
3680         beggining.
3681         * ipa-split.c (split_function): Cleanup way return value is passed;
3682         handle SSA DECL_BY_REFERENCE retvals.
3683         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
3684         DECL_BY_REFERENCE is set.
3685         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
3686         find_what_p_points_to): Handle RESULT_DECL.
3687         * tree-inline.c (declare_return_variable): Get new entry_block argument;
3688         when passing by reference ensure that RESULT_DECL is gimple_val.
3689         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
3690         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
3691
3692 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3693
3694         PR rtl-optimization/44787
3695         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
3696         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
3697
3698 2010-07-06  Jan Hubicka  <jh@suse.cz>
3699
3700         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
3701         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
3702         with body can prevail.
3703         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
3704         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
3705         * cgraph.c (cgraph_get_node_or_alias): New function.
3706         * cgraph.h (cgraph_get_node_or_alias): Declare.
3707
3708 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
3709
3710         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
3711         support.
3712         (ix86_expand_prologue): Likewise.
3713         (ix86_handle_fndecl_attribute): Likewise.
3714         (ix86_asm_declare_function_name): New function for
3715         ASM_DECLARE_FUNCTION_NAME.
3716         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
3717         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
3718         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
3719         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
3720         * doc/extend.texi: Adjust documentation about ms_hook_prologue
3721         attribute.
3722
3723 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
3724
3725         * config/i386/i386.md (immediate_operand): New mode attribute.
3726
3727         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
3728         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
3729         using P mode iterator.
3730         (pro_epilogue_adjust_stack_di_2): Rename from
3731         pro_epilogue_adjust_stack_rex64_2.
3732
3733         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
3734
3735 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
3736
3737         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
3738         through gen_mov_insv_1 function pointer.
3739         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
3740         gen_truncxf<mode>2 through gen_truncxf function pointer.
3741         (remainder<mode>3): Ditto.
3742         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
3743         (allocate_stack): Call gen_allocate_stack_worker_64 or
3744         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
3745         function pointer.
3746         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
3747         function pointer.
3748
3749 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
3750
3751         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
3752         operand constraint instead of <r><i>m.
3753
3754 2010-07-06  Richard Guenther  <rguenther@suse.de>
3755
3756         PR middle-end/44828
3757         * convert.c (convert_to_integer): Watch out for overflowing
3758         MULT_EXPR as well.
3759
3760 2010-07-05  Jan Hubicka  <jh@suse.cz>
3761
3762         * lto-streamer.c (write_symbol_vec): Rename to ...
3763         (write_symbol) ... this one; write only symbol given and when
3764         present in cache. Sanity check that what is defined is present
3765         in cgraph/varpool with body/finalized decl.
3766         (write_symbols_of_kind): Remove.
3767         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
3768         pairs to produce symtab.
3769         (produce_asm_for_decls): Update call of produce_symtab; don't do so
3770         when doing WPA streaming.
3771
3772 2010-07-05  Jan Hubicka  <jh@suse.cz>
3773
3774         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
3775         function is still available to fold into.
3776
3777 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3778
3779         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
3780         * function.h (struct_function): Change type of local_decls field
3781         to a VEC.
3782         (add_local_decl): New function.
3783         (FOR_EACH_LOCAL_DECL): New macro.
3784         * cfgexpand.c (init_vars_expansion): Adjust for new type of
3785         cfun->local_decls.
3786         (estimated_stack_frame_size): Likewise.
3787         (expand_used_vars): Likewise.
3788         * cgraphbuild.c (build_cgraph_edges): Likewise.
3789         * function.c (instantiate_decls_1): Likewise.
3790         * ipa-struct-reorg.c (build_data_structure): Likewise.
3791         * ipa-type-escape.c (analyze_function): Likewise.
3792         * lto-streamer-in.c (input_function): Likewise.
3793         * lto-streamer-out.c (output_function): Likewise.
3794         * tree-ssa-live.c (remove_unused_locals): Likewise.
3795         * tree.c (free_lang_data_in_decl): Likewise.
3796         (find_decls_types_in_node): Likewise.
3797         * omp-low.c (remove_exit_barrier): Likewise.
3798         (expand_omp_taskreg): Likewise.
3799         (list2chain): Rename to...
3800         (vec2chain): ...this.  Adjust.
3801         * cgraphunit.c (assemble_thunk): Call add_local_decl.
3802         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
3803         * gimple-low.c (record_vars_into): Likewise.
3804         * tree-inline.c (remap_decls): Likewise.
3805         (declare_return_variable): Likewise.
3806         (declare_inline_vars): Likewise.
3807         (copy_forbidden): Adjust for new type of cfun->local_decls.
3808         (add_local_variables): New function.
3809         (expand_call_inline): Call it.
3810         (tree_function_versioning): Likewise.
3811
3812 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3813
3814         AVX Programming Reference (June, 2010)
3815         * config/i386/cpuid.h (bit_F16C): New.
3816         (bit_RDRND): Likewise.
3817         (bit_FSGSBASE): Likewise.
3818
3819         * config/i386/i386-builtin-types.def: Add
3820         "DEF_FUNCTION_TYPE (UINT16)", function types for
3821         float16 <-> float conversions and
3822         "DEF_FUNCTION_TYPE (VOID, UINT64)".
3823
3824         * config/i386/i386-c.c (ix86_target_macros_internal): Support
3825         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
3826         OPTION_MASK_ISA_F16C.
3827
3828         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
3829         (OPTION_MASK_ISA_RDRND_SET): Likewise.
3830         (OPTION_MASK_ISA_F16C_SET): Likewise.
3831         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
3832         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
3833         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
3834         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
3835         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
3836         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
3837         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
3838         (override_options): Handle them.
3839         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
3840         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
3841         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
3842         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
3843         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
3844         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
3845         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
3846         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
3847         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
3848         (bdesc_args): Likewise.
3849         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
3850         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
3851         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
3852         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
3853         Handle non-memory store.
3854
3855         * config/i386/i386.h (TARGET_FSGSBASE): New.
3856         (TARGET_RDRND): Likewise.
3857         (TARGET_F12C): Likewise.
3858
3859         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
3860         (UNSPEC_VCVTPS2PH): Likewise.
3861         (UNSPECV_RDFSBASE): Likewise.
3862         (UNSPECV_RDGSBASE): Likewise.
3863         (UNSPECV_WRFSBASE): Likewise.
3864         (UNSPECV_WRGSBASE): Likewise.
3865         (UNSPECV_RDRAND): Likewise.
3866         (rdfsbase<mode>): Likewise.
3867         (rdgsbase<mode>): Likewise.
3868         (wrfsbase<mode>): Likewise.
3869         (wrgsbase<mode>): Likewise.
3870         (rdrand<mode>): Likewise.
3871
3872         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
3873
3874         * config/i386/immintrin.h (_rdrand_u16): New.
3875         (_rdrand_u32): Likewise.
3876         (_readfsbase_u32): Likewise.
3877         (_readfsbase_u64): Likewise.
3878         (_readgsbase_u32): Likewise.
3879         (_readgsbase_u64): Likewise.
3880         (_writefsbase_u32): Likewise.
3881         (_writefsbase_u64): Likewise.
3882         (_writegsbase_u32): Likewise.
3883         (_writegsbase_u64): Likewise.
3884         (_rdrand_u64): Likewise.
3885         (_cvtsh_ss): Likewise.
3886         (_mm_cvtph_ps): Likewise.
3887         (_mm256_cvtph_ps): Likewise.
3888         (_cvtss_sh): Likewise.
3889         (_mm_cvtps_ph): Likewise.
3890         (_mm256_cvtps_ph): Likewise.
3891
3892         * config/i386/sse.md (vcvtph2ps): New.
3893         (*vcvtph2ps_load): Likewise.
3894         (vcvtph2ps256): Likewise.
3895         (vcvtps2ph): Likewise.
3896         (*vcvtps2ph): Likewise.
3897         (*vcvtps2ph_store): Likewise.
3898         (vcvtps2ph256): Likewise.
3899
3900         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
3901
3902         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
3903
3904 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
3905
3906         PR bootstrap/44512
3907         * genenums.c (main): Output include of insn-constants.h
3908         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
3909
3910 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
3911
3912         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
3913         (override_options): Initialize it.
3914         (ix86_expand_prologue): Use it.
3915
3916 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
3917
3918         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
3919
3920 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
3921
3922         * double-int.h (fit_double_type): Remove declaration.
3923         * double-int.c (fit_double_type): Remove function.
3924         * tree.h (int_fits_type_p): Adjust prototype.
3925         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
3926         instead of fit_double_type.
3927         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
3928         instead of fit_double_type and build_int_cst_wide.
3929         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
3930         instead of fit_double_type and build_int_cst_wide.
3931         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
3932         of fit_double_type.
3933
3934 2010-07-05  Jan Hubicka  <jh@suse.cz>
3935
3936         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
3937         in_other_partition.
3938         * lto-cgraph.c (referenced_from_other_partition_p,
3939         reachable_from_other_partition_p): Use in_other_partition flags.
3940         (output_node, output_varpool_node): COMDAT nodes always have private
3941         copies and thus are never used from other partition.
3942
3943 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
3944
3945         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3946         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
3947         * config/ia64/ia64.c Include reload.h.
3948         (ia64_memory_move_cost): New function.
3949         (TARGET_MEMORY_MOVE_COST): Define.
3950         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
3951         memory_move_cost.
3952
3953 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
3954
3955         PR middle-end/42505
3956         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
3957         comments about cost model.
3958         (try_add_cand_for):  Add second strategy for choosing initial set
3959         based on original IVs, controlled by ORIGINALP argument.
3960         (get_initial_solution): Add ORIGINALP argument.
3961         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
3962         (find_optimal_iv_set): Try two different strategies for choosing
3963         the IV set, and return the one with lower cost.
3964
3965 2010-07-05  Richard Guenther  <rguenther@suse.de>
3966
3967         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
3968
3969 2010-07-05  Richard Guenther  <rguenther@suse.de>
3970
3971         * tree.c (reference_alias_ptr_type): New function.
3972         * tree.h (reference_alias_ptr_type): Declare.
3973         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
3974         allow non-TARGET_MEM_REF new refs.
3975         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
3976         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
3977         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
3978         (create_mem_ref): Get alias pointer type.  Adjust calls to
3979         create_mem_ref_raw.
3980         (maybe_fold_tmr): Likewise.
3981         * tree-flow.h (create_mem_ref): Adjust prototype.
3982
3983 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
3984
3985         PR c++/44808
3986         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
3987         *from_p is VAR_DECL.
3988
3989 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3990
3991         * tree.h (build_call_list): Remove.
3992         * tree.c (build_call_list): Remove.
3993
3994 2010-07-05  Richard Guenther  <rguenther@suse.de>
3995
3996         * double-int.h (double_int_sub): Declare.
3997         * double-int.c (double_int_sub): New function.
3998         * dwarf2out.c (field_byte_offset): Use it.
3999         * fixed-value.c (do_fixed_add): Likewise.
4000         (do_fixed_multiply): Likewise.
4001         (do_fixed_divide): Likewise.
4002         * tree-predcom.c (add_ref_to_chain): Likewise.
4003         (determine_roots_comp): Likewise.
4004         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
4005
4006 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
4007
4008         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
4009         implementations.
4010
4011 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
4012
4013         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
4014         * arm-modes.def (CC_NOTB): Don't define.
4015         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
4016         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
4017         (LTUGEU): New code_iterator.
4018         (cnb, optab): New corresponding code_attrs.
4019         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
4020         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
4021         using LTUGEU.
4022         (addsi3_carryin_shift_<optab>): Likewise.
4023         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
4024         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
4025         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
4026         (subsi3_compare): Renamed from subsi3_compare0_c.
4027         Change CC_NOTB to CC.
4028         (arm_subsi3_insn): Allow constants for operand 0.
4029         (compare_scc peephole for eq case): New.
4030         (compare_scc splitters): Change CC_NOTB to CC.
4031
4032 2010-07-05  Richard Guenther  <rguenther@suse.de>
4033
4034         * tree-ssa-loop-im.c (for_each_index): Do not handle
4035         ALIGN_INDIRECT_REF.
4036         (gen_lsm_tmp_name): Likewise.
4037         * tree-dump.c (dequeue_and_dump): Likewise.
4038         * tree-pretty-print.c (dump_generic_node): Likewise.
4039         (op_code_prio): Likewise.
4040         (op_symbol_code): Likewise.
4041         * tree.c (staticp): Likewise.
4042         (build1_stat): Likewise.
4043         * tree.h (INDIRECT_REF_P): Likewise.
4044         * fold-const.c (maybe_lvalue_p): Likewise.
4045         (operand_equal_p): Likewise.
4046         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4047         (ao_ref_init_from_vn_reference): Likewise.
4048         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
4049         (find_interesting_uses_address): Likewise.
4050         * dwarf2out.c (loc_list_from_tree): Likewise.
4051         * gimplify.c (gimplify_expr): Likewise.
4052         * tree-eh.c (tree_could_trap_p): Likewise.
4053         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4054         * cfgexpand.c (expand_debug_expr): Likewise.
4055         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4056         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
4057         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
4058         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
4059         * tree-ssa-operands.c (get_expr_operands): Likewise.
4060         * expr.c (safe_from_p): Likewise.
4061         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
4062         * tree-vect-data-refs.c (vect_setup_realignment): Build
4063         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
4064         * tree-vect-stmts.c (vectorizable_load): Likewise.
4065         * tree.def (ALIGN_INDIRECT_REF): Remove.
4066
4067 2010-07-05  Richard Guenther  <rguenther@suse.de>
4068
4069         PR tree-optimization/44784
4070         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
4071         for inserted stmts.
4072         (find_or_generate_expression): Fix SCCVN insertion check.
4073
4074 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4075
4076         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
4077         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
4078         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
4079         directives.
4080
4081 2010-07-05  Ira Rosen  <irar@il.ibm.com>
4082
4083         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
4084         statements that are not vectorized.
4085         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
4086         in INSIDE_COST.
4087
4088 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
4089
4090         PR bootstrap/44820
4091         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
4092
4093 2010-07-05  Richard Guenther  <rguenther@suse.de>
4094
4095         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
4096         RESULT_DECLs properly.
4097
4098 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4099
4100         PR rtl-optimization/44695
4101         * config/i386/i386.md (extract_code): Removed.
4102         (<u>divmodqi4): Likewise.
4103         (divmodqi4): New.
4104         (udivmodqi4): Likewise.
4105         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
4106         (udivmodhiqi3): Likewise.
4107
4108 2010-07-04  Jan Hubicka  <jh@suse.cz>
4109
4110         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
4111
4112 2010-07-04  Jan Hubicka  <jh@suse.cz>
4113
4114         * cgraphunit.c (init_cgraph): Only initialize dump file if it
4115         is not already initialized.
4116
4117 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4118
4119         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
4120         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
4121         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
4122         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
4123         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
4124         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
4125         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
4126         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
4127         (sync_new_nand_optab): Redefine as macros.
4128         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
4129         Delete.
4130         (direct_optab_index): New enum.
4131         (direct_optab_d): New structure.
4132         (direct_optab): New typedef.
4133         (direct_optab_table): Declare.
4134         (direct_optab_handler, set_direct_optab_handler): New functions.
4135         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
4136         (sync_lock_release_optab): New macros.
4137         * optabs.c (direct_optab_table): New variable.
4138         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
4139         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
4140         cmpstr_optab and cmpstrn_optab.
4141         (emit_conditional_move): Likewise for movcc_optab.
4142         (can_conditionally_move_p): Likewise for movcc_gen_code.
4143         (init_insn_codes): Clear direct_optab_table.
4144         (init_optabs): Don't initialize the new "direct optabs" here.
4145         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
4146         vcond_gen_code.
4147         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
4148         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
4149         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
4150         (expand_sync_operation): Likewise other sync_*_optabs.
4151         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
4152         to sync_compare_and_swap_optab.
4153         (expand_sync_lock_test_and_set): Use direct_optab_handler for
4154         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
4155         to the names of both.
4156         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
4157         cmpstr_optab and cmpstrn_optab.
4158         (expand_builtin_lock_release): Likewise sync_lock_release.
4159         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
4160         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
4161         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
4162         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
4163         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
4164         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
4165         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
4166         (sync_lock_test_and_set, sync_lock_release): Delete.
4167         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
4168         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
4169         * genopinit.c (optabs): Use set_direct_optab_handler for the new
4170         macro optabs.
4171         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
4172         the "optab" local variable.  Use direct_optab_handler for optab and
4173         sync_compare_and_swap_optab.
4174         * reload1.c (reload_in_optab, reload_out_optab): Delete.
4175         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
4176         reload_in_optab and reload_out_optab.
4177         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4178         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
4179         * config/pa/pa.c (pa_secondary_reload): Likewise.
4180         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
4181         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
4182         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
4183         (VMSupportsCS8_builtin): Likewise.
4184
4185 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4186
4187         * optabs.h (optab_handlers): Change type of insn_code to int.
4188         (optab_handler, set_optab_handler, convert_optab_handler)
4189         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
4190         CODE_FOR_nothing".
4191         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
4192         (init_insn_codes): Zero both the above arrays.
4193         (init_optabs): Never call init_insn_codes first time around.
4194
4195 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4196
4197         * optabs.h (optab_handler, convert_optab_handler): Turn into
4198         inline functions that return an insn code.
4199         (set_optab_handler, set_convert_optab_handler): New functions.
4200         * builtins.c: Replace optab_handler(X)->insn_code with
4201         optab_handler or set_optab_handler thoughout.  Likewise
4202         convert_optab_handler(X)->insn_code with convert_optab_handler
4203         and set_convert_optab_handler.
4204         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
4205         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
4206         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
4207         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
4208         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
4209         config/spu/spu.c: Likewise.
4210
4211 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4212
4213         PR target/44531
4214         * config.gcc (sh*-*-*): Use regular expressions instead of
4215         the 'i' modifier for sed substitutions.
4216
4217 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
4218
4219         * gimple.c (gimple_body): Comments added.
4220
4221 2010-07-04  Richard Guenther  <rguenther@suse.de>
4222
4223         PR middle-end/44809
4224         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
4225         of an INDIRECT_REF.
4226
4227 2010-07-04  Richard Guenther  <rguenther@suse.de>
4228
4229         PR tree-optimization/44479
4230         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4231         extra SSA name copy statements which preserves points-to
4232         information.
4233         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4234         Copy points-to information for all pointers.  Properly handle
4235         MEM_REFs.
4236         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
4237         copy statements.
4238         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
4239         dependency.
4240
4241 2010-07-04  Richard Guenther  <rguenther@suse.de>
4242
4243         PR middle-end/44785
4244         * tree-inline.c (initialize_inlined_parameters): Do not
4245         re-use pointer-map slot over remap_type call.
4246
4247 2010-07-04  Richard Guenther  <rguenther@suse.de>
4248
4249         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
4250
4251 2010-07-04  Richard Guenther  <rguenther@suse.de>
4252
4253         PR tree-optimization/44656
4254         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
4255         again after value-replacing in the defintions lhs.
4256
4257 2010-07-04  Ira Rosen  <irar@il.ibm.com>
4258             Revital Eres  <eres@il.ibm.com>
4259
4260         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
4261         Document new arguments.
4262         * doc/tm.texi: Regenerate.
4263         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
4264         Handle unaligned store.
4265         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
4266         * target.def (builtin_vectorization_cost): Add new arguments.
4267         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
4268         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
4269         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
4270         (vect_vfa_segment_size): Fix indentation.
4271         * tree-vectorizer.h (struct _vect_peel_info): New.
4272         (struct _vect_peel_extended_info): New.
4273         (struct _loop_vec_info): Add new field for peeling hash table and a
4274         macro for its access.
4275         (VECT_MAX_COST): Define.
4276         (vect_get_load_cost): Declare.
4277         (vect_get_store_cost, vect_get_known_peeling_cost,
4278         vect_get_single_scalar_iteraion_cost): Likewise.
4279         (vect_supportable_dr_alignment): Add new argument.
4280         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
4281         field.
4282         (destroy_loop_vec_info): Free peeling hash table.
4283         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
4284         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
4285         vect_analyze_slp. Fix indentation.
4286         (vect_get_single_scalar_iteraion_cost): New function.
4287         (vect_get_known_peeling_cost): Likewise.
4288         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
4289         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
4290         statement. Move outside cost calculation inside unknown peeling case.
4291         Call vect_get_known_peeling_cost for known amount of peeling.
4292         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
4293         reference to the print message of forced alignment.
4294         (vect_verify_datarefs_alignment): Update call to
4295         vect_supportable_dr_alignment.
4296         (vect_get_data_access_cost): New function.
4297         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
4298         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
4299         vect_peeling_hash_choose_best_peeling): Likewise.
4300         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
4301         to store all the accesses in the loop and find best possible access to
4302         align using peeling for known alignment case. For unknown alignment
4303         check if stores are preferred or if peeling is worthy.
4304         (vect_find_same_alignment_drs): Analyze pairs of loads too.
4305         (vect_supportable_dr_alignment): Add new argument and check aligned
4306         accesses according to it.
4307         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
4308         (cost_for_stmt): Call vect_get_stmt_cost.
4309         (vect_model_simple_cost): Likewise.
4310         (vect_model_store_cost): Call vect_get_stmt_cost. Call
4311         vect_get_store_cost to calculate the cost of the statement.
4312         (vect_get_store_cost): New function.
4313         (vect_model_load_cost): Call vect_get_stmt_cost. Call
4314         vect_get_load_cost to calculate the cost of the statement.
4315         (vect_get_load_cost): New function.
4316         (vectorizable_store): Update call to vect_supportable_dr_alignment.
4317         (vectorizable_load): Likewise.
4318         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
4319         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
4320         arguments. Handle unaligned store.
4321         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
4322         (rs6000_builtin_support_vector_misalignment): Return true for word and
4323         double word alignments for VSX.
4324         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
4325         vect_supportable_dr_alignment and builtin_vectorization_cost.
4326
4327 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4328
4329         PR target/44597
4330         * config/pa/predicates.md (prefetch_cc_operand): Remove.
4331         (prefetch_nocc_operand): Likewise.
4332         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
4333         (prefetch_20): New insn.
4334         (prefetch_cc): Remove.
4335         (prefetch_nocc): Likewise.
4336
4337 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4338
4339         * expr.c (vector_mode_valid_p): Move to c-common.c.
4340         * expr.h (vector_mode_valid_p): Do not declare here.
4341         * system.h: Poison GCC_EXPR_H in front-ends.
4342         * Makefile.in: Update dependencies.
4343
4344 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4345
4346         PR target/44705
4347         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
4348
4349 2010-07-03  Jan Hubicka  <jh@suse.cz>
4350
4351         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
4352         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
4353         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
4354         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
4355         Likewise.
4356
4357         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
4358         Update timevars.V
4359         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
4360         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
4361         TV_IPA_LTO_DECL_OUT): New.
4362         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
4363
4364 2010-07-03  Jan Hubicka  <jh@suse.cz>
4365
4366         * ipa-inline.c (update_edge_key): Break out from ...
4367         update_callers_keys): ... here;
4368         (update_callee_keys): Update only the edges from caller to callee.
4369         (update_all_calle_keys): Do what update_calle_keys did.
4370         (decide_inlining_of_small_functions): Avoid recomputing of all
4371         callees when badness increase.
4372
4373 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4374
4375         * config/arm/arm.c (arm_attr_length_move_neon): New.
4376         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
4377         * config/arm/neon.md (define_mode_attr V_slen): Remove.
4378         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
4379         to compute length attribute.
4380
4381 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4382
4383         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
4384         as predicate for operand 1 and remove its constraint.
4385         * config/arm/predicates.md (vfp_register_operand): New.
4386         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
4387         (*push_fp_multi): Likewise.
4388
4389 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
4390
4391         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
4392
4393 2010-07-03  Jan Hubicka  <jh@suse.cz>
4394
4395         * config/i386/i386.c (override_options): Revert accidental commit.
4396
4397 2010-07-02  Le-Chun Wu  <lcwu@google.com>
4398
4399         PR c++/44128
4400         * doc/invoke.texi: Update documentation of -Wshadow.
4401
4402 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
4403             Julian Brown  <julian@codesourcery.com>
4404             Sandra Loosemore <sandra@codesourcery.com>
4405
4406         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
4407         comparisons.  Adjust to take both operands.
4408         (arm_select_cc_mode): Handle DImode comparisons.
4409         (arm_gen_compare_reg): Generate a scratch register for DImode
4410         comparisons which require one.  Use xor for Thumb equality checks.
4411         (arm_const_double_by_immediates): New.
4412         (arm_print_operand): Allow 'Q' and 'R' for constants.
4413         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
4414         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
4415         arm_canonicalize_comparison.
4416         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
4417         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
4418         prototype.
4419         (arm_const_double_by_immediates): Declare.
4420         * config/arm/constraints.md (Di): New constraint.
4421         * config/arm/predicates.md (arm_immediate_di_operand)
4422         (arm_di_operand, cmpdi_operand): New.
4423         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
4424         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
4425         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
4426         (cstoredi4): Handle non-Cirrus also.
4427
4428 2010-07-02  Julian Brown  <julian@codesourcery.com>
4429             Sandra Loosemore <sandra@codesourcery.com>
4430
4431         PR target/43703
4432         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
4433         (smax<mode>3): Disable for NEON float modes when
4434         flag_unsafe_math_optimizations is false.
4435         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
4436         (*mul<mode>3_neon)
4437         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
4438         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
4439         for NEON float modes when flag_unsafe_math_optimizations is false.
4440         (quad_halves_<code>v4sf): Only enable if
4441         flag_unsafe_math_optimizations is true.
4442         * doc/invoke.texi (ARM Options): Add note about floating point
4443         vectorization requiring -funsafe-math-optimizations.
4444
4445 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4446             Julian Brown  <julian@codesourcery.com>
4447
4448         * config/arm/neon.md (UNSPEC_VABA): Delete.
4449         (UNSPEC_VABAL): Delete.
4450         (UNSPEC_VABS): Delete.
4451         (UNSPEC_VMUL_N): Delete.
4452         (adddi3_neon): New.
4453         (subdi3_neon): New.
4454         (mul<mode>3add<mode>_neon): Make the pattern named.
4455         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
4456         (neon_vadd<mode>): Replace with define_expand, and move the remaining
4457         unspec parts...
4458         (neon_vadd<mode>_unspec): ...to this.
4459         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
4460         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
4461         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
4462         (neon_vaba<mode>): Rewrite in terms of vabd.
4463         (neon_vabal<mode>): Rewrite in terms of vabdl.
4464         (neon_vabs<mode>): Rewrite without unspec.
4465         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
4466         (*arm_subdi3): Likewise.
4467         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
4468         No_op attribute to disable assembly output checks.
4469         * config/arm/arm_neon.h: Regenerated.
4470         * doc/arm-neon-intrinsics.texi: Regenerated.
4471
4472 2010-07-02  Jan Hubicka  <jh@suse.cz>
4473
4474         * ipa-split.c (split_function): For aggregate values, set the return
4475         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
4476         *<retval> = fncall.part ().
4477         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
4478
4479 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4480
4481         * config/arm/neon.md (UNSPEC_VAND): Delete.
4482         (UNSPEC_VBIC): Delete.
4483         (UNSPEC_VCLZ): Delete.
4484         (UNSPEC_VCNT): Delete.
4485         (UNSPEC_VEOR): Delete.
4486         (UNSPEC_VORN): Delete.
4487         (UNSPEC_VORR): Delete.
4488         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
4489         core registers too.
4490         (anddi3_neon): Likewise.
4491         (orndi3_neon): Likewise.
4492         (bicdi3_neon): Likewise.
4493         (xordi3_neon): Likewise.
4494         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
4495         rid of unspec and handle unused operand.
4496         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
4497         * config/arm/predicates.md (imm_for_neon_logic_operand):
4498         Require TARGET_NEON.
4499         (imm_for_neon_inv_logic_operand): Likewise.
4500         * config/arm/arm.md (define_split for logical_binary_operator):
4501         Disable for NEON registers.
4502         (anddi3): Add new define_expand, and rename the insn.  Disable
4503         this insn for NEON, where anddi3_neon now applies.
4504         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
4505         (iordi3): As for anddi3.
4506         (xordi3): Likewise.
4507         * config/arm/neon.ml (Vand): Split DImode variants and mark them
4508         as No_op to disable testing for exact instruction match.
4509         (Vorr): Likewise.
4510         (Veor): Likewise.
4511         (Vbic): Likewise.
4512         (Vorn): Likewise.
4513         * config/arm/arm_neon.h: Regenerated.
4514         * doc/arm-neon-intrinsics.texi: Regenerated.
4515
4516 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4517
4518         * expr.h (emit_stack_probe): Declare.
4519         * explow.c (emit_stack_probe): Make global.
4520         (anti_adjust_stack_and_probe): Fix comments.
4521         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4522         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4523         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4524         * config/sparc/sparc.c: Include except.h.
4525         (sparc_emit_probe_stack_range): New function.
4526         (output_probe_stack_range): Likewise.
4527         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
4528         built-in stack checking is enabled.
4529         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
4530         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4531         (probe_stack_range): New insn.
4532
4533 2010-07-02  Richard Guenther  <rguenther@suse.de>
4534
4535         PR target/43958
4536         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
4537         for argument alignment.
4538
4539 2010-07-02  Jan Hubicka  <jh@suse.cz>
4540
4541         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
4542         walk backwards from entry_bb to check only those basic block of header
4543         that might lead to execution of split part.
4544         (consider_split) ... here.
4545         (find_return_bb): Allow assignment in return BB.
4546         (find_retval): New.
4547         (split_function): Fix name of cloned function; take care of updating
4548         return value in return_bb containing move.
4549
4550 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
4551
4552         PR target/44771
4553         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
4554         used variable insn.
4555
4556 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4557
4558         * implicit-zee.c (combine_reaching_defs): Fix long lines.
4559         (is_set_with_extension_DI): Delete.
4560         (struct zero_extend_info): New structure.
4561         (add_removable_zero_extend): New function.
4562         (find_removable_zero_extends): Use note_stores to find SETs.
4563         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
4564
4565 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
4566
4567         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
4568         is_miss_rate_acceptable. Pull total_positions computation
4569         out of the loops.  Early return if miss_positions exceeds
4570         the acceptable threshold.
4571         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
4572         is_miss_rate_acceptable after renaming of compute_miss_rate.
4573
4574 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
4575
4576         PR middle-end/44576
4577         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
4578         of 1000) for miss rate if the address diference is greater than or
4579         equal to the cache line size (the two reference will never hit the
4580         same cache line).
4581
4582 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
4583
4584         PR target/42835
4585         * config/arm/arm-modes.def (CC_NOTB): New mode.
4586         * config/arm/arm.c (get_arm_condition_code): Handle it.
4587         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
4588         * config/arm/arm.md (subsi3_compare0_c): New pattern.
4589         (compare_scc): Now a define_and_split.  Add a number of extra
4590         splitters before it.
4591
4592         PR target/42172
4593         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
4594         and ZERO_EXTEND.
4595         (arm_rtx_costs_1): Likewise.
4596         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
4597         * config/arm/arm.md (is_arch6): New attribute.
4598         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
4599         extendqisi2): Tighten the code somewhat, avoiding invalid
4600         RTL to occur in the expander patterns.
4601         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
4602         (thumb1_zero_extendhisi2_v6): Delete.
4603         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
4604         (thumb1_extendhisi2_v6): Delete.
4605         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
4606         (thumb1_extendqisi2_v6): Delete.
4607         (zero_extendhisi2 for register input splitter): New.
4608         (zero_extendqisi2 for register input splitter): New.
4609         (thumb1_extendhisi2 for register input splitter): New.
4610         (extendhisi2 for register input splitter): New.
4611         (extendqisi2 for register input splitter): New.
4612         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
4613         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
4614         and add support for a register alternative requiring a split.
4615         (thumb1_zero_extendqisi2): Likewise.
4616         (arm_zero_extendqisi2): Likewise.
4617         (arm_extendhisi2): Likewise.
4618         (arm_extendqisi2): Likewise.
4619
4620 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4621
4622         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
4623         instead of an unspec.
4624         (neon_expand_vector_init): Likewise.
4625         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
4626         (UNSPEC_VDUP_LANE): Delete.
4627         (UNSPEC VDUP_N): Delete.
4628         (UNSPEC_VGET_HIGH): Delete.
4629         (UNSPEC_VGET_LANE): Delete.
4630         (UNSPEC_VGET_LOW): Delete.
4631         (UNSPEC_VMVN): Delete.
4632         (UNSPEC_VSET_LANE): Delete.
4633         (V_double_vector_mode): New.
4634         (vec_set<mode>_internal): Make code emitted match that for the
4635         corresponding intrinsics.
4636         (vec_setv2di_internal): Likewise.
4637         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
4638         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
4639         (neon_vset_lane<mode>): Combine double and quad patterns and
4640         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
4641         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
4642         (neon_vdup_n<mode>): Rewrite RTL without unspec.
4643         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
4644         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
4645         with neon_vdup_lanev2di, adjusting the pattern from the latter
4646         to be predicable for consistency.
4647         (neon_vdup_lane<mode>_internal): New.
4648         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
4649         to avoid using an unspec.
4650         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
4651         (neon_vdup_lanev2di): Turn into a define_expand.
4652         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
4653         (neon_vget_high<mode>): Replace with....
4654         (neon_vget_highv16qi): New pattern using canonical RTL.
4655         (neon_vget_highv8hi): Likewise.
4656         (neon_vget_highv4si): Likewise.
4657         (neon_vget_highv4sf): Likewise.
4658         (neon_vget_highv2di): Likewise.
4659         (neon_vget_low<mode>): Replace with....
4660         (neon_vget_lowv16qi): New pattern using canonical RTL.
4661         (neon_vget_lowv8hi): Likewise.
4662         (neon_vget_lowv4si): Likewise.
4663         (neon_vget_lowv4sf): Likewise.
4664         (neon_vget_lowv2di): Likewise.
4665
4666         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
4667         test for this emitting vmov.
4668         (Vset_lane): Likewise.
4669         (Vdup_n): Likewise.
4670         (Vmov_n): Likewise.
4671
4672         * doc/arm-neon-intrinsics.texi: Regenerated.
4673
4674 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4675
4676         * config/arm/neon.md (vec_extractv2di): Correct error in register
4677         numbering to reconcile with neon_vget_lanev2di.
4678
4679 2010-07-02  Richard Guenther  <rguenther@suse.de>
4680
4681         * tree-ssa-structalias.c (pt_solution_set_var): New function.
4682         * tree-ssa-alias.h (pt_solution_set_var): Declare.
4683         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
4684         points-to information.
4685
4686 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
4687
4688         * config/s390/s390.c (override_options): Adopt prefetching
4689         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
4690
4691 2010-07-02  Jan Hubicka  <jh@suse.cz>
4692
4693         * df-problems.c (df_kill_notes): Do not collect dead  notes.
4694         (df_set_note): Just call add_reg_note.
4695         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
4696         df_create_unused_note): Do not deal with lists of old notes.
4697         (df_note_bb_compute): Likewise.
4698
4699 2010-07-02  Richard Guenther  <rguenther@suse.de>
4700
4701         * tree-ssa-structalias.c (find_func_aliases): Handle
4702         pointer alignment via BIT_AND_EXPR.
4703         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
4704
4705 2010-07-02  Richard Guenther  <rguenther@suse.de>
4706
4707         * tree-data-ref.c (initialize_data_dependence_relation): Handle
4708         mismatching number of dimensions properly.
4709
4710 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4711
4712         PR target/44707
4713         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
4714         (lo_sum (high ...) ...) patterns generated by earlier passes.
4715
4716 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4717
4718         * doc/install.texi (Prerequisites): Document Perl requirement on
4719         Solaris 2.
4720         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
4721
4722 2010-07-02  Richard Guenther  <rguenther@suse.de>
4723
4724         PR middle-end/44777
4725         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
4726
4727 2010-07-02  Jan Hubicka  <jh@suse.cz>
4728
4729         PR middle-end/44706
4730         * predict.c (predict_paths_for_bb): Handle case when control dependence
4731         BB has only abnormal edges.
4732
4733 2010-07-02  Richard Guenther  <rguenther@suse.de>
4734
4735         PR tree-optimization/44748
4736         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
4737         the embedded conversion in MEM_REFs.
4738
4739 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
4740
4741         * reload.c: Include toplev.h.
4742         * recog.c:  Likewise.
4743         * Makefile.in: Adjust dependencies.
4744
4745 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
4746
4747         PR debug/44694
4748         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
4749         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
4750
4751 2010-07-01  Richard Guenther  <rguenther@suse.de>
4752
4753         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
4754         types for offsets.
4755
4756 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4757
4758         PR target/44732
4759         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
4760         Fix argument types.
4761
4762 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
4763
4764         PR target/44727
4765         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4766         Make sure operand 0 dies.
4767
4768 2010-07-01  Richard Guenther  <rguenther@suse.de>
4769
4770         PR middle-end/42834
4771         PR middle-end/44468
4772         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
4773         * doc/generic.texi (References to storage): Document MEM_REF.
4774         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
4775         (print_call_name): Likewise.
4776         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
4777         (build_simple_mem_ref_loc): New function.
4778         (mem_ref_offset): Likewise.
4779         * tree.h (build_simple_mem_ref_loc): Declare.
4780         (build_simple_mem_ref): Define.
4781         (mem_ref_offset): Declare.
4782         * fold-const.c: Include tree-flow.h.
4783         (operand_equal_p): Handle MEM_REF.
4784         (build_fold_addr_expr_with_type_loc): Likewise.
4785         (fold_comparison): Likewise.
4786         (fold_unary_loc): Fold
4787         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
4788         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
4789         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
4790         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
4791         (ptr_deref_may_alias_ref_p_1): Likewise.
4792         (ao_ref_base_alias_set): Properly differentiate base object for
4793         offset and TBAA.
4794         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
4795         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
4796         (indirect_refs_may_alias_p): Likewise.
4797         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
4798         chasing code.
4799         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
4800         (call_may_clobber_ref_p_1): Likewise.
4801         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
4802         * expr.c (expand_assignment): Handle MEM_REF.
4803         (store_expr): Handle MEM_REFs from STRING_CSTs.
4804         (store_field): If expanding a MEM_REF of a non-addressable
4805         decl use bitfield operations.
4806         (get_inner_reference): Handle MEM_REF.
4807         (expand_expr_addr_expr_1): Likewise.
4808         (expand_expr_real_1): Likewise.
4809         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
4810         * alias.c (ao_ref_from_mem): Handle MEM_REF.
4811         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
4812         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
4813         (dr_analyze_indices): Likewise.
4814         (dr_analyze_alias): Likewise.
4815         (object_address_invariant_in_loop_p): Likewise.
4816         * gimplify.c (mark_addressable): Handle MEM_REF.
4817         (gimplify_cond_expr): Build MEM_REFs.
4818         (gimplify_modify_expr_to_memcpy): Likewise.
4819         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
4820         (gimple_fold_indirect_ref): Adjust.
4821         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
4822         * tree.def (MEM_REF): New tree code.
4823         * tree-dfa.c: Include toplev.h.
4824         (get_ref_base_and_extent): Handle MEM_REF.
4825         (get_addr_base_and_unit_offset): New function.
4826         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
4827         * gimple-fold.c (may_propagate_address_into_dereference): Handle
4828         MEM_REF.
4829         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
4830         accesses if the array has just one dimension.  Remove always true
4831         parameter.  Do not require type compatibility here.
4832         (maybe_fold_offset_to_component_ref): Remove.
4833         (maybe_fold_stmt_indirect): Remove.
4834         (maybe_fold_reference): Remove INDIRECT_REF handling.
4835         Fold back to non-MEM_REF.
4836         (maybe_fold_offset_to_address): Simplify.  Deal with type
4837         mismatches here.
4838         (maybe_fold_reference): Likewise.
4839         (maybe_fold_stmt_addition): Likewise.  Also handle
4840         &ARRAY + I in addition to &ARRAY[0] + I.
4841         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
4842         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
4843         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
4844         * tree-ssa.c (useless_type_conversion_p): Make most pointer
4845         conversions useless.
4846         (warn_uninitialized_var): Handle MEM_REF.
4847         (maybe_rewrite_mem_ref_base): New function.
4848         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
4849         to SSA form.
4850         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
4851         INDIRECT_REF handling.
4852         (copy_tree_body_r): Handle MEM_REF.
4853         * gimple.c (is_gimple_addressable): Adjust.
4854         (is_gimple_address): Likewise.
4855         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
4856         invariant base are invariant.
4857         (is_gimple_min_lval): Adjust.
4858         (is_gimple_mem_ref_addr): New function.
4859         (get_base_address): Handle MEM_REF.
4860         (count_ptr_derefs): Likewise.
4861         (get_base_loadstore): Likewise.
4862         * gimple.h (is_gimple_mem_ref_addr): Declare.
4863         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
4864         * tree-cfg.c (verify_address): New function, split out from ...
4865         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
4866         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
4867         INDIRECT_REFs.
4868         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
4869         INDIRECT_REF.  Allow conversions.
4870         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
4871         a register does not change its size.
4872         (verify_types_in_gimple_reference): Verify MEM_REF.
4873         (verify_gimple_assign_single): Disallow INDIRECT_REF.
4874         Handle MEM_REF.
4875         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
4876         New.
4877         (mark_address_taken): Handle MEM_REF.
4878         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
4879         (get_asm_expr_operands): Pass opf_not_non_addressable.
4880         (get_expr_operands): Handle opf_[not_]non_addressable.
4881         Handle MEM_REF.  Remove INDIRECT_REF handling.
4882         * tree-vrp.c (check_array_ref): Handle MEM_REF.
4883         (search_for_addr_array): Likewise.
4884         (check_array_bounds): Likewise.
4885         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
4886         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
4887         (ref_always_accessed_p): Likewise.
4888         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
4889         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
4890         Handle MEM_REF.
4891         * cgraphbuild.c (mark_load): Properly check for NULL result
4892         from get_base_address.
4893         (mark_store): Likewise.
4894         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
4895         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
4896         handling for MEM_REF.
4897         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
4898         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
4899         * builtins.c (stabilize_va_list_loc): Use the function ABI
4900         valist type if we couldn't canonicalize the argument type.
4901         Always dereference with the canonical va-list type.
4902         (maybe_emit_free_warning): Handle MEM_REF.
4903         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
4904         memmove to memcpy.
4905         * builtins.c (fold_builtin_memory_op): Use ref-all types
4906         for all memcpy foldings.
4907         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
4908         (build_outer_var_ref): Likewise.
4909         (scan_omp_1_op): Likewise.
4910         (lower_rec_input_clauses): Likewise.
4911         (lower_lastprivate_clauses): Likewise.
4912         (lower_reduction_clauses): Likewise.
4913         (lower_copyprivate_clauses): Likewise.
4914         (expand_omp_atomic_pipeline): Likewise.
4915         (expand_omp_atomic_mutex): Likewise.
4916         (create_task_copyfn): Likewise.
4917         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
4918         Remove old union trick.  Initialize constant offsets.
4919         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
4920         INDIRECT_REF.  Init base_alias_set properly.
4921         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
4922         (vn_reference_fold_indirect): Adjust for MEM_REFs.
4923         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
4924         for ARRAY_REFs.
4925         (may_insert): Remove.
4926         (visit_reference_op_load): Do not test may_insert.
4927         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
4928         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
4929         a field to store the constant offset this op applies.
4930         (run_scc_vn): Adjust prototype.
4931         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
4932         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
4933         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
4934         bother about volatile qualifiers on pointers.
4935         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
4936         * tree-ssa-loop-ivopts.c
4937         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
4938         (strip_offset_1): Likewise.
4939         (find_interesting_uses_address): Replace INDIRECT_REF handling with
4940         MEM_REF handling.
4941         (get_computation_cost_at): Likewise.
4942         * ipa-pure-const.c (check_op): Handle MEM_REF.
4943         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
4944         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
4945         and constants.
4946         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
4947         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
4948         (eliminate_local_variables_1): Likewise.
4949         (create_call_for_reduction_1): Likewise.
4950         (create_loads_for_reductions): Likewise.
4951         (create_loads_and_stores_for_name): Likewise.
4952         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
4953         (ssa_accessed_in_tree): Handle MEM_REF.
4954         (ssa_accessed_in_assign_rhs): Likewise.
4955         (update_type_size): Likewise.
4956         (analyze_accesses_for_call_stmt): Likewise.
4957         (analyze_accesses_for_assign_stmt): Likewise.
4958         (transform_access_sites): Likewise.
4959         (transform_allocation_sites): Likewise.
4960         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
4961         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4962         not handle INDIRECT_REF.
4963         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
4964         (cond_store_replacement): Likewise.
4965         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
4966         MEM_REF, no not handle INDIRECT_REFs.
4967         (insert_into_preds_of_block): Properly initialize avail.
4968         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
4969         for ARRAY_REFs.  Properly handle reference lookups that
4970         require a bit re-interpretation.
4971         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
4972         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
4973         (build_ref_for_offset_1): Remove.
4974         (build_ref_for_offset): Build MEM_REFs.
4975         (gate_intra_sra): Disable for now.
4976         (sra_ipa_modify_expr): Handle MEM_REF.
4977         (ipa_early_sra_gate): Disable for now.
4978         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
4979         MEM_REF handling.
4980         (disqualify_base_of_expr): Likewise.
4981         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
4982         MEM_REF handling.
4983         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
4984         Use mem_ref_offset.  Remove bogus folding.
4985         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
4986         (make_fancy_name_1): Add support for MEM_REF.
4987         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
4988         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
4989         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
4990         (compute_complex_ancestor_jump_func): Likewise.
4991         (ipa_analyze_virtual_call_uses): Likewise.
4992         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
4993         INDIRECT_REF folding with more generalized MEM_REF folding.
4994         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
4995         (forward_propagate_addr_into_variable_array_index): Also handle
4996         &ARRAY + I in addition to &ARRAY[0] + I.
4997         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
4998         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
4999         creates assignments with overlap.
5000         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
5001         (get_frame_field): Likewise.
5002         (get_nonlocal_debug_decl): Likewise.
5003         (convert_nonlocal_reference_op): Likewise.
5004         (struct nesting_info): Add mem_refs pointer-set.
5005         (create_nesting_tree): Allocate it.
5006         (convert_local_reference_op): Insert to be folded mem-refs.
5007         (fold_mem_refs): New function.
5008         (finalize_nesting_tree_1): Perform defered folding of mem-refs
5009         (free_nesting_tree): Free the pointer-set.
5010         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
5011         (vectorizable_load): Likewise.
5012         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
5013         (propagate_with_phi): Likewise.
5014         * tree-object-size.c (addr_object_size): Handle MEM_REFs
5015         instead of INDIRECT_REFs.
5016         (compute_object_offset): Handle MEM_REF.
5017         (plus_stmt_object_size): Handle MEM_REF.
5018         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
5019         for &MEM_REF.
5020         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
5021         (symbol_marked_for_renaming): Likewise.
5022         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
5023         (fold-const.o): Add $(TREE_FLOW_H).
5024         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
5025         (find_func_clobbers): Likewise.
5026         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
5027         (decompose_access): Likewise.
5028         (replace_field_acc): Likewise.
5029         (replace_field_access_stmt): Likewise.
5030         (insert_new_var_in_stmt): Likewise.
5031         (get_stmt_accesses): Likewise.
5032         (reorg_structs_drive): Disable.
5033         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
5034         (ix86_canonical_va_list_type): Likewise.
5035
5036 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5037
5038         PR other/44566
5039         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
5040         * target.def (struct gcc_target): Replace enum reg_class with
5041         reg_class_t in hook argument / return types.
5042         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
5043         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
5044         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5045         * targhooks.h (default_branch_target_register_class): Likewise.
5046         (default_ira_cover_classes, default_secondary_reload): Likewise.
5047         (default_memory_move_cost, default_register_move_cost): Likewise.
5048         * targhooks.c (default_branch_target_register_class): Likewise.
5049         (default_ira_cover_classes, default_secondary_reload): Likewise.
5050         (default_memory_move_cost, default_register_move_cost): Likewise.
5051         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
5052         * bt-load.c (branch_target_load_optimize): Likewise.
5053         * ira.c (setup_cover_and_important_classes): Likewise.
5054         * ira-costs.c (copy_cost): Likewise.
5055         * reload1.c (emit_input_reload_insns): Likewise.
5056         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5057         * config/frv/frv.c (frv_secondary_reload): Likewise.
5058         * config/s390/s390.c (s390_secondary_reload): Likewise.
5059         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
5060         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
5061         (ix86_register_move_cost): Likewise.
5062         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
5063         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
5064         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
5065         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
5066         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
5067         (rs6000_ira_cover_classes): Likewise.
5068         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
5069         * config/picochip/picochip-protos.h (picochip_secondary_reload):
5070         Likewise.
5071         * config/pa/pa.c (pa_secondary_reload): Likewise.
5072         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
5073         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
5074         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
5075         * doc/tm.texi: Regenerate.
5076
5077 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
5078
5079         PR bootstrrap/44726
5080         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
5081         use.
5082         (build_alias_set_optimal_p): Likewise.
5083         (build_base_obj_set_for_drs): Likewise.
5084
5085 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5086
5087         * target.def: Remove comment about licensing problems of function
5088         declarations.
5089
5090         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
5091         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
5092         * doc/tm.texi: Regenerate.
5093
5094         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
5095         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
5096
5097         * target.def (enum_va_list_p): Use DEFHOOK.
5098         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
5099         Rename ptype to ptree.
5100         * doc/tm.texi: Regenerate.
5101
5102         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
5103         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
5104         * doc/tm.texi: Regenerate.
5105
5106         * target.def (memory_move_cost): Use DEFHOOK.
5107         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
5108         Rename regclass AKA class to rclass.
5109         * doc/tm.texi: Regenerate.
5110
5111         * target.def (pragma_parse): Use DEFHOOK.
5112         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
5113         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
5114         * doc/tm.texi: Regenerate.
5115
5116         * target.def (pass_by_reference): Use DEFHOOK.
5117         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
5118         * doc/tm.texi: Regenerate.
5119
5120         * target.def (resolve_overloaded_builtin): Rename params to arglist.
5121         Use DEFHOOK.
5122         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
5123         * doc/tm.texi: Regenerate.
5124
5125         * target.def (return_pops_args): Use DEFHOOK.
5126         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
5127         Rename stack-size to size.
5128         * doc/tm.texi: Regenerate.
5129
5130         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
5131         last-sched_cycle to last_clock, cur_cycle to clock.
5132         * doc/tm.texi.in: Use @hook.
5133         * doc/tm.texi: Regenerate.
5134
5135         * target.def (print_operand, print_operand_address): Update comment.
5136         (print_operand_punct_valid_p): Likewise.
5137
5138 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5139
5140         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
5141         to rtl.h.
5142         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
5143         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
5144         * rtl-error.h: New.
5145         * regrename.c: Do not include toplev.h. Include rtl-error.h.
5146         * rtl-error.c: Likewise.
5147         * reload.c: Likewise.
5148         * recog.c:  Likewise.
5149         * sel-sched.c: Likewise.
5150         * function.c: Likewise.
5151         * reg-stack.c: Likewise.
5152         * cfgrtl.c: Likewise.
5153         * reload1.c: Likewise.
5154         * final.c: Include rtl-error.
5155         * Makefile.in: Adjust dependencies.
5156
5157 2010-06-30  Jan Hubicka  <jh@suse.cz>
5158
5159         PR middle-end/PR44706
5160         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
5161         to return the value.
5162
5163 2010-06-30  Michael Matz  <matz@suse.de>
5164
5165         PR bootstrap/44699
5166         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
5167         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
5168         a gimple reg, attach the original VDEF to the last store in the
5169         sequence.
5170
5171 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
5172
5173         PR other/44034
5174         * config/darwin.c (darwin_override_options): Use renamed
5175         targetm.asm_out.emit_unwind_label.
5176
5177 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
5178
5179         PR tree-optimization/39799
5180         * tree-inline.c (remap_ssa_name): Initialize variable only if
5181         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5182
5183 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
5184
5185         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
5186
5187 2010-06-30  Richard Guenther  <rguenther@suse.de>
5188
5189         PR target/44722
5190         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
5191         against oscillation with reverse peephole2.
5192
5193 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5194
5195         PR target/44721
5196         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5197         Fix last commit.
5198
5199 2010-06-30  Nick Clifton  <nickc@redhat.com>
5200
5201         * config/rx/rx-modes.def: New file.
5202         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
5203         (CC_REGNUM): Define.
5204         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
5205         register.
5206         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
5207         (SELECT_CC_MODE): Define.
5208         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
5209         (reg:CC CC_REG) instead of (cc0).
5210         (attr "cc"): Delete.
5211         (cbranchsi4): Do not split compare and branch here. Instead move
5212         it to...
5213         (cbranchsi4_<code>): ... here.  New patterns.
5214         (cmpsi): Call rx-compare_redundant to find out if it is necessary
5215         to emit the compare instruction.
5216         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
5217         cc_status flags.
5218         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
5219         FIRST_PSEUDO_REGNUM.
5220         (rx_expand_prologue, rx_expand_epilogue): Likewise.
5221         (rx_notice_update_cc): Delete.
5222         (rx_cc_modes_compatible): New function.
5223         (flags_needed_for_conditional): New function.
5224         (flags_from_mode): New function.
5225         (rx_compare_redundant): New function - scans backwards through
5226         insn list to find out if condition flags are already set correctly.
5227         (TARGET_CC_MODES_COMPATIBLE): Define.
5228         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
5229
5230         * config/rx/rx.h (BRANCH_COST): Define.
5231         (REGISTER_MOVE_COST): Define.
5232         * config/rx/predicates (rx_source_operand): Allow all constant types.
5233         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
5234         (tstsi4): New pattern.
5235         * config/rx/rx.c (rx_memory_move_cost): Define.
5236         (TARGET_MEMORY_MOVE_COST): Define.
5237
5238 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5239
5240         * tree.h (block_may_fallthru): Declare here.
5241         * tree-flow.h (block_may_fallthru): Do not declare here.
5242         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
5243         bitmap.h
5244         * Makefile.in (c-typeck.o): Update dependencies.
5245
5246 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
5247
5248         PR debug/44694
5249         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
5250         * cselib.c (cfa_base_preserved_regno): New static variable.
5251         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
5252         of REGNO (cfa_base_preserved_val->locs->loc).
5253         (cselib_preserve_cfa_base_value): Add regno argument, set
5254         cfa_base_preserved_regno to it.
5255         (cselib_invalidate_regno): Allow removal of registers other than
5256         cfa_base_preserved_regno from cfa_base_preserved_val.
5257         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
5258         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
5259         of MEM addresses, if not on LHS.
5260         (reverse_op): Don't add reverse ops for cfa_base_rtx.
5261         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
5262
5263 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
5264
5265         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
5266         static variables.
5267         (peep2_buf_position): New static function.
5268         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
5269         peephole2_optimize): Use it.
5270         (peep2_attempt, peep2_update_life): New static functions, broken out
5271         of peephole2_optimize.
5272         (peep2_fill_buffer): New static function.
5273         (peephole2_optimize): Change the main loop to try to fill the buffer
5274         with the maximum number of insns before matching them against
5275         peepholes.  Use a forward scan.  Remove special case for targets with
5276         conditional execution.
5277         * genrecog.c (change_state): Delete dead code.
5278         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5279         Rewrite so as not to expect the second insn to have had a peephole
5280         applied yet.
5281
5282 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5283
5284         * genhooks.c (emit_findices): Cast field precision to int.
5285         (emit_documentation): Likewise.
5286
5287 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
5288
5289         PR tree-optimization/43801
5290         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
5291         if old_decl was DECL_ONE_ONLY.
5292
5293         PR debug/44668
5294         * dwarf2out.c (add_accessibility_attribute): New function.
5295         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
5296         instead of adding DW_AT_accessibility manually.
5297         (gen_enumeration_type_die, gen_struct_or_union_type_die,
5298         gen_typedef_die): Use it.
5299
5300 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5301
5302         * vmsdbgout.c (full_name): Just output the file name if not native.
5303
5304 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5305
5306         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
5307         (funcnam_table): New static table.
5308         (funcnum_table): New static table.
5309         (write_rtnbeg): Write value saved in funcnum_table.
5310         (write_rtnend): Write value saved in funcnum_table.
5311         (vmsdbgout_begin_function): Save current function info in
5312         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
5313         (vmsdbgout_finish): Iterate over funcnum_table.
5314
5315 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5316
5317         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
5318         (vmsdbgout_type_decl): Declare
5319         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
5320         (FUNC_EPILOGUE_LABEL): New macro
5321         (vmsdbgout_begin_epilogue): New function.
5322         (vmsdbgout_type_decl): New function.
5323
5324 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5325
5326         * vmsdbg.h: Update copyright.
5327
5328 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5329
5330         * vmsdbg.h (DST_K_TBG): New DST constant.
5331         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
5332         (write_modbeg): Cast module_language to avoid warning.
5333         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
5334
5335 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5336
5337         PR other/44034
5338         * target.def, doc/tm.texi.in, genhooks.c: New files.
5339         * target.h: Instead of defining individual hook members,
5340         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
5341         include target.def.
5342         * target-def.h: Instead of defining individual hook initializers,
5343         include target-hooks-def.h.
5344         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
5345         targetm.live_on_entry -> targetm.extra_live_on_entry
5346         targetm.sched.md_finish ->targetm.sched.finish
5347         targetm.sched.md_init -> targetm.sched.init
5348         targetm.sched.md_init_global -> targetm.sched.init_global
5349         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
5350         targetm.asm_out.except_table_label ->
5351           targetm.asm_out.emit_except_table_label
5352         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
5353         targetm.target_help -> targetm.help
5354         targetm.vectorize.builtin_support_vector_misalignment ->
5355           targetm.vectorize.support_vector_misalignment
5356         targetm.file_start_app_off -> targetm.asm_file_start_app_off
5357         targetm.file_start_file_directive ->
5358          targetm.asm_file_start_file_directive
5359         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
5360         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
5361         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
5362         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
5363           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
5364         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
5365           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
5366         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
5367         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
5368         * Makefile.in (TARGET_H): Depend on target.def.
5369         (TARGET_DEF_H): Depend on target-hooks-def.h.
5370         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
5371         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
5372         * doc/tm.texi: Regenerate.
5373
5374         * Makefile.in (s-tm-texi): Remove stray tab / rule.
5375
5376         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
5377         (targetm.sched.init): Likewise.
5378
5379 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5380
5381         PR bootstrap/44713
5382         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
5383         (function_arg_advance_32): Const-ify TYPE parameter.
5384         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
5385         (ix86_function_arg_advance): Change type of NAMED to bool.
5386         (function_arg_32): Const-ify CUM and TYPE parameters.
5387         (function_arg_64): Likewise.  Change type of NAMED to bool.
5388         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
5389         to bool.
5390         (ix86_function_arg): Change type of NAMED to bool.
5391         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
5392         last argument as a bool.
5393
5394 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5395
5396         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
5397         (OVERRIDE_OPTIONS): Add note of obsolescence.
5398         Replace references with references to TARGET_OPTION_OVERRIDE.
5399         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
5400          the macro).
5401         * targhooks.c (default_target_option_override): New function.
5402         * targhooks.h (default_target_option_override): Declare.
5403         * target.h (struct gcc_target): Add override member to
5404         target_option member.
5405         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
5406         targetm.target_option.override call.
5407         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
5408         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
5409
5410 2010-06-29  Jan Hubicka  <jh@suse.cz>
5411
5412         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
5413
5414 2010-06-29  Jan Hubicka  <jh@suse.cz>
5415
5416         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
5417         unreachable.
5418         (rebuild_frequencies): New function.
5419         * predict.h (rebuild_frequencies): Declare.
5420         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
5421         entry block and edge reaching new_entry.
5422         (tree_function_versioning): When doing partial cloning, rebuild
5423         frequencies when done.
5424         * passes.c (execute_function_todo): Use rebild_frequencies.
5425
5426 2010-06-29  Richard Guenther  <rguenther@suse.de>
5427
5428         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
5429         * tree-flow.h (enum noalias_state): Remove.
5430         (struct var_ann_d): Remove noalias_state member.
5431
5432 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
5433
5434         PR target/43902
5435         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
5436         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
5437         (maddhidi4): Likewise.
5438
5439         Revert parts of the change for PR25130.
5440         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5441         MEM_ALIAS_SET.
5442
5443 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5444
5445         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
5446         targetm.calls.function_incoming_arg, and
5447         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
5448         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
5449         * target.h (struct gcc_target): Add function_arg_advance,
5450         function_arg, and function_incoming_arg fields.
5451         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
5452         (TARGET_FUNCTION_INCOMING_ARG): Define.
5453         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
5454         and TARGET_FUNCTION_INCOMING_ARG.
5455         * targhooks.h (default_function_arg_advance): Declare.
5456         (default_function_arg, default_function_incoming_arg): Declare.
5457         * targhooks.c (default_function_arg_advance): New function.
5458         (default_function_arg, default_function_incoming_arg): New function.
5459         * config/i386/i386.c (function_arg_advance): Rename to...
5460         (ix86_function_arg_advance): ...this.  Make static.
5461         (function_arg): Rename to...
5462         (ix86_function_arg): ...this.  Make static.
5463         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5464         (TARGET_FUNCTION_ARG): Define.
5465         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
5466         (FUNCTION_ARG): Delete.
5467         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
5468         (function_arg): Delete prototype.
5469
5470 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5471
5472         * reginfo.c (init_reg_sets_1): Adjust comments.
5473         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
5474         * calls.c (prepare_call_address): Likewise.
5475         (emit_call_1): Use targetm.calls.return_pops_args.
5476         (expand_call): Likewise.
5477         * function.c (assign_parms): Likewise.
5478         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
5479         * target.h (struct gcc_target) [struct calls]: Add
5480         return_pops_args field.
5481         * targhooks.h (default_return_pops_args): Declare.
5482         * targhooks.c (default_return_pops_args): Define.
5483         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
5484         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
5485         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
5486         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
5487         documentation.
5488         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
5489         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
5490         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
5491         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
5492         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
5493         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
5494         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
5495         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
5496         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
5497         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
5498         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
5499         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
5500         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
5501         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
5502         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
5503         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
5504         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
5505         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
5506         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
5507         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
5508         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
5509         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
5510         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
5511         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
5512         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
5513         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
5514         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
5515         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
5516         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
5517         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
5518         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
5519         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
5520         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
5521         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
5522         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
5523         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
5524         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
5525         * config/i386/i386.c (ix86_return_pops_args): Make static.
5526         Constify arguments.
5527         (TARGET_RETURN_POPS_ARGS): Define.
5528         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
5529         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
5530         (TARGET_RETURN_POPS_ARGS): Define.
5531         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
5532         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
5533         (TARGET_RETURN_POPS_ARGS): Define.
5534
5535 2010-06-29  Richard Guenther  <rguenther@suse.de>
5536
5537         PR middle-end/44667
5538         * tree-inline.c (initialize_inlined_parameters): Make sure
5539         to remap the inlined parameter variable substitutions types.
5540
5541 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
5542
5543         PR rtl-optimization/44659
5544         * combine.c (make_compound_operation) <SUBREG>: Do not return the
5545         result of force_to_mode if it partially re-expanded the compound.
5546
5547 2010-06-28  Jan Hubicka  <jh@suse.cz>
5548
5549         PR middle-end/44671
5550         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
5551         RESULT_DECL.
5552
5553 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
5554
5555         * double-int.h (force_fit_type_double): Remove declaration.
5556         * double-int.c (force_fit_type_double): Move to tree.c.
5557         * tree.h (force_fit_type_double): Declare.
5558         * tree.h (force_fit_type_double): Moved from double-int.c. Use
5559         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
5560         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
5561         * convert.c (convert_to_pointer): Adjust call to
5562         force_fit_type_double.
5563         * tree-vrp.c (extract_range_from_assert,
5564         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
5565         * fold-const.c: Update comment.
5566         (int_const_binop, fold_convert_const_int_from_int,
5567         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
5568         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
5569         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
5570         round_up_loc): Adjust call to force_fit_type_double.
5571
5572 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5573
5574         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
5575
5576 2010-06-28  Martin Jambor  <mjambor@suse.cz>
5577
5578         * tree-sra.c (convert_callers): New parameter, change fndecls of
5579         recursive calls.
5580         (modify_function): Pass the old decl to convert_callers.
5581
5582 2010-06-28  Martin Jambor  <mjambor@suse.cz>
5583
5584         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
5585         ipa_check_create_node_params and ipa_initialize_node_params with
5586         checking asserts they are not necessary.
5587
5588 2010-06-28  Jan Hubicka  <jh@suse.cz>
5589
5590         PR tree-optimization/44687
5591         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
5592
5593 2010-06-28  Martin Jambor  <mjambor@suse.cz>
5594
5595         PR c++/44535
5596         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
5597         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
5598         instead of BINFO_BASE_BINFO.
5599
5600 2010-06-28  Michael Matz  <matz@suse.de>
5601
5602         PR middle-end/44592
5603         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
5604         proper VDEF chain for intermediate stores in the sequence.
5605
5606 2010-06-28  Jan Hubicka  <jh@suse.cz>
5607
5608         PR tree-optimization/44357
5609         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
5610         uninlinable functions.
5611
5612 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5613
5614         * config.gcc (powerpc*-*-*): Handle titan.
5615         * config/rs6000/rs6000.c (titan_cost): New costs.
5616         (rs6000_override_options): Add "titan" to processor_target_table.
5617         Add Titan to branch alignment logic.
5618         Correctly set rs6000_cost for titan.
5619         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
5620         * config/rs6000/titan.md: New file.
5621         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
5622
5623 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
5624
5625         * tree-browser.c (TB_history_stack): Convert to a VEC.
5626         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
5627         (TB_history_prev): Likewise.
5628
5629 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
5630
5631         * vec.h (vec_heap_free): Add parentheses around free.
5632
5633 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
5634
5635         * system.h: Poison GCC_EXCEPT_H for front-end files.
5636
5637         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
5638         langhook.
5639         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
5640         Define to NULL by default.
5641         * except.h: Define GCC_EXCEPT_H.
5642         (doing_eh): Remove prototype.
5643         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
5644         (lang_protect_cleanup_actions): Remove.
5645         * except.c (lang_protect_cleanup_actions): Remove.
5646         (doing_eh): Remove.
5647         (gen_eh_region): Don't check doing_eh here.
5648         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
5649         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
5650         instead of lang_protect_cleanup_actions.
5651         * omp-low.c (maybe_catch_exception): Likewise.
5652         * Makefile.in: Update dependencies.
5653
5654 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
5655
5656         * cgraph.h (struct varpool_node): new used_from_object_file flag.
5657         (struct cgraph_local_info): new used_from_object_file flag.
5658         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
5659         (cgraph_clone_node): initialize used_from_object_file.
5660         (cgraph_create_virtual_clone): initialize used_from_object_file.
5661         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
5662         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
5663         when compiling with -fwhole-program.
5664         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
5665         internal resolver.
5666         * ipa.c (function_and_variable_visibility): Set externally_visible
5667         flag of varpool_node if used_from_object_file flag is set.
5668         (cgraph_externally_visible_p): check used_from_object_file flag.
5669         * doc/invoke.texi (-fwhole-program option): Change description of
5670         externally_visible attribute accordingly.
5671         * doc/extend.texi (externally_visible): Ditto.
5672
5673 2010-06-27  Jan Hubicka  <jh@suse.cz>
5674
5675         * params.def (max-inline-insns-auto): Default to 40.
5676         * doc/invoke.texi (max-inline-insns-auto): Document the change.
5677
5678 2010-06-27  Jan Hubicka  <jh@suse.cz>
5679
5680         PR middle-end/44671
5681         PR middle-end/44686
5682         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
5683         signature change.
5684         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
5685         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
5686
5687 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
5688
5689         * target.h (struct gcc_target): Add register_move_cost field.
5690         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
5691         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
5692         * targhooks.c (default_register_move_cost): New function.
5693         * targhooks.h (default_register_move_cost): Declare function.
5694         * defaults.h (REGISTER_MOVE_COST): Delete.
5695         * ira-int.h (ira_register_move_cost): Update comment.
5696         * ira.c (ira_register_move_cost): Update comment.
5697         * reload.h (register_move_cost): Declare.
5698         * reginfo.c (register_move_cost): New function.
5699         (move_cost): Update comment.
5700         (init_move_cost, memory_move_secondary_cost): Replace
5701         REGISTER_MOVE_COST with register_move_cost.
5702         * postreload.c (reload_cse_simplify_set): (Ditto.).
5703         * reload.c (find_valid_class, find_reloads): (Ditto.).
5704         * reload1.c (choose_reload_regs): (Ditto.).
5705         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
5706         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
5707         * doc/md.texi (can_create_pseudo_p): Update documentation.
5708
5709         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5710         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5711         * config/i386/i386.h (ix86_memory_move_cost): Make static.
5712         (TARGET_MEMORY_MOVE_COST): Define.
5713
5714         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
5715         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
5716         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
5717         (TARGET_MEMORY_MOVE_COST): Define.
5718
5719 2010-06-27  Richard Guenther  <rguenther@suse.de>
5720
5721         PR tree-optimization/44683
5722         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
5723         false edge from the inverted condition.
5724
5725 2010-06-27  Richard Guenther  <rguenther@suse.de>
5726
5727         PR middle-end/44684
5728         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
5729         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
5730         for register LHS.  Or non-store assignments.
5731
5732 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
5733
5734         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
5735         (sparc_emit_set_const64): Likewise.  Remove disabled code.
5736         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
5737         (sparc_emit_set_const64): Likewise.
5738
5739 2010-06-26  Catherine Moore  <clm@codesourcery.com>
5740
5741         * config/mips/mips.md (alu_type): New attribute.
5742         (type): Infer type from alu_type.
5743         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
5744         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
5745         *subsi3_extended, negsi2, negdi2, *low<mode>,
5746         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
5747         xor<mode>3, *nor<mode>3,
5748         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
5749         *zero_extendhi_truncqi):  Set alu_type instead of type.
5750
5751 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
5752
5753         * config/alpha/alpha.c (alpha_need_linkage): Adjust
5754         splay_tree_new_ggc call.
5755         (alpha_use_linkage): Likewise.
5756
5757 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
5758
5759         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
5760         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
5761         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
5762         (static_specs): Remove switches_need_spaces.
5763         (process_command, do_self_spec): Hardcode handling "-o" instead of
5764         checking switches_need_spaces.
5765         * system.h (SWITCHES_NEED_SPACES): Poison.
5766
5767 2010-06-26  Richard Guenther  <rguenther@suse.de>
5768
5769         PR tree-optimization/44393
5770         * tree-loop-distribution.c (generate_loops_for_partition): Fix
5771         stmt removal and VOP renaming.
5772         (generate_memset_zero): Remove redundant stmt updating.
5773         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
5774         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
5775
5776 2010-06-26  Jan Hubicka  <jh@suse.cz>
5777
5778         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
5779         edges comming from header are equivalent.
5780         (visit_bb): Handle PHIs correctly.
5781         * tree-inline.c (copy_phis_for_bb): Be able to copy
5782         PHI from entry edge.
5783         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
5784
5785 2010-06-26  Richard Guenther  <rguenther@suse.de>
5786
5787         PR middle-end/44674
5788         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
5789         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
5790
5791 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
5792
5793         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
5794         add_infile, alloc_switch): New.
5795         (process_command): Remove variable lang_n_infiles.  Process
5796         options in a single pass.  Use new functions for allocating
5797         infiles and switches arrays.  Properly skip operands of
5798         -Xpreprocessor and -Xassembler.
5799
5800 2010-06-26  Jan Hubicka  <jh@suse.cz>
5801
5802         PR middle-end/44671
5803         * cgraphunit.c (cgraph_function_versioning): Remove wrong
5804         cgraph_make_decl_local call; fix typo copying RTL data.
5805
5806 2010-06-25  DJ Delorie  <dj@redhat.com>
5807
5808         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
5809         (m32c_output_aligned_common): Likewise.
5810         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
5811         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
5812         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
5813         (m32c_register_pragmas): Register it.
5814         * config/m32c/m32c.c (m32c_get_pragma_address): New.
5815         (m32c_insert_attributes): Set #pragma address decls volatile.
5816         (pragma_entry_eq): New.
5817         (pragma_entry_hash): New.
5818         (m32c_note_pragma_address): New.
5819         (m32c_get_pragma_address): New.
5820         (m32c_output_aligned_common): New.
5821         * doc/extend.texi: Document the new pragma.
5822
5823         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
5824         also.
5825         * config/m32c/predicates.md (m32c_any_operand): Check the code
5826         instead of memory_operand so as to allow matching volatile MEMs.
5827         (m32c_nonimmediate_operand): Likewise.
5828         (mra_operand): Allow volatiles.
5829
5830 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
5831
5832         PR debug/44610
5833         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
5834         address if the offset is unknown.
5835
5836 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
5837
5838         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
5839         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
5840         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
5841         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
5842         to ia64_start_function. Invoke it.
5843         * config/ia64/ia64.c (ia64_start_function): Call new function
5844         dwarf2out_vms_debug_main_pointer.
5845
5846 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5847
5848         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
5849         statements computing the true predicate.
5850
5851 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5852
5853         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
5854         to boolean_true_node.
5855         (reset_bb_predicate): New.
5856         (predicate_bbs): Call reset_bb_predicate.
5857
5858 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5859
5860         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
5861         (tree_if_conversion): Returns true when something has been changed.
5862         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
5863         changed something.
5864
5865 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5866
5867         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
5868         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
5869         * tree-if-conv.c: Include dbgcnt.h.
5870         (tree_if_conversion): Use if_conversion_tree to count the number of
5871         if-convertible loops.
5872
5873 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
5874
5875         * common.opt (fprefetch-loop-arrays): Re-define
5876         -fprefetch-loop-arrays as a tri-state option with the initial
5877         value of -1.
5878         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
5879         pass only when flag_prefetch_loop_arrays > 0.
5880         * toplev.c (process_options): Note that, with tri-states,
5881         flag_prefetch_loop_arrays>0 means prefetching is enabled.
5882         * config/i386/i386.c (override_options): Enable prefetching at -O3
5883         for a set of CPUs that sw prefetching is helpful.
5884         (software_prefetching_beneficial_p): New.  Return TRUE if software
5885         prefetching is beneficial for the given CPU.
5886
5887 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5888
5889         PR rtl-optimization/44326
5890         * implicit-zee.c (find_removable_zero_extends): Replace
5891         INSN_P with NONDEBUG_INSN_P.
5892
5893 2010-06-25  Martin Jambor  <mjambor@suse.cz>
5894
5895         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
5896         (struct ipa_node_params): Removed the modification_analysis_done flag.
5897         (ipa_is_param_modified): Removed.
5898         (ipa_analyze_node): Declare.
5899         (ipa_compute_jump_functions): Remove declaration.
5900         (ipa_count_arguments): Likewise.
5901         (ipa_detect_param_modifications): Likewise.
5902         (ipa_analyze_params_uses): Likewise.
5903         * ipa-prop.c (struct param_analysis_info): New type.
5904         (visit_store_addr_for_mod_analysis): Removed.
5905         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
5906         moved down in the file.
5907         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
5908         (ipa_count_arguments): Made static.
5909         (mark_modified): New function.
5910         (is_parm_modified_before_call): New function.
5911         (compute_pass_through_member_ptrs): New parameter parms_info, call
5912         is_parm_modified_before_call instead of ipa_is_param_modified.
5913         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
5914         it to compute_pass_through_member_ptrs.
5915         (ipa_compute_jump_functions): New parameter parms_info, pass it to
5916         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
5917         on the callee if it is analyzed.  Made static.
5918         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
5919         is_parm_modified_before_call instead of ipa_is_param_modified.
5920         (ipa_analyze_call_uses): New parameter parms_info, pass it to
5921         ipa_analyze_indirect_call_uses.
5922         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
5923         ipa_analyze_call_uses.
5924         (ipa_analyze_params_uses): New parameter parms_info, pass it to
5925         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
5926         (ipa_analyze_node): New function.
5927         (ipa_print_node_params): Do not dump the modified flag.
5928         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
5929         it.  Do not stream the modified parameter flag.
5930         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
5931         it.  Do not stream the modified parameter flag.
5932         * ipa-cp.c (ipcp_analyze_node): Removed.
5933         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
5934         with only a call to ipa_analyze_node.
5935         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
5936         node with only a call to ipa_analyze_node.
5937
5938 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5939
5940         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
5941
5942 2010-06-25  Jan Hubicka  <jh@suse.cz>
5943
5944         * tree-pass.h (pass_split_functions): Declare.
5945         * opts.c (decode_options): Enable function splitting at -O2
5946         * timevar.def (TV_IPA_FNSPLIT): New macro.
5947         * ipa-split.c: New file.
5948         * common.opt (-fpartial-inlining): New flag.
5949         * Makefile.in (ipa-split.o): New object file.
5950         * passes.c (init_optimization_passes): Add ipa-split.
5951         * params.def (partial-inlining-entry-probability): New parameters.
5952         * doc/invoke.texi (-fpartial-inlining): New.
5953
5954 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5955
5956         PR 44665
5957         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
5958         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
5959         (gimplify_expr): Likewise.
5960
5961 2010-06-25  Martin Jambor  <mjambor@suse.cz>
5962
5963         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
5964         statements instead of bailing out on them.
5965         (ipa_analyze_indirect_call_uses): Do not require that loads from the
5966         parameter are in the same BB as the condition.  Update comments.
5967
5968 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
5969
5970         PR middle-end/43866
5971         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
5972         true or always false, return NULL_TREE.
5973         (tree_unswitch_single_loop): Optimize conditions even when reaching
5974         max-unswitch-level parameter.  If num > 0, optimize first all conditions
5975         using entry checks, then do still reachable block discovery and consider
5976         only conditions in still reachable basic blocks in the loop.
5977
5978         PR tree-optimization/44539
5979         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
5980         the call doesn't have LHS, but has VDEF.
5981
5982 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
5983
5984         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
5985         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
5986         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
5987         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
5988         * system.h (MODIFY_TARGET_NAME): Poison.
5989
5990 2010-06-25  Alan Modra  <amodra@gmail.com>
5991
5992         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
5993         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
5994         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5995         CMODEL_LARGE as default.
5996         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
5997         (offsettable_ok_by_alignment): Delete.
5998         (rs6000_emit_move): Remove mcmodel=medium optimization.
5999
6000 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
6001
6002         With large parts from Jim Wilson:
6003         PR target/43902
6004         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
6005         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6006         * optabs.c (optab_for_tree_code): Likewise.
6007         (expand_widen_pattern_expr): Likewise.
6008         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
6009         out of execute_optimize_widening_mul.
6010         (convert_plusminus_to_widen): New function.
6011         (execute_optimize_widening_mul): Use the two new functions.
6012         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
6013         Remove code to generate widening multiply-accumulate.  Add support
6014         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6015         * gimple-pretty-print.c (dump_ternary_rhs): New function.
6016         (dump_gimple_assign): Call it when appropriate.
6017         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
6018         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6019         (expand_gimple_stmt_1): Likewise.
6020         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
6021         WIDEN_MULT_MINUS_EXPR.
6022         * tree-ssa-operands.c (get_expr_operands): Likewise.
6023         * tree-inline.c (estimate_operator_cost): Likewise.
6024         * gimple.c (extract_ops_from_tree_1): Renamed from
6025         extract_ops_from_tree.  Add new arg for a third operand; fill it.
6026         (gimple_build_assign_stat): Support operations with three operands.
6027         (gimple_build_assign_with_ops_stat): Likewise.
6028         (gimple_assign_set_rhs_from_tree): Likewise.
6029         (gimple_assign_set_rhs_with_ops_1): Renamed from
6030         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
6031         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
6032         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
6033         WIDEN_MULT_MINUS_EXPR.
6034         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
6035         (extract_ops_from_tree_1): Adjust declaration.
6036         (gimple_assign_set_rhs_with_ops_1): Likewise.
6037         (gimple_build_assign_with_ops): Pass NULL for last operand.
6038         (gimple_build_assign_with_ops3): New macro.
6039         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
6040         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
6041         functions.
6042         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
6043         (verify_gimple_assign): Call it.
6044         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
6045         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
6046         functions for dealing with three-operand statements.
6047         * tree.c (commutative_ternary_tree_code): New function.
6048         * tree.h (commutative_ternary_tree_code): Declare it.
6049         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
6050         ternary statements.
6051         (gimple_assign_nonzero_warnv_p): Likewise.
6052         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
6053         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
6054         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
6055         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
6056         (struct hashtable_expr): New member ternary in the union.
6057         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
6058         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
6059         (iterative_hash_hashable_expr): Likewise.
6060         (print_expr_hash_elt): Handle EXPR_TERNARY.
6061         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
6062         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
6063         statements.  Handle GIMPLE_TERNARY_RHS.
6064
6065 2010-06-25  Jan Hubicka  <jh@suse.cz>
6066
6067         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
6068
6069 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
6070
6071         PR c/44517
6072         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
6073         parameters are not good.
6074         (c_parser_parameter_declaration): Error unknown type name if the type
6075         name can't start declaration specifiers.
6076
6077 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
6078
6079         * gcc.c (translate_options): Don't mention +e in comment.
6080         (process_command): Don't handle +e specially.
6081
6082 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
6083
6084         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
6085
6086         * ira-build.c (merge_hard_reg_conflicts): New function.
6087         (create_cap_allocno, copy_info_to_removed_store_destinations,
6088         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
6089         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
6090         (remove_unnecessary_allocnos, remove_low_level_allocnos)
6091         copy_nifo_to_removed_store_destination): Use them.
6092         * ira-lives.c (make_hard_regno_born): New function, split out of
6093         make_regno_born.
6094         (make_allocno_born): Likewise.
6095         (make_hard_regno_dead): New function, split out of make_regno_dead.
6096         (make_allocno_dead): Likewise.
6097         (inc_register_pressure): New function, split out of set_allocno_live.
6098         (dec_register_pressure): New function, split out of clear_allocno_live.
6099         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
6100         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
6101         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
6102         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
6103         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
6104         mark_pseudo_regno_live.
6105         (process_bb_node_lives): Use mark_pseudo_regno_live,
6106         make_hard_regno_born and make_allocno_dead.
6107         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
6108         set_allocno_live, clear_allocno_live): Delete functions.
6109
6110         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
6111         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
6112         functions.
6113         (ira_flattening): Use ira_parent_allocno.
6114         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
6115         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
6116
6117         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
6118         statement.
6119
6120         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
6121         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
6122         minmax_set_iter_cond, minmax_set_iter_next,
6123         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
6124         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
6125         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
6126         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
6127         uses changed.
6128
6129         * ira-int.h (struct live_range, live_range_t): Renamed from struct
6130         ira_allocno_live_range and allocno_live_range_t; all uses changed.
6131         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
6132         All uses changed.
6133
6134 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
6135
6136         * thumb2.md (thumb2_tlobits_cbranch): Delete.
6137         (peephole2 to convert zero_extract/compare of single bit to
6138          lshift/compare): New.
6139
6140 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
6141
6142         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
6143         recursive call and call to 'int_const_binop'.
6144         (build_range_check, fold_cond_expr_with_comparison, unextend,
6145         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
6146         multiple_of_p): Adjust call to const_binop.
6147
6148 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
6149
6150         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
6151         determine size of XFmode operand.
6152         (XFmode extended DFmode push splitter): Ditto.
6153         (XFmode extended SFmode push splitter): Ditto.
6154
6155 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
6156
6157         PR target/44588
6158         * config/i386/i386.md (extract_code): New.
6159         (<u>divmodqi4): Likewise.
6160         (divmodhiqi3): Likewise.
6161         (udivmodhiqi3): Likewise.
6162         (<u>divqi3): Remvoved.
6163
6164 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
6165
6166         PR middle-end/44492
6167         * recog.h (struct recog_data): Add is_asm field.
6168         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
6169         present in constraints of inline-asm operand and memory operand
6170         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
6171         (extract_insn): Initialize recog_data.is_asm.
6172         * doc/md.texi (Constraints): Document operand side-effect rules.
6173
6174 2010-06-24  Andi Kleen  <ak@linux.intel.com>
6175
6176         * c-parser.c (c_parser_conditional_expression): Call
6177         warn_for_omitted_condop.
6178         * doc/invoke.texi: Document omitted condop warning.
6179
6180 2010-06-24  Nick Clifton<nickc@redhat.com>
6181
6182         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
6183         insn in the sequence is a jump insn before setting its label.
6184
6185 2010-06-24  Alan Modra  <amodra@gmail.com>
6186
6187         * collect2.c (main): Match exactly --version and --help.
6188
6189 2010-06-24  DJ Delorie  <dj@redhat.com>
6190
6191         * config/m32c/m32c-pragma.c: Don't include rtl.h.
6192
6193 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
6194
6195         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
6196         using X87MODEF mode iterator.
6197         (pushsf splitter): Macroize splitter using P mode iterator.
6198         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
6199         mode iterator.
6200
6201         (*movxf_internal): Rename from *movxf_integer.
6202         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
6203         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
6204         (*movdf_internal): Rename from *movdf_integer.
6205         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
6206         (*movsf_internal): Rename from *movdf_1.
6207
6208 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
6209
6210         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
6211         (const_gimple_seq_node): Removed typedefs.
6212
6213         * gimple.h (gimple_seq_node_d, gimple_seq_node)
6214         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
6215
6216 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
6217
6218         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
6219         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
6220         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
6221         and CODE_FOR_vec_extract_lo_v4df.
6222
6223         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
6224         Changed to define_insn_and_split.
6225         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
6226         (vec_extract_lo_v16hi): Likewise.
6227         (vec_extract_lo_v32qi): Likewise.
6228         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6229         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
6230
6231 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
6232
6233         PR target/44640
6234         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
6235         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
6236         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
6237         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
6238         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
6239
6240         PR target/44640
6241         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
6242
6243         PR other/44644
6244         * df-core.c (struct df): Rename to df_d.
6245         * df.h (struct df): Likewise.
6246         * dse.h (struct df): Remove forward declaration.
6247         * recog.h (struct insn_data): Rename to:
6248         (struct_insn_data_d).  Adjusted all users.
6249
6250 2010-06-23  Arnaud Charlet  <charlet@adacore.com
6251
6252         PR ada/22220
6253         * doc/install.texi: Update requirements to build GNAT.
6254
6255 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
6256
6257         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
6258         enum type.
6259         (m68k_sched_attr_opx_type): Remove unreachable return.
6260         (m68k_sched_attr_opy_type): Likewise.
6261         (m68k_sched_attr_size): Likewise.
6262         (sched_get_opxy_mem_type): Likewise.
6263         (m68k_sched_attr_op_mem): Likewise.
6264
6265 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
6266
6267         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
6268         new statement and adjust VDEF only if necessary.  Remove superfluous
6269         call to maybe_clean_or_replace_eh_stmt.
6270         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
6271         copy the flags.
6272         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
6273         * tree-inline.c (copy_bb): ...and not there.
6274
6275 2010-06-22  Cary Coutant  <ccoutant@google.com>
6276
6277         * dwarf2out.c (is_nested_in_subprogram): New function.
6278         (should_move_die_to_comdat): Use it.
6279         (copy_ancestor_tree): Don't mark DIEs here.
6280         (copy_decls_walk): Start walk from root of newly-added tree;
6281         mark DIEs here instead.
6282
6283 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
6284
6285         * config/i386/i386.md (unit): Also check sseishft1.
6286
6287 2010-06-22  Jan Hubicka  <jh@suse.cz>
6288
6289         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
6290         enabled.
6291
6292 2010-06-22  Jan Hubicka  <jh@suse.cz>
6293
6294         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
6295         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
6296         Return true if something changed.
6297         * df.h (df_confluence_function_n): Return bool.
6298         * df-core.c (df_worklist_propagate_forward,
6299         df_worklist_propagate_backward): Track changes and ages.
6300         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
6301         track ages.
6302         * dse.c (dse_confluence_n): Return always true.
6303
6304 2010-06-22  Jan Hubicka  <jh@suse.cz>
6305
6306         * bitmap.c (bitmap_clear_bit): Micro optimize.
6307
6308 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
6309
6310         * config/i386/i386.md (SWI1248x): New mode iterator.
6311         (SWI48x): Ditto.
6312         (SWI12): Ditto.
6313         (SWI24): Ditto.
6314
6315         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
6316         SWI1248x mode iterator.
6317         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
6318         using SWI124 mode iterator.
6319         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
6320         mode iterator.
6321         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
6322         *pushdi2_prologue_rex64 using P mode iterator.
6323         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
6324         using SWI48 mode iterator.
6325         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
6326         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
6327         using SWI1248x mode iterator.
6328         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
6329         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
6330         SWI48 mode iterator.
6331         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
6332         iterator.
6333         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
6334         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
6335         SWI12 mode iterator.
6336         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
6337         SWI12 mode iterator.
6338         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
6339         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
6340         SWI24 mode iterator.
6341         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
6342         SWI48 mode iterator.
6343         (mov<mode>_insn_1): New expander.
6344         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
6345         using SWI48x mode iterator.
6346
6347         (*movoi_internal_avx): Rename from *movoi_internal.
6348         (*movti_internal_rex64): Rename from *movti_rex64.
6349         (*movti_internal_sse): Rename from *movti_sse.
6350         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
6351         (*movdi_internal): Rename from *movdi_2.
6352         (*movsi_internal): Rename from *movsi_1.
6353         (*movhi_internal): Rename from *movhi_1.
6354         (*movqi_internal): Rename from *movqi_1.
6355
6356         (insv): Update the call to gen_movsi_insv_1 for rename.
6357         * config/i386/i386.c (promote_duplicated_reg): Ditto.
6358
6359 2010-06-22  Jan Hubicka  <jh@suse.cz>
6360
6361         * passes.c (execute_function_todo): Move call of statistics_fini_pass
6362         to ...
6363         (execute_todo) ... this one.
6364
6365 2010-06-22  Alan Modra  <amodra@gmail.com>
6366
6367         PR target/44364
6368         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6369         * caller-save.c (insert_restore, insert_save): Use non-validate
6370         form of adjust_address.
6371
6372 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6373
6374         PR target/39690
6375         * config/pa/pa.c (override_options): Disable
6376         -freorder-blocks-and-partition.
6377
6378 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
6379
6380         PR target/44615
6381         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
6382
6383         * config/i386/i386.md (type): Add sseishft1
6384
6385         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
6386         (ppro_insn_load): Likewise.
6387         (ppro_insn_store): Likewise.
6388         (ppro_insn_both): Likewise.
6389
6390         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
6391         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
6392         for type.
6393         (*vec_extractv2di_1_avx): Likewise.
6394         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
6395         type.  Remove atom_unit.
6396         (*vec_extractv2di_1_sse2): Likewise.
6397
6398 2010-06-21  DJ Delorie  <dj@redhat.com>
6399
6400         * diagnostic.h (diagnostic_classification_change_t): New.
6401         (diagnostic_context): Add history and push/pop list.
6402         (diagnostic_push_diagnostics): Declare.
6403         (diagnostic_pop_diagnostics): Declare.
6404         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
6405         from pragmas in a history chain instead of the global table.
6406         (diagnostic_push_diagnostics): New.
6407         (diagnostic_pop_diagnostics): New.
6408         (diagnostic_report_diagnostic): Scan history chain to find state
6409         of diagnostics as of the diagnostic location.
6410         * opts.c (set_option): Pass UNKNOWN_LOCATION to
6411         diagnostic_classify_diagnostic.
6412         (enable_warning_as_error): Likewise.
6413         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
6414         use in the history chain.
6415         * doc/extend.texi: Document pragma GCC diagnostic changes.
6416
6417 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
6418
6419         * dwarf2out.c (add_linkage_name): New function.  Don't add
6420         anything to DW_TAG_member DIEs.
6421         (add_name_and_src_coords_attributes): Use it.
6422         (gen_variable_die): Call it for C++ static data members if
6423         specification is DW_TAG_member.
6424
6425         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
6426         C++ char16_t and char32_t.
6427
6428         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
6429         * genattrtab.c: Include vecprim.h.
6430         (cached_attrs, cached_attr_count, attrs_seen_once,
6431         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
6432         attrs_cached_after): New variables.
6433         (find_attrs_to_cache): New function.
6434         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
6435         (write_test_expr): Add attrs_cached argument, return it too,
6436         attempt to cache non-const attributes used more than once in
6437         a single case handling.
6438         (write_attr_get): Use find_attrs_to_cache, for caching candidates
6439         emit cached_* variables.  Adjust write_attr_set callers.
6440         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
6441         to find attributes that should be cached in this block.  Adjust
6442         write_test_expr callers.
6443         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
6444         callers.
6445         (make_automaton_attrs): Adjust write_test_expr caller.
6446
6447         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
6448         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
6449         (make_automaton_attrs): If find_tune_attr returns non-NULL,
6450         write separate internal_dfa_insn_code_* and insn_default_latency_*
6451         functions for each attribute's value and emit init_sched_attrs
6452         function and function pointers.
6453         * genattr.c (const_attrs, reservations): New variables.
6454         (gen_attr): Add const attributes to const_attrs vector.
6455         (check_tune_attr, find_tune_attr): New functions.
6456         (main): Add reservations to reservations vector.  If find_tune_attr
6457         returns true, add prototype for init_sched_attrs and make
6458         internal_dfa_insn_code and insn_default_latency function pointers,
6459         otherwise define init_sched_attrs as dummy macro.
6460         * cfgexpand.c: Include insn-attr.h.
6461         (gimple_expand_cfg): Call init_sched_attrs.
6462
6463         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
6464
6465         PR target/44575
6466         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
6467         va_arg from a set of register save slots into a temporary,
6468         if the container is bigger than type size, do the copying
6469         using smaller mode or using memcpy.
6470
6471         PR bootstrap/44426
6472         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
6473         prototype.
6474         (sel_print_to_dot): Remove macro.
6475         (sel_print): Likewise.  New prototype.
6476         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
6477         (sel_print): New function.
6478
6479 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6480
6481         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
6482         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
6483
6484 2010-06-21  Nick Clifton  <nickc@redhat.com>
6485
6486         * config/rx/rx.h (PTRDIFF_TYPE): Define.
6487         (SMALL_REGISTER_CLASS): Define (to zero).
6488         (PRINT_OPERAND): Delete.
6489         (PRINT_OPERAND_ADDRESS): Delete.
6490         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
6491         (rx_print_operand_address): Delete prototype.
6492         * config/rx/rx.c (rx_print_operand): Make static.
6493         Allow %H and %L to handle CONST_DOUBLEs.
6494         (rx_print_operand_address): Make static.
6495         (rx_gen_move_template): Rename local variable 'template' to
6496         out_template.
6497         (rx_function_arg): Do not pass unknown sized objects in registers.
6498         (TARGET_PRINT_OPERAND): Define.
6499         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6500
6501 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6502
6503         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
6504
6505 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
6506
6507         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
6508         stack-alignment for simple leaf-functions.
6509
6510 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
6511
6512         * doc/install.texi: Document bootstrap-lto.
6513
6514 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
6515
6516         PR debug/44248
6517         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
6518         (input_function): Drop them here, if VTA is disabled.
6519
6520 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
6521
6522         PR target/44546
6523         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
6524         New predicate.
6525         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
6526         ix86_swapped_fp_comparsion_operator instead of
6527         ix86_fp_comparison_operator.
6528
6529         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
6530         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
6531         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
6532         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
6533         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
6534         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
6535
6536 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
6537
6538         PR other/32998
6539         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
6540         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
6541         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
6542         (decode_cmdline_option): Update for this return value.  Set
6543         orig_option_with_args_text field.  Set arg field for unknown
6544         options.  Make static.
6545         (decode_cmdline_options_to_array): New.
6546         (prune_options): Update handling of find_opt return value.
6547         * opts.c (read_cmdline_option): Take decoded option.  Return void.
6548         (read_cmdline_options): Take decoded options.
6549         (decode_options): Add parameters for decoded options.  Use
6550         decode_cmdline_options_to_array.  Use decoded options for -O
6551         scan.  Use integral_argument for -O parameters.  Update call to
6552         read_cmdline_options.
6553         (enable_warning_as_error): Update handling of find_opt return value.
6554         * opts.h: Update comment on unknown options.
6555         (struct cl_decoded_option): Update comments on opt_index and arg.
6556         Add orig_option_with_args_text.
6557         (decode_cmdline_option): Remove.
6558         (decode_cmdline_options_to_array): Declare.
6559         (decode_options): Update prototype.
6560         * toplev.c (save_argv): Remove.
6561         (save_decoded_options, save_decoded_options_count): New.
6562         (read_integral_parameter): Remove.
6563         (print_switch_values): Use decoded options.
6564         (toplev_main): Don't set save_argv.  Update call to decode_options.
6565         * toplev.h (read_integral_parameter): Remove.
6566         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
6567
6568 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
6569
6570         PR target/44072
6571         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
6572         immediate.
6573         * constraints.md (Pw, Px): New constraints.
6574         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
6575
6576 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
6577
6578         * config/i386/sse.md (fma4modesuffixf4): Removed.
6579         (ssemodesuffixf2s): Likewise.
6580         (ssemodesuffixf4): Likewise.
6581         (ssemodesuffixf2c): Likewise.
6582         (ssescalarmodesuffix2s): Likewise.
6583         (avxmodesuffixf2c): Likewise.
6584         (ssemodesuffix): New.
6585         (ssescalarmodesuffix): Likewise.
6586         Update patterns with ssemodesuffix and ssescalarmodesuffix.
6587
6588 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
6589
6590         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
6591
6592 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6593
6594         * stor-layout.c (debug_rli): Remove unused local variables.
6595
6596 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
6597
6598         PR rtl-optimization/40900
6599         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
6600         original expression for later reuse.
6601         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
6602         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
6603
6604 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
6605
6606         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
6607         double_int_fits_in_uhwi_p): Implement as static inline.
6608         (double_int_xor): New inline function.
6609         (double_int_lrotate, double_int_rrotate, double_int_max,
6610         double_int_umax, double_int_smax, double_int_min, double_int_umin,
6611         double_int_smin): Declare.
6612         (lrotate_double, rrotate_double): Remove declaration.
6613         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
6614         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
6615         (double_int_lrotate, double_int_rrotate, double_int_max,
6616         double_int_umax, double_int_smax, double_int_min, double_int_umin,
6617         double_int_smin): New function.
6618         * fold-const.c (int_const_binop): Clean up, use double_int_*
6619         functions.
6620         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
6621         double_int_* and immed_double_int_const functions.
6622
6623 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
6624
6625         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
6626         * function.c (types_used_by_cur_var_decl): Likewise.
6627         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
6628
6629 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
6630
6631         * tree.h (record_layout_info): Change type of pending_statics field
6632         to a VEC.
6633         * stor-layout.c (start_record_layout): Store NULL into
6634         pending_statics.
6635         (debug_rli): Call debug_vec_tree instead of debug_tree.
6636         (place_field): Likewise.
6637         (finish_record_layout): Likewise.
6638
6639 2010-06-18  Alan Modra  <amodra@gmail.com>
6640
6641         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
6642
6643 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6644
6645         PR target/43740
6646         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
6647         for SET source operand from SET destination operand.
6648
6649 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
6650
6651         PR rtl-optimization/39871
6652         * reload1.c (init_eliminable_invariants): For flag_pic, disable
6653         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
6654         (function_invariant_p): Rule out a plus of frame or arg pointer with
6655         a SYMBOL_REF.
6656         * ira.c (find_reg_equiv_invariant_const): Likewise.
6657
6658 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
6659
6660         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
6661         print_operand_address and puts to output the operand for CONST.
6662
6663 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
6664
6665         PR debug/44572
6666         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
6667         hook.
6668
6669 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6670
6671         * v850-protos.h (print_operand): Delete.
6672         (print_operand_address): Delete.
6673         * v850.h (PRINT_OPERAND): Delete.
6674         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6675         (PRINT_OPERAND_ADDRESS): Delete.
6676         * v850.c (print_operand_address): Rename to...
6677         (v850_print_operand_address): ...this.  Make static. Call
6678         v850_print_operand.
6679         (print_operand): Rename to...
6680         (v850_print_operand): ...this.  Make static.  Call
6681         v850_print_operand_address.
6682         (v850_print_operand_punct_valid_p): New function.
6683         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6684         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6685
6686 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6687
6688         * config/sh/sh-protos.h (print_operand): Delete.
6689         (print_operand_address): Delete.
6690         * config/sh/sh.h (PRINT_OPERAND): Delete.
6691         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6692         (PRINT_OPERAND_ADDRESS): Delete.
6693         * config/sh/sh.c (sh_print_operand_address): Make static.
6694         (sh_print_operand): Make static.  Call sh_print_operand_address
6695         and sh_print_operand.
6696         (sh_print_operand_punct_valid_p): New function.
6697         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6698         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6699
6700 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6701
6702         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
6703         (mcore_print_operand_address): Delete.
6704         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
6705         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6706         (PRINT_OPERAND_ADDRESS): Delete.
6707         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
6708         (mcore_print_operand): Make static.
6709         (mcore_print_operand_punct_valid_p): New function.
6710         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
6711         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6712
6713 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6714
6715         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
6716         (print_operand_address): Delete.
6717         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
6718         (PRINT_OPERAND_ADDRESS): Delete.
6719         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
6720         static.
6721         (m68hc11_print_operand): Make static.
6722         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6723
6724 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6725
6726         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
6727         (m32r_print_operand_address): Delete.
6728         * config/m32r/m32r.h (m32r_punct_chars): Delete.
6729         (PRINT_OPERAND): Delete.
6730         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6731         (PRINT_OPERAND_ADDRESS): Delete.
6732         * config/m32r/m32r.c (m32r_punct_chars): Make static.
6733         (m32r_print_operand_address): Make static.
6734         (m32r_print_operand): Make static.
6735         (m32r_print_operand_punct_valid_p): New function.
6736         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6737         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6738
6739 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6740
6741         * config/iq2000/iq2000-protos.h (print_operand): Delete.
6742         (print_operand_address): Delete.
6743         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
6744         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6745         (PRINT_OPERAND_ADDRESS): Delete.
6746         (iq2000_print_operand_punct): Delete.
6747         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
6748         (iq2000_print_operand_address): Make static.
6749         (iq2000_print_operand): Make static.
6750         (iq2000_print_operand_punct_valid_p): New function.
6751         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6752         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6753
6754 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6755
6756         * config/frv/frv-protos.h (frv_print_operand): Delete.
6757         (frv_print_operand_address): Delete.
6758         * config/frv/frv.h (PRINT_OPERAND): Delete.
6759         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6760         (PRINT_OPERAND_ADDRESS): Delete.
6761         * config/frv/frv.c (frv_print_operand_address): Make static.
6762         (frv_print_operand): Make static.
6763         (frv_print_operand_punct_valid_p): New function.
6764         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6765         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6766
6767 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6768
6769         * tree.h (vec_member): Declare.
6770         * tree.c (vec_member): Define.
6771
6772 2010-06-17  Richard Guenther  <rguenther@suse.de>
6773
6774         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
6775         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
6776
6777 2010-06-17  Richard Guenther  <rguenther@suse.de>
6778
6779         * tree-inline.c (declare_return_variable): Remove bogus code.
6780
6781 2010-06-17  Richard Guenther  <rguenther@suse.de>
6782
6783         * gimplify.c (gimplify_bind_expr): Always promote complex
6784         and vector variables to registers if possible.
6785
6786 2010-06-17  Richard Guenther  <rguenther@suse.de>
6787
6788         * expr.c (get_inner_reference): Use double_int for bit_offset
6789         calculation.
6790
6791 2010-06-16  DJ Delorie  <dj@redhat.com>
6792
6793         * common.opt (-fstrict-volatile-bitfields): new.
6794         * doc/invoke.texi: Document it.
6795         * fold-const.c (optimize_bit_field_compare): For volatile
6796         bitfields, use the field's type to determine the mode, not the
6797         field's size.
6798         * expr.c (expand_assignment): Likewise.
6799         (get_inner_reference): Likewise.
6800         (expand_expr_real_1): Likewise.
6801         * expmed.c (store_fixed_bit_field): Likewise.
6802         (extract_bit_field_1): Likewise.
6803         (extract_fixed_bit_field): Likewise.
6804
6805 2010-06-16  Richard Guenther  <rguenther@suse.de>
6806
6807         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
6808
6809 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
6810
6811         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
6812         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
6813         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
6814         * debug.c: Likewise.
6815         * sdbout.c: Likewise.
6816         * vmsdbgout.c: Likewise.
6817         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
6818         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
6819         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
6820         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
6821         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
6822         * dwarf2out.c (dw_fde_struct): New fields
6823         dw_fde_vms_{end,begin}_prologue.
6824         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
6825         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
6826         (dwarf2out_vms_end_prologue): New function.
6827         (dwarf2out_vms_begin_epilogue): New function.
6828         (dw_val_struct): New value dw_val_class_vms_delta.
6829         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
6830         begin_epilogue for VMS.
6831         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
6832         new static functions.
6833         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
6834         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
6835         static functions.
6836         (print_die): New case dw_val_class_vms_delta.
6837         (attr_checksum): Likewise.
6838         (same_dw_val_p: Likewise.
6839         (size_of_die): Likewise.
6840         (value_format): Likewise.
6841         (output_die): Likewise.
6842         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
6843         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
6844         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
6845         dwarf2out_cfi_begin_epilogue
6846         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
6847
6848 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
6849
6850         * config/cris/cris-protos.h (cris_print_operand): Delete.
6851         (cris_print_operand_address): Delete.
6852         * config/cris/cris.h (PRINT_OPERAND): Delete.
6853         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6854         (PRINT_OPERAND_ADDRESS): Delete.
6855         * config/cris/cris.c (cris_print_operand_address): Make static.
6856         (cris_print_operand): Make static.
6857         (cris_print_operand_punct_valid_p): New function.
6858         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6859         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6860
6861 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
6862
6863         * config/arm/arm-protos.h (arm_print_operand): Delete.
6864         (arm_print_operand_address): Delete.
6865         * config/arm/arm.h (PRINT_OPERAND): Delete.
6866         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6867         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
6868         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
6869         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
6870         (arm_print_operand): Make static.
6871         (arm_print_operand_punct_valid_p): New function.
6872         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6873         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6874
6875 2010-06-16  Nick Clifton  <nickc@redhat.com>
6876
6877         * config/rx/constraints.md (NEGint4): New constraint.
6878         * config/rx/rx.md (attr cc): Add set_zsc.
6879         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
6880         initialised.
6881         (cmpsf): Likewise.
6882         (call_internal): Clobber the cc0 register.
6883         (call_value_internal): Likewise.
6884         (cstoresi4): Likewise.
6885         (movsieq): Likewise.
6886         (movsine): Likewise.
6887         (addsi3): Add alternative to handle small negative constants.
6888         (sunsi3): Likewise.
6889         (addsi3): Do not set the O bit in the cc0 register.
6890         (adddi3): Likewise.
6891         (subsi3): Likewise.
6892         (subdi3): Likewise.
6893         (andsi3): Reorder alternatives to prefer shorter forms.
6894         (mulsi3): Likewise.
6895         (iorsi3): Likewise.
6896         (negsi2): Note that the cc0 flags are set.
6897         (rotlsi3): Note that only the Z and S bits are set in cc0.
6898         (lshrsi3): Likewise.
6899         (ashlsi3): Likewise.
6900         (subsf3): Use %Q for the MEM operand.
6901         (fix_truncsfsi2): Likewise.
6902         (floatsisf2): Likewise.
6903         (bitset): Remove early clobber from destination.
6904         (bitset_in_memory): Likewise.
6905         (lrintsf2): Clobber the cc0 register.
6906         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
6907         (rx_print_operand): Handle %N.
6908
6909 2010-06-16  Jan Hubicka  <jh@suse.cz>
6910
6911         * df-core.c (df_compact_blocks): Free problem_temps vector.
6912
6913 2010-06-16  Martin Jambor  <mjambor@suse.cz>
6914
6915         PR tree-optimization/43905
6916         * tree-sra.c: Include tree-inline.h.
6917         (create_abstract_origin): Removed.
6918         (modify_function): Version the call graph node instead of creating
6919         abstract origins and dealing with same_body aliases.
6920         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
6921         function is versionable.
6922         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
6923
6924 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
6925
6926         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
6927         (CHOOSE_DYNAMIC_LINKER): Update.
6928
6929 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
6930
6931         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
6932         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
6933         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
6934         *prefetch_3dnow_rex.
6935
6936 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
6937
6938         * target.h (struct asm_out):Add declare_constant_name field.
6939         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6940         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
6941         * output.h (default_asm_declare_constant_name): Declare.
6942         (assemble_label): Update prototype.
6943         * varasm.c (assemble_constant_contents): Use
6944         targetm.asm_out.declare_constant_name target hook.
6945         (assemble_label): Add 'file' argument.
6946         (default_asm_declare_constant_name): New function.
6947         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
6948         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
6949         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
6950
6951         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
6952         * config/darwin.c (darwin_asm_declare_constant_name): New function.
6953         (machopic_output_indirection): Update assemble_label argument list.
6954         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
6955         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6956
6957 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
6958
6959         PR middle-end/44391
6960         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6961         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
6962
6963 2010-06-15  Richard Guenther  <rguenther@suse.de>
6964
6965         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
6966
6967 2010-06-15  Paul Brook  <paul@codesourcery.com>
6968
6969         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
6970         hard-float ABI.
6971
6972 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
6973
6974         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
6975         don't get a vector type for output.
6976
6977 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
6978
6979         PR fortran/44536
6980         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
6981         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
6982         (LANG_HOOKS_DECLS): Add it.
6983         * gimplify.c (omp_notice_variable): Call
6984         lang_hooks.decls.omp_report_decl.
6985
6986 2010-06-15  Martin Jambor  <mjambor@suse.cz>
6987
6988         PR lto/44464
6989         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
6990         on the newly dead SSA name.
6991
6992 2010-06-15  Alan Modra  <amodra@gmail.com>
6993
6994         * doc/invoke.texi: Add mcmodel to powerpc options.
6995         * configure.ac: Add HAVE_LD_LARGE_TOC test.
6996         * configure: Regenerate.
6997         * config.in: Regenerate.
6998         * config/rs6000/linux64.opt (mcmodel): New.
6999         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
7000         (TARGET_CMODEL, SET_CMODEL): Define.
7001         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
7002         select CMODEL_MEDIUM default.
7003         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
7004         (TARGET_CMODEL): Define default.
7005         * config/rs6000/rs6000.c (cmodel): New variable.
7006         (rs6000_explicit_options): Add cmodel field.
7007         (rs6000_handle_option): Handle -mcmodel.
7008         (create_TOC_reference): Add largetoc_reg param.  Generate high,
7009         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
7010         (rs6000_delegitimize_address): Recognise new toc reference rtl
7011         and minimal-toc rtl.
7012         (rs6000_legitimize_reload_address): Handle new toc references.
7013         (print_operand_address): Handle legitimate_constant_pool_address_p
7014         match before lo_sum.
7015         (rs6000_eliminate_indexed_memrefs): Tidy.
7016         (rs6000_emit_move): Tweak threshold for inlining constants.
7017         Keep rs6000_emit_allocate_stack large stack frame offsets
7018         loaded into r0 inline.
7019         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
7020         (tocrel_base, tocrel_offset): New variables.
7021         (toc_relative_expr_p): Set them here.
7022         (print_operand_address): Skip over any offset on constant pool address.
7023         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
7024         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
7025         (offsettable_ok_by_alignment): New function.
7026         (rs6000_emit_move): Address suitably aligned local symbol_refs
7027         relative to the toc pointer for -mcmodel=medium.
7028         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
7029         strict param.  Allow lo_sum version of addressing.  Verify reg
7030         used for -mminimal-toc and -mcmodel != small.  Update all callers.
7031         * config/rs6000/constraints.md: Update for above change.
7032         * config/rs6000/predicates.md: Likewise.
7033         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
7034         code.
7035         (tls_gd): Split for -mcmodel=medium/large.
7036         (tls_gd_high, tls_gd_low): New.
7037         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
7038         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
7039         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
7040         (largetoc_high, largetoc_low): New.
7041         (cmptf_internal2): Add clobber.
7042         * config/rs6000/rs6000-protos.h: Update.
7043
7044 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
7045
7046         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
7047         true if no prefetch is going to be generated for a given group.
7048         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
7049         estimate the prefetch_count.
7050         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
7051         prefetch count by considering the unroll_factor and prefetch_mod
7052         for is_loop_prefetching_profitable.
7053
7054 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
7055
7056         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
7057         anything if the argument is not a MEM.
7058
7059 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
7060
7061         PR debug/43650
7062         PR debug/44181
7063         PR debug/44247
7064         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
7065         debug stmts.
7066         (canonicalize_loop_ivs): Likewise.
7067
7068 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
7069
7070         PR debug/43656
7071         * haifa-sched.c (setup_insn_reg_pressure_info,
7072         update_register_pressure): Reject debug insns.
7073         (ready_sort): Don't setup reg pressure for debug insns.
7074         (schedule_insn): Don't update reg pressure for debug insns.
7075
7076 2010-06-14  Richard Guenther  <rguenther@suse.de>
7077
7078         * lto-streamer.c (cached_bp): Remove.
7079         (bitpack_delete): Likewise.
7080         (bitpack_create): Likewise.
7081         (bp_get_next_word): Likewise.
7082         (bp_pack_value, bp_unpack_value): Move ...
7083         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
7084         Re-implement.
7085         (struct bitpack_d): Likewise.
7086         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
7087         New inline functions.
7088         * lto-streamer-out.c (lto_output_bitpack): Remove.
7089         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
7090         (pack_value_fields): Adjust.
7091         (lto_write_tree): Likewise.
7092         (output_gimple_stmt): Likewise.
7093         (output_function): Likewise.
7094         * lto-streamer-in.c (input_gimple_stmt): Adjust.
7095         (input_function): Likewise.
7096         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
7097         (lto_input_bitpack): Remove.
7098         (lto_materialize_tree): Adjust.
7099         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
7100         * lto-cgraph.c (lto_output_edge): Adjust.
7101         (lto_output_node): Likewise.
7102         (lto_output_varpool_node): Likewise.
7103         (lto_output_ref): Likewise.
7104         (input_node): Likewise.
7105         (input_varpool_node): Likewise.
7106         (input_ref): Likewise.
7107         (input_edge): Likewise.
7108         (output_node_opt_summary): Likewise.
7109         (input_node_opt_summary): Likewise.
7110         * ipa-pure-const.c (pure_const_write_summary): Likewise.
7111         (pure_const_read_summary): Likewise.
7112         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
7113         (ipa_read_indirect_edge_info): Likewise.
7114         (ipa_write_node_info): Likewise.
7115         (ipa_read_node_info): Likewise.
7116
7117 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
7118
7119         PR target/44534
7120         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
7121         (vec_extract_lo_v16hi): Likewise.
7122         (vec_extract_lo_v32qi): Likewise.
7123
7124 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
7125
7126         PR bootstrap/44426
7127         * tree.h (build_call_expr): Don't define as vararg macro, instead
7128         add a prototype.
7129         * builtins.c (build_call_nofold): Remove.
7130         (expand_builtin_int_roundingfn, expand_builtin_pow,
7131         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
7132         expand_builtin_memset_args, expand_builtin_strcmp,
7133         expand_builtin_strncmp, expand_builtin_memory_chk): Use
7134         build_call_nofold_loc instead of build_call_nofold.
7135         (build_call_expr): New function.
7136
7137         PR tree-optimization/44508
7138         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
7139         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
7140         don't eliminate trivially dead stmts.
7141         * tree-vrp.c (vrp_finalize): Pass false as last argument
7142         to substitute_and_fold.
7143         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
7144         to substitute_and_fold.
7145         * tree-ssa-ccp.c (ccp_finalize): Likewise.
7146
7147         PR bootstrap/44509
7148         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
7149
7150 2010-06-14  Ira Rosen  <irar@il.ibm.com>
7151
7152         PR tree-optimization/44507
7153         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
7154         to build initial vector for BIT_AND_EXPR.
7155         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7156
7157 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
7158
7159         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
7160         adjust z10prop set_attr.
7161
7162 2010-06-13  Jan Hubicka  <jh@suse.cz>
7163
7164         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
7165         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
7166         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
7167         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
7168         datastructure checks into checking asserts.
7169         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
7170         * tree-ssa-sccvn.c (VN_INFO): Likewise.
7171         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
7172         df_ref_create_structure): Likewise.
7173         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
7174         pool_free): Use gcc_checking_assert.
7175         * alias.c (get_alias_set): Likewise.
7176         * var-tracking.c (variable_htab_free, shared_hash_copy,
7177         canonicalize_values_mark, variable_merge_over_cur): Likewise.
7178         * lto-streamer.c (bp_unpack_value): Likewise.
7179
7180 2010-06-13  Richard Guenther  <rguenther@suse.de>
7181
7182         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
7183         Do not stream but initialize TYPE_CANONICAL to NULL.
7184         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
7185         * gimple.c (gimple_types_compatible_p): Disregard
7186         TYPE_STRUCTURAL_EQUALITY_P.
7187         (gimple_register_type): Use TYPE_CANONICAL as cache.
7188         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
7189         before registering common types.
7190         * config/i386/i386.c (ix86_function_arg_boundary): Do not
7191         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
7192         * tree.h (TYPE_CANONICAL): Clarify documentation.
7193
7194 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
7195
7196         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7197         LIBCALL_VALUE): Remove macros.
7198         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
7199         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7200         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7201         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
7202         (ia64_function_value): Make static. Handle receiving the function
7203         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
7204
7205 2010-06-12  Jan Hubicka  <jh@suse.cz>
7206
7207         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
7208         at correct place.
7209
7210 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
7211
7212         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
7213
7214 2010-06-12  Jan Hubicka  <jh@suse.cz>
7215
7216         * df-core.c (df_clear_bb_info): New function.
7217         (df_set_blocks): bb_info is always allocated.
7218         (df_get_bb_info): Use block_info_elt_size.
7219         (df_set_bb_info): Likewise.
7220         (df_compact_blocks): Update for new block_info.
7221         (grow_bb_info): New function.
7222         * df-problems.c (df_grow_bb_info): Move to df-core.c
7223         (df_rd_set_bb_info): Remove.
7224         (df_rd_free_bb_info): Do not free block pool.
7225         (df_rd_alloc): Do not create pool, use check for
7226         obstack presence instead of NULL pointer for new blocks.
7227         (df_rd_free): DO not free alloc pool; clear block_info.
7228         (problem_RD): Add size of block info structure.
7229         (df_lr_set_bb_info): Remove.
7230         (df_lr_free_bb_info): Do not free block pool.
7231         (df_lr_alloc): Do not create pool, use check for
7232         obstack presence instead of NULL pointer for new blocks.
7233         (df_lr_free): DO not free alloc pool; clear block_info.
7234         (problem_LR): Add size of block info structure.
7235         (df_live_set_bb_info): Remove.
7236         (df_live_free_bb_info): Do not free block pool.
7237         (df_live_alloc): Do not create pool, use check for
7238         obstack presence instead of NULL pointer for new blocks.
7239         (df_live_free): DO not free alloc pool; clear block_info.
7240         (problem_LIVE): Add size of block info structure.
7241         (problem_CHAIN): Add size of block info structure.
7242         (df_byte_lr_set_bb_info): Remove.
7243         (df_byte_lr_free_bb_info): Do not free block pool.
7244         (df_byte_lr_alloc): Do not create pool, use check for
7245         obstack presence instead of NULL pointer for new blocks.
7246         (df_byte_lr_free): DO not free alloc pool; clear block_info.
7247         (problem_BYTE_LR): Add size of block info structure.
7248         (problem_NOTE): Add size of block info structure.
7249         (df_byte_MD_set_bb_info): Remove.
7250         (df_byte_MD_free_bb_info): Do not free block pool.
7251         (df_byte_MD_alloc): Do not create pool, use check for
7252         obstack presence instead of NULL pointer for new blocks.
7253         (df_byte_MD_free): DO not free alloc pool; clear block_info.
7254         (problem_BD): Add size of block info structure.
7255         * df-scan.c (df_scan_free_internal): Free block pool.
7256         (df_scan_set_bb_info): Remove.
7257         (df_scan_free_bb_info): Check for artificial_defs instead
7258         of bb_info being non-NULL.
7259         (df_scan_alloc): DO not create df_scan_block pool.
7260         (problem_SCAN): Set size of block info.
7261         (df_bb_refs_record): Do not allocate bb_info.
7262         * df.h (df_problem): Add block_info_elt_size.
7263         (struct dataflow): Change block_info to void *.
7264         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
7265         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
7266         in-line structures.
7267
7268 2010-06-12  Jan Hubicka  <jh@suse.cz>
7269
7270         PR tree-optimize/44485
7271         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
7272         containing use of return value of noreturn function.
7273
7274 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
7275
7276         * targhooks.c (default_function_value): Don't use
7277         FUNCTION_OUTGOING_VALUE.
7278         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
7279         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
7280
7281 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
7282
7283         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
7284         Add crtfastmath.o to extra_parts.
7285         * config/mips/crtfastmath.c: New.
7286         * config/mips/linux.h (ENDFILE_SPEC): New.
7287
7288 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
7289
7290         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
7291         old_type in parameter.
7292         (gcc_type_for_value): Update call to gcc_type_for_interval.
7293         (compute_type_for_level_1): Renamed compute_type_for_level.
7294         Update call to gcc_type_for_interval.
7295
7296 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7297
7298         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
7299         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
7300
7301 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7302
7303         * opts-common.c: Include options.h.
7304         (integral_argument): Move from opts.c.
7305         (decode_cmdline_option): New.  Based on read_cmdline_option.
7306         * opts.c (integral_argument): Move to opts-common.c.
7307         (read_cmdline_option): Move most contents to
7308         decode_cmdline_option.  Use %qs in diagnostics.
7309         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
7310         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
7311         decode_cmdline_option): New.
7312
7313 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7314
7315         PR target/44481
7316         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
7317         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
7318         (partiysi2_cmp): Ditto.
7319         (*partiyhi2_cmp): Ditto.
7320         (*parityqi2_cmp): Remove.
7321
7322 2010-06-11  Jan Hubicka  <jh@suse.cz>
7323
7324         * bitmap.h (bmp_iter_next_bit): New.
7325         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
7326
7327 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
7328             Eric Botcazou  <ebotcazou@adacore.com>
7329
7330         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
7331         computed cost.
7332
7333 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7334
7335         * config/i386/i386.md (unspec): New define_c_enum.
7336         (unspecv): Ditto.
7337
7338 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
7339
7340         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
7341
7342 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
7343
7344         PR middle-end/44483
7345         * tree-if-conv.c (bb_predicate_s): New struct.
7346         (bb_predicate_p): New.
7347         (bb_has_predicate): New.
7348         (bb_predicate): New.
7349         (set_bb_predicate): New.
7350         (bb_predicate_gimplified_stmts): New.
7351         (set_bb_predicate_gimplified_stmts): New.
7352         (add_bb_predicate_gimplified_stmts): New.
7353         (init_bb_predicate): New.
7354         (free_bb_predicate): New.
7355         (is_predicated): Use bb_predicate.
7356         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
7357         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
7358         before processing their successors.
7359         (clean_predicate_lists): Removed.
7360         (find_phi_replacement_condition): Use bb_predicate.
7361         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
7362         computations.
7363         (insert_gimplified_predicates): New.
7364         (combine_blocks): Call insert_gimplified_predicates.
7365         (tree_if_conversion): Call free_bb_predicate instead of
7366         clean_predicate_lists.
7367
7368 2010-10-11  Paul Brook  <paul@codesourcery.com>
7369
7370         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
7371         * config/arm/arm.c (all_architectures): Change v7e-m default to
7372         cortexm4.
7373         * config/arm/arm-cores.def: Add cortex-m4.
7374         * config/arm/arm-tune.md: Regenerate.
7375
7376 2010-06-11  Jan Hubicka  <jh@suse.cz>
7377
7378         * ipa-pure-const.c (special_builtlin_state): New function.
7379         (check_call): Use it instead of special casign BUILT_IN_RETURN.
7380         (propagate_pure_const): Use it.
7381
7382 2010-06-11  Jan Hubicka  <jh@suse.cz>
7383
7384         * df-problems.c (df_live_scratch): Convert to bitmap_head.
7385         (df_live_alloc): Initialize df_live_scratch when initializing
7386         problem_data.
7387         (df_live_transfer_function): Update uses of df_live_scratch.
7388         (df_live_free): Free problem_data; clear df_live_scratch before
7389         releasing the obstack.
7390         (df_md_free): Free problem data.
7391
7392 2010-06-11  Jan Hubicka  <jh@suse.cz>
7393
7394         * doc/invoke.texi (Wsuggest-attribute): Document.
7395         (Wmissing-noreturn): Remove.
7396         * ipa-pure-const.c (warn_function_noreturn): New function.
7397         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
7398         warn_missing_noreturn.
7399         * common.opt (Wsuggest-attribute=noreturn): New.
7400         * tree-flow.h (warn_function_noreturn): Declare.
7401         * tree-cfg.c (execute_warn_function_noreturn): Use
7402         warn_function_noreturn.
7403         (gate_warn_function_noreturn): New.
7404         (pass_warn_function_noreturn): Update.
7405
7406 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7407
7408         * c-typeck.c (handle_warn_cast_qual): Add loc
7409         parameter. Improve warning message.
7410         (build_c_cast): Pass location to handle_warn_cast_qual.
7411
7412 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7413
7414         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
7415         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
7416         insn mnemonic.
7417         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
7418
7419 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
7420
7421         Fix bootstap on mips
7422         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
7423         be naming typedefs.
7424
7425 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
7426
7427         * system.h (helper_const_non_const_cast): New inline for
7428         gcc version <= 4.0.
7429         (CONST_CAST2): For gcc version <= 4.0 use
7430         new helper to do const/non-const casting.
7431
7432 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7433
7434         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
7435         * Makefile.in (OBJS-common): Include insn-enums.o.
7436         (insn-enums.o): New rule.
7437         (simple_generated_c): Add insn-enums.c.
7438         (build/genenums.o): New rule.
7439         (genprogmd): Add "enums".
7440         * genconstants.c (print_enum_type): Declare a C string array
7441         for each enum.
7442         * genenums.c: New file.
7443         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
7444         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
7445         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
7446
7447 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7448
7449         * doc/md.texi (define_enum_attr): Document.
7450         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
7451         * read-md.h (lookup_enum_type): Declare.
7452         * read-md.c (lookup_enum_type): New function.
7453         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
7454         * genattrtab.c (attr_desc): Add an enum_name field.
7455         (evaluate_eq_attr): Take the associated attribute as argument.
7456         Get the enum prefix from the enum_name field, if defined.
7457         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
7458         (simplify_test_exp): Pass attr to evaluate_eq_attr.
7459         (add_attr_value): New function, split out from...
7460         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
7461         (write_test_expr): Pass attr to evaluate_eq_attr.
7462         (write_attr_get): Use the enum_name as the enum tag, if defined.
7463         (write_attr_valueq): Use the enum_name as a prefix, if defined.
7464         (find_attr): Initialize enum_name.
7465         (main): Handle DEFINE_ENUM_ATTR.
7466         * gensupport.c (process_rtx): Likewise.
7467         * config/mips/mips.h (mips_tune_attr): Delete.
7468         * config/mips/mips.md (cpu): Use define_attr_enum.
7469
7470 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7471
7472         * doc/md.texi (define_c_enum, define_enum): Document.
7473         * read-md.h (md_constant): Add a parent_enum field.
7474         (enum_value, enum_type): New structures.
7475         (upcase_string, traverse_enum_types): Declare.
7476         * read-md.c (enum_types): New variable.
7477         (upcase_string, add_constant): New functions.
7478         (handle_constants): Don't create the hash table here.
7479         Use add_constant.
7480         (traverse_md_constants): Don't check for a null md_constants.
7481         (decimal_string, handle_enum, traverse_enum_types): New functions.
7482         (read_md_files): Initialize md_constants and md_enums.
7483         * genconstants.c (print_md_constant): Ignore info argument.
7484         Only print constants that belong to no enum.
7485         (print_enum_type): New function.
7486         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
7487         for each defined enum type.
7488         * config/mips/mips.md (processor): New define_enum.
7489         (unspec): New define_c_enum.
7490         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
7491         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
7492         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
7493         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
7494         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
7495         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
7496         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
7497         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
7498         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
7499         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
7500         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
7501         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
7502         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
7503         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
7504         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
7505         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
7506         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
7507         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
7508         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
7509         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
7510         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
7511         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
7512         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7513         (UNSPEC_RDDSP): Move to mips-dsp.md.
7514         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
7515         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
7516         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
7517         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
7518         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
7519         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
7520         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
7521         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
7522         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
7523         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
7524         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
7525         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
7526         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
7527         Moved to mips-dspr2.md.
7528         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
7529         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
7530         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
7531         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
7532         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
7533         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
7534         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
7535         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
7536         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
7537         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
7538         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
7539         UNSPEC_LOONGSON_PSADBH)
7540         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
7541         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
7542         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
7543         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7544         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7545         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7546         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
7547         (cpu): Update comment.
7548         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
7549         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
7550         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
7551         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
7552         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
7553         UNSPEC_LOONGSON_PCMPEQ)
7554         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
7555         UNSPEC_LOONGSON_PINSR_0)
7556         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
7557         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
7558         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
7559         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
7560         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
7561         UNSPEC_LOONGSON_PSADBH)
7562         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
7563         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
7564         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
7565         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7566         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7567         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7568         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
7569         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
7570         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
7571         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
7572         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
7573         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
7574         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
7575         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
7576         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
7577         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
7578         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
7579         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
7580         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
7581         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
7582         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
7583         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
7584         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
7585         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
7586         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
7587         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
7588         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7589         (UNSPEC_RDDSP): Moved from mips.md.
7590         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
7591         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
7592         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
7593         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
7594         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
7595         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
7596         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
7597         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
7598         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
7599         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
7600         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
7601         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
7602         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
7603         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
7604         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
7605         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
7606         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
7607         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
7608         (UNSPEC_SCC): Moved from mips.md.
7609         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
7610         "processor_type" to "processor".
7611         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
7612         * config/mips/mips.h (processor_type): Delete.
7613         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
7614         "processor_type" to "processor".
7615
7616 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7617
7618         * configure.ac (tm_include_list): Add insn-constants.h.
7619         * configure: Regenerate.
7620         * Makefile.in (GTM_H): Move insn-constants.h here from...
7621         (TM_H): ...here.
7622         * mkconfig.sh: Remove special handling for insn-constants.h.
7623
7624 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7625
7626         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
7627         (BUILD_MD): ...this new variable.
7628         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
7629         that include the old contents of simple_generated_h and
7630         simple_generated_c.
7631         (simple_generated_h, simple_generated_c): Include them.  Add
7632         insn-constants.h.
7633         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
7634         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
7635         Remove these dependencies from the main rule and include
7636         insn-conditions.md in the command line only if it appears
7637         in the dependency list.
7638         (insn-constants.h, s-constants): Delete.
7639         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
7640         or gensupport.h.
7641         (build/genmddeps.o): Likewise.
7642         (genprogrtl): New variable that contains everything from genprogmd
7643         except mddeps and constants.
7644         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
7645         depend on $(BUILD_MD)
7646         (genprog): New variable.  Make these programs depend on
7647         $(BUILD_ERRORS).
7648         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
7649         (main): Use read_md_files instead of init_rtx_reader_args.
7650         * genconstants.c: As for genmddeps.c.
7651         * read-md.h (read_skip_construct): Declare.
7652         * read-md.c (read_skip_construct): New function.
7653         (handle_file): Allow a null handle_directive, skipping the
7654         construct if so.
7655         (parse_include): Update the comment accordingly.
7656
7657 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7658
7659         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
7660         * genmddeps.c: Include read-md.h.
7661         (main): Call init_rtx_reader_args instead of init_md_reader_args.
7662         * genattr.c (main): Likewise.
7663         * genattrtab.c (main): Likewise.
7664         * genautomata.c (main): Likewise.
7665         * gencodes.c (main): Likewise.
7666         * genconditions.c (main): Likewise.
7667         * genconfig.c (main): Likewise.
7668         * genconstants.c (main): Likewise.
7669         * genemit.c (main): Likewise.
7670         * genextract.c (main): Likewise.
7671         * genflags.c (main): Likewise.
7672         * genopinit.c (main): Likewise.
7673         * genoutput.c (main): Likewise.
7674         * genpeep.c (main): Likewise.
7675         * genrecog.c (main): Likewise.
7676         * genpreds.c (main): Likewise.
7677         * gensupport.h (in_fname): Move to read-md.h.
7678         (init_md_reader_args_cb): Rename to...
7679         (init_rtx_reader_args_cb): ...this and return a bool.
7680         (init_md_reader_args): Rename to...
7681         (init_rtx_reader_args): ...this and return a bool.
7682         (include_callback): Move to read-md.h.
7683         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
7684         (file_name_list, first_dir_md_include): Move to read-md.c
7685         (first_bracket_include): Delete unused variable.
7686         (last_dir_md_include): Move to read-md.c.
7687         (process_include): Delete, moving code to read-md.c:handle_include.
7688         (process_rtx): Don't handle INCLUDE.
7689         (save_string): Delete.
7690         (rtx_handle_directive): New function.
7691         (init_md_reader_args_cb): Rename to...
7692         (init_rtx_reader_args_cb): ...this and return a boolean success value.
7693         Use read_md_args.
7694         (init_md_reader_args): Rename to...
7695         (init_rtx_reader_args): ...this and return a boolean success value.
7696         * rtl.def (INCLUDE): Delete.
7697         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
7698         argument.
7699         * read-rtl.c (read_conditions): Don't gobble ')' here.
7700         (read_mapping): Likewise.
7701         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
7702         Handle top-level non-rtx constructs here rather than in read_rtx_1.
7703         Store the whole queue in *X.  Remove call to init_md_reader.
7704         (read_rtx_1): Rename to...
7705         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
7706         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
7707         here.
7708         (read_nested_rtx): New function.  Handle (nil) here rather than
7709         in read_rtx_code.
7710         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
7711         gobble ')' here.
7712         * read-md.h (directive_handler_t): New type.
7713         (in_fname, include_callback): Moved from read-md.h.
7714         (read_constants, init_md_reader): Delete.
7715         (read_md_files): Declare.
7716         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
7717         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
7718         from gensupport.c.
7719         (read_constants): Rename to...
7720         (handle_constants): ...this.  Don't gobble ')' here.
7721         (handle_include, handle_file, handle_toplevel_file)
7722         (parse_include): New functions, mostly taken from gensupport.c.
7723         (init_md_reader): Subsume into...
7724         (read_md_files): ...this new function.
7725
7726 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7727
7728         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
7729         (unread_char): Decrement read_md_lineno after putting back '\n'.
7730         * read-md.c (fatal_with_file_and_line): Push back any characters
7731         that we decide not to add to the context.
7732         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
7733         fatal_expected_char in cases where '/' ends a line (for example).
7734         (read_name): Don't increment read_md_lineno here.
7735         (read_escape): Likewise.
7736         (read_quoted_string): Likewise.
7737         (read_braced_string): Likewise.
7738
7739 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7740
7741         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
7742         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
7743         * genconstants.c: Include read-md.h.
7744         * read-rtl.c (md_constants): Move to read-md.c.
7745         (md_name): Move to read-md.h.
7746         (initialize_iterators): Use leading_string_hash instead of def_hash
7747         and leading_string_eq_p instead of def_name_eq_p.
7748         (read_name): Move to read-md.c.
7749         (def_hash, def_name_eq_p): Delete.
7750         (read_constants, traverse_md_constants): Move to read-md.c.
7751         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
7752         * read-md.h: Include hashtab.h.
7753         (md_name): Moved from read-rtl.c.
7754         (md_constant): Moved from read-md.h.
7755         (leading_string_hash, leading_string_eq_p, read_name)
7756         (read_constants, traverse_md_constants): Declare.
7757         * read-md.c (md_constants): Moved from read-rtl.c.
7758         (leading_string_hash, leading_string_eq_p): New functions.
7759         (read_name, read_constants, traverse_md_constants): Moved from
7760         read-rtl.c.
7761
7762 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7763
7764         * read-rtl.c (md_name): New structure.
7765         (read_name): Take an md_name instead of a buffer pointer.
7766         Use the "string" field instead of strcpy when expanding constants.
7767         (read_constants): Remove the tmp_char argument.  Update the calls
7768         to read_name, using two local name buffers instead of the tmp_char
7769         argument.  Merge the constant-creation code.
7770         (read_conditions): Remove the tmp_char argument.  Update the calls
7771         to read_name, using a local name buffer instead of the tmp_char
7772         argument.
7773         (read_mapping): Replace tmp_char variable with a local name buffer.
7774         Update the calls to read_name.
7775         (read_rtx_1): Likewise.  Update the calls to read_constants and
7776         read_conditions.
7777
7778 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7779
7780         * Makefile.in (build/read-md.o): Depend on errors.h.
7781         * read-md.h (error_with_line): Declare.
7782         * read-md.c: Include errors.h.
7783         (message_with_line_1): New function, extracted from...
7784         (message_with_line): ...here.
7785         (error_with_line): New function.
7786         * genattrtab.c: If a call to message_with_line is followed by
7787         "have_error = 1;", replace both statements with a call to
7788         error_with_line.
7789         * genoutput.c: Likewise.
7790         * genpreds.c: Likewise.
7791         * genrecog.c: If a call to message_with_line is followed by
7792         "error_count++;", replace both statements with a call to
7793         error_with_line.
7794         (errorcount): Delete.
7795         (main): Don't check it.
7796         * gensupport.c: If a call to message_with_line is followed by
7797         "errors = 1;", replace both statements with a call to error_with_line.
7798         (errors): Delete.
7799         (process_define_cond_exec): Check have_error instead of errors.
7800         (init_md_reader_args_cb): Likewise.  Don't set errors.
7801
7802 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7803
7804         * read-md.h (read_md_file): Declare.
7805         (read_char, unread_char): New functions.
7806         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
7807         (read_quoted_string, read_string): Remove FILE * argument.
7808         * read-md.c (read_md_file): New variable.
7809         (read_md_filename, read_md_lineno): Update comments and remove
7810         unnecessary initialization.
7811         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
7812         (read_escape, read_quoted_string, read_braced_string, read_string):
7813         Remove FILE * argument.  Update calls accordingly, using read_char
7814         and unread_char instead of getc and ungetc.
7815         * rtl.h (read_rtx): Remove FILE * argument.
7816         * read-rtl.c (iterator_group): Remove FILE * argument from
7817         "find_builtin".
7818         (iterator_traverse_data): Remove "infile" field.
7819         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
7820         (add_mapping, read_name, read_constants, read_conditions)
7821         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
7822         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
7823         Remove file arguments from all calls, using read_char and unread_char
7824         instead of getc and ungetc.
7825         * gensupport.c (process_include): Preserve read_md_file around
7826         the include.  Set read_md_file to the handle of the included file.
7827         Update call to read_rtx.
7828         (init_md_reader_args_cb): Set read_md_file to the handle of the file
7829         and remove local FILE *.  Update calls to read_rtx.
7830
7831 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7832
7833         * read-md.h (read_rtx_lineno): Rename to...
7834         (read_md_lineno): ...this.
7835         (read_rtx_filename): Rename to...
7836         (read_md_filename): ...this.
7837         (copy_rtx_ptr_loc): Rename to...
7838         (copy_md_ptr_loc): ...this.
7839         (print_rtx_ptr_loc): Rename to...
7840         (print_md_ptr_loc): ...this.
7841         * read-md.c: Likewise.  Update references after renaming.
7842         (string_obstack): Replace RTL with MD in comment.
7843         (set_rtx_ptr_loc): Rename to...
7844         (set_md_ptr_loc): ...this.
7845         (get_rtx_ptr_loc): Rename to...
7846         (get_md_ptr_loc): ...this.
7847         * genconditions.c: Update references after renaming.
7848         * genemit.c: Likewise.
7849         * genoutput.c: Likewise.
7850         * genpreds.c: Likewise.
7851         * gensupport.c: Likewise.
7852         * read-rtl.c: Likewise.
7853
7854 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7855
7856         * Makefile.in (READ_MD_H): New variable.
7857         (BUILD_RTL): Add build/read-md.o.
7858         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
7859         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
7860         (build/genattrtab.o, build/genconditions.o build/genemit.o)
7861         (build/genextract.o, build/genflags.o, build/genoutput.o)
7862         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
7863         (build/read-md.o): New rule.
7864         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
7865         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
7866         * coretypes.h: ...here.
7867         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
7868         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
7869         * genattr.c: Include read-md.h.
7870         * genattrtab.c: Likewise.
7871         * genconditions.c: Likewise.
7872         * genemit.c: Likewise.
7873         * genextract.c: Likewise.
7874         * genflags.c: Likewise.
7875         * genoutput.c: Likewise.
7876         * genpreds.c: Likewise.
7877         * genrecog.c: Likewise.
7878         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
7879         (join_c_conditions, print_c_condition, read_rtx_filename)
7880         (read_rtx_lineno): Move to read-md.h.
7881         * read-rtl.c: Include read-md.h.
7882         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
7883         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
7884         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
7885         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
7886         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
7887         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
7888         (read_braced_string, read_string): Move to read-md.c.
7889         (read_rtx): Move some initialization to init_md_reader and call
7890         init_md_reader here.
7891         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
7892         Move to read-md.h.
7893         * gensupport.c: Include read-md.h.
7894         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
7895         * read-md.h, read-md.c: New files.
7896
7897 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
7898
7899         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7900         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7901         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
7902         * config/moxie/moxie.c (moxie_function_value): Make static.
7903         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
7904         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7905
7906 2010-06-10  Martin Jambor  <mjambor@suse.cz>
7907
7908         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
7909         * dbgcnt.def (tree_sra): New counter.
7910         * tree-sra.c: Include dbgcnt.h.
7911         (gate_intra_sra): Check tree_sra debug counter.
7912
7913 2010-06-10  Martin Jambor  <mjambor@suse.cz>
7914
7915         PR tree-optimization/44258
7916         * tree-sra.c (build_access_subtree): Return false iff there is a
7917         partial overlap.
7918         (build_access_trees): Likewise.
7919         (analyze_all_variable_accesses): Disqualify candidates if
7920         build_access_trees returns true for them.
7921
7922 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
7923
7924         PR debug/41371
7925         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
7926         tail-recurse into canonical node.  Fast-forward over
7927         non-canonical VALUEs.
7928
7929 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
7930
7931         PR boostrap/44470
7932         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
7933         (*addsi_1_zext) <TYPE_LEA>: Likewise.
7934         (add lea splitter): Likewise.
7935         (add_zext lea splitter): Likewise.
7936
7937 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
7938
7939         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
7940
7941 2010-06-10  Jan Hubicka  <jh@suse.cz>
7942
7943         * df-problems.c (df_live_problem_data): Add live_bitmaps.
7944         (df_live_alloc): Initialize problem data and live_osbtacks.
7945         (df_live_finalize): Remove obstack, problem data; do not
7946         clear all bitmaps.
7947         (df_live_top_dump, df_live_bottom_dump): Do not dump old
7948         data when not allocated.
7949         (df_live_verify_solution_start): Do not allocate problem data.
7950         (df_live_verify_solution_end): Check if out is allocated.
7951         (struct df_md_problem_data): New structure.
7952         (df_md_alloc): Allocate problem data.
7953         (df_md_free): Free problem data; do not clear bitmaps.
7954
7955 2010-06-10  Jan Beulich  <jbeulich@novell.com>
7956
7957         PR bootstrap/37304
7958         * configure.ac: Replace $() with ${} when intending to expand
7959         variables rather than invoking commands.
7960         * configure: Re-generate.
7961
7962 2010-06-10  Jan Hubicka  <jh@suse.cz>
7963
7964         PR rtl-optimization/44460
7965         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7966         TYPE_NEEDS_CONSTRUCTING sanity check.
7967
7968 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
7969
7970         * doc/include/fdl.texi: Move to GFDL version 1.3.
7971
7972         * doc/cpp.texi: Move to GFDL version 1.3.
7973         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
7974         * doc/gccint.texi: Move to GFDL version 1.3.
7975         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
7976         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
7977         * doc/invoke.texi: Move to GFDL version 1.3.
7978
7979 2010-06-09  Jan Hubicka  <jh@suse.cz>
7980
7981         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
7982         Break out from ...
7983         (propagate) ... here; swap the order.
7984
7985 2010-06-09  Jan Hubicka  <jh@suse.cz>
7986
7987         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
7988         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
7989         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
7990         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
7991
7992 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7993
7994         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
7995         Do not the gather memory reference in the outer loop if the step
7996         is not a constant.
7997
7998 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7999
8000         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
8001         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
8002         8 to 4.  Minor change of the related comments.
8003
8004 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8005
8006         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
8007         the scev analysis when the variable is not used outside the loop
8008         in a close phi node: call compute_overall_effect_of_inner_loop.
8009
8010 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8011
8012         * graphite-sese-to-poly.c (single_pred_cond): Renamed
8013         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
8014         (build_sese_conditions_before): Renamed call to single_pred_cond.
8015         (build_sese_conditions_after): Same.
8016
8017 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8018
8019         * graphite-poly.h: Fix comments and indentation.
8020         * graphite-sese-to-poly.c: Same.
8021         (build_sese_conditions_before): Compute stmt and gbb only when needed.
8022         * tree-chrec.c: Fix comments and indentation.
8023         (tree-ssa-loop-niter.c): Same.
8024
8025 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
8026
8027         PR rtl-optimization/42461
8028         * dce.c (deletable_insn_p): Return true for const or pure calls again.
8029         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
8030
8031 2010-06-09  Jan Hubicka  <jh@suse.cz>
8032
8033         * bitmap.c (bitmap_and): Walk array forward.
8034         (bitmap_and_compl_into): Likewise.
8035         (bitmap_xor): Likewise.
8036         (bitmap_xor_into):  Likewise.
8037         (bitmap_equal_p): Likewise.
8038         (bitmap_intersect_p): Likewise.
8039         (bitmap_intersect_compl_p): Likewise.
8040         (bitmap_ior_and_into): Likewise.
8041         (bitmap_elt_copy): Likewise.
8042         (bitmap_and_compl): Likewise.
8043         (bitmap_elt_ior): Likewise.
8044
8045 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
8046
8047         * opts-common.c (prune_options): Ensure replacement argv array
8048         is correctly terminated by a NULL entry.
8049
8050 2010-06-09  Jan Hubicka  <jh@suse.cz>
8051
8052         * cgraph.h (varpool_first_static_initializer,
8053         varpool_next_static_initializer): Make checking only when
8054         checking enabled.
8055         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
8056         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
8057         gcc_assert to gcc_checking_assert.
8058         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
8059         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
8060         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
8061         op_iter_init_phiuse, op_iter_init_phidef,
8062         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
8063         gcc_checking_assert.
8064         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
8065         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
8066         partition_is_global, live_on_entry, live_on_exit,
8067         live_merge_and_clear): Likewise.
8068         * system.h (gcc_checking_assert): New macro.
8069         * gimple.h (set_bb_seq): Use gcc_checking_assert.
8070
8071 2010-06-09  Jason Merrill  <jason@redhat.com>
8072
8073         * Makefile.in (TAGS): Collect tags info from c-family.
8074
8075 2010-06-09  Jan Hubicka  <jh@suse.cz>
8076
8077         * gimple.h (gcc_gimple_checking_assert): New macro.
8078         (gimple_set_def_ops, gimple_set_use_ops,
8079         gimple_set_vuse, gimple_set_vdef,
8080         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
8081         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
8082         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
8083         gimple_asm_output_op, gimple_asm_output_op_ptr,
8084         gimple_asm_set_output_op, gimple_asm_clobber_op,
8085         gimple_asm_set_clobber_op, gimple_asm_label_op,
8086         gimple_asm_set_label_op, gimple_try_set_kind,
8087         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
8088         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
8089         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
8090         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
8091         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
8092         gimple_omp_for_set_initial, gimple_omp_for_final,
8093         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
8094         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
8095         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
8096         conditional with ENABLE_GIMPLE_CHECKING.
8097         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
8098
8099 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
8100
8101         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
8102         (get_computation_cost_at): Use it.
8103         (determine_use_iv_cost_condition): Likewise.
8104         (determine_iv_cost): Likewise.
8105
8106 2010-06-09  Richard Guenther  <rguenther@suse.de>
8107
8108         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
8109         replace constants.
8110
8111 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
8112
8113         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
8114
8115 2010-06-09  Martin Jambor  <mjambor@suse.cz>
8116
8117         PR tree-optimization/44423
8118         * tree-sra.c (dump_access): Dump also grp_assignment_read.
8119         (analyze_access_subtree): Pass negative allow_replacements to children
8120         if the current type is scalar.
8121
8122 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
8123
8124         PR testsuite/42843
8125         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
8126         * doc/plugins.texi (Plugin license check): Update information
8127         on type of plugin_is_GPL_compatible.
8128         * Makefile.in (PLUGINCC): Define as $(COMPILER).
8129         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
8130
8131 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
8132
8133         * config/arm/arm.c (thumb2_reorg): New function.
8134         (arm_reorg): Call it.
8135         * config/arm/thumb2.md (define_peephole2 for flag clobbering
8136         arithmetic operations): Delete.
8137
8138 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
8139
8140         PR target/44067
8141         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
8142         e500v2 target.
8143
8144 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
8145
8146         PR plugins/44459
8147         * gcc-plugin.h: Encapsulate all declarations in extern "C".
8148
8149 2010-06-08  Jan Hubicka  <jh@suse.cz>
8150
8151         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
8152         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
8153
8154 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
8155
8156         PR tree-optimization/39874
8157         PR middle-end/28685
8158         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
8159         Declare.
8160         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
8161         same_bool_result_p): New.
8162         (and_var_with_comparison, and_var_with_comparison_1,
8163         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
8164         (or_var_with_comparison, or_var_with_comparison_1,
8165         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
8166         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
8167         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
8168         of combine_comparisons.
8169         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
8170
8171 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
8172
8173         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8174         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8175         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
8176         pdp11_function_value_regno_p): New functions.
8177         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8178         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8179
8180 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
8181
8182         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
8183         Thumb-2 in the MINUS case.
8184
8185 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8186
8187         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
8188
8189         * doc/gty.texi (GTY Options): Document typed GC allocation and
8190         variable_size GTY option.
8191
8192         * ggc-internal.h: New.
8193
8194         * ggc.h: Update copyright year.
8195         (digit_string): Move to stringpool.c.
8196         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
8197         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
8198         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
8199         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
8200         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
8201         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
8202         (ggc_force_collect, ggc_get_size, ggc_statistics)
8203         (ggc_print_common_statistics): Move to ggc-internal.h.
8204         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
8205         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
8206         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
8207         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
8208         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
8209         (ggc_alloc_zone_pass_stat): Remove.
8210         (ggc_internal_alloc_stat, ggc_internal_alloc)
8211         (ggc_internal_cleared_alloc_stat): New.
8212         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
8213         (ggc_internal_vec_alloc_stat)
8214         (ggc_internal_cleared_vec_alloc_stat)
8215         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
8216         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
8217         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
8218         (ggc_cleared_alloc_ptr_array_two_args): New.
8219         (htab_create_ggc, splay_tree_new_ggc): Redefine.
8220         (ggc_splay_alloc): Change the type of the first argument to
8221         enum gt_types_enum.
8222         (ggc_alloc_string): Make macro.
8223         (ggc_alloc_string_stat): New.
8224         (ggc_strdup): Redefine.
8225         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
8226         (ggc_alloc_rtvec_sized): New.
8227         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
8228         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
8229         (ggc_internal_cleared_alloc_zone_stat)
8230         (ggc_internal_zone_alloc_stat)
8231         (ggc_internal_zone_cleared_alloc_stat)
8232         (ggc_internal_zone_vec_alloc_stat)
8233         (ggc_alloc_zone_rtx_def_stat)
8234         (ggc_alloc_zone_tree_node_stat)
8235         (ggc_alloc_zone_cleared_tree_node_stat)
8236         (ggc_alloc_cleared_gimple_statement_d_stat): New.
8237
8238         * ggc-common.c: Include ggc-internal.h.
8239         (ggc_internal_cleared_alloc_stat): Rename from
8240         ggc_alloc_cleared_stat.
8241         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
8242         (ggc_calloc): Remove.
8243         (ggc_cleared_alloc_htab_ignore_args): New.
8244         (ggc_cleared_alloc_ptr_array_two_args): New.
8245         (ggc_splay_alloc): Add obj_type parameter.
8246         (init_ggc_heuristics): Formatting fixes.
8247
8248         * ggc-none.c: Update copyright year.
8249         (ggc_alloc_stat): Rename to ggc_alloc_stat.
8250         (ggc_alloc_cleared_stat): Rename to
8251         ggc_internal_cleared_alloc_stat.
8252         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8253
8254         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
8255         Remove references to ggc_alloc in comments.
8256         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
8257         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
8258         (new_ggc_zone, destroy_ggc_zone): Remove.
8259         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8260
8261         * ggc-zone.c: Include ggc-internal.h.  Remove references to
8262         ggc_alloc in comments.
8263         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
8264         (ggc_internal_alloc_zone_pass_stat): New.
8265         (ggc_internal_cleared_alloc_zone_stat): New.
8266         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
8267         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
8268         (new_ggc_zone, destroy_ggc_zone): Remove.
8269
8270         * stringpool.c: Update copyright year.  Include ggc-internal.h
8271         (digit_vector): Make static.
8272         (digit_string): Moved from ggc.h.
8273         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
8274         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
8275
8276         * Makefile.in (GGC_INTERNAL_H): New.
8277         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
8278         $(GGC_INTERNAL_H) to dependencies.
8279
8280         * gentype.c: Update copyright year.
8281         (walk_type): Accept variable_size GTY option.
8282         (USED_BY_TYPED_GC_P): New macro.
8283         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
8284         whitespace at the end of strings.
8285         (get_type_specifier, variable_size_p): New functions.
8286         (alloc_quantity, alloc_zone): New enums.
8287         (write_typed_alloc_def): New function.
8288         (write_typed_struct_alloc_def): Likewise.
8289         (write_typed_typed_typedef_alloc_def): Likewise.
8290         (write_typed_alloc_defns): Likewise.
8291         (output_typename, write_splay_tree_allocator_def): Likewise.
8292         (write_splay_tree_allocators): Likewise.
8293         (main): Call write_typed_alloc_defns and
8294         write_splay_tree_allocators.
8295
8296         * lto-streamer.h (lto_file_decl_data_ptr): New.
8297
8298         * passes.c (order): Define using cgraph_node_ptr.
8299
8300         * strinpool.c (struct string_pool_data): Declare nested_ptr using
8301         ht_identifier_ptr.
8302
8303         * gimple.h (union gimple_statement_d): Likewise.
8304
8305         * rtl.h (struct rtx_def): Likewise.
8306         (struct rtvec_def): Likewise.
8307
8308         * tree.h (union tree_node): Likewise.
8309
8310         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
8311
8312         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
8313
8314         * tree-scalar-evolution.c (scev_initialize): Likewise.
8315
8316         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
8317
8318         * dwarf2asm.c (dw2_force_const_mem): Likewise.
8319
8320         * omp-low.c (lower_omp_critical): Likewise.
8321
8322         * bitmap.h (struct bitmap_head_def): Update comment to not
8323         reference ggc_alloc.
8324
8325         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
8326
8327         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
8328
8329         * ipa-prop.c (duplicate_ggc_array): Rename to
8330         duplicate_ipa_jump_func_array.  Use typed GC allocation.
8331         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
8332
8333         * gimple.c (gimple_alloc_stat): Use
8334         ggc_alloc_cleared_gimple_statement_d_stat.
8335
8336         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
8337
8338         * tree.c (make_node_stat): Use
8339         ggc_alloc_zone_cleared_tree_node_stat.
8340         (make_tree_vec_stat): Likewise.
8341         (build_vl_exp_stat): Likewise.
8342         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
8343         (make_tree_binfo_stat): Likewise.
8344         (tree_cons_stat): Likewise.
8345
8346         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
8347         (shallow_copy_rtx_stat): Likewise.
8348         (make_node_stat): Likewise.
8349
8350         * lto-symtab.c: Fix comment.
8351
8352         * tree-cfg.c (create_bb): Update comment to not reference
8353         ggc_alloc_cleared.
8354         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
8355
8356         * varpool.c (varpool_node): Use typed GC allocation.
8357         (varpool_extra_name_alias): Likewise.
8358
8359         * varasm.c (emutls_decl): Likewise.
8360         (get_unnamed_section): Likewise.
8361         (get_noswitch_section): Likewise.
8362         (get_section): Likewise.
8363         (get_block_for_section): Likewise.
8364         (build_constant_desc): Likewise.
8365         (create_constant_pool): Likewise.
8366         (force_const_mem): Likewise.
8367
8368         * tree.c (build_vl_exp_stat): Likewise.
8369         (build_real): Likewise.
8370         (build_string): Likewise.
8371         (decl_debug_expr_insert): Likewise.
8372         (decl_value_expr_insert): Likewise.
8373         (type_hash_add): Likewise.
8374         (build_omp_clause): Likewise.
8375
8376         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
8377
8378         * tree-ssa.c (init_tree_ssa): Likewise.
8379
8380         * tree-ssa-structalias.c (heapvar_insert): Likewise.
8381
8382         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
8383
8384         * tree-ssa-loop-niter.c (record_estimate): Likewise.
8385
8386         * tree-ssa-alias.c (get_ptr_info): Likewise.
8387
8388         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
8389
8390         * tree-phinodes.c (allocate_phi_node): Likewise.
8391
8392         * tree-iterator.c (tsi_link_before): Likewise.
8393         (tsi_link_after): Likewise.
8394
8395         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
8396
8397         * tree-dfa.c (create_var_ann): Likewise.
8398
8399         * tree-cfg.c (create_bb): Likewise.
8400
8401         * toplev.c (alloc_for_identifier_to_locale): Likewise.
8402         (general_init): Likewise.
8403
8404         * stringpool.c (stringpool_ggc_alloc): Likewise.
8405         (gt_pch_save_stringpool): Likewise.
8406
8407         * sese.c (if_region_set_false_region): Likewise.
8408
8409         * passes.c (do_per_function_toporder): Likewise.
8410
8411         * optabs.c (set_optab_libfunc): Likewise.
8412         (set_conv_libfunc): Likewise.
8413
8414         * lto-symtab.c (lto_symtab_register_decl): Likewise.
8415
8416         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
8417         (input_eh_region): Likewise.
8418         (input_eh_lp): Likewise.
8419         (make_new_block): Likewise.
8420         (unpack_ts_real_cst_value_fields): Likewise.
8421
8422         * lto-section-in.c (lto_new_in_decl_state): Likewise.
8423
8424         * lto-cgraph.c (input_node_opt_summary): Likewise.
8425
8426         * loop-init.c (loop_optimizer_init): Likewise.
8427
8428         * lambda.h (lambda_vector_new): Likewise.
8429
8430         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
8431
8432         * ira.c (update_equiv_regs): Likewise.
8433
8434         * ipa.c (cgraph_node_set_new): Likewise.
8435         (cgraph_node_set_add): Likewise.
8436         (varpool_node_set_new): Likewise.
8437         (varpool_node_set_add): Likewise.
8438
8439         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
8440         (duplicate_ipa_jump_func_array): Likewise.
8441         (ipa_read_node_info): Likewise.
8442
8443         * ipa-cp.c (ipcp_create_replace_map): Likewise.
8444
8445         * integrate.c (get_hard_reg_initial_val): Likewise.
8446
8447         * gimple.c (gimple_alloc_stat): Likewise.
8448         (gimple_build_omp_for): Likewise.
8449         (gimple_seq_alloc): Likewise.
8450         (gimple_copy): Likewise.
8451
8452         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
8453         (gsi_insert_after_without_update): Likewise.
8454
8455         * function.c (add_frame_space): Likewise.
8456         (insert_temp_slot_address): Likewise.
8457         (assign_stack_temp_for_type): Likewise.
8458         (allocate_struct_function): Likewise.
8459         (types_used_by_var_decl_insert): Likewise.
8460
8461         * except.c (init_eh_for_function): Likewise.
8462         (gen_eh_region): Likewise.
8463         (gen_eh_region_catch): Likewise.
8464         (gen_eh_landing_pad): Likewise.
8465         (add_call_site): Likewise.
8466
8467         * emit-rtl.c (get_mem_attrs): Likewise.
8468         (get_reg_attrs): Likewise.
8469         (start_sequence): Likewise.
8470         (init_emit): Likewise.
8471
8472         * dwarf2out.c (new_cfi): Likewise.
8473         (queue_reg_save): Likewise.
8474         (dwarf2out_frame_init): Likewise.
8475         (new_loc_descr): Likewise.
8476         (find_AT_string): Likewise.
8477         (new_die): Likewise.
8478         (add_var_loc_to_decl): Likewise.
8479         (clone_die): Likewise.
8480         (clone_as_declaration): Likewise.
8481         (break_out_comdat_types): Likewise.
8482         (new_loc_list): Likewise.
8483         (loc_descriptor): Likewise.
8484         (add_loc_descr_to_each): Likewise.
8485         (add_const_value_attribute): Likewise.
8486         (tree_add_const_value_attribute): Likewise.
8487         (add_comp_dir_attribute): Likewise.
8488         (add_name_and_src_coords_attributes): Likewise.
8489         (lookup_filename): Likewise.
8490         (store_vcall_insn): Likewise.
8491         (dwarf2out_init): Likewise.
8492
8493         * dbxout.c (dbxout_init): Likewise.
8494
8495         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8496
8497         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8498
8499         * config/score/score7.c (score7_output_external): Likewise.
8500
8501         * config/score/score3.c (score3_output_external): Likewise.
8502
8503         * config/s390/s390.c (s390_init_machine_status): Likewise.
8504
8505         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
8506         (rs6000_init_machine_status): Likewise.
8507         (output_toc): Likewise.
8508
8509         * config/pa/pa.c (pa_init_machine_status): Likewise.
8510         (get_deferred_plabel): Likewise.
8511
8512         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
8513
8514         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
8515
8516         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
8517
8518         * config/mep/mep.c (mep_init_machine_status): Likewise.
8519         (mep_note_pragma_flag): Likewise.
8520
8521         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
8522
8523         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
8524
8525         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
8526
8527         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
8528         (i386_pe_maybe_record_exported_symbol): Likewise.
8529
8530         * config/i386/i386.c (get_dllimport_decl): Likewise.
8531         (ix86_init_machine_status): Likewise.
8532         (assign_386_stack_local): Likewise.
8533
8534         * config/frv/frv.c (frv_init_machine_status): Likewise.
8535
8536         * config/darwin.c (machopic_indirection_name): Likewise.
8537
8538         * config/cris/cris.c (cris_init_machine_status): Likewise.
8539
8540         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
8541
8542         * config/avr/avr.c (avr_init_machine_status): Likewise.
8543
8544         * config/arm/arm.c (arm_init_machine_status): Likewise.
8545
8546         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
8547         (alpha_need_linkage): Likewise.
8548         (alpha_use_linkage): Likewise.
8549
8550         * cgraph.c (cgraph_allocate_node): Likewise.
8551         (cgraph_create_edge_1): Likewise.
8552         (cgraph_create_indirect_edge): Likewise.
8553         (cgraph_add_asm_node): Likewise.
8554
8555         * cfgrtl.c (init_rtl_bb_info): Likewise.
8556
8557         * cfgloop.c (alloc_loop): Likewise.
8558         (rescan_loop_exit): Likewise.
8559
8560         * cfg.c (init_flow): Likewise.
8561         (alloc_block): Likewise.
8562         (unchecked_make_edge): Likewise.
8563
8564         * c-parser.c (c_parse_init): Likewise.
8565         (c_parse_file): Likewise.
8566
8567         * c-decl.c (bind): Likewise.
8568         (record_inline_static): Likewise.
8569         (push_scope): Likewise.
8570         (make_label): Likewise.
8571         (lookup_label_for_goto): Likewise.
8572         (finish_struct): Likewise.
8573         (finish_enum): Likewise.
8574         (c_push_function_context): Likewise.
8575
8576         * bitmap.c (bitmap_element_allocate): Likewise.
8577         (bitmap_gc_alloc_stat): Likewise.
8578
8579         * alias.c (record_alias_subset): Likewise.
8580         (init_alias_analysis): Likewise.
8581
8582 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
8583
8584         * fold-const.c (fold_comparison): Remove redundant parenthesis.
8585         * tree-inline.c (expand_call_inline): Pass translated return value of
8586         cgraph_inline_failed_string to diagnostic function.
8587
8588 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
8589             Shujing Zhao  <pearly.zhao@oracle.com>
8590
8591         PR c/37724
8592         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
8593         implicit bad conversions is initialization.
8594         (error_init): Use gmsgid instead of msgid for argument name and change
8595         the call for error.
8596         (pedwarn_init): Use gmsgid instead of msgid for argument name and
8597         change the call for pedwarn.
8598         (warning_init): Use gmsgid instead of msgid for argument name and
8599         change the call for warning.
8600
8601 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
8602
8603         * config/mips/mips-protos.h (mips_print_operand): Delete.
8604         (mips_print_operand_address): Delete.
8605         * config/mips/mips.h (mips_print_operand_punct): Delete.
8606         (PRINT_OPERAND): Delete.
8607         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8608         (PRINT_OPERAND_ADDRESS): Delete.
8609         * config/mips/mips.c (mips_print_operand_punct): Make static.
8610         (mips_print_operand_address): Make static.
8611         (mips_print_operand): Make static.  Call
8612         mips_print_operand_punct_valid_p.
8613         (mips_print_operand_punct_valid_p): New function.
8614         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8615         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8616
8617 2010-06-07  Jan Hubicka  <jh@suse.cz>
8618
8619         PR middle-end/44454
8620         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
8621         are allocated.
8622
8623 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8624
8625         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
8626         name of RECORD.
8627
8628 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8629
8630         * doc/sourcebuild.texi (Effective-Target Keywords, Other
8631         attributes): Document gas.
8632
8633 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
8634
8635         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
8636         <TYPE_LEA>: Split instruction.
8637         <default>: Remove alternative 2 handling.
8638         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
8639         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
8640         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
8641
8642         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
8643         (ashift_zext lea splitter): Use DImode for multiplication.
8644
8645         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
8646         to generate addition.
8647
8648 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
8649
8650         * common.opt (fira-verbose): Use Var.
8651         (fpcc-struct-return): Use Init instead of VarExists.
8652         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
8653         toplev.c.
8654         * flags.h (flag_signed_char, flag_short_enums,
8655         flag_pcc_struct_return, flag_ira_verbose,
8656         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
8657         * toplev.c (flag_detailed_statistics, flag_signed_char,
8658         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
8659         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
8660         * toplev.h (flag_crossjumping, flag_if_conversion,
8661         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
8662         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
8663         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
8664         flag_cprop_registers, time_report, flag_ira_loop_pressure,
8665         flag_ira_coalesce, flag_ira_move_spills,
8666         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
8667
8668 2010-06-07  Jan Hubicka  <jh@suse.cz>
8669
8670         * df-core.c (df_analyze_problem): Do verification after allocation.
8671
8672         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
8673         (df_lr_alloc): Initialize problem data; move bitmaps to
8674         lr_bitmaps obstack.
8675         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
8676         (df_lr_verify_solution_start): Do not initialize problem data;
8677         allocate bitmaps in lr_bitmaps.
8678         (df_lr_verify_solution_end): Do not free problem data.
8679
8680 2010-06-07  Jan Hubicka  <jh@suse.cz>
8681
8682         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
8683         if caller is noreturn.
8684         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
8685         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
8686         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
8687         * ipa-pure-const.c (check_decl): Add IPA parameter.
8688         (state_from_flags): New function.
8689         (better_state, worse_state): New functions.
8690         (check_call): When in IPA mode, do not care about callees.
8691         (check_load, check_store): Update.
8692         (check_ipa_load, check_ipa_store): New.
8693         (check_stmt): When in IPA mode, use IPA checkers.
8694         (analyze_function): Use state_from_flags.
8695         (propagate): Check indirect edges and references.
8696
8697 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
8698
8699         PR rtl-optimization/44404
8700         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
8701         of count_occurrences to see if it's safe to modify mem_insn.
8702
8703 2010-06-07  Richard Guenther  <rguenther@suse.de>
8704
8705         * gimplify.c (gimplify_cleanup_point_expr): For empty body
8706         and EH-only cleanup drop the cleanup instead of inserting it
8707         unconditionally.
8708
8709 2010-06-07  Ira Rosen  <irar@il.ibm.com>
8710
8711         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
8712         documentation.
8713         * targhooks.c (default_builtin_vectorization_cost): New function.
8714         * targhooks.h (default_builtin_vectorization_cost): Declare.
8715         * target.h (enum vect_cost_for_stmt): Define.
8716         (builtin_vectorization_cost): Change argument and comment.
8717         * tree-vectorizer.h: Remove cost model macros.
8718         * tree-vect-loop.c: Include target.h.
8719         (vect_get_cost): New function.
8720         (vect_estimate_min_profitable_iters): Replace cost model macros with
8721         calls to vect_get_cost.
8722         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
8723         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
8724         default implementation.
8725         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
8726         calls to target hook builtin_vectorization_cost.
8727         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
8728         Likewise.
8729         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
8730         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
8731         implementation to return costs.
8732         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
8733         * config/spu/spu.h: Remove vectorizer cost model macros.
8734         * config/i386/i386.h: Likewise.
8735         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
8736         a call to target hook builtin_vectorization_cost.
8737
8738 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
8739
8740         PR target/44319
8741         * config/i386/i386.c (override_options): Turn zee pass on for level 2
8742         and above and defer till target is known.
8743         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
8744         turn off otherwise.
8745
8746 2010-05-25  Jan Hubicka  <jh@suse.cz>
8747
8748         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
8749         (df_compact_blocks): Likewise.
8750         * df.h (struct df): Turn hardware_regs_used,
8751         regular_block_artificial_uses, eh_block_artificial_uses,
8752         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
8753         bitmap_head.
8754         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
8755         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
8756         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
8757         df_scan_blocks, df_insn_delete, df_insn_rescan,
8758         df_insn_rescan_debug_internal, df_insn_rescan_all,
8759         df_process_deferred_rescans, df_process_deferred_rescans,
8760         df_notes_rescan, df_get_call_refs, df_get_call_refs,
8761         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
8762         df_record_entry_block_defs, df_record_exit_block_uses,
8763         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
8764         df_scan_verify): Update.
8765
8766 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
8767
8768         PR c++/44188
8769         * c-common.c (is_typedef_decl): Move this definition ...
8770         * tree.c (is_typedef_decl): ... here.
8771         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8772         * c-common.h (is_typedef_decl): Move this declaration ...
8773         * tree.h (is_typedef_decl): ... here.
8774         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8775         * dwarf2out.c (is_naming_typedef_decl): New function.
8776         (gen_tagged_type_die): Split out of ...
8777         (gen_type_die_with_usage): ... this function. When an anonymous
8778         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8779         is emitted for the typedef.
8780         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8781         anonymous tagged types.
8782
8783 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8784
8785         PR c/20000
8786         * c-decl.c (grokdeclarator): Delete warning.
8787
8788 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
8789
8790         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
8791         newly built CALL_EXPR.
8792         * tree-profile.c (tree_profiling): Don't profile functions produced
8793         for built-in stuff.
8794
8795 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
8796
8797         PR bootstrap/44427
8798         PR bootstrap/44428
8799         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
8800         endianness-independent.
8801
8802 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
8803
8804         * c-common.c: Move to c-family/.
8805         * c-common.def: Likewise.
8806         * c-common.h: Likewise.
8807         * c-cppbuiltin.c: Likewise.
8808         * c-dump.c: Likewise.
8809         * c-format.c: Likewise.
8810         * c-format.h : Likewise.
8811         * c-gimplify.c: Likewise.
8812         * c-lex.c: Likewise.
8813         * c-omp.c: Likewise.
8814         * c.opt: Likewise.
8815         * c-opts.c: Likewise.
8816         * c-pch.c: Likewise.
8817         * c-ppoutput.c: Likewise.
8818         * c-pragma.c: Likewise.
8819         * c-pragma.h: Likewise.
8820         * c-pretty-print.c: Likewise.
8821         * c-pretty-print.h: Likewise.
8822         * c-semantics.c: Likewise.
8823         * stub-objc.c: Likewise.
8824
8825         * gengtype.c (get_file_langdir): Special-case files in c-family/.
8826         (get_output_file_with_visibility): Fix name for c-common.h.
8827         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
8828
8829         * c-tree.h: Update include path for moved files.
8830         * c-lang.c: Likewise.
8831         * c-lang.h: Likewise.
8832         * c-parser.c: Likewise.
8833         * c-convert.c: Likewise.
8834         * c-decl.c: Likewise.
8835         * c-objc-common.c: Likewise.
8836         * configure.ac: Make sure c-family/ exists in the build directory.
8837         * configure: Regenerate.
8838         * Makefile.in: Update paths for moved files.  Regroup files per
8839         location and update dependencies.  Move generated_files down after
8840         ALL_GTFILES_H.
8841
8842         * config/spu/spu-c.c: Update paths for moved files.
8843         * config/mep/mep-pragma.c: Likewise.
8844         * config/darwin-c.c: Likewise.
8845         * config/i386/msformat-c.c: Likewise.
8846         * config/i386/i386-c.c: Likewise.
8847         * config/avr/avr-c.c: Likewise.
8848         * config/sol2-c.c: Likewise.
8849         * config/ia64/ia64-c.c: Likewise.
8850         * config/rs6000/rs6000-c.c: Likewise.
8851         * config/arm/arm.c: Likewise.
8852         * config/arm/arm-c.c: Likewise.
8853         * config/h8300/h8300.c: Likewise.
8854         * config/v850/v850-c.c: Likewise.
8855
8856         * config/t-darwin: Fix dependencies for moved files.
8857         * config/t-sol2: Fix dependencies for moved files.
8858         * config/mep/t-mep: Fix dependencies for moved files.
8859         * config/ia64/t-ia64: Fix dependencies for moved files.
8860         * config/rs6000/t-rs6000: Fix dependencies for moved files.
8861         * config/v850/t-v850: Fix dependencies for moved files.
8862         * config/v850/t-v850e: Fix dependencies for moved files.
8863
8864         * config/m32c/m32c-pragma.c
8865
8866         * po/exgettext: Look in c-family/ also.
8867
8868 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
8869
8870         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
8871         (mark_control_dependent_edges_necessary): Call it instead of marking
8872         the last statement manually.
8873         (propagate_necessity): Likewise.
8874
8875 2010-06-05  Jan Hubicka  <jh@suse.cz>
8876
8877         * basic-block.h (compute_dominance_frontiers): Updated.
8878         (compute_idf): Likewise.
8879
8880         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
8881         for dominance frontiers.
8882         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
8883         (insert_updated_phi_nodes_for): Likewise.
8884         (update_ssa): Likewise.
8885         * cfganal.c (compute_dominance_frontiers_1): Likewise.
8886         (compute_dominance_frontiers): Likewise.
8887         (compute_idf): Likewise.
8888         * df-problems.c (df_md_local_compute): Likewise.
8889
8890 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
8891
8892         * target.h (struct gcc_target): Add memory_move_cost field.
8893         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
8894         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
8895         * targhooks.c (default_memory_move_cost): New function.
8896         * targhooks.h (default_memory_move_cost): Declare function.
8897         * reload.h (memory_move_cost): Declare.
8898         (memory_move_secondary_cost): Change type of 'in' argument to bool.
8899         * reginfo.c (memory_move_cost): New function.
8900         (memory_move_secondary_cost): Change type of 'in' argument to bool.
8901         * ira.h (ira_memory_move_cost): Update comment.
8902         * ira.c (ira_memory_move_cost): Update comment.
8903         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
8904         with memory_move_cost.
8905         * postreload.c (reload_cse_simplify_set): (Ditto.).
8906         * reload1.c (choose_reload_regs): (Ditto.).
8907         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
8908         (MEMORY_MOVE_COST):  Revise documentation.
8909
8910         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
8911         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
8912         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
8913         type of 'in' argument to bool.
8914         (TARGET_MEMORY_MOVE_COST): Define.
8915
8916 2010-06-05  Jan Hubicka  <jh@suse.cz>
8917
8918         * ipa-pure-const.c (propagate): Fix typo in handling of functions
8919         that cannot return.  Be more careful when merging the results with
8920         previously known ones.
8921
8922 2010-06-05  Matthias Klose  <doko@ubuntu.com>
8923
8924         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
8925         function to add the -iplugindir option.
8926         (find_plugindir_spec_function): Add new declaration and function.
8927         (static_spec_func): Use it for "find-plugindir".
8928
8929 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
8930
8931         PR c++/44361
8932         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
8933         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
8934         statement expression.
8935
8936 2010-06-05  Jan Hubicka  <jh@suse.cz>
8937
8938         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
8939         (df_rd_problem_data): Convert sparse_invalidated_by_call,
8940         dense_invalidated_by_call to bitmap head.
8941         (df_rd_alloc, df_rd_bb_local_compute_process_def,
8942         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
8943         df_rd_start_dump, df_lr_verify_transfer_functions,
8944         df_live_verify_transfer_functions, df_chain_create_bb,
8945         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
8946         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
8947         df_simulate_one_insn_forwards, df_md_alloc,
8948         df_md_bb_local_compute_process_def,
8949         df_md_bb_local_compute_process_def, df_md_local_compute,
8950         df_md_transfer_function df_md_free): Update.
8951
8952 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
8953
8954         PR c/44322
8955         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
8956         target type for ADDR_EXPR; require no changes to qualifiers except
8957         for function types.
8958         * c-tree.h (c_build_type_variant): Remove.
8959
8960 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8961
8962         * genautomata.c (get_excl_set): Do work per element, not per char.
8963         (check_presence_pattern_sets): Similar.
8964         (check_absence_pattern_sets): Similar.
8965
8966 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8967
8968         * genautomata.c (curr_state_pass_num): Delete.
8969         (min_issue_delay_pass_states): Delete.
8970         (min_issue_delay): Delete.
8971         (initiate_min_issue_delay_pass_states): Delete.
8972         (output_min_issue_delay_table): Compute min_issue_delay_vect
8973         using a breadth-first search variant.
8974         (output_tables): Don't call initiate_min_issue_delay_pass_states.
8975
8976 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
8977
8978         PR boostrap/44421
8979         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
8980         (df_byte_lr_bb_local_compute): Likewise.
8981
8982 2010-06-03  Jason Merrill  <jason@redhat.com>
8983
8984         Implement noexcept operator (5.3.7)
8985         * c-common.c (c_common_reswords): Add noexcept.
8986         * c-common.h (enum rid): Add RID_NOEXCEPT.
8987
8988 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
8989
8990         * config/darwin-driver.c (darwin_default_min_version): Use
8991         GCC-specific formats in diagnostics.
8992         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
8993         diagnostics.
8994         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
8995         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
8996         eval_spec_function, handle_braces, process_brace_body, main,
8997         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
8998         getenv_spec_function, compare_version_strings,
8999         version_compare_spec_function): Use GCC-specific formats in
9000         diagnostics.
9001
9002 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9003
9004         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
9005         that operand 0 and operand 1 are equal.
9006         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
9007         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
9008         and operand 1 are equal.
9009         <default>: Ditto.  Remove ??? comment.
9010         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
9011         and operand 1 are equal.
9012         <default>: Ditto.  Remove ??? comment.
9013         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
9014         are equal.
9015         (*add<mode>_4) <default>: Ditto.
9016         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
9017
9018 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
9019
9020         * config/i386/i386-protos.h (ix86_print_operand): Declare.
9021         * config/i386/i386.c (ix86_print_operand): Make non-static.
9022         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
9023         * output.h (output_operand): Declare.
9024         * final.c (output_operand): Make non-static.
9025
9026 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
9027
9028         PR rtl-optimization/44013
9029         * sched-deps.c (add_dependence_list_and_free): Don't free lists
9030         when processing debug insns.
9031
9032         PR debug/41371
9033         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
9034         recursing.  Check that recursion is bounded.  Rename inner var
9035         to avoid hiding incoming argument.
9036
9037 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9038
9039         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
9040         operands[2] == 255.
9041         (*addqi_3): Ditto.
9042         (*addqi_4): Ditto.
9043         (*addqi_5): Ditto.
9044         (*addqi_ext_1_rex64): Ditto.
9045         (*addqi_ext_1): Ditto.
9046
9047         (*addqi_4): Check for incdec_operand in QImode.
9048
9049         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
9050         using SWI mode iterator.
9051         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
9052         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
9053         mode iterator.
9054         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
9055         using SWI mode iterator.
9056
9057 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9058
9059         PR c/25880
9060         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
9061         * c-format.c (gcc_diag_flag_specs): Add hash.
9062         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
9063         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
9064         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
9065         pp_c_cv_qualifiers. Handle qualifiers spelling here.
9066         (pp_c_type_qualifier_list): Call the function above.
9067         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
9068         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
9069         (WARN_FOR_QUALIFIERS): New macro.
9070         (convert_for_assignment): Use it.
9071
9072 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
9073
9074         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
9075
9076 2010-06-04  Jan Hubicka  <jh@suse.cz>
9077
9078         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
9079         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
9080         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
9081         DF_BYTE_LR_OUT): Update for embedded bitmaps.
9082         * fwprop.c (single_def_use_enter_block): Likewise.
9083         * ddg.c (create_ddg_dep_from_intra_loop_link,
9084         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
9085         * loop-iv.c (latch_dominating_def): Likewise.
9086         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
9087         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
9088         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
9089         df_rd_transfer_function, df_rd_top_dump,
9090         df_rd_bottom_dump): Update.
9091         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
9092         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
9093         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
9094         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
9095         df_lr_verify_solution_start, df_lr_verify_solution_end,
9096         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
9097         df_live_free_bb_info, df_live_alloc, df_live_reset,
9098         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
9099         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
9100         df_live_verify_solution_start, df_live_verify_solution_end,
9101         df_live_verify_transfer_functions, df_chain_create_bb,
9102         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
9103         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9104         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9105         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
9106         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9107         df_byte_lr_transfer_function, df_byte_lr_top_dump,
9108         df_byte_lr_bottom_dump, df_create_unused_note,
9109         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
9110         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
9111         df_md_transfer_function, df_md_init, df_md_confluence_0,
9112         df_md_confluence_n,
9113         df_md_top_dump, df_md_bottom_dump): Update.
9114         (struct df_lr_problem_data): Embedd bitmap headers.
9115
9116 2010-06-04  Jan Hubicka  <jh@suse.cz>
9117
9118         * dce.c (dce_process_block): Do not re-scan already marked
9119         instructions.
9120
9121 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
9122
9123         PR rtl-optimization/39871
9124         PR rtl-optimization/40615
9125         PR rtl-optimization/42500
9126         PR rtl-optimization/42502
9127         * ira.c (init_reg_equiv_memory_loc: New function.
9128         (ira): Call it twice.
9129         * reload.h (calculate_elim_costs_all_insns): Declare.
9130         * ira-costs.c: Include "reload.h".
9131         (regno_equiv_gains): New static variable.
9132         (init_costs): Allocate it.
9133         (finish_costs): Free it.
9134         (ira_costs): Call calculate_elim_costs_all_insns.
9135         (find_costs_and_classes): Take estimated elimination costs
9136         into account.
9137         (ira_adjust_equiv_reg_cost): New function.
9138         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
9139         * reload1.c (init_eliminable_invariants, free_reg_equiv,
9140         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
9141         (elim_bb): New static variable.
9142         (reload): Move code out of here into init_eliminable_invariants and
9143         free_reg_equiv.  Call them.
9144         (calculate_elim_costs_all_insns): New function.
9145         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
9146         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
9147         but call note_reg_elim_costly if we turned a valid memory address
9148         into an invalid one.
9149         * Makefile.in (ira-costs.o): Depend on reload.h.
9150
9151 2010-06-04  Julian Brown  <julian@codesourcery.com>
9152
9153         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
9154         for pool ranges.
9155
9156 2010-06-04  Richard Guenther  <rguenther@suse.de>
9157
9158         PR lto/41584
9159         * cgraph.h (struct varpool_node): Add lto_file_data field.
9160         * lto-cgraph.c (input_varpool_node): Initialize it.
9161
9162 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9163
9164         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
9165         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
9166         predicate in "type" attribute calculation.
9167         (*addsi_1_zext): Ditto.
9168         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
9169         (*addsi_2_zext): Ditto.
9170         (*add<mode>_3): Ditto.
9171         (*addsi_3_zext): Ditto.
9172         (*add<mode>_5): Ditto.
9173
9174 2010-06-03  Jan Hubicka  <jh@suse.cz>
9175
9176         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
9177         of bitmap_bit_p.
9178         * cfganal.c (compute_dominance_frontiers_1): Likewise.
9179
9180 2010-06-03  Jan Hubicka  <jh@suse.cz>
9181
9182         * df-problems.c (df_create_unused_note, df_note_bb_compute):
9183         micro-optimize the checks when to add new note.
9184
9185 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
9186
9187         * final.c (output_asm_insn): Call
9188         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
9189         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
9190         (output_address): Call targetm.asm_out.print_operand_address.
9191         Update comments.
9192         * target.h (struct gcc_target): Add print_operand,
9193         print_operand_address, and print_operand_punct_valid_p fields.
9194         * targhooks.h (default_print_operand): Declare.
9195         (default_print_operand_address): Declare.
9196         (default_print_operand_punct_valid_p): Declare.
9197         * targhooks.c (default_print_operand): Define.
9198         (default_print_operand_address): Define.
9199         (default_print_operand_punct_valid_p): Define.
9200         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
9201         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
9202         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9203         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
9204         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
9205         * vmsdbgout.c (addr_const_to_string): Update comment.
9206         * config/i386/i386.c (print_operand): Rename to...
9207         (ix86_print_operand): ...this.  Make static.
9208         (print_operand_address): Rename to...
9209         (ix86_print_operand_address): ...this.  Make static.  Call
9210         ix86_print_operand instead of PRINT_OPERAND.
9211         (ix86_print_operand_punct_valid_p): New function.
9212         (TARGET_PRINT_OPERAND): Define.
9213         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9214         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9215         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
9216         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9217         (PRINT_OPERAND): Delete.
9218         (PRINT_OPERAND_ADDRESS): Delete.
9219         * config/i386/i386-protos.h (print_operand): Delete prototype.
9220         (print_operand_address): Delete prototype.
9221
9222 2010-06-03  Richard Guenther  <rguenther@suse.de>
9223
9224         PR tree-optimization/44403
9225         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9226         Preserve pointer qualifiers.
9227         (vect_create_data_ref_ptr): Likewise.
9228
9229 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
9230
9231         PR c++/44294
9232         * defaults.h (MAX_FIXED_MODE_SIZE): New.
9233
9234         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
9235
9236 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
9237
9238         PR debug/44375
9239         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
9240         return false if merging the bbs would lead to goto_locus
9241         location being lost from the IL.
9242
9243 2010-06-03  Jan Hubicka  <jh@suse.cz>
9244             Jakub Jelinek  <jakub@redhat.com>
9245
9246         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
9247         set->regs[i] is NULL or has just one entry.
9248
9249 2010-06-03  Jan Hubicka  <jh@suse.cz>
9250
9251         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
9252         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
9253
9254 2010-06-03  Paul Brook  <paul@codesourcery.com>
9255
9256         * config/arm/arm.c (FL_TUNE): Define.
9257         (arm_default_cpu, arm_cpu_select): Remove.
9258         (all_cores): Populate core field.
9259         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
9260         (arm_find_cpu): New function.
9261         (arm_handle_option): Lookup cpu/architecture names.
9262         (arm_override_options): Cleanup mcpu/march/mtune handling.
9263         (arm_file_start): Ditto.
9264
9265 2010-06-03  Alan Modra  <amodra@gmail.com>
9266
9267         PR target/44169
9268         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
9269         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
9270         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
9271         (rs6000_emit_load_toc_table): Likewise.
9272
9273 2010-06-02  Jan Hubicka  <jh@suse.cz>
9274
9275         * passes.c (init_optimization_passes): Put ipa reference
9276         after ipa pure-const.
9277
9278 2010-06-02  Jan Hubicka  <jh@suse.cz>
9279
9280         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
9281         calls_read_all and calls_write_all.
9282         (get_reference_optimization_summary): Fix formatting.
9283         (is_proper_for_analysis): Check that decl is not readonly.
9284         (propagate_bits): Check CONST/PURE/noreturn flags.
9285         (ipa_init): Move all_module_statics to optimization_summary_obstack.
9286         (analyze_function): Ignore indirect edges.
9287         (copy_global_bitmap): For all module statics, do nothing.
9288         (generate_summary): Do not print calls_read_all/calls_write_all.
9289         (read_write_all_from_decl): Take node as argument; check
9290         cgraph_node_cannot_return.
9291         (propagate): Reorganize read_all/write_all computation;
9292         check indirect edges; check ecf flags; use all_module_statics
9293         in the results; do not free all_module_statics.
9294         (stream_out_bitmap): Handle all_module_statics.
9295         (ipa_reference_write_optimization_summary): Likewise; use
9296         varpool/cgraph encoders to get boundaries.
9297         (ipa_reference_read_optimization_summary): Read in all_module_statics;
9298         use it when possible.
9299
9300 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9301
9302         PR target/44218
9303         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
9304         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
9305
9306         * doc/extend.texi (powerpc builtins): Document vec_recip,
9307         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
9308
9309         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
9310         (rs6000_emit_swrsqrt): Ditto.
9311         (rs6000_emit_swdivsf): Delete.
9312         (rs6000_emit_swdivdf): Ditto.
9313         (rs6000_emit_swrsqrtsf): Ditto.
9314
9315         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
9316         describe the reciprocal estimate support for each type.
9317         (recip_options): Map -mrecip=<opt> into option bits.
9318         (gen_2arg_fn_t): New typedef for binary rtx gen function.
9319         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
9320         reciprocal estimate instructions.
9321         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
9322         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
9323         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
9324         cost information if -mdebug=cost or -mdebug=reg.
9325         (rs6000_override_options): Set -mrecip-precision for power6, and
9326         power7 machines.  If -mvsx or -mdfp, enable various options that
9327         came in previous instruction set ISAs, unless the option was
9328         explicitly disabled by the command line option.  Parse
9329         -mrecip=<opt> options.
9330         (rs6000_builtin_vectorized_function): Add support for vectorizing
9331         the reciprocal estimate builtins and expansions.
9332         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
9333         (bdesc_2arg): Add reciprocal estimate builtins.
9334         (bdesc_1arg): Add reciprocal square root estimate builtins.
9335         (rs6000_expand_builtin): Rewrite to use a switch statement,
9336         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
9337         (rs6000_init_builtins): Create declarations for reciprocal
9338         estimate builtins.
9339         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
9340         sized, prefer traditional floating point registers, if integer
9341         vector types, prefer altivec registers.  Don't actually look at
9342         the memory address any more.
9343         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
9344         builtins.
9345         (rs6000_load_constant_and_splat): New helper function to load up
9346         the constant for reciprocal estimate instructions.
9347         (rs6000_emit_madd): New helper function for generating
9348         multiply/add type instructions, based on the current switches.
9349         (rs6000_emit_msub): Ditto.
9350         (rs6000_emit_mnsub): Ditto.
9351         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
9352         replace a divide with a reciprocal estimate and fixup, adding
9353         support for machines with high precision and vectors.
9354         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
9355         low precision machines.
9356         (rs6000_emit_swdiv): New common function to be called to replace a
9357         division with reciprocal estimate and fixup.
9358         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
9359         for double and vector types.  Add support for high precision machines.
9360
9361         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
9362         the reciprocal estimate instructions can be generated.
9363         (TARGET_FRE): Ditto.
9364         (TARGET_FRSQRTES): Ditto.
9365         (TARGET_FRSQRTE): Ditto.
9366         (RS6000_RECIP_*): New macros for reciprocal estimate support.
9367
9368         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
9369         square root estimate on vectors.
9370         (re<mode>2): New insn for reciprocal division estimate on vectors.
9371
9372         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
9373         New builtin.
9374         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
9375         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
9376         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
9377         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
9378         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
9379         (RS6000_BUILTIN_RSQRT): Ditto.
9380         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
9381         floating point builtin.
9382
9383         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9384         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
9385         __RECIP_PRECISION__ based on the command line switches.
9386         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
9387
9388         * config/rs6000/rs6000.opt (-mrecip): Document add support for
9389         replacing division instructions with reciprocal estimate and fixup.
9390         (-mrecip=<opt>): New option.
9391         (-mrecip-precision): Ditto.
9392
9393         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
9394         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
9395         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
9396         precision scalar.
9397
9398         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
9399         (UNSPEC_VREFP): Ditto.
9400         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
9401         conterparts with regard to support of -mno-fused-madd and -ffast-math.
9402         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
9403         reciprocal estimate instructions to be generated.
9404         (altivec_vrefp): Ditto.
9405
9406         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
9407         estimate support.
9408         (rreg): New mode attribute for reciprocal estimate support.
9409         (recip<mode>3): New insn for division using reciprocal estimate
9410         and fixup builtins.
9411         (divide define_split): New define_split to convert floating point
9412         division to use reciprocal estimate if the user used the
9413         appropriate options and the split is run when we can add new
9414         pseudo registers for the fixup.
9415         (rsqrt<mode>2): New insn for reciprocal square root support.
9416         (recipsf3): Move into recip<mode>3.
9417         (recipdf3): Ditto.
9418         (fres): Use TARGET_FRES.
9419         (rsqrtsf2): Move into rsqrt<mode>2.
9420         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
9421         (copysignsf3): Add support for VSX.
9422         (fred): Use TARGET_FRE.
9423         (fred_fpr): Ditto.
9424         (rsqrtdf_internal1): New function for frsqrte instruciton.
9425
9426         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
9427         (vec_rsqrt): Ditto.
9428
9429 2010-06-03  Richard Guenther  <rguenther@suse.de>
9430
9431         PR middle-end/44291
9432         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
9433         (set_user_assembler_libfunc): Likewise.
9434
9435 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
9436
9437         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
9438         defaults.h.
9439         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
9440         to defaults.h
9441         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
9442         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
9443         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
9444         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
9445         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
9446         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
9447         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
9448         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
9449         * defaults.h: Updated for above mentioned changes.
9450
9451 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
9452
9453         * c-common.c: Remove header include of tm_p.h.
9454         * Makefile.in (c-common.o): Remove TM_P_H dependency.
9455
9456 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
9457
9458         * tree.h (struct tree_decl_map): New type.
9459         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
9460         (tree_decl_map_hash): New prototype.
9461         (debug_expr_for_decl, value_expr_for_decl): Change into
9462         tree_decl_map hashtab from tree_map.
9463         (init_ttree): Adjust initialization.
9464         (tree_decl_map_hash): New function.
9465         (decl_debug_expr_lookup, decl_debug_expr_insert,
9466         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
9467
9468 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9469
9470         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
9471         linker emulations.
9472         * configure: Regenerate.
9473         * config.in: Regenerate.
9474
9475         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
9476         (X86_64_EMULATION): Define.
9477         (TARGET_LD_EMULATION): Use them.
9478
9479         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
9480         (SPARC64_EMULATION): Define.
9481         (LINK_ARCH_SPEC): Use them.
9482
9483 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
9484
9485         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
9486         smallest_mode_for_size for computing the precision types of new
9487         graphite IVs.  Do not call lang_hooks.types.type_for_size.
9488
9489 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
9490
9491         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
9492         information.
9493         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
9494
9495 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
9496
9497         PR middle-end/44363
9498         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
9499         return false instead.
9500
9501 2010-06-02  Jan Hubicka  <jh@suse.cz>
9502
9503         PR middle-end/44295
9504         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
9505         create new cgraph node to check callee.
9506
9507 2010-06-02  Richard Guenther  <rguenther@suse.de>
9508
9509         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
9510
9511 2010-06-02  Richard Guenther  <rguenther@suse.de>
9512
9513         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
9514         (lto_wrapper_cleanup): ... this.  Do not exit.
9515         (fatal): Adjust.  Exit here.
9516         (fatal_perror): Likewise.
9517         (fatal_signal): New function.
9518         (main): Set up signal handlers to cleanup temporary files.
9519         * Makefile.in (lto-wrapper.o): Adjust dependencies.
9520
9521 2010-06-02  Richard Guenther  <rguenther@suse.de>
9522
9523         PR tree-optimization/44377
9524         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
9525
9526 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9527
9528         * config/s390/2097.md (z10_fhex): Remove insn reservation.
9529         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
9530         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
9531         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
9532         instruction.
9533         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
9534
9535 2010-06-02  Jan Hubicka  <jh@suse.cz>
9536
9537         * bitmap.c (bitmap_descriptor): Add search_iter.
9538         (bitmap_find_bit): Increment it.
9539         (print_statistics): Print it.
9540
9541 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
9542
9543         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
9544         instead of gimple_build_call_vec.  Delete unnecessary local variable.
9545
9546 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
9547
9548         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
9549         change from yesterday.
9550
9551 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
9552
9553         * c-ada-spec.c: Clean up redundant includes.
9554
9555 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
9556
9557         * gimplify.c: Do not include except.h and optabs.h.
9558         (gimplify_body): Do not initialize RTL profiling.
9559         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
9560         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
9561         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
9562         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
9563         langhooks.h.
9564
9565         * tree-pretty-print.h: Include pretty-print.h.
9566         * gimple-pretty-print.h: Include pretty-print.h.
9567
9568         * tree-pretty-print.c: Do not include diagnostic.h.
9569         * tree-vrp.c: Likewise.
9570         * tree-tailcall.c: Likewise
9571         * tree-scalar-evolution.c: Likewise
9572         * tree-ssa-dse.c: Likewise
9573         * tree-chrec.c: Likewise
9574         * tree-ssa-sccvn.c: Likewise
9575         * tree-ssa-copyrename.c: Likewise
9576         * tree-nomudflap.c: Likewise
9577         * tree-call-cdce.c: Likewise
9578         * tree-stdarg.c: Likewise
9579         * tree-ssa-math-opts.c: Likewise
9580         * tree-nrv.c: Likewise
9581         * tree-ssa-sink.c: Likewise
9582         * tree-browser.c: Likewise
9583         * tree-ssa-loop-ivcanon.c: Likewise
9584         * tree-ssa-loop.c: Likewise
9585         * tree-parloops.c: Likewise
9586         * tree-ssa-address.c: Likewise
9587         * tree-ssa-ifcombine.c: Likewise
9588         * tree-if-conv.c: Likewise
9589         * tree-data-ref.c: Likewise
9590         * tree-affine.c: Likewise
9591         * tree-ssa-phiopt.c: Likewise
9592         * tree-ssa-coalesce.c: Likewise
9593         * tree-ssa-pre.c: Likewise
9594         * tree-ssa-live.c: Likewise
9595         * tree-predcom.c: Likewise
9596         * tree-ssa-forwprop.c: Likewise
9597         * tree-ssa-dce.c: Likewise
9598         * tree-ssa-ter.c: Likewise
9599         * tree-ssa-loop-prefetch.c: Likewise
9600         * tree-optimize.c: Likewise
9601         * tree-ssa-phiprop.c: Likewise
9602         * tree-object-size.c: Likewise
9603         * tree-outof-ssa.c: Likewise
9604         * tree-ssa-structalias.c: Likewise
9605         * tree-switch-conversion.c: Likewise
9606         * tree-ssa-reassoc.c: Likewise
9607         * tree-ssa-operands.c: Likewise
9608         * tree-vectorizer.c: Likewise
9609         * tree-vect-data-refs.c: Likewise
9610         * tree-vect-generic.c: Likewise
9611         * tree-vect-stmts.c: Likewise
9612         * tree-vect-patterns.c: Likewise
9613         * tree-vect-slp.c: Likewise
9614         * tree-vect-loop.c: Likewise
9615         * tree-ssa-loop-ivopts.c: Likewise
9616         * tree-ssa-loop-im.c: Likewise
9617         * tree-ssa-loop-niter.c: Likewise
9618         * tree-ssa-loop-unswitch.c: Likewise
9619         * tree-ssa-loop-manip.c: Likewise
9620         * tree-ssa-loop-ch.c: Likewise
9621         * tree-dump.c: Likewise
9622         * tree-complex.c: Likewise
9623
9624         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
9625         * tree-ssa-uninit.c: Likewise
9626         * tree-ssa-threadupdate.c: Likewise
9627         * tree-ssa-uncprop.c: Likewise
9628         * tree-ssa-ccp.c: Likewise
9629         * tree-ssa-dom.c: Likewise
9630         * tree-ssa-propagate.c: Likewise
9631         * tree-ssa-alias.c: Likewise
9632         * tree-dfa.c: Likewise
9633         * tree-cfgcleanup.c: Likewise
9634         * tree-sra.c: Likewise
9635         * tree-ssa-copy.c: Likewise
9636         * tree-ssa.c: Likewise
9637         * tree-profile.c: Likewise
9638         * tree-cfg.c: Likewise
9639         * tree-ssa-threadedge.c: Likewise
9640         * tree-vect-loop-manip.c: Likewise
9641
9642         * tree-inline.c: Do not include diagnostic.h and expr.h.
9643         Include rtl.h.
9644         (copy_decl_for_dup_finish): Do not use NULL_RTX.
9645
9646         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
9647         * tree-loop-distribution.c: Likewise.
9648
9649 2010-06-01  Jan Hubicka  <jh@suse.cz>
9650
9651         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
9652
9653 2010-06-01  Jan Hubicka  <jh@suse.cz>
9654
9655         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
9656         remove return value.
9657         (split_bbs_on_noreturn_calls) .... here.
9658         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
9659         * tree-flow.h (fixup_noreturn_call): New.
9660
9661 2010-06-01  Jan Hubicka  <jh@suse.cz>
9662
9663         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
9664
9665 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
9666
9667         * tree.h (build_nt_call_list): Delete.
9668         * tree.c (build_nt_call_list): Delete.
9669
9670 2010-06-01  Jan Hubicka  <jh@suse.cz>
9671
9672         * fwprop.c: Make emit-rtl.h include last.
9673         * rtlanal.c: Include emit-rtl.h.
9674         * genautomata.c: Output emit-rtl include into insn-automata.c
9675         * df-scan.c: Include emit-rtl.h.
9676         * haifa-sched.c: Indlude emit-rtl.h.
9677         * mode-switching.c: Indlude emit-rtl.h.
9678         * graph.c: Indlude emit-rtl.h.
9679         * sel-sched.c: Include emit-rtl.h.
9680         * sel-sched-ir.c: Include emit-rtl.h.
9681         * ira-build.c: Include emit-rtl.h.
9682         * emit-rtl.c (first_insn, last_insn): Remove defines.
9683         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
9684         Move to emit-rtl.h.
9685         (set_new_first_and_last_insn, get_last_insn_anywhere,
9686         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
9687         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
9688         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
9689         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
9690         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
9691         Use accessor functions.
9692         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
9693          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
9694         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
9695         mem_expr_equal_p): Move here from rtl.h.
9696         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
9697         Move here from emit-rtl.c; make inline.
9698         * cfglayout.h: Include emit-rtl.h.
9699         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
9700          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
9701         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
9702         mem_expr_equal_p, get_insns, set_first-insn,
9703         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
9704         * reg-stack.c: Include emit-rtl.h.
9705         * dce.c: Likewise.
9706
9707 2010-06-01  Jan Hubicka  <jh@suse.cz>
9708
9709         * cgraph.h (tree_function_versioning): Update prototype.
9710         (cgraph_function_versioning): Update prototype.
9711         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
9712         bitmap.
9713         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
9714         (cgraph_materialize_clone, save_inline_function_body): Update use of
9715         tree_function_versioning.
9716         * tree-inline.c (copy_bb): Look for previous copied block to link
9717         after; fix debug output.
9718         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
9719         (copy_body): Likewise.
9720         (expand_call_inline): Update use of copy_body.
9721         (tree_function_versioning): Update use of copy body; accept
9722         blocks_to_copy and new_entry.
9723
9724 2010-06-01  Jan Hubicka  <jh@suse.cz>
9725
9726         * gegenrtl.c: Remove unnecesary prototypes.
9727         (gendecl): Remove.
9728         (gendef): Produce static inline.
9729         (gencode): Remove.
9730         (main): Do not decode parameters; generate header only.
9731         * Makefile.in (genrtl.c): Remove.
9732
9733 2010-06-01  Jan Hubicka  <jh@suse.cz>
9734
9735         * tree-switch-conversion.c (build_one_array): Make it readonly.
9736
9737 2010-06-01  Richard Guenther  <rguenther@suse.de>
9738
9739         * optabs.c (init_optabs): Guard all accesses to reinit.
9740         * ipa-pure-const.c (propagate): Fix another typo.
9741         * opts.c (common_handle_option): Split assignment to bool.
9742         * c-opts.c (c_common_handle_option): Likewise.
9743
9744 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
9745             Matthew Gingell  <gingell@adacore.com>
9746
9747         * doc/invoke.texi: Mention -fdump-ada-spec.
9748         * tree-dump.c (dump_files): Add ada-spec.
9749         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
9750         * tree-pass.h (tree_dump_index): Add TDI_ada.
9751         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
9752         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
9753         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
9754         * c-decl.c: Include c-ada-spec.h.
9755         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
9756         functions.
9757         (c_write_global_declarations): Add handling of -fdump-ada-spec.
9758         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
9759         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
9760         * c-ada-spec.h, c-ada-spec.c: New files.
9761
9762 2010-06-01  Richard Guenther  <rguenther@suse.de>
9763
9764         PR lto/43853
9765         * ipa-pure-const.c (get_function_state): Hand back varying state
9766         if we do not have one.
9767         (has_function_state): New function.
9768         (duplicate_node_data): Adjust.
9769         (remove_node_data): Likewise.
9770         (pure_const_write_summary): Likewise.
9771         (propagate): Likewise.  Fix typo.
9772
9773 2010-06-01  Jan Hubicka  <jh@suse.cz>
9774
9775         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
9776         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
9777         (execute_all_ipa_transforms): Do not play with the states.
9778
9779 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
9780
9781         * config/arm/t-linux-androideabi: New.
9782         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
9783
9784 2010-06-01  Jan Hubicka  <jh@suse.cz>
9785
9786         * tree-inline.c (estimate_num_insns): For stdarg functions look
9787         into call statement to count cost of argument passing.
9788
9789 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
9790
9791         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
9792         argument for fprintf.
9793         (ix86_output_addr_diff_elt): Likewise.
9794         (x86_function_profiler): Likewise.
9795         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
9796         (LPREFIX): Likewise.
9797         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
9798
9799 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
9800
9801         PR target/44338
9802         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
9803         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
9804         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
9805         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
9806         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
9807         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
9808         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
9809         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
9810         TARGET_FUSED_MADD.
9811
9812 2010-05-31  Jan Hubicka  <jh@suse.cz>
9813
9814         * tree.h (tree_range_check_failed): Declare noreturn.
9815
9816 2010-05-31  Jan Hubicka  <jh@suse.cz>
9817
9818         * gimple.c (gimple_call_builtin_p): New function.
9819         * gimple.h (gimple_call_builtin_p): Declare.
9820         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
9821         to exit.
9822         (execute_warn_function_return): BUILT_IN_RETURN is return.
9823         (split_critical_edges): Return edges are not critical.
9824         (is_ctrl_altering_stmt): Builtin_in_return is altering.
9825         (gimple_verify_flow_info): Handle built_in_return.
9826         (execute_warn_function_return): Handle built_in_return.
9827         * ipa-pure-const.c (check_call): Ignore builtin_return.
9828
9829 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
9830
9831         PR middle-end/44337
9832         * expr.c (expand_assignment): Don't store anything for out-of-bounds
9833         array accesses with non-MEM.
9834
9835         PR tree-optimization/44182
9836         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
9837         newly needs to end a bb is followed by debug stmts, instead return
9838         true from the function at the end.
9839         (maybe_move_debug_stmts_to_successors): New function.
9840         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
9841
9842 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
9843
9844         PR target/44161
9845         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
9846
9847 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
9848
9849         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
9850         for nested functions in non-optimized compilation.
9851
9852 2010-05-31  Richard Guenther  <rguenther@suse.de>
9853
9854         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
9855
9856 2010-05-30  Jan Hubicka  <jh@suse.cz>
9857
9858         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
9859
9860 2010-05-30  Richard Guenther  <rguenther@suse.de>
9861
9862         PR lto/42975
9863         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
9864         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
9865         no longer needed.
9866
9867 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
9868
9869         * config/darwin.c (output_objc_section_asm_op): Add comment.
9870         (name_needs_quotes): Add '_' to list of valid comment chars.
9871         (machopic_output_function_base_name): Remove unneeded quotes.
9872         (darwin_encode_section_info): Adjust asm whitespace.
9873         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
9874         (ASM_OUTPUT_LOCAL): Ditto.
9875         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
9876         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
9877         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
9878
9879 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
9880
9881         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
9882         RS6000_OUTPUT_BASENAME unconditionally.
9883         (rs6000_output_function_epilogue): Likewise.
9884
9885 2010-05-30  Jan Hubicka  <jh@suse.cz>
9886
9887         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
9888         nodes.
9889
9890 2010-05-30  Richard Guenther  <rguenther@suse.de>
9891
9892         * tree-cfg.c (verify_gimple_assign_single): Implement
9893         verification for COND_EXPR rhs.
9894
9895 2010-05-30  Jan Hubicka  <jh@suse.cz>
9896
9897         * cgraph.h (cgraph_dump_file): Declare.
9898         * cgraphunit.c (cgraph_dump_file): Export.
9899         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
9900
9901 2010-05-30  Jan Hubicka  <jh@suse.cz>
9902
9903         * dwarf2out.c (reference_to_unused,
9904         premark_types_used_by_global_vars_helper): Avoid creation of new
9905         varpool nodes.
9906
9907 2010-05-30  Jan Hubicka  <jh@suse.cz>
9908
9909         * cgraph.h (cgraph_node_cannot_return,
9910         cgraph_edge_cannot_lead_to_return): New functions.
9911         * cgraph.c (cgraph_node_cannot_return,
9912         cgraph_edge_cannot_lead_to_return): Use them.
9913         * ipa-pure-const.c (pure_const_names): New static var.
9914         (check_call): Handle calls not leading to return.
9915         (pure_const_read_summary): Dump info read.
9916         (propagate): Dump info about propagation process; ignore side effects
9917         of functions not leading to exit; fix handling of pure functions.
9918
9919 2010-05-30  Jan Hubicka  <jh@suse.cz>
9920
9921         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
9922         for tail call epilogues.
9923
9924 2010-05-30  Jan Hubicka  <jh@suse.cz>
9925
9926         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
9927         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
9928         dump files.
9929
9930 2010-05-29  Jan Hubicka  <jh@suse.cz>
9931
9932         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
9933         node; remove references in node we no longer keep in cgrpah but need
9934         body of.
9935
9936 2010-05-29  Jan Hubicka  <jh@suse.cz>
9937
9938         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
9939
9940 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9941
9942         PR target/44165
9943         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
9944
9945 2010-05-29  Jan Hubicka  <jh@suse.cz>
9946
9947         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
9948         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
9949         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
9950         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
9951         debug_names_replaced_by, debug_update_ssa): Likewise.
9952         * sbitmap.c (debug_sbitmap): Likewise.
9953         * genrecog.c (debug_decision, debug_decision_list): Likewise.
9954         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
9955         debug_tree_chain): Likewise.
9956         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
9957         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
9958         * optabs.c (debug_optab_libfuncs): Likewise.
9959         (verify_loop_closed_ssa): Likewise.
9960         * value-prof.c (verify_histograms): Likewise.
9961         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
9962         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
9963         * cfghooks.c (verify_flow_info): Likewise.
9964         * fold-const.c (debug_fold_checksum): Likewise.
9965         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
9966         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
9967         Likewise.
9968         * omega.c (debug_omega_problem): Likewise.
9969         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
9970         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
9971         * dominance.c (verify_dominators, debug_dominance_info,
9972         debug_dominance_tree): Likewise.
9973         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
9974         * df_regno_debug, df_ref_debug,
9975         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
9976         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
9977         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
9978         * sel-sched.c (debug_state): Likewise.
9979         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
9980         Likewise.
9981         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
9982         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
9983         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
9984         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
9985         Likewise.
9986         * c-pretty-print.c (debug_c_tree): Likewise.
9987         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
9988         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
9989         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
9990         * ebitmap.c (debug_ebitmap): Likewise.
9991         * function.c (debug_find_var_in_block_tree): Likewise.
9992         * print-rtl.c (debug_rtx): Likewise.
9993         (debug_rtx_count): Likewise.
9994         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
9995         * stor-layout.c (debug_rli): Likewise.
9996         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
9997         * tree-data-ref.c (debug_data_references,
9998         debug_data_dependence_relations, debug_data_reference,
9999         debug_data_dependence_relation, debug_rdg_vertex,
10000         debug_rdg_component, debug_rdg): Likewise.
10001         * tree-affine.c (debug_aff): Likewise.
10002         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
10003         Likewise.
10004         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
10005         * emit-rtl.c (verify_rtl_sharing): Likewise.
10006         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
10007         debug_value_expressions): Likewise.
10008         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
10009         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
10010         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
10011         * cfglayout.c (verify_insn_chain): Likewise.
10012         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
10013         debug_clast_stmt, debug_generated_program): Likewise.
10014         * ggc-page.c (debug_print_page_list): Likewise.
10015         * tree-ssa-ter.c (debug_ter): Likewise.
10016         * graphite-dependences.c (debug_pddr): Likewise.
10017         * sched-deps.c (debug_ds): Likewise.
10018         * tree-ssa.c (verify_ssa): Likewise.
10019         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
10020         debug_scattering_functions, debug_iteration_domains, debug_pdr,
10021         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
10022         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
10023         * tree-inline.c (debug_find_tree): Likewise.
10024         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
10025         debug_ppl_powerset_matrix): Likewise.
10026         * var-tracking.c (debug_dv): Likewise.
10027         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
10028         * cfgloop.c (verify_loop_structure): Likewise.
10029         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
10030         * c-common.c (verify_sequence_points): Likewise.
10031         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
10032         debug_candidates, debug_rgn_dependencies): Likewise.
10033         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
10034         * debug_constraint_graph, debug_solution_for_var,
10035         debug_sa_points_to_info): Likewise.
10036         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
10037         Likewie.
10038         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
10039         debug_loops, debug_loop, debug_loop_num): Likewise.
10040         * passes.c (debug_pass): Likewise.
10041         (dump_properties): Likewise; add cfglayout property.
10042         (debug_properties): Likewise.
10043         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
10044         * varpool.c (debug_varpool): Likewise.
10045         * regcprop.c (debug_value_data): Likewise.
10046         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
10047         debug_immediate_uses_for): Likewise.
10048
10049 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
10050
10051         PR bootstrap/44315
10052         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
10053         Filter out insn-flags.h.
10054
10055 2010-05-29  Jan Hubicka  <jh@suse.cz>
10056
10057         * cgraph.h (struct varpool_node_set_def,
10058         struct cgraph_node_set_def): Remove unused AUX pointer.
10059         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
10060         VEC_empty macro.
10061
10062 2010-05-29  Jan Hubicka  <jh@suse.cz>
10063
10064         PR middle-end/44324
10065         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
10066
10067 2010-05-29  Richard Guenther  <rguenther@suse.de>
10068
10069         * lto-streamer.c (cached_bp): New global variable.
10070         (bitpack_create): Return the cached bitpack, if available.
10071         (bitpack_delete): Clear and cache the bitpack, if appropriate.
10072         (bp_pack_value): Remove redundant asserts.
10073
10074 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
10075
10076         PR middle-end/44306
10077         * tree-if-conv.c (is_true_predicate): New.
10078         (is_predicated): Use is_true_predicate.
10079         (add_to_predicate_list): Same.  Do not use unshare_expr.
10080         (add_to_dst_predicate_list): Same.
10081
10082 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
10083
10084         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
10085         field on edges.
10086         (predicate_bbs): Same.
10087         (clean_predicate_lists): Same.
10088         (find_phi_replacement_condition): Do not AND the predicate from
10089         edge->aux.
10090
10091 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
10092
10093         PR bootstrap/44315
10094         * Makefile.in (build/gencondmd.o): Add a missing `\'.
10095
10096 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10097
10098         PR target/44261
10099         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
10100         (negdf2): Adjust expander pattern and use negdf2_slow.
10101         (negsf2): Likewise.
10102
10103 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
10104
10105         * basic-block.h (struct control_flow_graph): Move last_label_uid field
10106         up.
10107         * df.h (struct df_base_ref): Move regno field up.
10108         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
10109         * expr.h (struct separate_ops): Move location field up.
10110         * optabs.h (struct optab_d): Move libcall_basename field down.
10111         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
10112         * config/i386/i386.h (struct machine_function): Convert call_abi field
10113         into a bitfield.  Move cfa field to the end of the structure.
10114
10115 2010-05-29  Jan Hubicka  <jh@suse.cz>
10116
10117         * varpool.c (varpool_get_node): Fix lookup.
10118
10119 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10120
10121         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
10122         RTL specific prototypes with #ifdef RTX_CODE.
10123         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
10124         * config/spu/t-spu-elf: Fix dependencies.
10125
10126         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
10127
10128 2010-05-29  Mike Stump  <mikestump@comcast.net>
10129
10130         PR bootstrap/44315
10131         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
10132         TM_H when building to avoid dependency loops.
10133
10134 2010-05-29  Jan Hubicka  <jh@suse.cz>
10135
10136         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
10137         refs and body; not the whole node for masters of materialized clones.
10138
10139 2010-05-29  Mike Stump  <mikestump@comcast.net>
10140
10141         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
10142
10143 2010-05-29  Jan Hubicka  <jh@suse.cz>
10144
10145         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
10146         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
10147         use of clone_function_name.
10148         * cgraph.h (cgraph_create_virtual_clone,
10149         cgraph_function_versioning): update prototypes.
10150         (clone_function_name): Declare.
10151         * ipa-cp.c (ipcp_insert_stage): Update call of
10152         cgraph_create_virtual_clone.
10153         * omp-low.c (create_omp_child_function_name): Use
10154         cgraph_create_virtual_clone.
10155         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
10156         (cgraph_function_versioning): Take SUFFIX argument; produce new name
10157         and make decl local.
10158
10159 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10160
10161         * vec.h: Include statistics.h
10162         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
10163         with VEC_H.
10164
10165 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10166
10167         * c-lex.c: Do not include c-tree.h.
10168         * c-pretty-print.c: Likewise.
10169         * c-opts.c: Likewise.
10170         * c-gimplify.c: Likewise.
10171         * c-common.c: Likewise.
10172         * c-dump.c: Likewise.  Include c-common.h.
10173
10174 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10175
10176         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
10177         before including diagnostic-core.h.
10178         (c_cpp_error): New prototype moved from c-tree.h.
10179         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
10180         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
10181         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
10182         (c_cpp_error): Prototype moved to c-common.h.
10183         * Makefile.in: Update dependency for C_COMMON_H.
10184
10185 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10186
10187         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
10188         * c-common.c (c_register_addr_space): Remove here.
10189         * c-decl.c (c_register_addr_space): Re-add here.
10190
10191 2010-05-28  Mike Stump  <mikestump@comcast.net>
10192
10193         * config/darwin-c.c: Remove c-tree.h include.
10194
10195 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10196
10197         * gcc.c: Include diagnostic.h.
10198         (error_count): Remove.  All users changed to use errorcount.
10199         (programname): Remove.  All users changed to use progname.
10200         (fancy_abort, internal_error, fatal_error, error, warning, inform,
10201         fnotice): Remove.
10202         (execute): Don't include "Internal error" and bug reporting
10203         information in argument of internal_error call.
10204         (process_command): Don't increment error_count after calling
10205         perror_with_name.
10206         (input_filename): Rename to gcc_input_filename.  All users
10207         changed.
10208         (main): Call diagnostic_initialize.  Register delete_temp_files
10209         with atexit.  Use seen_error to test for errors.
10210         * gcc.h: Include diagnostic-core.h.
10211         (fatal_error, error, warning): Remove.
10212         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
10213         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
10214         (gcc.o): Update dependencies.
10215
10216 2010-05-28  Jeff Law  <law@redhat.com>
10217
10218         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
10219         functions.
10220         * ira.h (ira_bad_reload_regno): Declare
10221         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
10222
10223         * ira-color.c (update_curr_costs): Free updated hard reg costs.
10224         (ira_reassign_conflict_allocnos): Remove bogus asserts.
10225         (allocno_reload_assign): Likewise.
10226
10227 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
10228
10229         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
10230         build1_stat.
10231
10232 2010-05-28  Richard Guenther  <rguenther@suse.de>
10233
10234         PR lto/44312
10235         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
10236         Stream fixed-point constants mode.
10237         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
10238         and TYPE_PRECISION.
10239         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
10240         Stream fixed-point constants mode.
10241         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
10242         and TYPE_PRECISION.
10243
10244 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10245
10246         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
10247         only place it was called from.
10248         (number_of_latch_executions): Do not return chrec_dont_know when the
10249         may_be_zero is a runtime condition: instead, return a COND_EXPR
10250         including the may_be_zero condition.
10251         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
10252         of nb_iterations.
10253         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
10254         COND_EXPRs.
10255
10256 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10257
10258         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
10259         generate COND_EXPRs for degenerate_phi_result.
10260
10261 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10262
10263         PR middle-end/44293
10264         * tree-if-conv.c (if_convertible_loop_p): Check the
10265         if-convertibility of phi nodes in non predicated BBs.
10266
10267 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10268
10269         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
10270
10271 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10272
10273         PR driver/15303
10274         * gcc.c (inform, warning, inform): New functions.
10275         (fatal_ice): Rename to internal_error; change cmsgid parameter to
10276         gmsgid.  All callers changed.
10277         (notice): Rename to fnotice; add parameter fp.  All callers changed.
10278         (fatal_error): Rename to fatal_signal.  All users changed.
10279         (fatal): Rename to fatal_error; change cmsgid parameter to
10280         gmsgid.  All callers changed.
10281         (process_command): Use warning instead of error for warnings.
10282         (end_going_arg): Don't use _() around argument of error.
10283         (do_spec_1): Use inform for message from %n specs.  Use warning
10284         instead of error for warnings.
10285         (main): Use inform for comparison messages.  Use warning for
10286         message about unused linker input.
10287         (error): Increment error_count.  Print "error: ".
10288         * gcc.h (fatal): Change to fatal_error.
10289         (warning): Declare.
10290         * config/darwin-driver.c (darwin_default_min_version): Use warning
10291         instead of fprintf for warnings.
10292         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
10293
10294 2010-05-28  Julian Brown  <julian@codesourcery.com>
10295
10296         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
10297         (*thumb2_addsi3_compare0_scratch): New.
10298         * config/arm/constraints.md (Pv): New.
10299         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
10300         for ARM mode only.
10301         (*addsi3_compare0_scratch): Likewise.
10302
10303 2010-05-28  Jan Hubicka  <jh@suse.cz>
10304
10305         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
10306         check.
10307         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
10308         only on local statics.
10309
10310 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
10311
10312         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
10313
10314 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10315
10316         PR bootstrap/44314
10317         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
10318         (OPTION_GLIBC): Define.
10319
10320 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
10321
10322         PR debug/41048
10323         * dwarf2out.c (double_int_type_size_in_bits): New function.
10324         (round_up_to_align): Change first argument and return value to
10325         double_int.
10326         (field_byte_offset): Work internally on double_ints.
10327
10328         PR target/43636
10329         * builtins.c (expand_movstr): Use a temporary pseudo instead
10330         of target even when target is not NULL and not const0_rtx, but
10331         fails movstr predicate.
10332         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
10333
10334 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10335
10336         * final.c (rest_of_clean_state): Use %m in errors instead of
10337         strerror (errno).
10338         * gengtype.c (read_input_list, close_output_files): Use xstrerror
10339         instead of strerror.
10340         * toplev.c (process_options): Use %m in errors instead of strerror
10341         (errno).
10342         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
10343         (errno).
10344
10345 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
10346
10347         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
10348         (ix86_canonical_va_list_type): Make static.  Add declaration.
10349         (ix86_enum_va_list): Make static.  Reindent.
10350         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
10351         (ix86_canonical_va_list_type): Ditto.
10352         (ix86_enum_va_list): Ditto.
10353
10354 2010-05-28  Richard Guenther  <rguenther@suse.de>
10355
10356         * lto-wrapper.c (run_gcc): With -save-temps generate a
10357         user-visible ltrans filename.  Fixup ltrans unit numbering.
10358
10359 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
10360
10361         * c-common.c (c_common_nodes_and_builtins): Replace use
10362         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
10363         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
10364         to ix86_enum_va_list.
10365         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
10366         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
10367         (TARGET_ENUM_VA_LIST_P): Add hook description.
10368         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
10369         * target.h (gcc_target): Add enum_va_list hook.
10370
10371         PR bootstrap/44299
10372         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
10373         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
10374         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
10375
10376 2010-05-28  Alan Modra  <amodra@gmail.com>
10377
10378         PR target/44266
10379         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10380         emit_library_call machinery to set up __tls_get_addr calls.
10381
10382 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10383
10384         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
10385
10386 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
10387
10388         Revert fix for PR c++/44188
10389         * c-common.c (is_typedef_decl): Revert the moving of  this
10390         definition ...
10391         * tree.c (is_typedef_decl): ... here.
10392         (typdef_variant_p): Revert the moving of this  definition
10393         here from gcc/cp/tree.c.
10394         * c-common.h (is_typedef_decl): Revert the moving of this
10395         declaration ...
10396         * tree.h (is_typedef_decl): ... here.
10397         (typedef_variant_p): Revert the moving of this  declaration here
10398         from gcc/cp/cp-tree.h
10399         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
10400         (gen_tagged_type_die): Revert the splitting out of ...
10401         (gen_type_die_with_usage): ... this function. Revert the anonymous
10402         tagged type handling.
10403         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
10404         typedefs naming anonymous tagged types.
10405
10406 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
10407
10408         * config/rs6000/rs6000-modes.def (PSImode): Delete.
10409
10410 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
10411
10412         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
10413         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
10414         throughout.
10415         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
10416         "xer" to "ca".
10417         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
10418         XER_REGS to CA_REGS throughout.
10419         * config/rs6000/rs6000.h: Same.
10420         (ADDITIONAL_REGISTER_NAMES): Add "xer".
10421         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
10422         that mode_iterator "P" is the size for arithmetic carries as well.
10423         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
10424
10425 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
10426
10427         PR bootstrap/44255
10428         * combine.c (struct rtx_subst_pair): Define unconditionally.
10429         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
10430         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
10431         Call make_compound_operation on pair->to.
10432         (propagate_for_debug): Don't call make_compound_operation here.
10433         Always use simplify_replace_fn_rtx.
10434
10435 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
10436
10437         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
10438         * config/xtensa/xtensa.c (override_options): Check
10439           TARGET_FORCE_NO_PIC and set flag_pic.
10440         * config/xtensa/xtensa.opt: Document -mforce-no-pic
10441
10442 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
10443
10444         PR bootstrap/44299
10445         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
10446         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
10447
10448 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
10449
10450         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
10451         toplev.h.
10452         * diagnostic.c: Don't include toplev.h.
10453         (progname): Define.  Moved from toplev.c.
10454         (seen_error): New function.
10455         * diagnostic.h: Include diagnostic-core.h.
10456         (diagnostic_t, emit_diagnostic): Don't declare here.
10457         * toplev.c (progname): Move to toplev.c.
10458         (emit_debug_global_declarations, compile_file, finalize,
10459         do_compile, toplev_main): Use seen_error.
10460         * toplev.h: Include diagnostic-core.h.
10461         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
10462         internal_error, warning, warning_at, error, error_n, error_at,
10463         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
10464         verbatim, fnotice, progname): Move to diagnostic-core.h.
10465         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
10466         (expand_builtin_expect): Use seen_error.
10467         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
10468         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
10469         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
10470         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
10471         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
10472         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
10473         errorcount for errors.
10474         * c-opts.c (c_common_finish): Use seen_error.
10475         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
10476         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
10477         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
10478         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
10479         (get_coverage_counts): Use seen_error.
10480         * dwarf2out.c (dwarf2out_finish): Use seen_error.
10481         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
10482         gimplify_body): Use seen_error.
10483         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
10484         * ipa-pure-const.c (gate_pure_const): Use seen_error.
10485         * ipa-reference.c (gate_reference): Use seen_error.
10486         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
10487         * lambda-code.c: Include diagnostic-core.h instead of
10488         diagnostic.h.
10489         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
10490         * lto-compress.c: Include diagnostic-core.h instead of
10491         diagnostic.h.
10492         * lto-section-in.c: Include diagnostic-core.h instead of
10493         diagnostic.h.
10494         * lto-streamer-out.c: Include diagnostic-core.h instead of
10495         diagnostic.h.
10496         * lto-streamer.c: Include diagnostic-core.h instead of
10497         diagnostic.h.
10498         (gate_lto_out): Use seen_error.
10499         * matrix-reorg.c: Include diagnostic-core.h instead of
10500         diagnostic.h.
10501         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
10502         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
10503         (gate_expand_omp, lower_omp_1): Use seen_error.
10504         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
10505         (rest_of_decl_compilation, rest_of_type_compilation,
10506         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
10507         * tree-cfg.c (label_to_block_fn): Use seen_error.
10508         * tree-inline.c (optimize_inline_calls): Use seen_error.
10509         * tree-mudflap.c (mudflap_finish_file): Use
10510         seen_error.
10511         * tree-optimize.c (gate_all_optimizations,
10512         gate_all_early_local_passes, gate_all_early_optimizations): Use
10513         seen_error.
10514         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
10515         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
10516         (varpool_remove_unreferenced_decls,
10517         varpool_assemble_pending_decls): Use seen_error.
10518         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
10519         (TOPLEV_H, DIAGNOSTIC_H): Update.
10520         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
10521         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
10522         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
10523         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
10524         coverage.o, lambda-code.o): Update dependencies.
10525
10526 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
10527
10528         PR c++/44188
10529         * c-common.c (is_typedef_decl): Move this definition ...
10530         * tree.c (is_typedef_decl): ... here.
10531         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10532         * c-common.h (is_typedef_decl): Move this declaration ...
10533         * tree.h (is_typedef_decl): ... here.
10534         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10535         * dwarf2out.c (is_naming_typedef_decl): New function.
10536         (gen_tagged_type_die): Split out of ...
10537         (gen_type_die_with_usage): ... this function. When an anonymous
10538         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10539         is emitted for the typedef.
10540         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10541         anonymous tagged types.
10542
10543 2010-05-27  Jason Merrill  <jason@redhat.com>
10544
10545         * print-tree.c (debug_vec_tree): New fn.
10546         (print_vec_tree): New fn.
10547         * tree.h: Declare them.
10548         * gdbinit.in (pvt): New command.
10549
10550         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
10551
10552         * gdbinit.in (pdd): New command.
10553
10554 2010-05-27  Jan Hubicka  <jh@suse.cz>
10555
10556         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
10557         (update_caller_keys): Return early if there are no callers;
10558         only update fibheap when decresing the key.
10559         (update_callee_keys): Avoid recursion.
10560         (decide_inlining_of_small_functions): When badness does not match;
10561         re-insert into fibheap.
10562
10563 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
10564
10565         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
10566         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
10567         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
10568         (ALL_HOST_OBJS): Now a union of the above two.
10569         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
10570         all files in ALL_HOST_FRONTEND_OBJS.
10571         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
10572
10573         * c-common.c: Pretend to be a backend file by undefining
10574         IN_GCC_FRONTEND (still need rtl.h here).
10575
10576 2010-05-27  Jan Hubicka  <jh@suse.cz>
10577
10578         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
10579         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
10580
10581 2010-05-27  Jan Hubicka  <jh@suse.cz>
10582
10583         * sched-ebb.c: Rename struct deps to struct deps_desc.
10584         * ddg.c: Likewise.
10585         * sel-sched-ir.c: Likewise.
10586         * sched-deps.c: Likewise.
10587         * sched-int.h: Likewise.
10588         * sched-rgn.c: Likewise.
10589
10590 2010-05-27  Jon Beniston  <jon@beniston.com>
10591
10592         PR 43726
10593         * config/lm32/lm32.h: Remove definition of
10594         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
10595
10596 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
10597
10598         PR lto/44230
10599         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
10600
10601 2010-05-27  Richard Guenther  <rguenther@suse.de>
10602
10603         PR tree-optimization/44284
10604         * tree-vect-stmts.c (vectorizable_assignment): Handle
10605         sign-changing conversions as simple copy.
10606
10607 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10608
10609         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
10610         Bionic C library.
10611         (__gthread_active_p): Check for pthread_create if compiling against
10612         Bionic C library.
10613
10614 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10615
10616         Support compilation for Android platform.  Reimplement -mandroid.
10617
10618         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
10619         (*android*): Set ANDROID_DEFAULT.
10620         (arm*-*-linux*): Include linux-android.h.
10621         (arm*-*-eabi*): Don't include previous -mandroid implementation.
10622         * config/arm/eabi.h: Remove, move Android-specific parts ...
10623         * config/linux-android.h: ... here.  New file.
10624         * config/arm/eabi.opt: Rename to ...
10625         * config/linux-android.opt: ... this.
10626         (mandroid): Allow -mno-android option.  Initialize based on
10627         ANDROID_DEFAULT.
10628         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
10629         Move logic to corresponding LINUX_TARGET_* macros.
10630         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
10631         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
10632         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
10633         Android definitions.
10634         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
10635         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
10636         Document.
10637
10638 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10639
10640         Add support for Bionic C library
10641
10642         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
10643         macro.
10644         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
10645         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
10646
10647         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
10648         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
10649         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
10650         to support multiple C libraries.  Handle Bionic.
10651         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
10652         (BIONIC_DYNAMIC_LINKER64): Define.
10653         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
10654         Update.
10655         (TARGET_HAS_SINCOS): Enable for Bionic.
10656
10657         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
10658         the last option specified on command line take effect.
10659         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
10660         (mbionic): New.
10661         (mglibc, muclibc): Update.
10662
10663         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
10664         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
10665         DEFAULT_LIBC.
10666
10667         * doc/invoke.texi (-mglibc, -muclibc): Update.
10668         (-mbionic): Document.
10669
10670 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10671
10672         * c-common.h (c_register_addr_space): Add prototype.
10673         (ADDR_SPACE_KEYWORD): Remove.
10674         * c-common.c (c_register_addr_space): New function.
10675         (c_addr_space_name): Reimplement.
10676         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
10677
10678         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
10679         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
10680
10681         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
10682         Remove TARGET_ADDR_SPACE_KEYWORDS.
10683
10684 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
10685
10686         * input.c: New file.
10687         * input.h (main_input_filename): Move declaration to toplev.h.
10688         * toplev.c (input_location, line_table): Move to input.c
10689         * toplev.h (main_input_filename): Move declaration from input.h.
10690         * tree.c (expand_location): Move to input.c.
10691         * Makefile.in (OBJS-common): Add input.o.
10692         (input.o): Add dependencies.
10693
10694 2010-05-27  Richard Guenther  <rguenther@suse.de>
10695
10696         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
10697         for non-existant files.
10698         (fork_execute): Mark args_name file as deleted.
10699
10700 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
10701
10702         PR bootstrp/44287
10703         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
10704         (narrow_signed_type): Likewise.
10705
10706 2010-05-26  Jan Hubicka  <jh@suse.cz>
10707
10708         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
10709         edge only when checking is enabled; check using former_clone_of;
10710         check inline clones too.
10711         (cgraph_materialize_clone): Record former_clone_of pointer.
10712         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
10713         combining redirections; dump args_to_skip bitmap
10714         (cgraph_materialize_all_clones): Do no redirection here.
10715         * ipa-inline.c (inline_transform): Do redirection here.
10716         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
10717         cheking only).
10718
10719 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10720
10721         * config/avr/avr-c.c: Do not include regs.h.
10722         Include cpplib.h for cpp_define and tree.h for c-common.h.
10723         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
10724         * config/avr/t-avr: Fix dependencies for avr-c.o.
10725
10726 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10727
10728         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
10729         string instead of SYMBOL_REF rtx.
10730         * rtl.h (set_stack_check_libfunc): Move prototype from here...
10731         * libfuncs.h: ...to here.  Adjust for explow.c change.
10732
10733 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
10734
10735         * pretty-print.c: Don't include ggc.h.
10736         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
10737         (identifier_to_locale): Use them for allocation.
10738         * pretty-print.h (identifier_to_locale_alloc,
10739         identifier_to_locale_free): Declare.
10740         * toplev.c (alloc_for_identifier_to_locale): New.
10741         (general_init): Set identifier_to_locale_alloc and
10742         identifier_to_locale_free.
10743         * Makefile.in (pretty-print.o): Update dependencies.
10744
10745 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
10746
10747         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
10748         pointer types if they have different alignment or mode.
10749
10750 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
10751
10752         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10753         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10754         * config/sparc/sparc-protos.h (function_value): Remove declaration.
10755         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
10756         sparc_function_value_regno_p): New functions.
10757         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10758         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10759         (function_value): Rename to...
10760         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
10761         argument to 'outgoing'.
10762         (function_arg_record_value, function_arg_union_value,
10763         function_arg_vector_value): Update comment.
10764
10765 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
10766
10767         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
10768         (fde_needed_for_eh_p): New predicate.
10769         (output_call_frame_info): Use it throughout to decide whether FDEs
10770         are needed for EH purpose.
10771         (dwarf2out_begin_prologue): Reorder assignments.
10772
10773 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10774
10775         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
10776         special case loop->header.
10777         (is_predicated): New.
10778         (if_convertible_loop_p): Call it.
10779
10780 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10781
10782         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
10783         iterator in parameter.  Do not generate code during the analysis.
10784         (tree_if_convert_cond_stmt): Removed.
10785         (tree_if_convert_stmt): Removed.
10786         (predicate_bbs): New.
10787         (if_convertible_loop_p): Call predicate_bbs.
10788         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
10789         now contains all the analysis part.
10790
10791 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10792
10793         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
10794         statements in the analysis part.
10795         (tree_if_convert_stmt): Update comment.
10796         (remove_conditions_and_labels): New.
10797         (combine_blocks): Call remove_conditions_and_labels.
10798         (tree_if_conversion): Update comment.
10799
10800 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10801
10802         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
10803         than 2 predecessors or more than 2 successors.
10804
10805 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10806
10807         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
10808         of loops in which the data dependence analysis fails.
10809
10810 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10811
10812         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
10813         CDI_POST_DOMINATORS.
10814         (tree_if_conversion): Same.
10815
10816 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10817
10818         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
10819
10820 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10821
10822         * tree-if-conv.c: Update copyright years.  Fix comments.
10823         Fix indentation.
10824
10825 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
10826
10827         * builtin-types.def (BT_INT128): New primitive type.
10828         (BT_UINT128): Likewise.
10829         * c-common.c (c_common_r): Add __int128 keyword.
10830         (c_common_type_for_size): Handle __int128.
10831         (c_common_type_for_mode): Likewise.
10832         (c_common_signed_or_unsigned_type): Likewise.
10833         (c_common_nodes_and_builtins): Add builtin type
10834         if target supports 128-bit integer scalar.
10835         * c-common.h (enum rid): Add RID_INT128.
10836         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
10837         if target supports 128-bit integer scalar.
10838         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
10839         (finish_declspecs): Likewise.
10840         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
10841         (c_token_starts_declspecs): Likewise.
10842         (c_parser_declspecs): Likewise.
10843         (c_parser_attributes): Likewise.
10844         (c_parser_objc_selector): Likewise.
10845         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
10846         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
10847         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
10848         * tree.c (make_or_reuse_type): Likewise.
10849         (make_unsigned_type): Likewise.
10850         (build_common_tree_nodes_2): Likewise.
10851         * tree.h (enum integer_type_kind): Add itk_int128 and
10852         itk_unsigned_int128.
10853         (int128_integer_type_node): New define.
10854         (int128_unsigned_type_node): New define.
10855         * doc/extend.texi: Add documentation about __int128 type.
10856
10857 2010-05-26  Richard Guenther  <rguenther@suse.de>
10858
10859         * tree-ssa-sccvn.c (copy_nary): Adjust.
10860         (copy_phis): Rename to ...
10861         (copy_phi): ... this.  Adjust.
10862         (copy_references): Rename to ...
10863         (copy_reference): ... this.  Adjust.
10864         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
10865         result into the valid table.
10866
10867 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10868
10869         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
10870         insn-config.h, insn-codes.h, recog.h, and optabs.h.
10871
10872 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10873
10874         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
10875
10876 2010-05-26  Richard Guenther  <rguenther@suse.de>
10877
10878         * opts.c (common_handle_option): Handle OPT_Ofast.
10879
10880 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
10881
10882         * diagnostic.c: Don't include opts.h.
10883         (permissive_error_option): Define.
10884         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
10885         for classify_diagnostic.  Don't use memset for
10886         classify_diagnostic.  Initialize new and recently added fields.
10887         (diagnostic_classify_diagnostic): Use context->n_opts instead of
10888         N_OPTS.
10889         (diagnostic_report_diagnostic): Pass context parameter to
10890         diagnostic_report_warnings_p.  Use option_enabled and option_name
10891         hooks from context.
10892         (emit_diagnostic): Use permissive_error_option.
10893         (permerror): Likewise.
10894         * diagnostic.h: Don't include options.h.
10895         (struct diagnostic_context): Add n_opts, opt_permissive,
10896         inhibit_warnings, warn_system_headers, option_enabled and
10897         option_name fields.  Change classify_diagnostic to a pointer.
10898         * opts-diagnostic.h: New file.
10899         * opts.c: Include opts-diagnostic.h.
10900         (common_handle_option): Set global_dc fields for -Wfatal-errors,
10901         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
10902         (option_name): New function.
10903         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
10904         (c_common_handle_option): Set global_dc->permissive for
10905         -fpermissive.
10906         * c-common.c (c_cpp_error): Save and restore
10907         global_dc->warn_system_headers, not variable warn_system_headers.
10908         * toplev.c: Include opts-diagnostic.h.
10909         (general_init): Update call to diagnostic_initialize.  Set
10910         global_dc->show_column, global_dc->option_enabled and
10911         global_dc->option_name.
10912         (process_options): Don't set global_dc fields here.
10913         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
10914         (diagnostic.o, opts.o, toplev.o): Update dependencies.
10915
10916 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10917
10918         * config/picochip/picochip.md (movsi): Split a movsi from a
10919         const after reload.
10920
10921 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10922
10923         * ggc-zone.c: Update copyright year.
10924         (poison_region): Mark memory for Valgrind as undefined before
10925         memset () call and inaccessible afterwards.
10926         (ggc_pch_total_size): Change type of i to int.
10927
10928 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10929
10930         * ggc-common.c (ggc_free_overhead): Allow empty slot.
10931
10932 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10933
10934         * ggc-common.c: Update copyright year.
10935         (ggc_rlimit_bound): Remove prototype.  Compile only if
10936         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
10937         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
10938         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
10939         (ggc_min_heapsize_heuristic): Likewise.
10940
10941 2010-05-26  Richard Guenther  <rguenther@suse.de>
10942
10943         PR rtl-optimization/44164
10944         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
10945         no-common access-path disambiguation.
10946         (indirect_ref_may_alias_decl_p): Adjust.
10947         (indirect_refs_may_alias_p): Likewise.
10948         (refs_may_alias_p_1): Likewise.
10949
10950 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10951
10952         * c-typeck.c: Do not include expr.h.
10953
10954 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10955
10956         * rtl.h (decl_default_tls_model): Move prototype from here...
10957         * output.h: ...to here.
10958         * c-decl.c: Do not include rtl.h.
10959         * c-pragma.c: Likewise.
10960         * c-parser.c: Likewise.
10961         * c-gimplify.c: Likewise.  And also not hard-reg-set.
10962         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
10963         FIXME note for it.  Add a FIXME note for expr.h.
10964         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
10965         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
10966         defined.
10967
10968 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
10969
10970         PR target/44199
10971         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
10972         or total_size is larger than red zone size for non-V4 ABI, emit a
10973         stack_tie resp. frame_tie insn before stack pointer restore.
10974         * config/rs6000/rs6000.md (frame_tie): New insn.
10975
10976 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
10977
10978         * function.h (struct function): Add can_throw_non_call_exceptions bit.
10979         * lto-streamer-in.c (input_function): Stream it in.
10980         * lto-streamer-out.c (output_function): Stream it out.
10981         * function.c (allocate_struct_function): Set it.
10982         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
10983         for flag_non_call_exceptions.
10984         * cfgbuild.c (control_flow_insn_p): Likewise.
10985         (make_edges): Likewise.
10986         * cfgexpand.c (expand_stack_alignment): Likewise.
10987         * combine.c (distribute_notes): Likewise.
10988         * cse.c (cse_extended_basic_block): Likewise.
10989         * except.c (insn_could_throw_p): Likewise.
10990         * gcse.c (simple_mem): Likewise.
10991         * ipa-pure-const.c (check_call): Likewise.
10992         (check_stmt ): Likewise.
10993         * lower-subreg.c (lower-subreg.c): Likewise.
10994         * optabs.c (emit_libcall_block): Likewise.
10995         (prepare_cmp_insn): Likewise.
10996         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
10997         * postreload.c (rest_of_handle_postreload): Likewise.
10998         * reload1.c (reload_as_needed): Likewise.
10999         (emit_input_reload_insns): Likewise.
11000         (emit_output_reload_insns): Likewise.
11001         (fixup_abnormal_edges): Likewise.
11002         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
11003         * store-motion.c (find_moveable_store): Likewise.
11004         * tree-eh.c (stmt_could_throw_p): Likewise.
11005         (tree_could_throw_p): Likewise.
11006         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11007         * config/arm/arm.c (arm_expand_prologue): Likewise.
11008         (thumb1_expand_prologue): Likewise.
11009         * config/rx/rx.md (cbranchsf4): Likewise.
11010         (cmpsf): Likewise.
11011         * config/s390/s390.c (s390_emit_prologue): Likewise.
11012         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
11013         (inline_forbidden_into_p): New predicate.
11014         (expand_call_inline): Use it to forbid inlining.
11015         (tree_can_inline_p): Likewise.
11016
11017 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11018
11019         * config/i386/i386-c.c: Do not include rtl.h.
11020         * config/i386/t-i386: Update dependencies.
11021
11022 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11023
11024         * attribs.c: Do not include rtl.h.
11025         * Makefile.in: Update dependencies.
11026
11027 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
11028
11029         * double-int.h (double_int_and): New.
11030         * combine.c (try_combine): Clean up, use double_int_* and
11031         immed_double_int_const functions.
11032
11033 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11034
11035         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
11036         stderr to /dev/null instead of grep -q.
11037         * configure: Regenerate.
11038
11039 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11040
11041         * Makefile.in (EXCEPT_H): Fix typo.
11042
11043 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
11044
11045         * ira-build.c (update_conflict_hard_reg_costs): New.
11046         (ira_build): Call update_conflict_hard_reg_costs.
11047
11048 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
11049
11050         PR debug/41371
11051         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
11052         ENABLE_CHECKING.
11053         (intersect_loc_chains): Walk the s2var's loc_chain together
11054         with s1node chain as long as the locations are equal, don't
11055         call find_loc_in_1pdv in that case.
11056
11057         PR debug/42801
11058         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
11059         (copy_bind_expr): ... instead of here.
11060         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
11061         if the block hasn't been remapped.
11062         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
11063         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
11064
11065 2010-05-25  Richard Guenther  <rguenther@suse.de>
11066
11067         PR middle-end/44069
11068         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
11069         out-of-bounds array accesses.
11070
11071 2010-05-25  Richard Guenther  <rguenther@suse.de>
11072
11073         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
11074         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
11075         (run_gcc): Re-organize to make cleanup easier.
11076
11077 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11078
11079         * config/s390/s390.c (optimization_options): Fix and move the
11080         flag_prefetch_loop_arrays override ...
11081         (override_options): ... here.
11082
11083 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
11084
11085         * diagnostic.c: Don't include plugin.h.
11086         (diagnostic_report_diagnostic): Don't handle plugins specially
11087         here.  Pass context to internal_error callback.
11088         * diagnostic.h (struct diagnostic_context): Add context parameter
11089         to internal_error callback.
11090         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
11091         * plugin.h (struct diagnostic_context): Declare.
11092         (warn_if_plugins, plugins_internal_error_function): Declare.
11093         * toplev.c (general_init): Set global_dc->internal_error.
11094         * Makefile.in (diagnostic.o): Update dependencies.
11095
11096 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
11097
11098         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
11099         * config/rs6000/t-darwin64: New.
11100         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
11101         build crt2.
11102
11103 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
11104
11105         PR 44203
11106         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
11107         match the original (and intended) behaviour before r159557.  This
11108         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
11109         in two ways.
11110
11111 2010-05-25  Richard Guenther  <rguenther@suse.de>
11112
11113         * doc/invoke.texi: Document -Ofast.
11114         * target.h (struct gcc_target): Add handle_ofast.
11115         * target-def.h (TARGET_HANDLE_OFAST): Add.
11116         (TARGET_INITIALIZER): Adjust.
11117         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
11118         * common.opt (Ofast): Add.
11119
11120 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
11121
11122         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
11123         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
11124
11125 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
11126
11127         PR target/43610
11128         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
11129         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
11130         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
11131         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
11132
11133 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
11134
11135         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
11136         DW_OP_minus with negated offset instead of DW_OP_plus.
11137         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
11138
11139 2010-05-25  Wei Guozhi  <carrot@google.com>
11140
11141         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
11142         tst instruction and a new alternative.
11143         * config/arm/constraints.md (Pu): New constraint.
11144
11145 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
11146
11147         * function.c (assign_stack_local_1): Initialize variable
11148         to avoid warning when bootstrapping at -O3.
11149
11150 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
11151
11152         * configure.ac (all_lang_makefiles): Remove everything related to it.
11153         * configure: Regenerate.
11154         * Makefile.in: Fix reference to ada Make-lang.in.
11155         Remove support for LANG_MAKEFILES.
11156
11157 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
11158             Sandra Loosemore  <sandra@codesourcery.com>
11159
11160         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
11161         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
11162         description.  Add arm_neon_fp16_ok.
11163         (Add Options): Add arm_neon and arm_neon_fp16.
11164
11165 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
11166
11167         * diagnostic.c: Don't include flags.h.
11168         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
11169         context parameters.  Check flags in the context passed as a parameter.
11170         (diagnostic_build_prefix): Add context parameter.  Check
11171         show_column flag in context.
11172         (diagnostic_action_after_output): Check fatal_errors flag in context.
11173         (diagnostic_report_current_module): Check show_column flag in context.
11174         (default_diagnostic_starter): Update call to
11175         diagnostic_build_prefix.
11176         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
11177         (emit_diagnostic): Pass context to permissive_error_kind.
11178         (permerror): Pass context to permissive_error_kind.
11179         * diagnostic.h (struct diagnostic_context): Add show_column,
11180         pedantic_errors, permissive and fatal_errors fields.
11181         (diagnostic_build_prefix): Update prototype.
11182         * langhooks.c
11183         * toplev.c (process_options): Set flags in global_dc from
11184         flag_show_column, flag_pedantic_errors, flag_permissive,
11185         flag_fatal_errors.
11186         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
11187         to diagnostic_build_prefix.
11188         * Makefile.in (diagnostic.o): Update dependencies.
11189
11190 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11191
11192         * config/i386/ia32intrin.h (__crc32q): Define only if
11193         __SSE4_2__ is defined.
11194
11195 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
11196
11197         PR target/44132
11198         PR middle-end/43602
11199         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
11200         DECL_VISIBILITY_SPECIFIED.
11201         (emutls_decl): Set DECL_PRESERVE_P and copy
11202         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
11203         (emutls_finalize_control_var): New callback.
11204         (emutls_finish): Finalize emutls control variables.
11205         * toplev.c (compile_file): Move the call to emutls_finish ()
11206         before varpool_assemble_pending_decls ().
11207
11208 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
11209
11210         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
11211         added to the preprocessor condition.
11212
11213 2010-05-24  Paul Brook  <paul@codesourcery.com>
11214
11215         * gengtype-lex.l: Add HARD_REG_SET.
11216         * expr.c (expand_expr_real_1): Record writes to hard registers.
11217         * function.c (rtl_data): Add asm_clobbers.
11218         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
11219         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
11220         Use crtl->asm_clobbers.
11221
11222 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11223
11224         * doc/makefile.texi (Makefile): Mention stages 'profile'
11225         and 'feedback' for profiledbootstrap.
11226
11227 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11228
11229         PR target/44245
11230         * config/i386/i386.c (def_builtin): Properly check
11231         OPTION_MASK_ISA_64BIT.
11232
11233 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
11234
11235         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
11236         typedefs with different but compatible types.  Allow duplicate
11237         typedefs with the same type except for pedantic non-C1X, but give
11238         warning for variably modified types.
11239         * c-typeck.c (tagged_types_tu_compatible_p,
11240         function_types_compatible_p, type_lists_compatible_p,
11241         comptypes_internal): Add parameter different_types_p; set
11242         *different_types_p for different but compatible types.  All
11243         callers changed.
11244         (comptypes_check_different_types): New.
11245         * c-tree.h (comptypes_check_different_types): Declare.
11246
11247 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11248
11249         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
11250         * jump.c: Include basic-block.h.
11251         * profile.c: Likewise.
11252         * tree-profile.c: Likewise.
11253         * coverage.c: Likewise.
11254         * basic-block.h (optimize_function_for_size_p): Move to function.h.
11255         (optimize_function_for_speed_p): Likewise.
11256         * function.h (optimize_function_for_size_p,
11257         optimize_function_for_speed_p): Moved here from basic-block.h.
11258         * Makefile.in: Update dependencies.
11259
11260 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11261
11262         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
11263         before calling make; allow override through $MAKE.
11264         * doc/invoke.texi (Optimize Options): Document override.
11265
11266 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
11267
11268         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
11269         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11270         (rs6000_mode_dependent_address_ptr): Make static.
11271         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11272         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
11273         Remove.
11274
11275 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
11276
11277         PR target/43869
11278         * config/i386/i386.c: Make sure that the correct regparm is passed.
11279
11280 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11281
11282         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
11283         * sbitmap.c: ...to here to internalize sbitmap element access.
11284         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
11285         Explain why basic-block.h is included.
11286         * function.h: Include tm.h for CUMULATIVE_ARGS.
11287         * Makefile.in: Update dependencies.
11288
11289 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11290
11291         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
11292         New core types.
11293         * sbitmap.h (struct sbitmap_def): Do not typedef here.
11294         * sbitmap.c: Include sbitmap.h.
11295         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
11296         hard-reg-set.h.  Split everything related to regsets out from here...
11297         * regset.h: ...to here.  New file.
11298         * df.h: Include regset.h and sbitmap.h.
11299         * tree-flow.h: Likewise.
11300         * cfgloop.h: Likewise.
11301         * except.h: Do not include sbitmap.h.  Include hashtab.h.
11302         * cgraph.h: Include vec.h and function.h.
11303         * reload.h (struct insn_chain): Change types of live_throughout
11304         and dead_or_set from regset_head to bitmap_head.
11305         (compute_use_by_pseudos): Be defined also if regset.h is not included.
11306         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
11307         spilled_regs from regset_head to bitmap_head to avoid dependency
11308         in regset.h.
11309         * sel-sched-ir.h: Include regset.h.
11310         * reload.c: Include df.h before reload.h.
11311         * caller-save.c: Likewise.
11312         * reload1.c: Likewise.
11313         * ira.c: Likewise.
11314         (mark_elimination): Update type of r to bitmap, consistent with
11315         DF_LR_IN.
11316         * dominance.c: Include bitmap.h.
11317         * modulo-sched.c: Include df.h.
11318         * cfganal.c: Include bitmap.h and sbitmap.h.
11319         * cfgbuild.c: Include sbitmap.h.
11320         * lcm.c: Include sbitmap.h.
11321         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
11322         * domwalk.c: Include sbitmap.h, exclude ggc.h.
11323         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
11324         * cselib.c: Include bitmap.h.
11325         * tree-optimize.c: Include regset.h.
11326         * stmt.c: Include bitmap.h.
11327         * Makefile.in: Update dependencies.
11328
11329 2010-05-22  Jan Hubicka  <jh@suse.cz>
11330
11331         * cgraph.h (struct varpool_node): Add same_comdat_group.
11332         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
11333         pointer.
11334         (output_varpool): Update call of lto_output_varpool_node.
11335         (input_varpool): Read same_comdat_group pointer.
11336         (input_varpool_1): Fixup same_comdat_group pointer.
11337         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
11338         group is needed, all are.
11339         * varpool.c (varpool_remove_node): Remove node from same comdat group
11340         linklist too.
11341         (varpool_analyze_pending_decls): Walk same comdat groups.
11342
11343 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11344
11345         * rtl.h (union rtunion_def): Remove rt_bit member.
11346         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
11347         * print-rtl (print_rtx): Do not print the member.
11348         * gengtype.c (adjust_field_rtx_def): Do not handle it.
11349         * gengenrtl.c (type_from_format): Likewise.
11350         (accessor_from_format): Likewise.
11351
11352 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
11353
11354         * dbgcnt.c: Include toplev.h instead of errors.h.
11355         * ira-emit.c: Don't include errors.h.
11356         * ira.c: Include toplev.h instead of errors.h.
11357         * lto-compress.c: Include toplev.h instead of errors.h.
11358         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
11359         ira.o, dbgcnt.o): Update dependencies.
11360
11361 2010-05-22  Richard Guenther  <rguenther@suse.de>
11362
11363         * gimple.c (gimple_types_compatible_p): Check type qualifications
11364         before merging pointer to complete and pointer to incomplete type.
11365         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
11366         we use our own resolution algorithm.  The gold linker plugin
11367         doesn't do the job we want it to do here.
11368
11369 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
11370
11371         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11372         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11373         (sparc_mode_dependent_address_p): New function.
11374
11375 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11376
11377         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
11378
11379         * timevar.c: Do not include any core headers.
11380         (timevar_print): De-i18n-ize.
11381         (print_time): Likewise.
11382         * timevar.h (timevar_push, timevar_pop): Make inline functions.
11383
11384 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
11385
11386         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
11387         langhooks-def.h.
11388         (diagnostic_initialize): Initialize x_data not last_function.
11389         (diagnostic_report_current_function): Move to tree-diagnostic.c.
11390         (default_diagnostic_starter): Call
11391         diagnostic_report_current_module not
11392         diagnostic_report_current_function.
11393         (diagnostic_report_diagnostic): Initialize x_data not
11394         abstract_origin.
11395         (verbatim): Likewise.
11396         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
11397         x_data.
11398         (struct diagnostic_context): Change last_function to x_data.
11399         (diagnostic_auxiliary_data): Replace with
11400         diagnostic_context_auxiliary_data and
11401         diagnostic_info_auxiliary_data.
11402         (diagnostic_last_function_changed, diagnostic_set_last_function,
11403         diagnostic_report_current_function): Move to tree-diagnostic.h.
11404         (print_declaration, dump_generic_node, print_generic_stmt,
11405         print_generic_stmt_indented, print_generic_expr,
11406         print_generic_decl, debug_c_tree, dump_omp_clauses,
11407         print_call_name, debug_generic_expr, debug_generic_stmt,
11408         debug_tree_chain, default_tree_printer): Move to
11409         tree-pretty-print.h.
11410         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
11411         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
11412         gimple-pretty-print.h.
11413         * pretty-print.c: Don't include tree.h
11414         (pp_base_format): Don't handle %K here.
11415         (pp_base_tree_identifier): Move to tree-pretty-print.c.
11416         * pretty-print.h (text_info): Change abstract_origin to x_data.
11417         (pp_tree_identifier, pp_unsupported_tree,
11418         pp_base_tree_identifier): Move to tree-pretty-print.h.
11419         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
11420         tree-pretty-print.h: New files.
11421         * tree-pretty-print.c: Include tree-pretty-print.h.
11422         (percent_K_format): New.  Moved from pretty-print.c.
11423         (pp_base_tree_identifier): Move from pretty-print.c.
11424         * c-objc-common.c: Include tree-pretty-print.h.
11425         (c_tree_printer): Handle %K here.
11426         * langhooks.c: Include tree-diagnostic.h.
11427         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
11428         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
11429         (default_tree_printer): Handle %K using percent_K_format.
11430         (general_init): Use default_tree_diagnostic_starter.
11431         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
11432         (free_lang_data): Use default_tree_diagnostic_starter.
11433         * c-pretty-print.c: Include tree-pretty-print.h.
11434         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11435         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11436         * dwarf2out.c: Include tree-pretty-print.h.
11437         * except.c: Include tree-pretty-print.h.
11438         * gimple-pretty-print.c: Include tree-pretty-print.h and
11439         gimple-pretty-print.h.
11440         * gimplify.c: Include tree-pretty-print.h.
11441         * graphite-poly.c: Include tree-pretty-print.h and
11442         gimple-pretty-print.h.
11443         * ipa-cp.c: Include tree-pretty-print.h.
11444         * ipa-inline.c: Include gimple-pretty-print.h.
11445         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11446         * ipa-pure-const.c: Include gimple-pretty-print.h.
11447         * ipa-struct-reorg.c: Include tree-pretty-print.h and
11448         gimple-pretty-print.h.
11449         * ipa-type-escape.c: Include tree-pretty-print.h.
11450         * print-rtl.c: Include tree-pretty-print.h.
11451         * print-tree.c: Include gimple-pretty-print.h.
11452         * sese.c: Include tree-pretty-print.h.
11453         * tree-affine.c: Include tree-pretty-print.h.
11454         * tree-browser.c: Include tree-pretty-print.h.
11455         * tree-call-cdce.c: Include gimple-pretty-print.h.
11456         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11457         * tree-chrec.c: Include tree-pretty-print.h.
11458         * tree-data-ref.c: Include tree-pretty-print.h and
11459         gimple-pretty-print.h.
11460         * tree-dfa.c: Include tree-pretty-print.h.
11461         * tree-if-conv.c: Include tree-pretty-print.h and
11462         gimple-pretty-print.h.
11463         * tree-inline.c: Include tree-pretty-print.h.
11464         * tree-into-ssa.c: Include tree-pretty-print.h and
11465         gimple-pretty-print.h.
11466         * tree-nrv.c: Include tree-pretty-print.h.
11467         * tree-object-size.c: Include tree-pretty-print.h and
11468         gimple-pretty-print.h.
11469         * tree-outof-ssa.c: Include tree-pretty-print.h and
11470         gimple-pretty-print.h.
11471         * tree-parloops.c: Include tree-pretty-print.h and
11472         gimple-pretty-print.h.
11473         * tree-predcom.c: Include tree-pretty-print.h and
11474         gimple-pretty-print.h.
11475         * tree-scalar-evolution.c: Include tree-pretty-print.h and
11476         gimple-pretty-print.h.
11477         * tree-sra.c: Include tree-pretty-print.h.
11478         * tree-ssa-address.c: Include tree-pretty-print.h.
11479         * tree-ssa-alias.c: Include tree-pretty-print.h.
11480         * tree-ssa-ccp.c: Include tree-pretty-print.h and
11481         gimple-pretty-print.h.
11482         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
11483         * tree-ssa-copy.c: Include tree-pretty-print.h and
11484         gimple-pretty-print.h.
11485         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
11486         * tree-ssa-dce.c: Include tree-pretty-print.h and
11487         gimple-pretty-print.h.
11488         * tree-ssa-dom.c: Include tree-pretty-print.h and
11489         gimple-pretty-print.h.
11490         * tree-ssa-dse.c: Include gimple-pretty-print.h.
11491         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
11492         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
11493         * tree-ssa-live.c: Include tree-pretty-print.h and
11494         gimple-pretty-print.h.
11495         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
11496         gimple-pretty-print.h.
11497         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
11498         gimple-pretty-print.h.
11499         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
11500         gimple-pretty-print.h.
11501         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
11502         gimple-pretty-print.h.
11503         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
11504         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
11505         * tree-ssa-operands.c: Include tree-pretty-print.h and
11506         gimple-pretty-print.h.
11507         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
11508         gimple-pretty-print.h.
11509         * tree-ssa-pre.c: Include tree-pretty-print.h and
11510         gimple-pretty-print.h.
11511         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
11512         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
11513         gimple-pretty-print.h.
11514         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
11515         gimple-pretty-print.h.
11516         * tree-ssa-sink.c: Include gimple-pretty-print.h.
11517         * tree-ssa-ter.c: Include tree-pretty-print.h and
11518         gimple-pretty-print.h.
11519         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
11520         * tree-ssa.c: Include tree-pretty-print.h and
11521         gimple-pretty-print.h.
11522         * tree-stdarg.c: Include gimple-pretty-print.h.
11523         * tree-switch-conversion.c: Include gimple-pretty-print.h.
11524         * tree-tailcall.c: Include tree-pretty-print.h and
11525         gimple-pretty-print.h.
11526         * tree-vect-data-refs.c: Include tree-pretty-print.h and
11527         gimple-pretty-print.h.
11528         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
11529         gimple-pretty-print.h.
11530         * tree-vect-loop.c: Include tree-pretty-print.h and
11531         gimple-pretty-print.h.
11532         * tree-vect-patterns.c: Include gimple-pretty-print.h.
11533         * tree-vect-slp.c: Include tree-pretty-print.h and
11534         gimple-pretty-print.h.
11535         * tree-vect-stmts.c: Include tree-pretty-print.h and
11536         gimple-pretty-print.h.
11537         * tree-vectorizer.c: Include tree-pretty-print.h.
11538         * tree-vrp.c: Include tree-pretty-print.h and
11539         gimple-pretty-print.h.
11540         * value-prof.c: Include tree-pretty-print.h and
11541         gimple-pretty-print.h.
11542         * var-tracking.c: Include tree-pretty-print.h.
11543         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
11544         (tree-diagnostic.o): New dependencies.
11545         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
11546         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
11547         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
11548         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
11549         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
11550         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
11551         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
11552         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
11553         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
11554         tree-ssa-address.o, tree-ssa-loop-niter.o,
11555         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
11556         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
11557         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
11558         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
11559         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
11560         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
11561         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
11562         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
11563         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
11564         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
11565         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
11566         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
11567         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
11568         tree-switch-conversion.o, var-tracking.o, value-prof.o,
11569         cfgexpand.o, pretty-print.o): Update dependencies.
11570
11571 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
11572
11573         * tree-ssa-structalias.c: Remove tm_p.h from include.
11574
11575 2010-05-21  Jeff Law  <law@redhat.com>
11576
11577         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
11578
11579 2010-05-21  Jason Merrill  <jason@redhat.com>
11580
11581         * tree-eh.c (cleanup_is_dead_in): New.
11582         (lower_try_finally): Don't generate a dead cleanup region.
11583         (lower_cleanup): Likewise.
11584
11585 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
11586
11587         PR debug/44223
11588         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
11589         unchain each use from the cyclic next_regno_use chain first.
11590
11591 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11592
11593         * real: Do not include gmp.h, mpfr.h, and mpc.h.
11594         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
11595         (real_value_negate, real_value_abs): New prototypes.
11596         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
11597         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
11598         new include file for interface between MPFR and REAL_VALUE_TYPE.
11599         * real.c: Include realmpfr.h.
11600         (real_arithmetic2): Remove legacy function.
11601         (real_value_negate): New.
11602         (real_value_abs): New.
11603         (mfpr_from_real, real_from_mpfr): Move from here...
11604         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
11605         * builtins.c: Include realmpfr.h.
11606         * fold-const.c: Include realmpfr.h.
11607         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
11608         (fold_negate_const): Likewise.
11609         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
11610         * toplev.c: Include realmpfr.h.
11611         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
11612         and real_value_negate.
11613         * fixed-value.c (check_real_for_fixed_mode): Likewise.
11614         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
11615         (vfp3_const_double_index): Likewise.
11616         (arm_print_operand): Likewise.
11617         * Makefile.in: Update dependencies.
11618
11619 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11620
11621         * config/s390/s390.c (override_options): Increase the default
11622         of max-completely-peel-times.
11623
11624 2010-05-21  Julian Brown  <julian@codesourcery.com>
11625             Mark Mitchell  <mark@codesourcery.com>
11626
11627         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
11628         sibling calls for Thumb-1.
11629         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
11630         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
11631         Thumb-2.
11632         (*call_insn, *call_value_insn): Don't use for Thumb-2.
11633         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
11634         for Thumb-2.
11635         (return): New expander.
11636         (*arm_return): New name for ARM return insn.
11637         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
11638
11639 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
11640
11641         * config.gcc (sparc64-*-rtems*): New target.
11642
11643 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
11644
11645         * tree.c (build_function_decl_skip_args): Fix grammar.
11646         (build_function_type_list_1): Fix typos, adjust formatting.
11647
11648 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11649
11650         * tree.h: Include real.h and fixed-value.h as basic datatypes.
11651         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
11652         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
11653         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
11654         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
11655         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
11656         tree-pretty-print.c, tree-loop-distribution.c,
11657         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
11658         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
11659         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
11660         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
11661         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
11662         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
11663         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
11664         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
11665         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
11666         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
11667         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
11668         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
11669         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
11670         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
11671         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
11672         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
11673         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
11674         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
11675         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
11676         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
11677         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
11678         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
11679         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
11680         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
11681         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
11682         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
11683         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
11684         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
11685         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
11686         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
11687         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
11688         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
11689         config/score/score7.c, config/score/score.c, config/arm/arm.c,
11690         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
11691         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
11692         config/bfin/bfin.c: Clean up redundant includes.
11693         * Makefile.in: Update accordingly.
11694
11695 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
11696
11697         PR middle-end/44204
11698         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
11699         statement has no arguments.
11700
11701 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
11702
11703         PR/44139
11704         * varasm.c (emutls_decl): Merge attributes to new decl.
11705
11706 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
11707
11708         PR middle-end/44101
11709         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
11710         around the uniquized constructor if its type requires a conversion.
11711
11712 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
11713
11714         PR debug/44205
11715         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
11716         at -O0 goto_locus of any of the incoming edges differs from
11717         goto_locus of outgoing edge, or gimple_location of any of the
11718         labels differs.
11719
11720 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
11721
11722         * ira.c (ira_non_ordered_class_hard_regs): Define.
11723         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
11724         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
11725         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
11726         cost of unaligned hard regs when allocating multi-reg pseudos.
11727
11728 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
11729
11730         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
11731         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
11732         for TARGET_NO_FLOAT.
11733         * config/mips/mips.c (mips_file_start): Expand conditional expression
11734         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
11735         (mips_override_options): Move -mno-float override -msoft-float and
11736         -mhard-float.
11737         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
11738         Condition(TARGET_SUPPORTS_NO_FLOAT).
11739         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
11740         __mips_no_float here.
11741         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
11742         (TARGET_SUPPORTS_NO_FLOAT): Define.
11743         * config/mips/sdemtk.opt: Delete.
11744
11745 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
11746
11747         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
11748
11749 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
11750
11751         PR target/43733
11752         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
11753         * configure: Regenerate.
11754         * config.in: Regenerate.
11755         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
11756         instead of sahf only for 64bit targets.
11757
11758 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
11759
11760         PR debug/44178
11761         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
11762         setup_ref_regs for DEBUG_INSNs.
11763
11764 2010-05-20  Jan Hubicka  <jh@suse.cz>
11765
11766         PR middle-end/44197
11767         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
11768
11769 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11770
11771         PR bootstrap/43870
11772         * df-scan.c (df_ref_compare): Stabilize sort.
11773
11774 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
11775
11776         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
11777         argument.  Don't use DW_OP_piece if offset is non-zero,
11778         put offset into second DW_OP_bit_piece argument.
11779         (dw_sra_loc_expr): Adjust callers.  For memory expressions
11780         compute offset.
11781
11782 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
11783
11784         PR target/44202
11785         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
11786         settings for 16-bit-constant "addo" alternative.
11787
11788 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
11789
11790         * config/mips/mips-dsp.md (add<DSPV:mode>3,
11791         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
11792
11793         PR target/43764
11794         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
11795         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
11796         Use it.
11797
11798 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
11799
11800         * diagnostic.c (FLOAT, FFS): Don't undefine.
11801         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
11802         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
11803         include ordering.
11804
11805 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
11806
11807         * combine.c (propagate_for_debug): Call make_compound_operation
11808         on the source value.
11809         (try_combine): When implementing a split chosen by find_split_point,
11810         either copy i2src or set it to null.  Assert that i2src is not null
11811         before substituting into CALL_INSN_FUNCTION_USAGE.
11812
11813 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
11814
11815         * double-int.h (double_int_ior): New function.
11816         * tree.h (build_int_cst_wide_type): Remove.
11817         * tree.c (build_int_cst_wide_type): Remove.
11818         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
11819         of build_int_cst_wide_type.
11820         * stor-layout.c (set_sizetype): (Ditto.).
11821         * dojump.c (do_jump): Use build_int_cstu instead of
11822         build_int_cst_wide_type.
11823
11824 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11825
11826         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
11827         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
11828         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
11829         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
11830         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
11831         propagate the 'data' argument to copy_tree_r.
11832         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
11833         Propagate 'data' argument to walk_tree.
11834         (copy_if_shared): New function.
11835         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
11836         (unmark_visited): New function.
11837         (unshare_body): Call copy_if_shared instead of doing it manually.
11838         (unvisit_body): Call unmark_visited instead of doing it manually.
11839
11840 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
11841
11842         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
11843         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
11844         * hooks.c: Likewise.
11845         * target-def.h (TARGET_FOLD_BUILTIN): Define to
11846         hook_tree_tree_int_treep_bool_null.
11847         * target.h (struct gcc_target): Update signature of fold_builtin
11848         field.
11849         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
11850         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
11851         instead of the call expression.
11852         (fold_builtin_call_array): Pass n and argarray directly.
11853         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
11854         consing a list.
11855         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
11856         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
11857         `i' and use it in place of `arity'.
11858         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
11859         Dereference `args' directly.
11860         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
11861
11862 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11863
11864         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11865         3dnow, sse3, sse2.
11866         (Directives): Document optional dg-require-effective-target
11867         selector.
11868
11869 2010-05-19  Richard Guenther  <rguenther@suse.de>
11870
11871         PR lto/44196
11872         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
11873
11874 2010-05-19  Richard Guenther  <rguenther@suse.de>
11875
11876         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
11877         * common.opt (fwhopr=): New.
11878         * opts.c (common_handle_option): Handle OPT_fwhopr.
11879         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
11880         * collect2.c (main): Match -fwhopr*.
11881         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
11882         Execute ltrans stage in parallel when jobs is bigger than 1.
11883
11884 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11885
11886         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
11887         pentiumpro on Solaris 8/x86 with Sun as.
11888         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
11889         hidden alias bug.
11890         (gcc_cv_as_ix86_quad): Check for .quad directive.
11891         * configure: Regenerate.
11892         * config.in: Regenerate.
11893         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
11894
11895 2010-05-19  Martin Jambor  <mjambor@suse.cz>
11896
11897         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
11898         also for indirect edges.  Actual printing moved...
11899         (ipa_print_node_jump_functions_for_edge): ...here.
11900         (ipa_compute_jump_functions): Renamed to
11901         ipa_compute_jump_functions_for_edge and made static.
11902         (ipa_compute_jump_functions): New function.
11903         (make_edge_direct_to_target): Check if the number of arguments on
11904         the newly direct edge is the same as the number of parametrs of
11905         the callee.
11906         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
11907         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
11908         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11909         analysis functions unconditionally, call the new
11910         ipa_analyze_params_uses on the node instead of every edge.
11911
11912 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
11913
11914         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
11915         to tree.
11916         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
11917         also checks for a constant int vs.  non-constant but
11918         loop-invariant steps.
11919         (find_or_create_group): Change the sort algorithm to only consider
11920         steps that are constant ints.
11921         (idx_analyze_ref): Adopt code to handle a tree instead of a
11922         HOST_WIDE_INT for step.
11923         (gather_memory_references_ref): Handle tree instead of int and be
11924         prepared to see a NULL_TREE.
11925         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
11926         prefetches if the step cannot be calculated at compile time.
11927         (issue_prefetch_ref): Issue prefetches for non-constant but
11928         loop-invariant steps.
11929
11930 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11931
11932         Revert:
11933         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11934
11935         * tree.h (build_call_list): Remove.
11936         * tree.c (build_call_list): Remove.
11937
11938 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11939
11940         * tree.h (build_call_list): Remove.
11941         * tree.c (build_call_list): Remove.
11942
11943 2010-05-18  Jan Hubicka  <jh@suse.cz>
11944
11945         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
11946
11947 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
11948
11949         PR rtl-optimization/43332
11950         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
11951
11952 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
11953
11954         * tree.h (build_int_cstu): Implement as static inline.
11955         * tree.c (build_int_cstu): Remove function.
11956         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
11957         sign extended.
11958
11959 2010-05-18  Richard Guenther  <rguenther@suse.de>
11960
11961         PR lto/44143
11962         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
11963         (debug): Initialize from -save-temps.
11964         (collect_execute): Print command-line when verbose.
11965         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
11966         for ltrans invocation.  Produce -dumpbase flag again.
11967         (process_args): Remove.
11968         (main): Simplify.
11969         * collect2.c (maybe_run_lto_and_relink): Only pass object
11970         files to lto-wrapper.
11971         * gcc.c (LINK_COMMAND_SPEC): Likewise.
11972
11973 2010-05-18  Jan Hubicka  <jh@suse.cz>
11974
11975         * opts.c (decode_options): Do not disable whopr at ipa_cp.
11976         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
11977
11978 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11979
11980         PR lto/44184
11981         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
11982         in a GIMPLE_ASM.
11983         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
11984         in a GIMPLE_ASM.
11985
11986 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
11987
11988         PR debug/41371
11989         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
11990         rtx_equal_p inline.
11991
11992 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11993
11994         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
11995         lto-macho as lto_binary_reader.
11996
11997         * darwin.c (darwin_asm_named_section): Do not add assembler comment
11998         after .section directive; just print it before the directive instead.
11999
12000 2010-05-17  Jan Hubicka  <jh@suse.cz>
12001
12002         * cgraph.c (cgraph_create_virtual_clone): Only check
12003         versionable_function_p when not in wpa and checking is enabled.
12004         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
12005         there are no more functions to materialize.
12006
12007 2010-05-17  Jan Hubicka  <jh@suse.cz>
12008
12009         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
12010         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
12011         New functions.
12012         (output_cgraph): Call output_cgraph_opt_summary.
12013         (input_cgrpah): Call input_cgraph_opt_summary.
12014         (output_cgraph_opt_summary_p, output_node_opt_summary,
12015         input_node_opt_summary, input_cgraph_opt_section): New functions.
12016         * lto-section-in.c (lto_section_name): Add cgraphopt.
12017         * tree-inline.c (tree_function_versioning): Handle parm_num.
12018         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
12019         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
12020
12021 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
12022
12023         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
12024         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
12025         the insn to prefetch ratio heuristic to loops with known trip count.
12026
12027 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
12028
12029         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
12030         (schedule_prefetches): Do not generate a prefetch if the unroll factor
12031         is far from what is required by the prefetch.
12032
12033 2010-05-17  Jan Hubicka  <jh@suse.cz>
12034
12035         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
12036         (ipcp_estimate_growth): Likewise.
12037         (ipcp_const_param_count): Likewise.
12038         (ipcp_insert_stage): Likewise.
12039         * ipa-prop.c (visit_load_for_mod_analysis): New function.
12040         (visit_store_addr_for_mod_analysis): Set used flag.
12041         (ipa_detect_param_modifications): Set used flag for SSE params;
12042         update use of walk_stmt_load_store_addr_ops.
12043         (ipa_print_node_params): Print used flag.
12044         (ipa_write_node_info): Stream used flag.
12045         (ipa_read_node_info): Likewise.
12046         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
12047         (ipa_is_param_used): New function.
12048         (lto_ipa_fixup_call_notes): Remove unused declaration.
12049
12050 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12051
12052         PR target/44074
12053         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
12054         * configure: Regenerate.
12055         * config.in: Regenerate.
12056         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
12057         !HAVE_AS_IX86_REP_LOCK_PREFIX.
12058         Don't emit whitespace.
12059         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
12060         (*rep_movsi): Likewise.
12061         (*rep_movsi_rex64): Likewise.
12062         (*rep_movqi): Likewise.
12063         (*rep_movqi_rex64): Likewise.
12064         (*rep_stosdi_rex64): Likewise.
12065         (*rep_stossi): Likewise.
12066         (*rep_stossi_rex64): Likewise.
12067         (*rep_stosqi): Likewise.
12068         (*rep_stosqi_rex64): Likewise.
12069         (*cmpstrnqi_nz_1): Use {%;} after repz.
12070         (*cmpstrnqi_nz_rex_1): Likewise.
12071         (*cmpstrnqi_1): Likewise.
12072         (*cmpstrnqi_rex_1): Likewise.
12073         (*strlenqi_1): Use {%;} after repnz.
12074         (*strlenqi_rex_1): Likewise.
12075         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
12076         (*sync_compare_and_swap<mode>): Likewise.
12077         (sync_double_compare_and_swap<mode>): Likewise.
12078         (*sync_double_compare_and_swapdi_pic): Likewise.
12079         (sync_old_add<mode>): Likewise.
12080         (sync_add<mode>): Likewise.
12081         (sync_sub<mode>): Likewise.
12082         (sync_<code><mode>): Likewise.
12083
12084 2010-05-17  Martin Jambor  <mjambor@suse.cz>
12085
12086         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
12087         otr_token and polymorphic.
12088         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
12089         (cgraph_clone_edge): Copy the above fields.
12090         * tree.c (get_binfo_at_offset): New function.
12091         * tree.h (get_binfo_at_offset): Declare.
12092         * ipa-prop.h (enum jump_func_type): Added known_type jump function
12093         type, reordered items, updated comments.
12094         (union jump_func_value): Added base_type field, reordered fields.
12095         (enum ipa_lattice_type): Moved down in the file.
12096         (struct ipa_param_descriptor): New field polymorphic.
12097         (ipa_is_param_polymorphic): New function.
12098         * ipa-prop.c: Include gimple.h and gimple-fold.h.
12099         (ipa_print_node_jump_functions): Print known type jump functions.
12100         (compute_complex_pass_through): Renamed to...
12101         (compute_complex_assign_jump_func): this.
12102         (compute_complex_ancestor_jump_func): New function.
12103         (compute_known_type_jump_func): Likewise.
12104         (compute_scalar_jump_functions): Create known type and complex ancestor
12105         jump functions.
12106         (ipa_note_param_call): New parameter polymorphic, set the corresponding
12107         flag in the call note accordingly.
12108         (ipa_analyze_call_uses): Renamed to...
12109         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
12110         variable var only in the block where it is used.
12111         (ipa_analyze_virtual_call_uses): New function.
12112         (ipa_analyze_call_uses): Likewise.
12113         (combine_known_type_and_ancestor_jfs): Likewise.
12114         (update_jump_functions_after_inlining): Implemented handling of a
12115         number of new jump function types combination.
12116         (print_edge_addition_message): Removed.
12117         (make_edge_direct_to_target): New function.
12118         (try_make_edge_direct_simple_call): Likewise.
12119         (try_make_edge_direct_virtual_call): Likewise.
12120         (update_call_notes_after_inlining): Renamed to...
12121         (update_indirect_edges_after_inlining): this.  Moved edge creation for
12122         indirect calls to try_make_edge_direct_simple_call, also calls
12123         try_make_edge_direct_virtual_call for virtual calls.
12124         (ipa_print_node_params): Changed the header message.
12125         (ipa_write_jump_function): Stream also known type jump functions.
12126         (ipa_read_jump_function): Likewise.
12127         (ipa_write_indirect_edge_info): Stream new fields in
12128         cgraph_indirect_call_info.
12129         (ipa_read_indirect_edge_info): Likewise.
12130         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
12131         GIMPLE_FOLD_H.
12132
12133 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12134
12135         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
12136
12137 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
12138
12139         * tree.h (CALL_EXPR_ARGS): Delete.
12140         (call_expr_arglist): Delete.
12141         * tree.c (call_expr_arglist): Delete.
12142         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
12143         targetm.fold_builtin.
12144         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
12145         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
12146         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
12147         arglist parameter.  Use CALL_EXPR_ARG.
12148         (picochip_expand_builtin_3op): Likewise.
12149         (picochip_expand_builtin_2opvoid): Likewise.
12150         (picochip_expand_array_get): Likewise.
12151         (picochip_expand_array_put): Likewise.
12152         (picochip_expand_array_testport): Likewise.
12153         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
12154         rather than arglist.
12155         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
12156         CALL_EXPR_ARGS.
12157         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
12158         than TREE_VALUE and TREE_CHAIN.
12159         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
12160         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
12161         the arglist.
12162
12163 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
12164
12165         PR bootstrap/42347
12166         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
12167         to have no fallthru edge.
12168
12169         PR middle-end/44102
12170         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
12171         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
12172         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
12173         add BARRIER after previous bb if needed.
12174
12175 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
12176
12177         * tree.c (build_function_type_list_1): Remove bogus assert condition.
12178
12179 2010-05-17  Alan Modra  <amodra@gmail.com>
12180
12181         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
12182         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
12183         with copy_reg rtx param.
12184         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
12185         Correct cases where code for ABI_V4 did not initialise the reg
12186         used to access frame.  Also leave frame_reg_rtx as sp for large
12187         frames that save no regs.
12188
12189 2010-05-17  Martin Jambor  <mjambor@suse.cz>
12190
12191         PR middle-end/44133
12192         * tree-sra.c (create_access_replacement): New parameter rename, mark
12193         the replaement for renaming only when it is true.
12194         (get_access_replacement): Pass true in the rename parameter of
12195         create_access_replacement.
12196         (get_unrenamed_access_replacement): New function.
12197         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
12198         replacement declaration from it.
12199
12200 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
12201
12202         * function.c (try_fit_stack_local, add_frame_space): New static
12203         functions.
12204         (assign_stack_local_1): Use them.  Look for opportunities to use
12205         space previously wasted on alignment.
12206         * function.h (struct frame_space): New.
12207         (struct rtl_data): Add FRAME_SPACE_LIST member.
12208         * reload1.c (something_was_spilled): New static variable.
12209         (alter_reg): Set it.
12210         (reload): Test it in addition to testing if the frame size changed.
12211
12212 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
12213
12214         * config/s390/s390.c: Define sane prefetch settings and activate
12215         flag_prefetch_loop_arrays on -O3.
12216         * config/s390/s390.h: Declare that read can use write prefetch.
12217
12218 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
12219
12220         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
12221         build.
12222
12223 2010-05-16  Jan Hubicka  <jh@suse.cz>
12224
12225         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
12226         function body; do not check stdarg field of struct function.
12227
12228 2010-05-16  Jan Hubicka  <jh@suse.cz>
12229
12230         * cgraph.c (dump_cgraph_node): Dump versionable flag.
12231         * cgraph.h (cgraph_local_info): Add versionable flag.
12232         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
12233         (ipcp_versionable_function_p): Use it.
12234         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12235         versionable flag.
12236
12237 2010-05-16  Jan Hubicka  <jh@suse.cz>
12238
12239         * cgraph.c (cgraph_clone_node): Take decl argument and insert
12240         clone into hash when it is different from orig.
12241         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
12242         * cgraph.h (cgraph_clone_node): Update prototype.
12243         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
12244         (lto_cgraph_encoder_delete): Delete body map.
12245         (lto_cgraph_encoder_size): Move to header.
12246         (lto_cgraph_encoder_encode_body_p,
12247         lto_set_cgraph_encoder_encode_body): New.
12248         (lto_output_node): Do not take written_decls argument; output clone_of
12249         pointer.
12250         (add_node_to): Add include_body_argument; call
12251         lto_set_cgraph_encoder_encode_body on master of the clone.
12252         (add_references): Update use of add_node_to.
12253         (compute_ltrans_boundary): Likewise.
12254         (output_cgraph): Do not create written_decls bitmap.
12255         (input_node): Take nodes argument; stream in clone_of correctly.
12256         (input_cgraph_1): Update use of input_node.
12257         * lto-streamer-out.c (lto_output): Use encoder info to decide
12258         what bodies to output.
12259         * ipa-inline.c (cgraph_clone_inlined_nodes,
12260         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
12261         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
12262         (lto_cgraph_encoder_size): Define here.
12263         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
12264         Declare.
12265
12266 2010-05-16  Richard Guenther  <rguenther@suse.de>
12267
12268         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
12269         -fipa-type-escape.
12270         * ipa-type-escape.c (gate_type_escape_vars): Run when
12271         -fipa-struct-reorg runs.
12272         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
12273         * common.opt (fipa-type-escape): Remove.
12274
12275 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12276
12277         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
12278         (decode_options): Likewise.
12279         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
12280
12281 2010-05-16  Jan Hubicka  <jh@suse.cz>
12282
12283         * ipa.c (function_and_variable_visibility): Also bring local all
12284         aliases.
12285
12286 2010-05-16  Richard Guenther  <rguenther@suse.de>
12287
12288         * alias.c (nonoverlapping_memrefs_p): Remove use of
12289         IPA type-escape information.
12290
12291 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
12292
12293         * c-common.c (c_common_reswords): Add _Static_assert for C.
12294         * c-parser.c (c_token_starts_declaration,
12295         c_parser_next_token_starts_declaration,
12296         c_parser_static_assert_declaration_no_semi,
12297         c_parser_static_assert_declaration): New.
12298         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
12299         Handle static assertions if static_assert_ok.
12300         (c_parser_external_declaration, c_parser_declaration_or_fndef,
12301         c_parser_compound_statement_nostart, c_parser_label,
12302         c_parser_for_statement, c_parser_objc_methodprotolist,
12303         c_parser_omp_for_loop): All callers of
12304         c_parser_declaration_or_fndef changed.
12305         (c_parser_struct_declaration): Handle static assertions.
12306         (c_parser_compound_statement_nostart): Use
12307         c_parser_next_token_starts_declaration and
12308         c_token_starts_declaration to detect start of declarations.
12309         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
12310         Likewise.
12311
12312 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
12313
12314         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12315         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12316         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12317         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12318         (mmix_function_outgoing_value): Rename to...
12319         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
12320         (mmix_function_value_regno_p): Make static.
12321         (mmix_libcall_value): New function.
12322         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
12323         mmix_function_value_regno_p): Remove declaration.
12324
12325 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12326
12327         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
12328         BUILT_IN_ALLOCA if stack checking is enabled.
12329
12330 2010-05-16  Richard Guenther  <rguenther@suse.de>
12331
12332         * var-tracking.c (vars_copy_1): Inline ...
12333         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12334         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
12335         (variable_merge_over_cur): Adjust.  Merge asserts.
12336         (variable_merge_over_src): Likewise.
12337         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
12338         (variable_post_merge_new_vals): Merge asserts.
12339         (variable_post_merge_perm_vals): Likewise.
12340         (find_mem_expr_in_1pdv): Likewise.
12341         (dataflow_set_different_value): Remove.
12342         (onepart_variable_different_p): Merge asserts.
12343         (variable_different_p): Likewise.
12344         (dataflow_set_different_1): Inline ...
12345         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12346         (emit_notes_for_differences_1): Merge asserts.
12347
12348 2010-05-16  Richard Guenther  <rguenther@suse.de>
12349
12350         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
12351         * optabs.c (libfunc_decl_hash): Likewise.
12352         * varasm.c (emutls_decl): Likewise.
12353
12354 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
12355
12356         * c-decl.c: Don't include gimple.h.
12357         (merge_decls): Do not copy gimple_body.
12358
12359 2010-05-15  Jason Merrill  <jason@redhat.com>
12360
12361         * c.opt: Add -fnothrow-opt.
12362
12363 2010-05-15  Jan Hubicka  <jh@suse.cz>
12364
12365         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
12366         analyzed.
12367         * passes.c (ipa_write_summaries): Write all analyzed nodes.
12368
12369 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
12370
12371         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
12372         * Makefile.in: Add it.
12373         Fix all other Makefile dependencies for changes below.
12374         * tree.h: Include it instead of defining VEC primitives here.
12375         * gimple.h: Likewise.
12376         * rtl.h: Likewise.
12377         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
12378         * except.h: Include vecir.h, break dependence on tree.h.
12379
12380         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
12381         Move from here...
12382         * tree-iterator.c: ...to here.
12383         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
12384
12385         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
12386         tm_p.h.
12387         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
12388         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
12389         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
12390         tree-mudflap.h, and target.h.
12391         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
12392         predict.h, tree-inline.h, gimple.h, and langhooks.h.
12393         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
12394         Add FIXME for why gimple.h is still included (should be unnecessary
12395         since GCC 4.5 gimplification unit-at-a-time).
12396         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
12397         * c-pragma.c: Add FIXME for why function.h needs to be included just
12398         for cfun, at front-end level.
12399         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
12400         Do not include ggc.h, but include vecprim.h for VEC(char).
12401         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
12402         Explain why target.h is included.
12403         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
12404         Explain why gimple.h is included.
12405         * c-ppoutput.c: Do not include tm.h.
12406         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
12407         * c-parses.c: Explain why rtl.h is included, and that this (and only
12408         this) is also why tm.h must be included.
12409         Do not include except.h.
12410         * c-lang.c: Do not include ggc.h.
12411
12412 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
12413
12414         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
12415
12416 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
12417
12418         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
12419         unions by default if those structs and unions have no tags.  Do
12420         not condition anonymous struct and unions handling on flag_iso.
12421         Allow anonymous structs and unions for C1X.
12422         (finish_struct): Do not diagnose lack of named fields when
12423         anonymous structs and unions present for C1X.  Accept flexible
12424         array members in structure with anonymous structs or unions but no
12425         directly named fields.
12426         * doc/extend.texi (Unnamed Fields): Update.
12427
12428 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
12429
12430         * gimple.h (compare_field_offset): Rename into...
12431         (gimple_compare_field_offset): ...this.
12432         * gimple.c (compare_field_offset): Rename into...
12433         (gimple_compare_field_offset): ...this.  Compare the full access if
12434         the offset is self-referential.
12435         (gimple_types_compatible_p): Adjust for above renaming.
12436         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
12437         DECL_NONADDRESSABLE_P flag of fields before merging them.
12438
12439 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
12440
12441         * tree.h (ctor_to_list): Delete.
12442         * tree.c (ctor_to_list): Delete.
12443
12444 2010-05-15  Jan Hubicka  <jh@suse.cz>
12445
12446         * ipa-reference.c: Include toplev.h
12447         (is_proper_for_analysis): Only add to all_module_statics
12448         if it is allocated.
12449         (write_node_summary_p, stream_out_bitmap,
12450         ipa_reference_write_optimization_summary,
12451         ipa_reference_read_optimization_summary): New.
12452         (struct ipa_opt_pass_d pass_ipa_reference): Add
12453         optimization summary streaming.
12454         * lto-cgraph.c (referenced_from_this_partition_p,
12455         reachable_from_this_partition_p): New functions.
12456         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12457         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
12458         * opts.c (decode_options): Enable ipa_reference.
12459         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
12460         * lto-streamer.h (referenced_from_this_partition_p,
12461         reachable_from_this_partition_p): Declare.
12462
12463 2010-05-15  Richard Guenther  <rguenther@suse.de>
12464
12465         PR tree-optimization/44038
12466         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
12467         taking the address of a V_C_E of a constant.
12468
12469 2010-05-14  Jan Hubicka  <jh@suse.cz>
12470
12471         * tree.h (memory_identifier_string): Remove.
12472         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
12473         (ipa_reference_global_vars_info_d): Remove statics_not_read and
12474         statics_not_written.
12475         (ipa_reference_optimization_summary_d): New structure.
12476         (ipa_reference_optimization_summary_t): New type and vector.
12477         (ipa_reference_vars_info_d): Embedd structures instead of using
12478         pointers.
12479         (reference_vars_to_consider): Remove out of GGC space.
12480         (module_statics_escape): Remove.
12481         (global_info_obstack): Rename to ...
12482         (optimization_summary_obstack): ... this one.
12483         (initialization_status_t): Remove.
12484         (memory_identifier_string): Remove.
12485         (get_reference_vars_info): Fix indenting.
12486         (set_reference_vars_info): Likewise.
12487         (get_reference_optimization_summary): New.
12488         (set_reference_optimization_summary): New.
12489         (get_global_reference_vars_info): Remove.
12490         (ipa_reference_get_read_global): Remove.
12491         (ipa_reference_get_written_global): Remove.
12492         (ipa_reference_get_not_read_global): Update.
12493         (ipa_reference_get_not_written_global): Update.
12494         (is_proper_for_analysis): Outlaw addressable.
12495         (propagate_bits): Update for new datastructures.
12496         (analyze_variable): Remove.
12497         (init_function_info): Update for new datastructures.
12498         (clean_function_local_data): Remove.
12499         (clean_function): Remove.
12500         (copy_global_bitmap): Use optimizations_summary_obstack.
12501         (duplicate_node_data): Duplicate optimization summary only.
12502         (remove_node_data): Remove optimization summary only.
12503         (generate_summary): Do not analyze variables; do not compute
12504         module_statics_escape; do not prune solutions by it.
12505         (read_write_all_from_decl): Fix typos in comments.
12506         (propagate): Doscover readonly and nonaddressable first;
12507         update for new datastructures; share global bitmaps.
12508         * ipa-reference.h (ipa_reference_get_read_global,
12509         ipa_reference_get_written_global): Remove.
12510         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
12511         * Makefile.in: Remove ipa-refereference from GT files.
12512
12513 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
12514
12515         PR debug/44112
12516         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
12517         for all SYMBOL_REF_DECLs.
12518
12519 2010-05-14  Jan Hubicka  <jh@suse.cz>
12520
12521         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
12522         (varpool_all_refs_explicit_p): New inline function.
12523         * ipa-reference.c: Update comment.
12524         (module_statics_written): Remove.
12525         (get_static_decl): Remove.
12526         (ipa_init): Do not initialize module_statics_written.
12527         (analyze_function): Likewise.
12528         (generate_summary): Likewise; do not compute module_statics_readonly
12529         and do not update variable flags.
12530         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
12531         * ipa.c: Inlucde flags.h
12532         (cgraph_local_node_p): New.
12533         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
12534         promote functions to local.
12535         (ipa_discover_readonly_nonaddressable_vars): New function.
12536         (function_and_variable_visibility): Use cgraph_local_node_p.
12537         * varpool.c (varpool_finalize_decl): Set force_output for
12538         DECL_PRESERVE_P vars.
12539
12540 2010-05-14  Jan Hubicka  <jh@suse.cz>
12541
12542         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
12543
12544 2010-05-14  Richard Guenther  <rguenther@suse.de>
12545
12546         PR tree-optimization/44119
12547         * tree-ssa-pre.c (eliminate): Properly mark replacement of
12548         a PHI node necessary.
12549
12550 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
12551
12552         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
12553
12554 2010-05-14  Jason Merrill  <jason@redhat.com>
12555
12556         PR c++/44127
12557         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
12558         (gimple_call_set_nothrow): New.
12559         * gimple.c (gimple_build_call_from_tree): Call it.
12560         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
12561
12562         PR c++/44127
12563         * gimplify.c (gimplify_seq_add_stmt): No longer static.
12564         * gimple.h: Declare it.
12565         * gimple.c (gimple_build_eh_filter): No ops.
12566
12567 2010-05-14  Jan Hubicka  <jh@suse.cz>
12568
12569         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
12570         nodes already in queue.
12571         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
12572         re-enqueueing node.
12573
12574 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
12575
12576         PR debug/44136
12577         * cfgexpand.c (expand_debug_expr): If non-memory op0
12578         has BLKmode, return NULL.
12579
12580 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
12581
12582         * config.gcc: Add support for --with-cpu option for bdver1.
12583         * config/i386/i386.h (TARGET_BDVER1): New macro.
12584         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
12585         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
12586         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
12587         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
12588         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
12589         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
12590         (processor_type): Add PROCESSOR_BDVER1.
12591         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
12592         processor_type in config/i386/i386.h.
12593         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
12594         movaps <reg, reg> instead of movapd <reg, reg> when replacing
12595         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
12596         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
12597         to emit packed xor instead of packed double/packed integer
12598         xor for SSE and AVX when moving a zero value.
12599         * config/i386/sse.md: Add check for
12600         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
12601         movapd/movdqa for SSE and AVX.
12602         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
12603         single logical operations i.e and, or and xor instead of packed double
12604         logical operations for SSE and AVX.
12605         * config/i386/i386-c.c (ix86_target_macros_internal):
12606         Add PROCESSOR_BDVER1.
12607         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
12608         (has_fma4, has_xop): New.
12609         * config/i386/i386.c (bdver1_cost): New variable.
12610         (m_BDVER1): New macro.
12611         (m_AMD_MULTIPLE): Add m_BDVER1.
12612         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
12613         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
12614         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
12615         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
12616         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
12617         x86_tune_sse_partial_reg_dependency,
12618         x86_tune_sse_unaligned_load_optimal,
12619         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
12620         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
12621         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
12622         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
12623         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
12624         Enable/disable for bdver1.
12625         (processor_target_table): Add bdver1_cost.
12626         (cpu_names): Add bdver1.
12627         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
12628          processor_alias_table.
12629         (ix86_expand_vector_move_misalign): Change.
12630         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
12631         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
12632         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
12633         of movupd/movdqu for SSE and AVX.
12634         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
12635         (ix86_tune_adjust_cost): Add code for bdver1.
12636         (standard_sse_constant_opcode): Add check for
12637         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
12638         of packed double xor for SSE and AVX.
12639
12640 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
12641
12642         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
12643         result to unsigned.
12644
12645 2010-05-14  Tristan Gingold  <gingold@adacore.com>
12646
12647         * toplev.c (default_debug_hooks): Remove this variable.
12648         (process_options): Remove assignments to default_debug_hooks.
12649
12650 2010-05-14  Martin Jambor  <mjambor@suse.cz>
12651
12652         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
12653         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
12654         * langhooks.h (struct lang_hooks_for_decls): Removed field
12655         fold_obj_type_ref.
12656         * tree.c (free_lang_data): Remove assignment to
12657         lang_hooks.fold_obj_type_ref.
12658         * tree.def (OBJ_TYPE_REF): Update comment.
12659
12660 2010-05-14  Richard Guenther  <rguenther@suse.de>
12661
12662         PR tree-optimization/44124
12663         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
12664
12665 2010-05-14  Alan Modra  <amodra@gmail.com>
12666
12667         PR target/44075
12668         * config/rs6000/rs6000.c (struct machine_function): Reorder
12669         fields for better packing.  Add lr_save_state.
12670         (rs6000_ra_ever_killed): Return lr_save_state if set.
12671         (rs6000_emit_eh_reg_restore): Set lr_save_state.
12672
12673 2010-05-13  Jan Hubicka  <jh@suse.cz>
12674
12675         * varpool.c (decide_is_variable_needed): Drop code checking
12676         TREE_SYMBOL_REFERENCED.
12677
12678 2010-05-13  Jan Hubicka  <jh@suse.cz>
12679
12680         * final.c (output_addr_const): Do not call mark_decl_referenced.
12681         * cgraphunit.c (process_function_and_variable_attributes): Use
12682         mark_needed_node dirrectly.
12683         (assemble_thunk): Do not call mark_decl_referenced.
12684
12685 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
12686
12687         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
12688
12689 2010-05-13  Jeff Law  <law@redhat.com>
12690
12691         * ira-conflicts.c (print_allocno_conflicts): New function broken out
12692         from...
12693         (print_conflicts): Call print_allocno_conflicts.
12694
12695 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
12696
12697         PR debug/44104
12698         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
12699         if it is NULL.
12700
12701 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
12702
12703         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
12704         t-mingw-w64 or t-mingw-w32 for multilib configuration.
12705         * config/i386/t-mingw-w32: New.
12706         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
12707
12708 2010-05-13  Martin Jambor  <mjambor@suse.cz>
12709
12710         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
12711         gimple-fold.c).
12712         * gimple-fold.c (get_base_binfo_for_type): New function.
12713         (gimple_get_relevant_ref_binfo): Likewise.
12714         (gimple_fold_obj_type_ref_known_binfo): Likewise.
12715         (gimple_fold_obj_type_ref): Likewise.
12716         (fold_gimple_call): Simplify condition for folding virtual calls
12717         and call gimple_fold_obj_type_ref.
12718         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
12719         (gimple_fold_obj_type_ref_known_binfo): Likewise.
12720
12721 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
12722
12723         * config/rs6000/rs6000-protos.h
12724         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
12725         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
12726         (rs6000_debug_mode_dependent_address)
12727         (rs6000_mode_dependent_address_ptr): Likewise.
12728
12729 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
12730
12731         PR debug/43983
12732         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
12733         by SRA.
12734         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
12735         * tree-sra.c (create_access_replacement): Call unshare_expr before
12736         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
12737         * dwarf2out.c: Include tree-flow.h.
12738         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
12739         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
12740         Handle DW_OP_bit_piece.
12741         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
12742         construct_piece_list, adjust_piece_list): New functions.
12743         (add_var_loc_to_decl): Handle SRA optimized variables.
12744         Adjust for var_loc_note to loc field renaming.
12745         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
12746         in VAR_LOCATION note.
12747         (new_loc_descr_op_bit_piece): New function.
12748         (dw_sra_loc_expr): New function.
12749         (dw_loc_list): Use it.  Don't handle the last range after the
12750         loop, handle it inside of the loop.  Adjust for var_loc_note
12751         to loc field renaming.
12752         (add_location_or_const_value_attribute): Only special case
12753         single entry loc lists if loc is NOTE_P.  Adjust for
12754         var_loc_note to loc field renaming.
12755         (dwarf2out_var_location): Don't set newloc->var_loc_note
12756         and newloc->next here.
12757
12758 2010-05-12  Jan Hubicka  <jh@suse.cz>
12759
12760         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
12761         flag.
12762         * cgraph.h (cgraph_only_called_directly_p,
12763         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
12764         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
12765         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
12766         (assemble
12767         * ipa.c (cgraph_remove_unreachable_nodes): Use
12768         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
12769         flags.
12770         * tree-inline.c (copy_bb): Check address_taken flag.
12771         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
12772         externally_visible flag.
12773
12774 2010-05-12  Jason Merrill  <jason@redhat.com>
12775
12776         PR bootstrap/44048
12777         PR target/44099
12778         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
12779         * sdbout.c (plain_type_1): Likewise.
12780         * dwarf2out.c (is_base_type): Likewise.
12781         (gen_type_die_with_usage): Likewise.  Generate
12782         DW_TAG_unspecified_type for any LANG_TYPE.
12783
12784 2010-05-12  Jan Hubicka  <jh@suse.cz>
12785
12786         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
12787         indrect edges too.
12788         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
12789         (cgraph_clone_edge): Update.
12790         (cgraph_node_remove_callees): Remove indirect calls too.
12791         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
12792         (cgraph_create_indirect_edge): Update prototype.
12793         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
12794         is_proper_for_analysis.
12795         (add_new_function, visited_nodes, function_insertion_hook_holder,
12796         get_local_reference_vars_info, mark_address_taken, mark_address,
12797         mark_load, mark_store, check_asm_memory_clobber, check_call,
12798         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
12799         (ipa_init): Do not initialize visited_nodes;
12800         function_insertion_hook_holder.
12801         (analyze_variable): Rewrite.
12802         (analyze_function): Rewrite.
12803         (copy_local_bitmap): Remove.
12804         (duplicate_node_dat): Do not duplicate local info.
12805         (generate_summary): Simplify to only walk cgraph.
12806         (write_node_summary_p, ipa_reference_write_summary,
12807         ipa_reference_read_summary): Remove.
12808         (propagate): Do not remove function insertion;
12809         generate summary.
12810         (pass_ipa_reference): NULLify summary handling fields.
12811         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
12812         (input_edge): Input ecf_flags.
12813         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
12814         (update_indirect_edges_after_inlining): Ignore edges with unknown
12815         param.
12816
12817 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
12818
12819         * implicit-zee.c: New file.
12820         * tree-pass.h (pass_implicit_zee): Declare.
12821         * passes.c (init_optimization_passes): Add zee pass.
12822         * common.opt (fzee): New flag.
12823         * timevar.def (TV_ZEE): Define.
12824         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
12825         and beyond.
12826         * Makefile.in (implicit-zee.o): Add new build file.
12827
12828 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
12829             Nathan Froyd  <froydnj@codesourcery.com>
12830
12831         * c-common.c (sync_resolve_params): Remove write-only variable.
12832
12833 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
12834
12835         * target.h (struct gcc_target): Add mode_dependent_address_p field.
12836         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
12837         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
12838         * targhooks.c (default_mode_dependent_address_p): New function.
12839         * targhooks.h (default_mode_dependent_address_p): Declare function.
12840         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
12841         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
12842         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
12843         target hook. Change return type to bool.
12844         * recog.h (mode_dependent_address_p): Change return type to bool.
12845
12846 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
12847             Nathan Froyd  <froydnj@codesourcery.com>
12848
12849         * tree-mudflap.c (build_function_type_0, build_function_type_1,
12850         build_function_type_2, build_function_type_3): Remove.
12851         (mudflap_init): Use build_function_type_list.
12852
12853 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
12854             Nathan Froyd  <froydnj@codesourcery.com>
12855
12856         * coverage.c (build_fn_info_value): Call build_constructor instead of
12857         build_constructor_from_list.
12858         (build_ctr_info_value): Likewise.
12859         (build_gcov_info): Likewise.
12860
12861 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
12862
12863         * tree.c (build_constructor): Compute TREE_CONSTANT for the
12864         resultant constructor.
12865         (build_constructor_single): Don't set TREE_CONSTANT.
12866         (build_constructor_from_list): Don't compute TREE_CONSTANT.
12867
12868 2010-05-12  Jan Hubicka  <jh@suse.cz>
12869
12870         * cgraph.h (struct varpool_node): Add aux.
12871         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
12872         * varpool.c (varpool_remove_node): Do not remove initializer.
12873         (varpool_reset_queue): Export.
12874         (varpool_finalize_decl): Volatile vars are forced to be output.
12875         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
12876         replaced decl.
12877         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
12878         process_references, varpool_can_remove_if_no_refs): New functions.
12879         (cgraph_remove_unreachable_nodes): Handle variables too.
12880
12881 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
12882
12883         PR target/44088
12884         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
12885
12886 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
12887
12888         PR middle-end/44085
12889         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
12890         change value of ORT_TASK.
12891         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
12892         (omp_notice_threadprivate_variable): New function.
12893         (omp_notice_variable): Call it for threadprivate variables.
12894         If enclosing ctx is a task, print enclosing task rather than
12895         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
12896         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
12897         if task has untied clause.
12898
12899         PR debug/42278
12900         * dwarf2out.c (base_type_die): Don't add name attribute here.
12901         (modified_type_die): Instead of sizetype use
12902         its underlying original type.  If a DW_TAG_base_type doesn't
12903         have name added, add __unknown__.
12904         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
12905         always call force_type_die instead.
12906
12907 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
12908
12909         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
12910         for __stack_chk_guard.
12911
12912 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
12913
12914         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
12915         don't call start_source_file debug hook here...
12916         (finish_options): ... but here, after outputting predefined and
12917         command line defines and undefs.
12918
12919         PR middle-end/44071
12920         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
12921         no fallthru edge.
12922         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
12923         optimizing away empty bb with no successors, move over its
12924         footer chain to fallthru predecessor.
12925         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
12926         (rtl_split_edge): For asm goto call patch_jump_insn even if
12927         splitting fallthru edge.
12928
12929         PR c++/44059
12930         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
12931         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
12932         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
12933         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
12934         on DW.ref.* decls.
12935
12936         PR c++/44062
12937         * c-parser.c (c_parser_expression): Mark LHS of a comma
12938         expression as read if it is a decl, handled component or
12939         COMPOUND_EXPR with that on the RHS.
12940         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
12941         if it is a decl or handled component.
12942
12943 2010-05-11  Jan Hubicka  <jh@suse.cz>
12944
12945         * lto-symtab.c (lto_symtab_free): New function.
12946         * lto-streamer.h (lto_symtab_free): Declare.
12947
12948 2010-05-11  Jan Hubicka  <jh@suse.cz>
12949
12950         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
12951         that if function is needed it is reachable.
12952         (lto_output_node): See if it the function is reachable or referenced.
12953         (output_cgraph): Update call of lto_output_node.
12954         * lto-streamer.h (reachable_from_other_partition_p): Declare.
12955
12956 2010-05-11  Jan Hubicka  <jh@suse.cz>
12957
12958         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
12959         Mark as used.
12960
12961 2010-05-11  Jan Hubicka  <jh@suse.cz>
12962
12963         PR tree-optimize/44063
12964         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
12965         queue.
12966         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
12967         limits.
12968         (estimate_function_body_sizes): Compute sizes even when disregarding.
12969
12970 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
12971
12972         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
12973
12974 2010-05-11  Jan Hubicka  <jh@suse.cz>
12975
12976         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
12977         into every boundary.
12978
12979 2010-05-11  Jan Hubicka  <jh@suse.cz>
12980
12981         * matrix-reorg.c (matrix_reorg): Rebuild edges.
12982
12983 2010-05-11  Jan Hubicka  <jh@suse.cz>
12984
12985         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
12986         lto_streamer_cache_delete): Put nodes into heap.
12987         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
12988         heap.
12989
12990 2010-05-11  Jan Hubicka  <jh@suse.cz>
12991
12992         * cgraphbuild.c (cgraph_rebuild_references): New.
12993         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
12994         out extern inlines.
12995         * cgraph.h (cgraph_rebuild_references): Declare.
12996         * tree-inline.c (tree_function_versioning): Use it.
12997         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
12998
12999 2010-05-11  Jan Hubicka  <jh@suse.cz>
13000
13001         * cgraph.c: Include ipa-utils.h
13002         (cgraph_create_virtual_clone): Update references.
13003         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
13004
13005 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
13006
13007         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
13008         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
13009         cache size.
13010
13011 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
13012
13013         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
13014
13015 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
13016
13017         * gcc.c (execute): For -### don't quote arguments that
13018         contain just alphanumerics and _/-. characters.
13019         * doc/invoke.texi: Document that change for -###.
13020
13021         PR debug/44023
13022         * df-problems.c (struct dead_debug): Add to_rescan field.
13023         (dead_debug_init): Clear to_rescan field.
13024         (dead_debug_finish): Rescan all debug insns in to_rescan
13025         bitmap and free the bitmap.
13026         (dead_debug_insert_before): Instead of rescanning debug insns
13027         immediately queue their rescanning until dead_debug_finish.
13028         (df_note_bb_compute): After dead_debug_add do continue instead
13029         of break.
13030
13031 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
13032
13033         PR debug/44028
13034         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
13035         clear also INSN_REG_USE_LIST.
13036
13037 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13038
13039         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
13040
13041 2010-05-10  Jan Hubicka  <jh@suse.cz>
13042
13043         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
13044         commited change.
13045
13046 2010-05-10  Jan Hubicka  <jh@suse.cz>
13047
13048         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
13049         Allocate encoders.
13050         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
13051         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
13052         (lto_streamer_cache_create): Init alloc pool.
13053         (lto_streamer_cache_delete): Free alloc pool.
13054         * lto-streamer.h: Include alloc pool.
13055         (lto_streamer_cache_d): Use alloc pool.
13056         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
13057
13058 2010-05-10  Jan Hubicka  <jh@suse.cz>
13059
13060         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
13061         * cgraphbuild.c: Include except.h
13062         (record_type_list, record_eh_tables): New function.
13063         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
13064
13065 2010-05-10  Jan Hubicka  <jh@suse.cz>
13066
13067         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
13068         __frame_dummy_init_array_entry, force_to_data): Attribute as used
13069         rather than unused.
13070
13071 2010-05-10  Michael Matz  <matz@suse.de>
13072
13073         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
13074         (can_reassociate_p): Use FLOAT_TYPE_P.
13075         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
13076         (vect_force_simple_reduction): ... this.
13077         * tree-parloops.c (gather_scalar_reductions): Use
13078         vect_force_simple_reduction.
13079         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
13080         vect_is_simple_reduction, add modify argument, if true rewrite
13081         "a-b" into "a+(-b)".
13082         (vect_is_simple_reduction, vect_force_simple_reduction): New
13083         functions.
13084         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
13085
13086 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13087             Vladimir Makarov  <vmakarov@redhat.com>
13088
13089         PR rtl-optimization/44012
13090         * ira-build.c (remove_unnecessary_allocnos): Nullify
13091         regno_allocno_map of the removed allocno.
13092
13093 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13094
13095         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
13096         to /dev/null.
13097         * configure: Regenerate.
13098
13099 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13100
13101         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
13102         unused.
13103         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
13104         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
13105         support in Sun ld.
13106         * configure: Regenerate.
13107
13108 2010-05-10  Richard Guenther  <rguenther@suse.de>
13109
13110         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
13111         marked if the entry identifier is marked.
13112
13113 2010-05-10  Richard Guenther  <rguenther@suse.de>
13114
13115         * c-common.c (struct c_common_attributes): Add fnspec attribute.
13116         (handle_fnspec_attribute): New function.
13117         * gimple.h (gimple_call_return_flags): Declare.
13118         (gimple_call_arg_flags): Likewise.
13119         * gimple.c (gimple_call_arg_flags): New function.
13120         (gimple_call_return_flags): Likewise.
13121         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
13122         New argument flags.
13123         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
13124         return value flags.
13125         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
13126         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
13127         main work to ...
13128         (make_heapvar_for): ... this new function.
13129         (handle_rhs_call): Handle fnspec attribute argument specifiers.
13130         (handle_lhs_call): Likewise.
13131         (find_func_aliases): Adjust.
13132
13133 2010-05-10  Richard Guenther  <rguenther@suse.de>
13134
13135         PR tree-optimization/44050
13136         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
13137
13138 2010-05-10  Wei Guozhi  <carrot@google.com>
13139
13140         PR target/42879
13141         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
13142
13143 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
13144
13145         PR c/10676
13146         * c-typeck.c (lookup_field): Take a type directly.  Update
13147         recursive calls.
13148         (build_component_ref): Update call to lookup_field.
13149         (set_init_label): Use lookup_field to find initialized field.
13150         Handle returned list of fields like a sequence of designators.
13151
13152 2010-05-09  Richard Guenther  <rguenther@suse.de>
13153
13154         PR middle-end/44024
13155         * fold-const.c (tree_single_nonzero_warnv_p): Properly
13156         handle &FUNCTION_DECL.
13157
13158 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
13159
13160         PR c/4784
13161         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
13162         structures and unions recursively.
13163         (detect_field_duplicates): Move duplicate detection with a hash to
13164         detect_field_duplicates_hash.  Always use a hash if anonymous
13165         structures or unions are present.
13166         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
13167         give errors.
13168
13169 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13170
13171         PR target/44046
13172         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
13173         detect Atom, Core 2 and Core i7.
13174
13175 2010-05-09  Richard Guenther  <rguenther@suse.de>
13176
13177         * gcc.c (store_arg): Handle temporary file deletion for
13178         joined arguments.
13179
13180 2010-05-09  Richard Guenther  <rguenther@suse.de>
13181
13182         PR middle-end/44043
13183         * ipa-inline.c (estimate_function_body_sizes): Return after
13184         disregarding inline limits.
13185
13186 2010-05-09  Richard Guenther  <rguenther@suse.de>
13187
13188         * gcc.c (store_arg): Revert last change.
13189
13190 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
13191
13192         PR middle-end/28685
13193         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
13194         (optimize_ops_list): Call it.
13195
13196 2010-05-08  Richard Guenther  <rguenther@suse.de>
13197
13198         PR tree-optimization/44030
13199         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
13200         NECESSARY flag if we propagate from a inserted expression.
13201
13202 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13203
13204         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
13205         domain types as equal if they are both PLACEHOLDER_EXPRs.
13206
13207 2010-05-08  Richard Guenther  <rguenther@suse.de>
13208
13209         * lto-wrapper.c (run_gcc): Remove linker output from
13210         command line for LTRANS invocation.
13211
13212 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
13213
13214         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13215         lto-macho as lto_binary_reader.
13216         * target.h (struct gcc_target): New hooks lto_start and lto_end.
13217         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
13218         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
13219         in lto_start and lto_end calls.
13220         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
13221         magic numbers.
13222         (scan_prog_file): Update is_elf_or_coff call.
13223         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
13224
13225         * collect2.c (main): Fix enum comparison.
13226
13227         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
13228         Add prototypes.
13229         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
13230         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
13231         and TARGET_ASM_LTO_END.
13232         * darwin.c: Include obstack.h and lto-streamer.h.
13233         (lto_section_names_offset, lto_section_names_obstack,
13234         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
13235         global variables.
13236         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
13237         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
13238         to a temporary file.
13239         (darwin_asm_lto_end): New function.  Restore asm_out_file.
13240         (darwin_asm_named_section): For LTO sections, replace the name with
13241         the offset of the section name in a string table, and build this
13242         table.
13243         (darwin_file_start): Initialize global vars for LTO support.
13244         (darwin_file_end): If output to asm_out_file was redirected, append it
13245         to the proper asm_out_file here.  Add the section names section.
13246
13247 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
13248
13249         * c-pragma.c (pending_weak_d, pending_weak): New.
13250         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
13251         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
13252         handle_pragma_weak): Update the uses of pending_weaks.
13253
13254 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13255
13256         PR documentation/44016
13257         * doc/standards.texi (Standards): Link to unversioned
13258         cxx0x_status.html page.
13259
13260 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
13261
13262         PR target/43708
13263         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
13264         in addition to TREE_USED, to avoid "set but unused" warnings.
13265
13266 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13267
13268         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
13269         (is_loop_prefetching_profitable): Do not insert prefetches
13270         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
13271         times the prefetch ahead distance.
13272
13273 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13274
13275         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
13276         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
13277         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
13278         the unroll_factor.
13279
13280 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13281
13282         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
13283         a diagnostic info when the insn-to-mem ratio is too small.
13284
13285 2010-05-07  Richard Guenther  <rguenther@suse.de>
13286
13287         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
13288         the linker plugin.
13289         (store_arg): Queue temp_filename for deletion instead of
13290         the whole argument.
13291
13292 2010-05-07  Richard Guenther  <rguenther@suse.de>
13293
13294         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
13295         (run_gcc): Handle LTRANS phase invocation.
13296         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
13297
13298 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
13299
13300         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
13301         this is also meaningful on PARM_DECLs and RESULT_DECLs.
13302
13303 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13304
13305         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
13306
13307 2010-05-07  Richard Guenther  <rguenther@suse.de>
13308
13309         PR tree-optimization/44020
13310         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
13311         code when PRE is not yet initialized.
13312
13313 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13314
13315         * config/mips/dbxmdebug.h: Remove.
13316         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
13317
13318 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
13319
13320         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
13321         with null pointer and also warn about ordered comparison of zero with
13322         pointer if -Wextra.
13323
13324 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13325
13326         * graphite-blocking.c
13327         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
13328         * graphite-clast-to-gimple.c
13329         (clast_to_gcc_expression): Same.
13330         (precision_for_value): Same.
13331         (precision_for_interval): Same.
13332         (gcc_type_for_interval): Same.
13333         (graphite_create_new_guard): Same.
13334         (compute_bounds_for_level): Same.
13335         (graphite_create_new_loop_guard): Same.
13336         * graphite-interchange.c
13337         (build_linearized_memory_access): Same.
13338         (pdr_stride_in_loop): Same.
13339         (memory_strides_in_loop_1): Same.
13340         (memory_strides_in_loop): Same.
13341         (extend_scattering): Same.
13342         (psct_scattering_dim_for_loop_depth): Same.
13343         (pbb_number_of_iterations): Same.
13344         * graphite-poly.h
13345         (debug_iteration_domains): Same.
13346         * graphite-ppl.c
13347         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13348         (ppl_set_inhomogeneous_gmp): Same.
13349         (ppl_strip_loop): Same.
13350         (ppl_lexico_compare_linear_expressions): Same.
13351         (ppl_read_polyhedron_matrix): Same.
13352         (ppl_max_for_le_pointset): Same.
13353         * graphite-ppl.h
13354         (ppl_read_polyhedron_matrix): Same.
13355         (tree_int_to_gmp): Same.
13356         (gmp_cst_to_tree): Same.
13357         (ppl_set_inhomogeneous): Same.
13358         (ppl_set_inhomogeneous_tree): Same.
13359         (ppl_set_coef): Same.
13360         (ppl_set_coef_tree): Same.
13361         * graphite-sese-to-poly.c
13362         (build_pbb_scattering_polyhedrons): Same.
13363         (build_scop_scattering): Same.
13364         (scan_tree_for_params_right_scev): Same.
13365         (scan_tree_for_params): Same.
13366         (find_params_in_bb): Same.
13367         (find_scop_parameters): Same.
13368         (add_upper_bounds_from_estimated_nit): Same.
13369         (build_loop_iteration_domains): Same.
13370         (add_condition_to_domain): Same.
13371         (pdr_add_memory_accesses): Same.
13372
13373 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13374
13375         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
13376         CLooG's value_* macros to their respective mpz_* counterparts.
13377         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
13378         (graphite_create_new_loop_guard): Same.
13379         * graphite-interchange.c (build_linearized_memory_access): Same.
13380         (pdr_stride_in_loop): Same.
13381         (memory_strides_in_loop_1): Same.
13382         (1st_interchange_profitable_p): Same.
13383         * graphite-poly.c (extend_scattering): Same.
13384         (psct_scattering_dim_for_loop_depth): Same.
13385         (pbb_number_of_iterations): Same.
13386         (pbb_number_of_iterations_at_time): Same.
13387         * graphite-poly.h (new_1st_loop): Same.
13388         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
13389         (oppose_constraint): Same.
13390         (insert_constraint_into_matrix): Same.
13391         (ppl_set_inhomogeneous_gmp): Same.
13392         (ppl_set_coef_gmp): Same.
13393         (ppl_strip_loop): Same.
13394         (ppl_lexico_compare_linear_expressions): Same.
13395         (ppl_max_for_le_pointset): Same.
13396         (ppl_min_for_le_pointset): Same.
13397         (ppl_build_realtion): Same.
13398         * graphite-ppl.h (gmp_cst_to_tree): Same.
13399         (ppl_set_inhomogeneous): Same.
13400         (ppl_set_inhomogeneous_tree): Same.
13401         (ppl_set_coef): Same.
13402         (ppl_set_coef_tree): Same.
13403         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
13404         (build_scop_scattering): Same.
13405         (add_value_to_dim): Same.
13406         (scan_tree_for_params_right_scev): Same.
13407         (scan_tree_for_params_int): Same.
13408         (scan_tree_for_params): Same.
13409         (find_params_in_bb): Same.
13410         (find_scop_parameters): Same.
13411         (add_upper_bounds_from_estimated_nit): Same.
13412         (build_loop_iteration_domains): Same.
13413         (create_linear_expr_from_tree): Same.
13414         (add_condition_to_domain): Same.
13415         (pdr_add_memory_accesses): Same.
13416
13417 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
13418             Jason Merrill  <jason@redhat.com>
13419
13420         * c-common.c (c_common_reswords): Add nullptr.
13421         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
13422         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
13423         (gen_type_die_with_usage): Likewise.
13424         * dbxout.c (dbxout_type): Likewise.
13425         * sdbout.c (plain_type_1): Likewise.
13426
13427 2010-05-06  Jason Merrill  <jason@redhat.com>
13428
13429         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
13430         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
13431         ret appropriately.
13432         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
13433
13434         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
13435         stripping WITH_SIZE_EXPR.
13436         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
13437         change.
13438
13439 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13440
13441         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
13442         list of obsolete configurations.
13443         Disabled check for obsolete configurations.
13444         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
13445         Removed support for previous versions.
13446         * config/mips/iris.h: Removed.
13447         * config/mips/iris5.h: Removed.
13448         * config/mips/iris6.h: Merged old iris.h contents.
13449         (TARGET_IRIX): Removed.
13450         (DRIVER_SELF_SPECS): Removed mabi=32.
13451         (IDENT_ASM_OP): Removed undef.
13452         (STARTFILE_SPEC): Removed mabi=32.
13453         (ENDFILE_SPEC): Likewise.
13454         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
13455         (MACHINE_TYPE): Update for IRIX 6.5.
13456         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
13457         TARGET_IRIX by TARGET_IRIX6.
13458         (mips_file_start): Likewise.
13459         (mips_output_external): Remove IRIX 5/6 O32 support.
13460         (mips_output_function_prologue): Likewise.
13461         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
13462         TARGET_IRIX6.
13463         (TARGET_CPU_CPP_BUILTINS): Likewise.
13464         (TARGET_IRIX): Removed.
13465         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
13466         (MULTILIB_DIRNAMES): Removed 32.
13467         (MULTILIB_OSDIRNAMES): Removed ../lib.
13468         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
13469         (Specific, mips-sgi-irix5): Document removal.
13470         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
13471         Remove references to older IRIX 6 releases and the O32 ABI.
13472
13473 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
13474
13475         PR bootstrap/43994
13476         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
13477         instead of DF_REF_REAL_REG.
13478
13479 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13480
13481         PR target/43888
13482         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
13483         handling to still return true for x64 targets.
13484
13485 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13486
13487         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
13488
13489 2010-05-06  Jan Hubicka  <jh@suse.cz>
13490
13491         PR tree-optimization/43791
13492         * ipa-inline.c (update_caller_keys): Remove bogus
13493         disregard_inline_limits check.
13494
13495 2010-05-06  Michael Matz  <matz@suse.de>
13496
13497         PR tree-optimization/43984
13498         * tree-ssa-pre.c (inserted_phi_names): Remove.
13499         (inserted_exprs): Change to bitmap.
13500         (create_expression_by_pieces): Set bits, don't append to vector.
13501         (insert_into_preds_of_block): Don't handle inserted_phi_names.
13502         (eliminate): Don't look at inserted_phi_names, remove deleted
13503         insns from inserted_exprs.
13504         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
13505         (init_pre, fini_pre): Allocate and free bitmaps.
13506         (execute_pre): Insert insns on edges before elimination.
13507
13508 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13509
13510         * tree.c (initializer_zerop): Handle STRING_CST.
13511
13512 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13513
13514         PR 40989
13515         * doc/invoke.texi (Wimplicit): Document as C only.
13516         * opts.c (common_handle_option): Add argument kind.
13517         (handle_option): Rename as read_cmdline_option. Factor out code to...
13518         (handle_option): ... here. New.
13519         (handle_options): Rename as read_cmdline_options.
13520         (decode_options): Update call.
13521         (set_option): Use option index instead of option pointer. Classify
13522         diagnostics correctly.
13523         (enable_warning_as_error): Call handle_option.
13524         * opts.h (set_option): Update declaration.
13525         (handle_option): Declare.
13526         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
13527         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
13528         * c-opts.c (set_Wimplicit): Delete.
13529         (c_family_lang_mask): New static constant.
13530         (c_common_handle_option): Add argument kind. Use handle_option
13531         instead of set_Wimplicit.
13532         (c_common_post_options): warn_implicit and warn_implicit_int
13533         are disabled by default.
13534         * c-common.c (warn_implicit): Do not define here.
13535         * c-common.h (warn_implicit): Do not declare here.
13536         (c_common_handle_option): Update declaration.
13537         * lto-opts.c (lto_reissue_options): Update call to set_option.
13538
13539 2010-05-06  Richard Guenther  <rguenther@suse.de>
13540
13541         PR tree-optimization/43571
13542         * domwalk.c (walk_dominator_tree): Walk the dominator
13543         sons in more optimal order.
13544
13545 2010-05-06  Richard Guenther  <rguenther@suse.de>
13546
13547         PR tree-optimization/43934
13548         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
13549         (stmt_cost): Likewise.
13550         (extract_true_false_args_from_phi): New helper.
13551         (determine_max_movement): For PHI nodes verify we can hoist them
13552         and compute their cost.
13553         (determine_invariantness_stmt): Handle PHI nodes.
13554         (move_computations_stmt): Likewise.  Hoist PHI nodes in
13555         if-converted form using COND_EXPRs.
13556         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
13557         (tree_ssa_lim): Likewise.
13558         * tree-flow.h (tree_ssa_lim): Adjust prototype.
13559         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
13560
13561 2010-05-06  Richard Guenther  <rguenther@suse.de>
13562
13563         PR tree-optimization/43987
13564         * tree-ssa-structalias.c (could_have_pointers): For possibly
13565         address-taken variables force pointers to be recorded.
13566         (create_variable_info_for_1): Likewise.
13567         (push_fields_onto_fieldstack): Pass in wheter all fields
13568         must have pointers.
13569         (find_func_aliases): Query types instead of vars whether
13570         they contain pointers where appropriate.
13571
13572 2010-05-06  Jan Hubicka  <jh@suse.cz>
13573
13574         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
13575         (record_reference, mark_address, mark_load, mark_store): Record
13576         references.
13577         (record_references_in_initializer): Update call of record_references.
13578         (rebuild_cgraph_edges): Remove all references before rebuiding.
13579         * cgraph.c (cgraph_create_node): Clear ref list.
13580         (cgraph_remove_node): Remove references.
13581         (dump_cgraph_node): Dump references.
13582         (cgraph_clone_node): Clone references.
13583         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
13584         (struct cgraph_node, varpool_node): Add ref_lst.
13585         * ipa-ref.c: New file.
13586         * ipa-ref.h: New file.
13587         * ipa-ref-inline.h: New file.
13588         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
13589         (referenced_from_other_partition_p): New function.
13590         (lto_output_varpool_node): Take set arugment; call
13591         referenced_from_other_partition.
13592         (lto_output_ref): New.
13593         (add_references): New.
13594         (output_refs): New.
13595         (output_cgraph): Compute boundary based on references; output refs.
13596         (output_varpool): Accept cgraph_node_set argument.
13597         (input_ref): New.
13598         (input_refs): New.
13599         (input_cgraph): Call input_refs.
13600         * lto-section-in.c (lto_section_name): Add refs.
13601         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
13602         (ipa-ref.o): New file.
13603         * varpool.c (varpool_node): Clear ipa ref list.
13604         (varpool_remove_node): Remove references.
13605         (dump_varpool_node): Dump references.
13606         (varpool_assemble_decl): Only compile finalized ones.
13607         (varpool_extra_name_alias): Initialize ref list.
13608         * lto-streamer.c (lto-get_section_name): Add .refs section.
13609         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
13610         (referenced_from_other_partition_p): Declared.
13611
13612 2010-05-06  Ira Rosen  <irar@il.ibm.com>
13613
13614         PR tree-optimization/43901
13615         * tree-vect-stmts.c (vectorizable_call): Assert that vector
13616         type is not NULL if it's transformation phase, and return
13617         FALSE if it's analysis.
13618         (vectorizable_conversion, vectorizable_operation,
13619         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
13620
13621 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
13622
13623         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
13624         Delete.
13625         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
13626         New define.
13627         * config/mips/mips-protos.h
13628         (mips_small_register_classes_for_mode_p): Delete prototype.
13629
13630 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
13631
13632         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
13633         * config/arm/arm.c (multiple_operation_profitable_p,
13634         compute_offset_order): New static functions.
13635         (load_multiple_sequence, store_multiple_sequence): Use them.
13636         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
13637         memory offsets, not register numbers.
13638         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
13639
13640 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
13641
13642         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
13643         (get_pending_sizes, put_pending_size, put_pending_sizes):
13644         Update the uses of pending_sizes.
13645         * c-decl.c (store_parm_decls): Likewise.
13646         * c-tree.h (struct c_arg_info): Likewise.
13647         * tree.h: Update the prototype for get_pending_sizes and
13648         put_pending_sizes.
13649
13650 2010-05-05  Jason Merrill  <jason@redhat.com>
13651
13652         PR debug/43370
13653         * c-common.c (handle_aligned_attribute): Respect
13654         ATTR_FLAG_TYPE_IN_PLACE.
13655
13656         PR testsuite/43758
13657         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
13658         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13659         (TARGET_INITIALIZER): Use it.
13660         * c-common.c (attribute_takes_identifier_p): Call it.
13661         * c-common.h: Update prototype.
13662         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
13663         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13664
13665 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
13666
13667         PR debug/43950
13668         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
13669         DW_ID_down_case for Fortran compilation units.
13670
13671 2010-05-05  Jan Hubicka  <jh@suse.cz>
13672
13673         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
13674         handle aliases.
13675
13676 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
13677
13678         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
13679         a variable-sized RESULT_DECL.
13680
13681 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
13682
13683         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
13684
13685 2010-05-05  Jason Merrill  <jason@redhat.com>
13686
13687         PR c++/43787
13688         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
13689         returns GS_OK.
13690         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
13691
13692 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
13693             Jakub Jelinek  <jakub@redhat.com>
13694
13695         PR debug/43478
13696         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
13697         (dead_debug_init, dead_debug_finish): New functions.
13698         (dead_debug_add, dead_debug_insert_before): Likewise.
13699         (df_note_bb_compute): Initialize a dead_debug object, add dead
13700         debug uses to it, insert debug bind insns before death insns,
13701         reset debug insns that refer to pending uses at the end.
13702         * rtl.h (make_debug_expr_from_rtl): New prototype.
13703         * varasm.c (make_debug_expr_from_rtl): New function.
13704
13705 2010-05-05  Jan Hubicka  <jh@suse.cz>
13706
13707         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
13708         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
13709         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
13710         lto_varpool_encoder_deref, lto_varpool_encoder_size,
13711         lto_varpool_encoder_encode_initializer_p,
13712         lto_set_varpool_encoder_encode_initializer): New functions.
13713         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
13714         call output_varpool.
13715         (input_varpool_node): Do not always set analyzed.
13716         (input_cgraph_1): Return vector of cgraph nodes.
13717         (input_varpool_1): Return vector of varpools.
13718         (input_cgraph): Free the vectors.
13719         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13720         output only initializers needed.
13721         (lto_output): Only call output_cgraph.
13722         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
13723         * lto-section-out.c (lto_new_out_decl_state): Initialize
13724         state->varpool_node_encoder.
13725         * lto-streamer.h (lto_varpool_encoder_d): New.
13726         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
13727         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
13728         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
13729         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
13730         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
13731         Declare.
13732         (output_varpool, input_varpool): Remove declarations.
13733
13734 2010-05-05  Jan Hubicka  <jh@suse.cz>
13735
13736         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
13737         with body can prevail.
13738
13739 2010-05-05  Jan Hubicka  <jh@suse.cz>
13740
13741         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
13742         size.
13743
13744 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13745
13746         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
13747
13748         * gengtype.h (erro_at_line): Constify pos argument.
13749
13750         * gengtype.c: Include hashtab.h.
13751         (enum gc_used): Document GC_MAYBE_POINTED_TO.
13752         (error_at_line): Constify pos argument.
13753         (do_typedef): Initialize p->opt field.
13754         (get_file_gtfilename): Fix comment typo.
13755         (struct walk_type_data): Constify line field.
13756         (get_output_file_for_structure): New function.
13757         (write_local_func_for_structure): Constify orig_s argument.
13758         Use get_output_file_for_structure.
13759         (write_func_for_structure): Use get_output_file_for_structure.
13760         (INDENT): New define.
13761         (dump_pair, dump_type, dump_type_list, dump_typekind)
13762         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
13763         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
13764         functions.
13765         (seen_types): New variable.
13766         (main): New variable do_dump.  Process "-d" command line option.
13767         Call dump_everything if dump requested.
13768
13769 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
13770
13771         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
13772         in a temporary instead of invoking the macro multiple times.
13773         (track_expr_p): Likewise.
13774
13775 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
13776
13777         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
13778         per new semantics.
13779         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
13780         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
13781         conditions for printing notes.
13782         * common.opt (-Wcoverage-mismatch): Allow negative, default to
13783         true, update documentation.
13784         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
13785
13786 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
13787
13788         PR c/43981
13789         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
13790         on dimen.
13791
13792 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13793
13794         PR target/43799
13795         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
13796         (*sse_prologue_save_insn1): Likewise.
13797         (SSE prologue save splitter): Likewise.
13798
13799 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
13800
13801         * tree.c (free_lang_data_in_one_sizepos): New inline function.
13802         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
13803         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
13804         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
13805         all decls.  Call it on DECL_FIELD_OFFSET of fields.
13806         (find_decls_types_r): Follow DECL_VALUE_EXPR.
13807         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
13808
13809 2010-05-04  Martin Jambor  <mjambor@suse.cz>
13810
13811         * tree-sra.c (build_access_from_expr_1): The first parameter type
13812         changed to simple tree.
13813         (build_access_from_expr): Likewise, gsi parameter was eliminated.
13814         (scan_assign_result): Renamed to assignment_mod_result, enum elements
13815         renamed as well.
13816         (build_accesses_from_assign): Removed all parameters except for a
13817         simple gimple statement.  Now returns a simple bool.
13818         (scan_function): All non-analysis parts moved to separate functions
13819         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
13820         parameters and updated both callers.
13821         (sra_modify_expr): Removed parameter data.
13822         (sra_modify_function_body): New function.
13823         (perform_intra_sra): Call sra_modify_function_body to modify the
13824         function body.
13825         (replace_removed_params_ssa_names): Parameter data changed into
13826         adjustments vector.
13827         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
13828         changed the parameter dont_convert to convert with the opposite
13829         meaning.
13830         (sra_ipa_modify_assign): Parameter data changed into adjustments
13831         vector, return value changed to bool.
13832         (ipa_sra_modify_function_body): New function.
13833         (sra_ipa_reset_debug_stmts): Updated a comment.
13834         (modify_function): Use ipa_sra_modify_function_body to modify function
13835         body.
13836
13837 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13838
13839         PR middle-end/43671
13840         * alias.c (true_dependence): Handle the same VALUE in x and mem.
13841         (canon_true_dependence): Likewise.
13842         (write_dependence_p): Likewise.
13843
13844 2010-05-04  Jan Hubicka  <jh@suse.cz>
13845
13846         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
13847         * cgraphbuild.c: Include ipa-utils.h
13848         (record_reference_ctx): New struct.
13849         (record_reference): Simplify to work on initializers; not statements.
13850         (mark_address, mark_load, mark_store): New.
13851         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
13852         walk PHI nodes too.
13853         (record_references_in_initializer): Update use of record_reference.
13854         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
13855         walk PHI nodes too.
13856
13857 2010-05-04  Jan Hubicka  <jh@suse.cz>
13858
13859         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
13860         node will be removed anyway.
13861         (lto_varpool_replace_node): Allow also unanalyzed nodes;
13862         relink aliases of node into prevailing node.
13863         * varpool.c (varpool_remove_node): Remove aliases properly;
13864         when removing node, remove all its aliases too; remove DECL_INITIAL
13865         of removed node; ggc_free the varpool node.
13866
13867 2010-05-04  Richard Guenther  <rguenther@suse.de>
13868
13869         PR tree-optimization/43879
13870         * tree-ssa-structalias.c (alias_get_name): Use
13871         DECL_ASSEMBLER_NAME if available.
13872         (create_function_info_for): Return the varinfo node.
13873         (ipa_pta_execute): Associate same-body aliases and extra names
13874         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
13875
13876 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13877
13878         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
13879
13880 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
13881
13882         PR bootstrap/43964
13883         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
13884         only if HONOR_REG_ALLOC_ORDER is not defined.
13885
13886 2010-05-04  Richard Guenther  <rguenther@suse.de>
13887
13888         PR tree-optimization/43949
13889         * tree-vrp.c (extract_range_from_binary_expr): Only handle
13890         TRUNC_MOD_EXPR.
13891
13892 2010-04-26  Jason Merrill  <jason@redhat.com>
13893
13894         * c.opt (-fstrict-enums): New.
13895         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
13896
13897 2010-05-03  David Ung  <davidu@mips.com>
13898             James E. Wilson  <wilson@codesourcery.com>
13899
13900         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
13901         emit the trap instruction before the divide for TUNE_74K.
13902
13903 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
13904
13905         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
13906         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
13907         based on the above, for new target hook.
13908
13909         * hooks.c (hook_bool_mode_true): New generic hook.
13910         * hooks.h (hook_bool_mode_true): Add prototype.
13911
13912         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
13913         target hook.
13914         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
13915         target hook, set to hook_bool_mode_false.
13916         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
13917         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
13918         with targetm.small_register_classes_for_mode_p.
13919         (find_reusable_reload): Likewise.
13920         (combine_reloads): Likewise.
13921         * reload1.c (reload_as_needed): Likewise.
13922         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
13923         * ifcvt.c (noce_process_if_block, check_cond_move_block,
13924         dead_or_predicable): Likewise.
13925         * regmove.c (optimize_reg_copy_1): Likewise.
13926         * calls.c (prepare_call_address): Likewise.
13927         (precompute_register_parameters): Likewise.
13928
13929         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
13930         hook definition.
13931         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
13932         implementation of the hook that considers all register classes
13933         small except for SH64.
13934         (sh_override_options): Use the new hook.
13935         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
13936         Add prototype.
13937
13938         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
13939         hook definition.
13940         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
13941         implementation of the hook that considers all register classes
13942         small for THUMB1.
13943         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
13944         Add prototype.
13945
13946         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
13947         hook definition.
13948         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
13949         implementation of the hook that considers all register classes
13950         small for MIPS16.
13951         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
13952         Add prototype.
13953
13954         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
13955         hook definition.
13956         * config/m32c/m32c.h: Likewise.
13957         * config/pdp11/pdp11.h: Likewise.
13958         * config/avr/avr.h: Likewise.
13959         * config/xtensa/xtensa.h: Likewise.
13960         * config/m68hc11/m68hc11.h: Likewise.
13961         * config/mn10300/mn10300.h: Likewise.
13962         * config/mcore/mcore.h: Likewise.
13963         * config/h8300/h8300.h: Likewise.
13964         * config/bfin/bfin.h: Likewise.
13965
13966         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
13967         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
13968
13969 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
13970
13971         * double-int.h (tree_to_double_int): Remove macro.
13972         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
13973         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13974         (tree_to_double_int): New function.
13975         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
13976         Move ...
13977         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13978
13979 2010-05-03  Richard Guenther  <rguenther@suse.de>
13980
13981         PR tree-optimization/43971
13982         * tree-ssa-structalias.c (get_constraint_for_1): Fix
13983         constraints in the !flag_delete_null_pointer_checks case.
13984
13985 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
13986
13987         PR debug/43972
13988         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
13989         result mode matches original rtl mode.
13990
13991 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
13992
13993         PR target/43888
13994         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
13995
13996 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13997
13998         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
13999         when processing flag options.
14000
14001 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14002
14003         * gcov-iov.c (main): Change format string placeholder
14004         from %#08x to 0x%08x.
14005         * genchecksum.c (dosum): Change format string placeholder
14006         from %#02x to 0x%02x.
14007
14008 2010-05-02  Richard Guenther  <rguenther@suse.de>
14009
14010         PR tree-optimization/43879
14011         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
14012
14013 2010-05-02  Bruno Haible  <bruno@clisp.org>
14014
14015         * doc/extend.texi (Function Attributes): Fix a typo.
14016
14017 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14018
14019         Revert:
14020         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
14021         placeholder from 0x%x to %#x.
14022         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14023         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14024         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14025         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14026         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14027         * config/i386/i386.c (ix86_target_string): Ditto.
14028         * config/i386/i386.c (output_pic_addr_const): Ditto.
14029         (print_operand): Ditto.
14030
14031 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14032
14033         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
14034         placeholder from 0x%x to %#x.
14035         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
14036         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
14037         (ASM_OUTPUT_DEBUG_DATA): Ditto.
14038         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
14039         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
14040         * optc-gen.awk: Ditto.
14041         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
14042         (HOST_WIDE_INT_PRINT_HEX): Ditto.
14043         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
14044         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14045
14046 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
14047
14048         * target.h (struct calls): Add function_value_regno_p field.
14049         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
14050         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
14051         * targhooks.c (default_function_value_regno_p): New function.
14052         * targhooks.h (default_function_value_regno_p): Declare function.
14053         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
14054         * builtins.c. (apply_result_size): (Ditto.).
14055         * combine.c. (likely_spilled_retval_p): (Ditto.).
14056         * mode-switching.c. Include 'target.h'.
14057         (create_pre_exit): Use function_value_regno_p hook.
14058         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
14059         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
14060         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
14061
14062         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
14063         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
14064         (ix86_function_value_regno_p): Declare as static, change argument
14065         type to const unsigned int.
14066         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
14067
14068 2010-05-01  Richard Guenther  <rguenther@suse.de>
14069
14070         PR tree-optimization/43949
14071         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
14072         types.
14073         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
14074
14075 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
14076
14077         * rtl.h (CONST_DOUBLE_P): Define.
14078         (rtx_to_double_int): Declare.
14079         * emit-rtl.c (rtx_to_double_int): New function.
14080         * dwarf2out.c (insert_double): New function.
14081         (loc_descriptor, add_const_value_attribute): Clean up, use
14082         rtx_to_double_int and insert_double functions.
14083
14084 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
14085
14086         * doc/extend.texi (Inline): Add missing return keyword to examples.
14087         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
14088         "command-line".
14089
14090 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
14091
14092         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
14093         the variable part of the offset as well.  Use highest_pow2_factor for
14094         all alignment checks.
14095
14096 2010-04-30  Richard Guenther  <rguenther@suse.de>
14097
14098         PR tree-optimization/43879
14099         * tree-ssa-structalias.c (type_could_have_pointers): Functions
14100         can have pointers.
14101
14102 2010-04-30  Jan Hubicka  <jh@suse.cz>
14103
14104         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
14105         varpool.
14106         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
14107
14108 2010-04-30  Jan Hubicka  <jh@suse.cz>
14109
14110         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
14111         New.
14112         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
14113         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
14114         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
14115         cgraph_node_set_needs_ltrans_p): Remove.
14116
14117 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14118
14119         * sdbout.c: Include vec.h, do not include varray.h.
14120         (deferred_global_decls, sdbout_global_decl,
14121         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
14122         * toplev.c: Do not include varray.h.
14123         (dump_memory_report): Do not dump VARRAY statistics.
14124         * gengtype.c (open_base_file): Ignore varray.h.
14125         * Makefile.in: Update for abovementioned changes.
14126         Remove all traces of varray.c and varray.h.
14127         * varray.c: Remove file.
14128         * varray.h: Remove file.
14129
14130 2010-04-30  Jan Hubicka  <jh@suse.cz>
14131
14132         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
14133         references.
14134
14135 2010-04-30  Jan Hubicka  <jh@suse.cz>
14136
14137         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
14138         needed.
14139
14140 2010-04-30  Richard Guenther  <rguenther@suse.de>
14141
14142         * tree-ssa-structalias.c (get_constraint_for_1): Generate
14143         constraints for CONSTRUCTOR.
14144
14145 2010-04-30  Richard Guenther  <rguenther@suse.de>
14146
14147         PR lto/43946
14148         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
14149         first after all lowering passes.
14150
14151 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14152
14153         * toplev.c: Include varray.h for statistics dumping.
14154         * tree.h: Do not declare varray_head_tag.
14155         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
14156         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
14157         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
14158         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
14159         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
14160         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
14161         c-common.c, c-common.h, reg-stack.c, basic-block.h,
14162         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
14163         include varray.h.
14164         * Makefile.in: Update for abovementioned changes.
14165
14166 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
14167
14168         PR debug/43942
14169         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
14170
14171 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14172
14173         * config/picochip/picochip.c (picochip_legitimize_address): Define.
14174         Use this function to do machine-specific conversion.
14175         (picochip_legitimize_reload_address): Likewise.
14176         (picochip_legitimate_address_p): Check valid base register only if
14177         strict.
14178         (picochip_check_conditional_copy): Check for modw only if opnd is
14179         register.
14180         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
14181         to call the function in c.
14182         * config/picochip/picochip-protos.h
14183         (picochip_legitimize_reload_address): Define.
14184         * config/picochip/picochip.md (supported_compare1): Define.
14185
14186 2010-04-30  Jan Hubicka  <jh@suse.cz>
14187
14188         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
14189         (cgraph_global_info): Remove inlined.
14190         (LTO_cgraph_tag_names): Remove.
14191         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
14192         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
14193         simplify cgraph tags and document.
14194         (lto_output_node): Use only LTO_cgraph_unavail_node and
14195         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
14196         for_functions_valid, global info, process and output flags.
14197         (input_overwrite_node): Initialize estimated stack size and
14198         estimated growth.  Do not read flags we no longer store.
14199         (input_node): Likewise do not read info no longer stored.
14200         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
14201         flag.
14202
14203 2010-04-30  Richard Guenther  <rguenther@suse.de>
14204
14205         PR tree-optimization/43879
14206         * tree-ssa-structalias.c (get_constraint_for_1): Properly
14207         handle non-zero initializers.
14208
14209 2010-04-30  Richard Guenther  <rguenther@suse.de>
14210
14211         * builtins.c (fold_builtin_1): Delete free (0).
14212
14213 2010-04-29  Jan Hubicka  <jh@suse.cz>
14214
14215         * gengtype.c (open_base_files): Add lto-streamer.h
14216         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
14217         (pass_ipa_cp): GGC collect.
14218         * toplev. (compile_file): Do not output symbols.
14219         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
14220         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
14221         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
14222         * lto-section-in.c: Include ggc.h
14223         (lto_new_in_decl_state): Alloc in GGC.
14224         (lto_delete_in_decl_state): Likewise.
14225         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
14226         Collect.
14227
14228 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14229
14230         PR target/42895
14231         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
14232         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
14233         (HONOR_REG_ALLOC_ORDER): Describe new macro.
14234         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
14235         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
14236         account only if HONOR_REG_ALLOC_ORDER is not defined.
14237         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
14238         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
14239
14240 2010-04-29  Jon Grant  <04@jguk.org>
14241
14242         * collect2.c (vflag): Change type from int to bool.
14243         (debug): Likewise.
14244         (helpflag): New global bool.
14245         (main): Set vflag and debug with boolean, not integer truth values.
14246         Accept new "--help" option and output usage text if found.
14247         * collect2.h (vflag): Update prototype.
14248         (debug): Likewise.
14249
14250 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14251
14252         PR bootstrap/43936
14253         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
14254
14255 2010-04-29  Richard Guenther  <rguenther@suse.de>
14256
14257         PR bootstrap/43935
14258         * plugin.h (invoke_plugin_callbacks): Annotate arguments
14259         with ATTRIBUTE_UNUSED.
14260
14261 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14262
14263         PR target/43921
14264         * config/i386/i386.c (get_some_local_dynamic_name): Replace
14265         INSN_P with NONDEBUG_INSN_P.
14266         (distance_non_agu_define): Likewise.
14267         (distance_agu_use): Likewise.
14268
14269 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14270
14271         From Dominique d'Humieres  <dominiq@lps.ens.fr>
14272         PR bootstrap/43858
14273         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
14274         test_set.
14275
14276 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
14277
14278         * plugin.h (invoke_plugin_callbacks): New inline function.
14279         * plugin.c (flag_plugin_added): New global flag.
14280         (add_new_plugin): Initialize above flag.
14281         (invoke_plugin_callbacks): Rename to ...
14282         (invoke_plugin_callbacks_full): ... this.
14283
14284 2010-04-28  Jan Hubicka  <jh@suse.cz>
14285
14286         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
14287         (lto_varpool_replace_node): New.
14288         (lto_symtab_resolve_symbols): Resolve varpool nodes.
14289         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
14290         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
14291         * cgraph.h (varpool_node_ptr): New type.
14292         (varpool_node_ptr): New vector.
14293         (varpool_node_set_def): New structure.
14294         (varpool_node_set): New type.
14295         (varpool_node_set): New vector.
14296         (varpool_node_set_element_def): New structure.
14297         (varpool_node_set_element, const_varpool_node_set_element): New types.
14298         (varpool_node_set_iterator): New type.
14299         (varpool_node): Add prev pointers, add used_from_other_partition,
14300         in_other_partition.
14301         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
14302         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
14303         varpool_get_node, varpool_remove_node): Declare.
14304         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
14305         varpool_node_set_size): New inlines.
14306         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
14307         * tree-pass.h (varpool_node_set_def): Forward declare.
14308         (ipa_opt_pass_d): Summary writting takes vnode sets too.
14309         (ipa_write_optimization_summaries): Update prototype.
14310         * ipa-cp.c (ipcp_write_summary): Update.
14311         * ipa-reference.c (ipa_reference_write_summary): Update.
14312         * lto-cgraph.c (lto_output_varpool_node): New static function.
14313         (output_varpool): New function.
14314         (input_varpool_node): New static function.
14315         (input_varpool_1): New function.
14316         (input_cgraph): Input varpool.
14317         * ipa-pure-const.c (pure_const_write_summary): Update.
14318         * lto-streamer-out.c (lto_output): Update, output varpool too.
14319         (write_global_stream): Kill WPA hack.
14320         (produce_asm_for_decls): Update.
14321         (output_alias_pair_p): Handle variables.
14322         (output_unreferenced_globals): Output only needed partition of varpool.
14323         * ipa-inline.c (inline_write_summary): Update.
14324         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
14325         cgraph.
14326         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
14327         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
14328         varpool_node_set_new, varpool_node_set_add,
14329         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
14330         debug_varpool_node_set): New functions.
14331         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
14332         (execute_one_pass): Process new decls too.
14333         (ipa_write_summaries_2): Pass around vsets.
14334         (ipa_write_summaries_1): Likewise.
14335         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
14336         to add.
14337         (ipa_write_optimization_summaries_1): Pass around vsets.
14338         (ipa_write_optimization_summaries): Likewise.
14339         * varpool.c (varpool_get_node): New.
14340         (varpool_node): Update doubly linked lists.
14341         (varpool_remove_node): New.
14342         (dump_varpool_node): More dumping.
14343         (varpool_enqueue_needed_node): Update doubly linked lists.
14344         (decide_is_variable_needed): Kill ltrans hack.
14345         (varpool_finalize_decl): Kill lto hack.
14346         (varpool_assemble_decl): Skip decls in other partitions.
14347         (varpool_assemble_pending_decls): Update doubly linkes lists.
14348         (varpool_empty_needed_queue): Likewise.
14349         (varpool_extra_name_alias): Likewise.
14350         * lto-streamer.c (lto_get_section_name): Add vars section.
14351         * lto-streamer.h (lto_section_type): Update.
14352         (output_varpool, input_varpool): Declare.
14353
14354 2010-04-28  Mike Stump  <mikestump@comcast.net>
14355
14356         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
14357
14358 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14359
14360         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
14361         record or union type with RECORD_OR_UNION_TYPE_P predicate.
14362         (lto_input_ts_type_tree_pointers): Likewise.
14363         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
14364         (lto_output_ts_type_tree_pointers): Likewise.
14365
14366 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14367
14368         Uniquization of constants at the Tree level
14369         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
14370         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
14371         bit to the end.
14372         (tree_output_constant_def): Declare.
14373         * gimplify.c (gimplify_init_constructor): When using block copy, first
14374         uniquize the constant constructor on the RHS.
14375         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
14376         DECL_IN_CONSTANT_POOL flag.
14377         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
14378         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
14379         constant pool.
14380         (assemble_variable): Deal with symbols belonging to the tree constant
14381         pool.
14382         (get_constant_section): Add ALIGN parameter and simplify.
14383         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
14384         (assemble_constant_contents): Use the expression of the VAR_DECL.
14385         (output_constant_def_contents): Use the alignment of the VAR_DECL.
14386         (tree_output_constant_def): New global function.
14387         (mark_constant): Use the expression of the VAR_DECL.
14388         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
14389         its expression.
14390         (output_object_block): Likewise and assemble the expression.
14391
14392 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14393
14394         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
14395         hash_tree, eq_tree): New tree hash table.
14396         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
14397         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
14398         lto_orig_address_remove): Reimplement.
14399
14400 2010-04-28  Xinliang David Li  <davidxl@google.com>
14401
14402         PR c/42643
14403         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
14404         (compute_uninit_opnds_pos): New function.
14405         (is_non_loop_exit_postdominating): New function.
14406         (compute_control_dep_chain): New function.
14407         (find_pdom): New function.
14408         (convert_control_dep_chain_into_preds): New function.
14409         (find_predicates): New function.
14410         (find_control_equiv_block): New function.
14411         (collect_phi_def_edges): New function.
14412         (find_def_preds): New function.
14413         (find_dom): New function.
14414         (dump_predicates): New function.
14415         (get_cmp_code): New function.
14416         (is_value_included_in): New function.
14417         (find_matching_predicate_in_rest_chains): New function.
14418         (use_pred_not_overlap_with_undef_path_pred): New function.
14419         (is_use_properly_guarded): New function.
14420         (normalize_cond_1): New function.
14421         (is_and_or_or): New function.
14422         (normalize_cond): New function.
14423         (is_gcond_subset_of): New function.
14424         (is_subset_of_any): New function.
14425         (is_or_set_subset_of): New function.
14426         (is_and_set_subset_of): New function.
14427         (is_norm_cond_subset_of): New function.
14428         (is_pred_expr_subset_of): New function.
14429         (is_pred_chain_subset_of): New function.
14430         (is_included_in): New function.
14431         (is_superset_of): New function.
14432         (find_uninit_use): New function.
14433         (warn_uninitialized_phi): New function.
14434         (compute_possibly_undefined_names): New function.
14435         (ssa_undefined_value_p): New function.
14436         (execute_late_warn_uninitialized): New function.
14437         * tree-ssa.c (ssa_undefined_value_p): Removed.
14438         (warn_uninit): Changed to extern.
14439         (warn_uninitialized_phi): Removed.
14440         (warn_uninitialized_vars): Changed to extern.
14441         (execute_late_warn_uninitialized): Removed
14442         * tree-flow.h: Add new prototypes.
14443         * timevar.def: Add new time variable.
14444         * Makefile.in: Add new build file.
14445
14446 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
14447
14448         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
14449         type if available.
14450
14451 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14452
14453         PR target/22224
14454         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
14455
14456 2010-04-28  Martin Jambor  <mjambor@suse.cz>
14457
14458         * cgraph.h (struct cgraph_node): New field indirect_calls.
14459         (struct cgraph_indirect_call_info): New type.
14460         (struct cgraph_edge): Removed field indirect_call. New fields
14461         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
14462         (cgraph_create_indirect_edge): Declare.
14463         (cgraph_make_edge_direct): Likewise.
14464         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
14465         * ipa-prop.h (struct ipa_param_call_note): Removed.
14466         (struct ipa_node_params): Removed field param_calls.
14467         (ipa_create_all_structures_for_iinln): Declare.
14468         * cgraph.c: Described indirect edges and uids in initial comment.
14469         (cgraph_add_edge_to_call_site_hash): New function.
14470         (cgraph_edge): Search also among the indirect edges, use
14471         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
14472         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
14473         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
14474         site hash.
14475         (initialize_inline_failed): Assign a reason to indirect edges.
14476         (cgraph_create_edge_1): New function.
14477         (cgraph_create_edge): Moved some functionality to
14478         cgraph_create_edge_1.
14479         (cgraph_create_indirect_edge): New function.
14480         (cgraph_edge_remove_callee): Add an assert checking for
14481         non-indirectness.
14482         (cgraph_edge_remove_caller): Special-case indirect edges.
14483         (cgraph_remove_edge): Likewise.
14484         (cgraph_set_edge_callee): New function.
14485         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
14486         (cgraph_make_edge_direct): New function.
14487         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
14488         the declaration of the call statement matches.
14489         (cgraph_node_remove_callees): Special-case indirect edges.
14490         (cgraph_clone_edge): Likewise.
14491         (cgraph_clone_node): Clone also the indirect edges.
14492         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
14493         indirect_call, dump count of indirect_calls edges.
14494         * ipa-prop.c (iinlining_processed_edges): New variable.
14495         (ipa_note_param_call): Create indirect edges instead of
14496         creating notes.  New parameter node.
14497         (ipa_analyze_call_uses): New parameter node, pass it on to
14498         ipa_note_param_call.
14499         (ipa_analyze_stmt_uses): Likewise.
14500         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
14501         (print_edge_addition_message): Work on edges rather than on notes.
14502         (update_call_notes_after_inlining): Likewise, renamed to
14503         update_indirect_edges_after_inlining.
14504         (ipa_create_all_structures_for_iinln): New function.
14505         (ipa_free_node_params_substructures): Do not free notes.
14506         (ipa_edge_duplication_hook): Propagate bits within
14507         iinlining_processed_edges bitmap.
14508         (ipa_node_duplication_hook): Do not duplicate notes.
14509         (free_all_ipa_structures_after_ipa_cp): Renamed to
14510         ipa_free_all_structures_after_ipa_cp.
14511         (free_all_ipa_structures_after_iinln): Renamed to
14512         ipa_free_all_structures_after_iinln.
14513         (ipa_write_param_call_note): Removed.
14514         (ipa_read_param_call_note): Removed.
14515         (ipa_write_indirect_edge_info): New function.
14516         (ipa_read_indirect_edge_info): Likewise.
14517         (ipa_write_node_info): Do not stream notes, do stream information
14518         in indirect edges.
14519         (ipa_read_node_info): Likewise.
14520         (lto_ipa_fixup_call_notes): Removed.
14521         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
14522         * ipa-inline.c (pass_ipa_inline): Likewise.
14523         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
14524         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
14525         * tree-inline.c (copy_bb): Removed an unnecessary double check for
14526         is_gimple_call.
14527         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
14528         edges.
14529         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
14530         (output_cgraph): Stream also indirect edges.
14531         (lto_output_edge): Added capability to stream indirect edges.
14532         (input_edge): Likewise.
14533         (input_cgraph_1): Likewise.
14534         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
14535         of indirect edges.
14536
14537 2010-04-28  Richard Guenther  <rguenther@suse.de>
14538
14539         PR tree-optimization/43879
14540         PR tree-optimization/43909
14541         * tree-ssa-structalias.c (struct variable_info): Add
14542         only_restrict_pointers flag.
14543         (new_var_info): Initialize it.  Increment stats.total_vars here.
14544         (create_function_info_for): Do not increment stats.total_vars here.
14545         (get_function_part_constraint): Fix build with C++.
14546         (insert_into_field_list): Remove.
14547         (push_fields_onto_fieldstack): Properly merge fields.
14548         (create_variable_info_for): Split and simplify.
14549         (create_variable_info_for_1): New piece.
14550         (intra_create_variable_infos): Properly make restrict constraints
14551         from parameters.
14552
14553 2010-04-28  Richard Guenther  <rguenther@suse.de>
14554
14555         PR c++/43880
14556         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
14557
14558 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14559             Jan Hubicka  <hubicka@ucw.cz>
14560
14561         * doc/invoke.texi (-Wsuggest-attribute=const,
14562         -Wsuggest-attribute=pure): Document.
14563         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
14564         (function_always_visible_to_compiler_p,
14565         suggest_attribute, warn_function_pure, warn_function_const):
14566         New functions.
14567         (check_call): Improve debug info.
14568         (analyze_function): Do not check availability.
14569         (add_new_function): Check availability.
14570         (propagate): Output warnings.
14571         (skip_function_for_local_pure_const): New function.
14572         (local_pure_const): Use it; output warnings.
14573         * common.opt (Wsuggest-attribute=const,
14574         Wsuggest-attribute=pure): New.
14575
14576 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
14577
14578         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
14579         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
14580         or DW_CFA_def_cfa_offset{,_sf}.
14581
14582 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14583
14584         * tree.h: Fix truncated long macros.
14585
14586 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
14587
14588         * collect2.c (TARGET_64BIT): Redefine to target's default.
14589         * tlink.c: Likewise.
14590         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
14591         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
14592         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
14593         for underscoring __USER_LABEL_PREFIX__.
14594         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
14595         (SUB_LINK_ENTRY32): New.
14596         (SUB_LINK_ENTRY64): New.
14597         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
14598         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
14599         (SUB_LINK_ENTRY64): New.
14600         (SUB_LINK_ENTRY): New.
14601         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
14602         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
14603         x64 target is choosen.
14604         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
14605         * configure: Regenerated.
14606         * configure.ac (leading-mingw64-underscores): Option added.
14607
14608 2010-04-27  Jan Hubicka  <jh@suse.cz>
14609
14610         * doc/invoke.texi (-fipa-profile): Document.
14611         * opts.c (decode_options): Enable ipa-profile at -O1.
14612         * timevar.def (TV_IPA_PROFILE): Define.
14613         * common.opt (fipa-profile): Add.
14614         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
14615         flag for clones.
14616         (cgraph_propagate_frequency): Handle only local ones.
14617         * tree-pass.h (pass_ipa_profile): Declare.
14618         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
14619         (pass_ipa_profile): Use TV_IPA_PROFILE.
14620         * ipa.c (ipa_profile): New function.
14621         (gate_ipa_profile): Likewise.
14622         (pass_ipa_profile): New global variable.
14623         * passes.c (pass_ipa_profile): New.
14624
14625 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
14626
14627         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
14628
14629 2010-04-27  Martin Jambor  <mjambor@suse.cz>
14630
14631         PR middle-end/43812
14632         * ipa.c (dissolve_same_comdat_group_list): New function.
14633         (function_and_variable_visibility): Call
14634         dissolve_same_comdat_group_list when comdat group contains external or
14635         newly local nodes.
14636         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
14637         lists are circular and that they contain only DECL_ONE_ONLY nodes.
14638
14639 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14640
14641         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
14642         (const_hash_1) <VECTOR_CST>: New case.
14643         (compare_constant) <VECTOR_CST>: Likewise.
14644         <ADDR_EXPR>: Deal with LABEL_REFs.
14645         (copy_constant) <VECTOR_CST>: New case.
14646
14647 2010-04-27  Jan Hubicka  <jh@suse.cz>
14648
14649         * cgraph.c (cgraph_propagate_frequency): New function.
14650         * cgraph.h (cgraph_propagate_frequency): Declare.
14651         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
14652         cgraph_propagate_frequency.
14653
14654 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
14655
14656         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
14657
14658 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
14659
14660         PR target/40657
14661         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
14662         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
14663         here to determine which regs to push and how much stack to reserve.
14664
14665 2010-04-27  Jie Zhang  <jie@codesourcery.com>
14666
14667         * doc/gimple.texi (gimple_statement_with_ops): Remove
14668         addresses_taken field.
14669         (gimple_statement_with_memory_ops): Likewise.
14670
14671 2010-04-27  Jan Hubicka  <jh@suse.cz>
14672
14673         * tree-inline.c (eni_inlining_weights): Remove.
14674         (estimate_num_insns): Special case more builtins.
14675
14676 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
14677
14678         PR c/32207
14679         * c-typeck.c (build_binary_op): Move forward check for comparison
14680         pointer with null pointer constant and adjust the diagnostic message.
14681
14682 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
14683
14684         PR lto/42776
14685         * configure.ac (gcc_cv_as_section_has_align): Set if installed
14686         binutils supports extended .section directive needed by LTO, or
14687         warn if older binutils found.
14688         (LTO_BINARY_READER): New AC_SUBST'd variable.
14689         (LTO_USE_LIBELF): Likewise.
14690         * gcc/config.gcc (lto_binary_reader): New target-specific configure
14691         variable.
14692         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
14693         (LTO_USE_LIBELF): Likewise.
14694         * configure: Regenerate.
14695
14696         * collect2.c (is_elf): Rename from this ...
14697         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
14698          object files in addition to ELF-formatted ones.
14699         (scan_prog_file): Caller updated.  Also allow for LTO info marker
14700         symbol to be prefixed or not by an extra underscore.
14701
14702         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
14703         * config/i386/winnt.c: Also #include lto-streamer.h
14704         (i386_pe_asm_named_section): Specify 1-byte section alignment for
14705         LTO named sections.
14706         (i386_pe_asm_output_aligned_decl_common): Add comment.
14707         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
14708
14709 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
14710
14711         PR target/43889
14712         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
14713         Add missing earlyclobber for second alternative.
14714
14715 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
14716
14717         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
14718         bits for artificial defs at the top of the block.
14719         * fwprop.c (single_def_use_enter_block): Don't call it.
14720
14721 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
14722
14723         PR 43715
14724         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
14725         instead of "$gcc_cv_objdump -T".
14726         Use "-undefined dynamic_lookup" on darwin.
14727         * gcc/configure: Regenerate.
14728
14729 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
14730
14731         PR c/43893
14732         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
14733
14734 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
14735
14736         * c-parser.c (struct c_token): Move location field up.
14737         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
14738         (struct c_declspecs): Convert typespec_word, storage_class, and
14739         default_int_p into bitfields.
14740         (struct c_declarator): Move loc field up.
14741
14742 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
14743
14744         * cfgloop.h (struct loop): Move can_be_parallel field up.
14745         * ipa-prop.h (struct ip_node_params): Move bitfields up.
14746         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
14747         down.
14748         (struct iv_cand): Convert pos field into a bitfield.
14749         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
14750         field up.
14751         (struct _stmt_vec_info): Shuffle fields for better packing.
14752
14753 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
14754
14755         * varasm.c (IN_NAMED_SECTION): Remove guard.
14756         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
14757         (IN_NAMED_SECTION_P): ...this.
14758         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
14759         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
14760
14761 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
14762
14763         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
14764         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
14765         of shadowing it.  Fix comments.
14766
14767 2010-04-26  Jan Hubicka  <jh@suse.cz>
14768
14769         * cgraph.c (cgraph_create_node): Set node frequency to normal.
14770         (cgraph_clone_node): Copy function frequency.
14771         * cgraph.h (node_frequency): New enum
14772         (struct cgraph_node): Add.
14773         * final.c (rest_of_clean_state): Update.
14774         * lto-cgraph.c (lto_output_node): Output node frequency.
14775         (input_overwrite_node): Input node frequency.
14776         * tre-ssa-loop-ivopts (computation_cost): Update.
14777         * lto-streamer-out.c (output_function): Do not output function
14778         frequency.
14779         * predict.c (maybe_hot_frequency_p): Update and handle functions
14780         executed once.
14781         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
14782         attribute lookup.
14783         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
14784         (compute_function_frequency): Set noreturn functions to be executed
14785         once.
14786         (choose_function_section): Update.
14787         * lto-streamer-in.c (input_function): Do not input function frequency.
14788         * function.c (allocate_struct_function): Do not initialize function
14789         frequency.
14790         * function.h (function_frequency): Remove.
14791         (struct function): Remove function frequency.
14792         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
14793         (try_update): Update.
14794         * tree-inline.c (initialize_cfun): Do not update function frequency.
14795         * passes.c (pass_init_dump_file): Update.
14796         * i386.c (ix86_compute_frame_layout): Update.
14797         (ix86_pad_returns): Update.
14798
14799 2010-04-26  Jie Zhang  <jie@codesourcery.com>
14800
14801         PR tree-optimization/43833
14802         * tree-vrp.c (range_int_cst_p): New.
14803         (range_int_cst_singleton_p): New.
14804         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
14805         when both operands are constants.  Use range_int_cst_p in
14806         BIT_IOR_EXPR case.
14807
14808 2010-04-26  Jan Hubicka  <jh@suse.cz>
14809
14810         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
14811
14812 2010-04-26  Richard Guenther  <rguenther@suse.de>
14813
14814         PR lto/43080
14815         * gimple.c (gimple_decl_printable_name): Deal gracefully
14816         with a NULL DECL_NAME.
14817
14818 2010-04-26  Richard Guenther  <rguenther@suse.de>
14819
14820         PR lto/42425
14821         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
14822         if emitting debug information and it is either a function
14823         or a namespace decl.
14824
14825 2010-04-26  Ira Rosen  <irar@il.ibm.com>
14826
14827         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
14828         determine if the statement is vectorizable, and a macro to access it.
14829         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14830         Skip statements that can't be vectorized. If the analysis fails,
14831         mark the statement as unvectorizable if vectorizing basic block.
14832         (vect_compute_data_refs_alignment): Likewise.
14833         (vect_verify_datarefs_alignment): Skip statements marked as
14834         unvectorizable. Add print.
14835         (vect_analyze_group_access): Skip statements that can't be
14836         vectorized. If the analysis fails, mark the statement as
14837         unvectorizable if vectorizing basic block.
14838         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
14839         * tree-vect-stmts.c (vectorizable_store): Fix the number of
14840         generated stmts for SLP.
14841         (new_stmt_vec_info): Initialize the new field.
14842         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
14843         statements marked as unvectorizable.
14844
14845 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
14846
14847         * c-common.c (flag_isoc1x): New.
14848         (flag_isoc99): Update comment.
14849         * c-common.h (flag_isoc1x): New.
14850         (flag_isoc99): Update comment.
14851         * c-cppbuiltin.c (builtin_define_float_constants): Also define
14852         __<type>_DECIMAL_DIG__.
14853         * c-opts.c (set_std_c1x): New.
14854         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
14855         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
14856         * c.opt (-std=c1x, -std=gnu1x): New options.
14857         * doc/cpp.texi: Mention -std=c1x.
14858         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
14859         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
14860         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
14861         * doc/standards.texi: Mention C1X.
14862         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
14863         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
14864         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
14865         Define for C1X.
14866
14867 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
14868
14869         * config/i386/gmon-sol2.c (_mcleanup): Change format string
14870         placeholder from 0x%x to %#x.
14871         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14872         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14873         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14874         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14875         * config/i386/i386.c (ix86_target_string): Ditto.
14876         (output_pic_addr_const): Ditto.
14877         (print_operand): Ditto.
14878
14879 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
14880
14881         * combine.c (find_split_point): Add third argument.  Use it
14882         to find nested multiply-accumulate instructions.  Adjust calls.
14883         (try_combine): Adjust call to find_split_point.
14884
14885 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
14886
14887         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
14888
14889 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
14890
14891         PR tree-optimization/41442
14892         * fold-const.c (merge_truthop_with_opposite_arm): New function.
14893         (fold_binary_loc): Call it.
14894
14895 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14896
14897         * toplev.c (general_init): Set default for fdiagnostics-show-option.
14898         * opts.c (common_handle_option): Allow disabling it.
14899         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
14900
14901 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
14902
14903         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
14904         between modes if both types are integral.
14905
14906 2010-04-23  Richard Guenther  <rguenther@suse.de>
14907
14908         PR tree-optimization/43572
14909         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
14910
14911 2010-04-23  Richard Guenther  <rguenther@suse.de>
14912
14913         PR lto/43455
14914         * tree-inline.c (tree_can_inline_p): Also check compatibility
14915         of return types.
14916
14917 2010-04-23  Martin Jambor  <mjambor@suse.cz>
14918
14919         PR tree-optimization/43846
14920         * tree-sra.c (struct access): New flag grp_assignment_read.
14921         (build_accesses_from_assign): Set grp_assignment_read.
14922         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
14923         (enum mark_read_status): New type.
14924         (analyze_access_subtree): Propagate grp_assignment_read, create
14925         accesses also if both direct_read and root->grp_assignment_read.
14926
14927 2010-04-23  Martin Jambor  <mjambor@suse.cz>
14928
14929         PR middle-end/43835
14930         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
14931         function does not have type attributes.
14932
14933 2010-04-23  Richard Guenther  <rguenther@suse.de>
14934
14935         PR lto/42653
14936         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
14937         of FUNCTION_DECLs.
14938
14939 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14940
14941         * sese.h (create_if_region_on_edge): Remove.
14942
14943         * sese.c (create_if_region_on_edge): Make static.
14944
14945         * tree-inline.c: Do not include ggc.h.
14946
14947         * expr.c: Do not include ggc.h.
14948
14949         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
14950         dependencies.
14951
14952 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14953
14954         PR target/43744
14955         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14956         in the middle of insns for casesi_worker_2.
14957
14958 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
14959
14960         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
14961
14962 2010-04-22  Ira Rosen  <irar@il.ibm.com>
14963
14964         PR tree-optimization/43842
14965         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
14966         loop unrolling in update of exit phis. Fix comment.
14967         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
14968         least two reduction statements in the loop before starting SLP
14969         analysis.
14970
14971 2010-04-22  Nick Clifton  <nickc@redhat.com>
14972
14973         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
14974
14975 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
14976
14977         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
14978         to simplify a + ~a.
14979
14980 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14981
14982         * tree-parloops.c (loop_parallel_p): New argument
14983         parloop_obstack.  Pass it down.
14984         (parallelize_loops): New variable parloop_obstack.  Initialize it,
14985         pass it down, free it.
14986
14987         * tree-loop-linear.c (linear_transform_loops): Pass down
14988         lambda_obstack.
14989
14990         * tree-data-ref.h (lambda_compute_access_matrices): New argument
14991         of type struct obstack *.
14992
14993         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
14994         scratch_obstack.  Initialize it, pass down, free it.
14995
14996         * lambda.h (lambda_loop_new): Remove.
14997         (lambda_matrix_new, lambda_matrix_inverse)
14998         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
14999         argument of type struct obstack *.
15000
15001         * lambda-trans.c (lambda_trans_matrix_new): New argument
15002         lambda_obstack.  Pass it down, use obstack allocation for ret.
15003         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
15004         it down.
15005
15006         * lambda-mat.c (lambda_matrix_get_column)
15007         (lambda_matrix_project_to_null): Remove.
15008         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
15009         allocation for mat.
15010         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
15011         lambda_obstack.
15012
15013         * lambda-code.c (lambda_loop_new): New function.
15014         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
15015         (lambda_compute_auxillary_space, lambda_compute_target_space)
15016         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
15017         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
15018         (build_access_matrix): New argument lambda_obstack.  Use obstack
15019         allocation for am.
15020         (lambda_compute_step_signs, lambda_compute_access_matrices): New
15021         argument lambda_obstack.  Pass it down.
15022
15023 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15024
15025         * optabs.h (expand_widening_mult): Declare.
15026
15027 2010-04-22  Richard Guenther  <rguenther@suse.de>
15028
15029         PR tree-optimization/43845
15030         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
15031         lookup the CALL_EXPR function and arguments.
15032
15033 2010-04-22  Nick Clifton  <nickc@redhat.com>
15034
15035         * config/stormy16/stormy16.c
15036         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
15037         * config/stormy16/stormy16.h: Tidy up formatting.
15038         (DONT_USE_BUILTIN_SETJMP): Remove definition.
15039         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
15040         (ineqbranchsi): Delete pattern.
15041         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
15042         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
15043         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
15044         stormy16-lib2-ucmpsi2.c.
15045
15046 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15047
15048         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
15049         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
15050         extra set merge_set_noclobber, and use it to relax the final test
15051         slightly.
15052         * df.h (df_simulate_find_noclobber_defs): Declare.
15053         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
15054         conditional defs.
15055         (df_simulate_find_noclobber_defs): New function.
15056
15057 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
15058
15059         * config/i386/i386.md: Use {} around multi-line preparation statements.
15060
15061 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15062
15063         * c-tree.h (push_init_level, pop_init_level, set_init_index)
15064         (process_init_element): New argument of type struct obstack *.
15065
15066         * c-typeck.c (push_init_level, pop_init_level, set_designator)
15067         (set_init_index, set_init_label, set_nonincremental_init)
15068         (set_nonincremental_init_from_string, find_init_member)
15069         (output_init_element, output_pending_init_elements)
15070         (process_init_element): New argument braced_init_obstack.  Pass it
15071         down.
15072         (push_range_stack, add_pending_init): New argument
15073         braced_init_obstack.  Use obstack allocation.
15074
15075         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
15076         braced_init_obstack.  Pass it down.
15077         (c_parser_braced_init): New variables ret, braced_init_obstack.
15078         Initialize obstack, pass it down and finally free it.
15079
15080 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15081
15082         PR middle-end/29274
15083         * tree-pass.h (pass_optimize_widening_mul): Declare.
15084         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
15085         gate_optimize_widening_mul): New static functions.
15086         (pass_optimize_widening_mul): New.
15087         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
15088         <case MULT_EXPR>: Remove support for widening multiplies.
15089         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
15090         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
15091         simplify_gen_unary rather than directly building extensions.
15092         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
15093         WIDEN_MULT_EXPR.
15094         * expmed.c (expand_widening_mult): New function.
15095         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
15096
15097 2010-04-21  Jan Hubicka  <jh@suse.cz>
15098
15099         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
15100         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
15101         * lto-wpa-fixup.c: Remove.
15102         * Makefile.in (lto-wpa-fixup.o): Remove.
15103         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
15104         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
15105         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
15106
15107 2010-04-21  Jan Hubicka  <jh@suse.cz>
15108
15109         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
15110         add write_optimization_summary, read_optimization_summary.
15111         (ipa_write_summaries_of_cgraph_node_set): Remove.
15112         (ipa_write_optimization_summaries): Declare.
15113         (ipa_read_optimization_summaries): Declare.
15114         * ipa-cp.c (pass_ipa_cp): Update.
15115         * ipa-reference.c (pass_ipa_reference): Update.
15116         * ipa-pure-const.c (pass_ipa_pure_const): Update.
15117         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
15118         Update.
15119         * ipa-inline.c (pass_ipa_inline): Update.
15120         * ipa.c (pass_ipa_whole_program): Update.
15121         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
15122         * passes.c (ipa_write_summaries_1): Do not test wpa.
15123         (ipa_write_optimization_summaries_1): New.
15124         (ipa_write_optimization_summaries): New.
15125         (ipa_read_summaries): Do not test ltrans.
15126         (ipa_read_optimization_summaries_1): New.
15127         (ipa_read_optimization_summaries): New.
15128
15129 2010-04-21  Jan Hubicka  <jh@suse.cz>
15130
15131         * lto-cgraph.c (lto_output_node): Do not output comdat groups
15132         for boundary nodes.
15133         (output_cgraph): Do not arrange comdat groups for boundary nodes.
15134
15135 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15136
15137         PR debug/40040
15138         * dwarf2out.c (add_name_and_src_coords_attributes): Add
15139         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
15140
15141 2010-04-21  Jan Hubicka  <jh@suse.cz>
15142
15143         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
15144
15145 2010-04-21  Jan Hubicka  <jh@suse.cz>
15146
15147         * varpool.c (decide_is_variable_needed): Variable is always needed
15148         during ltrans.
15149
15150 2010-04-21  Jan Hubicka  <jh@suse.cz>
15151
15152         * opts.c (decode_options): Enable pure-const pass for whopr.
15153
15154 2010-04-21  Jan Hubicka  <jh@suse.cz>
15155
15156         * cgraph.c (dump_cgraph_node): Dump also assembler name.
15157         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
15158         at WPA dumping.
15159         (cgraph_decide_inlining): Do not expect callee to be removed in all
15160         cases.
15161
15162 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
15163
15164         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
15165
15166 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
15167
15168         * config/i386/i386.md (x86_shrd): Add athlon_decode and
15169         amdfam10_decode attributes.
15170
15171 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15172
15173         PR middle-end/43570
15174         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
15175         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
15176         (lower_copyprivate_clauses): Use private var in outer
15177         context instead of original var.  Make sure the types
15178         are correct for VLAs.
15179
15180 2010-04-21  Richard Guenther  <rguenther@suse.de>
15181
15182         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
15183         to non-pointer objects.
15184
15185 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15186
15187         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
15188         last chain entry if it starts with the still current label.
15189         (add_location_or_const_value_attribute): Check that
15190         loc_list->first->next is NULL instead of comparing ->first with ->last.
15191         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
15192         to add_var_loc_to_decl.
15193
15194         * dwarf2out.c (output_call_frame_info): For dw_cie_version
15195         >= 4 add also address size and segment size fields into CIE header.
15196
15197         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
15198         long as address size is the same as sizeof (void *) and
15199         segment size is 0.
15200         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
15201         address size or segment size is unexpected, return DW_EH_PE_omit.
15202         (classify_object_over_fdes): If get_cie_encoding returned
15203         DW_EH_PE_omit, return -1.
15204         (init_object): If classify_object_over_fdes returned -1,
15205         pretend there were no FDEs at all.
15206
15207 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
15208
15209         * config/i386/i386.md (bswap<mode>2): Macroize expander from
15210         bswap{si,di}2 using SWI48 mode iterator.
15211         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
15212         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
15213         set modrm attribute of bswap insn to 0 and remove length attribute.
15214         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
15215         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
15216         set mode attribute to <MODE> and remove length attribute.
15217
15218 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
15219
15220         PR rtl-optimization/43520
15221         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
15222         zero available registers.
15223
15224 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15225
15226         * builtins.c (fold_builtin_cproj): Fold more cases.
15227
15228 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15229
15230         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
15231         (fold_builtin_1): Fold builtin cproj.
15232         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
15233         Use ATTR_CONST_NOTHROW_LIST.
15234
15235 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
15236
15237         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
15238         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
15239         ffsi2_no_cmove for !TARGET_CMOVE.
15240         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
15241         (ffssi2): Remove expander.
15242         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
15243         mode iterator.
15244         (ctz<mode>2): Ditto from ctz{si,di}2.
15245         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
15246         mode iterator.
15247         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
15248         mode iterator.
15249
15250 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15251
15252         * dwarf2out.c (AT_linkage_name): Define.
15253         (clone_as_declaration): Handle DW_AT_linkage_name.
15254         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
15255         of DW_AT_MIPS_linkage_name.
15256         (move_linkage_attr): Likewise.
15257         (dwarf2out_finish): Likewise.
15258
15259 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
15260
15261         PR middle-end/41952
15262         * fold-const.c (fold_comparison): New folding rule.
15263
15264 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
15265
15266         * double-int.h (double_int_setbit): Declare.
15267         * double-int.c (double_int_setbit): New function.
15268         * rtl.h (immed_double_int_const): Declare.
15269         * emit-rtl.c (immed_double_int_const): New function.
15270         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
15271         and immed_double_int_const functions.
15272         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
15273         expand_copysign_bit): (Ditto.).
15274         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
15275         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
15276         * dojump.c (prefer_and_bit_test): (Ditto.).
15277         * expr.c (convert_modes, reduce_to_bit_field_precision,
15278         const_vector_from_tree): (Ditto.).
15279         * expmed.c (mask_rtx, lshift_value): (Ditto.).
15280
15281 2010-04-20  Jan Hubicka  <jh@suse.cz>
15282
15283         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
15284         (dump_cgraph_node): Dump new flags.
15285         * cgraph.h (struct cgraph_node): Add flags
15286         reachable_from_other_partition and in_other_partition.
15287         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
15288         other partition can not be removed.
15289         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
15290         the other partition must be output; silence sanity checking on
15291         leaking functions bodies from other paritition.
15292         * lto-cgraph.c (reachable_from_other_partition_p): New function.
15293         (lto_output_node): Output new flags; do not sanity check that inline
15294         clones are output; drop lto_forced_extern_inline_p code; do not mock
15295         visibility flags at partition boundaries.
15296         (add_node_to): New function.
15297         (output_cgraph): Use it to sort functions so masters appear before
15298         clones.
15299         (input_overwrite_node): Input new flags.
15300         * passes.c (ipa_write_summaries): Do not call
15301         lto_new_extern_inline_states.
15302         * lto-section-out.c (forced_extern_inline,
15303         lto_new_extern_inline_states lto_delete_extern_inline_states,
15304         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
15305         * lto-streamer.h (lto_new_extern_inline_states,
15306         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
15307         lto_forced_extern_inline_p): Kill.
15308
15309 2010-04-20  Richard Guenther  <rguenther@suse.de>
15310
15311         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
15312         from vars that can have pointers.
15313         (process_constraint): Dump useless constraints.
15314
15315 2010-04-20  Richard Guenther  <rguenther@suse.de>
15316
15317         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
15318         (dump_sa_points_to_info): Remove asserts.
15319         (init_base_vars): nothing_id isn't an escape point nor does it
15320         have pointers.
15321
15322 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15323
15324         * tree.h (TYPE_REF_IS_RVALUE): Define.
15325         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
15326         should_move_die_to_comdat, prune_unused_types_walk): Handle
15327         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
15328         (modified_type_die, gen_reference_type_die): Emit
15329         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
15330         if TYPE_REF_IS_RVALUE and -gdwarf-4.
15331
15332 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15333
15334         PR target/43635
15335         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
15336         calls for -fpic -m31 if they have been sibcall optimized.
15337
15338 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
15339
15340         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
15341         ar.lc fixed and call-used.
15342
15343         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
15344
15345 2010-04-19  Jan Hubicka  <jh@suse.cz>
15346
15347         * opts.c (decode_options): Disable whpr incompatible passes.
15348         * lto/lto.c (lto_1_to_1_map): Skip clones.
15349         (read_cgraph_and_symbols): Do not mark everything as needed.
15350         (do_whole_program_analysis): Do map only after optimizing;
15351         set proper cgraph_state; use passmanager.
15352
15353 2010-04-19  DJ Delorie  <dj@redhat.com>
15354
15355         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
15356         POINTER_PLUS_EXPR and fix them.
15357
15358 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
15359
15360         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
15361         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
15362         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
15363         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
15364         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
15365         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
15366         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
15367         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
15368         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
15369         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
15370         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
15371
15372 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15373
15374         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
15375         (check_cond_move_block): Likewise.
15376         (cond_move_process_if_block): Likewise.
15377         (noce_find_if_block): Improve formatting.
15378         (find_if_header): Pass 0 to memset and tweak conditions.
15379         (cond_exec_find_if_block): Fix long lines and tweak conditions.
15380
15381 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
15382
15383         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
15384         for -gdwarf-4.
15385
15386         PR middle-end/43337
15387         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
15388         with non-local decl doesn't need chain.
15389
15390 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
15391
15392         * ira-color.c (allocno_reload_assign): Avoid accumulating
15393         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
15394
15395 2010-04-19  Martin Jambor  <mjambor@suse.cz>
15396
15397         * gimple.h (create_tmp_reg): Declare.
15398         * gimplify.c (create_tmp_reg): New function.
15399         (gimplify_return_expr): Use create_tmp_reg.
15400         (gimplify_omp_atomic): Likewise.
15401         (gimple_regimplify_operands): Likewise.
15402         * tree-dfa.c (make_rename_temp): Likewise.
15403         * tree-predcom.c (predcom_tmp_var): Likewise.
15404         (reassociate_to_the_same_stmt): Likewise.
15405         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
15406         (get_replaced_param_substitute): Likewise.
15407         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15408         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
15409         * tree-ssa-pre.c (get_representative_for): Likewise.
15410         (create_expression_by_pieces): Likewise.
15411         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
15412         (create_tailcall_accumulator): Likewise.
15413
15414 2010-04-19  Martin Jambor  <mjambor@suse.cz>
15415
15416         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
15417         new_stmt.
15418         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
15419
15420 2010-04-19  Richard Guenther  <rguenther@suse.de>
15421
15422         PR tree-optimization/43796
15423         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
15424         from SCEV in the lattice.
15425         (vrp_visit_phi_node): Dump change.
15426
15427 2010-04-19  Richard Guenther  <rguenther@suse.de>
15428
15429         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
15430         * configure: Re-generated.
15431
15432 2010-04-19  Richard Guenther  <rguenther@suse.de>
15433
15434         PR tree-optimization/43783
15435         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
15436         constant ARRAY_REF operands two and three if possible.
15437
15438 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
15439
15440         PR target/43766
15441         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
15442
15443 2010-04-19  Jie Zhang  <jie@codesourcery.com>
15444
15445         PR target/43662
15446         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
15447
15448 2010-04-19  Ira Rosen  <irar@il.ibm.com>
15449
15450         PR tree-optimization/37027
15451         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
15452         and macro to access it.
15453         (vectorizable_reduction): Add argument.
15454         (vect_get_slp_defs): Likewise.
15455         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
15456         statements for possible use in SLP.
15457         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
15458         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
15459         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
15460         add new argument.
15461         (vectorizable_reduction): Likewise.
15462         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
15463         vect_get_slp_defs.
15464         (vectorizable_type_demotion, vectorizable_type_promotion,
15465         vectorizable_store): Likewise.
15466         (vect_analyze_stmt): Update call to vectorizable_reduction.
15467         (vect_transform_stmt): Likewise.
15468         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
15469         (vect_build_slp_tree): Fix indentation. Check that there are no loads
15470         from different interleaving chains in same node.
15471         (vect_slp_rearrange_stmts): New function.
15472         (vect_supported_load_permutation_p): Allow load permutations for
15473         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
15474         inside SLP nodes if necessary.
15475         (vect_analyze_slp_instance): Handle reductions.
15476         (vect_analyze_slp): Try to build SLP instances originating from groups
15477         of reductions.
15478         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
15479         (vect_get_constant_vectors): Create initial vectors for reductions
15480         according to reduction code. Add new argument.
15481         (vect_get_slp_defs): Add new argument, pass it to
15482         vect_get_constant_vectors.
15483         (vect_schedule_slp_instance): Remove SLP tree root statements.
15484
15485 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
15486
15487         * tree.h (ENUM_IS_SCOPED): Define.
15488         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
15489         for ENUM_IS_SCOPED enums.
15490
15491 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15492
15493         * fold-const.c (fold_comparison): Use ssizetype.
15494         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15495         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
15496         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
15497         * tree-object-size.c (compute_object_sizes): Use size_type_node.
15498
15499         * tree.h (initialize_sizetypes): Remove parameter.
15500         (build_common_tree_nodes): Remove second parameter.
15501         * stor-layout.c (initialize_sizetypes): Remove parameter.
15502         Always create an unsigned type.
15503         (set_sizetype): Assert that the passed type is unsigned and simplify.
15504         * tree.c (build_common_tree_nodes): Remove second parameter.
15505         Adjust call to initialize_sizetypes.
15506         * c-decl.c (c_init_decl_processing): Remove second argument in call to
15507         build_common_tree_nodes.
15508
15509 2010-04-18  Matthias Klose  <doko@ubuntu.com>
15510
15511         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
15512
15513 2010-04-18  Ira Rosen  <irar@il.ibm.com>
15514
15515         PR tree-optimization/43771
15516         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
15517         load permutation doesn't have gaps.
15518
15519 2010-04-18  Jan Hubicka  <jh@suse.cz>
15520
15521         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
15522         (sse_prologue_save_insn expander): Use new pattern.
15523         (sse_prologue_save_insn1): New pattern and splitter.
15524         (sse_prologue_save_insn): Update to deal also with 64bit aligned
15525         blocks.
15526         * i386.c (setup_incoming_varargs_64): Do not compute jump
15527         destination here.
15528         (ix86_gimplify_va_arg): Update alignment needed.
15529         (ix86_local_alignment): Do not align all local arrays to 128bit.
15530
15531 2010-04-17  Jan Hubicka  <jh@suse.cz>
15532
15533         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
15534
15535 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
15536
15537         * arm.md (negdi2): Remove redundant code to force values into a
15538         register.
15539
15540 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
15541
15542         * arm/bpabi.S: Add EABI alignment attributes to objects.
15543         * arm/bpabi-v6m.S: Likewise.
15544         * arm/crti.asm: Likewise.
15545         * arm/crtn.asm: Likewise.
15546         * arm/lib1funcs.asm: Likewise.
15547         * arm/libunwind.S: Likewise.
15548
15549 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
15550
15551         * arm-protos.h (tune_params): New structure.
15552         * arm.c (current_tune): New variable.
15553         (arm_constant_limit): Delete.
15554         (struct processors): Add pointer to the tune parameters.
15555         (arm_slowmul_tune): New tuning option.
15556         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
15557         (all_cores): Adjust to pick up the tuning model.
15558         (arm_constant_limit): New function.
15559         (arm_override_options): Select the appropriate tuning model.  Delete
15560         initialization of arm_const_limit.
15561         (arm_split_constant): Use the new constant-limit model.
15562         (arm_rtx_costs): Pick up the current tuning model.
15563         * arm.md (is_strongarm, is_xscale): Delete.
15564         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
15565         for Xscale variant architectures.
15566         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
15567
15568 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15569
15570         * config/arm/arm.c (arm_gen_constant): Remove unused variable
15571         can_shift.
15572         (arm_rtx_costs_1): Remove unused variable extra_cost.
15573         (arm_unwind_emit_set): Use variable offset.
15574         (thumb1_output_casesi): Remove unused variable flags.
15575
15576 2010-04-16  Jeff Law  <law@redhat.com>
15577
15578         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
15579         needing assignment rather than doing a two-phase assignment.  Remove
15580         unused variable 'm'.
15581
15582 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
15583
15584         PR bootstrap/43767
15585         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
15586
15587 2010-04-16  Doug Kwan  <dougkwan@google.com>
15588
15589         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
15590         (next_operand_entry_id): New static variable.
15591         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
15592         (add_to_ops_vec): Assigned unique ID to operand entry.
15593         (struct oecount_s): New field ID.
15594         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
15595         (undistribute_ops_list): Assign unique IDs to oecounts.
15596         (init_reassoc): reset next_operand_entry_id.
15597
15598 2010-04-16  Doug Kwan  <dougkwan@google.com>
15599
15600         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
15601         missing left parenthesis.
15602
15603 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
15604
15605         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
15606         *btdi_rex64 using SWI48 mode iterator.
15607         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
15608         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
15609         *jcc_btdi_mask_rex64.
15610
15611 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
15612
15613         * double-int.h (tree_to_double_int): Convert to macro.
15614         * double-int.c (tree_to_double_int): Remove.
15615
15616 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
15617
15618         PR debug/43762
15619         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
15620         with want_address 2 and in case a single element list might be
15621         possible, call it again with want_address 0.
15622
15623 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
15624
15625         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
15626         case 'W' print operands for HI mode.
15627         * config/h8300/h8300.h (Y0, Y2) : New constraints.
15628         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
15629         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
15630         * config/h8300/predicate.md (bit_register_indirect_operand): New.
15631
15632         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
15633
15634         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
15635         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
15636         #xx:3 and #xx:4 mode.
15637
15638         * config/h8300/h8300.md (inverted load with HImode dest): Add
15639         support for H8300SX.
15640
15641         * config/h8300/predicate.md (bit_operand): Allow immediate values that
15642         satisfy 'U' constraint.
15643
15644 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15645
15646         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
15647         * configure: Regenerate.
15648         * config.in: Regenerate.
15649         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
15650         works.
15651
15652 2010-04-16  Richard Guenther  <rguenther@suse.de>
15653
15654         * tree.h (struct tree_decl_minimal): Move pt_uid ...
15655         (struct tree_decl_common): ... here.
15656         (DECL_PT_UID): Adjust.
15657         (SET_DECL_PT_UID): Likewise.
15658         (DECL_PT_UID_SET_P): Likewise.
15659
15660 2010-04-16  Richard Guenther  <rguenther@suse.de>
15661
15662         PR tree-optimization/43572
15663         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
15664         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
15665         * tree-flow.h (is_call_clobbered): Remove.
15666         * tree-flow-inline.h (is_call_clobbered): Likewise.
15667         * tree-dfa.c (dump_variable): Do not dump call clobber state.
15668         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
15669         (execute_return_slot_opt): Adjust.
15670         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
15671         check for call clobbered vars here.
15672         (find_tail_calls): Move tailcall verification to the
15673         proper place.
15674
15675 2010-04-16  Diego Novillo  <dnovillo@google.com>
15676
15677         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
15678
15679 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
15680
15681         PR target/40603
15682         * config/arm/arm.md (cbranchqi4): New pattern.
15683         * config/arm/predicates.md (const0_operand,
15684         cbranchqi4_comparison_operator): New predicates.
15685
15686 2010-04-16  Richard Guenther  <rguenther@suse.de>
15687
15688         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
15689         (dump_gimple_stmt): Likewise.
15690
15691 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
15692
15693         * recog.h (struct recog_data): New field is_operator.
15694         (struct insn_operand_data): New field is_operator.
15695         * recog.c (extract_insn): Set recog_data.is_operator.
15696         * genoutput.c (output_operand_data): Emit code to set the
15697         is_operator field.
15698         * reload.c (find_reloads): Use it rather than testing for an
15699         empty constraint string.
15700
15701         PR target/41514
15702         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
15703         If the previous insn is a cbranchsi4_insn with the same arguments,
15704         omit the compare instruction.
15705
15706         * config/arm/arm.md (addsi3_cbranch): If destination is a high
15707         register, inputs must be low registers and we need a low register
15708         scratch.  Handle alternative 2 like alternative 3.
15709
15710 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
15711
15712         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
15713         don't call get_addr on both.  If one expression is a VALUE and
15714         the other a REG, check VALUE's locs if the REG isn't among them.
15715
15716 2010-04-16  Christian Bruel  <christian.bruel@st.com>
15717
15718         * config/sh/sh.h (sh_frame_pointer_required): New function.
15719         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
15720         (flag_omit_frame_pointer) Set.
15721         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
15722         (rounded_frame_size): Adjust size with outgoing_args_size.
15723         (sh_set_return_address): Must return from stack pointer.
15724         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
15725         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
15726         (ACCUMULATE_OUTGOING_ARGS): Define.
15727         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
15728         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
15729
15730 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
15731
15732         PR target/43471
15733         * config/sh/sh.c (sh_legitimize_reload_address): Use
15734         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
15735         Remove a unneeded check for offset_base.
15736
15737 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
15738
15739         * configure: Regenerated.
15740
15741 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15742
15743         * config/s390/s390.c (s390_call_save_register_used): Switch back
15744         to HARD_REGNO_NREGS.
15745
15746 2010-04-15  Richard Guenther  <rguenther@suse.de>
15747
15748         * alias.c (alias_set_subset_of): Handle alias-set zero
15749         child properly.
15750
15751 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
15752             Julian Brown  <julian@codesourcery.com>
15753
15754         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
15755         alternatives according to use of high and low regs.
15756         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15757         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
15758         optimizing for size on Thumb-2.
15759
15760 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
15761
15762         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
15763
15764 2010-04-15  Richard Guenther  <rguenther@suse.de>
15765
15766         * tree-ssa-structalias.c (struct variable_info): Add
15767         is_fn_info flag.
15768         (new_var_info): Initialize it.
15769         (dump_constraints): Support printing last added constraints.
15770         (debug_constraints): Adjust.
15771         (dump_constraint_graph): Likewise.
15772         (make_heapvar_for): Check for NULL cfun.
15773         (get_function_part_constraint): New function.
15774         (get_fi_for_callee): Likewise.
15775         (find_func_aliases): Properly implement IPA PTA constraints.
15776         (process_ipa_clobber): New function.
15777         (find_func_clobbers): Likewise.
15778         (insert_into_field_list_sorted): Remove.
15779         (create_function_info_for): Properly allocate vars for IPA mode.
15780         Do not use insert_into_field_list_sorted.
15781         (create_variable_info_for): Properly generate constraints for
15782         global vars in IPA mode.
15783         (dump_solution_for_var): Always dump the solution.
15784         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
15785         (find_what_var_points_to): Adjust.
15786         (pt_solution_set): Change.
15787         (pt_solution_ior_into): New function.
15788         (pt_solution_empty_p): Export.
15789         (pt_solution_includes_global): Adjust.
15790         (pt_solution_includes_1): Likewise.
15791         (pt_solutions_intersect_1): Likewise.
15792         (dump_sa_points_to_info): Check some invariants.
15793         (solve_constraints): Move constraint dumping ...
15794         (compute_points_to_sets): ... here.
15795         (ipa_pta_execute): ... and here.
15796         (compute_may_aliases): Do not re-compute points-to info
15797         locally if IPA info is available.
15798         (ipa_escaped_pt): New global var.
15799         (ipa_pta_execute): Properly implement IPA PTA.
15800         * tree-into-ssa.c (dump_decl_set): Support dumping
15801         decls not in referenced-vars.
15802         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
15803         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
15804         (dump_points_to_solution): Likewise.
15805         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
15806         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
15807         (remap_gimple_stmt): Reset call clobber/use information if necessary.
15808         (copy_decl_to_var): Copy DECL_PT_UID.
15809         (copy_result_decl_to_var): Likewise.
15810         * tree.c (make_node_stat): Initialize DECL_PT_UID.
15811         (copy_node_stat): Copy it.
15812         * tree.h (DECL_PT_UID): New macro.
15813         (SET_DECL_PT_UID): Likewise.
15814         (DECL_PT_UID_SET_P): Likewise.
15815         (struct tree_decl_minimal): Add pt_uid member.
15816         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
15817         (pt_solution_empty_p): Declare.
15818         (pt_solution_set): Adjust.
15819         (ipa_escaped_pt): Declare.
15820         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
15821         * gimple-pretty-print.c (pp_points_to_solution): New function.
15822         (dump_gimple_call): Dump call clobber/use information.
15823         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
15824         * tree-pass.h (TDF_ALIAS): New dump option.
15825         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
15826         * doc/invoke.texi (-fipa-pta): Update documentation.
15827
15828 2010-04-15  Richard Guenther  <rguenther@suse.de>
15829
15830         * Makefile.in (OBJS-common): Add gimple-fold.o.
15831         (gimple-fold.o): New rule.
15832         * tree.h (maybe_fold_offset_to_reference,
15833         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
15834         prototypes ...
15835         * gimple.h: ... here.
15836         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
15837         may_propagate_address_into_dereference): Move prototypes ...
15838         * gimple.h: ... here.
15839         * tree-ssa-ccp.c (get_symbol_constant_value,
15840         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
15841         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
15842         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
15843         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
15844         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
15845         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
15846         gimplify_and_update_call_from_tree): Move ...
15847         * gimple-fold.c: ... here.  New file.
15848         (ccp_fold_builtin): Rename to ...
15849         (gimple_fold_builtin): ... this.
15850         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
15851
15852 2010-04-15  Richard Guenther  <rguenther@suse.de>
15853
15854         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
15855         fit_double_type, force_fit_type_double, add_double_with_sign,
15856         neg_double, mul_double_with_sign, lshift_double, rshift_double,
15857         lrotate_double, rrotate_double, div_and_round_double): Move ...
15858         * double-int.c: ... here.
15859         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
15860         add_double, neg_double, mul_double_with_sign, mul_double,
15861         lshift_double, rshift_double, lrotate_double, rrotate_double,
15862         div_and_round_double): Move prototypes ...
15863         * double-int.h: ... here.
15864
15865 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
15866
15867         PR target/43742
15868         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
15869         matching constraints to ensure inputs match the output.
15870
15871 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
15872
15873         PR target/43742
15874         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
15875         in an input-only operand.
15876
15877 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
15878
15879         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
15880         (double_int_not, double_int_lshift, double_int_rshift): Declare.
15881         (double_int_negative_p): Convert to static inline function.
15882         * double-int.c (double_int_lshift, double_int_lshift): New functions.
15883         (double_int_negative_p): Remove.
15884         * tree.h (lshift_double, rshift_double):
15885         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
15886         * fold-const.c (fold_convert_const_int_from_real,
15887         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
15888         (lshift_double): Change type of arith argument to bool.
15889         (rshift_double): Change type of arith argument to bool. Correct
15890         comment.
15891         * expmed.c (mask_rtx, lshift_value): (Ditto.).
15892
15893 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
15894
15895         PR target/21803
15896         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
15897         at the start and end of the then/else blocks, and omit them from the
15898         conversion.
15899         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
15900         argument; all callers changed.  Pass zero to old_insns_match_p instead.
15901         (flow_find_head_matching_sequence): New function.
15902         (old_insns_match_p): Check REG_EH_REGION notes for calls.
15903         * basic-block.h (flow_find_cross_jump,
15904         flow_find_head_matching_sequence): Declare functions.
15905
15906 2010-04-14  Jason Merrill  <jason@redhat.com>
15907
15908         PR c++/36625
15909         * c-common.c (attribute_takes_identifier_p): New fn.
15910         * c-common.h: Declare it.
15911
15912 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15913
15914         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
15915         splitter condition.
15916         (*udivmod<mode>4): Ditto.
15917
15918 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15919
15920         * config/i386/i386.md (maxmin_int): Rename code attribute from
15921         maxminiprefix and update all users.
15922         (maxmin_float): Ditto from maxminfprefix.
15923         (logic): Ditto from logicprefix.
15924         (absneg_mnemonic): Ditto from absnegprefix.
15925         * config/i386/mmx.md: Update all users of maxminiprefix,
15926         maxminfprefix and logicprefix for rename.
15927         * config/i386/sse.md: Ditto.
15928         * config/i386/sync.md (sync_<code><mode>): Update for
15929         logicprefix rename.
15930
15931 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15932
15933         PR 42966
15934         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
15935         warnings converted to errors.
15936
15937 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15938
15939         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
15940         used insn_type variable.
15941         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
15942         to avoid set-but-not-used warning.
15943
15944 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15945
15946         * df-core.c (df_ref_debug): Change format string placeholder
15947         from 0x%x to %#x.
15948         * dwarf2asm.c (dw2_asm_output_data_raw,
15949         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
15950         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
15951         * dwarf2out.c (output_cfi, output_cfi_directive,
15952         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
15953         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
15954         Ditto.
15955         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
15956         * print-rtl.c (print_rtx): Ditto.
15957
15958 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15959
15960         PR middle-end/42694
15961         * builtins.c (expand_builtin_pow_root): New function to expand pow
15962         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
15963         series of sqrt and cbrt calls under -ffast-math.
15964         (expand_builtin_pow): Call it.
15965
15966 2010-04-14  Michael Matz  <matz@suse.de>
15967
15968         PR tree-optimization/42963
15969         * tree-cfg.c (touched_switch_bbs): New static variable.
15970         (group_case_labels_stmt): New function broken out from ...
15971         (group_case_labels): ... here, use the above.
15972         (start_recording_case_labels): Allocate touched_switch_bbs.
15973         (end_recording_case_labels): Deallocate it, call
15974         group_case_labels_stmt.
15975         (gimple_redirect_edge_and_branch): Remember index of affected BB.
15976
15977 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15978
15979         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
15980         from insn template.
15981
15982 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15983
15984         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
15985
15986 2010-04-13  Jan Hubicka  <jh@suse.cz>
15987
15988         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
15989         of optimized out static functions.
15990         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
15991         cost computation.  Also sanity check for overflows.
15992         (update_caller_keys): Update cgraph_edge_badness call; properly
15993         update fibheap and sanity check that it is up to date.
15994         (add_new_edges_to_heap): Update cgraph_edge_badness.
15995         (cgraph_decide_inlining_of_small_function): Likewise;
15996         add sanity checking that badness in heap is up to date;
15997         improve dumping of reason; Update badness of calls to the
15998         offline copy of function currently inlined; dump badness
15999         of functions not inlined because of unit growth limits.
16000
16001 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
16002
16003         PR middle-end/32628
16004         * c-common.c (pointer_int_sum): Disregard overflow that occured only
16005         because of sign-extension change when converting to sizetype here...
16006         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
16007
16008         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
16009         the folding to constants.  Remove redundant final conversion.
16010         (fold_binary) <associate>: Do not associate if the re-association of
16011         constants alone overflows.
16012         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
16013         to the end of the list.
16014         (multiple_of_p) <COND_EXPR>: New case.
16015
16016 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16017
16018         * opt-functions.awk (opt_sanitized_name): New.
16019         (opt_enum): New.
16020         * optc-gen.awk: Use it
16021         * opth-gen.awk: Use it.
16022
16023 2010-04-13  Martin Jambor  <mjambor@suse.cz>
16024
16025         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
16026         (sra_modify_assign): Delete stmts loading dead data even if racc has no
16027         children.  Call replace_uses_with_default_def_ssa_name to handle
16028         SSA_NAES on lhs.
16029
16030 2010-04-13  Michael Matz  <matz@suse.de>
16031
16032         PR middle-end/43730
16033         * builtins.c (expand_builtin_interclass_mathfn): Also create
16034         a register if the predicate doesn't match.
16035
16036 2010-04-13  Diego Novillo  <dnovillo@google.com>
16037
16038         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
16039         * c-pch.c: Include timevar.h.
16040         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
16041         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
16042         * ggc-common.c: Include timevar.h.
16043         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
16044         * timevar.def (TV_PCH_SAVE): Define.
16045         (TV_PCH_CPP_SAVE): Define.
16046         (TV_PCH_PTR_REALLOC): Define.
16047         (TV_PCH_PTR_SORT): Define.
16048         (TV_PCH_RESTORE): Define.
16049         (TV_PCH_CPP_RESTORE): Define.
16050
16051 2010-04-13  Michael Matz  <matz@suse.de>
16052
16053         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
16054         into MINUS_EXPRs.
16055         (can_reassociate_p): New function.
16056         (break_up_subtract_bb, reassociate_bb): Use it.
16057
16058 2010-04-13  Richard Guenther  <rguenther@suse.de>
16059
16060         PR bootstrap/43737
16061         * builtins.c (c_readstr): Fix assert.
16062
16063 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
16064
16065         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
16066         when generating cltd insn.
16067
16068         (*ashl<mode>3_1): Remove special handling for register operand 2.
16069         (*ashlsi3_1_zext): Ditto.
16070         (*ashlhi3_1): Ditto.
16071         (*ashlhi3_1_lea): Ditto.
16072         (*ashlqi3_1): Ditto.
16073         (*ashlqi3_1_lea): Ditto.
16074         (*<shiftrt_insn><mode>3_1): Ditto.
16075         (*<shiftrt_insn>si3_1_zext): Ditto.
16076         (*<shiftrt_insn>qi3_1_slp): Ditto.
16077         (*<rotate_insn><mode>3_1): Ditto.
16078         (*<rotate_insn>si3_1_zext): Ditto.
16079         (*<rotate_insn>qi3_1_slp): Ditto.
16080
16081 2010-04-13  Richard Guenther  <rguenther@suse.de>
16082
16083         * tree-ssa-structalias.c (callused_id): Remove.
16084         (call_stmt_vars): New.
16085         (get_call_vi): Likewise.
16086         (lookup_call_use_vi): Likewise.
16087         (lookup_call_clobber_vi): Likewise.
16088         (get_call_use_vi): Likewise.
16089         (get_call_clobber_vi): Likewise.
16090         (make_transitive_closure_constraints): Likewise.
16091         (handle_const_call): Adjust to do per-call call-used handling.
16092         (handle_pure_call): Likewise.
16093         (find_what_var_points_to): Remove general callused handling.
16094         (init_base_vars): Likewise.
16095         (init_alias_vars): Initialize call_stmt_vars.
16096         (compute_points_to_sets): Process call-used and call-clobbered
16097         vars for call statements.
16098         (delete_points_to_sets): Free call_stmt_vars.
16099
16100 2010-04-13  Richard Guenther  <rguenther@suse.de>
16101
16102         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16103         Only add RW dependence for dependence distance zero.
16104         Adjust maximal vectorization factor according to dependences.
16105         Move alignment handling ...
16106         (vect_find_same_alignment_drs): ... here.  New function.
16107         (vect_analyze_data_ref_dependences): Adjust.
16108         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
16109         (vect_analyze_data_refs): Adjust minimal vectorization factor
16110         according to data references.
16111         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
16112         dependences before determining the vectorization factor.
16113         Analyze alignment after determining the vectorization factor.
16114         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
16115         dependences before alignment.
16116         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
16117         Adjust prototype.
16118         (vect_analyze_data_refs): Likewise.
16119         (MAX_VECTORIZATION_FACTOR): New define.
16120
16121 2010-04-13  Duncan Sands  <baldrick@free.fr>
16122
16123         * except.h (lang_eh_type_covers): Remove.
16124         * except.c (lang_eh_type_covers): Likewise.
16125
16126 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16127             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16128
16129         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
16130         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
16131         UNITS_PER_LONG where it is ABI relevant.
16132         (s390_return_addr_rtx): Likewise.
16133         (s390_back_chain_rtx): Likewise.
16134         (s390_frame_area): Likewise.
16135         (s390_frame_info): Likewise.
16136         (s390_initial_elimination_offset): Likewise.
16137         (save_gprs): Likewise.
16138         (s390_emit_prologue): Likewise.
16139         (s390_emit_epilogue): Likewise.
16140         (s390_function_arg_advance): Likewise.
16141         (s390_function_arg): Likewise.
16142         (s390_va_start): Likewise.
16143         (s390_gimplify_va_arg): Likewise.
16144         (s390_function_profiler): Likewise.
16145         (s390_optimize_prologue): Likewise.
16146         (s390_rtx_costs): Likewise.
16147         (s390_secondary_reload): Likewise.
16148         (s390_promote_function_mode): Likewise.
16149         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
16150         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
16151         registers available.
16152         (s390_unwind_word_mode): New function.
16153         (s390_function_value): Split 64 bit values into register pair if
16154         used as return value.
16155         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
16156         function call parameters.  Handle parallels.
16157         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
16158         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
16159         (DWARF_CIE_DATA_ALIGNMENT): New macro.
16160         (s390_expand_setmem): Remove unused variable src_addr.
16161         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
16162         deal with 64 bit registers.
16163         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
16164         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
16165         (UNITS_PER_LONG): New macro.
16166         * libjava/include/s390-signal.h: Define extended ucontext
16167         structure containing the upper halfs of the 64 bit registers.
16168
16169 2010-04-13  Simon Baldwin  <simonb@google.com>
16170
16171         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
16172
16173 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
16174
16175         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
16176         rvalue on the RHS if the LHS is of a non-renamable type.
16177         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
16178
16179 2010-04-13  Matthias Klose  <doko@ubuntu.com>
16180
16181         * gcc.c (cc1_options): Handle -iplugindir before processing
16182         the cc1 spec. Only add -iplugindir once.
16183         (cpp_unique_options): Add -iplugindir option if -fplugin* options
16184         found.
16185         * common.opt (iplugindir): Remove `Separate' property, initialize.
16186         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
16187         option.
16188         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
16189         (distclean): Remove plugin dir.
16190         * doc/invoke.texi: Document -iplugindir.
16191
16192 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
16193
16194         * doc/plugins.texi (Loading Plugins): Document short
16195         -fplugin=foo option.
16196         (Plugin API): Mention default_plugin_dir_name function.
16197
16198         * gcc.c (find_file_spec_function): Add new declaration.
16199         (static_spec_func): Use it for "find-file".
16200         (find_file_spec_function): Add new function.
16201         (cc1_options): Add -iplugindir option if -fplugin* options found.
16202
16203         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
16204
16205         * plugin.c (add_new_plugin): Updated comment, and handle short
16206         plugin name.
16207         (default_plugin_dir_name): Added new function.
16208
16209         * common.opt (iplugindir): New option to set the plugin directory.
16210
16211 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
16212
16213         * config/i386/i386.md (any_rotate): New code iterator.
16214         (rotate_insn): New code attribute.
16215         (rotate): Ditto.
16216         (SWIM124): New mode iterator.
16217         (<rotate_insn>ti3): New expander.
16218         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
16219         any_rotate code iterator.
16220         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
16221         using any_rotate code iterator and SWIM124 mode iterator.
16222         (ix86_rotlti3): New insn_and_split pattern.
16223         (ix86_rotrti3): Ditto.
16224         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
16225         ix86_rotl{di,ti}3 patterns.
16226         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
16227         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
16228         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
16229         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
16230         code iterator and SWI mode iterator.
16231         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
16232         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
16233         code iterator.
16234         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
16235         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
16236         (bswap rotatert splitter): Add splitter.
16237         (bswap splitter): Macroize splitter using any_rotate code iterator.
16238         Add insn predicate to split only for TARGET_USE_XCHGB or when
16239         optimizing function for size.
16240
16241 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16242
16243         * config/pa/pa.c (emit_move_sequence): Remove use of
16244         deleted variable flag_argument_noalias.
16245
16246 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16247
16248         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
16249         configurations.
16250         Add to unsupported targets list.
16251         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
16252         sparc*-sun-solaris2.[567]* from target lists.
16253         * configure: Regenerate.
16254         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
16255         removal.
16256         Remove Solaris 7 patch references.
16257         (Specific, sparc-sun-solaris2.7): Removed.
16258         (sparc-sun-solaris2*): Update Solaris 7 example.
16259         (sparc64-*-solaris2*): Likewise.
16260
16261 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16262
16263         * config.build (alpha*-dec-osf4*): Remove.
16264         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
16265         of obsolete configurations.
16266         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
16267         support.
16268         * config/alpha/t-osf4: Renamed to ...
16269         * config/alpha/t-osf5: ... this.
16270         * config/alpha/osf.h: Renamed to ...
16271         * config/alpha/osf5.h: ... this.
16272         Merged old osf5.h contents.
16273         Update comments.
16274         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
16275         (EXTRA_SPECS): Removed.
16276         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
16277         reflect removal of Tru64 UNIX V4.0/V5.0 support.
16278         Document that.
16279
16280 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16281
16282         * doc/contrib.texi (Contributors, Rainer Orth): Update.
16283
16284 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
16285
16286         PR/43702
16287         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
16288         __thiscall convention.
16289
16290 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16291
16292         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
16293         orig_base.
16294         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
16295
16296 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16297
16298         * function.c (assign_parms_initialize_all): Add unused attribute
16299         to fntype.
16300
16301 2010-04-12  Richard Guenther  <rguenther@suse.de>
16302
16303         * gsstruct.def (GSS_CALL): New.
16304         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
16305         * gimple.h: Include tree-ssa-alias.h.
16306         (struct gimple_statement_call): New.
16307         (union gimple_statement_struct_d): Add gimple_call member.
16308         (gimple_call_reset_alias_info): Declare.
16309         (gimple_call_use_set): New function.
16310         (gimple_call_clobber_set): Likewise.
16311         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
16312         * gimple.c (gimple_call_reset_alias_info): New function.
16313         (gimple_build_call_1): Call it.
16314         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16315         * tree-inline.c (remap_gimple_stmt): Likewise.
16316         (expand_call_inline): Remove callused handling.
16317         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
16318         * tree-dfa.c (dump_variable): Likewise.
16319         * tree-parloops.c (parallelize_loops): Likewise.
16320         * tree-ssa.c (init_tree_ssa): Likewise.
16321         (delete_tree_ssa): Likewise.
16322         * tree-flow-inline.h (is_call_used): Remove.
16323         * tree-flow.h (struct gimple_df): Remove callused member.
16324         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
16325         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
16326         (ref_maybe_used_by_call_p_1): Simplify.
16327         (call_may_clobber_ref_p_1): Likewise.
16328         * tree-ssa-structalias.c (compute_points_to_sets): Set
16329         the call stmt used and clobbered sets.
16330         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
16331         (find_tail_calls): Verify the tail call.
16332
16333 2010-04-12  Richard Guenther  <rguenther@suse.de>
16334
16335         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
16336         single-iteration always-inline inlining.
16337         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
16338         (cgraph_decide_inlining): Do not handle always-inline specially.
16339         (try_inline): Remove always-inline cycle detection special case.
16340         Do not recurse on always-inlines.
16341         (cgraph_early_inlining): Do not iterate if not optimizing.
16342         (cgraph_gate_early_inlining): remove.
16343         (pass_early_inline): Run unconditionally.
16344         (gate_cgraph_decide_inlining): New function.
16345         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
16346         not inlining or optimizing.
16347         (cgraph_decide_inlining_of_small_functions): Also consider
16348         always-inline functions.
16349         (cgraph_default_inline_p): Return true for nodes which should
16350         disregard inline limits.
16351         (estimate_function_body_sizes): Assume zero size and time for
16352         nodes which are marked as disregarding inline limits.
16353         (cgraph_decide_recursive_inlining): Do not perform recursive
16354         inlining on always-inline nodes.
16355
16356 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
16357
16358         PR bootstrap/43699
16359         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
16360         for exprs satisfying handled_component_p.
16361
16362 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
16363
16364         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
16365         non-constant aggregate elements.
16366
16367         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
16368         is a real initialization.
16369
16370 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
16371
16372         PR c/36774
16373         * c-decl.c (start_function): Move forward check for nested function.
16374
16375 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16376
16377         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
16378         * config/sh/sh.c: Include reload.h.
16379         (sh_legitimize_reload_address): New.
16380         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
16381         sh_legitimize_reload_address.
16382
16383 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16384
16385         * config/sh/sh.md (*movqi_pop): New insn pattern.
16386         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
16387
16388 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16389
16390         * config/i386/i386.md (any_shiftrt): New code iterator.
16391         (shiftrt_insn): New code attribute.
16392         (shiftrt): Ditto.
16393         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
16394         using any_shiftrt code iterator.
16395         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
16396         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
16397         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
16398         pattern from corresponding peephole2 patterns.
16399         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
16400         using any_shiftrt code iterator.
16401         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
16402         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
16403         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
16404         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
16405         *{ashr,lshr}<mode>3_cmp_zext.
16406         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
16407
16408 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16409
16410         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
16411         scratch register.
16412         (*lshr<mode>3_cconly): Ditto.
16413
16414 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16415
16416         * config/i386/i386.md (lshr<mode>3): Macroize expander from
16417         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
16418         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
16419         pattern from *lshr{di,ti}3_1 and corresponding splitters using
16420         DWI mode iterator.
16421         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
16422         from corresponding peephole2 patterns.
16423         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
16424         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
16425         and *lshrdi3_1_rex64 using SWI mode iterator.
16426         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
16427         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
16428         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
16429         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
16430         and *lshrdi3_cmp_rex64 using SWI mode iterator.
16431         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
16432         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
16433         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
16434         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
16435         SWI mode iterator.
16436
16437 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
16438
16439         * config/i386/i386.md (ashr<mode>3): Macroize expander from
16440         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
16441         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
16442         pattern from *ashr{di,ti}3_1 and corresponding splitters using
16443         DWI mode iterator.
16444         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
16445         from corresponding peephole2 patterns.
16446         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
16447         (ashrsi3_cvt): Rename from ashrsi3_31.
16448         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
16449         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
16450         and x86_64_shift_adj_3 using SWI48 mode iterator.
16451         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
16452         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
16453         and *ashrdi3_1_rex64 using SWI mode iterator.
16454         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
16455         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
16456         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
16457         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
16458         and *ashrdi3_cmp_rex64 using SWI mode iterator.
16459         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
16460         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
16461         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
16462         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
16463         SWI mode iterator.
16464         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
16465         * config/i386/i386.c (ix86_split_ashr): Update for renamed
16466         x86_shift<mode>_adj_3 expanders.
16467
16468 2010-04-10  Wei Guozhi  <carrot@google.com>
16469
16470         PR target/42601
16471         * config/arm/arm.c (arm_pic_static_addr): New function.
16472         (legitimize_pic_address): Call arm_pic_static_addr when it detects
16473         a static symbol.
16474         (arm_output_addr_const_extra): Output expression for new pattern.
16475         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
16476
16477 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
16478
16479         * ira-costs.c (record_reg_classes): Ignore alternatives that are
16480         not enabled.
16481
16482         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
16483         * web.c: Include "insn-config.h" and "recog.h".
16484         (union_match_dups): New function.
16485         (web_main): Call it.
16486         (union_defs): Don't try to recognize match_dups.
16487
16488         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
16489         if doing so would replace the entire pattern.
16490
16491 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
16492
16493         PR target/43707
16494         PR target/43709
16495         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
16496         and splitter pattern.  Change splitter operand 1 predicate to
16497         nonmemory_operand.
16498
16499 2010-04-09  Martin Jambor  <mjambor@suse.cz>
16500
16501         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
16502         lattices are addresses of CONST_DECLs with the same initial value.
16503         (ipcp_print_all_lattices): Print values of CONST_DECLs.
16504         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
16505
16506 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
16507             Bernd Schmidt  <bernds@codesourcery.com>
16508
16509         * loop-invariant.c (replace_uses): New static function.
16510         (move_invariant_reg): Use it to ensure we can replace the uses.
16511
16512 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
16513
16514         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
16515         function template.
16516         (picochip_override_options): Enable section anchors only above -O1.
16517         (picochip_reorg): Fixed a couple of build warnings.
16518
16519 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16520
16521         * configure.ac (plugin -rdynamic test): Log result.
16522         * configure: Regenerate.
16523         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
16524         (RDYNAMIC_SPEC): Define.
16525         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
16526
16527 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16528
16529         * configure.ac: Determine Sun ld version numbers.
16530         (comdat_group): Restrict GNU ld version checks to gld.
16531         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
16532         (enable_comdat): Support --enable-comdat.
16533         * configure: Regenerate.
16534         * doc/install.texi (Configuration): Document --enable-comdat.
16535
16536 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16537
16538         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
16539         * config/sol2-gld.h: ... here.
16540         * config.gcc (sparc*-*-solaris2*): Reflect this.
16541         (i[34567]86-*-solaris2*): Use it.
16542
16543 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
16544
16545         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
16546         setup_clocks_p.
16547         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
16548
16549 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16550
16551         PR 42965
16552         * diagnostic.c (diagnostic_initialize): Initialize
16553         some_warnings_are_errors.
16554         (diagnostic_finish): New.
16555         (diagnostic_action_after_output): Call it before exiting.
16556         (diagnostic_report_diagnostic): Do not print message here. Set
16557         some_warnings_are_errors.
16558         * diagnostic.h (diagnostic_context): Delete
16559         issue_warnings_are_errors_message. Add some_warnings_are_errors.
16560         (diagnostic_finish): Declare.
16561         * toplev.c (toplev_main): Call it before exit.
16562
16563 2010-04-09  Jason Merrill  <jason@redhat.com>
16564
16565         PR c++/42623
16566         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
16567         for incomplete type.
16568
16569         PR c++/41788
16570         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
16571         based on a warning flag.
16572
16573 2010-04-09  Richard Guenther  <rguenther@suse.de>
16574
16575         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
16576
16577 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
16578
16579         PR bootstrap/43684
16580         * varasm.c (default_assemble_visibility): Wrap vars that are
16581         set, but unused, by targets without GAS.
16582         * config/rs6000/rs6000.c (paired_emit_vector_compare):
16583         Remove set, but unused, vars.
16584         (rs6000_legitimize_tls_address): Likewise.
16585         (altivec_expand_dst_builtin): Likewise.
16586         * config/darwin.c (machopic_classify_symbol): Likewise.
16587         (machopic_indirection_name): Likewise.
16588
16589 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
16590
16591         * config/i386/i386.md (DWI): New mode iterator.
16592         (S): New mode attribute.
16593         (shift_operand): Ditto.
16594         (shift_immediate_operand): Ditto.
16595         (ashl_input_operand): Ditto.
16596         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
16597         using SDWIM mode iterator.
16598         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
16599         pattern from *ashl{di,ti}3_1 and corresponding splitters using
16600         DWI mode iterator.
16601         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
16602         from corresponding peephole2 patterns.
16603         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
16604         and x86_64_shift_adj_1 using SWI48 mode iterator.
16605         (x86_shift<mode>_adj_2): Ditto.
16606         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
16607         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
16608         using SWI48 mode iterator.
16609         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
16610         *ashldi3_cmp_rex64 using SWI mode iterator.
16611         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
16612         *ashldi3_cconly_rex64 using SWI mode iterator.
16613         * config/i386/i386.c (ix86_split_ashl): Update for renamed
16614         x86_shift<mode>_adj_{1,2}.
16615         (ix86_split_ashr): Ditto.
16616         (ix86_split_lshr): Ditto.
16617
16618 2010-04-09  Richard Guenther  <rguenther@suse.de>
16619
16620         * target.h (builtin_conversion): Pass in input and output types.
16621         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
16622         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
16623         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
16624         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
16625
16626         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
16627         Handle AVX modes.
16628         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
16629
16630 2010-04-09  Richard Guenther  <rguenther@suse.de>
16631
16632         PR target/43152
16633         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
16634
16635 2010-04-09  Richard Guenther  <rguenther@suse.de>
16636
16637         * tree-vectorizer.h (struct _stmt_vec_info): Document
16638         that vectype is the type of the LHS.
16639         (supportable_widening_operation, supportable_narrowing_operation):
16640         Get both input and output vector types as arguments.
16641         (vect_is_simple_use_1): Declare.
16642         (get_same_sized_vectype): Likewise.
16643         * tree-vect-loop.c (vect_determine_vectorization_factor):
16644         Set STMT_VINFO_VECTYPE to the vector type of the def.
16645         (vectorizable_reduction): Adjust.
16646         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
16647         Adjust.  Specify the output vector type.
16648         (vect_pattern_recog_1): Adjust.
16649         * tree-vect-stmts.c (get_same_sized_vectype): New function.
16650         (vectorizable_call): Adjust.
16651         (vectorizable_conversion): Likewise.
16652         (vectorizable_operation): Likewise.
16653         (vectorizable_type_demotion): Likewise.
16654         (vectorizable_type_promotion): Likewise.
16655         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
16656         the def.
16657         (vect_is_simple_use_1): New function.
16658         (supportable_widening_operation): Get both input and output
16659         vector types.
16660         (supportable_narrowing_operation): Likewise.
16661         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
16662
16663 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
16664
16665         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
16666         __thiscall and _thiscall as predefined macros.
16667         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
16668         thiscall attribute handling.
16669         (ix86_comp_type_attributes): Likewise.
16670         (ix86_function_regparm): Likewise.
16671         (ix86_return_pops_args): Likewise.
16672         (init_cumulative_args): Likewise.
16673         (find_drap_reg): Likewise.
16674         (ix86_static_chain): Likewise.
16675         (x86_this_parameter): Likewise.
16676         (x86_output_mi_thunk): Likewise.
16677         (ix86_attribute_table): Add description for thiscall attribute.
16678         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
16679         * doc/extend.texi: Add documentation for thiscall.
16680
16681 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16682
16683         PR c++/28584
16684         * c.opt (Wint-to-pointer-cast): Available in C++.
16685         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
16686
16687 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
16688
16689         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
16690         * calls.c (expand_call): Pass the function type to aggregate_value_p.
16691         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
16692         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
16693         function type instead.  Reorder and simplify checks.
16694
16695         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
16696
16697 2010-04-08  Jing Yu  <jingyu@google.com>
16698             Zdenek Dvorak  <ook@ucw.cz>
16699
16700         PR tree-optimization/42720
16701         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
16702         loop unswitch conditions here from ...
16703         (tree_unswitch_single_loop): ... here.
16704
16705 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
16706
16707         * tree-if-conv.c: Fix comments and simplify logic.
16708
16709 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
16710
16711         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
16712         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
16713         (main_tree_if_conversion): Update call to tree_if_conversion.
16714
16715 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16716
16717         PR 42485
16718         * doc/invoke.texi (-b,-V): Delete.
16719         * doc/tm.texi: Do not mention -b.
16720         * gcc.c (display_help): Delete -b and -V.
16721         (process_command): Delete -b and -V.
16722         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
16723
16724 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
16725             Wolfgang Gellerich  <gellerich@de.ibm.com>
16726
16727         Implement target hook for loop unrolling
16728         * target.h (loop_unroll_adjust): Add a new target hook function.
16729         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
16730         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
16731         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
16732         (s390_loop_unroll_adjust): Implement the new target hook for s390.
16733         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
16734         target hook.
16735         (decide_unroll_stupid): Likewise.
16736
16737 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16738
16739         PR target/43643
16740         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
16741
16742 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16743
16744         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
16745         (Specific, *-*-solaris2*): Likewise.
16746         Don't prefer Sun as over GNU as.
16747
16748 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
16749
16750         * config/s390/s390.c (override_options): Adjust the z10 defaults
16751         for max-unroll-times, max-completely-peeled-insns
16752         and max-completely-peel-times.
16753
16754 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16755
16756         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
16757         instructions for z10.
16758         (s390_expand_setmem): Likewise.
16759         (s390_expand_cmpmem): Likewise.
16760
16761 2010-04-08  Richard Guenther  <rguenther@suse.de>
16762
16763         PR tree-optimization/43679
16764         * tree-ssa-pre.c (eliminate): Only propagate copies.
16765
16766 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
16767
16768         PR bootstrap/43681
16769         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
16770         set but not used variable warning.
16771
16772 2010-04-08  Wei Guozhi  <carrot@google.com>
16773
16774         PR target/41653
16775         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
16776         (arm_size_rtx_costs): Call the new function when optimized for size.
16777
16778 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
16779
16780         PR debug/43670
16781         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
16782         op0 is not a MEM, just return NULL instead of assertion
16783         failure.
16784         (discover_nonconstant_array_refs): Don't walk debug stmts.
16785
16786 2010-04-08  Doug Kwan  <dougkwan@google.com>
16787
16788         * configure.ac: Recognize gold and do not use its version number
16789         to test ld features.
16790         * configure: Regenerate.
16791
16792 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
16793
16794         PR middle-end/40815
16795         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
16796         (negate_value): Move code to push elements to broken_up_substracts ...
16797         (eliminate_plus_minus_pair): ... here.  Push operands that have no
16798         negative pair to plus_negates.
16799         (repropagate_negates, init_reassoc, fini_reassoc): Update.
16800
16801 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16802
16803         * doc/install.texi (Configuration): Move description of
16804         --enable-lto, --with-libelf*, --enable-gold from Java section to
16805         general section.
16806
16807         * doc/generic.texi (Working with declarations)
16808         (Function Properties, C and C++ Trees): Fix typos.
16809         * doc/sourcebuild.texi (Top Level): Likewise.
16810
16811 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
16812
16813         PR c/18624
16814         * tree.h (DECL_READ_P): Define.
16815         (struct tree_decl_common): Add decl_read_flag.
16816         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
16817         a set but not used warning.
16818         (merge_decls): Merge DECL_READ_P flag.
16819         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
16820         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
16821         * c-common.c (handle_used_attribute, handle_unused_attribute):
16822         Likewise.
16823         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
16824         New prototypes.
16825         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
16826         New functions.
16827         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
16828         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
16829         c_parser_binary_expression, c_parser_cast_expression,
16830         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
16831         Call default_function_array_read_conversion instead of
16832         default_function_array_conversion where needed.
16833         (c_parser_unary_expression, c_parser_conditional_expression,
16834         c_parser_postfix_expression_after_primary, c_parser_initelt):
16835         Likewise.  Call mark_exp_read where needed.
16836         (c_parser_statement_after_labels, c_parser_asm_operands,
16837         c_parser_typeof_specifier, c_parser_sizeof_expression,
16838         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
16839         where needed.
16840         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
16841         New.
16842         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
16843         (warn_unused_but_set_parameter): Default to warn_unused
16844         && extra_warnings.
16845         * doc/invoke.texi: Document -Wunused-but-set-variable and
16846         -Wunused-but-set-parameter.
16847
16848         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
16849         used count variable.
16850         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
16851         when operandN variables aren't used in the body of the expander
16852         or splitter.
16853         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
16854         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
16855         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
16856         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
16857         FOR_EACH_IMM_USE_ON_STMT): Likewise.
16858         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
16859         * tree.c (PROCESS_ARG): Likewise.
16860
16861 2010-04-07  Simon Baldwin  <simonb@google.com>
16862
16863         * diagnostic.h (diagnostic_override_option_index): New macro to
16864         set a diagnostic's option_index.
16865         * c-tree.h (c_cpp_error): Add warning reason argument.
16866         * opts.c (_warning_as_error_callback): New.
16867         (register_warning_as_error_callback): Store callback for
16868         warnings enabled via enable_warning_as_error.
16869         (enable_warning_as_error): Call callback, minor code tidy.
16870         * opts.h (register_warning_as_error_callback): Declare.
16871         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
16872         response to -Werror=.
16873         (c_common_init_options): Register warning_as_error_callback in opts.c.
16874         * common.opt: Add -Wno-cpp option.
16875         * c-common.c (struct reason_option_codes_t): Map cpp warning
16876         reason codes to gcc option indexes.
16877         * (c_option_controlling_cpp_error): New function, lookup the gcc
16878         option index for a cpp warning reason code.
16879         * (c_cpp_error): Add warning reason argument, call
16880         c_option_controlling_cpp_error for diagnostic_override_option_index.
16881         * doc/invoke.texi: Document -Wno-cpp.
16882
16883 2010-04-07  Richard Guenther  <rguenther@suse.de>
16884
16885         * ipa-reference.c (mark_load): Use get_base_address.
16886         (mark_store): Likewise.
16887
16888         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
16889         inserting GIMPLE_NOPs into the IL.
16890         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16891         Explicitly strip handled components and indirect references.
16892
16893         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
16894         folding address expressions.
16895         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
16896         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
16897         operand_equal_p to compare decls.
16898         (ptr_deref_may_alias_decl_p): Likewise.
16899         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
16900         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
16901         Handle reversed comparison ops.
16902         * tree-sra.c (asm_visit_addr): Use get_base_address.
16903         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
16904         * ipa-reference.c (mark_address): Use get_base_address.
16905
16906 2010-04-07  Richard Guenther  <rguenther@suse.de>
16907
16908         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
16909         Propagate constants everywhere.
16910
16911 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
16912
16913         PR debug/43516
16914         * tree.c (MAX_INT_CACHED_PREC): Define.
16915         (nonstandard_integer_type_cache): New array.
16916         (build_nonstandard_integer_type): Cache results for precision
16917         <= MAX_INT_CACHED_PREC.
16918
16919 2010-04-07  Richard Guenther  <rguenther@suse.de>
16920
16921         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
16922         -fargument-noalias-global, -fargument-noalias-anything): Remove.
16923         * common.opt: Likewise.
16924         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
16925         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
16926         (nonoverlapping_memrefs_p): Likewise.
16927         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16928         * opts.c (common_handle_option): Handle OPT_fargument_alias,
16929         OPT_fargument_noalias, OPT_fargument_noalias_anything and
16930         OPT_fargument_noalias_global for backward compatibility.
16931
16932 2010-04-07  Richard Guenther  <rguenther@suse.de>
16933
16934         PR tree-optimization/43270
16935         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
16936         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
16937         * tree-ssa-pre.c (phi_translate_1): Adjust.
16938         (fully_constant_expression): Split out vn_reference handling to ...
16939         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
16940         Fold reads from constant strings.
16941         (vn_reference_lookup): Handle fully constant references.
16942         (vn_reference_lookup_pieces): Likewise.
16943         * Makefile.in (expmed.o-warn): Add -Wno-error.
16944
16945 2010-04-07  Martin Jambor  <mjambor@suse.cz>
16946
16947         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
16948
16949 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
16950
16951         PR driver/41594
16952         * gcc.c: Add -static-libstdc++ to list of recognized options.
16953
16954 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16955
16956         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
16957
16958 2010-04-07  Richard Guenther  <rguenther@suse.de>
16959
16960         PR middle-end/42617
16961         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
16962         bases build simple mem attributes to retain points-to information.
16963
16964 2010-04-07  Richard Guenther  <rguenther@suse.de>
16965
16966         PR middle-end/42617
16967         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
16968         preserve points-to related information.
16969
16970 2010-04-07  Richard Guenther  <rguenther@suse.de>
16971
16972         PR middle-end/42617
16973         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
16974         discard plain indirect references.
16975         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
16976         * tree.c (tree_nop_conversion): Likewise.
16977
16978 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
16979
16980         PR debug/43628
16981         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
16982
16983 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
16984
16985         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
16986         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
16987
16988 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16989
16990         * tree-if-conv.c: Fix indentation and comments.
16991
16992 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16993
16994         * tree-if-conv.c: Sort static functions in topological order.
16995
16996 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16997
16998         * tree-if-conv.c: Fix indentation and comments.
16999
17000 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17001
17002         PR middle-end/43519
17003         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
17004         lang_hooks.types.type_for_size instead of
17005         build_nonstandard_integer_type.
17006         When converting an unsigned type to signed, double its precision.
17007         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
17008         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
17009         (graphite_create_new_loop_guard): When ub + 1 wraps around,
17010         use lb <= ub.
17011
17012 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17013
17014         PR middle-end/43519
17015         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
17016         POINTER_PLUS_EXPR for pointer types.
17017
17018 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17019
17020         PR middle-end/43519
17021         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
17022         * graphite-clast-to-gimple.c: Include langhooks.h.
17023         (max_signed_precision_type): New.
17024         (max_precision_type): Takes two types as arguments.
17025         (precision_for_value): New.
17026         (precision_for_interval): New.
17027         (gcc_type_for_interval): New.
17028         (gcc_type_for_value): New.
17029         (gcc_type_for_clast_term): New.
17030         (gcc_type_for_clast_red): New.
17031         (gcc_type_for_clast_bin): New.
17032         (gcc_type_for_clast_expr): Split up into several functions.
17033         (gcc_type_for_clast_eq): Rewritten.
17034         (compute_bounds_for_level): New.
17035         (compute_type_for_level_1): New.
17036         (compute_type_for_level): New.
17037         (gcc_type_for_cloog_iv): Removed.
17038         (gcc_type_for_iv_of_clast_loop): Rewritten.
17039         (graphite_create_new_loop): Compute the lower and upper bound types
17040         with gcc_type_for_clast_expr.
17041         (graphite_create_new_loop_guard): Same.
17042         (find_cloog_iv_in_expr): Removed.
17043         (compute_cloog_iv_types_1): Removed.
17044         (compute_cloog_iv_types): Removed.
17045         (gloog): Do not call compute_cloog_iv_types.
17046         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
17047         GBB_CLOOG_IV_TYPES.
17048         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
17049         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
17050         (GBB_CLOOG_IV_TYPES): Removed.
17051
17052 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17053
17054         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
17055         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
17056         (detect_commutative_reduction): Same.
17057
17058 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17059
17060         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
17061         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
17062         argument.
17063         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
17064         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
17065         (rewrite_commutative_reductions_out_of_ssa): Same.
17066         * passes.c (execute_function_todo): Call verify_ssa for every pass
17067         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
17068         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
17069         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
17070         with an extra argument.
17071         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
17072         verify_ssa only when the extra argument is true.
17073         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
17074         with an extra argument.
17075         (tree_transform_and_unroll_loop): Same.
17076
17077 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17078
17079         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
17080         for all the passes of the LNO having LOOP_CLOSED_SSA.
17081         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
17082         * tree-loop-distribution.c (pass_loop_distribution): Same.
17083         * tree-pass.h (TODO_verify_loops): Removed.
17084         * tree-ssa-loop.c (pass_tree_loop_init): Same.
17085         (pass_lim): Same.
17086         (pass_tree_unswitch): Same.
17087         (pass_predcom): Same.
17088         (pass_vectorize): Same.
17089         (pass_linear_transform): Same.
17090         (pass_graphite_transforms): Same.
17091         (pass_iv_canon): Same.
17092         (pass_complete_unroll): Same.
17093         (pass_complete_unrolli): Same.
17094         (pass_parallelize_loops): Same.
17095         (pass_loop_prefetch): Same.
17096         (pass_iv_optimize): Same.
17097
17098 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
17099
17100         PR middle-end/32824
17101         * passes.c (init_optimization_passes): Move pass_lim before
17102         pass_copy_prop and pass_dce_loop.
17103
17104 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
17105
17106         PR target/43667
17107         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
17108         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
17109         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
17110         MULTI_* defines for 4 argument vpermil2p* builtins.
17111
17112 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
17113
17114         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
17115         * config/i386/i386.c (x86_maybe_negate_const_int): New.
17116         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
17117         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
17118         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
17119         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
17120         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
17121         Use x86_maybe_negate_const_int to output insn mnemonic.
17122         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
17123         check from instruction predicate.  Update comments.
17124         * config/i386/sync.md (sync_add<mode>): Use
17125         x86_maybe_negate_const_int to output insn mnemonic.
17126
17127 2010-04-06  Jan Hubicka  <jh@suse.cz>
17128
17129         PR tree-optimization/42906
17130         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
17131         IGNORE_SELF argument.  Set visited_control_parents for fully
17132         processed BBs.
17133         (find_obviously_necessary_stmts): Update call of
17134         mark_control_dependent_edges_necessary.
17135         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
17136
17137 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
17138
17139         * config/i386/i386.md: Remove comment about 'e' and 'E'
17140         operand modifier.
17141
17142 2010-04-06  Richard Guenther  <rguenther@suse.de>
17143
17144         PR tree-optimization/43627
17145         * tree-vrp.c (extract_range_from_unary_expr): Widenings
17146         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
17147         not varying.
17148
17149 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
17150
17151         * BASE-VER: Change to 4.6.0.
17152
17153         PR target/43638
17154         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
17155         handling.
17156
17157 2010-04-06  Richard Guenther  <rguenther@suse.de>
17158
17159         PR middle-end/43661
17160         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
17161
17162 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17163
17164         * doc/invoke.texi (Optimize Options): Document that LTO
17165         won't remove object access purely due to incompatible
17166         declarations.
17167
17168 2010-04-04  Matthias Klose  <doko@ubuntu.com>
17169
17170         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
17171         Initialize variable.
17172
17173 2010-04-03  Richard Guenther  <rguenther@suse.de>
17174
17175         PR middle-end/42509
17176         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
17177         require a non-NULL MEM_OFFSET.
17178
17179 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
17180
17181         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
17182         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
17183         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
17184         config/alpha/predicates.md, config/arm/arm.md,
17185         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
17186         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
17187         config/darwin9.h, config/darwin.c, config/darwin.h,
17188         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
17189         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
17190         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
17191         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
17192         config/mips/mips.md, config/mn10300/mn10300.c,
17193         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
17194         config/rs6000/aix.h, config/rs6000/dfp.md,
17195         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
17196         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
17197         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
17198         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
17199         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
17200         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
17201         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
17202         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
17203         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
17204         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
17205         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
17206         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
17207         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
17208         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
17209         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
17210         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
17211         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
17212         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
17213         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
17214         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
17215         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
17216         opt-functions.awk, opth-gen.awk, params.def, passes.c,
17217         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
17218         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
17219         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
17220         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
17221         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
17222         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17223         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
17224         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
17225         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
17226         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
17227         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
17228         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
17229         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
17230         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
17231
17232 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17233
17234         PR other/43620
17235         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
17236         * aclocal.m4: Regenerate.
17237
17238 2010-04-02  Richard Guenther  <rguenther@suse.de>
17239
17240         PR tree-optimization/43629
17241         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
17242         if we have seen a constant value.
17243
17244 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
17245
17246         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
17247
17248 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
17249
17250         PR target/43469
17251         * arm.c (legitimize_tls_address): Adjust call to
17252         gen_tls_load_dot_plus_four.
17253         (arm_note_pic_base): New function.
17254         (arm_cannot_copy_insn_p): Use it.
17255         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
17256         constraint.
17257
17258 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17259
17260         PR bootstrap/43531
17261
17262         Revert:
17263         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17264
17265         * Makefile.in ($(out_object_file)): Depend on
17266         gt-$(basename $(notdir $(out_file))).h.
17267
17268 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
17269
17270         * config.gcc (lm32-*-rtems*): Add t-lm32.
17271
17272 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
17273
17274         * config.gcc: Add lm32-*-rtems*.
17275         * config/lm32/rtems.h: New file.
17276
17277 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
17278
17279         PR target/42609
17280         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
17281
17282 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
17283
17284         * dwarf2out.c (output_compilation_unit_header): For
17285         -gdwarf-4 use version 4 instead of version 3.
17286         (output_line_info): For version 4 and above emit additional
17287         maximum ops per insn header field.
17288         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
17289
17290         * dwarf2out.c (is_c_family, is_java): Remove.
17291         (lower_bound_default): New function.
17292         (add_bound_info, gen_descr_array_type_die): Use it.
17293
17294 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
17295
17296         PR debug/43325
17297         * dwarf2out.c (gen_variable_die): Allow debug info for variable
17298         re-declaration when it happens in a function.
17299
17300 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
17301
17302         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
17303         (cgraph_remove_function_insertion_hook): Same.
17304         (cgraph_call_function_insertion_hooks): Same.
17305
17306 2010-04-01  Richard Guenther  <rguenther@suse.de>
17307
17308         PR middle-end/43614
17309         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
17310         and TREE_THIS_VOLATILE.
17311         (copy_ref_info): Likewise.
17312         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
17313         * tree.c (build6_stat): Ignore side-effects of all but arg5
17314         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
17315         TARGET_MEM_REF.
17316
17317 2010-04-01  Richard Guenther  <rguenther@suse.de>
17318
17319         PR tree-optimization/43607
17320         * ipa-type-escape.c (check_call): Do not access non-existing
17321         arguments.
17322
17323 2010-04-01  Richard Guenther  <rguenther@suse.de>
17324
17325         PR middle-end/43602
17326         Revert
17327         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
17328                     Jack Howarth  <howarth@bromo.med.uc.edu>
17329
17330         * tree-profile.c (tree_init_ic_make_global_vars): Make static
17331         variables TLS.
17332
17333 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17334
17335         * doc/install.texi (Prerequisites): Document libelf usability on
17336         IRIX 5/6 and Solaris 2.
17337         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
17338         Update GNU as, GNU ld requirements.
17339         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
17340         Document Sun Studio compiler download.
17341         Update and simplify as, ld recommendations.
17342         (Specific, *-*-solaris2.7): Note obsoletion, removal.
17343
17344 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17345
17346         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
17347         with_tune_32 to pentium4.
17348
17349 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
17350
17351         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
17352
17353 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17354
17355         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
17356         obsoletion, removal.
17357         Update IDO URL.
17358         Document GNU as requirement.
17359         Update configure requirements.
17360         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
17361         Recomment IRIX 6.5.18+.
17362         Document IDF/IDL requirement.
17363         Document GNU as requirement.
17364         Document GNU ld bootstrap failure.
17365         Remove freeware.sgi.com reference.
17366
17367 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17368
17369         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
17370         UNIX V4.0, V5.0 obsoletion, removal.
17371         Remove --with-gc=simple reference.
17372         Update VM requirements during bootstrap.
17373         Remove -oldas bootstrap description.
17374         Update binutils reference.
17375         Remove comparison failure note.
17376
17377 2010-03-31  Richard Guenther  <rguenther@suse.de>
17378             Zdenek Dvorak  <ook@ucw.cz>
17379             Sebastian Pop  <sebastian.pop@amd.com>
17380
17381         PR middle-end/43464
17382         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
17383         with multiple arguments.
17384         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
17385
17386 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17387
17388         * graphite-dependences.c (print_pddr): Call print_pdr with an
17389         extra argument.
17390         * graphite-poly.c (debug_pdr): Add an extra argument for the
17391         verbosity level.
17392         (print_pdr): Same.
17393         (print_pbb_domain): Same.
17394         (print_pbb): Same.
17395         (print_scop_context): Same.
17396         (print_scop): Same.
17397         (print_cloog): Same.
17398         (debug_pbb_domain): Same.
17399         (debug_pbb): Same.
17400         (print_pdrs): Same.
17401         (debug_pdrs): Same.
17402         (debug_scop_context): Same.
17403         (debug_scop): Same.
17404         (debug_cloog): Same.
17405         (print_scop_params): Same.
17406         (debug_scop_params): Same.
17407         (print_iteration_domain): Same.
17408         (print_iteration_domains): Same.
17409         (debug_iteration_domain): Same.
17410         (debug_iteration_domains): Same.
17411         (print_scattering_function): Same.
17412         (print_scattering_functions): Same.
17413         (debug_scattering_function): Same.
17414         (debug_scattering_functions): Same.
17415         * graphite-poly.h (debug_pdr): Update declaration.
17416         (print_pdr): Same.
17417         (print_pbb_domain): Same.
17418         (print_pbb): Same.
17419         (print_scop_context): Same.
17420         (print_scop): Same.
17421         (print_cloog): Same.
17422         (debug_pbb_domain): Same.
17423         (debug_pbb): Same.
17424         (print_pdrs): Same.
17425         (debug_pdrs): Same.
17426         (debug_scop_context): Same.
17427         (debug_scop): Same.
17428         (debug_cloog): Same.
17429         (print_scop_params): Same.
17430         (debug_scop_params): Same.
17431         (print_iteration_domain): Same.
17432         (print_iteration_domains): Same.
17433         (debug_iteration_domain): Same.
17434         (debug_iteration_domains): Same.
17435         (print_scattering_function): Same.
17436         (print_scattering_functions): Same.
17437         (debug_scattering_function): Same.
17438         (debug_scattering_functions): Same.
17439
17440 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17441
17442         * graphite-poly.c (print_scattering_function_1): New.
17443         (print_scattering_function): Call it.
17444         (print_scop_params): Remove spaces at the end of lines.
17445         (print_cloog): New.
17446         (debug_cloog): New.
17447         * graphite-poly.h (print_cloog): Declared.
17448         (debug_cloog): Declared.
17449
17450 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17451
17452         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
17453         in loop->header.
17454         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
17455         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
17456         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
17457         to switch between adding the IV bump in loop->latch or in loop->header.
17458
17459 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17460
17461         * graphite-poly.c (print_scattering_function): Pretty print following
17462         the scoplib format.
17463         (print_pdr): Same.
17464         (print_pbb_domain): Same.
17465         (dump_gbb_cases): Same.
17466         (dump_gbb_conditions): Same.
17467         (print_pdrs): Same.
17468         (print_pbb): Same.
17469         (print_scop_params): Same.
17470         (print_scop_context): Same.
17471         (print_scop): Same.
17472         (print_pbb_body): New.
17473         (lst_indent_to): New.
17474         (print_lst): Start new lines with a #.
17475         * graphite-poly.h (pbb_bb): New.
17476         (pbb_index): Use pbb_bb.
17477         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
17478         disjuncts.
17479         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
17480
17481 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
17482
17483         * dwarf2out.c (size_of_die): For -gdwarf-4 use
17484         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
17485         and 0 instead of 1 for dw_val_class_flag.
17486         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
17487         dw_val_class_range_list, dw_val_class_loc_list,
17488         dw_val_class_lineptr and dw_val_class_macptr, use
17489         DW_FORM_flag_present for dw_val_class_flag and
17490         DW_FORM_exprloc for dw_val_class_loc.
17491         (output_die): For -gdwarf-4 print dw_val_class_loc
17492         size as uleb128 instead of 1 or 2 bytes and don't print
17493         anything for dw_val_class_flag.
17494
17495         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
17496         instead of cselib_lookup following by tweaking locs->setting_insn.
17497
17498         PR bootstrap/43596
17499         * cselib.c (cselib_process_insn): Clear cselib_current_insn
17500         even before returning from label, setjmp call or volatile asm
17501         handling.
17502
17503 2010-03-31  Richard Guenther  <rguenther@suse.de>
17504
17505         PR middle-end/43600
17506         * cgraphunit.c (cgraph_output_in_order): Do not allocate
17507         temporary data on stack.
17508
17509 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17510
17511         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
17512         (PUSHSECTION_ASM_OP): Remove.
17513         (POPSECTION_ASM_OP): Remove.
17514         (PUSHSECTION_FORMAT): Remove.
17515         * config/sol2.h (PUSHSECTION_FORMAT): Define.
17516         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
17517         * config/sol2.c (solaris_output_init_fini): Use it.
17518
17519 2010-03-31  Jie Zhang  <jie@codesourcery.com>
17520
17521         PR 43574
17522         * opt-functions.awk (var_type_struct): Use signed char type
17523         for simple variables.
17524
17525 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17526
17527         * config/sol2.c: Include output.h.
17528         (solaris_assemble_visibility): New function.
17529         * config/t-sol2 (sol2.o): Add output.h dependency.
17530         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
17531         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
17532         Redefine.
17533
17534 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
17535
17536         PR target/43580
17537         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
17538         V2SImode or XFmode on PRE_DEC.
17539
17540         PR debug/43557
17541         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
17542         BLKmode.
17543
17544 2010-03-31  Jie Zhang  <jie@codesourcery.com>
17545
17546         PR 43562
17547         * reload.h (caller_save_initialized_p): Declare.
17548         * toplev.c (backend_init_target): Don't call
17549         init_caller_save but set caller_save_initialized_p to false.
17550         * caller-save.c (caller_save_initialized_p): Define.
17551         (init_caller_save): Check caller_save_initialized_p.
17552         * ira.c (ira): Call init_caller_save if flag_caller_saves.
17553
17554 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17555
17556         PR target/39048
17557         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
17558         and soft-fp/t-softfp to tmake_file.
17559         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
17560         (LIBGCC2_TF_CEXT): Define.
17561         (TF_SIZE): Define.
17562
17563 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
17564
17565         PR debug/42977
17566         * cselib.c (n_useless_values): Document handling of debug locs.
17567         (n_useless_debug_values, n_debug_values): New variables.
17568         (new_elt_loc_list): Don't add to debug values, keep count.
17569         (promote_debug_loc): New.
17570         (cselib_reset_table): Zero new variables.
17571         (entry_and_rtx_equal_p): Promote debug locs.
17572         (discard_useless_locs): Increment n_useless_debug_values for
17573         debug values.
17574         (remove_useless_values): Adjust n_useless_values and n_debug_values
17575         with n_useless_debug_values.
17576         (add_mem_for_addr): Promote debug locs.
17577         (cselib_lookup_mem): Likewise.
17578         (cselib_lookup_addr): Renamed to...
17579         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
17580         (cselib_log_lookup): ... this.  Turn into...
17581         (cselib_lookup_addr): ... new wrapper.
17582         (cselib_lookup_from_insn): New.
17583         (cselib_invalidate_regno): Increment n_useless_debug_values for
17584         debug values.
17585         (cselib_invalidate_mem): Likewise.
17586         (cselib_process_insn): Take n_deleted and n_debug_values into
17587         account to guard remove_useless_value call.
17588         (cselib_finish): Zero n_useless_debug_values.
17589         * cselib.h (cselib_lookup_from_insn): Declare.
17590         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
17591         (sched_analyze_2): Likewise.
17592
17593 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
17594
17595         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
17596         functions.
17597         (adjust_mems): Replace narrowing SUBREG of expression containing
17598         just PLUS, MINUS, MULT and ASHIFT of registers and constants
17599         with operations in the narrower mode.
17600
17601         PR debug/43593
17602         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
17603         regs_invalidated_by_call instead all call_used_reg_set registers.
17604
17605 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
17606
17607         PR middle-end/43430
17608         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
17609         pointer comparisons with types_compatible_p.
17610         * tree-vect-stmts.c (vectorizable_call): Same.
17611         (vectorizable_condition): Same.
17612
17613 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17614
17615         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
17616         stack check if the mask would be zero.
17617
17618 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
17619             Jack Howarth  <howarth@bromo.med.uc.edu>
17620
17621         * tree-profile.c (tree_init_ic_make_global_vars): Make static
17622         variables TLS.
17623
17624 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
17625
17626         PR other/25232
17627         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
17628         and __unordtf2.
17629         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
17630         Include ___unordxf2 and ___unordtf2.
17631         * config/i386/libgcc-glibc.ver: Do not define inheritance from
17632         GCC_4.4.0 here.
17633
17634 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
17635
17636         * config/lm32/t-lm32: New file.
17637         * config.gcc: Use the above file when targetting lm32.
17638
17639 2010-03-28  Duncan Sands  <baldrick@free.fr>
17640
17641         * Makefile.in (PLUGIN_HEADERS): Add except.h.
17642
17643 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
17644
17645         PR middle-end/43431
17646         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
17647         Improve vectorization cost model diagnostic.
17648
17649 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
17650
17651         PR middle-end/43436
17652         * tree-vect-data-refs.c (vect_analyze_data_refs): When
17653         compute_data_dependences_for_loop returns false, early exit
17654         and output an extra diagnostic for the failed data reference
17655         analysis.
17656
17657 2010-03-29  Richard Guenther  <rguenther@suse.de>
17658
17659         PR tree-optimization/43560
17660         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
17661         (can_sm_ref_p): Treat stores to readonly locations as trapping.
17662
17663 2010-03-29  Jie Zhang  <jie@codesourcery.com>
17664
17665         PR 43564
17666         * toplev.c (process_options): Set optimization_default_node
17667         and optimization_current_node.
17668         * opts.c (decode_options): Don't set optimization_default_node
17669         and optimization_current_node.
17670
17671 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
17672
17673         * config/rtems.h: Abandon -qrtems_debug.
17674
17675 2010-03-28  Jan Hubicka  <jh@suse.cz>
17676
17677         PR tree-optimization/43505
17678         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
17679         map should not be copied.
17680
17681 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17682
17683         PR middle-end/41674
17684         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
17685         cdtors, set DECL_PRESERVE_P.
17686         * ipa.c (cgraph_externally_visible_p): Return true if declaration
17687         should be preseved.
17688
17689 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
17690
17691         PR tree-optimization/43528
17692         * stor-layout.c (place_field): Check that constant fits into
17693         unsigned HWI when skipping calculation of MS bitfield layout.
17694
17695 2010-03-27  Jan Hubicka  <jh@suse.cz>
17696
17697         PR middle-end/43391
17698         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
17699         notice_global_symbol work.
17700
17701 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
17702
17703         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
17704         instead of dwarf2out_decl.
17705         (struct var_loc_node): Remove section_label field.
17706         (dwarf2out_function_decl): New function.
17707         (dwarf2out_var_location): Don't set section_label field.
17708         (dwarf2out_begin_function): Don't empty decl_loc_table here.
17709
17710 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17711
17712         PR tree-optimization/43544
17713         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17714         First argument for builtin vectorized function hook is now a
17715         tree to be able to distinguish between machine specific and
17716         standard builtins.
17717         * targhooks.c (default_builtin_vectorized_function): Ditto.
17718         * targhooks.h (default_builtin_vectorized_function): Ditto.
17719         * target.h (struct gcc_target): Ditto.
17720         * tree-vect-stmts.c (vectorizable_function): Ditto.
17721         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
17722         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
17723         Ditto.
17724
17725 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
17726
17727         PR c/43381
17728         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
17729         nested binding iff it is a FUNCTION_DECL.
17730         (store_parm_decls_newstyle): Pass nested=true to bind for
17731         FUNCTION_DECLs amongst parameters.
17732
17733 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
17734
17735         * var-tracking.c (vt_expand_loc_callback): Don't run
17736         cselib_expand_value_rtx_cb in dummy mode if
17737         cselib_dummy_expand_value_rtx_cb returned false.
17738
17739         * var-tracking.c (emit_note_insn_var_location): For one part
17740         notes with offset 0, don't add EXPR_LIST around the location.
17741         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
17742         add_location_or_const_value_attribute): Adjust for that change.
17743
17744         PR debug/43540
17745         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
17746         into first operand and location into second.
17747         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
17748         dw_cfi_oprnd_loc for DW_CFA_expression.
17749         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
17750         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
17751         assume first argument is regnum and second argument is location.
17752
17753 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
17754
17755         PR target/42113
17756         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
17757         of scratch register to DImode.  Split to DImode comparison operator.
17758         Use SImode subreg of scratch register in the multiplication.
17759         (*cmp_sadd_sidi): Ditto.
17760         (*cmp_ssub_si): Ditto.
17761         (*cmp_ssub_sidi): Ditto.
17762
17763 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
17764
17765         PR target/43524
17766         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
17767         Remove invalid assert and wrong comment.
17768
17769 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
17770
17771         PR debug/43516
17772         * flags.h (final_insns_dump_p): New extern.
17773         * final.c (final_insns_dump_p): New variable.
17774         (rest_of_clean_state): Set it before -fdump-final-insns=
17775         dumping, clear afterwards.
17776         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
17777         MEM_ALIAS_SET on MEMs.
17778
17779 2010-03-26  David S. Miller  <davem@davemloft.net>
17780
17781         * configure.ac: Fix sparc GOTDATA_OP bug check.
17782         * configure: Rebuild.
17783
17784 2010-03-26  Alan Modra  <amodra@gmail.com>
17785
17786         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
17787
17788 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17789
17790         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
17791         TLS_SECTION_ASM_FLAG.
17792
17793 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
17794
17795         PR bootstrap/43511
17796         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
17797         Clear first_function_block_is_cold.
17798
17799         PR c/43385
17800         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
17801         argument if the argument is truth_value_p.
17802
17803 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17804
17805         * config/rs6000/constraints.md: Update copyright year for my changes.
17806
17807         PR target/43484
17808         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
17809         used in reg+reg addressing, swap registers.
17810
17811 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
17812
17813         PR debug/43293
17814         * target.h (struct gcc_target): Add code_end hook.
17815         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
17816         if not yet defined.
17817         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
17818         * toplev.c (compile_file): Call targetm.asm_out.code_end
17819         hook before unwind info/debug info output.
17820         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
17821         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
17822         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
17823         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
17824         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
17825         * config/i386/i386.c (ix86_file_end): Renamed to...
17826         (ix86_code_end): ... this.  Make static.  Don't call
17827         file_end_indicate_exec_stack.  Emit unwind info using
17828         final_start_function/final_end_function.
17829         (darwin_x86_file_end): Remove.
17830         (TARGET_ASM_CODE_END): Define.
17831         * config/i386/i386.h (TARGET_ASM_FILE_END,
17832         NEED_INDICATE_EXEC_STACK): Don't define.
17833         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
17834         (TARGET_ASM_FILE_END): Define to darwin_file_end.
17835         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
17836         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
17837
17838         PR target/43498
17839         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
17840         at the beginning and final_end_function at the end.
17841         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17842
17843 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17844
17845         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
17846         and Sun as TLS syntax.
17847         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
17848         * configure: Regenerate.
17849         * config.in: Regenerate.
17850         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
17851         (default_elf_asm_named_section): Use it.
17852         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
17853         (i386_output_dwarf_dtprel): Likewise.
17854         (output_addr_const_extra): Likewise.
17855         (output_pic_addr_const): Lowercase @GOTTPOFF.
17856         (output_addr_const_extra): Likewise.
17857         (output_pic_addr_const): Lowercase @GOTNTPOFF.
17858         (output_addr_const_extra): Likewise.
17859         (output_pic_addr_const): Lowercase @INDNTPOFF.
17860         (output_addr_const_extra): Likewise.
17861         (output_pic_addr_const): Lowercase @NTPOFF.
17862         (output_addr_const_extra): Likewise.
17863         (output_pic_addr_const): Lowercase @TPOFF.
17864         (output_addr_const_extra): Likewise.
17865         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
17866         (*tls_global_dynamic_64): Likewise.
17867         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
17868         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
17869
17870         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
17871         (ASM_OUTPUT_TLS_COMMON): Use it.
17872         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
17873
17874         PR target/38118
17875         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
17876         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17877         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
17878         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
17879         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
17880         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
17881
17882 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17883
17884         * config/i386/i386.c (override_options): Don't accept
17885         -mtls-dialect=sun any longer.
17886         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
17887         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
17888         (*tls_local_dynamic_base_32_sun): Likewise.
17889         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
17890
17891 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
17892
17893         PR debug/43508
17894         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17895         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
17896
17897         PR debug/43479
17898         * ira.c (adjust_cleared_regs): New function.
17899         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
17900
17901         PR debug/19192
17902         PR debug/43479
17903         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
17904         from gimple_block.
17905         * expr.c (expand_expr_real): Restore previous
17906         curr_insn_source_location and curr_insn_block after
17907         expand_expr_real_1 call.
17908         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
17909         instead of expand_expr_real_1.
17910
17911 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
17912
17913         PR rtl-optimization/43413
17914         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
17915         hard regs too.
17916
17917 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
17918
17919         PR target/43348
17920         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
17921         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
17922
17923 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17924
17925         * config/i386/i386.c (ix86_target_string): Add -mfma.
17926         Fix a typo in comment.
17927
17928 2010-03-22  Mike Stump  <mikestump@comcast.net>
17929
17930         PR target/23071
17931         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
17932         Don't overly align based upon packed packed fields.
17933
17934 2010-03-22  Jason Merrill  <jason@redhat.com>
17935
17936         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
17937         Use () rather than [], and move before the element type.
17938
17939 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17940
17941         * doc/configfiles.texi (Configuration Files): Removed
17942         fixinc/Makefile*, intl/Makefile.*.
17943         * doc/makefile.texi: Fixed markup. Abstract from version
17944         control system used.
17945         (Makefile): Removed obsolete gcc/java/parse.y example.
17946         * doc/sourcebuild.texi: Likewise.
17947         (Top Level): Added config, gnattools, libdecnumber, libgcc,
17948         libgomp, libssp.  Removed fastjar.
17949         (Miscellaneous Docs): Clarify location.
17950         Added COPYING3, COPYING3.LIB.
17951         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
17952
17953 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17954
17955         PR target/38085
17956         * config/i386/i386.c (x86_function_profiler)
17957         [!NO_PROFILE_COUNTERS]: Fix typo.
17958         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
17959         instead of callq.
17960
17961 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
17962             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17963
17964         * doc/sourcebuild.texi (Test Directives): Split into six
17965         subsections, with most of the current text in new subsections
17966         Directives, Selectors, and Final Actions.
17967         (Directives): Split list of test directives into multiple
17968         subsubsections.
17969         (Selectors): Describe use and syntax of selectors.
17970         (Effective-Target Keywords): Describe all existing keywords.
17971         (Add Options): Describe features for dg-add-options.
17972         (Require Support): Describe variants of dg-require-support.
17973         (Final Actions): Describe commands to use in dg-final.
17974
17975 2010-03-22  Michael Matz  <matz@suse.de>
17976
17977         PR middle-end/43475
17978         * recog.c (validate_replace_rtx_group): Replace also in
17979         REG_EQUAL and REG_EQUIV notes.
17980
17981 2010-03-22  Richard Guenther  <rguenther@suse.de>
17982
17983         PR tree-optimization/43390
17984         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
17985         sure vector extracts are type correct.
17986
17987 2010-03-22  Richard Guenther  <rguenther@suse.de>
17988
17989         PR middle-end/40106
17990         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
17991         x * sqrt (x) even when optimizing for size if the target
17992         has native support for sqrt.
17993
17994 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17995
17996         * varasm.c (make_decl_rtl_for_debug): Also clear
17997         flag_mudflap for the duration of make_decl_rtl call.
17998
17999         PR debug/43443
18000         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
18001         locs from preserved VALUEs.
18002
18003 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18004
18005         PR middle-end/42718
18006         * pa.md (movmemsi): Set align to one if zero.
18007         (movmemdi): Likewise.
18008
18009 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
18010
18011         PR target/42321
18012         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
18013         with their corresponding prologue pushes.
18014
18015 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
18016
18017         PR target/43156
18018         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
18019         at the begining or end.
18020         (spu_expand_epilogue): Likewise.
18021
18022 2010-03-20  Richard Guenther  <rguenther@suse.de>
18023
18024         PR rtl-optimization/43438
18025         * combine.c (make_extraction): Properly zero-/sign-extend an
18026         extraction of the low part of a CONST_INT.  Also handle
18027         CONST_DOUBLE.
18028
18029 2010-03-19  Mike Stump  <mikestump@comcast.net>
18030
18031         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
18032         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
18033         (override_options): Use SUBTARGET32_DEFAULT_CPU.
18034
18035 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
18036
18037         PR c/43211
18038         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
18039         an error.
18040
18041 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
18042
18043         PR rtl-optimization/42258
18044         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
18045         use that may match DEF.
18046
18047         PR target/40697
18048         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
18049         the cost of loading the constant rather than assuming
18050         COSTS_N_INSNS (1).
18051         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
18052         outer code is AND, do the same tests as the andsi3 expander and
18053         return COSTS_N_INSNS (1) if and is cheap.
18054
18055         * optabs.c (avoid_expensive_constant): Fix formatting.
18056
18057 2010-03-19  Michael Matz  <matz@suse.de>
18058
18059         PR c++/43116
18060         * attribs.c (decl_attributes): When rebuilding a function pointer
18061         type use the same qualifiers as the original pointer type.
18062
18063 2010-03-19  Martin Jambor  <mjambor@suse.cz>
18064
18065         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
18066         and is_gimple_ip_invariant_address.
18067
18068 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18069
18070         Revert
18071         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18072
18073         * config/arm/arm.c (arm_override_options): Turn off
18074         flag_dwarf2_cfi_asm for AAPCS variants.
18075
18076 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18077
18078         PR target/43399
18079         * config/arm/arm.c (emit_multi_reg_push): Update comments.
18080         Use PRE_MODIFY instead of PRE_DEC.
18081         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
18082         (vfp_emit_fstmd): Likewise.
18083
18084 2010-03-19  Michael Matz  <matz@suse.de>
18085
18086         PR target/43305
18087         * builtins.c (expand_builtin_interclass_mathfn,
18088         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
18089         if that fails.
18090
18091 2010-03-19  Richard Guenther  <rguenther@suse.de>
18092
18093         PR tree-optimization/43415
18094         * tree-ssa-pre.c (phi_translate): Split out worker to ...
18095         (phi_translate_1): ... this.
18096         (phi_translate): Move all caching here.  Cache all NARY
18097         and REFERENCE translations.
18098
18099 2010-03-19  David S. Miller  <davem@davemloft.net>
18100
18101         With help from Eric Botcazou.
18102         * config/sparc/sparc.c: Include dwarf2out.h.
18103         (emit_pic_helper): Delete.
18104         (pic_helper_symbol_name): Delete.
18105         (pic_helper_emitted_p): Delete.
18106         (pic_helper_needed): New.
18107         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
18108         (get_pc_thunk_name): New.
18109         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
18110         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
18111         Set pic_helper_needed to true.  Don't call emit_pic_helper.
18112         (sparc_expand_prologue): Update load_pic_register call.
18113         (sparc_output_mi_thunk): Likewise.
18114         (sparc_file_end): Emit a hidden comdat symbol for the PIC
18115         thunk if possible.  Output CFI information as needed.
18116
18117 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18118             Jack Howarth  <howarth@bromo.med.uc.edu>
18119
18120         PR target/36399
18121         * config/i386/i386.h: Fix ABI on darwin x86-32.
18122
18123 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
18124
18125         * tree.h: Declare make_decl_rtl_for_debug.
18126         * varasm.c (make_decl_rtl_for_debug): New.
18127         * dwarf2out.c (rtl_for_decl_location): Call it.
18128         * cfgexpand.c (expand_debug_expr): Call it.
18129
18130 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
18131
18132         PR bootstrap/43399
18133         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
18134         mem_mode.
18135
18136         PR bootstrap/43403
18137         * var-tracking.c (vt_init_cfa_base): Do nothing if
18138         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
18139
18140 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
18141
18142         PR debug/42873
18143         * var-tracking.c (canonicalize_vars_star): New.
18144         (dataflow_post_merge_adjust): Use it.
18145
18146 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
18147
18148         PR debug/43058
18149         * var-tracking.c (non_suitable_const): New function.
18150         (add_uses): For DEBUG_INSNs with constants, don't record any
18151         value, instead just the constant value itself.
18152         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
18153         is not VAR_LOC_UNKNOWN_P, set var to the constant.
18154         (emit_notes_in_bb): Likewise.
18155         (emit_note_insn_var_location): For onepart variables if
18156         cur_loc is a VOIDmode constant, use DECL_MODE.
18157
18158 2010-03-18  Martin Jambor  <mjambor@suse.cz>
18159
18160         PR middle-end/42450
18161         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
18162         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
18163         all non-clones.  Moved call redirection...
18164         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
18165         (cgraph_materialize_all_clones): Dispose of all
18166         combined_args_to_skip bitmaps.
18167         (verify_cgraph_node): Do not check for edges pointing to wrong
18168         nodes in inline clones.
18169         * tree-inline.c (copy_bb): Call
18170         cgraph_redirect_edge_call_stmt_to_callee.
18171         * ipa.c (cgraph_remove_unreachable_nodes): Call
18172         cgraph_node_remove_callees even when there are used clones.
18173
18174 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
18175
18176         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
18177
18178 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
18179
18180         PR target/43383
18181         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
18182         for 32bit.
18183
18184 2010-03-18  Michael Matz  <matz@suse.de>
18185
18186         PR middle-end/43419
18187         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
18188         into sqrt(x) if we need to preserve signed zeros.
18189
18190 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
18191             Eric Botcazou  <ebotcazou@adacore.com>
18192
18193         PR rtl-optimization/43360
18194         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
18195         note if we don't know its invariant status.
18196
18197 2010-03-18  Michael Matz  <matz@suse.de>
18198
18199         PR tree-optimization/43402
18200         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
18201         PHI chains of ssa names registered for update.
18202
18203 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
18204
18205         PR target/42427
18206         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
18207         non-offsettable and pre_modify update addressing.
18208         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
18209         and "2" alternatives "#".
18210         (*movdd_softfloat32): Make all alternatives "#";
18211         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
18212         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
18213         (*movdf_softfloat32): Make all alternatives "#";
18214         (movdi): Use the new DIFD mode iterator to create a common splitter
18215         for movdi, movdf and movdd patterns.
18216
18217 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
18218
18219         * common.opt (dumpdir): Remove redundant tab.
18220
18221 2010-03-17  Martin Jambor  <mjambor@suse.cz>
18222
18223         PR tree-optimization/43347
18224         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
18225         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
18226
18227 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18228
18229         PR rtl-optimization/42216
18230         * regrename.c (create_new_chain): New function, broken out from...
18231         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
18232         appending a use to an empty chain.
18233         (build_def_use): Remove previous changes that convert OP_INOUT to
18234         OP_OUT operands; instead detect the case where an OP_INOUT operand
18235         uses a previously untracked register and create an empty chain for it.
18236
18237 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18238
18239         * doc/extend.texi (Function Attributes): Rewrite unfinished
18240         sentence in ms_abi documentation.
18241
18242 2010-03-17  Alan Modra  <amodra@gmail.com>
18243
18244         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
18245         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
18246         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
18247         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
18248
18249 2010-03-16  Richard Henderson  <rth@redhat.com>
18250
18251         PR middle-end/43365
18252         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
18253         (lower_try_finally): Save and restore eh_seq around the expansion
18254         of the try-finally.
18255
18256 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18257
18258         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
18259         statements before splitting block.
18260
18261 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18262
18263         * doc/sourcebuild.texi (Testsuites): Fix markup.
18264         Use pathnames relative to gcc/testsuite.
18265         (Test Directives): Move description of how timeout is determined.
18266         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
18267         (C Tests): Correct gcc.misc-tests directory.
18268         Framework tests now live in gcc.test-framework.
18269
18270 2010-03-16  Richard Guenther  <rguenther@suse.de>
18271
18272         PR middle-end/43379
18273         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
18274         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
18275
18276 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18277             Alexandre Oliva  <aoliva@redhat.com>
18278
18279         PR tree-optimization/42917
18280         * lambda-code.c (remove_iv): Skip debug statements.
18281         (lambda_loopnest_to_gcc_loopnest): Likewise.
18282         (not_interesting_stmt): Debug statements are not interesting.
18283
18284 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
18285
18286         PR debug/43051
18287         PR debug/43092
18288         * cselib.c (cselib_preserve_constants,
18289         cfa_base_preserved_val): New static variables.
18290         (preserve_only_constants): New function.
18291         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
18292         clear its REG_VALUES.  If cselib_preserve_constants, don't
18293         empty the whole hash table, but preserve there VALUEs with constants,
18294         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
18295         (cselib_preserve_cfa_base_value): New function.
18296         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
18297         (cselib_init): Change argument to int bitfield.  Set
18298         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
18299         is in it.
18300         (cselib_finish): Clear cselib_preserve_constants and
18301         cfa_base_preserved_val.
18302         * cselib.h (enum cselib_record_what): New enum.
18303         (cselib_init): Change argument to int.
18304         (cselib_preserve_cfa_base_value): New prototype.
18305         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
18306         * dse.c (dse_step1): Likewise.
18307         * cfgcleanup.c (thread_jump): Likewise.
18308         * sched-deps.c (sched_analyze): Likewise.
18309         * gcse.c (local_cprop_pass): Likewise.
18310         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
18311         If FN is non-NULL, call the callback always and whenever it returns
18312         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
18313         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
18314         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
18315         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
18316         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
18317         * var-tracking.c: Include recog.h.
18318         (bb_stack_adjust_offset): Remove.
18319         (vt_stack_adjustments): Don't call it, instead just gather the
18320         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
18321         (adjust_stack_reference): Remove.
18322         (compute_cfa_pointer): New function.
18323         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
18324         (struct adjust_mem_data): New type.
18325         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
18326         functions.
18327         (get_address_mode): New function.
18328         (replace_expr_with_values): Use it.
18329         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
18330         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
18331         (adjust_sets): Remove.
18332         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
18333         Use get_address_mode.
18334         (get_adjusted_src): Remove.
18335         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
18336         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
18337         (add_with_sets): Don't call adjust_sets.
18338         (fp_setter, vt_init_cfa_base): New functions.
18339         (vt_initialize): Change return type to bool.  Move most of pool etc.
18340         initialization to the beginning of the function from end.  Pass
18341         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
18342         If !frame_pointer_needed, call vt_stack_adjustment before mos
18343         vector is filled, call vt_init_cfa_base if argp/framep has been
18344         eliminated to sp.  If frame_pointer_needed and argp/framep has
18345         been eliminated to hard frame pointer, set
18346         hard_frame_pointer_adjustment and call vt_init_cfa_base after
18347         encountering fp setter in the prologue.  For MO_ADJUST, call
18348         log_op_type before pusing the op into mos vector, not afterwards.
18349         Call adjust_insn before cselib_process_insn/add_with_sets,
18350         call cancel_changes (0) afterwards.
18351         (variable_tracking_main_1): Adjust for vt_initialize calling
18352         vt_stack_adjustments and returning whether it succeeded or not.
18353
18354 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
18355
18356         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
18357         debug statements.
18358
18359 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
18360
18361         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
18362         has been set.
18363         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
18364         drap_reg has not been set.
18365
18366 2010-03-15  Michael Matz  <matz@suse.de>
18367
18368         PR middle-end/43300
18369         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
18370         use it to expand block copies.
18371         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18372         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
18373         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
18374
18375 2010-03-15  Richard Guenther  <rguenther@suse.de>
18376
18377         PR tree-optimization/43367
18378         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
18379         elimination check.
18380
18381 2010-03-15  Richard Guenther  <rguenther@suse.de>
18382
18383         PR tree-optimization/43317
18384         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
18385
18386 2010-03-15  Martin Jambor  <mjambor@suse.cz>
18387
18388         PR tree-optimization/43141
18389         * tree-sra.c (create_abstract_origin): New function.
18390         (modify_function): Call create_abstract_origin.
18391
18392 2010-03-15  Chris Demetriou  <cgd@google.com>
18393
18394         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
18395         wasn't copied.
18396
18397 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18398
18399         PR middle-end/43354
18400         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
18401         call insert_out_of_ssa_copy for default definitions.
18402
18403 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18404
18405         * graphite-clast-to-gimple.c (my_long_long): Defined.
18406         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
18407         * graphite-sese-to-poly.c (my_long_long): Defined.
18408         (scop_ivs_can_be_represented): Use it.
18409
18410 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18411
18412         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
18413         graphite-max-bbs-per-function, and loop-block-tile-size.
18414         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
18415         with "maximum".
18416         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
18417
18418 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18419
18420         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
18421         forward declaration.
18422         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
18423         (add_upper_bounds_from_estimated_nit): New.
18424         (build_loop_iteration_domains): Use it.
18425
18426 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18427
18428         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
18429
18430 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18431
18432         PR middle-end/43306
18433         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
18434         should be an INTEGER_CST.  Also handle CASE_CONVERT.
18435
18436 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18437
18438         * graphite.c (graphite_initialize): To bound the number of bbs per
18439         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
18440         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
18441         * doc/invoke.texi: Document it.
18442
18443 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18444
18445         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
18446         * graphite-sese-to-poly.h (build_poly_scop): Same.
18447
18448 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18449
18450         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
18451         the number of parameters in the scop.  Use as an upper bound
18452         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
18453         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
18454         * doc/invoke.texi: Document it.
18455
18456 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
18457
18458         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
18459         * doc/c-tree.texi: Remove.
18460         * doc/generic.texi: Merge c-tree.texi here.
18461         * doc/gccint.texi (Trees): Remove menu entry.
18462         (c-tree.texi): Remove @include.
18463         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
18464         * doc/languages.texi (Reading RTL): Ditto.
18465
18466 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
18467
18468         PR target/42869
18469         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
18470
18471 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18472
18473         PR middle-end/42431
18474         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
18475         code added to work around reload clobbering CONST insns.
18476
18477 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
18478
18479         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
18480         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
18481         (cselib_preserve_only_values): Remove retain argument, don't
18482         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
18483         * cselib.h (cselib_preserve_only_values): Remove retain argument.
18484         * var-tracking.c (micro_operation): Move insn field before union.
18485         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
18486         (struct variable_tracking_info_def): Remove n_mos field, change
18487         mos into a vector of micro_operations.
18488         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
18489         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
18490         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
18491         changing into a vector.
18492         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
18493         come before all other uops generated by add_stores.
18494         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
18495         argument removal.
18496         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
18497         a vector.  Run just one pass over the bbs instead of separate counting
18498         and computation phase.
18499         (vt_finalize): Free VTI (bb)->mos vector instead of array.
18500
18501         PR debug/43329
18502         * tree-inline.c (remap_decls): Put old_var rather than origin_var
18503         into *nonlocalized_list vector.
18504         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
18505         even if origin is non-NULL.
18506         (gen_variable_die): Likewise.
18507         (process_scope_var): Don't change origin.
18508         (gen_decl_die): Likewise.
18509         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
18510         before adding new edges instead of after it, fix moving over
18511         debug stmts.
18512
18513 2010-03-11  David S. Miller  <davem@davemloft.net>
18514
18515         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
18516         of four.
18517         * configure: Rebuild.
18518
18519 2010-03-11  Martin Jambor  <mjambor@suse.cz>
18520
18521         PR tree-optimization/43257
18522         * tree.c (assign_assembler_name_if_neeeded): New function.
18523         (free_lang_data_in_cgraph): Assembler name assignment moved to the
18524         above new function.
18525         * tree.h (assign_assembler_name_if_neeeded): Declare.
18526         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
18527         the function if needed.
18528
18529 2010-03-11  Chris Demetriou  <cgd@google.com>
18530
18531         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
18532         include/stdint-gcc.h, and include/stdint.h world-readable.
18533
18534 2010-03-11  Richard Guenther  <rguenther@suse.de>
18535
18536         PR tree-optimization/43255
18537         * tree-vrp.c (process_assert_insertions_for): Do not insert
18538         asserts for trivial conditions.
18539
18540 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18541
18542         PR tree-optimization/43280
18543         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
18544         generation.  Move calculation of size out of the if branch.
18545         (find_bswap): Modify compare number generation.
18546
18547 2010-03-11  Richard Guenther  <rguenther@suse.de>
18548
18549         PR lto/43200
18550         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
18551         (input_gimple_stmt): Fixup handled component types during
18552         operand read.  Also fix up decls in ADDR_EXPRs.
18553
18554 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
18555
18556         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
18557         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
18558
18559 2010-03-10  Jan Hubicka  <jh@suse.cz>
18560
18561         PR c/43288
18562         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
18563         * varasm.c (get_variable_section): Don't do that here...
18564         (make_decl_rtl): ... and here.
18565         (do_assemble_alias): Produce decl RTL.
18566         (assemble_alias): Likewise.
18567
18568 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
18569
18570         PR debug/43290
18571         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
18572         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
18573         of fde->vdrap_reg.
18574         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
18575         (based_loc_descr): Only express drap or vdrap regno based expressions
18576         using DW_OP_fbreg when not optimizing.
18577         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
18578         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
18579         REG_CFA_SET_VDRAP note.
18580
18581 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
18582
18583         PR tree-optimization/43236
18584         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
18585         error in calculation of base address in reverse iteration case.
18586         (generate_builtin): Take number of latch executions if the statement
18587         is in the latch.
18588
18589 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
18590
18591         PR middle-end/42859
18592         * tree-eh.c: Include pointer-set.h.
18593         (lower_eh_dispatch): Filter out duplicate case labels and
18594         remove the unneeded edge when the label is unused.  Return
18595         true when some edges are removed.
18596         (execute_lower_eh_dispatch): When any lowering resulted in
18597         removing an edge, also delete unreachable blocks.
18598
18599 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
18600
18601         PR bootstrap/43287
18602         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18603         UNSPEC_MACHOPIC_OFFSET.
18604
18605 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
18606
18607         PR target/43294
18608         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
18609         (m68k_delegitimize_address): New function.
18610
18611 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
18612
18613         PR debug/43299
18614         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
18615
18616         PR debug/43299
18617         * var-tracking.c (adjust_sets): New function.
18618         (count_with_sets, add_with_sets): Use it.
18619         (get_adjusted_src): New inline function.
18620         (add_stores): Use it.
18621
18622         PR debug/43304
18623         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
18624         call cselib_dummy_expand_value_rtx_cb instead of
18625         cselib_expand_value_rtx_cb.
18626
18627         PR debug/43293
18628         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
18629         * config/i386/i386.c: Include debug.h and dwarf2out.h.
18630         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
18631         and .cfi_endproc around the pic thunks.
18632         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
18633         all queued unwind info register saves are saved before the call.
18634         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
18635         considered as sp-=4 for unwind info and the pop as sp+=4 which
18636         also clobbers dest, but doesn't actually restore it.
18637
18638         PR debug/43290
18639         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
18640         RTX_FRAME_RELATED_P.
18641
18642 2010-03-09  Jie Zhang  <jie@codesourcery.com>
18643
18644         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
18645         whitespaces in output template.
18646
18647 2010-03-09  Jie Zhang  <jie@codesourcery.com>
18648
18649         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
18650         out array boundary.
18651
18652 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
18653
18654         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
18655         builtins.exp in a separate job.
18656
18657 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18658
18659         * graphite-sese-to-poly.c (add_param_constraints): Use
18660         lower_bound_in_type and upper_bound_in_type.
18661
18662 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18663
18664         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
18665         instead of unsigned_type_node.
18666
18667 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18668             Reza Yazdani  <reza.yazdani@amd.com>
18669
18670         PR middle-end/43065
18671         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
18672         on pointer type parameters.
18673
18674 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18675
18676         PR middle-end/42644
18677         PR middle-end/42130
18678         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
18679         handle conversions from pointer to integers.
18680         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
18681         induction variable, to be able to work with code generated by CLooG.
18682         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
18683         (build_poly_scop): Bail out if we cannot codegen a loop.
18684
18685 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18686
18687         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
18688         code generation with gloog_error.
18689
18690 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18691
18692         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
18693         Call fold_convert on all the returned values.
18694         (expand_scalar_variables_expr): Pass to
18695         expand_scalar_variables_ssa_name the type of the resulting expression.
18696
18697 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18698
18699         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
18700         ppl_min_for_le_pointset.
18701         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
18702         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
18703
18704 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18705
18706         * graphite-dependences.c (map_into_dep_poly): Removed.
18707         (dependence_polyhedron_1): Use combine_context_id_scat.
18708
18709 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18710
18711         * graphite-poly.h (struct poly_scattering): Add layout documentation.
18712         (struct poly_bb): Same.
18713         (combine_context_id_scat): New.
18714
18715 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18716
18717         PR middle-end/42326
18718         * sese.c (name_defined_in_loop_p): Return false for default
18719         definitions.
18720
18721 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18722
18723         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
18724         and clean up the logic.
18725
18726 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18727
18728         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
18729         early return.
18730
18731 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
18732
18733         * var-tracking.c (remove_cselib_value_chains): Define only for
18734         ENABLE_CHECKING.
18735         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
18736         delete_slot_part, emit_notes_for_differences_1): Don't call
18737         remove_cselib_value_chains here.
18738         (set_slot_part, emit_notes_for_differences_2): Don't call
18739         add_cselib_value_chains here.
18740         (preserved_values): New vector.
18741         (preserve_value): New function.
18742         (add_uses, add_stores, vt_add_function_parameters): Use it
18743         instead of cselib_preserve_value.
18744         (changed_values_stack): New vector.
18745         (check_changed_vars_0): New function.
18746         (check_changed_vars_1, check_changed_vars_2): Use it.
18747         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
18748         changed_values_stack VALUEs.
18749         (vt_emit_notes): For all preserved_values call
18750         add_cselib_value_chains.  If ENABLE_CHECKING call
18751         remove_cselib_value_chains before verifying value_chains is empty.
18752         Initialize and free changed_values_stack.
18753         (vt_initialize): Initialize preserved_values.
18754         (vt_finalize): Free preserved_values.
18755
18756 2010-03-08  Richard Guenther  <rguenther@suse.de>
18757
18758         PR tree-optimization/43269
18759         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
18760         region detection.
18761
18762 2010-03-08  Martin Jambor  <mjambor@suse.cz>
18763
18764         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
18765         (ipa_is_param_called): Removed.
18766         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
18767         (ipa_print_node_params): Do not print the called flag.
18768         (ipa_write_node_info): Do not stream the called flag.
18769         (ipa_read_node_info): Likewise.
18770
18771 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
18772
18773         PR debug/43176
18774         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
18775         * cselib.c (struct expand_value_data): Add dummy field.
18776         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
18777         dummy to false.
18778         (cselib_dummy_expand_value_rtx_cb): New function.
18779         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
18780         any rtl.
18781         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
18782         * var-tracking.c: Include pointer-set.h.
18783         (variable): Change n_var_parts to char from int.  Add
18784         cur_loc_changed and in_changed_variables fields.
18785         (variable_canonicalize): Remove.
18786         (shared_var_p): New inline function.
18787         (unshare_variable): Maintain cur_loc_changed and
18788         in_changed_variables fields.  If var was in changed_variables,
18789         replace it there with new_var.  Just copy cur_loc instead of
18790         resetting it to something else.
18791         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
18792         (dataflow_set_union): Don't call variable_canonicalize.
18793         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
18794         of their DEBUG_EXPR_TREE_DECLs.
18795         (canonicalize_loc_order_check): Verify that cur_loc is NULL
18796         and in_changed_variables and cur_loc_changed is false.
18797         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
18798         and cur_loc_changed.  Don't update cur_loc here.
18799         (variable_merge_over_src): Don't call variable_canonicalize.
18800         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
18801         removing loc that is equal to cur_loc, clear cur_loc,
18802         set cur_loc_changed and ensure variable_was_changed is called.
18803         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
18804         compare pointers in cur_loc check, if it is equal to loc,
18805         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
18806         (variable_different_p): Remove compare_current_location argument,
18807         don't compare cur_loc.
18808         (dataflow_set_different_1): Adjust variable_different_p caller.
18809         (variable_was_changed): If dv had some var in changed_variables
18810         already, reset in_changed_variables flag for it and propagate
18811         cur_loc_changed over to the new variable.  On empty var
18812         always set cur_loc_changed.  Set in_changed_variables on whatever
18813         var is added to changed_variables.
18814         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
18815         Use shared_var_p.  When removing loc that is equal to cur_loc,
18816         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
18817         end, don't set it to something else, just call variable_was_changed.
18818         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
18819         loc being removed, clear cur_loc and set cur_loc_changed.
18820         Set cur_loc_changed if all locations have been removed.
18821         (struct expand_loc_callback_data): New type.
18822         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
18823         allocated.  Always create SUBREGs if simplify_subreg failed.
18824         Prefer to use cur_loc, when that fails and still in
18825         changed_variables (and seen first time) recompute it.  Set
18826         cur_loc_changed of variables which had to change cur_loc and
18827         compute elcd->cur_loc_changed if any of the subexpressions used
18828         had to change cur_loc.
18829         (vt_expand_loc): Adjust to pass arguments in
18830         expand_loc_callback_data structure.
18831         (vt_expand_loc_dummy): New function.
18832         (emitted_notes): New variable.
18833         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
18834         that weren't used for any other decl in current
18835         emit_notes_for_changes call call vt_expand_loc_dummy to update
18836         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
18837         first loc_chain location if NULL before.  Always use just
18838         cur_loc instead of first loc_chain location.  When cur_loc_changed
18839         is false, when not --enable-checking=rtl just don't emit any note.
18840         When rtl checking, compute the note and assert it is the same
18841         as previous note.  Clear cur_loc_changed and in_changed_variables
18842         at the end before removing from changed_variables.
18843         (check_changed_vars_3): New function.
18844         (emit_notes_for_changes): Traverse changed_vars to call
18845         check_changed_vars_3 on each changed var.
18846         (emit_notes_for_differences_1): Clear cur_loc_changed and
18847         in_changed_variables.  Recompute cur_loc of new_var.
18848         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
18849         (vt_emit_notes): Initialize and destroy emitted_notes.
18850
18851 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
18852
18853         PR rtl-optimization/42220
18854         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
18855         Use verify_reg_tracked to determine if we should use OP_OUT rather
18856         than OP_INOUT.
18857         (build_def_use): If we see an in-out operand for a register that we
18858         know nothing about, treat is an output if possible, fail the block if
18859         not.
18860
18861 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
18862
18863         PR debug/42897
18864         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
18865         permanently.
18866
18867 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
18868
18869         PR debug/42897
18870         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
18871         uses of relevant DEFs that are dead outside the loop too.
18872
18873 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
18874
18875         * var-tracking.c (dataflow_set_merge): Swap src and src2.
18876         Reverted:
18877         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
18878         PR debug/41371
18879         * var-tracking.c (values_to_unmark): New variable.
18880         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18881         values_to_unmark vector.  Moved body to...
18882         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
18883         instead queue it into values_to_unmark vector.
18884         (vt_find_locations): Free values_to_unmark vector.
18885
18886 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
18887
18888         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
18889         (site.exp): Export them when plugins are enabled.
18890
18891 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
18892
18893         PR middle-end/42326
18894         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
18895         that contain scevs.
18896         (chrec_fold_multiply): Same.
18897
18898 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
18899
18900         PR c/43248
18901         * c-decl.c (build_compound_literal): Return early if init is
18902         an error_mark_node.
18903
18904 2010-03-04  Martin Jambor  <mjambor@suse.cz>
18905
18906         PR tree-optimization/43164
18907         PR tree-optimization/43191
18908         * tree-sra.c (type_consists_of_records_p): Reject records with
18909         zero-size bit-fields at the end.
18910
18911 2010-03-04  Mike Stump  <mikestump@comcast.net>
18912
18913         * Makefile.in (TAGS): Remove *.y.
18914
18915 2010-03-04  Richard Guenther  <rguenther@suse.de>
18916
18917         PR tree-optimization/40761
18918         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
18919         in reverse order.
18920         (my_rev_post_order_compute): New function.
18921         (init_pre): Call it.
18922
18923 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
18924
18925         PR middle-end/43209
18926         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
18927         decrease the cost of an IV candidate when the cost is infinite.
18928
18929 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18930
18931         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
18932         Use '3DNow!' for the extension of that name, ensure normal space
18933         after the string.
18934         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
18935
18936 2010-03-03  Jeff Law  <law@redhat.com>
18937
18938         * PR middle-end/32693
18939         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
18940         than gen_rtx_SUBREG.
18941         (extract_bit_field_1): Likewise.
18942
18943 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
18944
18945         * doc/sourcebuild.texi (Test directives): Document that arguments
18946         include-opts and exclude-opts are now optional for dg-skip-if,
18947         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
18948
18949 2010-03-03  Jason Merrill  <jason@redhat.com>
18950
18951         PR c++/12909
18952         * cgraph.h (varpool_node): Add extra_name field.
18953         * varpool.c (varpool_extra_name_alias): New.
18954         (varpool_assemble_decl): Emit extra name aliases.
18955         (varpool_mark_needed_node): Look past an extra name alias.
18956         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
18957         * lto-streamer-in.c (lto_input_tree): Read it.
18958         * lto-streamer-out.c (output_unreferenced_globals): Write it.
18959
18960 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18961
18962         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
18963         (sparc*-*-solaris2*): ...this.
18964
18965 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
18966
18967         PR debug/43229
18968         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
18969         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
18970         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
18971         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
18972
18973         PR debug/43237
18974         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
18975         fallthrough to default handling, just with want_address 0 instead of 2.
18976         For single element lists, add_AT_loc directly, otherwise create an
18977         artificial variable DIE and stick location list to it.
18978
18979         PR debug/43177
18980         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
18981         (VAL_EXPR_HAS_REVERSE): Define.
18982         (reverse_op): New function.
18983         (add_stores): For reversible operations add an extra MO_VAL_USE.
18984
18985 2010-03-02  Jason Merrill  <jason@redhat.com>
18986
18987         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
18988
18989 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
18990
18991         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
18992         (sparc64-*-linux*): Likewise.
18993         (sparc64-*-solaris2*): Include assembler files before linker ones.
18994         (sparc-*-solaris2*): Simplify and reorder to match previous case.
18995         * config/sparc/gas.h: Delete.
18996         * config/sparc/sol2-64.h: Add copyright notice.
18997         * config/sparc/sol2-gas-bi.h: Likewise.
18998         * config/sparc/sol2-gld.h: Likewise.
18999         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
19000         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
19001         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
19002         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
19003         (sparc_elf_asm_named_section): Rename into...
19004         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
19005
19006 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
19007
19008         * config/alpha/alpha.c (override_options): Fix -mtune error message.
19009
19010 2010-03-02  Jeff Law  <law@redhat.com>
19011
19012         PR middle-end/42431
19013         * reload1.c (rtx_p, substitute_stack): Declare.
19014         (substitute): Record addresses of changed rtxs.
19015         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
19016         Restore the original rtx when complete.
19017         (reload): Free subsitute_stack when complete.
19018
19019 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
19020
19021         * doc/gccint.texi (menu): Add Testsuites as a chapter.
19022         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
19023         new chapter.
19024         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
19025         LTO Testing, gcov Testing, profopt Testing, compat Testing,
19026         Torture Tests): Change from subsection to section.
19027
19028 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
19029             Steven Bosscher  <steven@gcc.gnu.org>
19030
19031         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
19032         instead of bb.
19033
19034 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
19035
19036         PR middle-end/42640
19037         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
19038         the assignment from the new induction variable to the assignment
19039         of the value from the original loop PHI function.
19040
19041 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
19042             Daniel Jacobowitz  <dan@codesourcery.com>
19043
19044         * doc/sourcebuild.texi (Test directives): Clarify options to
19045         dg-skip-if.
19046
19047 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19048
19049         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
19050         Disable cfi directives unless GCC and gas agree on using read-only
19051         .eh_frame sections for 64-bit.
19052         * configure: Regenerate.
19053
19054 2010-03-01  Richard Guenther  <rguenther@suse.de>
19055
19056         PR tree-optimization/43220
19057         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
19058         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
19059
19060 2010-03-01  Richard Guenther  <rguenther@suse.de>
19061             Martin Jambor  <mjambor@suse.cz>
19062
19063         PR middle-end/41250
19064         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
19065         gimplified parameters.
19066
19067 2010-03-01  Christian Bruel  <christian.bruel@st.com>
19068
19069         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
19070
19071 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
19072
19073         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
19074
19075 2010-03-01  Richard Guenther  <rguenther@suse.de>
19076
19077         PR middle-end/43213
19078         * expr.c (expand_assignment): Use the alias-oracle to tell
19079         if the rhs aliases the result decl.
19080
19081 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19082
19083         PR pch/14940
19084         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
19085         to sol_gt_pch_get_address.
19086         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
19087         64-bit, SPARC and x86.
19088         (sol_gt_pch_get_address): New function.
19089
19090 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
19091
19092         * toplev.h (inform_n, error_n): Declare.
19093         * diagnostic.c (inform_n, error_n): New function.
19094
19095 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
19096
19097         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
19098         has no rtl yet when processing local_decls, queue it and recheck
19099         if deferred stack allocation hasn't assigned it rtl.
19100
19101 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
19102
19103         * config/sh/sh.c (unspec_bbr_uid): New.
19104         (gen_block_redirect): Use it instead of INSN_UID.
19105         (gen_far_branch): Likewise.
19106
19107 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
19108
19109         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
19110         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
19111
19112 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19113
19114         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
19115         (Warning Options): -Wno-conversion-null is valid for
19116         Objective-C++ as well.
19117         * doc/tm.texi (Named Address Spaces): Likewise.
19118         * doc/plugins.texi (Plugins): Replace TABs with spaces.
19119         * doc/tree-ssa.texi (Tree SSA): Likewise.
19120
19121 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19122
19123         PR bootstrap/43202
19124         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
19125         by default.  Don't set the default arch for
19126         i[34567]86-*-darwin*|x86_64-*-darwin*.
19127
19128 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19129
19130         PR bootstrap/43202
19131         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
19132         default.  Set the default 32bit/64bit archs with $with_arch
19133         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
19134
19135 2010-02-27  Richard Guenther  <rguenther@suse.de>
19136
19137         PR tree-optimization/43186
19138         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
19139         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
19140         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
19141         unroller iterations.
19142
19143 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19144
19145         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
19146         required and i[34567]86-*-* targets don't support 64bit ISA.
19147
19148 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
19149
19150         PR ada/43096
19151         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19152         the same alias set.
19153
19154 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
19155
19156         * config.gcc: Set the default arch at least to Prescott for
19157         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
19158         if SSE math is enabled.
19159
19160 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19161
19162         * diagnostic.c (diagnostic_initialize): Update.
19163         (diagnostic_report_diagnostic): Test inhibit_notes_p for
19164         informative notes.
19165         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
19166         (diagnostic_inhibit_notes): New.
19167         * toplev.c (process_options): inhibit notes with -fcompare-debug.
19168
19169 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19170
19171         PR c/20631
19172         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
19173         * doc/standards.texi: Likewise.
19174         * doc/extend.texi: Likewise.
19175         * doc/trouble.texi: Likewise.
19176         * doc/cppopts.texi: Likewise.
19177         * doc/install.texi: Likewise.
19178         * c.opt (std=c90,std=gnu90): New options.
19179         * c-opts.c (c_common_handle_option): Handle them.
19180
19181 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19182
19183         PR c/24577
19184         * c-decl.c (undeclared_variable): Use an informative note.
19185
19186 2010-02-26  Richard Guenther  <rguenther@suse.de>
19187
19188         PR tree-optimization/43186
19189         * gimple.h (gimple_fold): Remove.
19190         * gimple.c (gimple_fold): Remove.  Inline into single user ...
19191         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
19192         Try harder for conditions.
19193
19194 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
19195
19196         PR debug/43190
19197         * function.c (used_types_insert): Don't skip through named pointer
19198         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
19199         and it is different from the main variant's type.
19200
19201 2010-02-26  Nick Clifton  <nickc@redhat.com>
19202
19203         * config/rx/rx.md (sminsi3): Remove bogus alternative.
19204
19205 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
19206
19207         * config.gcc: Support --with-fpmath=sse for x86.
19208
19209         * config/i386/ssemath.h: New.
19210
19211         * doc/install.texi (--with-fpmath=sse): Documented.
19212
19213 2010-02-26  Richard Guenther  <rguenther@suse.de>
19214
19215         PR tree-optimization/43188
19216         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
19217         vector types of over-aligned element type.
19218
19219 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
19220
19221         PR target/43175
19222         * config/i386/i386.c (expand_vec_perm_blend): Use correct
19223         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
19224
19225 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
19226
19227         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
19228
19229 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
19230
19231         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
19232         * var-tracking.c: Include diagnostic.h.
19233         (debug_dv): New function.
19234         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
19235
19236         PR debug/43160
19237         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
19238         (add_value_chain, add_value_chains, remove_value_chain,
19239         remove_value_chains): Handle DEBUG_EXPRs.
19240         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
19241
19242         PR debug/43161
19243         * regcprop.c (struct queued_debug_insn_change): New type.
19244         (struct value_data_entry): Add debug_insn_changes field.
19245         (struct value_data): Add n_debug_insn_changes field.
19246         (debug_insn_changes_pool): New variable.
19247         (free_debug_insn_changes, apply_debug_insn_changes,
19248         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
19249         (kill_value_one_regno): Call free_debug_insn_changes if needed.
19250         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
19251         fields.
19252         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
19253         changes for them.
19254         (copyprop_hardreg_forward_1): Don't call apply_change_group for
19255         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
19256         changes, call cprop_find_used_regs via note_stores.
19257         (copyprop_hardreg_forward): When copying vd from predecessor
19258         which has any queued DEBUG_INSN changes, make sure the pointers are
19259         cleared.  At the end call df_analyze and then if there are any
19260         DEBUG_INSN changes queued at the end of some basic block for still
19261         live registers, apply them.
19262         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
19263
19264 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
19265
19266         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
19267         (arm*-*-*): Ditto.
19268
19269 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
19270
19271         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
19272         targets.  Set the default with_cpu/with_arch from arch/cpu.
19273         Allow x86-64 and native for with_cpu/with_arch.
19274
19275 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
19276
19277         * ebitmap.c: Change calls to verify_popcount with calls to
19278         sbitmap_verify_popcount.
19279         (ebitmap_clear_bit): Fixed map->cacheindex test and
19280         map>cache update when bit clearing results in an empty
19281         element.
19282
19283 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19284
19285         PR target/43154
19286         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
19287         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
19288         and support both V2DF and V2DI modes.
19289         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
19290         support both V2DF and V2DI modes.
19291         (general): Delete trailing whitespace from a few patterns.
19292
19293         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19294         V2DF/V2DI interleave high/low builtins.
19295
19296         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
19297         new VSX builtins.
19298
19299         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
19300         interleave high/low functions.
19301
19302 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
19303
19304         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
19305         #pragma extern_prefix.
19306
19307 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
19308
19309         PR debug/43166
19310         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
19311         BLKmode, assert op0 is a MEM and just adjust its mode.
19312
19313         PR debug/43165
19314         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
19315         if bitpos isn't multiple of mode's bitsize.
19316
19317 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19318
19319         * c.opt (-ftemplate-depth=): New.
19320         (-ftemplate-depth-): Deprecate.
19321         * optc-gen.awk: Handle -ftemplate-depth=.
19322         * opth-gen.awk: Likewise.
19323         * c-opts.c (c_common_handle_option): Likewise.
19324         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
19325
19326 2010-02-24  Jason Merrill  <jason@redhat.com>
19327
19328         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
19329
19330 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19331
19332         * cfg.c (alloc_aux_for_block): Remove inline.
19333         (alloc_aux_for_edge): Likewise.
19334
19335 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19336
19337         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
19338
19339 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19340
19341         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
19342         * config/i386/sol2-gas.h: New file.
19343         * config.gcc (i[34567]86-*-solaris2*): Use it.
19344
19345 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19346
19347         PR c/43128
19348         * c-typeck.c (ep_convert_and_check): New.
19349         (build_conditional_expr): Use it.
19350         (build_binary_op): Likewise.
19351
19352 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
19353
19354         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
19355
19356         PR debug/43150
19357         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
19358         bounds even for -O+.
19359         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
19360         expr needs to have DECL_NAME set.
19361
19362 2010-02-24  Nick Clifton  <nickc@redhat.com>
19363
19364         * config/mep/mep.c: Include gimple.h.
19365         (mep_function_uses_sp): Delete unused function.
19366         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
19367         parameters.  Use unsigned integers to count args.  Return a
19368         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
19369
19370 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
19371
19372         PR target/43107
19373         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
19374         greater or equal to nelt instead of 2 * nelt.
19375         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
19376         with nelt - 1.
19377
19378 2010-02-23  Jason Merrill  <jason@redhat.com>
19379
19380         PR debug/42800
19381         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
19382         in cfun->local_decls even if they have register types.
19383
19384         PR c++/42837
19385         * stor-layout.c (place_field): Don't warn about unnecessary
19386         DECL_PACKED if the type is packed.
19387
19388 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
19389
19390         PR target/43139
19391         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
19392         GOTOFF relocs, even when the base reg isn't pic pointer.
19393
19394 2010-02-23  Michael Matz  <matz@suse.de>
19395
19396         PR debug/43077
19397         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
19398         (expand_gimple_basic_block): Generate and use debug temps if there
19399         are debug uses left after the last real use of TERed ssa names.
19400         Unlink debug immediate uses when they are expanded.
19401
19402 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19403
19404         PR 43123
19405         * config/i386/i386.c (override_options): Reorganise to provide
19406         better error messages.
19407
19408 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19409
19410         PR middle-end/43083
19411         * graphite-scop-detection.c (create_single_exit_edge): Move
19412         the call to find_single_exit_edge to....
19413         (create_sese_edges): ...here.  Don't handle multiple edges
19414         exiting the function.
19415         (build_graphite_scops): Don't handle multiple edges
19416         exiting the function.
19417
19418 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19419
19420         PR middle-end/43097
19421         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
19422         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
19423
19424 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19425
19426         PR middle-end/43026
19427         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
19428
19429 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19430
19431         PR c++/43126
19432         * c-typeck.c (convert_arguments): Print declaration location.
19433         * c-common.c (validate_nargs): Rename as
19434         builtin_function_validate_nargs.
19435         (check_builtin_function_arguments): Update.
19436
19437 2010-02-22  Richard Guenther  <rguenther@suse.de>
19438
19439         PR lto/43045
19440         * tree-inline.c (declare_return_variable): Use the type of
19441         the call stmt lhs if available.
19442
19443 2010-02-22  Duncan Sands  <baldrick@free.fr>
19444
19445         * passes.c (register_pass): Always consider all pass lists when
19446         ref_pass_instance_number is zero.
19447
19448 2010-02-22  Richard Guenther  <rguenther@suse.de>
19449
19450         PR tree-optimization/42749
19451         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
19452         parameter.  Do arithmetic in the original type.
19453         (update_accumulator_with_ops): Likewise.
19454         (adjust_accumulator_values): Adjust.
19455
19456 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19457
19458         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
19459         (QI to BLKmode splitter): New splitter.
19460
19461 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
19462
19463         * config/i386/i386.c (initial_ix86_tune_features): Turn on
19464         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
19465
19466 2010-02-22  Richard Guenther  <rguenther@suse.de>
19467
19468         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
19469
19470 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
19471
19472         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
19473         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
19474         ($(T)crti.o, $(T)crtn.o): Remove rules.
19475
19476 2010-02-21  Tobias Burnus  <burnus@net-b.de>
19477
19478         PR fortran/35259
19479         * doc/invoke.texi (-fassociative-math): Document that this
19480         option is automatically enabled for Fortran.
19481
19482 2010-02-20  David S. Miller  <davem@davemloft.net>
19483
19484         * configure.ac: Test if linker and assembler properly support
19485         GOTDATA_OP relocations.
19486         * configure: Rebuild.
19487         * config.in: Likewise.
19488         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
19489         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
19490         (movsi_high_pic): Likewise.
19491         (movdi_lo_sum_pic): Likewise.
19492         (movdi_high_pic): Likewise.
19493         (movsi_pic_gotdata_op): New pattern.
19494         (movdi_pic_gotdata_op): Likewise.
19495         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
19496         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
19497
19498 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
19499
19500         PR target/43067
19501         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
19502         attribute to ssemul.
19503         (xop_mulv2div2di3_high): Ditto.
19504
19505 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19506
19507         PR c++/35669
19508         * c.opt (Wconversion-null): New option.
19509         * doc/invoke.texi (Wconversion-null): Document.
19510
19511 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19512
19513         * common.opt (Wlarger-than-): Add Undocumented.
19514
19515 2010-02-19  Mike Stump  <mikestump@comcast.net>
19516
19517         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
19518
19519 2010-02-19  Jason Merrill  <jason@redhat.com>
19520
19521         PR target/40332
19522         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
19523         * configure: Likewise.
19524
19525 2010-02-20  Alan Modra  <amodra@gmail.com>
19526
19527         PR middle-end/42344
19528         * cgraph.h (cgraph_make_decl_local): Declare.
19529         * cgraph.c (cgraph_make_decl_local): New function.
19530         (cgraph_make_node_local): Use it.
19531         * cgraphunit.c (cgraph_function_versioning): Likewise.
19532         * ipa.c (function_and_variable_visibility): Likewise.
19533
19534 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19535
19536         PR bootstrap/43121
19537         * except.c (sjlj_emit_function_enter): Don't call
19538         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
19539         directly.
19540         * rtl.h (add_reg_br_prob_note): Remove prototype.
19541
19542 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19543
19544         PR 41779
19545         * c-common.c (conversion_warning): Remove widening conversions
19546         before checking the conversion of integers to reals.
19547
19548 2010-02-19  Mike Stump  <mikestump@comcast.net>
19549
19550         PR middle-end/43125
19551         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
19552
19553         PR objc/43061
19554         * cgraphunit.c (process_function_and_variable_attributes): Check
19555         DECL_PRESERVE_P instead of looking up attribute "used".
19556         * ipa-pure-const.c (check_decl): Likewise.
19557         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
19558         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
19559         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
19560         instead of attribute "used".
19561         * config/sol2-c.c (solaris_pragma_init): Likewise.
19562         (solaris_pragma_fini): Likewise.
19563
19564 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19565
19566         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
19567         Use XCNEW instead of xcalloc.
19568         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
19569         XNEW instead of xmalloc.
19570         (get_fields): Use XNEWVEC instead of xmalloc.
19571
19572         PR debug/43084
19573         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
19574         populate vars array.
19575         (create_new_general_access): For debug stmts just reset value.
19576         (get_stmt_accesses): For accesses within debug stmts just record them
19577         using add_access_to_acc_sites instead of preventing the peeling or
19578         counting them as accesses.
19579
19580         PR middle-end/42233
19581         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
19582
19583 2010-02-19  Richard Guenther  <rguenther@suse.de>
19584
19585         PR tree-optimization/42916
19586         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
19587         instructions.
19588
19589 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
19590
19591         * configure.ac: Replace all uses of changequote in macro arguments
19592         with proper quoting.
19593
19594 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19595
19596         PR middle-end/42233
19597         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
19598
19599 2010-02-19  Richard Guenther  <rguenther@suse.de>
19600
19601         PR tree-optimization/42944
19602         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
19603         test for aliasing with errno.
19604
19605 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19606
19607         PR middle-end/42233
19608         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
19609         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
19610         * dojump.c: Include output.h.
19611         (inv): New inline function.
19612         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
19613         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
19614         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
19615         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
19616         argument, pass it down to other calls.
19617         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
19618         add REG_BR_PROB note to the conditional jump.
19619         * cfgexpand.c (add_reg_br_prob_note): Removed.
19620         (expand_gimple_cond): Don't call it, add the probability
19621         as last argument to jumpif_1/jumpifnot_1.
19622         * Makefile.in (dojump.o): Depend on output.h.
19623         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
19624         callers.
19625         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
19626         * stmt.c (do_jump_if_equal): Likewise.
19627         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
19628         * loop-unswitch.c (compare_and_jump_seq): Likewise.
19629         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
19630         Likewise.
19631         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
19632         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
19633         jumpifnot_1 callers.
19634         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
19635         callers.
19636         (store_expr): Adjust jumpifnot caller.
19637         (store_constructor): Adjust jumpif caller.
19638
19639         PR middle-end/42233
19640         * gimplify.c (gimple_boolify): For __builtin_expect call
19641         gimple_boolify also on its first argument.
19642
19643 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
19644
19645         * configure.ac (gnu-unique-object): Wrap regexps using [] in
19646         changequote block.
19647         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
19648         * configure: Regenerated.
19649
19650 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19651
19652         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
19653         lang_hooks.types_compatible_p instead of comptypes.
19654
19655 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19656
19657         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
19658         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
19659         if __prefer_thumb__ is defined.
19660
19661 2010-02-18  Martin Jambor  <mjambor@suse.cz>
19662
19663         PR tree-optimization/43066
19664         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
19665         array with zero-sized element type.
19666
19667 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
19668
19669         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
19670         rtx, allocate struct var_loc_node here and return it to the
19671         caller, and only if it is actually needed.
19672         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
19673         move it earlier and return immediately if it returns NULL.
19674
19675 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
19676
19677         * config/sparc/gas.h: New file.  Restore
19678         TARGET_ASM_NAMED_SECTION to its ELF default.
19679         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
19680         check !HAVE_GNU_AS.
19681         * config/sparc/sparc.c (sparc_elf_asm_named_section):
19682         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
19683         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
19684         after sparc/sysv4.h.
19685
19686 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
19687
19688         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
19689
19690 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
19691
19692         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
19693         patterns from predicated pattern.
19694
19695 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
19696
19697         PR target/43103
19698         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
19699         for insn mnemonic suffix.
19700
19701 2010-02-17  Richard Guenther  <rguenther@suse.de>
19702
19703         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
19704         to loop PHI nodes.
19705
19706 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
19707
19708         PR debug/42918
19709         * caller-save.c (save_call_clobbered_regs): If BB ends with
19710         a DEBUG_INSN, move any notes in between last real insn and the last
19711         DEBUG_INSN after the last DEBUG_INSN.
19712
19713 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
19714
19715         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
19716         Fix return type.  Fix argument type.  Explain meaning of return value.
19717
19718 2010-02-16  Richard Guenther  <rguenther@suse.de>
19719
19720         PR tree-optimization/41043
19721         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
19722         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
19723         statements ...
19724         (vrp_visit_phi_node): ... but only for loop PHI nodes.
19725
19726 2010-02-16  Ira Rosen  <irar@il.ibm.com>
19727
19728         PR tree-optimization/43074
19729         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
19730         * tree-vect-loop.c (vect_analyze_loop_operations): Add
19731         vectorizable cycles in hybrid SLP check.
19732         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
19733
19734 2010-02-16  Richard Guenther  <rguenther@suse.de>
19735
19736         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
19737         (true_dependence): If memrefs_conflict_p computes must-alias
19738         trust it.  Move TBAA check after offset-based disambiguation.
19739         (canon_true_dependence): Likewise.
19740
19741 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
19742
19743         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
19744         * doc/invoke.texi: Document it.
19745         * var-tracking.c: Include toplev.h and params.h.
19746         (vt_find_locations): Return bool indicating success.  Compute
19747         hash sizes unconditionally.  Check new parameter, report.
19748         (variable_tracking_main_1): Check vt_find_locations results and
19749         retry.  Renamed from...
19750         (variable_tracking_main): ... this.  New wrapper to preserve
19751         flag_var_tracking_assignments.
19752         * Makefile.in (var-tracking.o): Adjust dependencies.
19753
19754 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
19755             Jakub Jelinek  <jakub@redhat.com>
19756
19757         PR target/42854
19758         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
19759         if weak_import attribute is present.
19760         * config/darwin.c (machopic_select_section): Likewise.
19761
19762 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
19763
19764         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
19765         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
19766         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
19767         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
19768
19769         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
19770         types.
19771
19772         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19773         Fix argument types.
19774
19775         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
19776         Rewrite text to refer to the names.
19777
19778 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
19779
19780         * config/i386/i386-builtin-types.def
19781         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
19782         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
19783         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
19784         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
19785         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
19786         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
19787         IX86_BUILTIN_VPERMIL2PS256.
19788         (MULTI_ARG_4_DF2_DI_I): Defined.
19789         (MULTI_ARG_4_DF2_DI_I1): Defined.
19790         (MULTI_ARG_4_SF2_SI_I): Defined.
19791         (MULTI_ARG_4_SF2_SI_I1): Defined.
19792         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
19793         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
19794         __builtin_ia32_vpermil2ps256.
19795         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
19796         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
19797         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
19798         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
19799         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
19800         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
19801         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
19802         CODE_FOR_xop_vpermil2v8sf3.
19803         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
19804         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
19805         * config/i386/xopintrin.h (_mm_permute2_pd): New.
19806         (_mm256_permute2_pd): New.
19807         (_mm_permute2_ps): New.
19808         (_mm256_permute2_ps): New.
19809
19810 2010-02-15  Nick Clifton  <nickc@redhat.com>
19811
19812         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
19813         boolean parameters.  Use emit_jump_insn when emitting a pop
19814         instruction containing a return insn.
19815         (push): Use 'true' rather than '1' as second parameter to F.
19816         (h8300_expand_prologue): Likewise.
19817         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
19818         (h8300_expand_epilogue): Likewise.
19819
19820 2010-02-15  Richard Guenther  <rguenther@suse.de>
19821
19822         PR middle-end/43068
19823         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
19824         if that is zero.
19825
19826 2010-02-15  Nick Clifton  <nickc@redhat.com>
19827
19828         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
19829         delta.
19830
19831 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
19832
19833         * intl.c (fake_ngettext): New function.
19834         * intl.h (fake_ngettext): Declare.
19835         (ngettext): Define macro.
19836         * collect2.c (notice_translated): New function.
19837         (main): Use notice_translated and ngettext.
19838         * collect2.h (notice_translated): Declare.
19839
19840 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
19841
19842         * reorg.c (delete_computation): Comment fixes.
19843         * caller-save.c (setup_save_areas): Idem.
19844         * sel-sched-dump.c (dump_lv_set): Idem.
19845         * rtl.def: Idem.
19846
19847 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19848
19849         * config/s390/s390.c (s390_sched_init): New function.
19850         (TARGET_SCHED_INIT): Target hook defined.
19851
19852 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
19853             Jack Howarth  <howarth@bromo.med.uc.edu>
19854             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19855
19856         PR target/42982
19857         Partial revert of unintended change in fix for PR41605.
19858         * config/darwin.h: Fix typo.
19859         * config/darwin9.h: Same.
19860
19861 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
19862
19863         * c-pch.c (pch_init): Clear v.
19864
19865 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19866
19867         PR middle-end/42930
19868         * graphite-scop-detection.c (graphite_can_represent_scev): Call
19869         graphite_can_represent_init for MULT_EXPR.
19870
19871 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19872
19873         PR middle-end/42914
19874         PR middle-end/42530
19875         * graphite-sese-to-poly.c (remove_phi): New.
19876         (translate_scalar_reduction_to_array): Call remove_phi.
19877
19878 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19879
19880         PR middle-end/42771
19881         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
19882         * graphite-clast-to-gimple.h (gloog): Update declaration.
19883         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
19884         * graphite-poly.h (struct poly_bb): Add missing comments.
19885         (struct scop): Add poly_scop_p field.
19886         (POLY_SCOP_P): New.
19887         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
19888         * graphite.c (graphite_transform_loops): Build the polyhedral
19889         representation for each scop before code generation.
19890         * sese.c (rename_variables_in_operand): Removed.
19891         (rename_variables_in_expr): Return the renamed expression.
19892         (rename_sese_parameters): New.
19893         * sese.h (rename_sese_parameters): Declared.
19894
19895 2010-02-11  Richard Guenther  <rguenther@suse.de>
19896
19897         PR tree-optimization/42998
19898         * tree-ssa-pre.c (create_expression_by_pieces): Treat
19899         POINTER_PLUS_EXPR properly.
19900
19901 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19902             Changpeng Fang  <changpeng.fang@amd.com>
19903
19904         PR middle-end/40886
19905         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
19906         the cost of an IV candidate when the IV is used in a test against zero.
19907
19908         * gcc.dg/tree-ssa/ivopts-3.c: New.
19909
19910 2010-02-11  Richard Guenther  <rguenther@suse.de>
19911
19912         PR lto/41664
19913         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
19914         pointer-vs-decl case by swapping refs.  Handle some cases
19915         of pointer-vs-decl disambiguations more conservatively.
19916         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
19917         to false after expanding.
19918
19919 2010-02-11  Richard Guenther  <rguenther@suse.de>
19920
19921         PR driver/43021
19922         * gcc.c (process_command): Handle LTO file@offset case more
19923         appropriately.
19924
19925 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
19926
19927         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
19928         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
19929         of DEBUG_INSNs.
19930         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
19931
19932         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
19933         if MEM's mode size isn't DWARF2_ADDR_SIZE.
19934         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
19935         Optimize eq/ne comparisons when both arguments are known to be
19936         zero-extended.
19937         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
19938         Don't mask operands unnecessarily if they are known to be already
19939         zero-extended.
19940
19941 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
19942
19943         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
19944         instead of loop.
19945
19946 2010-02-10  Richard Guenther  <rguenther@suse.de>
19947
19948         PR tree-optimization/43017
19949         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
19950         for wrapping signed arithmetic.
19951
19952 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19953
19954         PR debug/43010
19955         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
19956         if no debug info should be emitted for it.
19957
19958 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19959
19960         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
19961         note when flag_exceptions is set.
19962
19963 2010-02-10  Duncan Sands  <baldrick@free.fr>
19964
19965         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
19966
19967 2010-02-10  Richard Guenther  <rguenther@suse.de>
19968
19969         PR c/43007
19970         * tree.c (get_unwidened): Handle constants.
19971         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
19972
19973 2010-02-10  Martin Jambor  <mjambor@suse.cz>
19974
19975         PR lto/42985
19976         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
19977         check for variable argument counts independently.
19978
19979 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19980
19981         PR target/42841
19982         * config/sh/sh.c (find_barrier): Increase length for non delayed
19983         conditional branches.
19984
19985 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19986
19987         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
19988
19989 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19990
19991         * builtins.c (set_builtin_user_assembler_name): Also handle
19992         ffs if int is smaller than word.
19993
19994 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
19995
19996         PR middle-end/42973
19997         * ira-conflicts.c (get_dup): Remove.
19998         (process_reg_shuffles): Add new parameter.  Use it as an
19999         additional guard for copy generation.
20000         (add_insn_allocno_copies): Rewrite.
20001
20002 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
20003
20004         * common.opt (fsched2-use-traces): Preserved for backward
20005         compatibility.
20006         * doc/invoke.texi: Remove the documentation about option
20007         -fsched2-use-traces.
20008         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
20009         flag_sched2_use_traces.
20010         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
20011         the backward compatibility flag section.
20012
20013 2010-02-09  Richard Guenther  <rguenther@suse.de>
20014
20015         PR tree-optimization/43008
20016         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
20017         make HEAP variables initialized from global memory if they
20018         are not known builtin functions.
20019         (find_func_aliases): Adjust.
20020
20021 2010-02-09  Richard Guenther  <rguenther@suse.de>
20022
20023         PR tree-optimization/43000
20024         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
20025         arithmetic manually.
20026
20027 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
20028
20029         PR tree-optimization/42931
20030         * tree-loop-linear.c (try_interchange_loops): Don't call
20031         double_int_mul if estimated_loop_iterations failed.
20032
20033 2010-02-08  Martin Jambor  <mjambor@suse.cz>
20034
20035         PR middle-end/42898
20036         * tree-sra.c (build_accesses_from_assign): Do not mark in
20037         should_scalarize_away_bitmap if stmt has volatile ops.
20038         (sra_modify_assign): Do not process assigns piecemeal if if stmt
20039         has volatile ops.
20040
20041 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
20042
20043         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
20044
20045 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
20046
20047         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
20048         before the pattern.
20049
20050 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
20051
20052         PR middle-end/42946
20053         * df-core.c (df_finish_pass): Change type of saved_flags to int.
20054
20055 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
20056
20057         PR middle-end/42988
20058         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
20059         to unknown_dependence.
20060         (graphite_legal_transform_dr): Handle the unknown_dependence.
20061         (graphite_carried_dependence_level_k): Same.
20062
20063 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
20064
20065         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
20066
20067 2010-02-07  Richard Guenther  <rguenther@suse.de>
20068
20069         PR middle-end/42991
20070         * expr.c (get_inner_reference): Always initialize *pbitsize.
20071
20072 2010-02-07  Richard Guenther  <rguenther@suse.de>
20073
20074         PR middle-end/42956
20075         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
20076         new ARRAY_REFs on variable size element or minimal index arrays.
20077         Complete.
20078         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
20079         gimple_fold_indirect_ref.
20080
20081 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
20082
20083         PR target/42957
20084         * arm.c (arm_override_options): Just return if the user has specified
20085         an invalid fpu name.
20086
20087 2010-02-03  Jason Merrill  <jason@redhat.com>
20088
20089         PR c++/42870
20090         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
20091         i386_pe_maybe_record_exported_symbol.
20092
20093 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
20094
20095         PR target/42924
20096         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20097         (pa_delegitimize_address): New function.
20098
20099 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
20100
20101         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
20102         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
20103
20104 2010-02-05  Richard Guenther  <rguenther@suse.de>
20105
20106         PR lto/42762
20107         * lto-streamer-in.c (get_resolution): Deal with references
20108         to undefined functions.
20109
20110 2010-02-05  Richard Guenther  <rguenther@suse.de>
20111
20112         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
20113         (fold_const_aggregate_ref): Likewise.
20114         (ccp_fold_stmt): Substitute loads.
20115         (maybe_fold_reference): Verify types before substituting.
20116         Unshare properly.
20117         (fold_gimple_assign): Unshare properly.
20118         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
20119
20120 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
20121
20122         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
20123         for rs6000_gen_cell_microcode.
20124
20125 2010-02-04  Richard Guenther  <rguenther@suse.de>
20126
20127         PR rtl-optimization/42952
20128         * dse.c (const_or_frame_p): Remove MEM handling.
20129
20130 2010-02-04  Nick Clifton  <nickc@redhat.com>
20131
20132         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20133         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20134         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
20135         (mn10300_asm_output_mi_thunk): New function.
20136         (mn10300_can_output_mu_thunk): New function.
20137         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
20138         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
20139         (FUNCTION_ARG): Delete incorrect comment.
20140
20141 2010-02-03  Jason Merrill  <jason@redhat.com>
20142
20143         PR c++/40138
20144         * fold-const.c (operand_equal_p): Handle erroneous types.
20145
20146 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20147
20148         * config/h8300/h8300.md (can_delay): Fix attibute condition.
20149
20150 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
20151
20152         PR rtl-optimization/42941
20153         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
20154         of xmalloc.
20155
20156 2010-02-03  Jason Merrill  <jason@redhat.com>
20157
20158         PR c++/35652
20159         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
20160
20161 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
20162
20163         PR debug/42896
20164         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
20165         (cselib_reset_table): Renamed from...
20166         (cselib_reset_table_with_next_value): ... this.
20167         (cselib_get_next_uid): Renamed from...
20168         (cselib_get_next_unknown_value): ... this.
20169         * cselib.c (next_uid): Renamed from...
20170         (next_unknown_value): ... this.
20171         (cselib_clear_table): Adjust.
20172         (cselib_reset_table): Adjust.  Renamed from...
20173         (cselib_reset_table_with_next_value): ... this.
20174         (cselib_get_next_uid): Adjust.  Renamed from...
20175         (cselib_get_next_unknown_value): ... this.
20176         (get_value_hash): Use hash.
20177         (cselib_hash_rtx): Likewise.
20178         (new_cselib_val): Adjust.  Set and dump uid.
20179         (cselib_lookup_mem): Pass next_uid as hash.
20180         (cselib_subst_to_values): Likewise.
20181         (cselib_log_lookup): Dump uid.
20182         (cselib_lookup): Pass next_uid as hash.  Adjust.
20183         (cselib_process_insn): Adjust.
20184         (cselib_init): Initialize next_uid.
20185         (cselib_finish): Adjust.
20186         (dump_cselib_table): Likewise.
20187         * dse.c (canon_address): Dump value uid.
20188         * print-rtl.c (print_rtx): Print value uid.
20189         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
20190         (dvuid): New type.
20191         (dv_uid): New function, sort of renamed from...
20192         (dv_htab_hash): ... this, reimplemented in terms of it and...
20193         (dv_uid2hash): ... this.  New.
20194         (variable_htab_eq): Drop excess assertions.
20195         (tie_break_pointers): Removed.
20196         (canon_value_cmp): Compare uids.
20197         (variable_post_merge_New_vals): Print uids.
20198         (vt_add_function_parameters): Adjust.
20199         (vt_initialize): Reset table.  Adjust.
20200
20201 2010-02-03  Richard Guenther  <rguenther@suse.de>
20202
20203         PR tree-optimization/42944
20204         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
20205         (call_may_clobber_ref_p_1): Likewise.  Properly handle
20206         malloc and calloc clobbering errno.
20207
20208 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
20209
20210         * doc/invoke.texi: Fix name of sched1 dump.
20211
20212         * opts.c (decode_options): Set flag_tree_switch_conversion
20213         only conditionally on optimize >= 2.
20214
20215         * gcse.c: Assorted comment fixes in pass description.
20216
20217 2010-02-03  Anthony Green  <green@moxielogic.com>
20218
20219         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
20220         nop padding in order to maintain alignment of storage location of
20221         target function address.
20222         (moxie_trampoline_init): Store target function address at newly
20223         aligned location.
20224         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
20225         to 32.
20226         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
20227
20228 2010-02-03  Richard Guenther  <rguenther@suse.de>
20229
20230         PR middle-end/42927
20231         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
20232
20233 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20234
20235         * config.gcc: Reenable check for obsolete targets.
20236         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
20237         mips-sgi-irix6.[0-4]*.
20238
20239 2010-02-02  Nick Clifton  <nickc@redhat.com>
20240
20241         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
20242         constant size of 4 as being the same as 0.
20243         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
20244         can take values in the range 0..4.
20245
20246 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
20247
20248         PR java/41991
20249         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
20250         as _darwin10_Unwind_FindEnclosingFunction().
20251         * libgcc-libsystem.ver: New.
20252
20253 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
20254
20255         PR target/41399
20256         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
20257         implicitly set registers.
20258
20259 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
20260
20261         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
20262         (arm_override_options): Allow automatic selection of the thread
20263         pointer register if thumb2.
20264         (legitimize_pic_address): Improve code sequences for Thumb2.
20265         (arm_call_tls_get_addr): Likewise.
20266         (legitimize_tls_address): Likewise.
20267         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
20268         (pic_load_addr_32bit): ... this.  New named pattern.
20269         * thumb2.md (pic_load_addr_thumb2): Delete.
20270         (pic_load_dot_plus_four): Delete.
20271         (tls_load_dot_plus_four): New named pattern.
20272
20273 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20274
20275         PR libgomp/29986
20276         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
20277         Document fix for TLS bug.
20278
20279 2010-01-31  Richard Guenther  <rguenther@suse.de>
20280
20281         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
20282         conservatively correct.
20283
20284 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20285
20286         PR target/42850
20287         Revert:
20288         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20289
20290         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20291
20292 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20293
20294         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
20295
20296 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
20297
20298         * config.gcc: Adjust order of makefile fragments for mingw targets.
20299
20300 2010-01-31  Richard Guenther  <rguenther@suse.de>
20301
20302         PR middle-end/42898
20303         * gimplify.c (gimplify_init_constructor): For volatile LHS
20304         initialize a temporary.
20305
20306 2010-01-31  Matthias Klose  <doko@ubuntu.com>
20307
20308         * configure.ac: Fix __stack_chk_fail check for cross builds configured
20309         --with-headers
20310         * configure: Regenerate.
20311
20312 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
20313
20314         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20315         the same alias set and their sizes different constantness.
20316         (aliasing_component_refs_p): Revert 2009-10-24 change.
20317
20318 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20319
20320         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
20321         unused.
20322
20323 2010-01-29  Richard Guenther  <rguenther@suse.de>
20324
20325         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
20326         Assert we successfully updated the call.
20327
20328 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
20329
20330         PR rtl-optimization/42889
20331         * df.h (df_set_bb_dirty_nonlr): New prototype.
20332         * df-core.c (df_set_bb_dirty_nonlr): New function.
20333         * df-scan.c (df_insn_rescan): Call it instead of
20334         df_set_bb_dirty for DEBUG_INSNs.
20335
20336 2010-01-29  Richard Guenther  <rguenther@suse.de>
20337
20338         PR middle-end/37448
20339         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
20340         quadratic behavior in most cases.
20341
20342 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
20343
20344         PR target/42891
20345         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
20346         in the call to gen_x86_movsicc_0_m1.
20347
20348 2010-01-28  Richard Guenther  <rguenther@suse.de>
20349
20350         PR tree-optimization/42871
20351         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
20352
20353 2010-01-28  Richard Guenther  <rguenther@suse.de>
20354
20355         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
20356         into call arguments.
20357
20358 2010-01-28  Richard Guenther  <rguenther@suse.de>
20359
20360         PR middle-end/42883
20361         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
20362         the forwarder if the destination is an EH landing pad.
20363
20364 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
20365
20366         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
20367         block list passed to gimple_duplicate_sese_tail.
20368         (parallelize_loops): Avoid parallelization when the function
20369         has_nonlocal_label.
20370         Avoid parallelization when the preheader is IRREDUCIBLE.
20371         Try to optimize when estimated_loop_iterations_int is unresolved.
20372         Add the loop's location to the dump file.
20373         * tree-cfg.c (add_phi_args_after_redirect): Remove.
20374         (gimple_duplicate_sese_tail): Remove the check for the latch.
20375         Redirect nexits to the exit block.
20376         Remove handling of the incoming edges to the latch.
20377         Redirect the backedge from the copied latch to the exit bb.
20378
20379 2010-01-28  Michael Matz  <matz@suse.de>
20380
20381         PR target/42881
20382         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
20383         Wrap force_reg into a sequence, emit it before user.
20384
20385 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
20386
20387         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
20388         (arm_rev): New.
20389         (arm_legacy_rev): Likewise.
20390         (thumb_legacy_rev): Likewise.
20391
20392 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
20393
20394         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
20395         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
20396         on MEM's address failed, try avoid_constant_pool_reference and
20397         recurse if it returned something different.
20398         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
20399         address, try avoid_constant_pool_reference and recurse if it
20400         returned something different.
20401         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
20402         address and avoid_constant_pool_reference returned something
20403         different, don't set have_address.
20404
20405 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
20406
20407         PR debug/42861
20408         * var-tracking.c (val_store): Add modified argument, obey it.
20409         Adjust callers.
20410         (count_uses): Move down logging of main.
20411         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
20412         don't need resolution.
20413         (emit_notes_in_bb): Likewise.
20414
20415 2010-01-27  Richard Guenther  <rguenther@suse.de>
20416
20417         PR middle-end/42878
20418         * tree-inline.c (remap_decl): Delay remapping of SSA name
20419         default definitions until we need them.
20420
20421 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
20422
20423         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20424         (rs6000_delegitimize_address): New function.
20425
20426         * config/s390/s390.c (s390_delegitimize_address): Call
20427         delegitimize_mem_from_attrs.
20428
20429         PR middle-end/42874
20430         * tree-inline.c (cannot_copy_type_1): Removed.
20431         (copy_forbidden): Don't forbid copying of functions containing
20432         records/unions with variable length fields.
20433
20434 2010-01-27  Christian Bruel  <christian.bruel@st.com>
20435
20436         Revert:
20437         PR target/42841
20438         * config/sh/sh.c (find_barrier): Increase length for non delayed
20439         conditional branches.
20440
20441 2010-01-27  Matthias Klose  <doko@ubuntu.com>
20442
20443         * configure.ac (gnu-unique-object): Fix ldd version check.
20444         * configure: Regenerate.
20445
20446 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20447
20448         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
20449         HAVE_GNU_AS value.
20450         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
20451         Test for HAVE_GNU_AS value.
20452
20453 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20454
20455         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
20456         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
20457         INT64_TYPE): Define.
20458         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
20459         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
20460         INT_LEAST64_TYPE): Define.
20461         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
20462         UINT_LEAST64_TYPE): Define.
20463         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
20464         INT_FAST64_TYPE): Define.
20465         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
20466         UINT_FAST64_TYPE): Define.
20467         (INTMAX_TYPE, UINTMAX_TYPE): Define.
20468         (INTPTR_TYPE, UINTPTR_TYPE): Define.
20469         (SIG_ATOMIC_TYPE): Define.
20470
20471 2010-01-26  Richard Guenther  <rguenther@suse.de>
20472
20473         * df-scan.c (df_scan_set_bb_info): Remove assert.
20474         (df_insn_rescan_debug_internal): Merge asserts.
20475         (df_install_ref): Likewise.
20476         (df_mark_reg): Use bitmap_set_range.
20477         (df_hard_reg_used_p): Remove assert.
20478         (df_hard_reg_used_count): Likewise.
20479
20480 2010-01-26  Richard Guenther  <rguenther@suse.de>
20481
20482         PR rtl-optimization/42685
20483         * web.c (web_main): Ignore DEBUG_INSNs.
20484
20485 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
20486
20487         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
20488
20489         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
20490         Fix types of fndecl and arglist parameters.
20491
20492 2010-01-26  Richard Guenther  <rguenther@suse.de>
20493
20494         PR middle-end/42806
20495         * tree-eh.c (unsplit_eh): Skip debug insns.
20496
20497 2010-01-26  Richard Guenther  <rguenther@suse.de>
20498
20499         PR tree-optimization/42250
20500         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
20501
20502 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
20503
20504         PR fortran/42866
20505         * omp-low.c (expand_omp_sections): Only use single_pred if
20506         l2_bb is single_pred_p.
20507
20508 2010-01-25  Christian Bruel  <christian.bruel@st.com>
20509
20510         PR target/42841
20511         * config/sh/sh.c (find_barrier): Increase length for non delayed
20512         conditional branches.
20513         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
20514
20515 2010-01-24  David S. Miller  <davem@davemloft.net>
20516
20517         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
20518         define if not using GAS.
20519         * config/sparc/sparc.c (sparc_elf_asm_named_section):
20520         Likewise.  Delete SECTION_MERGE code, which is only applicable
20521         when using GAS.
20522
20523 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
20524
20525         PR c++/42748
20526         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
20527         mangling of va_list in system headers.
20528
20529 2010-01-23  Toon Moene  <toon@moene.org>
20530
20531         * tree-predcom.c (combine_chains): Return NULL, not false.
20532
20533 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
20534
20535         * tree-loop-distribution.c (distribute_loop): Fix declaration and
20536         initialization of variable res to agree with return type.
20537
20538 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
20539
20540         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
20541         * tree-sra.c: Add include of expr.h.
20542
20543 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
20544
20545         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
20546         insert the debug stmt on the single non-EH edge from the stmt.
20547
20548 2010-01-22  Richard Henderson  <rth@redhat.com>
20549
20550         PR tree-opt/42833
20551         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
20552         the RHS until after generate_subtree_copies has insertted its
20553         code before the current statement.
20554
20555 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
20556
20557         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
20558
20559         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
20560
20561 2010-01-21  Martin Jambor  <mjambor@suse.cz>
20562
20563         PR tree-optimization/42585
20564         * tree-sra.c (struct access): New field grp_total_scalarization.
20565         (dump_access): Dump the new field.
20566         (should_scalarize_away_bitmap): New variable.
20567         (cannot_scalarize_away_bitmap): Likewise.
20568         (sra_initialize): Allocate new bitmaps.
20569         (sra_deinitialize): Free new bitmaps.
20570         (create_access_1): New function.
20571         (create_access): Parts moved to create_access_1.
20572         (type_consists_of_records_p): New function.
20573         (completely_scalarize_record): Likewise.
20574         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
20575         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
20576         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
20577         access.
20578         (analyze_all_variable_accesses): Completely scalarize small eligible
20579         records.
20580
20581 2010-01-21  Martin Jambor  <mjambor@suse.cz>
20582
20583         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
20584
20585 2010-01-21  Andrew Haley  <aph@redhat.com>
20586
20587         * gcc.c (process_command): Move lang_specific_driver before
20588         setting cc_libexec_prefix.
20589
20590 2010-01-21  Richard Guenther  <rguenther@suse.de>
20591
20592         PR middle-end/19988
20593         * fold-const.c (negate_expr_p): Pretend only negative
20594         real constants are easily negatable.
20595
20596 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
20597             Jason Merrill  <jason@redhat.com>
20598
20599         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
20600         (TYPE_TRANSPARENT_AGGR): this, for union and record.
20601         * calls.c (initialize argument_information): Handle it.
20602         * c-common.c (handle_transparent_union_attribute): Use new name.
20603         * c-decl.c (finish_struct): Ditto.
20604         * c-typeck.c (type_lists_compatible_p): Ditto.
20605         (convert_for_assignment): Use new name and also handle record.
20606         * function.c (aggregate_value_p): Handle it.
20607         (pass_by_reference): Ditto.
20608         (assign_parm_data_types): Ditto.
20609         * print-tree.c (print_node): Ditto.
20610         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
20611         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
20612         * tree.c (first_field): New fn.
20613
20614 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
20615
20616         PR target/42818
20617         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
20618         even when linking statically, for now.
20619
20620 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
20621
20622         PR debug/42715
20623         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
20624         without a cselib val.
20625         (count_uses): Accept MO_VAL_SET with no val on stores.
20626         (add_stores): Likewise.
20627
20628 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20629
20630         * var-tracking.c (check_value_val): Add a compile time assertion.
20631         (dv_is_decl_p): Simplify.
20632         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
20633         gcc_assert if ENABLE_CHECKING.
20634
20635 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
20636
20637         PR debug/42782
20638         * var-tracking.c: Include tree-flow.h.
20639         (mem_dies_at_call): New.
20640         (dataflow_set_preserve_mem_locs): Use it.
20641         (dataflow_set_remove_mem_locs): Likewise.
20642         (dump_var): Renamed from dump_variable.  Adjust all callers.
20643         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
20644         * Makefile.in (var-tracking.o): Adjust deps.
20645
20646 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
20647
20648         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
20649
20650 2010-01-20  Richard Guenther  <rguenther@suse.de>
20651
20652         PR tree-optimization/42717
20653         * tree-ssa-dce.c (get_live_post_dom): Remove.
20654         (forward_edge_to_pdom): Take an arbitrary edge to copy
20655         degenerate PHI args from.
20656         (remove_dead_stmt): Use the first post-dominator even if it
20657         does not contain live statements as redirection destination.
20658
20659 2010-01-20  Richard Guenther  <rguenther@suse.de>
20660
20661         * tree-inline.c (estimate_num_insns): Handle EH builtins.
20662
20663 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20664
20665         * sel-sched.c (create_speculation_check): Remove set but not used
20666         variable twin.
20667         (try_transformation_cache): Remove set but not used variable ds.
20668         (calculate_privileged_insns): Remove set but not used variables
20669         cur_insn and min_spec_insn.
20670         (find_best_expr): Remove set but not used variable avail_n.
20671         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
20672         variable e.
20673         * cgraphunit.c (assemble_thunk): Remove set but not used variable
20674         false_label.
20675         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
20676         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
20677         new_scop_exit_edge.
20678
20679 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
20680
20681         PR bootstrap/42786
20682         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
20683         cpu types.  Add support for *-sse3 cpu types.
20684         (x86_64-*-*): Ditto.
20685
20686 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20687
20688         PR middle-end/42803
20689         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
20690         argument, call initializer_constant_valid_p_1 instead of
20691         initializer_constant_valid_p, pass CACHE to it, return NULL
20692         immediately if first call returns NULL.
20693         (initializer_constant_valid_p_1): New function.
20694         (initializer_constant_valid_p): Use it.
20695
20696 2010-01-20  Thomas Quinot  <quinot@adacore.com>
20697
20698         * tree.def (PLACEHOLDER_EXPR): Fix comment.
20699
20700 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20701
20702         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
20703         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
20704         (loc_list_from_tree): Don't handle unsigned division.  Handle
20705         signed modulo using DW_OP_{over,over,div,mul,minus}.
20706         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
20707         modulo instead of signed.
20708
20709 2010-01-20  DJ Delorie  <dj@redhat.com>
20710
20711         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
20712         (Fpa): Pass it
20713         (h8300_emit_stack_adjustment): Propogate it.
20714         (push): Pass it.
20715         (h8300_expand_prologue): Likewise.
20716         (h8300_expand_epilogue): Likewise.
20717
20718 2010-01-19  Michael Matz  <matz@suse.de>
20719
20720         PR tree-optimization/41783
20721         * tree-data-ref.c (toplevel): Include flags.h.
20722         (dump_data_dependence_relation):  Also dump the inputs if the
20723         result will be unknown.
20724         (split_constant_offset_1): Look through some conversions.
20725         * tree-predcom.c (determine_roots_comp): Restart a new chain if
20726         the offset from last element is too large.
20727         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
20728         (reassociate_to_the_same_stmt): Handle vector registers.
20729         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
20730         (e.g. conversions).
20731         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
20732         wide_prolog_niters argument, emit widening instructions.
20733         (vect_do_peeling_for_alignment): Adjust caller, use widened
20734         variant of the iteration cound.
20735         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
20736
20737 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20738
20739         PR target/38697
20740         * config/arm/neon-testgen.m (emit_automatics): New parameter
20741         features. Adjust for Fixed_return_reg feature.
20742         (test_intrinsic): Call emit_automatics with new feature.
20743         * config/arm/neon.ml: Update copyright years.
20744         (features): New Fixed_return_reg feature.
20745         (ops): Update feature for Vget_low.
20746
20747 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
20748
20749         PR tree-optimization/42719
20750         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
20751         stmt uses.
20752
20753         PR debug/42728
20754         * fwprop.c (all_uses_available_at): Return false if def_set dest
20755         is a REG that is used in def_insn.
20756
20757 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
20758
20759         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
20760
20761         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
20762         Add argument names.
20763
20764         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
20765
20766         * target.h (struct gcc_target) <secondary_reload>: Change type
20767         of last argument to secondary_reload_info *.
20768
20769 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
20770
20771         PR target/42774
20772         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
20773         memory references with unaligned offsets.  Remove CQImode handling.
20774         (unaligned_memory_operand): Return 1 for memory references with
20775         unaligned offsets.  Remove CQImode handling.
20776
20777 2010-01-18  Richard Guenther  <rguenther@suse.de>
20778
20779         PR middle-end/39954
20780         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
20781         builtin calls.
20782
20783 2010-01-18  Richard Guenther  <rguenther@suse.de>
20784
20785         PR tree-optimization/42781
20786         * tree-ssa-structalias.c (find_what_var_points_to): Skip
20787         restrict processing only if the original variable was artificial.
20788
20789 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
20790
20791         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
20792         find number of popped argument bytes.
20793
20794         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
20795         Fix the text that describes the return value for invalid insns.
20796
20797         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
20798
20799         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
20800         Clarify what 'cost of the -dependence' is.  Fix quoting.
20801
20802         * toplev.c (default_get_pch_validity): Rename argument to "sz".
20803         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
20804
20805 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
20806
20807         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
20808         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
20809
20810 2010-01-17  Richard Guenther  <rguenther@suse.de>
20811
20812         PR middle-end/42248
20813         * function.c (split_complex_args): Take a VEC to modify.
20814         (assign_parms_augmented_arg_list): Build a VEC instead of
20815         a chain of PARM_DECLs.
20816         (assign_parms_unsplit_complex): Take a VEC of arguments.
20817         Do not fixup unmodified parms.
20818         (assign_parms): Deal with the VEC.
20819         (gimplify_parameters): Likewise.
20820
20821 2010-01-17  Richard Guenther  <rguenther@suse.de>
20822
20823         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
20824         node existence check.
20825         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
20826         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
20827         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
20828         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
20829         (gimple_execute_on_growing_pred): Likewise.
20830
20831 2010-01-17  Richard Guenther  <rguenther@suse.de>
20832
20833         PR tree-optimization/42773
20834         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
20835         (compute_antic_aux): Likewise.
20836         (compute_partial_antic_aux): Likewise.
20837
20838 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
20839
20840         PR debug/42767
20841         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
20842         and US_TRUNCATE.
20843
20844 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
20845
20846         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
20847         appearance.
20848
20849         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
20850         Fix markup for strict argument.
20851
20852         (TARGET_SCHED_REORDER2): Fix argument types.
20853
20854         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
20855         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
20856
20857         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
20858         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
20859
20860         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
20861         Add argument name.
20862
20863         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
20864         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
20865         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
20866         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
20867         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
20868
20869         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
20870
20871         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
20872
20873         (TARGET_ASM_RELOC_RW_MASK): Add return type.
20874         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
20875
20876         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
20877
20878         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
20879         Use prototype.
20880
20881         (TARGET_ASM_NAMED_SECTION): Fix argument list.
20882
20883         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
20884         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
20885
20886         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
20887
20888         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
20889
20890         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
20891         referring to it.  Fix language.
20892
20893         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
20894
20895         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
20896
20897         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
20898
20899         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
20900
20901         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
20902         '@var{stream}.  Remove stray 'and'.
20903
20904         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
20905
20906         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
20907
20908         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
20909
20910         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
20911         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
20912
20913         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
20914         Fix description of return value.
20915         Rename argument "sz" to "len."
20916
20917         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
20918         Clarify meaning of 'true' return value.
20919
20920         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
20921
20922         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
20923         rep_mode versus mode_rep.
20924
20925         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
20926
20927         (TARGET_BUILTIN_DECL): Fix name.
20928
20929         (TARGET_COMMUTATIVE_P): Fix type of first argument.
20930
20931         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
20932
20933         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
20934
20935         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
20936
20937         (TARGET_RELAXED_ORDERING): Use @deftypevr.
20938
20939         (TARGET_GET_DRAP_RTX): Note that this is a hook.
20940         Clarify language.
20941
20942         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
20943         Rename argument tm_fn to md_fn.
20944
20945         (TARGET_OPTION_PRINT): Fix argument list.
20946
20947 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
20948
20949         PR target/42664
20950         * config/i386/i386.c (ix86_fixup_binary_operands):
20951         Revert FMA4 fixup of operands.
20952
20953 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20954
20955         PR gcc/42525
20956         * Makefile.in (write_entries_to_file, install-plugin):
20957         Use \012 instead of \n with tr.
20958
20959 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
20960
20961         * configure.ac (HAVE_AS_REF): New C macro.
20962         * configure: Regenerate.
20963         * config.in: Likewise.
20964         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
20965         if HAVE_AS_REF.
20966         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
20967         if HAVE_AS_REF.
20968
20969 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
20970
20971         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
20972
20973         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
20974
20975         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
20976
20977         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
20978
20979         (TARGET_IN_SMALL_DATA_P): Fix argument type.
20980
20981         (TARGET_BINDS_LOCAL_P): Fix argument type.
20982
20983         (TARGET_ASM_FILE_END): Use prototype.
20984
20985         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
20986
20987         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
20988
20989         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
20990
20991         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
20992
20993         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
20994         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
20995
20996         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
20997         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
20998
20999         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
21000         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
21001         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
21002         (TARGET_ADDR_SPACE_CONVERT): Likewise.
21003
21004         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
21005
21006         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
21007
21008         (TARGET_INIT_BUILTINS): Use prototype.
21009
21010         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
21011         Put 'const char *' in braces.  Fix parameter types.
21012         (TARGET_INVALID_CONVERSION): Fix parameter types.
21013         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
21014         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
21015
21016         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
21017         Fix argument type.
21018
21019         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
21020
21021         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
21022
21023 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
21024
21025         * doc/tm.texi (TARGET_HELP): Fix return type.
21026
21027         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
21028         in braces.  Fix argument types.
21029
21030         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
21031
21032         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
21033
21034         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
21035
21036         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
21037         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
21038
21039         (TARGET_MANGLE_TYPE): Fix argument types.
21040
21041         (TARGET_IRA_COVER_CLASSES): Use prototype.
21042
21043         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
21044
21045         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
21046
21047         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
21048
21049         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
21050
21051         (TARGET_CALLEE_COPIES): Fix argument types.
21052
21053         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
21054
21055         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
21056
21057         (TARGET_FUNCTION_VALUE): Fix argument types.
21058
21059         (TARGET_RETURN_IN_MSB): Fix argument type.
21060
21061         (TARGET_RETURN_IN_MEMORY): Fix argument types.
21062
21063         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
21064
21065         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
21066
21067         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
21068         agree with return type.
21069
21070         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
21071
21072 2010-01-15  Jing Yu  <jingyu@google.com>
21073
21074         PR rtl-optimization/42691
21075         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
21076         a pseudo to a constant and are merged, and adjust comments.
21077
21078 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21079
21080         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
21081
21082 2010-01-15  Richard Guenther  <rguenther@suse.de>
21083
21084         PR middle-end/42739
21085         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
21086         labels of computed or non-local gotos to the destination.
21087         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
21088         landing pad label is the first label.
21089
21090 2010-01-15  Richard Guenther  <rguenther@suse.de>
21091
21092         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
21093
21094 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21095
21096         PR target/42747
21097         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
21098         to allow generation of the xssqrtdp instruction on power7.
21099         (sqrtdf2_fpr): Ditto.
21100
21101 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21102
21103         PR middle-end/42674
21104         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
21105         functions with noreturn attribute.
21106
21107         PR c++/42608
21108         * varasm.c (declare_weak): Add weak attribute to decl if it
21109         doesn't have one already.
21110         (assemble_external): Only add decls to weak_decls if they also
21111         have weak attribute.
21112
21113 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
21114
21115         * var-tracking.c (var_reg_delete): Don't delete the association
21116         between REGs and values or one-part variables if the register
21117         isn't clobbered.
21118
21119 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21120
21121         PR debug/42657
21122         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
21123         because its first operand is a non-localized variable.
21124
21125 2010-01-14  Martin Jambor  <mjambor@suse.cz>
21126
21127         PR tree-optimization/42706
21128         * tree-sra.c (encountered_recursive_call): New variable.
21129         (encountered_unchangable_recursive_call): Likewise.
21130         (sra_initialize): Initialize both new variables.
21131         (callsite_has_enough_arguments_p): New function.
21132         (scan_function): Call decl and flags check only for IPA-SRA, check
21133         whether there is a recursive call and whether it has enough arguments.
21134         (all_callers_have_enough_arguments_p): New function.
21135         (convert_callers): Look for recursive calls only when
21136         encountered_recursive_call is set.
21137         (ipa_early_sra): Bail out either if
21138         !all_callers_have_enough_arguments_p or
21139         encountered_unchangable_recursive_call.
21140
21141 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21142
21143         * sel-sched.c: Add 2010 to copyright years.
21144         * sel-sched-ir.c: Likewise.
21145         * sel-sched-ir.h: Likewise.
21146
21147 2010-01-14  Martin Jambor  <mjambor@suse.cz>
21148
21149         PR tree-optimization/42714
21150         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
21151         constructors specially.
21152
21153 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21154
21155         * config/i386/drivers-i386.c (detect_caches_intel):
21156         Add l2sizekb parameter and fill in.
21157         (host_detect_local_cpu): Add l2sizekb, fill in.
21158         Add Atom small cache heuristic.
21159
21160 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21161
21162         * config/i386/drivers-i386.c (detect_caches_cpuid4):
21163         Add level3 parameter and fill in.
21164         (detect_caches_intel): Handle level3 cache.
21165
21166 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21167
21168         * config/i386/drivers-i386.c (host_detect_local_cpu):
21169         Fix core duo detection.
21170
21171 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21172
21173         * config/i386/drivers-i386.c (host_detect_local_cpu):
21174         Fix Atom detection.
21175
21176 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21177
21178         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
21179         (rs6000_variable_issue_1): this.  Use...
21180         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
21181
21182 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21183
21184         * sel-sched-ir.c (sel_restore_other_notes): Rename to
21185         sel_restore_notes.  Update all callers.  Call reemit_notes
21186         for all insns.
21187
21188 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21189
21190         PR rtl-optimization/42246
21191         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
21192         loops.
21193
21194 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21195
21196         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
21197         all successors is the same as number of successors in current region.
21198
21199 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21200
21201         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
21202         to rename is not separable.  Otherwise check that its LHS is not NULL.
21203
21204 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21205
21206         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
21207
21208 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21209
21210         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
21211         available registers when failed to discover LHS register class.
21212         Fix indentation.  Update comment.
21213
21214 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21215             Alexander Monakov  <amonakov@ispras.ru>
21216
21217         PR rtl-optimization/42389
21218         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
21219         to can_issue_more.
21220         (advance_state_on_fence): Likewise.
21221         (sel_target_adjust_priority): Print debug output only when
21222         sched_verbose >= 4, not 2.
21223         (get_expr_cost): Do not issue all unique insns on the next cycle.
21224         (fill_insns): Initialize can_issue_more from the value saved
21225         with the fence.
21226         * sel-sched-ir.c (flist_add): New parameter issue_more.
21227         Init FENCE_ISSUE_MORE with it.
21228         (merge_fences): Likewise.
21229         (init_fences): Update call to flist_add.
21230         (add_to_fences, add_clean_fence_to_fences)
21231         (add_dirty_fence_to_fences): Likewise.
21232         (move_fence_to_fences): Update call to merge_fences.
21233         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
21234         sched groups.
21235         * sel-sched-ir.h (struct _fence): New field issue_more.
21236         (FENCE_ISSUE_MORE): New accessor macro.
21237
21238 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21239
21240         PR rtl-optimization/42388
21241         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
21242         that have no predecessors nor successors.  Do not call move_bb_info
21243         for empty blocks outside of current region.
21244
21245 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21246
21247         PR rtl-optimization/42294
21248         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
21249         * sel-sched.c (move_exprs_to_boundary): Transitively add all
21250         originators' originators.
21251
21252 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21253
21254         PR rtl-optimization/39453
21255         PR rtl-optimization/42246
21256         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
21257         for pipelining_p.
21258         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
21259
21260 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21261             Alexander Monakov  <amonakov@ispras.ru>
21262
21263         PR middle-end/42245
21264         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
21265         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
21266         argument.  Update all callers.
21267         (tidy_control_flow): ... and here.  Recompute topological order
21268         of basic blocks in region if necessary.
21269         (sel_redirect_edge_and_branch): Change return type.  Return true
21270         if topological order might have been invalidated.
21271         (purge_empty_blocks): Export and move from...
21272         * sel-sched.c (purge_empty_blocks): ... here.
21273         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
21274         (maybe_tidy_empty_bb): Delete prototype.
21275         (purge_empty_blocks): Declare.
21276
21277 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21278
21279         PR rtl-optimization/42249
21280         * sel-sched.c (try_replace_dest_reg): When chosen register
21281         and original register is the same, do not bail out early, but
21282         still check all original insns for validity of replacing destination
21283         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
21284         in this case.
21285
21286 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21287
21288         PR c/42721
21289         Port from no-undefined-overflow branch:
21290         2009-03-09  Richard Guenther  <rguenther@suse.de>
21291
21292         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
21293
21294 2010-01-14  Richard Guenther  <rguenther@suse.de>
21295
21296         PR lto/42665
21297         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
21298
21299 2010-01-14  Ira Rosen  <irar@il.ibm.com>
21300
21301         PR tree-optimization/42709
21302         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
21303         as scalar type in creation of constant vector operand.
21304
21305 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21306
21307         PR testsuite/42414
21308         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
21309         (check-parallel-%): Match `testsuite' directory component only
21310         at the end.
21311
21312 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
21313
21314         PR translation/39521
21315         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
21316         strings with _().
21317
21318 2010-01-13  Richard Guenther  <rguenther@suse.de>
21319
21320         PR tree-optimization/42730
21321         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
21322         offset zero.
21323
21324 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
21325
21326         PR target/pr42542
21327         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
21328         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
21329         them signed.
21330
21331 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
21332
21333         * config/bfin/libgcc-bfin.ver: Regenerate based on current
21334         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
21335         ___umulsi3_highpart.
21336
21337         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
21338         rather than schedule_insns if the pass is enabled.
21339
21340 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21341
21342         PR tree-optimization/42704
21343         * tree-sra.c (sra_modify_assign): Do not delete assignments to
21344         SSA_NAMEs.
21345
21346 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21347
21348         PR tree-optimization/42703
21349         * tree-sra.c (analyze_access_subtree): Check that we can build a
21350         reference to the original data within the aggregate.
21351
21352 2010-01-13  Richard Guenther  <rguenther@suse.de>
21353
21354         PR tree-optimization/42705
21355         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
21356
21357 2010-01-13  Richard Guenther  <rguenther@suse.de>
21358
21359         PR middle-end/42716
21360         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
21361
21362 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21363
21364         PR debug/41371
21365         * var-tracking.c (values_to_unmark): New variable.
21366         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21367         values_to_unmark vector.  Moved body to...
21368         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21369         instead queue it into values_to_unmark vector.
21370         (vt_find_locations): Free values_to_unmark vector.
21371
21372 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
21373
21374         * config/s390/s390.c (override_options): Set
21375         default of max-pending-list-length to 256
21376
21377 2010-01-13  Richard Guenther  <rguenther@suse.de>
21378
21379         PR lto/42678
21380         * tree-pass.h (PROP_gimple_lcx): New.
21381         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
21382         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
21383         before the final cleanup_eh.
21384         (dump_properties): Dump PROP_gimple_lcx.
21385         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
21386         (tree_lower_complex_O0): Remove.
21387         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
21388         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
21389         tree_lower_complex, schedule TODO_update_ssa.
21390         * lto-streamer-out.c (output_function): Stream the functions
21391         properties.
21392         * lto-streamer-in.c (input_function): Likewise.
21393         (lto_read_body): Do not override them here.
21394
21395 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
21396
21397         PR c/42708
21398         * c-typeck.c (build_c_cast): Fold value cast to union type before
21399         wrapping it in a CONSTRUCTOR.
21400
21401 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
21402
21403         PR rtl-optimization/42699
21404         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
21405         involved.
21406
21407 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21408
21409         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21410         SUBTARGET_WARN_UNUSED_SPEC): Move ...
21411         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21412         SUBTARGET_WARN_UNUSED_SPEC): ... here
21413         * config/mips/iris5.h (LIBGCC_SPEC): Define.
21414
21415 2010-01-12  Julian Brown  <julian@codesourcery.com>
21416
21417         * config/arm/neon-schedgen.ml (Utils): Don't try to
21418         open missing module.
21419         (find_with_result): New.
21420
21421 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
21422
21423         PR debug/42662
21424         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
21425         sharing when canonicalizing ({lt,ge}u (plus a b) b).
21426
21427         PR tree-optimization/42645
21428         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
21429         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
21430         decl_map, set processing_debug_stmt to -1 and return name without
21431         any remapping.
21432
21433 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
21434
21435         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
21436         binutils version, and reword target configuration description.
21437
21438 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
21439
21440         * config/avr/avr.h (LINKER_NAME): Remove.
21441
21442 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
21443
21444         PR target/42416
21445         * config/rs6000/rs6000.c (rs6000_override_options): On targets
21446         that support VSX, warn for -mno-altivec if vsx is not disabled,
21447         and disable vsx.
21448
21449 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
21450             Shujing Zhao  <pearly.zhao@oracle.com>
21451
21452         PR translation/42469
21453         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
21454         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
21455         character between option name and help text.
21456         * c.opt (imultilib): Likewise.
21457
21458 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
21459
21460         * lto-streamer-out.c (output_unreferenced_globals): Output static
21461         variables.
21462
21463 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
21464
21465         PR rtl-optimization/42621
21466         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
21467         optimizing for size.
21468         (duplicate_computed_gotos): Remove now-redundant check.
21469
21470 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
21471
21472         PR target/37454
21473         * configure.ac: Save and restore LDFLAGS and LIBS
21474         * configure: Regenerate.
21475
21476 2010-01-10  Richard Guenther  <rguenther@suse.de>
21477
21478         PR middle-end/42667
21479         * builtins.c (fold_builtin_strlen): Add type argument and
21480         convert the resulting length to it.
21481         (fold_builtin_1): Adjust.
21482
21483 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
21484
21485         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
21486         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
21487         1 insn.
21488         (num_insns_constant_wide): Adjust for that change.
21489
21490 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21491
21492         PR debug/42631
21493         * web.c (union_defs): Add used argument, to combine uses of
21494         uninitialized regs.
21495         (entry_register): Adjust type and tests of used argument.
21496         (web_main): Widen used for new use.  Pass it to union_defs.
21497         * df.h (union_defs): Adjust prototype.
21498
21499 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21500
21501         PR debug/42630
21502         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
21503         uses in new incoming argument.  Free body.
21504         (reset_debug_uses_in_loop): New.
21505         (analyze_insn_to_expand_var): Call the latter if the former found
21506         anything.  Fix whitespace.  Reject invalid dest overlaps before
21507         going through all insns in the loop.
21508
21509 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21510
21511         PR debug/42629
21512         * haifa-sched.c (dying_use_p): Debug insns don't count.
21513
21514 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21515
21516         PR middle-end/42363
21517         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
21518         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
21519         (verify_gimple_call): Reject LHS in noreturn calls.
21520
21521 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21522
21523         PR debug/42604
21524         PR debug/42395
21525         * tree-vect-loop-manip.c (adjust_info): New type.
21526         (adjust_vec): New pointer to vector.
21527         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
21528         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
21529         (slpeel_update_phis_for_duplicate_loop): Use them.
21530         (slpeel_update_phi_nodes_for_guard1): Likewise.
21531         (slpeel_update_phi_nodes_for_guard2): Likewise.
21532         (slpeel_tree_peel_loop_to_edge): Likewise.
21533         (vect_update_ivs_after_vectorizer): Likewise.
21534
21535 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21536
21537         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
21538         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
21539
21540 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21541
21542         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
21543         bogus uninitialized warning.
21544
21545 2010-01-09  Richard Guenther  <rguenther@suse.de>
21546
21547         PR middle-end/42512
21548         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
21549         the evolution is compatible with the initial condition.
21550
21551 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
21552
21553         * gcc.c (process_command): Update copyright notice dates.
21554         * gcov.c (print_version): Likewise.
21555         * gcov-dump.c (print_version): Likewise.
21556         * mips-tfile.c (main): Likewise.
21557         * mips-tdump.c (main): Likewise.
21558
21559 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
21560
21561         PR target/41885
21562         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
21563         (rotlhi3): Delete.
21564         (rotlhi3_8): Delete.
21565         (rotlsi3): Delete.
21566         (rotlsi3_8): Delete.
21567         (rotlsi3_16): Delete.
21568         (rotlsi3_24): Delete.
21569         (rotl<mode>3): New.
21570         (*rotw<mode>3): New.
21571         (*rotb<mode>3): New.
21572         * config/avr/avr.c (avr_rotate_bytes): New function.
21573         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
21574
21575 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
21576
21577         PR target/37454
21578         * configure.ac: Modify -rdynamic check.
21579         * configure: Regenerate.
21580
21581 2010-01-08  DJ Delorie  <dj@redhat.com>
21582
21583         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
21584         register popping order.
21585
21586 2010-01-08  Richard Guenther  <rguenther@suse.de>
21587
21588         PR lto/42528
21589         * c.opt (fsigned-char): Also let LTO handle this option.
21590         (funsigned-char): Likewise.
21591
21592 2010-01-07  Richard Guenther  <rguenther@suse.de>
21593
21594         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
21595         (gimple_op): Likewise.
21596         (gimple_op_ptr): Likewise.
21597         (gimple_assign_set_lhs): Remove gcc_assert.
21598         (gimple_assign_set_rhs1): Likewise.
21599         (gimple_assign_set_rhs2): Likewise.
21600         (gimple_call_set_lhs): Likewise.
21601         (gimple_call_set_fn): Likewise.
21602         (gimple_call_set_fndecl): Likewise.
21603         (gimple_call_fndecl): Likewise.
21604         (gimple_call_return_type): Likewise.
21605         (gimple_call_set_chain): Likewise.
21606         (gimple_call_num_args): Likewise.
21607         (gimple_call_set_arg): Likewise.
21608         (gimple_cond_set_code): Likewise.
21609         (gimple_cond_set_lhs): Likewise.
21610         (gimple_cond_set_rhs): Likewise.
21611         (gimple_cond_set_true_label): Likewise.
21612         (gimple_cond_set_false_label): Likewise.
21613         (gimple_label_set_label): Likewise.
21614         (gimple_goto_set_dest): Likewise.
21615         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
21616         (gimple_debug_bind_get_value): Likewise.
21617         (gimple_debug_bind_get_value_ptr): Likewise.
21618         (gimple_debug_bind_set_var): Likewise.
21619         (gimple_debug_bind_set_value): Likewise.
21620         (gimple_debug_bind_reset_value): Likewise.
21621         (gimple_debug_bind_has_value_p): Likewise.
21622         (gimple_return_retval_ptr): Remove gcc_assert.
21623         (gimple_return_retval): Likewise.
21624         (gimple_return_set_retval): Likewise.
21625         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
21626         (safe_referenced_var_iterator): Remove.
21627         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
21628         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
21629         (fill_referenced_var_vec): Remove.
21630         (first_readonly_imm_use): Remove redundant gcc_assert.
21631         (phi_arg_index_from_use): Combine gcc_asserts.
21632         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
21633         (first_imm_use_stmt): Remove redundant gcc_assert.
21634         * tree-cfg.c (verify_gimple_call): Verify function and chain
21635         operands.  Verify arguments.
21636         (verify_types_in_gimple_stmt): Verify condition code and labels.
21637
21638 2010-01-07  Richard Guenther  <rguenther@suse.de>
21639
21640         PR tree-optimization/42641
21641         * sese.c (rename_map_elt_info): Use the SSA name version, do
21642         not hash pointers.
21643
21644 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
21645
21646         PR tree-optimization/42625
21647         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
21648         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
21649
21650 2010-01-07  Duncan Sands  <baldrick@free.fr>
21651
21652         * Makefile.in (PLUGIN_HEADERS): Add version.h.
21653
21654 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
21655
21656         PR target/42511
21657         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
21658         note itself is not function_invariant_p.
21659
21660 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
21661
21662         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
21663         Do not add the DF_NOTE problem.
21664         * store-motion.c (execute_rtl_store_motion): Likewise.
21665
21666 2010-01-07  Martin Jambor  <mjambor@suse.cz>
21667
21668         PR tree-optimization/42157
21669         * tree-sra.c (compare_access_positions): Stabilize sort if both
21670         accesses have integer types, return zero immediately if they are the
21671         same.
21672
21673 2010-01-06  Richard Henderson  <rth@redhat.com>
21674
21675         PR middle-end/41883
21676         * haifa-sched.c (add_to_note_list): Merge into ...
21677         (concat_note_lists): ... here, and ...
21678         (unlink_other_notes, rm_other_notes): Merge into...
21679         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
21680         NOTE_INSN_EPILOGUE_BEG.
21681
21682 2010-01-06  Richard Guenther  <rguenther@suse.de>
21683
21684         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
21685         not inline regular functions into always-inline functions.
21686
21687 2010-01-06  Nick Clifton  <nickc@redhat.com>
21688
21689         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
21690         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
21691         used together.
21692         (OVERRIDE_OPTIONS): Delete.
21693         (OPTIMIZATION_OPTIONS): Define.
21694         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
21695         * config/rx/rx.c (rx_handle_option): Issue an error message if
21696         -mcpu=rx200 and -fpu are used together.
21697         (rx_set_optimization_options): New function.  Issue an error
21698         message if an optimization attribute attempts to reset the FPU/
21699         math optimization pairing.
21700         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
21701         * config/rx/rx.opt: Set the default to 32-bit doubles.
21702         * config/rx/t-rx: Add multilibs for -nofpu option.
21703         * doc/invoke.texi: Update documentation of RX options.
21704
21705 2010-01-06  Richard Guenther  <rguenther@suse.de>
21706
21707         * tree-ssa-pre.c (name_to_id): New global.
21708         (alloc_expression_id): Simplify SSA name handling.
21709         (lookup_expression_id): Likewise.
21710         (init_pre): Zero name_to_id.
21711         (fini_pre): Free it.
21712
21713 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
21714
21715         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
21716
21717 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
21718
21719         PR target/42542
21720         * config/i386/sse.md (smaxv2di3): New.
21721         (umaxv2di3): Likewise.
21722         (sminv2di3): Likewise.
21723         (uminv2di3): Likewise.
21724
21725 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
21726
21727         PR target/42564
21728         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
21729         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
21730         (legitimize_tls_address): Likewise.
21731         (sparc_tls_referenced_p): Likewise.
21732         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
21733         and adjust calls to legitimize_pic_address.
21734         (legitimate_constant_p) Use sparc_tls_referenced_p.
21735         (legitimate_pic_operand_p): Likewise.
21736         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
21737         (sparc_tls_symbol_ref_1): Delete.
21738         (sparc_tls_referenced_p): Make static, recognize specific patterns.
21739         (legitimize_tls_address): Make static, handle CONST patterns.
21740         (legitimize_pic_address): Make static, remove unused parameter and
21741         adjust recursive calls.
21742         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
21743         and adjust call to legitimize_pic_address.
21744         (sparc_output_mi_thunk): Likewise.
21745
21746 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
21747             H.J. Lu  <hongjiu.lu@intel.com>
21748
21749         PR target/42542
21750         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
21751         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
21752         operands to make them signed.
21753
21754         Revert:
21755         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21756
21757         PR target/42542
21758         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
21759         GTU to GT for V4SI and V2DI.
21760
21761         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
21762         (umin<mode>3): Removed.
21763         (uminv8hi3): New.
21764         (uminv4si3): Likewise.
21765
21766 2010-01-05  Martin Jambor  <mjambor@suse.cz>
21767
21768         PR tree-optimization/42462
21769         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
21770         current_function_decl to helper functions and macros.
21771
21772 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21773
21774         PR bootstrap/41771
21775         * flags.h: Don't include real.h.
21776         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
21777         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
21778         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
21779         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
21780         * dominance.c: Update copyright.
21781         * gimple.c (walk_gimple_op): Remove inline.
21782         * tree-ssa-reassoc.c: Include real.h.
21783         * Makefile.in (FLAGS_H): Remove $(REAL_H).
21784         (tree-ssa-reassoc.o): Depend on $(REAL_H).
21785
21786 2010-01-05  Nick Clifton  <nickc@redhat.com>
21787
21788         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
21789         register to push into the stack frame when the accumulator has to
21790         be saved during interrupts.
21791
21792 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
21793
21794         * doc/invoke.texi: Remove the documentation about option
21795         -Wunreachable-code.
21796         * common.opt (Wunreachable-code):  Preserved for backward
21797         compatibility.
21798         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
21799         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
21800         the backward compatibility flag section.
21801
21802 2010-01-05  Richard Guenther  <rguenther@suse.de>
21803
21804         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
21805
21806 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
21807
21808         PR other/42611
21809         * cfgexpand.c (expand_one_var): Diagnose too large variables.
21810
21811         PR tree-optimization/42508
21812         * tree-sra.c (convert_callers): Check for recursive call
21813         by comparing cgraph nodes instead of decls.
21814         (modify_function): Call ipa_modify_formal_parameters also
21815         on all same_body aliases.
21816
21817         * cgraphunit.c (cgraph_materialize_all_clones): Compare
21818         cgraph nodes when checking for same_body aliases.
21819
21820 2010-01-05  Richard Guenther  <rguenther@suse.de>
21821
21822         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
21823         allocation and lookup.
21824         (get_or_alloc_expr_for_constant): Likewise.
21825         (phi_translate): Sink allocation.
21826
21827 2010-01-04  Richard Guenther  <rguenther@suse.de>
21828
21829         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
21830         a new entry only if needed.
21831         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
21832         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
21833         hashtable lookup.
21834         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
21835         the result array.
21836         (phi_translate): Handle CONSTANTs early.
21837
21838 2010-01-04  Martin Jambor  <mjambor@suse.cz>
21839
21840         PR tree-optimization/42398
21841         * tree-sra.c (struct access): Removed flag grp_different_types.
21842         (dump_access): Do not dump the removed flag.
21843         (sort_and_splice_var_accesses): Do not set the removed flag.
21844         (sra_modify_expr): Check for type compatibility directly.
21845
21846 2010-01-04  Martin Jambor  <mjambor@suse.cz>
21847
21848         PR tree-optimization/42366
21849         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
21850         edges with variable number of parameters.
21851         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
21852         flag instead of asserting it.
21853         (ipa_read_node_info): Read uses_analysis_done flag.
21854
21855 2010-01-04  Richard Guenther  <rguenther@suse.de>
21856
21857         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
21858         iterative_hash_* as intended.
21859         (vn_reference_compute_hash): Likewise.  Simplify hashing
21860         SSA names.
21861         (vn_reference_lookup_2): Likewise.
21862         (vn_nary_op_compute_hash): Likewise.
21863         (vn_phi_compute_hash): Likewise.
21864         (expressions_equal_p): Remove strange code.
21865         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
21866         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
21867         (bitmap_insert_into_set_1): Take value-id as parameter.
21868         (add_to_value): Pass it.
21869         (bitmap_insert_into_set): Likewise.
21870         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
21871
21872 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
21873
21874         PR driver/42442
21875         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
21876         (do_self_spec): For switches with SWITCH_IGNORE set set also
21877         SWITCH_IGNORE_PERMANENTLY.
21878         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
21879         of SWITCH_IGNORE.
21880
21881 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
21882
21883         * lto-streamer-out.c (output_unreferenced_globals): Output the full
21884         tree of an unreferenced global var.
21885
21886 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21887
21888         PR target/42542
21889         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
21890         GTU to GT for V4SI and V2DI.
21891
21892         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
21893         (umin<mode>3): Removed.
21894         (uminv8hi3): New.
21895         (uminv4si3): Likewise.
21896
21897 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21898
21899         PR lto/42581
21900         * collect2.c (main): Turn on trace in collect2 if -v is passed
21901         to gcc with LTO.
21902
21903 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
21904
21905         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
21906         description of expression operand.
21907
21908 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
21909
21910         * configure.ac: Add install-html to target_list for Make-hooks.
21911         * configure: Regenerate.
21912         * fortran/Make-lang.in (F95_HTMLFILES): New.
21913         (fortran.html): Use it.
21914         (fortran.install-html): New.
21915         * Makefile.in (install-html): Add lang.install-html.
21916         * java/Make-lang.in (JAVA_HTMLFILES): New.
21917         (java.html): Use it.
21918         (java.install-html): New.
21919         * objc/Make-lang.in (objc.install-html): New.
21920         * objcp/Make-lang.in (obj-c++.install-html): New.
21921         * cp/Make-lang.in (c++.install-html): New.
21922         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
21923         * lto/Make-lang.in (lto.install-html): New.
21924
21925 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21926
21927         PR lto/42520
21928         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
21929
21930 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
21931
21932         PR rtl-optimization/41862
21933         * store-motion.c (store_killed_in_insn, compute_store_table,
21934         remove_reachable_equiv_notes, replace_store_insn,
21935         build_store_vectors): Ignore all DEBUG_INSNs.
21936
21937 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21938
21939         PR lto/41564
21940         * common.opt: Add dumpdir.
21941
21942         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
21943         isn't specified.
21944         (option_map): Add --dumpdir.
21945
21946         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
21947
21948         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
21949
21950         * opts.c (decode_options): Try dump_dir_name first if
21951         dump_base_name isn't an absolute path.
21952         (common_handle_option): Handle OPT_dumpdir.
21953
21954         * toplev.c (dump_dir_name): New.
21955         (print_switch_values): Also ignore -dumpdir.
21956
21957         * toplev.h (dump_dir_name): New.
21958
21959 2010-01-03  Richard Guenther  <rguenther@suse.de>
21960
21961         PR tree-optimization/42589
21962         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
21963         double-word expansion of bswap32.
21964
21965 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
21966
21967         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
21968         with BLOCK_FOR_INSN.
21969         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
21970         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
21971         noce_process_if_block): Likewise.
21972         * gcse.c (compute_local_properties, insert_expr_in_table,
21973         insert_set_in_table, canon_list_insert, find_avail_set,
21974         pre_insert_copy_insn): Likewise.
21975
21976         * basic-block.h (BLOCK_NUM): Move from here...
21977         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
21978
21979 2010-01-03  Richard Guenther  <rguenther@suse.de>
21980
21981         PR tree-optimization/42438
21982         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
21983         contains_may_not_return_call flag.
21984         (BB_MAY_NOTRETURN): New.
21985         (valid_in_sets): Trapping nary operations are not valid
21986         in blocks that may not return.
21987         (insert_into_preds_of_block): Remove check for trapping expressions.
21988         (compute_avail): Compute also BB_MAY_NOTRETURN.
21989
21990 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
21991
21992         * doc/invoke.texi: Add 2010 to copyright years.
21993
21994 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
21995
21996         * config/sparc/sparc.c: Fix formatting nits.
21997
21998 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
21999             Alexander Monakov  <amonakov@ispras.ru>
22000
22001         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
22002
22003 2010-01-02  Richard Guenther  <rguenther@suse.de>
22004
22005         PR middle-end/42577
22006         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
22007         (simplify_switch_using_ranges): Mark to be removed edges
22008         as non-executable.
22009
22010 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22011
22012         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22013
22014         * collect2.c (scan_libraries): Add missing argument in call to
22015         scan_prog_file.
22016
22017 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
22018
22019         PR target/42448
22020         * config/alpha/predicates.md (aligned_memory_operand): Return false
22021         for CQImode.
22022         (unaligned_memory_operand): Return true for CQImode.
22023         * config/alpha/alpha.c (get_aligned_mem): Assert that location
22024         doesn not cross aligned SImode word boundary.
22025
22026 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
22027
22028         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
22029         Remove.
22030         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
22031         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
22032
22033 2010-01-02  Richard Guenther  <rguenther@suse.de>
22034
22035         PR lto/41597
22036         * toplev.c (compile_file): Emit LTO marker properly.  Change
22037         it to __gnu_lto_v1.
22038         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
22039
22040 2010-01-01  Richard Guenther  <rguenther@suse.de>
22041
22042         PR debug/42455
22043         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
22044
22045 2010-01-01  Richard Guenther  <rguenther@suse.de>
22046
22047         PR c/42570
22048         * c-decl.c (grokdeclarator): For zero-size arrays force
22049         structural equality checks as layout_type does.
22050
22051 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
22052
22053         * builtins.c: Update copyright to 2010.
22054
22055 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
22056
22057         PR lto/42531
22058         * lto-streamer-out.c (produce_asm): Revert the last change.
22059         (copy_function): Likewise.
22060
22061         * lto-streamer.c (lto_get_section_name): Skip any leading
22062         asterisk in name.
22063
22064 2010-01-01  Richard Guenther  <rguenther@suse.de>
22065
22066         PR middle-end/42559
22067         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
22068         for LABEL_DECLs.
22069
22070 \f
22071 Copyright (C) 2010 Free Software Foundation, Inc.
22072
22073 Copying and distribution of this file, with or without modification,
22074 are permitted in any medium without royalty provided the copyright
22075 notice and this notice are preserved.