OSDN Git Service

* postreload.c (reload_cse_simplify_operands): Take attribute enabled
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2
3         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
4         into account.
5
6 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7
8         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
9
10 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
11
12         PR target/45142
13         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
14         alternative 2.
15         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
16         split V4SI operands.
17
18 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
19
20         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
21         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
22         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
23         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
24
25 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
26
27         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
28         LOCAL_INCLUDE_DIR.
29
30 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
31
32         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
33         used in the call to optab_for_tree_code.  Fix the second
34         is_widening_mult_p call.  Check that both unwidened operands
35         have the same sign.
36
37 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
38
39         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
40
41 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
42
43         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
44
45 2010-07-30  DJ Delorie  <dj@redhat.com>
46
47         * config/rx/predicates.md (rx_constshift_operand): New.
48         * config/rx/rx.md (zs_cond): New.
49         (cbranchsi4): Remove mode.
50         (*cbranchsi4_<code>): Likewise.
51         (*tstbranchsi4_<code>): New.
52         (*tstbranchsi4r_<code>): New.
53         (*tstbranchsi4m_eq): New.
54         (*tstbranchsi4m_ne): New.
55         (cbranchsf4): Remove mode.
56         (*cbranchsf4_<code>): Likewise.
57
58 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
59
60         * rtlanal.c (simplify_subreg_regno): Don't treat
61         HARD_FRAME_POINTER_REGNUM specially.
62
63 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
64
65         * common.opt (-G): Don't define option here.
66         * config/g.opt: New.
67         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
68         rs6000/powerpc and score targets.
69         * opts.c (common_handle_option): Don't handle -G here.
70         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
71         * config/frv/frv.c (frv_handle_option): Handle -G.
72         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
73         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
74         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
75         * config/mips/mips.c (mips_handle_option): Handle -G.
76         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
77         * config/score/score.c (score_handle_option): Handle -G.
78
79 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
80
81         * config/mmix/mmix.c: Include basic-block.h.
82
83 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
84
85         PR debug/45055
86         PR rtl-optimization/45137
87         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
88         prototypes.
89         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
90         New functions.
91         * combine.c (next_nonnote_nondebug_insn): Removed.
92         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
93         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
94         * sched-deps.c (sched_analyze_insn): Likewise.
95         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
96         * rtlanal.c (canonicalize_condition): Likewise.
97         * postreload.c (reload_combine_recognize_pattern): Likewise.
98         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
99
100 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
101
102         * config/i386/i386.md (int_cond): Remove code iterator.
103         (fp_cond): Ditto.
104         (cbranch<mode>4): Use ordered_comparison_operator predicate
105         for operator0.
106         (cstore<mode>4): Ditto for operator1.
107         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
108         (add<mode>cc): ditto.
109
110 2010-07-30  Richard Guenther  <rguenther@suse.de>
111
112         PR middle-end/45141
113         * expr.c (expand_expr_real_1): Check for not handled base address.
114
115 2010-07-30  Richard Guenther  <rguenther@suse.de>
116
117         * ipa-prop.c (ipa_modify_formal_parameters): Use
118         build_distinct_type_copy.
119
120 2010-07-30  Anthony Green  <green@moxielogic.com>
121
122         * config/moxie/rtems.h: New file.
123         * config.gcc: Add moxie-rtems support.
124
125 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
126
127         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
128         df flags as in run_fast_df_dce.
129
130 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
131
132         Revert:
133         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
134
135         * rtl.def (NOTE): Swap operands 4 and 5.
136         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
137         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
138         Adjust accordingly.
139         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
140
141 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
142
143         PR debug/45110
144         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
145         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
146         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
147         formal parameters.
148         (gen_decl_die): Change return type to dw_die_ref, return what
149         gen_formal_parameter_die returned.
150
151 2010-07-29  Martin Jambor  <mjambor@suse.cz>
152
153         * dbgcnt.def (eipa_sra): New counter.
154         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
155
156 2010-07-29  Xinliang David Li  <davidxl@google.com>
157
158         PR bootstrap/45119
159         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
160         in revision 162652.
161
162 2010-07-29  Richard Guenther  <rguenther@suse.de>
163
164         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
165         (TV_TREE_STORE_CCP): Likewise.
166         (TV_TREE_REDPHI): Likewise.
167
168 2010-07-29  Richard Guenther  <rguenther@suse.de>
169
170         * double-int.h (double_int_and_not): New function.
171         * combine.c (try_combine): Use it.
172         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
173
174 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
175
176         PR rtl-optimization/42575
177         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
178         Argument AU removed.  All callers changed.  Ignore artificial refs.
179         Use return value of df_word_lr_simulate_defs to decide whether an insn
180         is necessary.
181         (fast_dce): Rename arg to WORD_LEVEL.
182         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
183         static.
184         (pass_fast_rtl_byte_dce): Delete.
185         * dce.h (run_word_dce): Declare.
186         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
187         All callers changed.  Simplify code to only deal with two-word regs.
188         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
189         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
190         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
191         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
192         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
193         (df_word_lr_mark_ref): Declare.
194         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
195         df_word_lr_simulate_uses): Declare or rename from byte variants.
196         (df_byte_lr_simulate_artificial_refs_at_top,
197         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
198         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
199         declarations.
200         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
201         (enum df_mm): Delete.
202         * df-byte-scan.c: Delete file.
203         * df-problems.c (df_word_lr_problem_data): Renamed from
204         df_byte_lr_problem_data, all members deleted except for
205         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
206         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
207         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
208         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
209         df_byte_lr_confluence_0): Delete functions.
210         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
211         callers changed.
212         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
213         Don't initialize members that were deleted, don't try to discover data
214         about registers.  Ignore hard regs.
215         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
216         (df_word_lr_mark_ref): New function.
217         (df_word_lr_bb_local_compute): Renamed from
218         df_byte_bb_lr_local_compute; all callers changed.  Use
219         df_word_lr_mark_ref.  Assert that artificial refs don't include
220         pseudos.  Ignore hard registers.
221         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
222         Assert that exit block uses don't contain pseudos.
223         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
224         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
225         callers changed.  Ignore hard regs.
226         (df_word_lr_transfer_function): Renamed from
227         df_byte_lr_transfer_function; all callers changed.
228         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
229         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
230         changed.
231         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
232         callers changed.
233         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
234         confluence operator 0 set to NULL.
235         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
236         callers changed.
237         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
238         Return bool, true if bitmap changed or insn otherwise necessary.
239         All callers changed.  Simplify using df_word_lr_mark_ref.
240         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
241         all callers changed.  Simplify using df_word_lr_mark_ref.
242         * lower-subreg.c: Include "dce.h"
243         (decompose_multiword_subregs): Call run_word_dce if df available.
244         * Makefile.in (lower-subreg.o): Adjust dependencies.
245         (df-byte-scan.o): Delete.
246         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
247
248 2010-07-29  Richard Guenther  <rguenther@suse.de>
249
250         * tree.c (build_vector): Assert that the vector constant
251         has enough elements.
252         (build_vector_from_ctor): Pad with trailing zeros.
253
254 2010-07-29  Richard Guenther  <rguenther@suse.de>
255
256         PR tree-optimization/45120
257         * tree-ssa-structalias.c (get_constraint_for_component_ref):
258         Handle offset in DEREFs properly.
259         (get_constraint_for_1): Handle MEM_REF offset properly.
260
261 2010-07-29  Richard Guenther  <rguenther@suse.de>
262
263         PR middle-end/45034
264         * convert.c (convert_to_integer): Always use an unsigned
265         type for narrowed negate and bitwise not.
266
267 2010-07-29  Ira Rosen  <irar@il.ibm.com>
268
269         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
270         to outer loop when creating reduction epilogue for double reduction,
271         and switch back to the inner loop when updating the phi nodes.
272         Update uses of outer loop exit phi nodes in double reduction (instead
273         of uses of reduction).
274
275 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
276
277         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
278         popcount on power7 and parity on power6 systems.
279         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
280         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
281         instructions.
282
283         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
284         (UNSPEC_PARITY): Ditto.
285         (SFDF): New iterator for SF/DF.
286         (rreg2): New mode attribute for floating register constraint.
287         (TARGET_FLOAT): New mode attribute for whether single/double float
288         is supported.
289         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
290         pattern.
291         (parity<mode>2_cmpb): New insn for parity on power6 and newer
292         machines.
293         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
294         pattern.  Add support for fcpsgn instruction added in power6.
295         (copysignsf3): Delete.
296         (copysigndf3): Delete.
297         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
298         instead of if_then_else in RTL to avoid problems with -0.
299
300         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
301         of if_then_else to mirror scalar code.
302         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
303         rs6000.md.
304
305         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
306         instead of if_then_else.
307
308 2010-07-28  Xinliang David Li  <davidxl@google.com>
309
310         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
311         (dump_cand): Dump var_before/after.
312         (htab_inv_expr_eq): New function.
313         (htab_inv_expr_hash): New function.
314         (tree_ssa_iv_optimize_init): Support pseudo invariants.
315         (add_candidate_1): consider base type precision.
316         (set_use_iv_cost): New parameter.
317         (adjust_setup_cost): Use profile information.
318         (get_address_cost): Do not hard code width in computing address
319         offset limits.
320         (compare_aff_trees): New function.
321         (get_loop_invariant_expr_id): New function.
322         (get_computation_cost_at): New parameter and use profile information.
323         (get_computation_cost): New parameter.
324         (determine_use_iv_cost_generic): Pass new parameter.
325         (determine_use_iv_cost_address): Ditto.
326         (determine_use_iv_cost_condition): Ditto.
327         (autoinc_possible_for_pair): Ditto.
328         (determine_use_iv_costs): More dumps.
329         (iv_ca_get_num_inv_exprs): New function.
330         (iv_ca_recount_cost): Consider loop invariants in register pressure
331         cost.
332         (iv_ca_add_use): New parameter.
333         (iv_ca_dump): Better dumping.
334         (iv_ca_extend): New parameter.
335         (try_add_cand_for): Attempt to get better partial solution.
336         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
337         (create_new-ivs): More dumps.
338         (rewrite_use_compare): Ditto.
339         (free_loop_data): More cleanup.
340         (treee_ssa_iv_optimize_finalize): Ditto.
341
342 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
343
344         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
345         * config/i386/i386.c (ix86_profile_before_prologue): New.
346         (override_options): Add special handling for -mfentry.
347         (ix86_function_regparm): Likewise.
348         (ix86_function_sseregparm): Likewise.
349         (ix86_frame_pointer_required): Likewise.
350         (ix86_expand_prologue): Check for ms_hook_prologue.
351         (x86_function_profiler): Adjust mcount output.
352         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
353         * config/i386/i386.opt (mfentry): New.
354         * doc/invoke.texi (mfentry): Add documentation.
355         * doc/tm.texi: Regenerated..
356         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
357         * final.c (final_start_function): Replace macro
358         PROFILE_BEFORE_PROLOGUE by target hook.
359         * function.c (thread_prologue_and_epilogue_insns): Likewise.
360         * target.def (profile_before_prologue): New hook.
361         * targhooks.c (default_profile_before_prologue): New.
362         * targhooks.h (default_profile_before_prologue): New.
363
364 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
365
366         PR debug/45105
367         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
368
369         PR debug/45103
370         * dwarf2out.c (dwarf2out_var_location): Always consider
371         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
372
373 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
374
375         PR rtl-optimization/45107
376         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
377
378 2010-07-28  Richard Guenther  <rguenther@suse.de>
379
380         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
381         (set_lattice_value): Do not query an old default value.
382         (get_value_for_expr): New function.  Properly canonicalize
383         float values.
384         (ccp_visit_phi_node): Use it.
385
386 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
387
388         * config/arm/arm.c (arm_pcs_default): Remove static.
389         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
390         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
391         (arm_pcs_default): Declare.
392
393 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
394
395         * config/rs6000/rs6000.c (rs6000_override_options):
396         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
397         ... to darwin_rs6000_override_options.
398         (rs6000_return_in_memory): Update preceding comment for darwin
399         64 bit ABI.  Use TARGET_MACHO inline.
400         (rs6000_darwin64_struct_check_p): New.
401         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
402         (function_arg): Likewise.
403         (rs6000_arg_partial_bytes): Likewise.
404         (rs6000_function_value): Likewise.
405
406 2010-07-28  Andi Kleen <ak@linux.intel.com>
407
408         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
409
410 2010-07-28  Richard Guenther  <rguenther@suse.de>
411
412         PR middle-end/44903
413         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
414         targets try harder to not generate unaligned accesses.
415
416 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
417
418         PR rtl-optimization/45101
419         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
420         for gcse-las.
421
422 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
423
424         PR tree-optimization/44885
425         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
426         with non-aliased component.
427
428 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
429
430         * config/darwin-driver.c (SWITCH_TAKES_ARG,
431         WORD_SWITCH_TAKES_ARG): Remove.
432         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
433         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
434         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
435         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
436         definitions from gcc.c.
437         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
438         defaults.h.
439         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
440         Move to defaults.h.
441         * opts-common.c: Include tm.h.
442         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
443         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
444         Handle more than one argument.  Set canonical_option_num_elements.
445         (decode_cmdline_options_to_array): Set
446         canonical_option_num_elements and trailing elements of
447         canonical_option.
448         * opts.h (struct cl_decoded_option): Allow four elements in
449         canonical_option.  Add field canonical_option_num_elements.
450         * Makefile.in (opts-common.o): Update dependencies.
451
452 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
453
454         PR middle-end/44790
455         PR middle-end/44993
456         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
457         sure the base has address_mode before adding the offset.
458
459 2010-07-27  Xinliang David Li <davidxl@google.com>
460
461         * tree-flow.h (create_mem_ref): Add one new parameter.
462         * tree-ssa-address.c (create_mem_ref): New parameter.
463         (addr_to_parts): Ditto.
464         (move_variant_to_index): New function.
465         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
466
467 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
468
469         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
470         4 and 5.
471         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
472         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
473         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
474         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
475         CODE_LABELs and NOTEs.
476         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
477         * combine.c (try_combine): Likewise.
478         * ira.c (setup_prohibited_mode_move_regs): Likewise.
479         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
480
481 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
482
483         * coretypes.h (struct cl_option_handlers): Declare.
484         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
485         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
486         * langhooks-def.h (lhd_handle_option): Declare.
487         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
488         * langhooks.c (lhd_handle_option): New.
489         * langhooks.h (struct lang_hooks): Update prototype and return
490         value type of handle_option hook.
491         * optc-gen.awk: Generate target_flags_explicit definition for the
492         driver.
493         * opts-common.c: Include diagnostic.h.
494         (handle_option): Move from opts.c.  Update prototype and return
495         value type.  Use handlers structure.
496         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
497         handlers structure.
498         (set_option): Move from opts.c.
499         * opts.c (common_handle_option): Update prototype and return value
500         type.  Update calls to handle_option and enable_warning_as_error.
501         (unknown_option_callback, post_handling_callback,
502         lang_handle_option, target_handle_option): New.
503         (handle_option, read_cmdline_option): Move to opts-common.c.
504         (read_cmdline_options): Update prototype.  Update call to
505         read_cmdline_option.
506         (decode_options): Initialize and use handlers structure.
507         (set_option): Move to opts-common.c.
508         (enable_warning_as_error): Update prototype.  Update call to
509         handle_option.
510         * opts.h (struct cl_option_handler_func, struct
511         cl_option_handlers): New.
512         (handle_option, enable_warning_as_error): Update prototypes.
513         (read_cmdline_option): Declare.
514         * Makefile.in (opts-common.o): Update dependencies.
515
516 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
517
518         * config/arm/arm.c (params.h): Include.
519         (arm_override_options): Tune gcse-unrestricted-cost.
520         * config/arm/t-arm (arm.o): Define dependencies.
521
522 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
523
524         PR target/42495
525         PR middle-end/42574
526         * basic-block.h (get_dominated_to_depth): Declare.
527         * dominance.c (get_dominated_to_depth): New function, use
528         get_all_dominated_blocks as a base.
529         (get_all_dominated_blocks): Use get_dominated_to_depth.
530
531         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
532         (hoist_exprs): Remove.
533         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
534         (compute_code_hoist_vbeinout): Add debug print outs.
535         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
536
537         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
538         quadratic behavior.
539         * params.h (MAX_HOIST_DEPTH): New macro.
540         * doc/invoke.texi (max-hoist-depth): Document.
541
542 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
543
544         PR rtl-optimization/40956
545         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
546         constants.
547
548 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
549
550         PR target/42495
551         PR middle-end/42574
552         * config/arm/arm.c (legitimize_pic_address): Use
553         gen_calculate_pic_address pattern to emit calculation of PIC address.
554         (will_be_in_index_register): New function.
555         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
556         (thumb1_legitimate_address_p): Use it provided !strict_p.
557         * config/arm/arm.md (calculate_pic_address): New expand and split.
558
559 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
560
561         PR target/42495
562         PR middle-end/42574
563         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
564         * config/arm/arm.md (define_split "J", define_split "K"): Make
565         IRA/reload friendly.
566
567 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
568
569         * gcse.c (insert_insn_end_basic_block): Update signature, remove
570         unused checks.
571         (pre_edge_insert, hoist_code): Update.
572
573 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
574
575         PR target/42495
576         PR middle-end/42574
577         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
578
579 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
580
581         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
582
583 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
584
585         PR rtl-optimization/40956
586         PR target/42495
587         PR middle-end/42574
588         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
589         for hoisting.
590         (hoist_code): Count occurences in current block too.
591
592 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
593
594         * gcse.c (struct expr:max_distance): New field.
595         (doing_code_hoisting_p): New static variable.
596         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
597         simple expressions, don't change behavior for PRE.  Set max_distance.
598         (insert_expr_in_table): Set new max_distance field.
599         (hash_scan_set): Update.
600         (hoist_expr_reaches_here_p): Stop search after max_distance
601         instructions.
602         (find_occr_in_bb): New static function.  Use it in ...
603         (hoist_code): Calculate sizes of basic block before any changes are
604         done.  Pass max_distance to hoist_expr_reaches_here_p.
605         (one_code_hoisting_pass): Set doing_code_hoisting_p.
606
607         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
608         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
609         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
610         macros.
611         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
612         Document.
613
614 2010-07-27  Jeff Law  <law@redhat.com>
615             Maxim Kuvyrkov  <maxim@codesourcery.com>
616
617         * gcse.c (compute_transpout, transpout): Remove, move logic
618         to prune_expressions.
619         (compute_pre_data): Move pruning of trapping expressions ...
620         (prune_expressions): ... here.  New static function.
621         (compute_code_hoist_data): Use it.
622         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
623
624 2010-07-27  Xinliang David Li  <davidxl@google.com>
625
626         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
627         (rewrite_use_address): Adjust iv update position when needed.
628
629 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
630
631         * dbgcnt.def (hoist_insn): New debug counter.
632         * gcse.c (hoist_code): Use it.
633
634 2010-07-27  Xinliang David Li  <davidxl@google.com>
635
636         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
637         (niter_for_single_dom_exit): Passes additional parameter.
638         (iv_period): Fix comments.
639         (may_eliminate_iv): Handles multiple exit loops properly.
640         (free_tree_niter_desc): New function.
641         (free_loop_data): Frees up loop iteration descriptors.
642
643 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
644
645         PR target/44542
646         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
647         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
648         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
649         (expand_one_var): Don't consider DECL_ALIGN for variables for
650         which expand_one_stack_var_at has been already called.
651
652         PR testsuite/44701
653         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
654         constraints on IA-64.
655
656 2010-07-27  Jie Zhang  <jie@codesourcery.com>
657
658         PR target/44290
659         Revert:
660         2010-07-23  Jie Zhang  <jie@codesourcery.com>
661
662         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
663         false if ! tree_versionable_function_p.
664
665 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
666
667         * dwarf2out.c (add_data_member_location_attribute): Use
668         add_AT_unsigned instead of add_AT_int if offset is non-negative.
669
670 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
671
672         * postreload.c (try_replace_in_use): New static function.
673         (reload_combine_recognize_const_pattern): Use it here.  Allow
674         substituting into a final add insn, and substituting into a memory
675         reference in an insn that sets the reg.
676
677 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
678
679         * common.opt (o): Add MissingArgError.
680         * doc/options.texi (MissingArgError): Document.
681         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
682         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
683         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
684         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
685         * langhooks.h (struct lang_hooks): Remove missing_argument.
686         * optc-gen.awk: Handle MissingArgError and output new structure
687         field initializers.
688         * opts.c (read_cmdline_option): Use missing_argument_error field
689         instead of missing_argument langhook.
690         * opts.h (struct cl_option): Add missing_argument_error field.
691         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
692
693 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
694
695         PR target/29090
696         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
697         Darwin64 ABI, for zero-sized objects.
698
699 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
700
701         PR target/35491
702         PR target/29090
703
704         Merge from Apple local 4.2.1.
705         2005-05-11  Stan Shebs  <shebs@apple.com>
706         Fix 64-bit varargs for Darwin (Radar 4028089).
707         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
708         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
709         Add argument, add case for 8-byte register half-filled with a float.
710         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
711         single-precision floats specially.
712
713 2010-07-27  Ira Rosen  <irar@il.ibm.com>
714
715         PR tree-optimization/44152
716         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
717         complex numbers for further check.
718         (vect_supported_load_permutation_p): Check nodes with
719         complex numbers.
720
721 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
722
723         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
724         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
725         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
726         (LANG_HOOKS_INITIALIZER): Add new hooks.
727         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
728         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
729         and complain_wrong_lang_p.  Update init_options prototype.
730         * c-objc-common.c (c_initialize_diagnostics): First call
731         c_common_initialize_diagnostics.
732         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
733         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
734         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
735         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
736         (hook_uint_void_0): New.
737         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
738         (hook_uint_void_0): New.
739         * opts-common.c (decode_cmdline_option,
740         decode_cmdline_options_to_array): Also fill in canonical_option field.
741         * opts.c (complain_wrong_lang): Use langhook to determine whether
742         to complain instead of special-casing LTO.
743         (decode_options): Separate lang_mask determination with
744         option_lang_mask hook from call of init_options hook.
745         * opts.h (struct cl_decoded_option): Add canonical_option.
746
747 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
748
749         PR tree-optimization/45083
750         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
751
752 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
753
754         * postreload.c (reload_combine_recognize_const_pattern): Move test
755         for limiting the insn movement to the right scope.
756
757         PR rtl-optimization/45051
758         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
759         than reg_mentioned_p.
760
761 2010-07-26  Richard Henderson  <rth@redhat.com>
762
763         PR target/44132
764         * tree-emutls.c: New file.
765         * Makefile.in (OBJS-common): Add it.
766         * tree-pass.h (pass_ipa_lower_emutls): Declare.
767         * passes.c (init_optimization_passes): Add it.
768
769         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
770         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
771         * expr.c (emutls_var_address): Delete.
772         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
773         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
774         (emutls_finish): Delete.
775         * toplev.c (compile_file): Don't call it.
776         * tree.h (emutls_decl): Delete.
777         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
778         (emutls_finish, emutls_finalize_control_var): Delete.
779         (emutls_object_type): Move to tree-emutls.c.
780         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
781         default_emutls_var_fields, get_emutls_object_type,
782         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
783         default_emutls_var_init): Likewise.
784         (get_variable_section): Don't special case emutls.
785         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
786         default_elf_select_section, default_unique_section,
787         default_encode_section_info): Likewise.
788         * varpool.c (decide_is_variable_needed): Likewise.
789         * gimple-iterator.c (update_call_edge_frequencies): New
790         (gsi_insert_on_edge_immediate): Use it.
791         (gsi_insert_seq_on_edge_immediate): Likewise.
792         (gsi_commit_one_edge_insert): Likewise.
793
794         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
795         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
796         (x86_64_elf_unique_section): Likewise.
797
798 2010-07-26  Jan Hubicka  <jh@suse.cz>
799
800         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
801         GTY((skip)).
802
803 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
804
805         * target.def (output_source_filename): New hook.
806         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
807         * doc/tm.texi: Regenerate.
808         * toplev.c (output_file_directive) Remove function.
809         * toplev.h (output_file_directive) Remove.
810         * output.h (default_asm_output_source_filename,
811         output_file_directive): Declare.
812         * varasm.h (default_asm_output_source_filename,
813         output_file_directive): New functions.
814
815         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
816         * config/mips/mips-protos.h (mips_output_filename): Remove.
817         * config/mips/mips.c (mips_output_filename): Make Static.
818         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
819
820 2010-07-26  Richard Guenther  <rguenther@suse.de>
821
822         PR tree-optimization/43784
823         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
824         if the destination is used by the call.
825
826 2010-07-26  Richard Guenther  <rguenther@suse.de>
827
828         PR middle-end/45073
829         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
830         SSA updating on being in SSA form.
831
832 2010-07-26  Richard Guenther  <rguenther@suse.de>
833
834         PR middle-end/45056
835         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
836
837 2010-07-26  Richard Guenther  <rguenther@suse.de>
838
839         PR tree-optimization/45071
840         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
841         adjust op->opcode.
842
843 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
844
845         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
846         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
847         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
848         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
849         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
850         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
851         save_r31, return_r31, save_interrupt, return_interrupt,
852         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
853         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
854         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
855         new ABI requirements.
856         (save_r6_r9, L_callt_save_r6_r9): Remove.
857         * config/v850/predicates.md (even_reg_operand, disp23_operand,
858         const_float_1_operand const_float_0_operand): New Predicates.
859         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
860         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
861         * config/v850/t-v850: Update multilibs for new target variants.
862         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
863         * config/v850/t-v850e: Likewise.
864         * config/v850/v850.c (v850_issue_rate): New.
865         (v850_strict_argument_naming): New.
866         (function_arg): Modify to generate a different ABI.
867         (print_operand): Update case 'z' to support float modes.
868         (output_move_single): Modify to generate appropriate and better
869         assembly.
870         (v850_float_z_comparison_operator, v850_select_cc_mode,
871         v850_float_nz_comparison_operator,  v850_gen_float_compare,
872         v850_gen_compare): New functions to support comparison of float values.
873         (ep_memory_offset): Add support for V850E2 targets.
874         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
875         (INTERRUPT_REGPARM_NUM): Remove.
876         (compute_register_save_size): Add extra case to save/restore long call.
877         (use_prolog_function): New function to support prologue.
878         (expand_prologue): Add support for V850E2 targets and modified
879         as per the current ABI requirements.
880         (expand_epilogue): Likewise.
881         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
882         (construct_save_jarl): Likewise.
883         (construct_dispose_instruction): Update as per the current ABI
884         requirements.
885         (construct_prepare_instruction): Likewise.
886         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
887         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
888         (CPP_SPEC): Updated to support v850e2 targets.
889         (STRICT_ALIGNMENT): Modified.
890         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
891         (FIXED_REGISTERS): Likewise.
892         (CALL_USED_REGISTERS): Likewise.
893         (CONDITIONAL_REGISTER_USAGE): Updated.
894         (HARD_REGNO_MODE_OK): Updated.
895         (reg_class): Updated to add even registers.
896         (REG_CLASS_NAMES): Likewise.
897         (REG_CLASS_CONTENTS): Likewise.
898         (REGNO_REG_CLASS): Updated for CC registers.
899         (REG_CLASS_FROM_LETTER): Added support for even registers.
900         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
901         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
902         ARG_POINTER_REGNUM): Updated.
903         (FUNCTION_ARG_ADVANCE): Define.
904         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
905         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
906         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
907         (GO_IF_LEGITIMATE_ADDRESS): Updated.
908         (SELECT_CC_MODE): Define.
909         (REGISTER_NAMES): Updated to add psw and fcc registers.
910         (ADDITIONAL_REGISTER_NAMES): Updated.
911         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
912         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
913         * config/v850/v850.md (define_constants): Define new constants.
914         (type): Update store,bit1,macc,div,fpu and single attributes.
915         (cpu): New attribute.
916         (cc): Add set_z attribute.
917         (unsign23byte_load, sign23byte_load, unsign23hword_load,
918         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
919         23word_store): New instructions for 23-bit displacement load and store.
920         (movqi_internal, movhi_internal): Update the attributes.
921         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
922         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
923         the attributes.
924         (v850_tst1): Modified using CC_REGNUM.
925         (tstsi): Remove.
926         (cmpsi): Modified as define_expand from define_insn.
927         (cmpsi_insn, cmpsf, cmpdf): New instructions.
928         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
929         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
930         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
931         one_cmplsi2): Clobber the CC_REGNUM register.
932         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
933         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
934         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
935         (setf_insn, set_z_insn, set_nz_insn): New instructions for
936         v850e2v3 target.
937         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
938         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
939         targets.
940         (sasf_1, sasf_2): Remove.
941         (sasf): New instruction.
942         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
943         targets. CC_REGNUM register is clobbered and attributes are
944         updated.
945         (branch_z_normal, branch_z_invert, branch_nz_normal,
946         branch_nz_invert): New branch related instructions.
947         (jump): Updated the attributes.
948         (switch): Update to support new targets. CC_REGNUM register is
949         clobbered and attributes are updated.
950         (call_internal_short, call_internal_long, call_value_internal_short,
951         call_value_internal_long): Updated the attributes.
952         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
953         clobbered and attributes are updated.
954         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
955         Update to support new targets. CC_REGNUM register is clobbered.
956         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
957         instructions.
958         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
959         are updated.
960         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
961         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
962         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
963         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
964         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
965         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
966         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
967         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
968         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
969         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
970         point instructions defined for V850e2v3 target.
971         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
972         Add support for V850E2 targets and CC_REGNUM register is clobbered.
973         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
974         support for new targets.
975         * config/v850/v850-modes.def: New file.
976         * config/v850/v850.opt(mstrict-align): Remove.
977         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
978         mv850e2v3): New command line options for V850.
979         * config.gcc: Update the newly added files.
980         * doc/invoke.texi: Update the newly added command line options for
981         V850 target.
982
983 2010-07-26  Richard Guenther  <rguenther@suse.de>
984
985         PR tree-optimization/45052
986         * ipa-pure-const.c (check_stmt): Check volatileness.
987
988 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
989
990         PR target/44707
991         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
992         * config/sparc/sparc.c: Include reload.h.
993         (legitimize_tls_address): Rename into...
994         (sparc_legitimize_tls_address): ...this.
995         (legitimize_pic_address): Rename into...
996         (sparc_legitimize_pic_address): ...this.
997         (sparc_expand_move): Adjust to above renaming.
998         (sparc_tls_referenced_p): Likewise.
999         (sparc_legitimize_tls_address): Likewise.
1000         (sparc_legitimize_pic_address): Likewise.
1001         (sparc_legitimize_address): Likewise.
1002         (sparc_output_mi_thunk): Likewise.
1003         (sparc_legitimize_reload_address): New global function.  Recognize
1004         (lo_sum (high ...) ...) patterns generated by earlier passes.
1005         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
1006
1007 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1008
1009         PR target/44484
1010         * config/sparc/predicates.md (memory_reg_operand): Delete.
1011         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
1012         (*sync_compare_and_swap): Encode the address form in the pattern.
1013         (*sync_compare_and_swapdi_v8plus): Likewise.
1014
1015 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
1016
1017         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
1018         Streamline paragraph on compatibility with the system compiler.
1019
1020 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
1021
1022         PR middle-end/45035
1023         * alias.c (true_dependence_1): Fix thinko in merge of old
1024         true_dependence and canon_true_dependence.
1025
1026 2010-07-23  Jan Hubicka  <jh@suse.cz>
1027
1028         * lto-streamer-out.c (write_symbol): Fix visibilities of external
1029         references.
1030
1031 2010-07-23  Le-Chun Wu  <lcwu@google.com>
1032
1033         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
1034         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
1035         and an unnecessary assignment.
1036         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
1037         self-assign warning.
1038         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
1039         unnecessary self-init.
1040
1041 2010-07-23  Richard Guenther  <rguenther@suse.de>
1042
1043         PR lto/43071
1044         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
1045         for -flto and -fwhopr.
1046
1047 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
1048
1049         PR target/41943
1050         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
1051         (stmp-int-hdrs): Prefix/postfix headers by include_next.
1052         * config.gcc (user_headers_inc_next_pre): New.
1053         (user_headers_inc_next_post): Likewise.
1054         (*-w64-mingw*): Use for float.h post-fixing, and for
1055         stddef.h/stdarg.h pre-fixing by include_next.
1056         * configure.ac (user_headers_inc_next_post): New.
1057         (user_headers_inc_next_pre): New.
1058         * configure: Regenerated.
1059
1060 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1061
1062         * configure.ac: Don't disable TLS on Solaris 8/9 by default
1063         Set tga_func for Solaris 2/x86 resp. SPARC.
1064         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
1065         (LIB_THREAD_LDFLAGS_SPEC): Define.
1066         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
1067         * configure: Regenerate.
1068         * config.in: Regenerate.
1069         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
1070         -pthread, -threads, LIB_TLS_SPEC with -pthread.
1071         * doc/install.texi (Specific, *-*-solaris2*): Document use of
1072         alternate thread libraries on Solaris 8.
1073         Document TLS patch requirements.
1074         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
1075         Document tls.
1076
1077         PR target/18788
1078         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
1079         -shared.
1080
1081 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
1082
1083         * tree.h (struct tree_base): Add nameless_flag bitfield.
1084         (TYPE_NAMELESS, DECL_NAMELESS): Define.
1085         * omp-low.c (create_omp_child_function, scan_omp_parallel,
1086         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
1087         DECL_ARTIFICIAL where needed.
1088         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
1089         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
1090         has DECL_NAMELESS set.
1091
1092 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1093
1094         PR tree-optimization/44915
1095         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
1096         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
1097         (analyze_function): Likewise.
1098
1099 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1100
1101         PR tree-optimization/44914
1102         * tree-sra.c (sra_modify_function_body): Return true if CFG was
1103         changed, add purging dead eh edges.
1104         (ipa_sra_modify_function_body): Return true if CFG was changed,
1105         simplify purging dead eh edges.
1106         (modify_function): Return true if CFG was changed.
1107         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
1108         was changed.
1109         (ipa_early_sra): Likewise.
1110
1111 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1112
1113         PR target/44290
1114         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
1115         if "naked".
1116         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1117         false if ! tree_versionable_function_p.
1118
1119 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
1120
1121         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
1122         * ipa-pure-const.c (special_builtlin_state): Remove
1123         BUILT_IN_ARGS_INFO case.
1124         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1125         * builtins.c (expand_builtin): Likewise.
1126         (expand_builtin_args_info): Remove.
1127         * doc/tm.texi (__builtin_args_info): Remove.
1128         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
1129         * doc/tm.text.in: Likewise.
1130
1131 2010-07-23  Richard Guenther  <rguenther@suse.de>
1132
1133         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
1134         (lto_symtab_merge_decls_2): Likewise.
1135         * tree-ssa.c (useless_type_conversion_p): Likewise.
1136         * lto-streamer-in.c (input_gimple_stmt): Likewise.
1137         * gimple.c (gtc_visited2, gtc_ob2): Remove.
1138         (struct type_pair_d): Make same_p an array indexed by mode.
1139         Update comment.
1140         (lookup_type_pair): Update initialization.
1141         (struct sccs): Adjust same_p type.
1142         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
1143         Adjust.
1144         (print_gimple_types_stats): Likewise.
1145         * gimple.h (enum gtc_mode): New.
1146         (gimple_types_compatible_p): Adjust prototype.
1147
1148 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
1149
1150         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
1151         again after processing insn.
1152
1153 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1154
1155         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
1156         proper words when !tree_versionable_function_p.
1157
1158 2010-07-23  Richard Guenther  <rguenther@suse.de>
1159
1160         PR tree-optimization/45037
1161         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
1162
1163 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1164
1165         * doc/extend.texi: Remove IP2K from the description of naked attribute.
1166         Add MCORE instead.
1167
1168 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1169
1170         PR lto/44992
1171         * lto-opts.c (lto_write_options): Add NULL file_data argument to
1172         lto_get_section_name.
1173         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
1174         * lto-streamer-out.c (produce_asm): Likewise.
1175         (copy_function): Likewise.
1176         (produce_symtab): Likewise.
1177         (produce_asm_for_decls): Likewise.
1178         * lto-streamer.c (lto_get_section_name): Add file_data argument.
1179         Rewrite to add random postfix to LTO sections.
1180         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
1181         (lto_get_section_name): Add file_data argument to prototype.
1182
1183 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1184
1185         * lto-section-in.c (lto_section_name): Synchronize names
1186         with lto_get_section_name.
1187
1188 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1189
1190         * lto-opts.c (lto_read_file_options): Check for missing section.
1191
1192 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1193
1194         * ira.c (check_allocation): Correctly handle the case where an allocno
1195         with two objects was allocated to a single reg.
1196
1197 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
1198
1199         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
1200         (is_widening_mult_p): Likewise.
1201         (convert_to_widen): Use them.
1202         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
1203         well as integer ones.
1204
1205 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
1206
1207         * alias.c (true_dependence_1): New function, merged version of
1208         true_dependence and canon_true_dependence.
1209         (true_dependence): Simplify.
1210         (canon_true_dependence): Simplify.
1211
1212 2010-07-22  Richard Henderson  <rth@redhat.com>
1213
1214         PR target/45027
1215         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
1216         of V4SFmode for the SSE saves; increase stack alignment if needed.
1217         (ix86_gimplify_va_arg): Don't increase stack alignment here.
1218
1219 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
1220
1221         PR bootstrap/45028
1222         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
1223         call cprop_find_used_regs again via note_uses.
1224
1225 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1226
1227         * alias.c (get_alias_set): Fix formatting issues.
1228
1229 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
1230
1231         PR middle-end/44878
1232         * stmt.c (expand_value_return):  Call promote_function_mode with
1233         a for_return argument of 2 when returning by reference.
1234
1235 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
1236
1237         PR debug/45024
1238         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
1239         unit DIE if we can find the scope DIE.
1240
1241 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1242
1243         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
1244         changed.  Initialize OBJECT_SUBWORD.
1245         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
1246         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
1247         all callers changed.
1248         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
1249         (finish_allocno): Likewise.
1250         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
1251         (remove_low_level_allocnos): Likewise.
1252         (update_bad_spill_attribute): Likewise.
1253         (setup_min_max_allocno_live_range_point): Likewise.
1254         (sort_conflict_id_map): Likewise.
1255         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
1256         (ior_hard_reg_conflicts): New function.
1257         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
1258         (compress_conflict_vecs): Iterate over objects, not allocnos.
1259         (ira_add_live_range_to_object): New function.
1260         (object_range_compare_func): Renamed from allocno_range_compare_func.
1261         All callers changed.
1262         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
1263         subobjects, widen the min/max range of the lowest-order object to
1264         potentially include all other such low-order objects.
1265         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
1266         (check_allocation): Likewise.  Use more fine-grained tests for register
1267         conflicts.
1268         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
1269         allocno subobjects.
1270         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
1271         choices about which bits to set in each set.  Don't use
1272         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
1273         using the multiple sets we computed.
1274         (push_allocno_to_stack): Iterate over allocno subobjects.
1275         (all_conflicting_hard_regs_coalesced): New static function.
1276         (setup_allocno_available_regs_num): Use it.
1277         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
1278         subobjects.
1279         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
1280         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1281         by ALLOCNO_NUM_OBJECTS.
1282         (calculate_spill_cost): Likewise.
1283         (color_pass): Express if statement in a more normal way.
1284         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
1285         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
1286         (setup_slot_coalesced_allocno_live_ranges): Likewise.
1287         (allocno_reload_assign): Likewise.
1288         (ira_reassign_pseudos): Likewise.
1289         (fast_allocation): Likewise.
1290         * ira-conflicts.c (build_conflict_bit_table): Likewise.
1291         (print_allocno_conflicts): Likewise.
1292         (ira_build_conflicts): Likewise.
1293         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
1294         callers changed.  Test subword 0 of each allocno for conflicts.
1295         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
1296         callers changed.  Iterate over allocno subobjects.
1297         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
1298         * ira-int.h (struct ira_allocno): New member: num_objects.
1299         Rename object to objects and change it into an array.
1300         (ALLOCNO_OBJECT): Add new argument N.
1301         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
1302         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
1303         (ior_hard_reg_conflicts): Declare.
1304         (ira_add_live_range_to_object): Declare.
1305         (ira_allocno_object_iterator): New.
1306         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
1307         (FOR_EACH_ALLOCNO_OBJECT): New macro.
1308         * ira-lives.c (objects_live): Renamed from allocnos_live; all
1309         uses changed.
1310         (allocnos_processed): New sparseset.
1311         (make_object_born): Renamed from make_allocno_born; take an
1312         ira_object_t argument.  All callers changed.
1313         (make_object_dead): Renamed from make_allocno_dead; take an
1314         ira_object_t argument.  All callers changed.
1315         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
1316         All callers changed.
1317         (mark_pseudo_regno_live): Iterate over allocno subobjects.
1318         (mark_pseudo_regno_dead): Likewise.
1319         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
1320         functions.
1321         (mark_ref_live): Detect subword accesses and call
1322         mark_pseudo_regno_subword_live as appropriate.
1323         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
1324         (process_bb_nodes_live): Deal with object-related updates first; set
1325         and test bits in allocnos_processed to avoid computing allocno
1326         statistics more than once.
1327         (create_start_finish_chains): Iterate over objects, not allocnos.
1328         (print_object_live_ranges): New function.
1329         (print_allocno_live_ranges): Use it.
1330         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
1331         and objects_live.
1332
1333 2010-07-22  Richard Guenther  <rguenther@suse.de>
1334
1335         PR lto/42451
1336         * gimple.c (gtc_next_dfs_num): New global.
1337         (struct sccs): Make value a union, add integer same_p member.
1338         (gtc_visit): New function.
1339         (gimple_types_compatible_p_1): New function, split out from ...
1340         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
1341         (iterative_hash_gimple_type): Adjust for sccs change.
1342
1343 2010-07-22  Martin Jambor  <mjambor@suse.cz>
1344
1345         PR tree-optimization/44891
1346         * tree-sra.c: Include gimple-pretty-print.h.
1347         (replace_uses_with_default_def_ssa_name): Renamed to
1348         get_repl_default_def_ssa_name, return the new SSA name instead of
1349         replacing the old one.
1350         (sra_modify_assign): Dump a message when removing a load, if the LHS
1351         is an SSA_NAME, do not do any propagation, just set the RHS to a
1352         default definition SSA NAME, type convert if necessary.
1353         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
1354
1355 2010-07-22  Richard Guenther  <rguenther@suse.de>
1356
1357         PR tree-optimization/45017
1358         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
1359         TYPE_PRECISION of integral types in addition to size.
1360
1361 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1362
1363         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
1364         when no C library is specified.
1365
1366 2010-07-22  Martin Jambor  <mjambor@suse.cz>
1367
1368         * ipa-prop.h (struct ipa_node_params): Updated comment.
1369         (struct ipa_edge_args): Likewise.
1370         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
1371
1372 2010-07-22  Martin Jambor  <mjambor@suse.cz>
1373
1374         * cgraphunit.c (verify_edge_count_and_frequency): New function.
1375         (verify_cgraph_node): Verify frequencies of indirect edges.
1376         * tree-inline.c (tree_function_versioning): Update frequencies of
1377         indirect edges.
1378
1379 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1380
1381         PR target/43698
1382         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
1383         Set *arm_rev to be predicable.
1384
1385 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
1386
1387         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
1388         (LINK_COMMAND_SPEC_A): New.
1389         (DSYMUTIL): New.
1390         (DSYMUTIL_SPEC): New.
1391         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
1392         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
1393
1394 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
1395
1396         * calls.c (load_register_parameters): Move check for zero
1397         sized items so that only the call to
1398         mem_overlaps_already_clobbered_arg_p () is protected.
1399
1400 2010-07-22  Jan Hubicka  <jh@suse.cz>
1401
1402         * ipa-pure-const.c (varying_state): Break out from ...
1403         (get_function_state): ... here; always return varying_state
1404         when state would be NULL otherwise.
1405         (remove_node_data): Do not free varying state.
1406
1407 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1408
1409         PR bootstrap/44970
1410         PR middle-end/45009
1411         * postreload.c: Include "target.h".
1412         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
1413         into account.
1414         (fixup_debug_insns): Don't copy the rtx.
1415         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
1416         Don't copy when replacing.  Call fixup_debug_insns in the case where
1417         we merged one add with another.
1418         (reload_combine_recognize_pattern): Fail if there aren't any uses.
1419         Try harder to determine whether we're picking a valid index register.
1420         Don't set store_ruid for an insn we're going to scan in the
1421         next iteration.
1422         (reload_combine): Remove unused code.
1423         (reload_combine_note_use): When updating use information for
1424         an old insn, ignore a use that occurs after store_ruid.
1425         * Makefile.in (postreload.o): Update dependencies.
1426
1427         * function.c (record_hard_reg_sets): Restrict the previous change
1428         to cases where the incoming nominal mode is the same as the
1429         incoming promoted mode and everything happens in MODE_INT.
1430
1431 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
1432
1433         PR debug/45015
1434         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
1435         ASM_OPERANDS_OUTPUT_IDX.
1436         (adjust_insn): For inline asm with multiple sets ensure first
1437         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
1438         the insn.
1439
1440 2010-07-21  Richard Henderson  <rth@redhat.com>
1441
1442         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
1443         comparison for avoiding xmm register saves.  Emit the xmm register
1444         saves explicitly.
1445         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
1446         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
1447         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
1448         Remove patterns and the associated splitters.
1449
1450 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
1451
1452         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
1453         and imagine parts of a complex, so that they can have the same
1454         base and fall into the same group.
1455
1456 2010-07-21  Richard Guenther  <rguenther@suse.de>
1457
1458         PR lto/45018
1459         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
1460         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
1461         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
1462
1463 2010-07-21  Martin Jambor  <mjambor@suse.cz>
1464
1465         PR tree-optimization/44900
1466         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
1467         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
1468
1469 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
1470
1471         PR middle-end/44738
1472         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
1473
1474 2010-07-21  Richard Guenther  <rguenther@suse.de>
1475
1476         PR middle-end/45013
1477         * tree-ssa.c (useless_type_conversion_p): Dispatch to
1478         gimple_types_compatible_p only when in lto.
1479         * gimple.c (gimple_types_compatible_p): Use canonical types
1480         to speed up comparison.
1481
1482 2010-07-21  Richard Guenther  <rguenther@suse.de>
1483
1484         * tree-flow.h (referenced_var): Move define ...
1485         * tree-flow-inline.h (referenced_var): ... here as an inline
1486         function.  Assert here ...
1487         * tree-dfa.c (referenced_var_lookup): ... instead of here.
1488         * tree-ssa.c (maybe_optimize_var): Check if the variable
1489         is in referenced vars.
1490         (execute_update_addresses_taken): Remove old broken check.
1491         * gimple-pretty-print.c (pp_points_to_solution): Use
1492         referenced_var_lookup.
1493         * tree-into-ssa.c (dump_decl_set): Likewise.
1494
1495 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
1496
1497         PR debug/45003
1498         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
1499         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
1500         ZERO_EXTEND here.
1501
1502 2010-07-20  Richard Henderson  <rth@redhat.com>
1503
1504         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
1505
1506 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
1507
1508         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
1509         computing the sum of the stack pointer and a large constant.
1510         * config/arm/constraints.md (M): Remove superfluous parentheses.
1511         (Pc): New constraint.
1512
1513 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
1514
1515         PR debug/45006
1516         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
1517         operand's type if exp is tcc_unary class tree.
1518
1519 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
1520
1521         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
1522         Reverse sense of if_then_else condition.
1523
1524 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
1525
1526         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
1527         * config/rs6000/rs6000.c (rs6000_override_options): Set
1528         rs6000_block_move_inline_limit appropriately.
1529         (expand_block_move): Use rs6000_block_move_inline_limit.
1530         * doc/invoke.texi (mblock-move-inline-limit): Document.
1531
1532 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
1533
1534         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
1535         FROM and TO.  All callers changed.  Don't look for tracked uses,
1536         just scan the RTL for DEBUG_INSNs and substitute.
1537         (reload_combine_recognize_pattern): Call fixup_debug_insns.
1538         (reload_combine): Ignore DEBUG_INSNs.
1539
1540 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
1541
1542         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
1543         depth to 8 from 5.
1544
1545         PR debug/45003
1546         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
1547         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
1548         instead of the result's type.
1549
1550 2010-07-20  Richard Guenther  <rguenther@suse.de>
1551
1552         PR tree-optimization/44977
1553         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
1554         SSA form.
1555
1556 2010-07-20  Richard Guenther  <rguenther@suse.de>
1557
1558         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
1559         (lto_symtab_merge_decls_2): Likewise.
1560         * gimple.h (gimple_types_compatible_p): Declare.
1561         * gimple.c (gimple_queue_type_fixup): Remove.
1562         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
1563         (gimple_compatible_complete_and_incomplete_type_p): New function.
1564         (gimple_types_compatible_p): Adjust.
1565         (gimple_register_type): Remove type fixup code.
1566         (print_gimple_types_stats): Adjust.
1567         (free_gimple_type_tables): Likewise.
1568         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
1569         * tree-ssa.c (useless_type_conversion_p): Likewise.
1570
1571 2010-07-20  Richard Guenther  <rguenther@suse.de>
1572
1573         PR middle-end/44971
1574         PR middle-end/44988
1575         * tree-ssa.c (maybe_optimize_var): New function split out from ...
1576         (execute_update_addresses_taken): ... here.
1577         (non_rewritable_mem_ref_base): Likewise.
1578         (execute_update_addresses_taken): Do not iterate over all referenced
1579         vars but just all local decls and parms.
1580         Properly check call and asm arguments and rewrite call arguments.
1581
1582 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
1583
1584         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
1585         to top level.
1586         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
1587         definitions ...
1588         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
1589         New macro.
1590         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
1591
1592 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
1593
1594         * gengtype.c (start_root_entry): New function, split out from
1595         write_root.  Check whether V is null and raise an error if so.
1596         (write_field_root): Check for V being null.  Don't raise an error here;
1597         set V to null instead.
1598         (write_root): Update comment above function.  Use start_root_entry.
1599
1600 2010-07-19  Xinliang David Li  <davidxl@google.com>
1601
1602         PR testsuite/44932
1603         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
1604         def edges.
1605         (find_uninit_use): Add dump.
1606         (is_use_properly_guarded): Ditto.
1607         (warn_uninitialized_phi): Ditto.
1608         (execute_late_warn_uninitialized): Ditto.
1609
1610 2010-07-19  Richard Guenther  <rguenther@suse.de>
1611
1612         PR middle-end/44941
1613         * expr.c (emit_block_move_hints): Move zero size check first.
1614         Move asserts to more useful places.
1615         * calls.c (load_register_parameters): Check for zero size.
1616
1617 2010-07-19  Richard Henderson  <rth@redhat.com>
1618
1619         * tree-optimize.c (execute_all_early_local_passes): New.  Change
1620         cgraph_state here ...
1621         (execute_early_local_optimizations): ... not here.  Remove.
1622         (pass_early_local_passes, pass_all_early_optimizations): Update.
1623
1624 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
1625
1626         * postreload.c (reload_combine_closest_single_use): Ignore the
1627         number of uses for DEBUG_INSNs.
1628         (fixup_debug_insns): New static function.
1629         (reload_combine_recognize_const_pattern): Use it.  Don't let the
1630         main loop be affected by DEBUG_INSNs.
1631         Really disallow moving adds past a jump insn.
1632         (reload_combine_recognize_pattern): Don't update use_ruid here.
1633         (reload_combine_note_use): Do it here.
1634         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
1635
1636 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
1637
1638         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
1639         of a loop.
1640         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
1641
1642 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
1643
1644         * config/i386/darwin.h: Define darwin_emit_branch_islands.
1645         (TARGET_MACHO_BRANCH_ISLANDS): New.
1646         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
1647         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
1648         default value.
1649         * config/i386/i386.c (output_pic_addr_const): Do not emit
1650         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
1651         (x86_output_mi_thunk): Adjust symbol creation.
1652         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
1653         Remove out of date comment.
1654         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
1655         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
1656         (DARWIN_GENERATE_ISLANDS): Ditto.
1657         (output_call):  Do not emit branch islands unless
1658         darwin_emit_branch_islands is set.
1659         * config/darwin.c: Declare darwin_emit_branch_islands.
1660         (machopic_indirect_data_reference): Do not emit unless
1661         darwin_emit_branch_islands is set.
1662         (darwin_override_options): Set darwin_emit_branch_islands
1663         where it is needed.
1664         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
1665
1666 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1667
1668         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1669         sse_runtime, sse2_runtime.
1670
1671 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
1672
1673         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
1674         low half of a single-register SCmode return value before ORing
1675         it with the high half.
1676         * config/mips/mips16.S (MERGE_GPRf): Likewise.
1677
1678 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1679
1680         PR target/44805
1681         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
1682         on all targets.
1683
1684 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
1685
1686         PR target/42235
1687         * postreload.c (reload_cse_move2add): Return bool, true if anything.
1688         changed.  All callers changed.
1689         (move2add_use_add2_insn): Likewise.
1690         (move2add_use_add3_insn): Likewise.
1691         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
1692         reload_combine.
1693         (RELOAD_COMBINE_MAX_USES): Bump to 16.
1694         (last_jump_ruid): New static variable.
1695         (struct reg_use): New members CONTAINING_MEM and RUID.
1696         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
1697         (reload_combine_split_one_ruid, reload_combine_split_ruids,
1698         reload_combine_purge_insn_uses, reload_combine_closest_single_use
1699         reload_combine_purge_reg_uses_after_ruid,
1700         reload_combine_recognize_const_pattern): New static functions.
1701         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
1702         is true for our reg and that we have available index regs.
1703         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
1704         callers changed.  Use them to initialize fields in struct reg_use.
1705         (reload_combine): Initialize last_jump_ruid.  Be careful when to
1706         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
1707         Call reload_combine_recognize_const_pattern.
1708         (reload_combine_note_store): Update REAL_STORE_RUID field.
1709
1710 2010-07-16  Jason Merrill  <jason@redhat.com>
1711
1712         * Makefile.in (opts-common.o): Depend on options.h.
1713
1714 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
1715
1716         * tree.c (build_common_builtin_nodes): Use build_function_type_list
1717         instead of build_function_type.
1718         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
1719         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1720
1721 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
1722
1723         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
1724         do all the work.
1725         (rs6000_emit_int_cmove): Use function pointers for insn generation.
1726         Don't force values into registers unnecessarily.
1727         (output_isel): Assert that we're not given conditions we can't handle.
1728         Delete corresponding code.
1729         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
1730         scc_comparison_operator constraint.  Permit 0 for the consequent
1731         operand.  Permit any GPR for the alternative operand.
1732         (isel_unsigned_<mode>): Likewise.
1733
1734 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
1735
1736         PR target/44942
1737         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
1738         argument to const_tree.
1739         * config/i386/i386.c (function_arg_advance): If padding needs to be
1740         inserted before argument, increment cum->words by number of padding
1741         words as well.
1742         (contains_aligned_value_p): Change argument to const_tree.
1743         (ix86_function_arg_boundary): Change second argument to const_tree.
1744
1745 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
1746
1747         PR target/42235
1748         * function.c (record_hard_reg_sets): New static function.
1749         (assign_parm_setup_reg): If an optab for extending exists and the
1750         generated code clobbbers no hard regs, emit the insn directly and
1751         create a REG_EQUIV note.
1752
1753 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1754
1755         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
1756         TREE_CHAIN.
1757         * c-typeck.c (push_init_level): Likewise.
1758         (process_init_element): Likewise.
1759
1760 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
1761
1762         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
1763         (integer_three_node): Add.
1764         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
1765         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
1766         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
1767         of call build_int_cst.
1768         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
1769         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
1770         (find_interesting_uses_address): Ditto.
1771         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
1772         * tree-eh.c (lower_eh_constructs_2): Ditto.
1773         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
1774         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
1775         * expmed.c (expand_divmod): Ditto.
1776         * tree-mudflap.c (mx_register_decls): Ditto.
1777         * varasm.c (array_size_for_constructor): Ditto.
1778         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1779         * c-parser.c (c_parser_postfix_expression): Ditto.
1780
1781 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
1782
1783         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
1784         New static variables.
1785         (reload_combine_recognize_pattern): New static function, broken out
1786         of reload_combine.
1787         (reload_combine): Use it.  Only initialize first_index_reg and
1788         last_index_reg once.
1789
1790 2010-07-15  Richard Henderson  <rth@redhat.com>
1791
1792         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
1793         when done.
1794
1795 2010-07-15  Jan Hubicka  <jh@suse.cz>
1796
1797         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
1798         comdats for broken gold.
1799         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
1800
1801 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1802
1803         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
1804
1805 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1806
1807         * tree.h (DECL_CHAIN): Define.
1808         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1809         * c-decl.c: Likewise.
1810         * c-parser.c: Likewise.
1811         * c-typeck.c: Likewise.
1812         * cfgexpand.c: Likewise.
1813         * cgraph.c: Likewise.
1814         * cgraphunit.c: Likewise.
1815         * combine.c: Likewise.
1816         * config/alpha/alpha.c: Likewise.
1817         * config/arm/arm.c: Likewise.
1818         * config/frv/frv.c: Likewise.
1819         * config/i386/i386.c: Likewise.
1820         * config/i386/winnt-cxx.c: Likewise.
1821         * config/ia64/ia64.c: Likewise.
1822         * config/iq2000/iq2000.c: Likewise.
1823         * config/mep/mep.c: Likewise.
1824         * config/mips/mips.c: Likewise.
1825         * config/pa/som.h: Likewise.
1826         * config/rs6000/rs6000.c: Likewise.
1827         * config/s390/s390.c: Likewise.
1828         * config/sh/sh.c: Likewise.
1829         * config/sh/symbian-cxx.c: Likewise.
1830         * config/sparc/sparc.c: Likewise.
1831         * config/spu/spu.c: Likewise.
1832         * config/stormy16/stormy16.c: Likewise.
1833         * config/vxworks.c: Likewise.
1834         * config/xtensa/xtensa.c: Likewise.
1835         * coverage.c: Likewise.
1836         * dbxout.c: Likewise.
1837         * dwarf2out.c: Likewise.
1838         * emit-rtl.c: Likewise.
1839         * expr.c: Likewise.
1840         * function.c: Likewise.
1841         * gimple-low.c: Likewise.
1842         * gimple-pretty-print.c: Likewise.
1843         * gimplify.c: Likewise.
1844         * integrate.c: Likewise.
1845         * ipa-inline.c: Likewise.
1846         * ipa-prop.c: Likewise.
1847         * ipa-split.c: Likewise.
1848         * ipa-struct-reorg.c: Likewise.
1849         * ipa-type-escape.c: Likewise.
1850         * langhooks.c: Likewise.
1851         * lto-cgraph.c: Likewise.
1852         * omp-low.c: Likewise.
1853         * stor-layout.c: Likewise.
1854         * tree-cfg.c: Likewise.
1855         * tree-complex.c: Likewise.
1856         * tree-dfa.c: Likewise.
1857         * tree-dump.c: Likewise.
1858         * tree-inline.c: Likewise.
1859         * tree-mudflap.c: Likewise.
1860         * tree-nested.c: Likewise.
1861         * tree-object-size.c: Likewise.
1862         * tree-pretty-print.c: Likewise.
1863         * tree-sra.c: Likewise.
1864         * tree-ssa-live.c: Likewise.
1865         * tree-ssa-loop-niter.c: Likewise.
1866         * tree-ssa-math-opts.c: Likewise.
1867         * tree-ssa-reassoc.c: Likewise.
1868         * tree-ssa-sccvn.c: Likewise.
1869         * tree-ssa-structalias.c: Likewise.
1870         * tree-tailcall.c: Likewise.
1871         * tree-vrp.c: Likewise.
1872         * tree.c: Likewise.
1873         * var-tracking.c: Likewise.
1874         * varasm.c: Likewise.
1875
1876 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1877
1878         PR target/44877
1879         * config/spu/spu.c (spu_expand_builtin_1): Allow references
1880         (as well as pointers) as argument to mask_for_load builtins.
1881
1882 2010-07-15  Richard Guenther  <rguenther@suse.de>
1883
1884         PR tree-optimization/44946
1885         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
1886         with accessing only padding properly.
1887
1888 2010-07-15  Jan Hubicka  <jh@suse.cz>
1889
1890         * ipa.c (function_and_variable_visibility): Variables marked as used
1891         should not be localized.
1892
1893 2010-07-15  Jan Hubicka  <jh@suse.cz>
1894
1895         * cgraph.c: Include lto-streamer.h
1896         (change_decl_assembler_name): Work when assembler name hash is at place.
1897         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
1898         be sure to rename it to avoid name clash.
1899         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
1900         Localize hidden symbols only when locally defined.
1901
1902 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
1903
1904         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
1905
1906 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
1907             Kevin F. Quinn  <kevquinn@gentoo.org>
1908
1909         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
1910         * common.opt: Add -Wtrampolines.
1911         * doc/invoke.texi: Add -Wtrampolines.
1912
1913 2010-07-15  Jie Zhang  <jie@codesourcery.com>
1914
1915         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
1916         cortex_a8_issue_ls.
1917
1918 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
1919
1920         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
1921         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1922
1923 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1924
1925         * config/spu/spu.c (reg_names): Remove prototype.
1926         (call_used_regs): Likewise.
1927
1928 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
1929
1930         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
1931         "unused" with attribute "used".
1932         (__JCR_END__): Likewise.
1933         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
1934         "used" attribute.
1935         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
1936
1937 2010-07-14  Richard Guenther  <rguenther@suse.de>
1938
1939         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
1940         (maybe_fixup_decls): Likewise.
1941         (input_gimple_stmt): Do not fixup anything.
1942         * lto-streamer-out.c (output_gimple_stmt): Make sure all
1943         non-automatic variable uses are wrapped inside a MEM_REF.
1944
1945 2010-07-14  Richard Henderson  <rth@redhat.com>
1946
1947         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
1948         for functions.
1949         * varasm.c (assemble_variable): Remove early exit for functions;
1950         assert that we're given a variable.
1951
1952 2010-07-14  Jie Zhang  <jie@codesourcery.com>
1953
1954         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
1955         cortex_a8_default when neon_type is not none.
1956
1957 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1958
1959         * lower-subreg.c (subreg_context): New static bitmap.
1960         (decompose_multiword_subregs): Allocate and free it.
1961         (find_decomposable_subregs): Set a bit in it for a register that
1962         occurs in a subreg that changes mode but not size.
1963         (can_decompose_p): Test it instead of non_decomposable_context.
1964
1965 2010-07-14  Richard Guenther  <rguenther@suse.de>
1966
1967         PR tree-optimization/44824
1968         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
1969         is_gimple_mem_ref_addr.
1970         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
1971         non-decl_address_invariant_p addresses.
1972
1973 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1974
1975         * reload.c (find_reloads): Revert code to penalize small register
1976         classes that was brought in with the IRA merge.
1977
1978 2010-07-14  Richard Guenther  <rguenther@suse.de>
1979
1980         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
1981         as base of ARRAY_REFs.
1982
1983 2010-07-14  Richard Guenther  <rguenther@suse.de>
1984
1985         PR middle-end/44930
1986         * tree-pretty-print.c (do_niy): Do not print a newline.
1987
1988 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1989
1990         * ira-int.h (struct ira_object): New.
1991         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
1992         (struct ira_allocno): Remove members min, max,
1993         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
1994         conflict_allocnos_num and conflict_vec_p.  Add new member object.
1995         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
1996         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
1997         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
1998         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
1999         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
2000         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
2001         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
2002         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
2003         an ira_object_t rather than ira_allocno_t.  All uses changed.
2004         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2005         contains a vector of ira_object_t; all uses changed.
2006         (ira_objects_num): Declare variable.
2007         (ira_create_allocno_object): Declare function.
2008         (ira_conflict_vector_profitable_p): Adjust prototype.
2009         (ira_allocate_conflict_vec): Renamed from
2010         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
2011         (ira_allocate_object_conflicts): Renamed from
2012         ira_allocate_allocno_conflicts; first arg now ira_object_t.
2013         (struct ira_object_iterator): New.
2014         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
2015         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
2016         to conflict_vec_p.  All uses changed.
2017         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
2018         Changed to take into account that conflicts are now tracked for
2019         objects.
2020         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
2021         Args changed to accept ira_object_t.  All uses changed.
2022         (allocnos_conflict_p): New static function.
2023         (collected_conflict_objects): Renamed from collected_allocno_objects;
2024         now a vector of ira_object_t.  All uses changed.
2025         (build_conflict_bit_table): Changed to take into account that
2026         conflicts are now tracked for objects.
2027         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
2028         (print_allocno_conflicts, ira_build_conflicts): Likewise.
2029         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
2030         setup_allocno_left_conflicts_size, allocno_reload_assign,
2031         fast_allocation): Likewise.
2032         * ira-lives.c (make_hard_regno_born, make_allocno_born)
2033         process_single_reg_class_operands, process_bb_node_lives): Likewise.
2034         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
2035         Likewise.
2036         * ira-build.c (ira_objects_num): New variable.
2037         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2038         contains a vector of ira_object_t; all uses changed.
2039         (ira_object_id_map_vec): Corresponding change.
2040         (object_pool): New static variable.
2041         (initiate_allocnos): Initialize it.
2042         (finish_allocnos): Free it.
2043         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
2044         New functions.
2045         (ira_create_allocno): Don't set members that were removed.
2046         (ira_set_allocno_cover_class): Don't change conflict hard regs.
2047         (merge_hard_reg_conflicts): Changed to take into account that
2048         conflicts are now tracked for objects.
2049         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
2050         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
2051         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
2052         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
2053         setup_min_max_conflict_allocno_ids, ):  Likewise.
2054         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
2055         to ira_object_t; all callers changed.
2056         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
2057         to ira_object_t, all callers changed.
2058         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
2059         to ira_object_t, all callers changed.
2060         (conflict_check, curr_conflict_check_tick): Renamed from
2061         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
2062         changed.
2063         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
2064         arg changed to ira_object_t, all callers changed.
2065         (create_cap_allocno): Call ira_create_allocno_object.
2066         (finish_allocno): Free the corresponding object.
2067         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
2068         callers changed.  Adjusted for dealing with objects.
2069         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
2070         dealing with objects.
2071         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
2072
2073         * ira-int.h (struct live_range): Rename allocno member to object
2074         and change type to ira_object_t.
2075         (struct ira_object): New member live_ranges.
2076         (struct ira_allocno): Remove member live_ranges.
2077         (ALLOCNO_LIVE_RANGES): Remove.
2078         (OBJECT_LIVE_RANGES): New macro.
2079         (ira_create_live_range, ira_copy_live_range_list,
2080         ira_merge_live_range_list, ira_live_ranges_intersect_p,
2081         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
2082         * ira-build.c (ira_create_object): Initialize live ranges here.
2083         (ira_create_allocno): Not here.
2084         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
2085         changed to ira_object_t, all callers changed.
2086         (copy_live_range): Rename from copy_allocno_live_range, all callers
2087         changed.
2088         (ira_copy_live_range_list): Rename from
2089         ira_copy_allocno_live_range_list, all callers changed.
2090         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
2091         all callers changed.
2092         (ira_live_ranges_intersect_p): Rename from
2093         ira_allocno_live_ranges_intersect_p, all callers changed.
2094         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
2095         callers changed.
2096         (ira_finish_live_range_list): Rename from
2097         ira_finish_allocno_live_range_list, all callers changed.
2098         (change_object_in_range_list): Rename from change_allocno_in_range_list,
2099         last arg changed to ira_object_t, all callers changed.
2100         (finish_allocno): Changed to expect live ranges in the allocno's object.
2101         (move_allocno_live_ranges, copy_allocno_live_ranges,
2102         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
2103         ira_flattening, ira_build): Likewise.
2104         * ira-color.c (allocnos_have_intersected_live_ranges_p,
2105         slot_coalesced_allocno_live_ranges_intersect,
2106         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
2107         * ira-conflicts.c (build_conflict_bit_table): Likewise.
2108         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2109         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
2110         make_allocno_dead, create_start_finish_chains,
2111         remove_some_program_points_and_update_live_ranges,
2112         ira_debug_live_range_list): Likewise.
2113
2114         * ira-int.h (ira_object_conflict_iterator): Rename from
2115         ira_allocno_conflict_iterator.
2116         (ira_object_conflict_iter_init): Rename from
2117         ira_allocno_conflict_iter_init, second arg changed to
2118         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
2119         FOR_EACH_ALLOCNO_CONFLICT.
2120         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
2121         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
2122         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
2123         * ira-conflicts.c (print_allocno_conflicts): Likewise.
2124
2125 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
2126
2127         PR other/44874
2128         * tree-dump.c (dump_options): Add enumerate_locals entry.
2129         Add TDF_NOID exclusion to all entry.
2130         * tree-dump.h (dump_enumerated_decls): Declare.
2131         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
2132         Don't display type uid.
2133         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
2134         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
2135         * tree-ssa-live.c: Include gimple.h.
2136         (numbered_tree_d): New struct.
2137         (numbered_tree): New typedef.
2138         (DEF_VEC_O (numbered_tree): New.
2139         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
2140         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
2141         (dump_enumerated_decls): Likewise.
2142         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
2143         debug info and flag_dump_final_insns, call dump_enumerated_decls.
2144         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
2145         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
2146
2147 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
2148
2149         * expmed.h (MAX_BITS_PER_WORD): Move to...
2150         * defaults.h (MAX_BITS_PER_WORD): ...here.
2151
2152 2010-07-13  DJ Delorie  <dj@redhat.com>
2153
2154         * config/h8300/h8300.c (h8300_init_once): Default to
2155         -fstrict_volatile_bitfields.
2156
2157         * config/sh/sh.c (sh_override_options): Default to
2158         -fstrict_volatile_bitfields.
2159
2160         * config/rx/rx.c (rx_option_override): New.
2161
2162         * config/m32c/m32c.c (m32c_override_options): Default to
2163         -fstrict_volatile_bitfields.
2164
2165 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
2166
2167         * tree.h (build_function_call_expr): Delete.
2168         (build_call_expr_loc_array): New function.
2169         (build_call_expr_loc_vec): New function.
2170         * tree-flow.h (struct omp_region): Change type of ws_args field
2171         to a VEC.
2172         * builtins.c (build_function_call_expr): Delete.
2173         (build_call_expr_loc_array): New function.
2174         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
2175         (build_call_expr): Likewise.
2176         (build_call_expr_loc_vec): New function.
2177         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
2178         build_function_call_expr.
2179         * expr.c (emutls_var_address): Likewise.
2180         * varasm.c (emutls_common_1): Likewise.
2181         * omp-low.c (expand_omp_atomic_mutex): Likewise.
2182         (expand_omp_taskreg): Adjust for new type of region->ws_args.
2183         (get_ws_args_for): Return a VEC instead of a tree.
2184         (expand_parallel_call): Call build_call_expr_loc_vec instead of
2185         build_function_call_expr.
2186         * stor-layout.c (self_referential_size): Likewise.
2187
2188 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
2189
2190         PR testsuite/44701
2191         * recog.c (constrain_operands): Allow side-effects in memory
2192         operands if either < or > constraint is used, rather than if
2193         both < and > is used.
2194
2195 2010-07-13  Richard Guenther  <rguenther@suse.de>
2196
2197         PR middle-end/44911
2198         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
2199         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
2200         without name.
2201
2202 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2203
2204         PR target/44761
2205         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
2206         to variable emited.
2207         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
2208         * config/sh/sh.md (symGOT_load): Likewise.
2209         (symDTPOFF2reg): Likewise.
2210         (symTPOFF2reg): Likewise.
2211
2212 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2213
2214         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
2215         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
2216
2217 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2218
2219         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
2220         explanation.
2221         Find ucontext_t * on Solaris 11.
2222         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
2223         Handle new Solaris 11 __sighndlr patterns.
2224
2225 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
2226
2227         PR debug/44901
2228         * vec.h (VEC_block_remove): Fix comment.
2229         * tree-ssa-live.c (remove_unused_locals): Don't use
2230         VEC_unordered_remove on local_decls, instead replace a single
2231         vector element in each iteration if at least one element had
2232         to be removed and VEC_truncate at the end.
2233         * omp-low.c (expand_omp_taskreg): Likewise.
2234
2235 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2236
2237         * c-decl.c (finish_function): Fix typo in comment.
2238
2239 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
2240
2241         PR bootstrap/44921
2242         * postreload.c (move2add_use_add3_insn): Silence gcc warning
2243         on min_regno.
2244
2245 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
2246
2247         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
2248         (simplify_stmt_using_ranges): Use it.
2249
2250 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2251
2252         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
2253         member.  Do not mark as GTY(()).
2254         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
2255         (spu_builtin_decls): New static variable.
2256         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
2257         (spu_init_builtins): Likewise.
2258         (spu_builtin_mul_widen_even): Likewise.
2259         (spu_builtin_mul_widen_odd): Likewise.
2260         (spu_builtin_mask_for_load): Likewise.
2261         (spu_builtin_vec_perm): Likewise.
2262         * config/spu/spu-c.c: Include "target.h".
2263         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
2264         of using spu_builtins[].fndecl.
2265
2266 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2267
2268         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
2269         imply -minterlink-mips16.
2270
2271 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2272
2273         * config/mips/mips.h (mips16_globals): Declare.
2274         (SWITCHABLE_TARGET): Define.
2275         * config/mips/mips.c: Include target-globals.h.
2276         (mips16_globals): New variable.
2277         (mips_set_mips16_mode): Use save_target_globals and
2278         restore_target_globals instead of target_reinit.
2279
2280 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2281
2282         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
2283         to say that the function can be called more than once.
2284         * target-globals.c (save_target_globals): Call init_reg_sets.
2285
2286 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2287
2288         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
2289         * bb-reorder.h: New file.
2290         * bb-reorder.c (default_target_bb_reorder): New variable.
2291         (this_target_bb_reorder): New conditional variable.
2292         (uncond_jump_length): Redefine as a macro.
2293         * target-globals.h (this_target_bb_reorder): Declare.
2294         (target_globals): Add a bb_reorder field.
2295         (restore_target_globals): Copy the bb_reorder field to
2296         this_target_bb-reorder.
2297         * target-globals.c: Include bb-reorder.h.
2298         (default_target_globals): Initialize the bb_reorder field.
2299         (save_target_globals): Likewise.
2300
2301 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2302
2303         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
2304         * gcse.h: New file.
2305         * gcse.c: Include gcse.h.
2306         (default_target_gcse): New variable.
2307         (this_target_gcse): New conditional variable.
2308         (can_copy): Redefine as a macro.
2309         (can_copy_init_p): New macro.
2310         (can_copy_p): Remove can_copy_init_p.
2311         * target-globals.h (this_target_gcse): Declare.
2312         (target_globals): Add a gcse field.
2313         (restore_target_globals): Copy the gcse field to this_target_gcse.
2314         * target-globals.c: Include gcse.h.
2315         (default_target_globals): Initialize the gcse field.
2316         (save_target_globals): Likewise.
2317
2318 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2319
2320         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
2321         and x_ira_prohibited_mode_move_regs_initialized_p.
2322         (ira_prohibited_mode_move_regs): Redefine as a macro.
2323         * ira.c (ira_prohibited_mode_move_regs): Delete.
2324         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
2325
2326 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2327
2328         * reload.h (target_reload): Add x_cached_reg_save_code and
2329         x_cached_reg_restore_code.
2330         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
2331         Redefine as macros.
2332
2333 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2334
2335         * Makefile.in (target-globals.o): Depend on builtins.h.
2336         * builtins.h: New file.
2337         * builtins.c: Include builtins.h.
2338         (default_target_builtins): New variable.
2339         (this_target_builtins): New conditional variable.
2340         (apply_args_mode, apply_result_mode): Redefine as macros.
2341         * target-globals.h (this_target_builtins): Declare.
2342         (target_globals): Add a builtins field.
2343         (restore_target_globals): Copy the builtins field to
2344         this_target_builtins.
2345         * target-globals.c: Include builtins.h.
2346         (default_target_globals): Initialize the builtins field.
2347         (save_target_globals): Likewise.
2348
2349 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2350
2351         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
2352         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
2353         from expmed.c.
2354         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
2355         (alg_hash, alg_hash_used_p): New macros.
2356         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
2357         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
2358         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
2359
2360 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2361
2362         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
2363         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
2364         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
2365         (this_op_costs, costs_classes): Redefine as macros.
2366         (record_reg_classes): Don't take op_costs as a parameter.
2367         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
2368         (scan_one_insn): Update call to record_operand_costs.
2369
2370 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2371
2372         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
2373         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
2374         (target_ira_int): New structure.
2375         (default_target_ira_int): Declare.
2376         (this_target_ira_int): Declare as a variable or define as a macro.
2377         (ira_reg_mode_hard_regset, ira_register_move_cost)
2378         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
2379         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
2380         (prohibited_class_mode_regs, ira_important_classes_num)
2381         (ira_important_classes, ira_reg_class_intersect)
2382         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
2383         (ira_reg_class_union): Redefine as macros.
2384         * ira.h (target_ira): New structure.
2385         (default_target_ira): Declare.
2386         (this_target_ira): Declare as a variable or define as a macro.
2387         (ira_available_class_regs, ira_hard_regno_cover_class)
2388         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
2389         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
2390         (ira_class_hard_regs_num): Redefine as macros.
2391         * ira.c (default_target_ira, default_target_ira_int): New variables.
2392         (this_target_ira, this_target_ira_int): New conditional variables.
2393         (ira_reg_mode_hard_regset, ira_memory_move_cost)
2394         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
2395         (ira_class_subset_p): Delete.
2396         (no_unit_alloc_regs): Redefine as a macro.
2397         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
2398         (ira_class_hard_regs_num, ira_class_hard_reg_index)
2399         (ira_available_class_regs): Delete.
2400         (alloc_reg_class_subclasses): Redefine as a macro.
2401         (ira_reg_class_cover_size, ira_reg_class_cover)
2402         (ira_important_classes_num, ira_important_classes)
2403         (ira_important_class_nums, ira_class_translate): Delete.
2404         (cover_class_order): Document the variable's lifetime.
2405         (reorder_important_classes): Don't set ira_important_class_nums.
2406         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
2407         (ira_reg_class_super_classes, ira_reg_class_union)
2408         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
2409         Delete.
2410         (setup_reg_class_nregs): Don't set ira_max_regs.
2411         (prohibited_class_mode_regs): Delete.
2412         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
2413         (target_globals): Add ira and ira_int fields.
2414         (restore_target_globals): Copy the ira field to this_target_ira
2415         and the ira_int field to this_target_ira_int.
2416         * target-globals.c: Include ira-int.h.
2417         (default_target_globals): Initialize the ira and ira_int fields.
2418         (save_target_globals): Likewise.
2419
2420 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2421
2422         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
2423         * cfgloop.h (target_cfgloop): New structure.
2424         (default_target_cfgloop): Declare.
2425         (this_target_cfgloop): Declare as a variable or define as a macro.
2426         (target_avail_regs, target_clobbered_regs, target_res_regs)
2427         (target_reg_cost, target_spill_cost): Redefine as macros.
2428         * cfgloopanal.c (default_target_cfgloop): New variable.
2429         (this_target_cfgloop): New conditional variable.
2430         (target_avail_regs, target_clobbered_regs, target_res_regs)
2431         (target_reg_cost, target_spill_cost): Delete.
2432         * target-globals.h (this_target_cfgloop): Declare.
2433         (target_globals): Add a cfgloop field.
2434         (restore_target_globals): Copy the cfgloop field to
2435         this_target_cfgloop.
2436         * target-globals.c: Include cfgloop.h.
2437         (default_target_globals): Initialize the cfgloop field.
2438         (save_target_globals): Likewise.
2439
2440 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2441
2442         * regs.h (target_regs): Add x_direct_load, x_direct_store and
2443         x_float_extend_from_mem.
2444         (direct_load, direct_store, float_extend_from_mem): New macros.
2445         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
2446
2447 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2448
2449         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
2450         (target-globals.o): Depend on $(LIBFUNCS_H).
2451         * libfuncs.h: Include hashtab.h.
2452         (libfunc_entry): Moved from optabs.c.
2453         (target_libfuncs): New structure.
2454         (default_target_libfuncs): Declare.
2455         (this_target_libfuncs): Declare as a variable or define as a macro.
2456         (libfunc_table): Redefine as a macro.
2457         * optabs.c (default_target_libfuncs): New variable.
2458         (this_target_libfuncs): New conditional variable.
2459         (libfunc_table): Delete.
2460         (libfunc_entry): Moved to optabs.h.
2461         (libfunc_hash): Redefine as a macro.
2462         (hash_libfunc, eq_libfunc): Fix comments.
2463         (init_optabs): Use libfunc_hash to detect cases where the function
2464         has already been called.  Clear the hash table instead of
2465         recreating it.
2466         * target-globals.h (this_target_libfuncs): Declare.
2467         (target_globals): Add a libfuncs field.
2468         (restore_target_globals): Copy the libfuncs field to
2469         this_target_libfuncs.
2470         * target-globals.c: Include libfuncs.h.
2471         (default_target_globals): Initialize the libfuncs field.
2472         (save_target_globals): Likewise.
2473
2474 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2475
2476         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
2477         in all dependency lists.
2478
2479 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2480
2481         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
2482         * optabs.h (target_optabs): New structure.
2483         (default_target_optabs): Declare.
2484         (this_target_optabs): Declare as a variable or define as a macro.
2485         (optab_table, convert_optab_table, direct_optab_table): Redefine
2486         as macros.
2487         * optabs.c (default_target_optabs): New variable.
2488         (this_target_optabs): New conditional variable.
2489         (optab_table, convert_optab_table, direct_optab_table): Delete.
2490         * target-globals.h (this_target_optabs): Declare.
2491         (target_globals): Add a optabs field.
2492         (restore_target_globals): Copy the optabs field to
2493         this_target_optabs.
2494         * target-globals.c: Include expr.h and optabs.h.
2495         (default_target_globals): Initialize the optabs field.
2496         (save_target_globals): Likewise.
2497
2498 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2499
2500         * flags.h (target_flagstate): Add x_flag_excess_precision.
2501         (flag_excess_precision): Redefine as a macro.
2502         * toplev.c (flag_excess_precision): Delete.
2503
2504 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2505
2506         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
2507         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
2508         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
2509         (no_caller_save_reg_set): Redefine as a macro.
2510         * reload.h (target_reload): Add x_caller_save_initialized_p and
2511         x_regno_save_mode.
2512         (caller_save_initialized_p): Redefine as a macro.
2513         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
2514         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
2515         (regno_save_mode): Redefine as a macro.
2516
2517 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2518
2519         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
2520         * expmed.h: New file.
2521         * expmed.c (default_target_costs): New variable.
2522         (this_target_costs): New conditional variable.
2523         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
2524         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
2525         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
2526         * target-globals.h (this_target_expmed): Declare.
2527         (target_globals): Add a expmed field.
2528         (restore_target_globals): Copy the expmed field to
2529         this_target_expmed.
2530         * target-globals.c: Include expmed.h.
2531         (default_target_globals): Initialize the expmed field.
2532         (save_target_globals): Likewise.
2533
2534 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2535
2536         * Makefile.in (target-globals.o): Depend on reload.h.
2537         * reload.h (target_reload): New structure.
2538         (default_target_reload): Declare.
2539         (this_target_reload): Declare as a variable or define as a macro.
2540         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
2541         * reload1.c (default_target_reload): New variable
2542         (this_target_reload): New conditional variable.
2543         (indirect_symref_ok, double_reg_address_ok): Delete.
2544         (spill_indirect_levels): Redefine as a macro.
2545         * target-globals.h (this_target_reload): Declare.
2546         (target_globals): Add a reload field.
2547         (restore_target_globals): Copy the reload field to
2548         this_target_reload.
2549         * target-globals.c: Include hard-reg-set.h.
2550         (default_target_globals): Initialize the reload field.
2551         (save_target_globals): Likewise.
2552
2553 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2554
2555         * rtl.h (target_rtl): Add x_static_reg_base_value.
2556         * alias.c (static_reg_base_value): Redefine as a macro.
2557
2558 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2559
2560         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
2561         (GTFILES): Remove reginfo.c.
2562         * rtl.h (target_rtl): Add x_top_of_stack.
2563         (top_of_stack): New macro.
2564         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
2565         (top_of_stack): Delete.
2566
2567 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2568
2569         * regs.h (target_regs): Add x_hard_regs_of_mode,
2570         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
2571         x_may_move_out_cost and x_last_mode_for_init_move_cost.
2572         (have_regs_of_mode, contains_reg_of_mode, move_cost)
2573         (may_move_in_cost, may_move_out_cost): Redefine as macros.
2574         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
2575         (may_move_in_cost, may_move_out_cost): Delete.
2576         (last_mode_for_init_move_cost): Redefine as a macro.
2577
2578 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2579
2580         * hard-reg-set.h (target_hard_regs): New structure.
2581         (default_target_hard_regs): Declare.
2582         (this_target_hard_regs): Declare as a variable or define as a macro.
2583         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
2584         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
2585         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
2586         (reg_class_size, reg_class_subclasses, reg_class_subunion)
2587         (reg_class_superunion, reg_names): Redefine as macros.
2588         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
2589         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
2590         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
2591         (reg_class_contents, reg_class_size, reg_class_subclasses)
2592         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
2593         (default_target_hard_regs): New variable
2594         (this_target_hard_regs, initial_call_really_used_regs)
2595         (initial_reg_alloc_order): New conditional variables.
2596         (initial_reg_names): New variable.
2597         (init_reg_sets): Assert that initial_call_really_used_regs,
2598         initial_reg_alloc_order and initial_reg_names
2599         are all the same size as their variable counterparts.  Use them to
2600         initialize those counterparts.
2601         * target-globals.h (this_target_hard_regs): Declare.
2602         (target_globals): Add a hard_regs field.
2603         (restore_target_globals): Copy the hard_regs field to
2604         this_target_hard_regs.
2605         * target-globals.c: Include hard-reg-set.h.
2606         (default_target_globals): Initialize the hard_regs field.
2607         (save_target_globals): Likewise.
2608
2609 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2610
2611         * Makefile.in (target-globals.o): Depend on $(RTL_H).
2612         * rtl.h (target_rtl): New structure.
2613         (default_target_rtl): Declare.
2614         (this_target_rtl): Declare as a variable or define as a macro.
2615         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
2616         Redefine as macros.
2617         * emit-rtl.c (default_target_rtl): New variable.
2618         (this_target_rtl): New conditional variable.
2619         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
2620         (return_address_pointer_rtx): Delete.
2621         (initial_regno_reg_rtx): New macro.
2622         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
2623         (init_emit_regs): Likewise.
2624         * target-globals.h (this_target_rtl): Declare.
2625         (target_globals): Add a rtl field.
2626         (restore_target_globals): Copy the rtl field to this_target_rtl.
2627         * target-globals.c: Include rtl.h.
2628         (default_target_globals): Initialize the rtl field.
2629         (save_target_globals): Likewise.
2630
2631 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2632
2633         * Makefile.in (target-globals.o): Depend on $(REGS_H).
2634         * regs.h (target_reg_modes): New structure.
2635         (default_target_reg_modes): Declare.
2636         (this_target_reg_modes): Declare as a variable or define as a macro.
2637         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
2638         * reginfo.c (default_target_reg_modes): New variable.
2639         (this_target_reg_modes): New conditional variable.
2640         (hard_regno_nregs, reg_raw_mode): Delete.
2641         * target-globals.h (this_target_regs): Declare.
2642         (target_globals): Add a regs field.
2643         (restore_target_globals): Copy the regs field to this_target_regs.
2644         * target-globals.c: Include regs.h.
2645         (default_target_globals): Initialize the regs field.
2646         (save_target_globals): Likewise.
2647
2648 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2649
2650         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
2651         * doc/tm.texi: Regenerate.
2652         * Makefile.in (OBJS-common): Add target-globals.o.
2653         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
2654         and target-globals.h.
2655         (target-globals.o): New rule.
2656         (GTFILES): Include $(srcdir)/target-globals.h.
2657         * defaults.h (SWITCHABLE_TARGET): Define.
2658         * gengtype.c (open_base_files): Add target-globals.h to the
2659         list of includes.
2660         * target-globals.h: New file.
2661         * target-globals.c: Likewise.
2662
2663         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
2664         * flags.h (target_flag_state): New structure.
2665         (default_target_flag_state): Declare.
2666         (this_target_flag_state): Declare as a variable or define as a macro.
2667         (align_loops_log): Redefine as a macro.
2668         (align_loops_max_skip, align_jumps_log): Likewise.
2669         (align_jumps_max_skip, align_labels_log): Likewise.
2670         (align_labels_max_skip, align_functions_log): Likewise.
2671         * toplev.c (default_target_flag_state): New variable.
2672         (this_target_flag_state): New conditional variable.
2673         (align_loops_log): Delete.
2674         (align_loops_max_skip, align_jumps_log): Likewise.
2675         (align_jumps_max_skip, align_labels_log): Likewise.
2676         (align_labels_max_skip, align_functions_log): Likewise.
2677         * target-globals.h (this_target_flag_state): Declare.
2678         (target_globals): Add a flag_state field.
2679         (restore_target_globals): Copy the flag_state field to
2680         this_target_flag_state.
2681         * target-globals.c: Include flags.h.
2682         (default_target_globals): Initialize the flag_state field.
2683         (save_target_globals): Likewise.
2684
2685 2010-07-12  Jie Zhang  <jie@codesourcery.com>
2686
2687         * postreload.c (reg_symbol_ref[]): New.
2688         (move2add_use_add2_insn): New.
2689         (move2add_use_add3_insn): New.
2690         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
2691         (move2add_note_store): Likewise.
2692
2693 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
2694
2695         PR rtl-optimization/44752
2696         * genautomata.c (main): Don't emit an empty file even if there
2697         is no automaton.
2698
2699 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2700
2701         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
2702         ix86_solaris_return_in_memory.
2703         * config/i386-protos.h: Reflect this.
2704         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2705         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2706         Move ...
2707         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
2708
2709 2010-07-12  Jie Zhang  <jie@codesourcery.com>
2710
2711         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
2712         align the stack when it's going to be saved.
2713
2714 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2715
2716         PR pch/14940
2717         * config/host-solaris.c (mmap_fixed): New function.
2718         (sol_gt_pch_get_address): Use it.
2719         (sol_gt_pch_use_address): Likewise.
2720
2721 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2722
2723         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2724         pentiumpro on Solaris 8 and 9/x86.
2725         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
2726         Document SSE/SSE2 support.
2727         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
2728
2729 2010-07-12  Andi Kleen  <ak@linux.intel.com>
2730
2731         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
2732         instead of gcc_assert to print better error message for multiple
2733         prevailing defs.
2734
2735 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
2736
2737         * config/i386/i386.c (ix86_asm_output_function_label): Change format
2738         string placeholder from 0x%x to %#x.
2739         (ix86_code_end): Use putc to output '\n'.
2740         (ix86_print_operand) <case ';'>: Use putc to output ';'.
2741
2742 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
2743
2744         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
2745         in directive -export.
2746
2747 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
2748
2749         * reginfo.h (reg_classes_intersect_p): Change arguments type to
2750         reg_class_t.
2751         * rtl.h (reg_classes_intersect_p): Adjust prototype.
2752
2753         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2754         Remove macros.
2755         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
2756         rs6000_memory_move_cost): Remove
2757         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
2758         TARGET_MEMORY_MOVE_COST): Define.
2759         (rs6000_register_move_cost): Make static. Change arguments type from
2760         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
2761         (rs6000_memory_move_cost): Make static. Change arguments type from
2762         'enum reg_class' to reg_class_t.
2763
2764 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
2765
2766         PR middle-end/42505
2767         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
2768         lookup code into....
2769         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
2770         new functions.
2771         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
2772         * cfgloopanal.c (target_clobbered_regs): Define.
2773         (init_set_costs): Initialize target_clobbered_regs.
2774         (estimate_reg_pressure_cost): Add call_p argument.  When true,
2775         adjust the number of available registers to exclude the
2776         call-clobbered registers.
2777         * cfgloop.h (target_clobbered_regs): Declare.
2778         (estimate_reg_pressure_cost): Adjust declaration.
2779         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
2780         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
2781         (determine_set_costs): Dump target_clobbered_regs.
2782         (loop_body_includes_call): New function.
2783         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
2784         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
2785         call_p flag through.
2786         (best_gain_for_invariant): Likewise.
2787         (find_invariants_to_move): Likewise.
2788         (move_single_loop_invariants): Likewise, using already-computed
2789         has_call field.
2790
2791 2010-07-10  Richard Guenther  <rguenther@suse.de>
2792             Joern Rennecke  <joern.rennecke@embecosm.com>
2793
2794         PR debug/44832
2795         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
2796         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
2797         unless they have DECL_IGNORED_P set.
2798
2799 2010-07-10  Richard Guenther  <rguenther@suse.de>
2800
2801         PR lto/44889
2802         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
2803         helper function.
2804         (gimple_types_compatible_p): Similar to pointed-to
2805         types allow and merge a mix of complete and incomplete aggregate.
2806         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
2807         (iterative_hash_gimple_type): Adjust for that.
2808
2809 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
2810
2811         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
2812
2813 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
2814
2815         PR objc/44140
2816         * config/darwin.c (output_objc_section_asm_op): Save and restore
2817         section when outputting ObjC section list.
2818
2819 2010-07-09  Jan Hubicka  <jh@suse.cz>
2820
2821         * lto-streamer-out.c (produce_symtab): Do not write alias
2822         cgraph/varpool nodes.
2823
2824 2010-07-09  Jan Hubicka  <jh@suse.cz>
2825
2826         * tree-inline.c (declare_return_variable): Fix ICE while
2827         inlining DECL_BY_VALUE function not in SSA form
2828
2829 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
2830
2831         PR tree-optimization/44576
2832         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
2833         New.  Pull out from is_loop_prefetching_profitable to implement
2834         the trip count to ahead ratio heuristic.
2835         (mem_ref_count_reasonable_p): New.  Pull out from
2836         is_loop_prefetching_profitable to implement the instruction to
2837         memory reference ratio heuristic.  Also consider not reasonable if
2838         the memory reference count is above a threshold (to avoid
2839         explosive compilation time.
2840         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
2841         is_loop_prefetching_profitable to implement the instruction to
2842         prefetch ratio heuristic.
2843         (is_loop_prefetching_profitable): Removed.
2844         (loop_prefetch_arrays): Distribute the cost analysis across the
2845         function to allow early exit of the prefetch analysis.
2846         is_loop_prefetching_profitable is splitted into three functions,
2847         with each one called as early as possible.
2848         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
2849         number of memory references in a loop is considered too many.
2850
2851 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
2852
2853         * reload.c (find_reloads): Don't clear badop if we have a winreg
2854         alternative, but not win, and the class only has fixed regs.
2855         * hard-reg-set.h (class_only_fixed_regs): Declare.
2856         * reginfo.c (class_only_fixed_regs): New array.
2857         (init_reg_sets_1): Initialize it.
2858         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
2859         discourage alternatives using the stack pointer.
2860
2861         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
2862
2863         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
2864
2865         * config/arm/arm.md (cbranchqi4): Fix array size.
2866         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
2867         calculating length.
2868
2869 2010-07-09  Richard Guenther  <rguenther@suse.de>
2870
2871         * gimple.c (struct type_fixup_s): New struct and VEC type.
2872         (gimple_register_type_fixups): New static global.
2873         (gimple_queue_type_fixup): New function.
2874         (gimple_types_compatible_p): Queue type fixups instead of
2875         applying them here.
2876         (gimple_register_type): Apply queued fixups for the
2877         canonical type.  Empty the type fixup queue.
2878
2879 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2880
2881         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
2882         * configure: Regenerate.
2883         * config.in: Ditto.
2884
2885 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
2886             Denys Vlasenko  <dvlasenk@redhat.com>
2887             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2888
2889         PR tree-optimization/28632
2890         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
2891         (extract_range_from_binary_expr): Further optimize
2892         BIT_AND_EXPR and BIT_IOR_EXPR.
2893
2894 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2895
2896         * tree-if-conv.c (fold_or_predicates): New.
2897         (add_to_predicate_list): Call it.
2898
2899 2010-07-09  Richard Guenther  <rguenther@suse.de>
2900
2901         PR middle-end/44890
2902         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
2903         if base is a pointer.
2904         * tree-cfg.c (verify_expr): Update MEM_REF checking.
2905
2906 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2907
2908         PR target/44877
2909         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
2910         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
2911         builtin mask for load/store builtins.
2912
2913 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2914
2915         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
2916         for "lock addl".
2917         * configure: Regenerate.
2918         * config/i386/i386.c (ix86_print_operand) <case ';'>:
2919         Remove TARGET_MACHO.
2920
2921 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
2922
2923         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
2924         default ISA flags.
2925         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
2926
2927 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
2928
2929         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
2930
2931 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2932
2933         * config/picochip/picochip.md (commsTestPort): Emit more
2934         efficient sequence for tstport instruction.
2935
2936 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2937
2938         * config/i386/i386.c (ix86_veclib_handler): Make static.
2939
2940 2010-07-09  Richard Guenther  <rguenther@suse.de>
2941
2942         PR tree-optimization/44852
2943         * tree-ssa-alias.c: Include toplev.h for exact_log2.
2944         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
2945         in MEM_REF.
2946         (indirect_refs_may_alias_p): Likewise.
2947         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
2948
2949 2010-07-09  Richard Guenther  <rguenther@suse.de>
2950
2951         PR tree-optimization/44882
2952         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
2953         sets do conflict.
2954         (vectorizable_load): Likewise.
2955
2956 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
2957
2958         PR target/40657
2959         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
2960         All callers changed.
2961         Handle the case when we're called for the epilogue.
2962         (thumb_unexpanded_epilogue): Use it.
2963         (thumb1_expand_epilogue): Likewise.
2964
2965 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
2966
2967         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
2968         both ranges are range_int_cst_p with non-negative minimum,
2969         try harder to derive smaller range.
2970
2971 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2972
2973         * genrecog.c: Include diagnostic-core.h before toplev.h.
2974         * genoutput.c: Likewise.
2975         * genextract.c: Likewise.
2976         * genautomata.c: Likewise.
2977         * genemit.c: Likewise.
2978         * genpeep.c: Likewise.
2979         * genattrtab.c: Likewise.
2980         * genconditions.c: Likewise.
2981         * genpreds.c: Likewise.
2982
2983 2010-07-08  Andi Kleen  <ak@linux.intel.com>
2984
2985         * lto-section-in.c (lto_section_name): Add missing comma.
2986
2987 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
2988
2989         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
2990         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
2991         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
2992         (ia64_override_options): Rename to...
2993         (ia64_option_override): ... this one. Make static.
2994
2995 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2996
2997         PR middle-end/44843
2998         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
2999         pointed-to type of the offset in a MEM_REF to compute the alignment.
3000
3001 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
3002
3003         * final.c (final_scan_insn): Replace
3004         TARGET_UNWIND_INFO macro check by unwind_emit
3005         hook NULL check.
3006         * targhooks.c (default_unwind_emit): Removed.
3007         * targhooks.h (default_unwind_emit): Likewise.
3008         * target.def (unwind_emit): Set default value to NULL.
3009
3010         * config/i386/i386-protos.h (ix86_asm_output_function_label):
3011         New prototype.
3012         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
3013         for NULL fntype argument and allow 64-bit targets.
3014         (ix86_asm_output_function_label): New function.
3015         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
3016         (ix86_handle_fndecl_attribute): Likewise.
3017         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
3018         * doc/doc/tm.texi: Regenerated.
3019         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
3020         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
3021         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
3022         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
3023         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3024         * config/elfos.h: Likewise.
3025         * config/i386/cygming.h: Likewise.
3026         * config/netbsd-aout.h: Likewise.
3027         * config/openbsd.h: Likewise.
3028         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
3029         by ix86_asm_output_function_label function call.
3030         * varasm.c (assemble_start_function): Use
3031         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3032
3033 2010-07-08  Jan Hubicka  <jh@suse.cz>
3034
3035         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
3036         New function.
3037         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
3038         Declare.
3039         * ipa-cp.c (ipcp_estimate_growth): Use it.
3040         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
3041         Likewise.
3042
3043 2010-07-08  Jan Hubicka  <jh@suse.cz>
3044
3045         * tree-inline.c (declare_return_variable): Allocate annotation for new
3046         temporary.
3047
3048 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3049
3050         PR tree-optimization/44710
3051         * tree-if-conv.c (parse_predicate): New.
3052         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
3053         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
3054
3055 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3056
3057         * common.opt (ftree-loop-if-convert): New flag.
3058         * doc/invoke.texi (ftree-loop-if-convert): Documented.
3059         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
3060         when flag_tree_loop_if_convert is set.
3061
3062 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
3063
3064         * config/i386/i386.c: Use short syntax for function calls
3065         through function pointers.
3066         * config/i386/i386.md: Ditto.
3067
3068 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3069
3070         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
3071
3072 2010-07-08  Richard Guenther  <rguenther@suse.de>
3073
3074         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
3075         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
3076
3077 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
3078
3079         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
3080         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
3081         (loc_list_from_tree): Likewise.
3082         (output_loc_operands): Handle outputting DW_OP_const[48]u
3083         with loc->dtprel set.
3084         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
3085
3086 2010-07-08  Jan Hubicka  <jh@suse.cz>
3087
3088         * ipa.c: Include pointer-set.h
3089         (cgraph_externally_visible_p): New attribute ALIASED;
3090         when in LTO, hidden symbols are local unless they are aliased.
3091         (function_and_variable_visibility): Compute aliased nodes;
3092         handle LTO and hidden symbol on functions and vars.
3093         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
3094         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
3095
3096 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3097
3098         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3099         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3100         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3101         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3102         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3103         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
3104         (ix86_gen_probe_stack_range): Likewise.
3105         (override_options): Set them.
3106         (ix86_target_stack_probe): New function.
3107         (ix86_compute_frame_layout): Force use of push instructions to
3108         save registers if stack checking with probes is enabled.
3109         (get_scratch_register_on_entry): New function.
3110         (release_scratch_register_on_entry): Likewise.
3111         (ix86_adjust_stack_and_probe): Likewise.
3112         (output_adjust_stack_and_probe): Likewise.
3113         (ix86_emit_probe_stack_range): Likewise.
3114         (output_probe_stack_range): Likewise.
3115         (ix86_expand_prologue): Emit stack checking code if static built-in
3116         stack checking is enabled.
3117         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
3118         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
3119         (output_adjust_stack_and_probe): Likewise.
3120         (output_probe_stack_range): Likewise.
3121         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3122         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
3123         TARGET_STACK_PROBE.
3124         (allocate_stack_worker_64): Likewise.
3125         (allocate_stack): Likewise.
3126         (adjust_stack_and_probe): New insn.
3127         (probe_stack_range): Likewise.
3128
3129 2010-07-08  Richard Guenther  <rguenther@suse.de>
3130
3131         PR tree-optimization/44831
3132         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
3133         a MEM_REF preserving TBAA info of the original dereference.
3134         Dereference the original pointer if the address is not invariant.
3135         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
3136         at least one invariant address that we are going to dereference.
3137
3138 2010-07-08  Richard Guenther  <rguenther@suse.de>
3139
3140         PR tree-optimization/44861
3141         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
3142         information when building MEM_REFs.
3143         (vectorizable_load): Likewise.
3144         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
3145
3146 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3147
3148         * config/sol2-c.c: Do not include diagnostic-core.h.
3149
3150 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3151
3152         PR bootstrap/44768
3153         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
3154         with respect to current_function_decl. Pass decl of the function.
3155         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
3156         * ipa-inline.c (compute_inline_parameters): Pass decl to
3157         estimated_stack_frame_size.
3158
3159 2010-07-08  Richard Guenther  <rguenther@suse.de>
3160
3161         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3162         New function.
3163         (valueize_refs): Call it.
3164
3165 2010-07-08  Richard Guenther  <rguenther@suse.de>
3166
3167         PR rtl-optimization/44838
3168         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
3169         SSA form do not use pointer equivalence.
3170
3171 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3172
3173         * dwarf2out.c (AT_linkage_name): Delete.
3174         (add_linkage_attr): New function.
3175         (add_linkage_name): Call it to emit the linkage attribute.
3176         (dwarf2out_finish): Likewise.
3177         (move_linkage_attr): Explicitly accept both attribute variants.
3178
3179 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3180
3181         * toplev.h: Do not include diagnostic-core.h.
3182         Include diagnostic-core.h in every file that includes toplev.h.
3183         * c-tree.h: Do not include toplev.h.
3184         * pretty-print.h: Update comment.
3185         * Makefile.in: Update dependencies.
3186         * alias.c: Include diagnostic-core.h in every file that includes
3187         toplev.h.
3188         * attribs.c: Likewise.
3189         * auto-inc-dec.c: Likewise.
3190         * bb-reorder.c: Likewise.
3191         * bt-load.c: Likewise.
3192         * caller-save.c: Likewise.
3193         * calls.c: Likewise.
3194         * cfg.c: Likewise.
3195         * cfganal.c: Likewise.
3196         * cfgbuild.c: Likewise.
3197         * cfgcleanup.c: Likewise.
3198         * cfghooks.c: Likewise.
3199         * cfgloop.c: Likewise.
3200         * combine.c: Likewise.
3201         * config/alpha/alpha.c: Likewise.
3202         * config/arc/arc.c: Likewise.
3203         * config/arm/arm.c: Likewise.
3204         * config/arm/pe.c: Likewise.
3205         * config/avr/avr.c: Likewise.
3206         * config/bfin/bfin.c: Likewise.
3207         * config/cris/cris.c: Likewise.
3208         * config/crx/crx.c: Likewise.
3209         * config/darwin-c.c: Likewise.
3210         * config/darwin.c: Likewise.
3211         * config/fr30/fr30.c: Likewise.
3212         * config/frv/frv.c: Likewise.
3213         * config/h8300/h8300.c: Likewise.
3214         * config/host-darwin.c: Likewise.
3215         * config/i386/i386.c: Likewise.
3216         * config/i386/netware.c: Likewise.
3217         * config/i386/nwld.c: Likewise.
3218         * config/i386/winnt-cxx.c: Likewise.
3219         * config/i386/winnt-stubs.c: Likewise.
3220         * config/i386/winnt.c: Likewise.
3221         * config/ia64/ia64-c.c: Likewise.
3222         * config/ia64/ia64.c: Likewise.
3223         * config/iq2000/iq2000.c: Likewise.
3224         * config/lm32/lm32.c: Likewise.
3225         * config/m32c/m32c-pragma.c: Likewise.
3226         * config/m32c/m32c.c: Likewise.
3227         * config/m32r/m32r.c: Likewise.
3228         * config/m68hc11/m68hc11.c: Likewise.
3229         * config/m68k/m68k.c: Likewise.
3230         * config/mcore/mcore.c: Likewise.
3231         * config/mep/mep-pragma.c: Likewise.
3232         * config/mep/mep.c: Likewise.
3233         * config/mmix/mmix.c: Likewise.
3234         * config/mn10300/mn10300.c: Likewise.
3235         * config/moxie/moxie.c: Likewise.
3236         * config/pa/pa.c: Likewise.
3237         * config/pdp11/pdp11.c: Likewise.
3238         * config/picochip/picochip.c: Likewise.
3239         * config/rs6000/rs6000-c.c: Likewise.
3240         * config/rs6000/rs6000.c: Likewise.
3241         * config/rx/rx.c: Likewise.
3242         * config/s390/s390.c: Likewise.
3243         * config/score/score.c: Likewise.
3244         * config/score/score3.c: Likewise.
3245         * config/score/score7.c: Likewise.
3246         * config/sh/sh.c: Likewise.
3247         * config/sh/symbian-base.c: Likewise.
3248         * config/sh/symbian-c.c: Likewise.
3249         * config/sh/symbian-cxx.c: Likewise.
3250         * config/sol2-c.c: Likewise.
3251         * config/sol2.c: Likewise.
3252         * config/sparc/sparc.c: Likewise.
3253         * config/spu/spu.c: Likewise.
3254         * config/stormy16/stormy16.c: Likewise.
3255         * config/v850/v850-c.c: Likewise.
3256         * config/v850/v850.c: Likewise.
3257         * config/vax/vax.c: Likewise.
3258         * config/vxworks.c: Likewise.
3259         * config/xtensa/xtensa.c: Likewise.
3260         * convert.c: Likewise.
3261         * cse.c: Likewise.
3262         * cselib.c: Likewise.
3263         * dbgcnt.c: Likewise.
3264         * dbxout.c: Likewise.
3265         * ddg.c: Likewise.
3266         * dominance.c: Likewise.
3267         * emit-rtl.c: Likewise.
3268         * explow.c: Likewise.
3269         * expmed.c: Likewise.
3270         * fixed-value.c: Likewise.
3271         * fold-const.c: Likewise.
3272         * fwprop.c: Likewise.
3273         * gcse.c: Likewise.
3274         * ggc-common.c: Likewise.
3275         * ggc-page.c: Likewise.
3276         * ggc-zone.c: Likewise.
3277         * gimple-low.c: Likewise.
3278         * gimplify.c: Likewise.
3279         * graph.c: Likewise.
3280         * haifa-sched.c: Likewise.
3281         * ifcvt.c: Likewise.
3282         * implicit-zee.c: Likewise.
3283         * integrate.c: Likewise.
3284         * ira-build.c: Likewise.
3285         * ira-color.c: Likewise.
3286         * ira-conflicts.c: Likewise.
3287         * ira-costs.c: Likewise.
3288         * ira-lives.c: Likewise.
3289         * ira.c: Likewise.
3290         * lists.c: Likewise.
3291         * loop-doloop.c: Likewise.
3292         * loop-iv.c: Likewise.
3293         * lto-opts.c: Likewise.
3294         * lto-symtab.c: Likewise.
3295         * main.c: Likewise.
3296         * modulo-sched.c: Likewise.
3297         * optabs.c: Likewise.
3298         * params.c: Likewise.
3299         * plugin.c: Likewise.
3300         * postreload-gcse.c: Likewise.
3301         * postreload.c: Likewise.
3302         * predict.c: Likewise.
3303         * profile.c: Likewise.
3304         * real.c: Likewise.
3305         * regcprop.c: Likewise.
3306         * reginfo.c: Likewise.
3307         * regmove.c: Likewise.
3308         * reorg.c: Likewise.
3309         * resource.c: Likewise.
3310         * rtl.c: Likewise.
3311         * rtlanal.c: Likewise.
3312         * sched-deps.c: Likewise.
3313         * sched-ebb.c: Likewise.
3314         * sched-rgn.c: Likewise.
3315         * sdbout.c: Likewise.
3316         * sel-sched-dump.c: Likewise.
3317         * sel-sched-ir.c: Likewise.
3318         * simplify-rtx.c: Likewise.
3319         * stmt.c: Likewise.
3320         * stor-layout.c: Likewise.
3321         * store-motion.c: Likewise.
3322         * targhooks.c: Likewise.
3323         * tree-cfg.c: Likewise.
3324         * tree-cfgcleanup.c: Likewise.
3325         * tree-dump.c: Likewise.
3326         * tree-eh.c: Likewise.
3327         * tree-inline.c: Likewise.
3328         * tree-nomudflap.c: Likewise.
3329         * tree-object-size.c: Likewise.
3330         * tree-optimize.c: Likewise.
3331         * tree-outof-ssa.c: Likewise.
3332         * tree-phinodes.c: Likewise.
3333         * tree-profile.c: Likewise.
3334         * tree-ssa-ccp.c: Likewise.
3335         * tree-ssa-coalesce.c: Likewise.
3336         * tree-ssa-live.c: Likewise.
3337         * tree-ssa-loop-niter.c: Likewise.
3338         * tree-ssa-loop-prefetch.c: Likewise.
3339         * tree-ssa-loop.c: Likewise.
3340         * tree-ssa-structalias.c: Likewise.
3341         * tree-ssa-uninit.c: Likewise.
3342         * tree-ssa.c: Likewise.
3343         * tree-vect-data-refs.c: Likewise.
3344         * tree-vect-loop-manip.c: Likewise.
3345         * tree-vect-loop.c: Likewise.
3346         * tree-vect-patterns.c: Likewise.
3347         * tree-vect-stmts.c: Likewise.
3348         * tree-vrp.c: Likewise.
3349         * varasm.c: Likewise.
3350         * vec.c: Likewise.
3351         * web.c: Likewise.
3352         * xcoffout.c: Likewise.
3353
3354 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
3355
3356         * gengtype.c (write_field_root): New function.
3357         (write_root): Use it.
3358
3359 2010-07-07  Wei Guozhi  <carrot@google.com>
3360
3361         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
3362         of lowest bits to lshift/compare): Add a missing line.
3363
3364 2010-07-07  Wei Guozhi  <carrot@google.com>
3365
3366         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
3367         of lowest bits to lshift/compare): New.
3368
3369 2010-07-07  Tom Tromey  <tromey@redhat.com>
3370
3371         * doc/tm.texi: Update.
3372         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
3373         Add @hook.
3374         * target.def (want_debug_pub_sections): New hook.
3375         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
3376         * dwarf2out.c (add_pubname_string): Check
3377         targetm.want_debug_pub_sections.
3378         (add_pubname): Likewise.
3379         (add_pubtype): Likewise.
3380
3381 2010-07-07  Jie Zhang  <jie@codesourcery.com>
3382
3383         * genautomata.c (output_automata_list_min_issue_delay_code):
3384         Correctly decompress min_issue_delay.
3385
3386 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3387
3388         PR rtl-optimization/44404
3389         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
3390         possible, use reg_overlap_mentioned_p instead.
3391
3392 2010-07-07  Duncan Sands  <baldrick@free.fr>
3393
3394         PR middle-end/41355
3395         * tree.c (build_function_type_skip_args): Copy the original type using
3396         build_distinct_type_copy rather than copy_node.
3397
3398 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3399
3400         PR target/44850
3401         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
3402         revision 161876.
3403         (ix86_expand_prologue): Likewise.
3404         (ix86_handle_fndecl_attribute): Likewise.
3405         (ix86_asm_declare_function_name): Likewise.
3406         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3407         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3408         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
3409         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
3410         * doc/extend.texi: Likewise.
3411
3412 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3413
3414         PR target/44844
3415         * config/i386/i386.md (rdrand<mode>): Changed to expand to
3416         retry if the carry flag isn't valid.
3417         (rdrand<mode>_1): New.
3418
3419 2010-07-07  Richard Guenther  <rguenther@suse.de>
3420
3421         PR middle-end/44790
3422         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
3423         for expanding the constant offset for MEM_REFs.
3424
3425 2010-07-07  Richard Guenther  <rguenther@suse.de>
3426
3427         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
3428         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
3429         * gimple.h (is_gimple_operand): Remove.
3430         * gimple.c (is_gimple_operand): Likewise.
3431         (walk_gimple_op): Fix wi->val_only setting for calls.
3432         * tree-cfg.c (verify_gimple_call): Fix argument validation.
3433         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
3434         invalid gimple calls.
3435
3436 2010-07-06  Jan Hubicka  <jh@suse.cz>
3437
3438         * lto-cgraph.c (output_cgraph): Add missing declaration.
3439
3440 2010-07-06  Jan Hubicka  <jh@suse.cz>
3441
3442         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
3443         partition.
3444
3445 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
3446
3447         * doc/gimple.texi (GIMPLE_DEBUG): Document.
3448         * doc/rtl.texi (Debug Information): New node.
3449         (NOTE_INSN_VAR_LOCATION): Document.
3450         (debug_insn): Likewise.
3451         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
3452
3453 2010-07-07  Jan Hubicka  <jh@suse.cz>
3454
3455         With parts by Richard Guenther.
3456
3457         PR middle-end/44813
3458         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
3459         for functions passed by reference.
3460         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
3461         in memory when passed by reference.
3462         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
3463         beggining.
3464         * ipa-split.c (split_function): Cleanup way return value is passed;
3465         handle SSA DECL_BY_REFERENCE retvals.
3466         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
3467         DECL_BY_REFERENCE is set.
3468         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
3469         find_what_p_points_to): Handle RESULT_DECL.
3470         * tree-inline.c (declare_return_variable): Get new entry_block argument;
3471         when passing by reference ensure that RESULT_DECL is gimple_val.
3472         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
3473         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
3474
3475 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3476
3477         PR rtl-optimization/44787
3478         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
3479         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
3480
3481 2010-07-06  Jan Hubicka  <jh@suse.cz>
3482
3483         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
3484         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
3485         with body can prevail.
3486         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
3487         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
3488         * cgraph.c (cgraph_get_node_or_alias): New function.
3489         * cgraph.h (cgraph_get_node_or_alias): Declare.
3490
3491 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
3492
3493         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
3494         support.
3495         (ix86_expand_prologue): Likewise.
3496         (ix86_handle_fndecl_attribute): Likewise.
3497         (ix86_asm_declare_function_name): New function for
3498         ASM_DECLARE_FUNCTION_NAME.
3499         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
3500         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
3501         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
3502         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
3503         * doc/extend.texi: Adjust documentation about ms_hook_prologue
3504         attribute.
3505
3506 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
3507
3508         * config/i386/i386.md (immediate_operand): New mode attribute.
3509
3510         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
3511         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
3512         using P mode iterator.
3513         (pro_epilogue_adjust_stack_di_2): Rename from
3514         pro_epilogue_adjust_stack_rex64_2.
3515
3516         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
3517
3518 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
3519
3520         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
3521         through gen_mov_insv_1 function pointer.
3522         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
3523         gen_truncxf<mode>2 through gen_truncxf function pointer.
3524         (remainder<mode>3): Ditto.
3525         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
3526         (allocate_stack): Call gen_allocate_stack_worker_64 or
3527         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
3528         function pointer.
3529         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
3530         function pointer.
3531
3532 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
3533
3534         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
3535         operand constraint instead of <r><i>m.
3536
3537 2010-07-06  Richard Guenther  <rguenther@suse.de>
3538
3539         PR middle-end/44828
3540         * convert.c (convert_to_integer): Watch out for overflowing
3541         MULT_EXPR as well.
3542
3543 2010-07-05  Jan Hubicka  <jh@suse.cz>
3544
3545         * lto-streamer.c (write_symbol_vec): Rename to ...
3546         (write_symbol) ... this one; write only symbol given and when
3547         present in cache. Sanity check that what is defined is present
3548         in cgraph/varpool with body/finalized decl.
3549         (write_symbols_of_kind): Remove.
3550         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
3551         pairs to produce symtab.
3552         (produce_asm_for_decls): Update call of produce_symtab; don't do so
3553         when doing WPA streaming.
3554
3555 2010-07-05  Jan Hubicka  <jh@suse.cz>
3556
3557         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
3558         function is still available to fold into.
3559
3560 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3561
3562         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
3563         * function.h (struct_function): Change type of local_decls field
3564         to a VEC.
3565         (add_local_decl): New function.
3566         (FOR_EACH_LOCAL_DECL): New macro.
3567         * cfgexpand.c (init_vars_expansion): Adjust for new type of
3568         cfun->local_decls.
3569         (estimated_stack_frame_size): Likewise.
3570         (expand_used_vars): Likewise.
3571         * cgraphbuild.c (build_cgraph_edges): Likewise.
3572         * function.c (instantiate_decls_1): Likewise.
3573         * ipa-struct-reorg.c (build_data_structure): Likewise.
3574         * ipa-type-escape.c (analyze_function): Likewise.
3575         * lto-streamer-in.c (input_function): Likewise.
3576         * lto-streamer-out.c (output_function): Likewise.
3577         * tree-ssa-live.c (remove_unused_locals): Likewise.
3578         * tree.c (free_lang_data_in_decl): Likewise.
3579         (find_decls_types_in_node): Likewise.
3580         * omp-low.c (remove_exit_barrier): Likewise.
3581         (expand_omp_taskreg): Likewise.
3582         (list2chain): Rename to...
3583         (vec2chain): ...this.  Adjust.
3584         * cgraphunit.c (assemble_thunk): Call add_local_decl.
3585         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
3586         * gimple-low.c (record_vars_into): Likewise.
3587         * tree-inline.c (remap_decls): Likewise.
3588         (declare_return_variable): Likewise.
3589         (declare_inline_vars): Likewise.
3590         (copy_forbidden): Adjust for new type of cfun->local_decls.
3591         (add_local_variables): New function.
3592         (expand_call_inline): Call it.
3593         (tree_function_versioning): Likewise.
3594
3595 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3596
3597         AVX Programming Reference (June, 2010)
3598         * config/i386/cpuid.h (bit_F16C): New.
3599         (bit_RDRND): Likewise.
3600         (bit_FSGSBASE): Likewise.
3601
3602         * config/i386/i386-builtin-types.def: Add
3603         "DEF_FUNCTION_TYPE (UINT16)", function types for
3604         float16 <-> float conversions and
3605         "DEF_FUNCTION_TYPE (VOID, UINT64)".
3606
3607         * config/i386/i386-c.c (ix86_target_macros_internal): Support
3608         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
3609         OPTION_MASK_ISA_F16C.
3610
3611         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
3612         (OPTION_MASK_ISA_RDRND_SET): Likewise.
3613         (OPTION_MASK_ISA_F16C_SET): Likewise.
3614         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
3615         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
3616         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
3617         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
3618         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
3619         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
3620         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
3621         (override_options): Handle them.
3622         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
3623         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
3624         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
3625         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
3626         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
3627         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
3628         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
3629         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
3630         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
3631         (bdesc_args): Likewise.
3632         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
3633         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
3634         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
3635         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
3636         Handle non-memory store.
3637
3638         * config/i386/i386.h (TARGET_FSGSBASE): New.
3639         (TARGET_RDRND): Likewise.
3640         (TARGET_F12C): Likewise.
3641
3642         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
3643         (UNSPEC_VCVTPS2PH): Likewise.
3644         (UNSPECV_RDFSBASE): Likewise.
3645         (UNSPECV_RDGSBASE): Likewise.
3646         (UNSPECV_WRFSBASE): Likewise.
3647         (UNSPECV_WRGSBASE): Likewise.
3648         (UNSPECV_RDRAND): Likewise.
3649         (rdfsbase<mode>): Likewise.
3650         (rdgsbase<mode>): Likewise.
3651         (wrfsbase<mode>): Likewise.
3652         (wrgsbase<mode>): Likewise.
3653         (rdrand<mode>): Likewise.
3654
3655         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
3656
3657         * config/i386/immintrin.h (_rdrand_u16): New.
3658         (_rdrand_u32): Likewise.
3659         (_readfsbase_u32): Likewise.
3660         (_readfsbase_u64): Likewise.
3661         (_readgsbase_u32): Likewise.
3662         (_readgsbase_u64): Likewise.
3663         (_writefsbase_u32): Likewise.
3664         (_writefsbase_u64): Likewise.
3665         (_writegsbase_u32): Likewise.
3666         (_writegsbase_u64): Likewise.
3667         (_rdrand_u64): Likewise.
3668         (_cvtsh_ss): Likewise.
3669         (_mm_cvtph_ps): Likewise.
3670         (_mm256_cvtph_ps): Likewise.
3671         (_cvtss_sh): Likewise.
3672         (_mm_cvtps_ph): Likewise.
3673         (_mm256_cvtps_ph): Likewise.
3674
3675         * config/i386/sse.md (vcvtph2ps): New.
3676         (*vcvtph2ps_load): Likewise.
3677         (vcvtph2ps256): Likewise.
3678         (vcvtps2ph): Likewise.
3679         (*vcvtps2ph): Likewise.
3680         (*vcvtps2ph_store): Likewise.
3681         (vcvtps2ph256): Likewise.
3682
3683         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
3684
3685         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
3686
3687 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
3688
3689         PR bootstrap/44512
3690         * genenums.c (main): Output include of insn-constants.h
3691         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
3692
3693 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
3694
3695         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
3696         (override_options): Initialize it.
3697         (ix86_expand_prologue): Use it.
3698
3699 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
3700
3701         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
3702
3703 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
3704
3705         * double-int.h (fit_double_type): Remove declaration.
3706         * double-int.c (fit_double_type): Remove function.
3707         * tree.h (int_fits_type_p): Adjust prototype.
3708         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
3709         instead of fit_double_type.
3710         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
3711         instead of fit_double_type and build_int_cst_wide.
3712         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
3713         instead of fit_double_type and build_int_cst_wide.
3714         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
3715         of fit_double_type.
3716
3717 2010-07-05  Jan Hubicka  <jh@suse.cz>
3718
3719         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
3720         in_other_partition.
3721         * lto-cgraph.c (referenced_from_other_partition_p,
3722         reachable_from_other_partition_p): Use in_other_partition flags.
3723         (output_node, output_varpool_node): COMDAT nodes always have private
3724         copies and thus are never used from other partition.
3725
3726 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
3727
3728         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3729         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
3730         * config/ia64/ia64.c Include reload.h.
3731         (ia64_memory_move_cost): New function.
3732         (TARGET_MEMORY_MOVE_COST): Define.
3733         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
3734         memory_move_cost.
3735
3736 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
3737
3738         PR middle-end/42505
3739         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
3740         comments about cost model.
3741         (try_add_cand_for):  Add second strategy for choosing initial set
3742         based on original IVs, controlled by ORIGINALP argument.
3743         (get_initial_solution): Add ORIGINALP argument.
3744         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
3745         (find_optimal_iv_set): Try two different strategies for choosing
3746         the IV set, and return the one with lower cost.
3747
3748 2010-07-05  Richard Guenther  <rguenther@suse.de>
3749
3750         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
3751
3752 2010-07-05  Richard Guenther  <rguenther@suse.de>
3753
3754         * tree.c (reference_alias_ptr_type): New function.
3755         * tree.h (reference_alias_ptr_type): Declare.
3756         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
3757         allow non-TARGET_MEM_REF new refs.
3758         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
3759         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
3760         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
3761         (create_mem_ref): Get alias pointer type.  Adjust calls to
3762         create_mem_ref_raw.
3763         (maybe_fold_tmr): Likewise.
3764         * tree-flow.h (create_mem_ref): Adjust prototype.
3765
3766 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
3767
3768         PR c++/44808
3769         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
3770         *from_p is VAR_DECL.
3771
3772 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3773
3774         * tree.h (build_call_list): Remove.
3775         * tree.c (build_call_list): Remove.
3776
3777 2010-07-05  Richard Guenther  <rguenther@suse.de>
3778
3779         * double-int.h (double_int_sub): Declare.
3780         * double-int.c (double_int_sub): New function.
3781         * dwarf2out.c (field_byte_offset): Use it.
3782         * fixed-value.c (do_fixed_add): Likewise.
3783         (do_fixed_multiply): Likewise.
3784         (do_fixed_divide): Likewise.
3785         * tree-predcom.c (add_ref_to_chain): Likewise.
3786         (determine_roots_comp): Likewise.
3787         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3788
3789 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3790
3791         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
3792         implementations.
3793
3794 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
3795
3796         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
3797         * arm-modes.def (CC_NOTB): Don't define.
3798         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
3799         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3800         (LTUGEU): New code_iterator.
3801         (cnb, optab): New corresponding code_attrs.
3802         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
3803         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
3804         using LTUGEU.
3805         (addsi3_carryin_shift_<optab>): Likewise.
3806         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
3807         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
3808         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
3809         (subsi3_compare): Renamed from subsi3_compare0_c.
3810         Change CC_NOTB to CC.
3811         (arm_subsi3_insn): Allow constants for operand 0.
3812         (compare_scc peephole for eq case): New.
3813         (compare_scc splitters): Change CC_NOTB to CC.
3814
3815 2010-07-05  Richard Guenther  <rguenther@suse.de>
3816
3817         * tree-ssa-loop-im.c (for_each_index): Do not handle
3818         ALIGN_INDIRECT_REF.
3819         (gen_lsm_tmp_name): Likewise.
3820         * tree-dump.c (dequeue_and_dump): Likewise.
3821         * tree-pretty-print.c (dump_generic_node): Likewise.
3822         (op_code_prio): Likewise.
3823         (op_symbol_code): Likewise.
3824         * tree.c (staticp): Likewise.
3825         (build1_stat): Likewise.
3826         * tree.h (INDIRECT_REF_P): Likewise.
3827         * fold-const.c (maybe_lvalue_p): Likewise.
3828         (operand_equal_p): Likewise.
3829         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3830         (ao_ref_init_from_vn_reference): Likewise.
3831         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3832         (find_interesting_uses_address): Likewise.
3833         * dwarf2out.c (loc_list_from_tree): Likewise.
3834         * gimplify.c (gimplify_expr): Likewise.
3835         * tree-eh.c (tree_could_trap_p): Likewise.
3836         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3837         * cfgexpand.c (expand_debug_expr): Likewise.
3838         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3839         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3840         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3841         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
3842         * tree-ssa-operands.c (get_expr_operands): Likewise.
3843         * expr.c (safe_from_p): Likewise.
3844         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
3845         * tree-vect-data-refs.c (vect_setup_realignment): Build
3846         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
3847         * tree-vect-stmts.c (vectorizable_load): Likewise.
3848         * tree.def (ALIGN_INDIRECT_REF): Remove.
3849
3850 2010-07-05  Richard Guenther  <rguenther@suse.de>
3851
3852         PR tree-optimization/44784
3853         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
3854         for inserted stmts.
3855         (find_or_generate_expression): Fix SCCVN insertion check.
3856
3857 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
3858
3859         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
3860         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3861         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
3862         directives.
3863
3864 2010-07-05  Ira Rosen  <irar@il.ibm.com>
3865
3866         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
3867         statements that are not vectorized.
3868         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
3869         in INSIDE_COST.
3870
3871 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
3872
3873         PR bootstrap/44820
3874         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
3875
3876 2010-07-05  Richard Guenther  <rguenther@suse.de>
3877
3878         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
3879         RESULT_DECLs properly.
3880
3881 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3882
3883         PR rtl-optimization/44695
3884         * config/i386/i386.md (extract_code): Removed.
3885         (<u>divmodqi4): Likewise.
3886         (divmodqi4): New.
3887         (udivmodqi4): Likewise.
3888         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
3889         (udivmodhiqi3): Likewise.
3890
3891 2010-07-04  Jan Hubicka  <jh@suse.cz>
3892
3893         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
3894
3895 2010-07-04  Jan Hubicka  <jh@suse.cz>
3896
3897         * cgraphunit.c (init_cgraph): Only initialize dump file if it
3898         is not already initialized.
3899
3900 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3901
3902         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
3903         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
3904         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
3905         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
3906         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
3907         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
3908         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
3909         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
3910         (sync_new_nand_optab): Redefine as macros.
3911         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
3912         Delete.
3913         (direct_optab_index): New enum.
3914         (direct_optab_d): New structure.
3915         (direct_optab): New typedef.
3916         (direct_optab_table): Declare.
3917         (direct_optab_handler, set_direct_optab_handler): New functions.
3918         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
3919         (sync_lock_release_optab): New macros.
3920         * optabs.c (direct_optab_table): New variable.
3921         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
3922         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
3923         cmpstr_optab and cmpstrn_optab.
3924         (emit_conditional_move): Likewise for movcc_optab.
3925         (can_conditionally_move_p): Likewise for movcc_gen_code.
3926         (init_insn_codes): Clear direct_optab_table.
3927         (init_optabs): Don't initialize the new "direct optabs" here.
3928         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
3929         vcond_gen_code.
3930         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
3931         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
3932         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
3933         (expand_sync_operation): Likewise other sync_*_optabs.
3934         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
3935         to sync_compare_and_swap_optab.
3936         (expand_sync_lock_test_and_set): Use direct_optab_handler for
3937         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
3938         to the names of both.
3939         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
3940         cmpstr_optab and cmpstrn_optab.
3941         (expand_builtin_lock_release): Likewise sync_lock_release.
3942         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
3943         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
3944         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
3945         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
3946         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
3947         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
3948         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
3949         (sync_lock_test_and_set, sync_lock_release): Delete.
3950         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
3951         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
3952         * genopinit.c (optabs): Use set_direct_optab_handler for the new
3953         macro optabs.
3954         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
3955         the "optab" local variable.  Use direct_optab_handler for optab and
3956         sync_compare_and_swap_optab.
3957         * reload1.c (reload_in_optab, reload_out_optab): Delete.
3958         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
3959         reload_in_optab and reload_out_optab.
3960         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3961         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
3962         * config/pa/pa.c (pa_secondary_reload): Likewise.
3963         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
3964         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
3965         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
3966         (VMSupportsCS8_builtin): Likewise.
3967
3968 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3969
3970         * optabs.h (optab_handlers): Change type of insn_code to int.
3971         (optab_handler, set_optab_handler, convert_optab_handler)
3972         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
3973         CODE_FOR_nothing".
3974         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
3975         (init_insn_codes): Zero both the above arrays.
3976         (init_optabs): Never call init_insn_codes first time around.
3977
3978 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3979
3980         * optabs.h (optab_handler, convert_optab_handler): Turn into
3981         inline functions that return an insn code.
3982         (set_optab_handler, set_convert_optab_handler): New functions.
3983         * builtins.c: Replace optab_handler(X)->insn_code with
3984         optab_handler or set_optab_handler thoughout.  Likewise
3985         convert_optab_handler(X)->insn_code with convert_optab_handler
3986         and set_convert_optab_handler.
3987         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
3988         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
3989         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
3990         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
3991         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
3992         config/spu/spu.c: Likewise.
3993
3994 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3995
3996         PR target/44531
3997         * config.gcc (sh*-*-*): Use regular expressions instead of
3998         the 'i' modifier for sed substitutions.
3999
4000 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
4001
4002         * gimple.c (gimple_body): Comments added.
4003
4004 2010-07-04  Richard Guenther  <rguenther@suse.de>
4005
4006         PR middle-end/44809
4007         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
4008         of an INDIRECT_REF.
4009
4010 2010-07-04  Richard Guenther  <rguenther@suse.de>
4011
4012         PR tree-optimization/44479
4013         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4014         extra SSA name copy statements which preserves points-to
4015         information.
4016         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4017         Copy points-to information for all pointers.  Properly handle
4018         MEM_REFs.
4019         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
4020         copy statements.
4021         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
4022         dependency.
4023
4024 2010-07-04  Richard Guenther  <rguenther@suse.de>
4025
4026         PR middle-end/44785
4027         * tree-inline.c (initialize_inlined_parameters): Do not
4028         re-use pointer-map slot over remap_type call.
4029
4030 2010-07-04  Richard Guenther  <rguenther@suse.de>
4031
4032         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
4033
4034 2010-07-04  Richard Guenther  <rguenther@suse.de>
4035
4036         PR tree-optimization/44656
4037         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
4038         again after value-replacing in the defintions lhs.
4039
4040 2010-07-04  Ira Rosen  <irar@il.ibm.com>
4041             Revital Eres  <eres@il.ibm.com>
4042
4043         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
4044         Document new arguments.
4045         * doc/tm.texi: Regenerate.
4046         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
4047         Handle unaligned store.
4048         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
4049         * target.def (builtin_vectorization_cost): Add new arguments.
4050         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
4051         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
4052         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
4053         (vect_vfa_segment_size): Fix indentation.
4054         * tree-vectorizer.h (struct _vect_peel_info): New.
4055         (struct _vect_peel_extended_info): New.
4056         (struct _loop_vec_info): Add new field for peeling hash table and a
4057         macro for its access.
4058         (VECT_MAX_COST): Define.
4059         (vect_get_load_cost): Declare.
4060         (vect_get_store_cost, vect_get_known_peeling_cost,
4061         vect_get_single_scalar_iteraion_cost): Likewise.
4062         (vect_supportable_dr_alignment): Add new argument.
4063         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
4064         field.
4065         (destroy_loop_vec_info): Free peeling hash table.
4066         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
4067         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
4068         vect_analyze_slp. Fix indentation.
4069         (vect_get_single_scalar_iteraion_cost): New function.
4070         (vect_get_known_peeling_cost): Likewise.
4071         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
4072         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
4073         statement. Move outside cost calculation inside unknown peeling case.
4074         Call vect_get_known_peeling_cost for known amount of peeling.
4075         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
4076         reference to the print message of forced alignment.
4077         (vect_verify_datarefs_alignment): Update call to
4078         vect_supportable_dr_alignment.
4079         (vect_get_data_access_cost): New function.
4080         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
4081         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
4082         vect_peeling_hash_choose_best_peeling): Likewise.
4083         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
4084         to store all the accesses in the loop and find best possible access to
4085         align using peeling for known alignment case. For unknown alignment
4086         check if stores are preferred or if peeling is worthy.
4087         (vect_find_same_alignment_drs): Analyze pairs of loads too.
4088         (vect_supportable_dr_alignment): Add new argument and check aligned
4089         accesses according to it.
4090         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
4091         (cost_for_stmt): Call vect_get_stmt_cost.
4092         (vect_model_simple_cost): Likewise.
4093         (vect_model_store_cost): Call vect_get_stmt_cost. Call
4094         vect_get_store_cost to calculate the cost of the statement.
4095         (vect_get_store_cost): New function.
4096         (vect_model_load_cost): Call vect_get_stmt_cost. Call
4097         vect_get_load_cost to calculate the cost of the statement.
4098         (vect_get_load_cost): New function.
4099         (vectorizable_store): Update call to vect_supportable_dr_alignment.
4100         (vectorizable_load): Likewise.
4101         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
4102         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
4103         arguments. Handle unaligned store.
4104         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
4105         (rs6000_builtin_support_vector_misalignment): Return true for word and
4106         double word alignments for VSX.
4107         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
4108         vect_supportable_dr_alignment and builtin_vectorization_cost.
4109
4110 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4111
4112         PR target/44597
4113         * config/pa/predicates.md (prefetch_cc_operand): Remove.
4114         (prefetch_nocc_operand): Likewise.
4115         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
4116         (prefetch_20): New insn.
4117         (prefetch_cc): Remove.
4118         (prefetch_nocc): Likewise.
4119
4120 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4121
4122         * expr.c (vector_mode_valid_p): Move to c-common.c.
4123         * expr.h (vector_mode_valid_p): Do not declare here.
4124         * system.h: Poison GCC_EXPR_H in front-ends.
4125         * Makefile.in: Update dependencies.
4126
4127 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4128
4129         PR target/44705
4130         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
4131
4132 2010-07-03  Jan Hubicka  <jh@suse.cz>
4133
4134         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
4135         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
4136         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
4137         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
4138         Likewise.
4139
4140         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
4141         Update timevars.V
4142         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
4143         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
4144         TV_IPA_LTO_DECL_OUT): New.
4145         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
4146
4147 2010-07-03  Jan Hubicka  <jh@suse.cz>
4148
4149         * ipa-inline.c (update_edge_key): Break out from ...
4150         update_callers_keys): ... here;
4151         (update_callee_keys): Update only the edges from caller to callee.
4152         (update_all_calle_keys): Do what update_calle_keys did.
4153         (decide_inlining_of_small_functions): Avoid recomputing of all
4154         callees when badness increase.
4155
4156 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4157
4158         * config/arm/arm.c (arm_attr_length_move_neon): New.
4159         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
4160         * config/arm/neon.md (define_mode_attr V_slen): Remove.
4161         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
4162         to compute length attribute.
4163
4164 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4165
4166         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
4167         as predicate for operand 1 and remove its constraint.
4168         * config/arm/predicates.md (vfp_register_operand): New.
4169         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
4170         (*push_fp_multi): Likewise.
4171
4172 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
4173
4174         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
4175
4176 2010-07-03  Jan Hubicka  <jh@suse.cz>
4177
4178         * config/i386/i386.c (override_options): Revert accidental commit.
4179
4180 2010-07-02  Le-Chun Wu  <lcwu@google.com>
4181
4182         PR c++/44128
4183         * doc/invoke.texi: Update documentation of -Wshadow.
4184
4185 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
4186             Julian Brown  <julian@codesourcery.com>
4187             Sandra Loosemore <sandra@codesourcery.com>
4188
4189         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
4190         comparisons.  Adjust to take both operands.
4191         (arm_select_cc_mode): Handle DImode comparisons.
4192         (arm_gen_compare_reg): Generate a scratch register for DImode
4193         comparisons which require one.  Use xor for Thumb equality checks.
4194         (arm_const_double_by_immediates): New.
4195         (arm_print_operand): Allow 'Q' and 'R' for constants.
4196         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
4197         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
4198         arm_canonicalize_comparison.
4199         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
4200         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
4201         prototype.
4202         (arm_const_double_by_immediates): Declare.
4203         * config/arm/constraints.md (Di): New constraint.
4204         * config/arm/predicates.md (arm_immediate_di_operand)
4205         (arm_di_operand, cmpdi_operand): New.
4206         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
4207         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
4208         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
4209         (cstoredi4): Handle non-Cirrus also.
4210
4211 2010-07-02  Julian Brown  <julian@codesourcery.com>
4212             Sandra Loosemore <sandra@codesourcery.com>
4213
4214         PR target/43703
4215         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
4216         (smax<mode>3): Disable for NEON float modes when
4217         flag_unsafe_math_optimizations is false.
4218         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
4219         (*mul<mode>3_neon)
4220         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
4221         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
4222         for NEON float modes when flag_unsafe_math_optimizations is false.
4223         (quad_halves_<code>v4sf): Only enable if
4224         flag_unsafe_math_optimizations is true.
4225         * doc/invoke.texi (ARM Options): Add note about floating point
4226         vectorization requiring -funsafe-math-optimizations.
4227
4228 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4229             Julian Brown  <julian@codesourcery.com>
4230
4231         * config/arm/neon.md (UNSPEC_VABA): Delete.
4232         (UNSPEC_VABAL): Delete.
4233         (UNSPEC_VABS): Delete.
4234         (UNSPEC_VMUL_N): Delete.
4235         (adddi3_neon): New.
4236         (subdi3_neon): New.
4237         (mul<mode>3add<mode>_neon): Make the pattern named.
4238         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
4239         (neon_vadd<mode>): Replace with define_expand, and move the remaining
4240         unspec parts...
4241         (neon_vadd<mode>_unspec): ...to this.
4242         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
4243         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
4244         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
4245         (neon_vaba<mode>): Rewrite in terms of vabd.
4246         (neon_vabal<mode>): Rewrite in terms of vabdl.
4247         (neon_vabs<mode>): Rewrite without unspec.
4248         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
4249         (*arm_subdi3): Likewise.
4250         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
4251         No_op attribute to disable assembly output checks.
4252         * config/arm/arm_neon.h: Regenerated.
4253         * doc/arm-neon-intrinsics.texi: Regenerated.
4254
4255 2010-07-02  Jan Hubicka  <jh@suse.cz>
4256
4257         * ipa-split.c (split_function): For aggregate values, set the return
4258         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
4259         *<retval> = fncall.part ().
4260         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
4261
4262 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4263
4264         * config/arm/neon.md (UNSPEC_VAND): Delete.
4265         (UNSPEC_VBIC): Delete.
4266         (UNSPEC_VCLZ): Delete.
4267         (UNSPEC_VCNT): Delete.
4268         (UNSPEC_VEOR): Delete.
4269         (UNSPEC_VORN): Delete.
4270         (UNSPEC_VORR): Delete.
4271         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
4272         core registers too.
4273         (anddi3_neon): Likewise.
4274         (orndi3_neon): Likewise.
4275         (bicdi3_neon): Likewise.
4276         (xordi3_neon): Likewise.
4277         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
4278         rid of unspec and handle unused operand.
4279         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
4280         * config/arm/predicates.md (imm_for_neon_logic_operand):
4281         Require TARGET_NEON.
4282         (imm_for_neon_inv_logic_operand): Likewise.
4283         * config/arm/arm.md (define_split for logical_binary_operator):
4284         Disable for NEON registers.
4285         (anddi3): Add new define_expand, and rename the insn.  Disable
4286         this insn for NEON, where anddi3_neon now applies.
4287         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
4288         (iordi3): As for anddi3.
4289         (xordi3): Likewise.
4290         * config/arm/neon.ml (Vand): Split DImode variants and mark them
4291         as No_op to disable testing for exact instruction match.
4292         (Vorr): Likewise.
4293         (Veor): Likewise.
4294         (Vbic): Likewise.
4295         (Vorn): Likewise.
4296         * config/arm/arm_neon.h: Regenerated.
4297         * doc/arm-neon-intrinsics.texi: Regenerated.
4298
4299 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4300
4301         * expr.h (emit_stack_probe): Declare.
4302         * explow.c (emit_stack_probe): Make global.
4303         (anti_adjust_stack_and_probe): Fix comments.
4304         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4305         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4306         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4307         * config/sparc/sparc.c: Include except.h.
4308         (sparc_emit_probe_stack_range): New function.
4309         (output_probe_stack_range): Likewise.
4310         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
4311         built-in stack checking is enabled.
4312         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
4313         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4314         (probe_stack_range): New insn.
4315
4316 2010-07-02  Richard Guenther  <rguenther@suse.de>
4317
4318         PR target/43958
4319         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
4320         for argument alignment.
4321
4322 2010-07-02  Jan Hubicka  <jh@suse.cz>
4323
4324         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
4325         walk backwards from entry_bb to check only those basic block of header
4326         that might lead to execution of split part.
4327         (consider_split) ... here.
4328         (find_return_bb): Allow assignment in return BB.
4329         (find_retval): New.
4330         (split_function): Fix name of cloned function; take care of updating
4331         return value in return_bb containing move.
4332
4333 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
4334
4335         PR target/44771
4336         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
4337         used variable insn.
4338
4339 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4340
4341         * implicit-zee.c (combine_reaching_defs): Fix long lines.
4342         (is_set_with_extension_DI): Delete.
4343         (struct zero_extend_info): New structure.
4344         (add_removable_zero_extend): New function.
4345         (find_removable_zero_extends): Use note_stores to find SETs.
4346         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
4347
4348 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
4349
4350         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
4351         is_miss_rate_acceptable. Pull total_positions computation
4352         out of the loops.  Early return if miss_positions exceeds
4353         the acceptable threshold.
4354         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
4355         is_miss_rate_acceptable after renaming of compute_miss_rate.
4356
4357 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
4358
4359         PR middle-end/44576
4360         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
4361         of 1000) for miss rate if the address diference is greater than or
4362         equal to the cache line size (the two reference will never hit the
4363         same cache line).
4364
4365 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
4366
4367         PR target/42835
4368         * config/arm/arm-modes.def (CC_NOTB): New mode.
4369         * config/arm/arm.c (get_arm_condition_code): Handle it.
4370         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
4371         * config/arm/arm.md (subsi3_compare0_c): New pattern.
4372         (compare_scc): Now a define_and_split.  Add a number of extra
4373         splitters before it.
4374
4375         PR target/42172
4376         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
4377         and ZERO_EXTEND.
4378         (arm_rtx_costs_1): Likewise.
4379         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
4380         * config/arm/arm.md (is_arch6): New attribute.
4381         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
4382         extendqisi2): Tighten the code somewhat, avoiding invalid
4383         RTL to occur in the expander patterns.
4384         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
4385         (thumb1_zero_extendhisi2_v6): Delete.
4386         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
4387         (thumb1_extendhisi2_v6): Delete.
4388         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
4389         (thumb1_extendqisi2_v6): Delete.
4390         (zero_extendhisi2 for register input splitter): New.
4391         (zero_extendqisi2 for register input splitter): New.
4392         (thumb1_extendhisi2 for register input splitter): New.
4393         (extendhisi2 for register input splitter): New.
4394         (extendqisi2 for register input splitter): New.
4395         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
4396         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
4397         and add support for a register alternative requiring a split.
4398         (thumb1_zero_extendqisi2): Likewise.
4399         (arm_zero_extendqisi2): Likewise.
4400         (arm_extendhisi2): Likewise.
4401         (arm_extendqisi2): Likewise.
4402
4403 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4404
4405         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
4406         instead of an unspec.
4407         (neon_expand_vector_init): Likewise.
4408         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
4409         (UNSPEC_VDUP_LANE): Delete.
4410         (UNSPEC VDUP_N): Delete.
4411         (UNSPEC_VGET_HIGH): Delete.
4412         (UNSPEC_VGET_LANE): Delete.
4413         (UNSPEC_VGET_LOW): Delete.
4414         (UNSPEC_VMVN): Delete.
4415         (UNSPEC_VSET_LANE): Delete.
4416         (V_double_vector_mode): New.
4417         (vec_set<mode>_internal): Make code emitted match that for the
4418         corresponding intrinsics.
4419         (vec_setv2di_internal): Likewise.
4420         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
4421         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
4422         (neon_vset_lane<mode>): Combine double and quad patterns and
4423         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
4424         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
4425         (neon_vdup_n<mode>): Rewrite RTL without unspec.
4426         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
4427         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
4428         with neon_vdup_lanev2di, adjusting the pattern from the latter
4429         to be predicable for consistency.
4430         (neon_vdup_lane<mode>_internal): New.
4431         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
4432         to avoid using an unspec.
4433         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
4434         (neon_vdup_lanev2di): Turn into a define_expand.
4435         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
4436         (neon_vget_high<mode>): Replace with....
4437         (neon_vget_highv16qi): New pattern using canonical RTL.
4438         (neon_vget_highv8hi): Likewise.
4439         (neon_vget_highv4si): Likewise.
4440         (neon_vget_highv4sf): Likewise.
4441         (neon_vget_highv2di): Likewise.
4442         (neon_vget_low<mode>): Replace with....
4443         (neon_vget_lowv16qi): New pattern using canonical RTL.
4444         (neon_vget_lowv8hi): Likewise.
4445         (neon_vget_lowv4si): Likewise.
4446         (neon_vget_lowv4sf): Likewise.
4447         (neon_vget_lowv2di): Likewise.
4448
4449         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
4450         test for this emitting vmov.
4451         (Vset_lane): Likewise.
4452         (Vdup_n): Likewise.
4453         (Vmov_n): Likewise.
4454
4455         * doc/arm-neon-intrinsics.texi: Regenerated.
4456
4457 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
4458
4459         * config/arm/neon.md (vec_extractv2di): Correct error in register
4460         numbering to reconcile with neon_vget_lanev2di.
4461
4462 2010-07-02  Richard Guenther  <rguenther@suse.de>
4463
4464         * tree-ssa-structalias.c (pt_solution_set_var): New function.
4465         * tree-ssa-alias.h (pt_solution_set_var): Declare.
4466         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
4467         points-to information.
4468
4469 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
4470
4471         * config/s390/s390.c (override_options): Adopt prefetching
4472         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
4473
4474 2010-07-02  Jan Hubicka  <jh@suse.cz>
4475
4476         * df-problems.c (df_kill_notes): Do not collect dead  notes.
4477         (df_set_note): Just call add_reg_note.
4478         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
4479         df_create_unused_note): Do not deal with lists of old notes.
4480         (df_note_bb_compute): Likewise.
4481
4482 2010-07-02  Richard Guenther  <rguenther@suse.de>
4483
4484         * tree-ssa-structalias.c (find_func_aliases): Handle
4485         pointer alignment via BIT_AND_EXPR.
4486         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
4487
4488 2010-07-02  Richard Guenther  <rguenther@suse.de>
4489
4490         * tree-data-ref.c (initialize_data_dependence_relation): Handle
4491         mismatching number of dimensions properly.
4492
4493 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4494
4495         PR target/44707
4496         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
4497         (lo_sum (high ...) ...) patterns generated by earlier passes.
4498
4499 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4500
4501         * doc/install.texi (Prerequisites): Document Perl requirement on
4502         Solaris 2.
4503         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
4504
4505 2010-07-02  Richard Guenther  <rguenther@suse.de>
4506
4507         PR middle-end/44777
4508         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
4509
4510 2010-07-02  Jan Hubicka  <jh@suse.cz>
4511
4512         PR middle-end/44706
4513         * predict.c (predict_paths_for_bb): Handle case when control dependence
4514         BB has only abnormal edges.
4515
4516 2010-07-02  Richard Guenther  <rguenther@suse.de>
4517
4518         PR tree-optimization/44748
4519         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
4520         the embedded conversion in MEM_REFs.
4521
4522 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
4523
4524         * reload.c: Include toplev.h.
4525         * recog.c:  Likewise.
4526         * Makefile.in: Adjust dependencies.
4527
4528 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
4529
4530         PR debug/44694
4531         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
4532         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
4533
4534 2010-07-01  Richard Guenther  <rguenther@suse.de>
4535
4536         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
4537         types for offsets.
4538
4539 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4540
4541         PR target/44732
4542         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
4543         Fix argument types.
4544
4545 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
4546
4547         PR target/44727
4548         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4549         Make sure operand 0 dies.
4550
4551 2010-07-01  Richard Guenther  <rguenther@suse.de>
4552
4553         PR middle-end/42834
4554         PR middle-end/44468
4555         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
4556         * doc/generic.texi (References to storage): Document MEM_REF.
4557         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
4558         (print_call_name): Likewise.
4559         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
4560         (build_simple_mem_ref_loc): New function.
4561         (mem_ref_offset): Likewise.
4562         * tree.h (build_simple_mem_ref_loc): Declare.
4563         (build_simple_mem_ref): Define.
4564         (mem_ref_offset): Declare.
4565         * fold-const.c: Include tree-flow.h.
4566         (operand_equal_p): Handle MEM_REF.
4567         (build_fold_addr_expr_with_type_loc): Likewise.
4568         (fold_comparison): Likewise.
4569         (fold_unary_loc): Fold
4570         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
4571         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
4572         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
4573         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
4574         (ptr_deref_may_alias_ref_p_1): Likewise.
4575         (ao_ref_base_alias_set): Properly differentiate base object for
4576         offset and TBAA.
4577         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
4578         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
4579         (indirect_refs_may_alias_p): Likewise.
4580         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
4581         chasing code.
4582         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
4583         (call_may_clobber_ref_p_1): Likewise.
4584         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
4585         * expr.c (expand_assignment): Handle MEM_REF.
4586         (store_expr): Handle MEM_REFs from STRING_CSTs.
4587         (store_field): If expanding a MEM_REF of a non-addressable
4588         decl use bitfield operations.
4589         (get_inner_reference): Handle MEM_REF.
4590         (expand_expr_addr_expr_1): Likewise.
4591         (expand_expr_real_1): Likewise.
4592         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
4593         * alias.c (ao_ref_from_mem): Handle MEM_REF.
4594         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
4595         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
4596         (dr_analyze_indices): Likewise.
4597         (dr_analyze_alias): Likewise.
4598         (object_address_invariant_in_loop_p): Likewise.
4599         * gimplify.c (mark_addressable): Handle MEM_REF.
4600         (gimplify_cond_expr): Build MEM_REFs.
4601         (gimplify_modify_expr_to_memcpy): Likewise.
4602         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
4603         (gimple_fold_indirect_ref): Adjust.
4604         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
4605         * tree.def (MEM_REF): New tree code.
4606         * tree-dfa.c: Include toplev.h.
4607         (get_ref_base_and_extent): Handle MEM_REF.
4608         (get_addr_base_and_unit_offset): New function.
4609         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
4610         * gimple-fold.c (may_propagate_address_into_dereference): Handle
4611         MEM_REF.
4612         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
4613         accesses if the array has just one dimension.  Remove always true
4614         parameter.  Do not require type compatibility here.
4615         (maybe_fold_offset_to_component_ref): Remove.
4616         (maybe_fold_stmt_indirect): Remove.
4617         (maybe_fold_reference): Remove INDIRECT_REF handling.
4618         Fold back to non-MEM_REF.
4619         (maybe_fold_offset_to_address): Simplify.  Deal with type
4620         mismatches here.
4621         (maybe_fold_reference): Likewise.
4622         (maybe_fold_stmt_addition): Likewise.  Also handle
4623         &ARRAY + I in addition to &ARRAY[0] + I.
4624         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
4625         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
4626         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
4627         * tree-ssa.c (useless_type_conversion_p): Make most pointer
4628         conversions useless.
4629         (warn_uninitialized_var): Handle MEM_REF.
4630         (maybe_rewrite_mem_ref_base): New function.
4631         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
4632         to SSA form.
4633         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
4634         INDIRECT_REF handling.
4635         (copy_tree_body_r): Handle MEM_REF.
4636         * gimple.c (is_gimple_addressable): Adjust.
4637         (is_gimple_address): Likewise.
4638         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
4639         invariant base are invariant.
4640         (is_gimple_min_lval): Adjust.
4641         (is_gimple_mem_ref_addr): New function.
4642         (get_base_address): Handle MEM_REF.
4643         (count_ptr_derefs): Likewise.
4644         (get_base_loadstore): Likewise.
4645         * gimple.h (is_gimple_mem_ref_addr): Declare.
4646         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
4647         * tree-cfg.c (verify_address): New function, split out from ...
4648         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
4649         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
4650         INDIRECT_REFs.
4651         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
4652         INDIRECT_REF.  Allow conversions.
4653         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
4654         a register does not change its size.
4655         (verify_types_in_gimple_reference): Verify MEM_REF.
4656         (verify_gimple_assign_single): Disallow INDIRECT_REF.
4657         Handle MEM_REF.
4658         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
4659         New.
4660         (mark_address_taken): Handle MEM_REF.
4661         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
4662         (get_asm_expr_operands): Pass opf_not_non_addressable.
4663         (get_expr_operands): Handle opf_[not_]non_addressable.
4664         Handle MEM_REF.  Remove INDIRECT_REF handling.
4665         * tree-vrp.c (check_array_ref): Handle MEM_REF.
4666         (search_for_addr_array): Likewise.
4667         (check_array_bounds): Likewise.
4668         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
4669         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
4670         (ref_always_accessed_p): Likewise.
4671         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
4672         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
4673         Handle MEM_REF.
4674         * cgraphbuild.c (mark_load): Properly check for NULL result
4675         from get_base_address.
4676         (mark_store): Likewise.
4677         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
4678         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
4679         handling for MEM_REF.
4680         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
4681         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
4682         * builtins.c (stabilize_va_list_loc): Use the function ABI
4683         valist type if we couldn't canonicalize the argument type.
4684         Always dereference with the canonical va-list type.
4685         (maybe_emit_free_warning): Handle MEM_REF.
4686         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
4687         memmove to memcpy.
4688         * builtins.c (fold_builtin_memory_op): Use ref-all types
4689         for all memcpy foldings.
4690         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
4691         (build_outer_var_ref): Likewise.
4692         (scan_omp_1_op): Likewise.
4693         (lower_rec_input_clauses): Likewise.
4694         (lower_lastprivate_clauses): Likewise.
4695         (lower_reduction_clauses): Likewise.
4696         (lower_copyprivate_clauses): Likewise.
4697         (expand_omp_atomic_pipeline): Likewise.
4698         (expand_omp_atomic_mutex): Likewise.
4699         (create_task_copyfn): Likewise.
4700         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
4701         Remove old union trick.  Initialize constant offsets.
4702         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
4703         INDIRECT_REF.  Init base_alias_set properly.
4704         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
4705         (vn_reference_fold_indirect): Adjust for MEM_REFs.
4706         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
4707         for ARRAY_REFs.
4708         (may_insert): Remove.
4709         (visit_reference_op_load): Do not test may_insert.
4710         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
4711         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
4712         a field to store the constant offset this op applies.
4713         (run_scc_vn): Adjust prototype.
4714         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
4715         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
4716         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
4717         bother about volatile qualifiers on pointers.
4718         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
4719         * tree-ssa-loop-ivopts.c
4720         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
4721         (strip_offset_1): Likewise.
4722         (find_interesting_uses_address): Replace INDIRECT_REF handling with
4723         MEM_REF handling.
4724         (get_computation_cost_at): Likewise.
4725         * ipa-pure-const.c (check_op): Handle MEM_REF.
4726         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
4727         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
4728         and constants.
4729         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
4730         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
4731         (eliminate_local_variables_1): Likewise.
4732         (create_call_for_reduction_1): Likewise.
4733         (create_loads_for_reductions): Likewise.
4734         (create_loads_and_stores_for_name): Likewise.
4735         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
4736         (ssa_accessed_in_tree): Handle MEM_REF.
4737         (ssa_accessed_in_assign_rhs): Likewise.
4738         (update_type_size): Likewise.
4739         (analyze_accesses_for_call_stmt): Likewise.
4740         (analyze_accesses_for_assign_stmt): Likewise.
4741         (transform_access_sites): Likewise.
4742         (transform_allocation_sites): Likewise.
4743         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
4744         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4745         not handle INDIRECT_REF.
4746         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
4747         (cond_store_replacement): Likewise.
4748         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
4749         MEM_REF, no not handle INDIRECT_REFs.
4750         (insert_into_preds_of_block): Properly initialize avail.
4751         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
4752         for ARRAY_REFs.  Properly handle reference lookups that
4753         require a bit re-interpretation.
4754         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
4755         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
4756         (build_ref_for_offset_1): Remove.
4757         (build_ref_for_offset): Build MEM_REFs.
4758         (gate_intra_sra): Disable for now.
4759         (sra_ipa_modify_expr): Handle MEM_REF.
4760         (ipa_early_sra_gate): Disable for now.
4761         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
4762         MEM_REF handling.
4763         (disqualify_base_of_expr): Likewise.
4764         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
4765         MEM_REF handling.
4766         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
4767         Use mem_ref_offset.  Remove bogus folding.
4768         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
4769         (make_fancy_name_1): Add support for MEM_REF.
4770         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
4771         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
4772         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
4773         (compute_complex_ancestor_jump_func): Likewise.
4774         (ipa_analyze_virtual_call_uses): Likewise.
4775         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
4776         INDIRECT_REF folding with more generalized MEM_REF folding.
4777         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
4778         (forward_propagate_addr_into_variable_array_index): Also handle
4779         &ARRAY + I in addition to &ARRAY[0] + I.
4780         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
4781         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
4782         creates assignments with overlap.
4783         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
4784         (get_frame_field): Likewise.
4785         (get_nonlocal_debug_decl): Likewise.
4786         (convert_nonlocal_reference_op): Likewise.
4787         (struct nesting_info): Add mem_refs pointer-set.
4788         (create_nesting_tree): Allocate it.
4789         (convert_local_reference_op): Insert to be folded mem-refs.
4790         (fold_mem_refs): New function.
4791         (finalize_nesting_tree_1): Perform defered folding of mem-refs
4792         (free_nesting_tree): Free the pointer-set.
4793         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
4794         (vectorizable_load): Likewise.
4795         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
4796         (propagate_with_phi): Likewise.
4797         * tree-object-size.c (addr_object_size): Handle MEM_REFs
4798         instead of INDIRECT_REFs.
4799         (compute_object_offset): Handle MEM_REF.
4800         (plus_stmt_object_size): Handle MEM_REF.
4801         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
4802         for &MEM_REF.
4803         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
4804         (symbol_marked_for_renaming): Likewise.
4805         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
4806         (fold-const.o): Add $(TREE_FLOW_H).
4807         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
4808         (find_func_clobbers): Likewise.
4809         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
4810         (decompose_access): Likewise.
4811         (replace_field_acc): Likewise.
4812         (replace_field_access_stmt): Likewise.
4813         (insert_new_var_in_stmt): Likewise.
4814         (get_stmt_accesses): Likewise.
4815         (reorg_structs_drive): Disable.
4816         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
4817         (ix86_canonical_va_list_type): Likewise.
4818
4819 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4820
4821         PR other/44566
4822         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
4823         * target.def (struct gcc_target): Replace enum reg_class with
4824         reg_class_t in hook argument / return types.
4825         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
4826         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
4827         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4828         * targhooks.h (default_branch_target_register_class): Likewise.
4829         (default_ira_cover_classes, default_secondary_reload): Likewise.
4830         (default_memory_move_cost, default_register_move_cost): Likewise.
4831         * targhooks.c (default_branch_target_register_class): Likewise.
4832         (default_ira_cover_classes, default_secondary_reload): Likewise.
4833         (default_memory_move_cost, default_register_move_cost): Likewise.
4834         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
4835         * bt-load.c (branch_target_load_optimize): Likewise.
4836         * ira.c (setup_cover_and_important_classes): Likewise.
4837         * ira-costs.c (copy_cost): Likewise.
4838         * reload1.c (emit_input_reload_insns): Likewise.
4839         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4840         * config/frv/frv.c (frv_secondary_reload): Likewise.
4841         * config/s390/s390.c (s390_secondary_reload): Likewise.
4842         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
4843         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
4844         (ix86_register_move_cost): Likewise.
4845         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
4846         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
4847         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
4848         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
4849         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
4850         (rs6000_ira_cover_classes): Likewise.
4851         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
4852         * config/picochip/picochip-protos.h (picochip_secondary_reload):
4853         Likewise.
4854         * config/pa/pa.c (pa_secondary_reload): Likewise.
4855         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
4856         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
4857         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
4858         * doc/tm.texi: Regenerate.
4859
4860 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
4861
4862         PR bootstrrap/44726
4863         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
4864         use.
4865         (build_alias_set_optimal_p): Likewise.
4866         (build_base_obj_set_for_drs): Likewise.
4867
4868 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4869
4870         * target.def: Remove comment about licensing problems of function
4871         declarations.
4872
4873         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
4874         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
4875         * doc/tm.texi: Regenerate.
4876
4877         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
4878         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
4879
4880         * target.def (enum_va_list_p): Use DEFHOOK.
4881         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
4882         Rename ptype to ptree.
4883         * doc/tm.texi: Regenerate.
4884
4885         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
4886         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
4887         * doc/tm.texi: Regenerate.
4888
4889         * target.def (memory_move_cost): Use DEFHOOK.
4890         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
4891         Rename regclass AKA class to rclass.
4892         * doc/tm.texi: Regenerate.
4893
4894         * target.def (pragma_parse): Use DEFHOOK.
4895         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
4896         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
4897         * doc/tm.texi: Regenerate.
4898
4899         * target.def (pass_by_reference): Use DEFHOOK.
4900         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
4901         * doc/tm.texi: Regenerate.
4902
4903         * target.def (resolve_overloaded_builtin): Rename params to arglist.
4904         Use DEFHOOK.
4905         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
4906         * doc/tm.texi: Regenerate.
4907
4908         * target.def (return_pops_args): Use DEFHOOK.
4909         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
4910         Rename stack-size to size.
4911         * doc/tm.texi: Regenerate.
4912
4913         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
4914         last-sched_cycle to last_clock, cur_cycle to clock.
4915         * doc/tm.texi.in: Use @hook.
4916         * doc/tm.texi: Regenerate.
4917
4918         * target.def (print_operand, print_operand_address): Update comment.
4919         (print_operand_punct_valid_p): Likewise.
4920
4921 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4922
4923         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
4924         to rtl.h.
4925         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
4926         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
4927         * rtl-error.h: New.
4928         * regrename.c: Do not include toplev.h. Include rtl-error.h.
4929         * rtl-error.c: Likewise.
4930         * reload.c: Likewise.
4931         * recog.c:  Likewise.
4932         * sel-sched.c: Likewise.
4933         * function.c: Likewise.
4934         * reg-stack.c: Likewise.
4935         * cfgrtl.c: Likewise.
4936         * reload1.c: Likewise.
4937         * final.c: Include rtl-error.
4938         * Makefile.in: Adjust dependencies.
4939
4940 2010-06-30  Jan Hubicka  <jh@suse.cz>
4941
4942         PR middle-end/PR44706
4943         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
4944         to return the value.
4945
4946 2010-06-30  Michael Matz  <matz@suse.de>
4947
4948         PR bootstrap/44699
4949         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
4950         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
4951         a gimple reg, attach the original VDEF to the last store in the
4952         sequence.
4953
4954 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
4955
4956         PR other/44034
4957         * config/darwin.c (darwin_override_options): Use renamed
4958         targetm.asm_out.emit_unwind_label.
4959
4960 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
4961
4962         PR tree-optimization/39799
4963         * tree-inline.c (remap_ssa_name): Initialize variable only if
4964         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4965
4966 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
4967
4968         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
4969
4970 2010-06-30  Richard Guenther  <rguenther@suse.de>
4971
4972         PR target/44722
4973         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
4974         against oscillation with reverse peephole2.
4975
4976 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
4977
4978         PR target/44721
4979         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4980         Fix last commit.
4981
4982 2010-06-30  Nick Clifton  <nickc@redhat.com>
4983
4984         * config/rx/rx-modes.def: New file.
4985         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
4986         (CC_REGNUM): Define.
4987         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
4988         register.
4989         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
4990         (SELECT_CC_MODE): Define.
4991         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
4992         (reg:CC CC_REG) instead of (cc0).
4993         (attr "cc"): Delete.
4994         (cbranchsi4): Do not split compare and branch here. Instead move
4995         it to...
4996         (cbranchsi4_<code>): ... here.  New patterns.
4997         (cmpsi): Call rx-compare_redundant to find out if it is necessary
4998         to emit the compare instruction.
4999         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
5000         cc_status flags.
5001         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
5002         FIRST_PSEUDO_REGNUM.
5003         (rx_expand_prologue, rx_expand_epilogue): Likewise.
5004         (rx_notice_update_cc): Delete.
5005         (rx_cc_modes_compatible): New function.
5006         (flags_needed_for_conditional): New function.
5007         (flags_from_mode): New function.
5008         (rx_compare_redundant): New function - scans backwards through
5009         insn list to find out if condition flags are already set correctly.
5010         (TARGET_CC_MODES_COMPATIBLE): Define.
5011         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
5012
5013         * config/rx/rx.h (BRANCH_COST): Define.
5014         (REGISTER_MOVE_COST): Define.
5015         * config/rx/predicates (rx_source_operand): Allow all constant types.
5016         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
5017         (tstsi4): New pattern.
5018         * config/rx/rx.c (rx_memory_move_cost): Define.
5019         (TARGET_MEMORY_MOVE_COST): Define.
5020
5021 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5022
5023         * tree.h (block_may_fallthru): Declare here.
5024         * tree-flow.h (block_may_fallthru): Do not declare here.
5025         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
5026         bitmap.h
5027         * Makefile.in (c-typeck.o): Update dependencies.
5028
5029 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
5030
5031         PR debug/44694
5032         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
5033         * cselib.c (cfa_base_preserved_regno): New static variable.
5034         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
5035         of REGNO (cfa_base_preserved_val->locs->loc).
5036         (cselib_preserve_cfa_base_value): Add regno argument, set
5037         cfa_base_preserved_regno to it.
5038         (cselib_invalidate_regno): Allow removal of registers other than
5039         cfa_base_preserved_regno from cfa_base_preserved_val.
5040         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
5041         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
5042         of MEM addresses, if not on LHS.
5043         (reverse_op): Don't add reverse ops for cfa_base_rtx.
5044         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
5045
5046 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
5047
5048         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
5049         static variables.
5050         (peep2_buf_position): New static function.
5051         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
5052         peephole2_optimize): Use it.
5053         (peep2_attempt, peep2_update_life): New static functions, broken out
5054         of peephole2_optimize.
5055         (peep2_fill_buffer): New static function.
5056         (peephole2_optimize): Change the main loop to try to fill the buffer
5057         with the maximum number of insns before matching them against
5058         peepholes.  Use a forward scan.  Remove special case for targets with
5059         conditional execution.
5060         * genrecog.c (change_state): Delete dead code.
5061         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5062         Rewrite so as not to expect the second insn to have had a peephole
5063         applied yet.
5064
5065 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5066
5067         * genhooks.c (emit_findices): Cast field precision to int.
5068         (emit_documentation): Likewise.
5069
5070 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
5071
5072         PR tree-optimization/43801
5073         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
5074         if old_decl was DECL_ONE_ONLY.
5075
5076         PR debug/44668
5077         * dwarf2out.c (add_accessibility_attribute): New function.
5078         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
5079         instead of adding DW_AT_accessibility manually.
5080         (gen_enumeration_type_die, gen_struct_or_union_type_die,
5081         gen_typedef_die): Use it.
5082
5083 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5084
5085         * vmsdbgout.c (full_name): Just output the file name if not native.
5086
5087 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5088
5089         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
5090         (funcnam_table): New static table.
5091         (funcnum_table): New static table.
5092         (write_rtnbeg): Write value saved in funcnum_table.
5093         (write_rtnend): Write value saved in funcnum_table.
5094         (vmsdbgout_begin_function): Save current function info in
5095         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
5096         (vmsdbgout_finish): Iterate over funcnum_table.
5097
5098 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5099
5100         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
5101         (vmsdbgout_type_decl): Declare
5102         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
5103         (FUNC_EPILOGUE_LABEL): New macro
5104         (vmsdbgout_begin_epilogue): New function.
5105         (vmsdbgout_type_decl): New function.
5106
5107 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5108
5109         * vmsdbg.h: Update copyright.
5110
5111 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5112
5113         * vmsdbg.h (DST_K_TBG): New DST constant.
5114         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
5115         (write_modbeg): Cast module_language to avoid warning.
5116         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
5117
5118 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5119
5120         PR other/44034
5121         * target.def, doc/tm.texi.in, genhooks.c: New files.
5122         * target.h: Instead of defining individual hook members,
5123         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
5124         include target.def.
5125         * target-def.h: Instead of defining individual hook initializers,
5126         include target-hooks-def.h.
5127         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
5128         targetm.live_on_entry -> targetm.extra_live_on_entry
5129         targetm.sched.md_finish ->targetm.sched.finish
5130         targetm.sched.md_init -> targetm.sched.init
5131         targetm.sched.md_init_global -> targetm.sched.init_global
5132         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
5133         targetm.asm_out.except_table_label ->
5134           targetm.asm_out.emit_except_table_label
5135         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
5136         targetm.target_help -> targetm.help
5137         targetm.vectorize.builtin_support_vector_misalignment ->
5138           targetm.vectorize.support_vector_misalignment
5139         targetm.file_start_app_off -> targetm.asm_file_start_app_off
5140         targetm.file_start_file_directive ->
5141          targetm.asm_file_start_file_directive
5142         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
5143         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
5144         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
5145         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
5146           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
5147         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
5148           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
5149         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
5150         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
5151         * Makefile.in (TARGET_H): Depend on target.def.
5152         (TARGET_DEF_H): Depend on target-hooks-def.h.
5153         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
5154         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
5155         * doc/tm.texi: Regenerate.
5156
5157         * Makefile.in (s-tm-texi): Remove stray tab / rule.
5158
5159         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
5160         (targetm.sched.init): Likewise.
5161
5162 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5163
5164         PR bootstrap/44713
5165         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
5166         (function_arg_advance_32): Const-ify TYPE parameter.
5167         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
5168         (ix86_function_arg_advance): Change type of NAMED to bool.
5169         (function_arg_32): Const-ify CUM and TYPE parameters.
5170         (function_arg_64): Likewise.  Change type of NAMED to bool.
5171         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
5172         to bool.
5173         (ix86_function_arg): Change type of NAMED to bool.
5174         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
5175         last argument as a bool.
5176
5177 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5178
5179         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
5180         (OVERRIDE_OPTIONS): Add note of obsolescence.
5181         Replace references with references to TARGET_OPTION_OVERRIDE.
5182         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
5183          the macro).
5184         * targhooks.c (default_target_option_override): New function.
5185         * targhooks.h (default_target_option_override): Declare.
5186         * target.h (struct gcc_target): Add override member to
5187         target_option member.
5188         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
5189         targetm.target_option.override call.
5190         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
5191         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
5192
5193 2010-06-29  Jan Hubicka  <jh@suse.cz>
5194
5195         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
5196
5197 2010-06-29  Jan Hubicka  <jh@suse.cz>
5198
5199         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
5200         unreachable.
5201         (rebuild_frequencies): New function.
5202         * predict.h (rebuild_frequencies): Declare.
5203         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
5204         entry block and edge reaching new_entry.
5205         (tree_function_versioning): When doing partial cloning, rebuild
5206         frequencies when done.
5207         * passes.c (execute_function_todo): Use rebild_frequencies.
5208
5209 2010-06-29  Richard Guenther  <rguenther@suse.de>
5210
5211         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
5212         * tree-flow.h (enum noalias_state): Remove.
5213         (struct var_ann_d): Remove noalias_state member.
5214
5215 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
5216
5217         PR target/43902
5218         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
5219         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
5220         (maddhidi4): Likewise.
5221
5222         Revert parts of the change for PR25130.
5223         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5224         MEM_ALIAS_SET.
5225
5226 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5227
5228         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
5229         targetm.calls.function_incoming_arg, and
5230         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
5231         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
5232         * target.h (struct gcc_target): Add function_arg_advance,
5233         function_arg, and function_incoming_arg fields.
5234         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
5235         (TARGET_FUNCTION_INCOMING_ARG): Define.
5236         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
5237         and TARGET_FUNCTION_INCOMING_ARG.
5238         * targhooks.h (default_function_arg_advance): Declare.
5239         (default_function_arg, default_function_incoming_arg): Declare.
5240         * targhooks.c (default_function_arg_advance): New function.
5241         (default_function_arg, default_function_incoming_arg): New function.
5242         * config/i386/i386.c (function_arg_advance): Rename to...
5243         (ix86_function_arg_advance): ...this.  Make static.
5244         (function_arg): Rename to...
5245         (ix86_function_arg): ...this.  Make static.
5246         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5247         (TARGET_FUNCTION_ARG): Define.
5248         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
5249         (FUNCTION_ARG): Delete.
5250         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
5251         (function_arg): Delete prototype.
5252
5253 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5254
5255         * reginfo.c (init_reg_sets_1): Adjust comments.
5256         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
5257         * calls.c (prepare_call_address): Likewise.
5258         (emit_call_1): Use targetm.calls.return_pops_args.
5259         (expand_call): Likewise.
5260         * function.c (assign_parms): Likewise.
5261         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
5262         * target.h (struct gcc_target) [struct calls]: Add
5263         return_pops_args field.
5264         * targhooks.h (default_return_pops_args): Declare.
5265         * targhooks.c (default_return_pops_args): Define.
5266         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
5267         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
5268         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
5269         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
5270         documentation.
5271         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
5272         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
5273         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
5274         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
5275         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
5276         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
5277         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
5278         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
5279         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
5280         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
5281         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
5282         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
5283         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
5284         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
5285         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
5286         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
5287         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
5288         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
5289         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
5290         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
5291         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
5292         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
5293         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
5294         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
5295         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
5296         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
5297         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
5298         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
5299         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
5300         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
5301         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
5302         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
5303         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
5304         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
5305         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
5306         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
5307         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
5308         * config/i386/i386.c (ix86_return_pops_args): Make static.
5309         Constify arguments.
5310         (TARGET_RETURN_POPS_ARGS): Define.
5311         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
5312         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
5313         (TARGET_RETURN_POPS_ARGS): Define.
5314         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
5315         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
5316         (TARGET_RETURN_POPS_ARGS): Define.
5317
5318 2010-06-29  Richard Guenther  <rguenther@suse.de>
5319
5320         PR middle-end/44667
5321         * tree-inline.c (initialize_inlined_parameters): Make sure
5322         to remap the inlined parameter variable substitutions types.
5323
5324 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
5325
5326         PR rtl-optimization/44659
5327         * combine.c (make_compound_operation) <SUBREG>: Do not return the
5328         result of force_to_mode if it partially re-expanded the compound.
5329
5330 2010-06-28  Jan Hubicka  <jh@suse.cz>
5331
5332         PR middle-end/44671
5333         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
5334         RESULT_DECL.
5335
5336 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
5337
5338         * double-int.h (force_fit_type_double): Remove declaration.
5339         * double-int.c (force_fit_type_double): Move to tree.c.
5340         * tree.h (force_fit_type_double): Declare.
5341         * tree.h (force_fit_type_double): Moved from double-int.c. Use
5342         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
5343         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
5344         * convert.c (convert_to_pointer): Adjust call to
5345         force_fit_type_double.
5346         * tree-vrp.c (extract_range_from_assert,
5347         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
5348         * fold-const.c: Update comment.
5349         (int_const_binop, fold_convert_const_int_from_int,
5350         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
5351         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
5352         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
5353         round_up_loc): Adjust call to force_fit_type_double.
5354
5355 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5356
5357         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
5358
5359 2010-06-28  Martin Jambor  <mjambor@suse.cz>
5360
5361         * tree-sra.c (convert_callers): New parameter, change fndecls of
5362         recursive calls.
5363         (modify_function): Pass the old decl to convert_callers.
5364
5365 2010-06-28  Martin Jambor  <mjambor@suse.cz>
5366
5367         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
5368         ipa_check_create_node_params and ipa_initialize_node_params with
5369         checking asserts they are not necessary.
5370
5371 2010-06-28  Jan Hubicka  <jh@suse.cz>
5372
5373         PR tree-optimization/44687
5374         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
5375
5376 2010-06-28  Martin Jambor  <mjambor@suse.cz>
5377
5378         PR c++/44535
5379         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
5380         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
5381         instead of BINFO_BASE_BINFO.
5382
5383 2010-06-28  Michael Matz  <matz@suse.de>
5384
5385         PR middle-end/44592
5386         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
5387         proper VDEF chain for intermediate stores in the sequence.
5388
5389 2010-06-28  Jan Hubicka  <jh@suse.cz>
5390
5391         PR tree-optimization/44357
5392         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
5393         uninlinable functions.
5394
5395 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5396
5397         * config.gcc (powerpc*-*-*): Handle titan.
5398         * config/rs6000/rs6000.c (titan_cost): New costs.
5399         (rs6000_override_options): Add "titan" to processor_target_table.
5400         Add Titan to branch alignment logic.
5401         Correctly set rs6000_cost for titan.
5402         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
5403         * config/rs6000/titan.md: New file.
5404         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
5405
5406 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
5407
5408         * tree-browser.c (TB_history_stack): Convert to a VEC.
5409         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
5410         (TB_history_prev): Likewise.
5411
5412 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
5413
5414         * vec.h (vec_heap_free): Add parentheses around free.
5415
5416 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
5417
5418         * system.h: Poison GCC_EXCEPT_H for front-end files.
5419
5420         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
5421         langhook.
5422         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
5423         Define to NULL by default.
5424         * except.h: Define GCC_EXCEPT_H.
5425         (doing_eh): Remove prototype.
5426         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
5427         (lang_protect_cleanup_actions): Remove.
5428         * except.c (lang_protect_cleanup_actions): Remove.
5429         (doing_eh): Remove.
5430         (gen_eh_region): Don't check doing_eh here.
5431         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
5432         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
5433         instead of lang_protect_cleanup_actions.
5434         * omp-low.c (maybe_catch_exception): Likewise.
5435         * Makefile.in: Update dependencies.
5436
5437 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
5438
5439         * cgraph.h (struct varpool_node): new used_from_object_file flag.
5440         (struct cgraph_local_info): new used_from_object_file flag.
5441         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
5442         (cgraph_clone_node): initialize used_from_object_file.
5443         (cgraph_create_virtual_clone): initialize used_from_object_file.
5444         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
5445         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
5446         when compiling with -fwhole-program.
5447         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
5448         internal resolver.
5449         * ipa.c (function_and_variable_visibility): Set externally_visible
5450         flag of varpool_node if used_from_object_file flag is set.
5451         (cgraph_externally_visible_p): check used_from_object_file flag.
5452         * doc/invoke.texi (-fwhole-program option): Change description of
5453         externally_visible attribute accordingly.
5454         * doc/extend.texi (externally_visible): Ditto.
5455
5456 2010-06-27  Jan Hubicka  <jh@suse.cz>
5457
5458         * params.def (max-inline-insns-auto): Default to 40.
5459         * doc/invoke.texi (max-inline-insns-auto): Document the change.
5460
5461 2010-06-27  Jan Hubicka  <jh@suse.cz>
5462
5463         PR middle-end/44671
5464         PR middle-end/44686
5465         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
5466         signature change.
5467         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
5468         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
5469
5470 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
5471
5472         * target.h (struct gcc_target): Add register_move_cost field.
5473         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
5474         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
5475         * targhooks.c (default_register_move_cost): New function.
5476         * targhooks.h (default_register_move_cost): Declare function.
5477         * defaults.h (REGISTER_MOVE_COST): Delete.
5478         * ira-int.h (ira_register_move_cost): Update comment.
5479         * ira.c (ira_register_move_cost): Update comment.
5480         * reload.h (register_move_cost): Declare.
5481         * reginfo.c (register_move_cost): New function.
5482         (move_cost): Update comment.
5483         (init_move_cost, memory_move_secondary_cost): Replace
5484         REGISTER_MOVE_COST with register_move_cost.
5485         * postreload.c (reload_cse_simplify_set): (Ditto.).
5486         * reload.c (find_valid_class, find_reloads): (Ditto.).
5487         * reload1.c (choose_reload_regs): (Ditto.).
5488         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
5489         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
5490         * doc/md.texi (can_create_pseudo_p): Update documentation.
5491
5492         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5493         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5494         * config/i386/i386.h (ix86_memory_move_cost): Make static.
5495         (TARGET_MEMORY_MOVE_COST): Define.
5496
5497         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
5498         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
5499         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
5500         (TARGET_MEMORY_MOVE_COST): Define.
5501
5502 2010-06-27  Richard Guenther  <rguenther@suse.de>
5503
5504         PR tree-optimization/44683
5505         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
5506         false edge from the inverted condition.
5507
5508 2010-06-27  Richard Guenther  <rguenther@suse.de>
5509
5510         PR middle-end/44684
5511         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
5512         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
5513         for register LHS.  Or non-store assignments.
5514
5515 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
5516
5517         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
5518         (sparc_emit_set_const64): Likewise.  Remove disabled code.
5519         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
5520         (sparc_emit_set_const64): Likewise.
5521
5522 2010-06-26  Catherine Moore  <clm@codesourcery.com>
5523
5524         * config/mips/mips.md (alu_type): New attribute.
5525         (type): Infer type from alu_type.
5526         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
5527         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
5528         *subsi3_extended, negsi2, negdi2, *low<mode>,
5529         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
5530         xor<mode>3, *nor<mode>3,
5531         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
5532         *zero_extendhi_truncqi):  Set alu_type instead of type.
5533
5534 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
5535
5536         * config/alpha/alpha.c (alpha_need_linkage): Adjust
5537         splay_tree_new_ggc call.
5538         (alpha_use_linkage): Likewise.
5539
5540 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
5541
5542         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
5543         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
5544         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
5545         (static_specs): Remove switches_need_spaces.
5546         (process_command, do_self_spec): Hardcode handling "-o" instead of
5547         checking switches_need_spaces.
5548         * system.h (SWITCHES_NEED_SPACES): Poison.
5549
5550 2010-06-26  Richard Guenther  <rguenther@suse.de>
5551
5552         PR tree-optimization/44393
5553         * tree-loop-distribution.c (generate_loops_for_partition): Fix
5554         stmt removal and VOP renaming.
5555         (generate_memset_zero): Remove redundant stmt updating.
5556         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
5557         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
5558
5559 2010-06-26  Jan Hubicka  <jh@suse.cz>
5560
5561         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
5562         edges comming from header are equivalent.
5563         (visit_bb): Handle PHIs correctly.
5564         * tree-inline.c (copy_phis_for_bb): Be able to copy
5565         PHI from entry edge.
5566         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
5567
5568 2010-06-26  Richard Guenther  <rguenther@suse.de>
5569
5570         PR middle-end/44674
5571         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
5572         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
5573
5574 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
5575
5576         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
5577         add_infile, alloc_switch): New.
5578         (process_command): Remove variable lang_n_infiles.  Process
5579         options in a single pass.  Use new functions for allocating
5580         infiles and switches arrays.  Properly skip operands of
5581         -Xpreprocessor and -Xassembler.
5582
5583 2010-06-26  Jan Hubicka  <jh@suse.cz>
5584
5585         PR middle-end/44671
5586         * cgraphunit.c (cgraph_function_versioning): Remove wrong
5587         cgraph_make_decl_local call; fix typo copying RTL data.
5588
5589 2010-06-25  DJ Delorie  <dj@redhat.com>
5590
5591         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
5592         (m32c_output_aligned_common): Likewise.
5593         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
5594         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
5595         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
5596         (m32c_register_pragmas): Register it.
5597         * config/m32c/m32c.c (m32c_get_pragma_address): New.
5598         (m32c_insert_attributes): Set #pragma address decls volatile.
5599         (pragma_entry_eq): New.
5600         (pragma_entry_hash): New.
5601         (m32c_note_pragma_address): New.
5602         (m32c_get_pragma_address): New.
5603         (m32c_output_aligned_common): New.
5604         * doc/extend.texi: Document the new pragma.
5605
5606         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
5607         also.
5608         * config/m32c/predicates.md (m32c_any_operand): Check the code
5609         instead of memory_operand so as to allow matching volatile MEMs.
5610         (m32c_nonimmediate_operand): Likewise.
5611         (mra_operand): Allow volatiles.
5612
5613 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
5614
5615         PR debug/44610
5616         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
5617         address if the offset is unknown.
5618
5619 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
5620
5621         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
5622         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
5623         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
5624         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
5625         to ia64_start_function. Invoke it.
5626         * config/ia64/ia64.c (ia64_start_function): Call new function
5627         dwarf2out_vms_debug_main_pointer.
5628
5629 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5630
5631         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
5632         statements computing the true predicate.
5633
5634 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5635
5636         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
5637         to boolean_true_node.
5638         (reset_bb_predicate): New.
5639         (predicate_bbs): Call reset_bb_predicate.
5640
5641 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5642
5643         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
5644         (tree_if_conversion): Returns true when something has been changed.
5645         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
5646         changed something.
5647
5648 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
5649
5650         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
5651         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
5652         * tree-if-conv.c: Include dbgcnt.h.
5653         (tree_if_conversion): Use if_conversion_tree to count the number of
5654         if-convertible loops.
5655
5656 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
5657
5658         * common.opt (fprefetch-loop-arrays): Re-define
5659         -fprefetch-loop-arrays as a tri-state option with the initial
5660         value of -1.
5661         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
5662         pass only when flag_prefetch_loop_arrays > 0.
5663         * toplev.c (process_options): Note that, with tri-states,
5664         flag_prefetch_loop_arrays>0 means prefetching is enabled.
5665         * config/i386/i386.c (override_options): Enable prefetching at -O3
5666         for a set of CPUs that sw prefetching is helpful.
5667         (software_prefetching_beneficial_p): New.  Return TRUE if software
5668         prefetching is beneficial for the given CPU.
5669
5670 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5671
5672         PR rtl-optimization/44326
5673         * implicit-zee.c (find_removable_zero_extends): Replace
5674         INSN_P with NONDEBUG_INSN_P.
5675
5676 2010-06-25  Martin Jambor  <mjambor@suse.cz>
5677
5678         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
5679         (struct ipa_node_params): Removed the modification_analysis_done flag.
5680         (ipa_is_param_modified): Removed.
5681         (ipa_analyze_node): Declare.
5682         (ipa_compute_jump_functions): Remove declaration.
5683         (ipa_count_arguments): Likewise.
5684         (ipa_detect_param_modifications): Likewise.
5685         (ipa_analyze_params_uses): Likewise.
5686         * ipa-prop.c (struct param_analysis_info): New type.
5687         (visit_store_addr_for_mod_analysis): Removed.
5688         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
5689         moved down in the file.
5690         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
5691         (ipa_count_arguments): Made static.
5692         (mark_modified): New function.
5693         (is_parm_modified_before_call): New function.
5694         (compute_pass_through_member_ptrs): New parameter parms_info, call
5695         is_parm_modified_before_call instead of ipa_is_param_modified.
5696         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
5697         it to compute_pass_through_member_ptrs.
5698         (ipa_compute_jump_functions): New parameter parms_info, pass it to
5699         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
5700         on the callee if it is analyzed.  Made static.
5701         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
5702         is_parm_modified_before_call instead of ipa_is_param_modified.
5703         (ipa_analyze_call_uses): New parameter parms_info, pass it to
5704         ipa_analyze_indirect_call_uses.
5705         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
5706         ipa_analyze_call_uses.
5707         (ipa_analyze_params_uses): New parameter parms_info, pass it to
5708         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
5709         (ipa_analyze_node): New function.
5710         (ipa_print_node_params): Do not dump the modified flag.
5711         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
5712         it.  Do not stream the modified parameter flag.
5713         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
5714         it.  Do not stream the modified parameter flag.
5715         * ipa-cp.c (ipcp_analyze_node): Removed.
5716         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
5717         with only a call to ipa_analyze_node.
5718         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
5719         node with only a call to ipa_analyze_node.
5720
5721 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5722
5723         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
5724
5725 2010-06-25  Jan Hubicka  <jh@suse.cz>
5726
5727         * tree-pass.h (pass_split_functions): Declare.
5728         * opts.c (decode_options): Enable function splitting at -O2
5729         * timevar.def (TV_IPA_FNSPLIT): New macro.
5730         * ipa-split.c: New file.
5731         * common.opt (-fpartial-inlining): New flag.
5732         * Makefile.in (ipa-split.o): New object file.
5733         * passes.c (init_optimization_passes): Add ipa-split.
5734         * params.def (partial-inlining-entry-probability): New parameters.
5735         * doc/invoke.texi (-fpartial-inlining): New.
5736
5737 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5738
5739         PR 44665
5740         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
5741         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
5742         (gimplify_expr): Likewise.
5743
5744 2010-06-25  Martin Jambor  <mjambor@suse.cz>
5745
5746         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
5747         statements instead of bailing out on them.
5748         (ipa_analyze_indirect_call_uses): Do not require that loads from the
5749         parameter are in the same BB as the condition.  Update comments.
5750
5751 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
5752
5753         PR middle-end/43866
5754         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
5755         true or always false, return NULL_TREE.
5756         (tree_unswitch_single_loop): Optimize conditions even when reaching
5757         max-unswitch-level parameter.  If num > 0, optimize first all conditions
5758         using entry checks, then do still reachable block discovery and consider
5759         only conditions in still reachable basic blocks in the loop.
5760
5761         PR tree-optimization/44539
5762         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
5763         the call doesn't have LHS, but has VDEF.
5764
5765 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
5766
5767         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
5768         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
5769         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
5770         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
5771         * system.h (MODIFY_TARGET_NAME): Poison.
5772
5773 2010-06-25  Alan Modra  <amodra@gmail.com>
5774
5775         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
5776         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
5777         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5778         CMODEL_LARGE as default.
5779         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
5780         (offsettable_ok_by_alignment): Delete.
5781         (rs6000_emit_move): Remove mcmodel=medium optimization.
5782
5783 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
5784
5785         With large parts from Jim Wilson:
5786         PR target/43902
5787         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
5788         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5789         * optabs.c (optab_for_tree_code): Likewise.
5790         (expand_widen_pattern_expr): Likewise.
5791         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
5792         out of execute_optimize_widening_mul.
5793         (convert_plusminus_to_widen): New function.
5794         (execute_optimize_widening_mul): Use the two new functions.
5795         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
5796         Remove code to generate widening multiply-accumulate.  Add support
5797         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5798         * gimple-pretty-print.c (dump_ternary_rhs): New function.
5799         (dump_gimple_assign): Call it when appropriate.
5800         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
5801         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5802         (expand_gimple_stmt_1): Likewise.
5803         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
5804         WIDEN_MULT_MINUS_EXPR.
5805         * tree-ssa-operands.c (get_expr_operands): Likewise.
5806         * tree-inline.c (estimate_operator_cost): Likewise.
5807         * gimple.c (extract_ops_from_tree_1): Renamed from
5808         extract_ops_from_tree.  Add new arg for a third operand; fill it.
5809         (gimple_build_assign_stat): Support operations with three operands.
5810         (gimple_build_assign_with_ops_stat): Likewise.
5811         (gimple_assign_set_rhs_from_tree): Likewise.
5812         (gimple_assign_set_rhs_with_ops_1): Renamed from
5813         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
5814         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
5815         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
5816         WIDEN_MULT_MINUS_EXPR.
5817         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
5818         (extract_ops_from_tree_1): Adjust declaration.
5819         (gimple_assign_set_rhs_with_ops_1): Likewise.
5820         (gimple_build_assign_with_ops): Pass NULL for last operand.
5821         (gimple_build_assign_with_ops3): New macro.
5822         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
5823         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
5824         functions.
5825         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
5826         (verify_gimple_assign): Call it.
5827         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
5828         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
5829         functions for dealing with three-operand statements.
5830         * tree.c (commutative_ternary_tree_code): New function.
5831         * tree.h (commutative_ternary_tree_code): Declare it.
5832         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
5833         ternary statements.
5834         (gimple_assign_nonzero_warnv_p): Likewise.
5835         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
5836         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
5837         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
5838         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
5839         (struct hashtable_expr): New member ternary in the union.
5840         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
5841         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
5842         (iterative_hash_hashable_expr): Likewise.
5843         (print_expr_hash_elt): Handle EXPR_TERNARY.
5844         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
5845         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
5846         statements.  Handle GIMPLE_TERNARY_RHS.
5847
5848 2010-06-25  Jan Hubicka  <jh@suse.cz>
5849
5850         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
5851
5852 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
5853
5854         PR c/44517
5855         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
5856         parameters are not good.
5857         (c_parser_parameter_declaration): Error unknown type name if the type
5858         name can't start declaration specifiers.
5859
5860 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
5861
5862         * gcc.c (translate_options): Don't mention +e in comment.
5863         (process_command): Don't handle +e specially.
5864
5865 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
5866
5867         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
5868
5869         * ira-build.c (merge_hard_reg_conflicts): New function.
5870         (create_cap_allocno, copy_info_to_removed_store_destinations,
5871         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
5872         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
5873         (remove_unnecessary_allocnos, remove_low_level_allocnos)
5874         copy_nifo_to_removed_store_destination): Use them.
5875         * ira-lives.c (make_hard_regno_born): New function, split out of
5876         make_regno_born.
5877         (make_allocno_born): Likewise.
5878         (make_hard_regno_dead): New function, split out of make_regno_dead.
5879         (make_allocno_dead): Likewise.
5880         (inc_register_pressure): New function, split out of set_allocno_live.
5881         (dec_register_pressure): New function, split out of clear_allocno_live.
5882         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
5883         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
5884         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
5885         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
5886         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
5887         mark_pseudo_regno_live.
5888         (process_bb_node_lives): Use mark_pseudo_regno_live,
5889         make_hard_regno_born and make_allocno_dead.
5890         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
5891         set_allocno_live, clear_allocno_live): Delete functions.
5892
5893         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
5894         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
5895         functions.
5896         (ira_flattening): Use ira_parent_allocno.
5897         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
5898         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
5899
5900         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
5901         statement.
5902
5903         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
5904         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
5905         minmax_set_iter_cond, minmax_set_iter_next,
5906         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
5907         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
5908         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
5909         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
5910         uses changed.
5911
5912         * ira-int.h (struct live_range, live_range_t): Renamed from struct
5913         ira_allocno_live_range and allocno_live_range_t; all uses changed.
5914         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
5915         All uses changed.
5916
5917 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
5918
5919         * thumb2.md (thumb2_tlobits_cbranch): Delete.
5920         (peephole2 to convert zero_extract/compare of single bit to
5921          lshift/compare): New.
5922
5923 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
5924
5925         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
5926         recursive call and call to 'int_const_binop'.
5927         (build_range_check, fold_cond_expr_with_comparison, unextend,
5928         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
5929         multiple_of_p): Adjust call to const_binop.
5930
5931 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
5932
5933         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
5934         determine size of XFmode operand.
5935         (XFmode extended DFmode push splitter): Ditto.
5936         (XFmode extended SFmode push splitter): Ditto.
5937
5938 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
5939
5940         PR target/44588
5941         * config/i386/i386.md (extract_code): New.
5942         (<u>divmodqi4): Likewise.
5943         (divmodhiqi3): Likewise.
5944         (udivmodhiqi3): Likewise.
5945         (<u>divqi3): Remvoved.
5946
5947 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
5948
5949         PR middle-end/44492
5950         * recog.h (struct recog_data): Add is_asm field.
5951         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
5952         present in constraints of inline-asm operand and memory operand
5953         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
5954         (extract_insn): Initialize recog_data.is_asm.
5955         * doc/md.texi (Constraints): Document operand side-effect rules.
5956
5957 2010-06-24  Andi Kleen  <ak@linux.intel.com>
5958
5959         * c-parser.c (c_parser_conditional_expression): Call
5960         warn_for_omitted_condop.
5961         * doc/invoke.texi: Document omitted condop warning.
5962
5963 2010-06-24  Nick Clifton<nickc@redhat.com>
5964
5965         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
5966         insn in the sequence is a jump insn before setting its label.
5967
5968 2010-06-24  Alan Modra  <amodra@gmail.com>
5969
5970         * collect2.c (main): Match exactly --version and --help.
5971
5972 2010-06-24  DJ Delorie  <dj@redhat.com>
5973
5974         * config/m32c/m32c-pragma.c: Don't include rtl.h.
5975
5976 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
5977
5978         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
5979         using X87MODEF mode iterator.
5980         (pushsf splitter): Macroize splitter using P mode iterator.
5981         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
5982         mode iterator.
5983
5984         (*movxf_internal): Rename from *movxf_integer.
5985         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
5986         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
5987         (*movdf_internal): Rename from *movdf_integer.
5988         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
5989         (*movsf_internal): Rename from *movdf_1.
5990
5991 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
5992
5993         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
5994         (const_gimple_seq_node): Removed typedefs.
5995
5996         * gimple.h (gimple_seq_node_d, gimple_seq_node)
5997         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
5998
5999 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
6000
6001         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
6002         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
6003         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
6004         and CODE_FOR_vec_extract_lo_v4df.
6005
6006         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
6007         Changed to define_insn_and_split.
6008         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
6009         (vec_extract_lo_v16hi): Likewise.
6010         (vec_extract_lo_v32qi): Likewise.
6011         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6012         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
6013
6014 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
6015
6016         PR target/44640
6017         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
6018         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
6019         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
6020         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
6021         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
6022
6023         PR target/44640
6024         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
6025
6026         PR other/44644
6027         * df-core.c (struct df): Rename to df_d.
6028         * df.h (struct df): Likewise.
6029         * dse.h (struct df): Remove forward declaration.
6030         * recog.h (struct insn_data): Rename to:
6031         (struct_insn_data_d).  Adjusted all users.
6032
6033 2010-06-23  Arnaud Charlet  <charlet@adacore.com
6034
6035         PR ada/22220
6036         * doc/install.texi: Update requirements to build GNAT.
6037
6038 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
6039
6040         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
6041         enum type.
6042         (m68k_sched_attr_opx_type): Remove unreachable return.
6043         (m68k_sched_attr_opy_type): Likewise.
6044         (m68k_sched_attr_size): Likewise.
6045         (sched_get_opxy_mem_type): Likewise.
6046         (m68k_sched_attr_op_mem): Likewise.
6047
6048 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
6049
6050         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
6051         new statement and adjust VDEF only if necessary.  Remove superfluous
6052         call to maybe_clean_or_replace_eh_stmt.
6053         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
6054         copy the flags.
6055         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
6056         * tree-inline.c (copy_bb): ...and not there.
6057
6058 2010-06-22  Cary Coutant  <ccoutant@google.com>
6059
6060         * dwarf2out.c (is_nested_in_subprogram): New function.
6061         (should_move_die_to_comdat): Use it.
6062         (copy_ancestor_tree): Don't mark DIEs here.
6063         (copy_decls_walk): Start walk from root of newly-added tree;
6064         mark DIEs here instead.
6065
6066 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
6067
6068         * config/i386/i386.md (unit): Also check sseishft1.
6069
6070 2010-06-22  Jan Hubicka  <jh@suse.cz>
6071
6072         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
6073         enabled.
6074
6075 2010-06-22  Jan Hubicka  <jh@suse.cz>
6076
6077         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
6078         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
6079         Return true if something changed.
6080         * df.h (df_confluence_function_n): Return bool.
6081         * df-core.c (df_worklist_propagate_forward,
6082         df_worklist_propagate_backward): Track changes and ages.
6083         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
6084         track ages.
6085         * dse.c (dse_confluence_n): Return always true.
6086
6087 2010-06-22  Jan Hubicka  <jh@suse.cz>
6088
6089         * bitmap.c (bitmap_clear_bit): Micro optimize.
6090
6091 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
6092
6093         * config/i386/i386.md (SWI1248x): New mode iterator.
6094         (SWI48x): Ditto.
6095         (SWI12): Ditto.
6096         (SWI24): Ditto.
6097
6098         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
6099         SWI1248x mode iterator.
6100         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
6101         using SWI124 mode iterator.
6102         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
6103         mode iterator.
6104         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
6105         *pushdi2_prologue_rex64 using P mode iterator.
6106         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
6107         using SWI48 mode iterator.
6108         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
6109         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
6110         using SWI1248x mode iterator.
6111         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
6112         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
6113         SWI48 mode iterator.
6114         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
6115         iterator.
6116         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
6117         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
6118         SWI12 mode iterator.
6119         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
6120         SWI12 mode iterator.
6121         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
6122         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
6123         SWI24 mode iterator.
6124         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
6125         SWI48 mode iterator.
6126         (mov<mode>_insn_1): New expander.
6127         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
6128         using SWI48x mode iterator.
6129
6130         (*movoi_internal_avx): Rename from *movoi_internal.
6131         (*movti_internal_rex64): Rename from *movti_rex64.
6132         (*movti_internal_sse): Rename from *movti_sse.
6133         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
6134         (*movdi_internal): Rename from *movdi_2.
6135         (*movsi_internal): Rename from *movsi_1.
6136         (*movhi_internal): Rename from *movhi_1.
6137         (*movqi_internal): Rename from *movqi_1.
6138
6139         (insv): Update the call to gen_movsi_insv_1 for rename.
6140         * config/i386/i386.c (promote_duplicated_reg): Ditto.
6141
6142 2010-06-22  Jan Hubicka  <jh@suse.cz>
6143
6144         * passes.c (execute_function_todo): Move call of statistics_fini_pass
6145         to ...
6146         (execute_todo) ... this one.
6147
6148 2010-06-22  Alan Modra  <amodra@gmail.com>
6149
6150         PR target/44364
6151         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6152         * caller-save.c (insert_restore, insert_save): Use non-validate
6153         form of adjust_address.
6154
6155 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6156
6157         PR target/39690
6158         * config/pa/pa.c (override_options): Disable
6159         -freorder-blocks-and-partition.
6160
6161 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
6162
6163         PR target/44615
6164         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
6165
6166         * config/i386/i386.md (type): Add sseishft1
6167
6168         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
6169         (ppro_insn_load): Likewise.
6170         (ppro_insn_store): Likewise.
6171         (ppro_insn_both): Likewise.
6172
6173         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
6174         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
6175         for type.
6176         (*vec_extractv2di_1_avx): Likewise.
6177         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
6178         type.  Remove atom_unit.
6179         (*vec_extractv2di_1_sse2): Likewise.
6180
6181 2010-06-21  DJ Delorie  <dj@redhat.com>
6182
6183         * diagnostic.h (diagnostic_classification_change_t): New.
6184         (diagnostic_context): Add history and push/pop list.
6185         (diagnostic_push_diagnostics): Declare.
6186         (diagnostic_pop_diagnostics): Declare.
6187         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
6188         from pragmas in a history chain instead of the global table.
6189         (diagnostic_push_diagnostics): New.
6190         (diagnostic_pop_diagnostics): New.
6191         (diagnostic_report_diagnostic): Scan history chain to find state
6192         of diagnostics as of the diagnostic location.
6193         * opts.c (set_option): Pass UNKNOWN_LOCATION to
6194         diagnostic_classify_diagnostic.
6195         (enable_warning_as_error): Likewise.
6196         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
6197         use in the history chain.
6198         * doc/extend.texi: Document pragma GCC diagnostic changes.
6199
6200 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
6201
6202         * dwarf2out.c (add_linkage_name): New function.  Don't add
6203         anything to DW_TAG_member DIEs.
6204         (add_name_and_src_coords_attributes): Use it.
6205         (gen_variable_die): Call it for C++ static data members if
6206         specification is DW_TAG_member.
6207
6208         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
6209         C++ char16_t and char32_t.
6210
6211         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
6212         * genattrtab.c: Include vecprim.h.
6213         (cached_attrs, cached_attr_count, attrs_seen_once,
6214         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
6215         attrs_cached_after): New variables.
6216         (find_attrs_to_cache): New function.
6217         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
6218         (write_test_expr): Add attrs_cached argument, return it too,
6219         attempt to cache non-const attributes used more than once in
6220         a single case handling.
6221         (write_attr_get): Use find_attrs_to_cache, for caching candidates
6222         emit cached_* variables.  Adjust write_attr_set callers.
6223         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
6224         to find attributes that should be cached in this block.  Adjust
6225         write_test_expr callers.
6226         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
6227         callers.
6228         (make_automaton_attrs): Adjust write_test_expr caller.
6229
6230         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
6231         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
6232         (make_automaton_attrs): If find_tune_attr returns non-NULL,
6233         write separate internal_dfa_insn_code_* and insn_default_latency_*
6234         functions for each attribute's value and emit init_sched_attrs
6235         function and function pointers.
6236         * genattr.c (const_attrs, reservations): New variables.
6237         (gen_attr): Add const attributes to const_attrs vector.
6238         (check_tune_attr, find_tune_attr): New functions.
6239         (main): Add reservations to reservations vector.  If find_tune_attr
6240         returns true, add prototype for init_sched_attrs and make
6241         internal_dfa_insn_code and insn_default_latency function pointers,
6242         otherwise define init_sched_attrs as dummy macro.
6243         * cfgexpand.c: Include insn-attr.h.
6244         (gimple_expand_cfg): Call init_sched_attrs.
6245
6246         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
6247
6248         PR target/44575
6249         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
6250         va_arg from a set of register save slots into a temporary,
6251         if the container is bigger than type size, do the copying
6252         using smaller mode or using memcpy.
6253
6254         PR bootstrap/44426
6255         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
6256         prototype.
6257         (sel_print_to_dot): Remove macro.
6258         (sel_print): Likewise.  New prototype.
6259         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
6260         (sel_print): New function.
6261
6262 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6263
6264         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
6265         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
6266
6267 2010-06-21  Nick Clifton  <nickc@redhat.com>
6268
6269         * config/rx/rx.h (PTRDIFF_TYPE): Define.
6270         (SMALL_REGISTER_CLASS): Define (to zero).
6271         (PRINT_OPERAND): Delete.
6272         (PRINT_OPERAND_ADDRESS): Delete.
6273         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
6274         (rx_print_operand_address): Delete prototype.
6275         * config/rx/rx.c (rx_print_operand): Make static.
6276         Allow %H and %L to handle CONST_DOUBLEs.
6277         (rx_print_operand_address): Make static.
6278         (rx_gen_move_template): Rename local variable 'template' to
6279         out_template.
6280         (rx_function_arg): Do not pass unknown sized objects in registers.
6281         (TARGET_PRINT_OPERAND): Define.
6282         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6283
6284 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6285
6286         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
6287
6288 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
6289
6290         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
6291         stack-alignment for simple leaf-functions.
6292
6293 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
6294
6295         * doc/install.texi: Document bootstrap-lto.
6296
6297 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
6298
6299         PR debug/44248
6300         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
6301         (input_function): Drop them here, if VTA is disabled.
6302
6303 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
6304
6305         PR target/44546
6306         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
6307         New predicate.
6308         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
6309         ix86_swapped_fp_comparsion_operator instead of
6310         ix86_fp_comparison_operator.
6311
6312         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
6313         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
6314         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
6315         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
6316         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
6317         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
6318
6319 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
6320
6321         PR other/32998
6322         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
6323         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
6324         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
6325         (decode_cmdline_option): Update for this return value.  Set
6326         orig_option_with_args_text field.  Set arg field for unknown
6327         options.  Make static.
6328         (decode_cmdline_options_to_array): New.
6329         (prune_options): Update handling of find_opt return value.
6330         * opts.c (read_cmdline_option): Take decoded option.  Return void.
6331         (read_cmdline_options): Take decoded options.
6332         (decode_options): Add parameters for decoded options.  Use
6333         decode_cmdline_options_to_array.  Use decoded options for -O
6334         scan.  Use integral_argument for -O parameters.  Update call to
6335         read_cmdline_options.
6336         (enable_warning_as_error): Update handling of find_opt return value.
6337         * opts.h: Update comment on unknown options.
6338         (struct cl_decoded_option): Update comments on opt_index and arg.
6339         Add orig_option_with_args_text.
6340         (decode_cmdline_option): Remove.
6341         (decode_cmdline_options_to_array): Declare.
6342         (decode_options): Update prototype.
6343         * toplev.c (save_argv): Remove.
6344         (save_decoded_options, save_decoded_options_count): New.
6345         (read_integral_parameter): Remove.
6346         (print_switch_values): Use decoded options.
6347         (toplev_main): Don't set save_argv.  Update call to decode_options.
6348         * toplev.h (read_integral_parameter): Remove.
6349         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
6350
6351 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
6352
6353         PR target/44072
6354         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
6355         immediate.
6356         * constraints.md (Pw, Px): New constraints.
6357         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
6358
6359 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
6360
6361         * config/i386/sse.md (fma4modesuffixf4): Removed.
6362         (ssemodesuffixf2s): Likewise.
6363         (ssemodesuffixf4): Likewise.
6364         (ssemodesuffixf2c): Likewise.
6365         (ssescalarmodesuffix2s): Likewise.
6366         (avxmodesuffixf2c): Likewise.
6367         (ssemodesuffix): New.
6368         (ssescalarmodesuffix): Likewise.
6369         Update patterns with ssemodesuffix and ssescalarmodesuffix.
6370
6371 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
6372
6373         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
6374
6375 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6376
6377         * stor-layout.c (debug_rli): Remove unused local variables.
6378
6379 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
6380
6381         PR rtl-optimization/40900
6382         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
6383         original expression for later reuse.
6384         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
6385         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
6386
6387 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
6388
6389         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
6390         double_int_fits_in_uhwi_p): Implement as static inline.
6391         (double_int_xor): New inline function.
6392         (double_int_lrotate, double_int_rrotate, double_int_max,
6393         double_int_umax, double_int_smax, double_int_min, double_int_umin,
6394         double_int_smin): Declare.
6395         (lrotate_double, rrotate_double): Remove declaration.
6396         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
6397         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
6398         (double_int_lrotate, double_int_rrotate, double_int_max,
6399         double_int_umax, double_int_smax, double_int_min, double_int_umin,
6400         double_int_smin): New function.
6401         * fold-const.c (int_const_binop): Clean up, use double_int_*
6402         functions.
6403         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
6404         double_int_* and immed_double_int_const functions.
6405
6406 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
6407
6408         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
6409         * function.c (types_used_by_cur_var_decl): Likewise.
6410         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
6411
6412 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
6413
6414         * tree.h (record_layout_info): Change type of pending_statics field
6415         to a VEC.
6416         * stor-layout.c (start_record_layout): Store NULL into
6417         pending_statics.
6418         (debug_rli): Call debug_vec_tree instead of debug_tree.
6419         (place_field): Likewise.
6420         (finish_record_layout): Likewise.
6421
6422 2010-06-18  Alan Modra  <amodra@gmail.com>
6423
6424         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
6425
6426 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6427
6428         PR target/43740
6429         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
6430         for SET source operand from SET destination operand.
6431
6432 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
6433
6434         PR rtl-optimization/39871
6435         * reload1.c (init_eliminable_invariants): For flag_pic, disable
6436         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
6437         (function_invariant_p): Rule out a plus of frame or arg pointer with
6438         a SYMBOL_REF.
6439         * ira.c (find_reg_equiv_invariant_const): Likewise.
6440
6441 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
6442
6443         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
6444         print_operand_address and puts to output the operand for CONST.
6445
6446 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
6447
6448         PR debug/44572
6449         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
6450         hook.
6451
6452 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6453
6454         * v850-protos.h (print_operand): Delete.
6455         (print_operand_address): Delete.
6456         * v850.h (PRINT_OPERAND): Delete.
6457         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6458         (PRINT_OPERAND_ADDRESS): Delete.
6459         * v850.c (print_operand_address): Rename to...
6460         (v850_print_operand_address): ...this.  Make static. Call
6461         v850_print_operand.
6462         (print_operand): Rename to...
6463         (v850_print_operand): ...this.  Make static.  Call
6464         v850_print_operand_address.
6465         (v850_print_operand_punct_valid_p): New function.
6466         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6467         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6468
6469 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6470
6471         * config/sh/sh-protos.h (print_operand): Delete.
6472         (print_operand_address): Delete.
6473         * config/sh/sh.h (PRINT_OPERAND): Delete.
6474         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6475         (PRINT_OPERAND_ADDRESS): Delete.
6476         * config/sh/sh.c (sh_print_operand_address): Make static.
6477         (sh_print_operand): Make static.  Call sh_print_operand_address
6478         and sh_print_operand.
6479         (sh_print_operand_punct_valid_p): New function.
6480         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6481         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6482
6483 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6484
6485         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
6486         (mcore_print_operand_address): Delete.
6487         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
6488         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6489         (PRINT_OPERAND_ADDRESS): Delete.
6490         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
6491         (mcore_print_operand): Make static.
6492         (mcore_print_operand_punct_valid_p): New function.
6493         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
6494         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6495
6496 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6497
6498         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
6499         (print_operand_address): Delete.
6500         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
6501         (PRINT_OPERAND_ADDRESS): Delete.
6502         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
6503         static.
6504         (m68hc11_print_operand): Make static.
6505         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6506
6507 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6508
6509         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
6510         (m32r_print_operand_address): Delete.
6511         * config/m32r/m32r.h (m32r_punct_chars): Delete.
6512         (PRINT_OPERAND): Delete.
6513         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6514         (PRINT_OPERAND_ADDRESS): Delete.
6515         * config/m32r/m32r.c (m32r_punct_chars): Make static.
6516         (m32r_print_operand_address): Make static.
6517         (m32r_print_operand): Make static.
6518         (m32r_print_operand_punct_valid_p): New function.
6519         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6520         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6521
6522 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6523
6524         * config/iq2000/iq2000-protos.h (print_operand): Delete.
6525         (print_operand_address): Delete.
6526         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
6527         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6528         (PRINT_OPERAND_ADDRESS): Delete.
6529         (iq2000_print_operand_punct): Delete.
6530         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
6531         (iq2000_print_operand_address): Make static.
6532         (iq2000_print_operand): Make static.
6533         (iq2000_print_operand_punct_valid_p): New function.
6534         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6535         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6536
6537 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6538
6539         * config/frv/frv-protos.h (frv_print_operand): Delete.
6540         (frv_print_operand_address): Delete.
6541         * config/frv/frv.h (PRINT_OPERAND): Delete.
6542         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6543         (PRINT_OPERAND_ADDRESS): Delete.
6544         * config/frv/frv.c (frv_print_operand_address): Make static.
6545         (frv_print_operand): Make static.
6546         (frv_print_operand_punct_valid_p): New function.
6547         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6548         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6549
6550 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
6551
6552         * tree.h (vec_member): Declare.
6553         * tree.c (vec_member): Define.
6554
6555 2010-06-17  Richard Guenther  <rguenther@suse.de>
6556
6557         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
6558         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
6559
6560 2010-06-17  Richard Guenther  <rguenther@suse.de>
6561
6562         * tree-inline.c (declare_return_variable): Remove bogus code.
6563
6564 2010-06-17  Richard Guenther  <rguenther@suse.de>
6565
6566         * gimplify.c (gimplify_bind_expr): Always promote complex
6567         and vector variables to registers if possible.
6568
6569 2010-06-17  Richard Guenther  <rguenther@suse.de>
6570
6571         * expr.c (get_inner_reference): Use double_int for bit_offset
6572         calculation.
6573
6574 2010-06-16  DJ Delorie  <dj@redhat.com>
6575
6576         * common.opt (-fstrict-volatile-bitfields): new.
6577         * doc/invoke.texi: Document it.
6578         * fold-const.c (optimize_bit_field_compare): For volatile
6579         bitfields, use the field's type to determine the mode, not the
6580         field's size.
6581         * expr.c (expand_assignment): Likewise.
6582         (get_inner_reference): Likewise.
6583         (expand_expr_real_1): Likewise.
6584         * expmed.c (store_fixed_bit_field): Likewise.
6585         (extract_bit_field_1): Likewise.
6586         (extract_fixed_bit_field): Likewise.
6587
6588 2010-06-16  Richard Guenther  <rguenther@suse.de>
6589
6590         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
6591
6592 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
6593
6594         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
6595         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
6596         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
6597         * debug.c: Likewise.
6598         * sdbout.c: Likewise.
6599         * vmsdbgout.c: Likewise.
6600         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
6601         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
6602         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
6603         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
6604         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
6605         * dwarf2out.c (dw_fde_struct): New fields
6606         dw_fde_vms_{end,begin}_prologue.
6607         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
6608         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
6609         (dwarf2out_vms_end_prologue): New function.
6610         (dwarf2out_vms_begin_epilogue): New function.
6611         (dw_val_struct): New value dw_val_class_vms_delta.
6612         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
6613         begin_epilogue for VMS.
6614         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
6615         new static functions.
6616         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
6617         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
6618         static functions.
6619         (print_die): New case dw_val_class_vms_delta.
6620         (attr_checksum): Likewise.
6621         (same_dw_val_p: Likewise.
6622         (size_of_die): Likewise.
6623         (value_format): Likewise.
6624         (output_die): Likewise.
6625         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
6626         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
6627         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
6628         dwarf2out_cfi_begin_epilogue
6629         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
6630
6631 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
6632
6633         * config/cris/cris-protos.h (cris_print_operand): Delete.
6634         (cris_print_operand_address): Delete.
6635         * config/cris/cris.h (PRINT_OPERAND): Delete.
6636         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6637         (PRINT_OPERAND_ADDRESS): Delete.
6638         * config/cris/cris.c (cris_print_operand_address): Make static.
6639         (cris_print_operand): Make static.
6640         (cris_print_operand_punct_valid_p): New function.
6641         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6642         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6643
6644 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
6645
6646         * config/arm/arm-protos.h (arm_print_operand): Delete.
6647         (arm_print_operand_address): Delete.
6648         * config/arm/arm.h (PRINT_OPERAND): Delete.
6649         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6650         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
6651         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
6652         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
6653         (arm_print_operand): Make static.
6654         (arm_print_operand_punct_valid_p): New function.
6655         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6656         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6657
6658 2010-06-16  Nick Clifton  <nickc@redhat.com>
6659
6660         * config/rx/constraints.md (NEGint4): New constraint.
6661         * config/rx/rx.md (attr cc): Add set_zsc.
6662         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
6663         initialised.
6664         (cmpsf): Likewise.
6665         (call_internal): Clobber the cc0 register.
6666         (call_value_internal): Likewise.
6667         (cstoresi4): Likewise.
6668         (movsieq): Likewise.
6669         (movsine): Likewise.
6670         (addsi3): Add alternative to handle small negative constants.
6671         (sunsi3): Likewise.
6672         (addsi3): Do not set the O bit in the cc0 register.
6673         (adddi3): Likewise.
6674         (subsi3): Likewise.
6675         (subdi3): Likewise.
6676         (andsi3): Reorder alternatives to prefer shorter forms.
6677         (mulsi3): Likewise.
6678         (iorsi3): Likewise.
6679         (negsi2): Note that the cc0 flags are set.
6680         (rotlsi3): Note that only the Z and S bits are set in cc0.
6681         (lshrsi3): Likewise.
6682         (ashlsi3): Likewise.
6683         (subsf3): Use %Q for the MEM operand.
6684         (fix_truncsfsi2): Likewise.
6685         (floatsisf2): Likewise.
6686         (bitset): Remove early clobber from destination.
6687         (bitset_in_memory): Likewise.
6688         (lrintsf2): Clobber the cc0 register.
6689         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
6690         (rx_print_operand): Handle %N.
6691
6692 2010-06-16  Jan Hubicka  <jh@suse.cz>
6693
6694         * df-core.c (df_compact_blocks): Free problem_temps vector.
6695
6696 2010-06-16  Martin Jambor  <mjambor@suse.cz>
6697
6698         PR tree-optimization/43905
6699         * tree-sra.c: Include tree-inline.h.
6700         (create_abstract_origin): Removed.
6701         (modify_function): Version the call graph node instead of creating
6702         abstract origins and dealing with same_body aliases.
6703         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
6704         function is versionable.
6705         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
6706
6707 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
6708
6709         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
6710         (CHOOSE_DYNAMIC_LINKER): Update.
6711
6712 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
6713
6714         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
6715         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
6716         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
6717         *prefetch_3dnow_rex.
6718
6719 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
6720
6721         * target.h (struct asm_out):Add declare_constant_name field.
6722         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6723         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
6724         * output.h (default_asm_declare_constant_name): Declare.
6725         (assemble_label): Update prototype.
6726         * varasm.c (assemble_constant_contents): Use
6727         targetm.asm_out.declare_constant_name target hook.
6728         (assemble_label): Add 'file' argument.
6729         (default_asm_declare_constant_name): New function.
6730         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
6731         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
6732         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
6733
6734         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
6735         * config/darwin.c (darwin_asm_declare_constant_name): New function.
6736         (machopic_output_indirection): Update assemble_label argument list.
6737         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
6738         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6739
6740 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
6741
6742         PR middle-end/44391
6743         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6744         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
6745
6746 2010-06-15  Richard Guenther  <rguenther@suse.de>
6747
6748         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
6749
6750 2010-06-15  Paul Brook  <paul@codesourcery.com>
6751
6752         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
6753         hard-float ABI.
6754
6755 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
6756
6757         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
6758         don't get a vector type for output.
6759
6760 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
6761
6762         PR fortran/44536
6763         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
6764         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
6765         (LANG_HOOKS_DECLS): Add it.
6766         * gimplify.c (omp_notice_variable): Call
6767         lang_hooks.decls.omp_report_decl.
6768
6769 2010-06-15  Martin Jambor  <mjambor@suse.cz>
6770
6771         PR lto/44464
6772         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
6773         on the newly dead SSA name.
6774
6775 2010-06-15  Alan Modra  <amodra@gmail.com>
6776
6777         * doc/invoke.texi: Add mcmodel to powerpc options.
6778         * configure.ac: Add HAVE_LD_LARGE_TOC test.
6779         * configure: Regenerate.
6780         * config.in: Regenerate.
6781         * config/rs6000/linux64.opt (mcmodel): New.
6782         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
6783         (TARGET_CMODEL, SET_CMODEL): Define.
6784         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
6785         select CMODEL_MEDIUM default.
6786         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
6787         (TARGET_CMODEL): Define default.
6788         * config/rs6000/rs6000.c (cmodel): New variable.
6789         (rs6000_explicit_options): Add cmodel field.
6790         (rs6000_handle_option): Handle -mcmodel.
6791         (create_TOC_reference): Add largetoc_reg param.  Generate high,
6792         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
6793         (rs6000_delegitimize_address): Recognise new toc reference rtl
6794         and minimal-toc rtl.
6795         (rs6000_legitimize_reload_address): Handle new toc references.
6796         (print_operand_address): Handle legitimate_constant_pool_address_p
6797         match before lo_sum.
6798         (rs6000_eliminate_indexed_memrefs): Tidy.
6799         (rs6000_emit_move): Tweak threshold for inlining constants.
6800         Keep rs6000_emit_allocate_stack large stack frame offsets
6801         loaded into r0 inline.
6802         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
6803         (tocrel_base, tocrel_offset): New variables.
6804         (toc_relative_expr_p): Set them here.
6805         (print_operand_address): Skip over any offset on constant pool address.
6806         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
6807         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
6808         (offsettable_ok_by_alignment): New function.
6809         (rs6000_emit_move): Address suitably aligned local symbol_refs
6810         relative to the toc pointer for -mcmodel=medium.
6811         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
6812         strict param.  Allow lo_sum version of addressing.  Verify reg
6813         used for -mminimal-toc and -mcmodel != small.  Update all callers.
6814         * config/rs6000/constraints.md: Update for above change.
6815         * config/rs6000/predicates.md: Likewise.
6816         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
6817         code.
6818         (tls_gd): Split for -mcmodel=medium/large.
6819         (tls_gd_high, tls_gd_low): New.
6820         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
6821         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
6822         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
6823         (largetoc_high, largetoc_low): New.
6824         (cmptf_internal2): Add clobber.
6825         * config/rs6000/rs6000-protos.h: Update.
6826
6827 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
6828
6829         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
6830         true if no prefetch is going to be generated for a given group.
6831         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
6832         estimate the prefetch_count.
6833         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
6834         prefetch count by considering the unroll_factor and prefetch_mod
6835         for is_loop_prefetching_profitable.
6836
6837 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
6838
6839         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
6840         anything if the argument is not a MEM.
6841
6842 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
6843
6844         PR debug/43650
6845         PR debug/44181
6846         PR debug/44247
6847         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
6848         debug stmts.
6849         (canonicalize_loop_ivs): Likewise.
6850
6851 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
6852
6853         PR debug/43656
6854         * haifa-sched.c (setup_insn_reg_pressure_info,
6855         update_register_pressure): Reject debug insns.
6856         (ready_sort): Don't setup reg pressure for debug insns.
6857         (schedule_insn): Don't update reg pressure for debug insns.
6858
6859 2010-06-14  Richard Guenther  <rguenther@suse.de>
6860
6861         * lto-streamer.c (cached_bp): Remove.
6862         (bitpack_delete): Likewise.
6863         (bitpack_create): Likewise.
6864         (bp_get_next_word): Likewise.
6865         (bp_pack_value, bp_unpack_value): Move ...
6866         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
6867         Re-implement.
6868         (struct bitpack_d): Likewise.
6869         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
6870         New inline functions.
6871         * lto-streamer-out.c (lto_output_bitpack): Remove.
6872         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
6873         (pack_value_fields): Adjust.
6874         (lto_write_tree): Likewise.
6875         (output_gimple_stmt): Likewise.
6876         (output_function): Likewise.
6877         * lto-streamer-in.c (input_gimple_stmt): Adjust.
6878         (input_function): Likewise.
6879         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
6880         (lto_input_bitpack): Remove.
6881         (lto_materialize_tree): Adjust.
6882         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
6883         * lto-cgraph.c (lto_output_edge): Adjust.
6884         (lto_output_node): Likewise.
6885         (lto_output_varpool_node): Likewise.
6886         (lto_output_ref): Likewise.
6887         (input_node): Likewise.
6888         (input_varpool_node): Likewise.
6889         (input_ref): Likewise.
6890         (input_edge): Likewise.
6891         (output_node_opt_summary): Likewise.
6892         (input_node_opt_summary): Likewise.
6893         * ipa-pure-const.c (pure_const_write_summary): Likewise.
6894         (pure_const_read_summary): Likewise.
6895         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
6896         (ipa_read_indirect_edge_info): Likewise.
6897         (ipa_write_node_info): Likewise.
6898         (ipa_read_node_info): Likewise.
6899
6900 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6901
6902         PR target/44534
6903         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
6904         (vec_extract_lo_v16hi): Likewise.
6905         (vec_extract_lo_v32qi): Likewise.
6906
6907 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
6908
6909         PR bootstrap/44426
6910         * tree.h (build_call_expr): Don't define as vararg macro, instead
6911         add a prototype.
6912         * builtins.c (build_call_nofold): Remove.
6913         (expand_builtin_int_roundingfn, expand_builtin_pow,
6914         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
6915         expand_builtin_memset_args, expand_builtin_strcmp,
6916         expand_builtin_strncmp, expand_builtin_memory_chk): Use
6917         build_call_nofold_loc instead of build_call_nofold.
6918         (build_call_expr): New function.
6919
6920         PR tree-optimization/44508
6921         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
6922         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
6923         don't eliminate trivially dead stmts.
6924         * tree-vrp.c (vrp_finalize): Pass false as last argument
6925         to substitute_and_fold.
6926         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
6927         to substitute_and_fold.
6928         * tree-ssa-ccp.c (ccp_finalize): Likewise.
6929
6930         PR bootstrap/44509
6931         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
6932
6933 2010-06-14  Ira Rosen  <irar@il.ibm.com>
6934
6935         PR tree-optimization/44507
6936         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
6937         to build initial vector for BIT_AND_EXPR.
6938         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6939
6940 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
6941
6942         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
6943         adjust z10prop set_attr.
6944
6945 2010-06-13  Jan Hubicka  <jh@suse.cz>
6946
6947         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
6948         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
6949         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
6950         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
6951         datastructure checks into checking asserts.
6952         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
6953         * tree-ssa-sccvn.c (VN_INFO): Likewise.
6954         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
6955         df_ref_create_structure): Likewise.
6956         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
6957         pool_free): Use gcc_checking_assert.
6958         * alias.c (get_alias_set): Likewise.
6959         * var-tracking.c (variable_htab_free, shared_hash_copy,
6960         canonicalize_values_mark, variable_merge_over_cur): Likewise.
6961         * lto-streamer.c (bp_unpack_value): Likewise.
6962
6963 2010-06-13  Richard Guenther  <rguenther@suse.de>
6964
6965         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
6966         Do not stream but initialize TYPE_CANONICAL to NULL.
6967         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
6968         * gimple.c (gimple_types_compatible_p): Disregard
6969         TYPE_STRUCTURAL_EQUALITY_P.
6970         (gimple_register_type): Use TYPE_CANONICAL as cache.
6971         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
6972         before registering common types.
6973         * config/i386/i386.c (ix86_function_arg_boundary): Do not
6974         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
6975         * tree.h (TYPE_CANONICAL): Clarify documentation.
6976
6977 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
6978
6979         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6980         LIBCALL_VALUE): Remove macros.
6981         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
6982         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6983         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6984         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
6985         (ia64_function_value): Make static. Handle receiving the function
6986         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
6987
6988 2010-06-12  Jan Hubicka  <jh@suse.cz>
6989
6990         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
6991         at correct place.
6992
6993 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
6994
6995         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
6996
6997 2010-06-12  Jan Hubicka  <jh@suse.cz>
6998
6999         * df-core.c (df_clear_bb_info): New function.
7000         (df_set_blocks): bb_info is always allocated.
7001         (df_get_bb_info): Use block_info_elt_size.
7002         (df_set_bb_info): Likewise.
7003         (df_compact_blocks): Update for new block_info.
7004         (grow_bb_info): New function.
7005         * df-problems.c (df_grow_bb_info): Move to df-core.c
7006         (df_rd_set_bb_info): Remove.
7007         (df_rd_free_bb_info): Do not free block pool.
7008         (df_rd_alloc): Do not create pool, use check for
7009         obstack presence instead of NULL pointer for new blocks.
7010         (df_rd_free): DO not free alloc pool; clear block_info.
7011         (problem_RD): Add size of block info structure.
7012         (df_lr_set_bb_info): Remove.
7013         (df_lr_free_bb_info): Do not free block pool.
7014         (df_lr_alloc): Do not create pool, use check for
7015         obstack presence instead of NULL pointer for new blocks.
7016         (df_lr_free): DO not free alloc pool; clear block_info.
7017         (problem_LR): Add size of block info structure.
7018         (df_live_set_bb_info): Remove.
7019         (df_live_free_bb_info): Do not free block pool.
7020         (df_live_alloc): Do not create pool, use check for
7021         obstack presence instead of NULL pointer for new blocks.
7022         (df_live_free): DO not free alloc pool; clear block_info.
7023         (problem_LIVE): Add size of block info structure.
7024         (problem_CHAIN): Add size of block info structure.
7025         (df_byte_lr_set_bb_info): Remove.
7026         (df_byte_lr_free_bb_info): Do not free block pool.
7027         (df_byte_lr_alloc): Do not create pool, use check for
7028         obstack presence instead of NULL pointer for new blocks.
7029         (df_byte_lr_free): DO not free alloc pool; clear block_info.
7030         (problem_BYTE_LR): Add size of block info structure.
7031         (problem_NOTE): Add size of block info structure.
7032         (df_byte_MD_set_bb_info): Remove.
7033         (df_byte_MD_free_bb_info): Do not free block pool.
7034         (df_byte_MD_alloc): Do not create pool, use check for
7035         obstack presence instead of NULL pointer for new blocks.
7036         (df_byte_MD_free): DO not free alloc pool; clear block_info.
7037         (problem_BD): Add size of block info structure.
7038         * df-scan.c (df_scan_free_internal): Free block pool.
7039         (df_scan_set_bb_info): Remove.
7040         (df_scan_free_bb_info): Check for artificial_defs instead
7041         of bb_info being non-NULL.
7042         (df_scan_alloc): DO not create df_scan_block pool.
7043         (problem_SCAN): Set size of block info.
7044         (df_bb_refs_record): Do not allocate bb_info.
7045         * df.h (df_problem): Add block_info_elt_size.
7046         (struct dataflow): Change block_info to void *.
7047         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
7048         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
7049         in-line structures.
7050
7051 2010-06-12  Jan Hubicka  <jh@suse.cz>
7052
7053         PR tree-optimize/44485
7054         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
7055         containing use of return value of noreturn function.
7056
7057 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
7058
7059         * targhooks.c (default_function_value): Don't use
7060         FUNCTION_OUTGOING_VALUE.
7061         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
7062         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
7063
7064 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
7065
7066         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
7067         Add crtfastmath.o to extra_parts.
7068         * config/mips/crtfastmath.c: New.
7069         * config/mips/linux.h (ENDFILE_SPEC): New.
7070
7071 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
7072
7073         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
7074         old_type in parameter.
7075         (gcc_type_for_value): Update call to gcc_type_for_interval.
7076         (compute_type_for_level_1): Renamed compute_type_for_level.
7077         Update call to gcc_type_for_interval.
7078
7079 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7080
7081         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
7082         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
7083
7084 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7085
7086         * opts-common.c: Include options.h.
7087         (integral_argument): Move from opts.c.
7088         (decode_cmdline_option): New.  Based on read_cmdline_option.
7089         * opts.c (integral_argument): Move to opts-common.c.
7090         (read_cmdline_option): Move most contents to
7091         decode_cmdline_option.  Use %qs in diagnostics.
7092         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
7093         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
7094         decode_cmdline_option): New.
7095
7096 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7097
7098         PR target/44481
7099         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
7100         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
7101         (partiysi2_cmp): Ditto.
7102         (*partiyhi2_cmp): Ditto.
7103         (*parityqi2_cmp): Remove.
7104
7105 2010-06-11  Jan Hubicka  <jh@suse.cz>
7106
7107         * bitmap.h (bmp_iter_next_bit): New.
7108         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
7109
7110 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
7111             Eric Botcazou  <ebotcazou@adacore.com>
7112
7113         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
7114         computed cost.
7115
7116 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7117
7118         * config/i386/i386.md (unspec): New define_c_enum.
7119         (unspecv): Ditto.
7120
7121 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
7122
7123         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
7124
7125 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
7126
7127         PR middle-end/44483
7128         * tree-if-conv.c (bb_predicate_s): New struct.
7129         (bb_predicate_p): New.
7130         (bb_has_predicate): New.
7131         (bb_predicate): New.
7132         (set_bb_predicate): New.
7133         (bb_predicate_gimplified_stmts): New.
7134         (set_bb_predicate_gimplified_stmts): New.
7135         (add_bb_predicate_gimplified_stmts): New.
7136         (init_bb_predicate): New.
7137         (free_bb_predicate): New.
7138         (is_predicated): Use bb_predicate.
7139         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
7140         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
7141         before processing their successors.
7142         (clean_predicate_lists): Removed.
7143         (find_phi_replacement_condition): Use bb_predicate.
7144         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
7145         computations.
7146         (insert_gimplified_predicates): New.
7147         (combine_blocks): Call insert_gimplified_predicates.
7148         (tree_if_conversion): Call free_bb_predicate instead of
7149         clean_predicate_lists.
7150
7151 2010-10-11  Paul Brook  <paul@codesourcery.com>
7152
7153         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
7154         * config/arm/arm.c (all_architectures): Change v7e-m default to
7155         cortexm4.
7156         * config/arm/arm-cores.def: Add cortex-m4.
7157         * config/arm/arm-tune.md: Regenerate.
7158
7159 2010-06-11  Jan Hubicka  <jh@suse.cz>
7160
7161         * ipa-pure-const.c (special_builtlin_state): New function.
7162         (check_call): Use it instead of special casign BUILT_IN_RETURN.
7163         (propagate_pure_const): Use it.
7164
7165 2010-06-11  Jan Hubicka  <jh@suse.cz>
7166
7167         * df-problems.c (df_live_scratch): Convert to bitmap_head.
7168         (df_live_alloc): Initialize df_live_scratch when initializing
7169         problem_data.
7170         (df_live_transfer_function): Update uses of df_live_scratch.
7171         (df_live_free): Free problem_data; clear df_live_scratch before
7172         releasing the obstack.
7173         (df_md_free): Free problem data.
7174
7175 2010-06-11  Jan Hubicka  <jh@suse.cz>
7176
7177         * doc/invoke.texi (Wsuggest-attribute): Document.
7178         (Wmissing-noreturn): Remove.
7179         * ipa-pure-const.c (warn_function_noreturn): New function.
7180         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
7181         warn_missing_noreturn.
7182         * common.opt (Wsuggest-attribute=noreturn): New.
7183         * tree-flow.h (warn_function_noreturn): Declare.
7184         * tree-cfg.c (execute_warn_function_noreturn): Use
7185         warn_function_noreturn.
7186         (gate_warn_function_noreturn): New.
7187         (pass_warn_function_noreturn): Update.
7188
7189 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7190
7191         * c-typeck.c (handle_warn_cast_qual): Add loc
7192         parameter. Improve warning message.
7193         (build_c_cast): Pass location to handle_warn_cast_qual.
7194
7195 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7196
7197         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
7198         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
7199         insn mnemonic.
7200         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
7201
7202 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
7203
7204         Fix bootstap on mips
7205         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
7206         be naming typedefs.
7207
7208 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
7209
7210         * system.h (helper_const_non_const_cast): New inline for
7211         gcc version <= 4.0.
7212         (CONST_CAST2): For gcc version <= 4.0 use
7213         new helper to do const/non-const casting.
7214
7215 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7216
7217         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
7218         * Makefile.in (OBJS-common): Include insn-enums.o.
7219         (insn-enums.o): New rule.
7220         (simple_generated_c): Add insn-enums.c.
7221         (build/genenums.o): New rule.
7222         (genprogmd): Add "enums".
7223         * genconstants.c (print_enum_type): Declare a C string array
7224         for each enum.
7225         * genenums.c: New file.
7226         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
7227         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
7228         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
7229
7230 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7231
7232         * doc/md.texi (define_enum_attr): Document.
7233         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
7234         * read-md.h (lookup_enum_type): Declare.
7235         * read-md.c (lookup_enum_type): New function.
7236         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
7237         * genattrtab.c (attr_desc): Add an enum_name field.
7238         (evaluate_eq_attr): Take the associated attribute as argument.
7239         Get the enum prefix from the enum_name field, if defined.
7240         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
7241         (simplify_test_exp): Pass attr to evaluate_eq_attr.
7242         (add_attr_value): New function, split out from...
7243         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
7244         (write_test_expr): Pass attr to evaluate_eq_attr.
7245         (write_attr_get): Use the enum_name as the enum tag, if defined.
7246         (write_attr_valueq): Use the enum_name as a prefix, if defined.
7247         (find_attr): Initialize enum_name.
7248         (main): Handle DEFINE_ENUM_ATTR.
7249         * gensupport.c (process_rtx): Likewise.
7250         * config/mips/mips.h (mips_tune_attr): Delete.
7251         * config/mips/mips.md (cpu): Use define_attr_enum.
7252
7253 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7254
7255         * doc/md.texi (define_c_enum, define_enum): Document.
7256         * read-md.h (md_constant): Add a parent_enum field.
7257         (enum_value, enum_type): New structures.
7258         (upcase_string, traverse_enum_types): Declare.
7259         * read-md.c (enum_types): New variable.
7260         (upcase_string, add_constant): New functions.
7261         (handle_constants): Don't create the hash table here.
7262         Use add_constant.
7263         (traverse_md_constants): Don't check for a null md_constants.
7264         (decimal_string, handle_enum, traverse_enum_types): New functions.
7265         (read_md_files): Initialize md_constants and md_enums.
7266         * genconstants.c (print_md_constant): Ignore info argument.
7267         Only print constants that belong to no enum.
7268         (print_enum_type): New function.
7269         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
7270         for each defined enum type.
7271         * config/mips/mips.md (processor): New define_enum.
7272         (unspec): New define_c_enum.
7273         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
7274         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
7275         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
7276         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
7277         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
7278         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
7279         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
7280         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
7281         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
7282         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
7283         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
7284         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
7285         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
7286         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
7287         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
7288         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
7289         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
7290         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
7291         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
7292         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
7293         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
7294         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
7295         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7296         (UNSPEC_RDDSP): Move to mips-dsp.md.
7297         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
7298         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
7299         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
7300         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
7301         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
7302         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
7303         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
7304         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
7305         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
7306         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
7307         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
7308         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
7309         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
7310         Moved to mips-dspr2.md.
7311         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
7312         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
7313         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
7314         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
7315         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
7316         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
7317         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
7318         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
7319         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
7320         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
7321         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
7322         UNSPEC_LOONGSON_PSADBH)
7323         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
7324         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
7325         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
7326         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7327         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7328         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7329         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
7330         (cpu): Update comment.
7331         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
7332         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
7333         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
7334         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
7335         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
7336         UNSPEC_LOONGSON_PCMPEQ)
7337         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
7338         UNSPEC_LOONGSON_PINSR_0)
7339         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
7340         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
7341         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
7342         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
7343         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
7344         UNSPEC_LOONGSON_PSADBH)
7345         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
7346         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
7347         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
7348         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7349         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7350         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7351         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
7352         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
7353         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
7354         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
7355         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
7356         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
7357         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
7358         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
7359         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
7360         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
7361         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
7362         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
7363         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
7364         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
7365         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
7366         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
7367         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
7368         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
7369         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
7370         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
7371         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7372         (UNSPEC_RDDSP): Moved from mips.md.
7373         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
7374         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
7375         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
7376         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
7377         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
7378         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
7379         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
7380         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
7381         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
7382         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
7383         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
7384         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
7385         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
7386         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
7387         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
7388         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
7389         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
7390         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
7391         (UNSPEC_SCC): Moved from mips.md.
7392         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
7393         "processor_type" to "processor".
7394         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
7395         * config/mips/mips.h (processor_type): Delete.
7396         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
7397         "processor_type" to "processor".
7398
7399 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7400
7401         * configure.ac (tm_include_list): Add insn-constants.h.
7402         * configure: Regenerate.
7403         * Makefile.in (GTM_H): Move insn-constants.h here from...
7404         (TM_H): ...here.
7405         * mkconfig.sh: Remove special handling for insn-constants.h.
7406
7407 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7408
7409         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
7410         (BUILD_MD): ...this new variable.
7411         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
7412         that include the old contents of simple_generated_h and
7413         simple_generated_c.
7414         (simple_generated_h, simple_generated_c): Include them.  Add
7415         insn-constants.h.
7416         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
7417         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
7418         Remove these dependencies from the main rule and include
7419         insn-conditions.md in the command line only if it appears
7420         in the dependency list.
7421         (insn-constants.h, s-constants): Delete.
7422         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
7423         or gensupport.h.
7424         (build/genmddeps.o): Likewise.
7425         (genprogrtl): New variable that contains everything from genprogmd
7426         except mddeps and constants.
7427         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
7428         depend on $(BUILD_MD)
7429         (genprog): New variable.  Make these programs depend on
7430         $(BUILD_ERRORS).
7431         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
7432         (main): Use read_md_files instead of init_rtx_reader_args.
7433         * genconstants.c: As for genmddeps.c.
7434         * read-md.h (read_skip_construct): Declare.
7435         * read-md.c (read_skip_construct): New function.
7436         (handle_file): Allow a null handle_directive, skipping the
7437         construct if so.
7438         (parse_include): Update the comment accordingly.
7439
7440 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7441
7442         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
7443         * genmddeps.c: Include read-md.h.
7444         (main): Call init_rtx_reader_args instead of init_md_reader_args.
7445         * genattr.c (main): Likewise.
7446         * genattrtab.c (main): Likewise.
7447         * genautomata.c (main): Likewise.
7448         * gencodes.c (main): Likewise.
7449         * genconditions.c (main): Likewise.
7450         * genconfig.c (main): Likewise.
7451         * genconstants.c (main): Likewise.
7452         * genemit.c (main): Likewise.
7453         * genextract.c (main): Likewise.
7454         * genflags.c (main): Likewise.
7455         * genopinit.c (main): Likewise.
7456         * genoutput.c (main): Likewise.
7457         * genpeep.c (main): Likewise.
7458         * genrecog.c (main): Likewise.
7459         * genpreds.c (main): Likewise.
7460         * gensupport.h (in_fname): Move to read-md.h.
7461         (init_md_reader_args_cb): Rename to...
7462         (init_rtx_reader_args_cb): ...this and return a bool.
7463         (init_md_reader_args): Rename to...
7464         (init_rtx_reader_args): ...this and return a bool.
7465         (include_callback): Move to read-md.h.
7466         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
7467         (file_name_list, first_dir_md_include): Move to read-md.c
7468         (first_bracket_include): Delete unused variable.
7469         (last_dir_md_include): Move to read-md.c.
7470         (process_include): Delete, moving code to read-md.c:handle_include.
7471         (process_rtx): Don't handle INCLUDE.
7472         (save_string): Delete.
7473         (rtx_handle_directive): New function.
7474         (init_md_reader_args_cb): Rename to...
7475         (init_rtx_reader_args_cb): ...this and return a boolean success value.
7476         Use read_md_args.
7477         (init_md_reader_args): Rename to...
7478         (init_rtx_reader_args): ...this and return a boolean success value.
7479         * rtl.def (INCLUDE): Delete.
7480         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
7481         argument.
7482         * read-rtl.c (read_conditions): Don't gobble ')' here.
7483         (read_mapping): Likewise.
7484         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
7485         Handle top-level non-rtx constructs here rather than in read_rtx_1.
7486         Store the whole queue in *X.  Remove call to init_md_reader.
7487         (read_rtx_1): Rename to...
7488         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
7489         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
7490         here.
7491         (read_nested_rtx): New function.  Handle (nil) here rather than
7492         in read_rtx_code.
7493         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
7494         gobble ')' here.
7495         * read-md.h (directive_handler_t): New type.
7496         (in_fname, include_callback): Moved from read-md.h.
7497         (read_constants, init_md_reader): Delete.
7498         (read_md_files): Declare.
7499         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
7500         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
7501         from gensupport.c.
7502         (read_constants): Rename to...
7503         (handle_constants): ...this.  Don't gobble ')' here.
7504         (handle_include, handle_file, handle_toplevel_file)
7505         (parse_include): New functions, mostly taken from gensupport.c.
7506         (init_md_reader): Subsume into...
7507         (read_md_files): ...this new function.
7508
7509 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7510
7511         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
7512         (unread_char): Decrement read_md_lineno after putting back '\n'.
7513         * read-md.c (fatal_with_file_and_line): Push back any characters
7514         that we decide not to add to the context.
7515         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
7516         fatal_expected_char in cases where '/' ends a line (for example).
7517         (read_name): Don't increment read_md_lineno here.
7518         (read_escape): Likewise.
7519         (read_quoted_string): Likewise.
7520         (read_braced_string): Likewise.
7521
7522 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7523
7524         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
7525         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
7526         * genconstants.c: Include read-md.h.
7527         * read-rtl.c (md_constants): Move to read-md.c.
7528         (md_name): Move to read-md.h.
7529         (initialize_iterators): Use leading_string_hash instead of def_hash
7530         and leading_string_eq_p instead of def_name_eq_p.
7531         (read_name): Move to read-md.c.
7532         (def_hash, def_name_eq_p): Delete.
7533         (read_constants, traverse_md_constants): Move to read-md.c.
7534         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
7535         * read-md.h: Include hashtab.h.
7536         (md_name): Moved from read-rtl.c.
7537         (md_constant): Moved from read-md.h.
7538         (leading_string_hash, leading_string_eq_p, read_name)
7539         (read_constants, traverse_md_constants): Declare.
7540         * read-md.c (md_constants): Moved from read-rtl.c.
7541         (leading_string_hash, leading_string_eq_p): New functions.
7542         (read_name, read_constants, traverse_md_constants): Moved from
7543         read-rtl.c.
7544
7545 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7546
7547         * read-rtl.c (md_name): New structure.
7548         (read_name): Take an md_name instead of a buffer pointer.
7549         Use the "string" field instead of strcpy when expanding constants.
7550         (read_constants): Remove the tmp_char argument.  Update the calls
7551         to read_name, using two local name buffers instead of the tmp_char
7552         argument.  Merge the constant-creation code.
7553         (read_conditions): Remove the tmp_char argument.  Update the calls
7554         to read_name, using a local name buffer instead of the tmp_char
7555         argument.
7556         (read_mapping): Replace tmp_char variable with a local name buffer.
7557         Update the calls to read_name.
7558         (read_rtx_1): Likewise.  Update the calls to read_constants and
7559         read_conditions.
7560
7561 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7562
7563         * Makefile.in (build/read-md.o): Depend on errors.h.
7564         * read-md.h (error_with_line): Declare.
7565         * read-md.c: Include errors.h.
7566         (message_with_line_1): New function, extracted from...
7567         (message_with_line): ...here.
7568         (error_with_line): New function.
7569         * genattrtab.c: If a call to message_with_line is followed by
7570         "have_error = 1;", replace both statements with a call to
7571         error_with_line.
7572         * genoutput.c: Likewise.
7573         * genpreds.c: Likewise.
7574         * genrecog.c: If a call to message_with_line is followed by
7575         "error_count++;", replace both statements with a call to
7576         error_with_line.
7577         (errorcount): Delete.
7578         (main): Don't check it.
7579         * gensupport.c: If a call to message_with_line is followed by
7580         "errors = 1;", replace both statements with a call to error_with_line.
7581         (errors): Delete.
7582         (process_define_cond_exec): Check have_error instead of errors.
7583         (init_md_reader_args_cb): Likewise.  Don't set errors.
7584
7585 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7586
7587         * read-md.h (read_md_file): Declare.
7588         (read_char, unread_char): New functions.
7589         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
7590         (read_quoted_string, read_string): Remove FILE * argument.
7591         * read-md.c (read_md_file): New variable.
7592         (read_md_filename, read_md_lineno): Update comments and remove
7593         unnecessary initialization.
7594         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
7595         (read_escape, read_quoted_string, read_braced_string, read_string):
7596         Remove FILE * argument.  Update calls accordingly, using read_char
7597         and unread_char instead of getc and ungetc.
7598         * rtl.h (read_rtx): Remove FILE * argument.
7599         * read-rtl.c (iterator_group): Remove FILE * argument from
7600         "find_builtin".
7601         (iterator_traverse_data): Remove "infile" field.
7602         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
7603         (add_mapping, read_name, read_constants, read_conditions)
7604         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
7605         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
7606         Remove file arguments from all calls, using read_char and unread_char
7607         instead of getc and ungetc.
7608         * gensupport.c (process_include): Preserve read_md_file around
7609         the include.  Set read_md_file to the handle of the included file.
7610         Update call to read_rtx.
7611         (init_md_reader_args_cb): Set read_md_file to the handle of the file
7612         and remove local FILE *.  Update calls to read_rtx.
7613
7614 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7615
7616         * read-md.h (read_rtx_lineno): Rename to...
7617         (read_md_lineno): ...this.
7618         (read_rtx_filename): Rename to...
7619         (read_md_filename): ...this.
7620         (copy_rtx_ptr_loc): Rename to...
7621         (copy_md_ptr_loc): ...this.
7622         (print_rtx_ptr_loc): Rename to...
7623         (print_md_ptr_loc): ...this.
7624         * read-md.c: Likewise.  Update references after renaming.
7625         (string_obstack): Replace RTL with MD in comment.
7626         (set_rtx_ptr_loc): Rename to...
7627         (set_md_ptr_loc): ...this.
7628         (get_rtx_ptr_loc): Rename to...
7629         (get_md_ptr_loc): ...this.
7630         * genconditions.c: Update references after renaming.
7631         * genemit.c: Likewise.
7632         * genoutput.c: Likewise.
7633         * genpreds.c: Likewise.
7634         * gensupport.c: Likewise.
7635         * read-rtl.c: Likewise.
7636
7637 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
7638
7639         * Makefile.in (READ_MD_H): New variable.
7640         (BUILD_RTL): Add build/read-md.o.
7641         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
7642         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
7643         (build/genattrtab.o, build/genconditions.o build/genemit.o)
7644         (build/genextract.o, build/genflags.o, build/genoutput.o)
7645         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
7646         (build/read-md.o): New rule.
7647         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
7648         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
7649         * coretypes.h: ...here.
7650         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
7651         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
7652         * genattr.c: Include read-md.h.
7653         * genattrtab.c: Likewise.
7654         * genconditions.c: Likewise.
7655         * genemit.c: Likewise.
7656         * genextract.c: Likewise.
7657         * genflags.c: Likewise.
7658         * genoutput.c: Likewise.
7659         * genpreds.c: Likewise.
7660         * genrecog.c: Likewise.
7661         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
7662         (join_c_conditions, print_c_condition, read_rtx_filename)
7663         (read_rtx_lineno): Move to read-md.h.
7664         * read-rtl.c: Include read-md.h.
7665         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
7666         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
7667         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
7668         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
7669         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
7670         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
7671         (read_braced_string, read_string): Move to read-md.c.
7672         (read_rtx): Move some initialization to init_md_reader and call
7673         init_md_reader here.
7674         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
7675         Move to read-md.h.
7676         * gensupport.c: Include read-md.h.
7677         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
7678         * read-md.h, read-md.c: New files.
7679
7680 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
7681
7682         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7683         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7684         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
7685         * config/moxie/moxie.c (moxie_function_value): Make static.
7686         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
7687         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7688
7689 2010-06-10  Martin Jambor  <mjambor@suse.cz>
7690
7691         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
7692         * dbgcnt.def (tree_sra): New counter.
7693         * tree-sra.c: Include dbgcnt.h.
7694         (gate_intra_sra): Check tree_sra debug counter.
7695
7696 2010-06-10  Martin Jambor  <mjambor@suse.cz>
7697
7698         PR tree-optimization/44258
7699         * tree-sra.c (build_access_subtree): Return false iff there is a
7700         partial overlap.
7701         (build_access_trees): Likewise.
7702         (analyze_all_variable_accesses): Disqualify candidates if
7703         build_access_trees returns true for them.
7704
7705 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
7706
7707         PR debug/41371
7708         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
7709         tail-recurse into canonical node.  Fast-forward over
7710         non-canonical VALUEs.
7711
7712 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
7713
7714         PR boostrap/44470
7715         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
7716         (*addsi_1_zext) <TYPE_LEA>: Likewise.
7717         (add lea splitter): Likewise.
7718         (add_zext lea splitter): Likewise.
7719
7720 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
7721
7722         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
7723
7724 2010-06-10  Jan Hubicka  <jh@suse.cz>
7725
7726         * df-problems.c (df_live_problem_data): Add live_bitmaps.
7727         (df_live_alloc): Initialize problem data and live_osbtacks.
7728         (df_live_finalize): Remove obstack, problem data; do not
7729         clear all bitmaps.
7730         (df_live_top_dump, df_live_bottom_dump): Do not dump old
7731         data when not allocated.
7732         (df_live_verify_solution_start): Do not allocate problem data.
7733         (df_live_verify_solution_end): Check if out is allocated.
7734         (struct df_md_problem_data): New structure.
7735         (df_md_alloc): Allocate problem data.
7736         (df_md_free): Free problem data; do not clear bitmaps.
7737
7738 2010-06-10  Jan Beulich  <jbeulich@novell.com>
7739
7740         PR bootstrap/37304
7741         * configure.ac: Replace $() with ${} when intending to expand
7742         variables rather than invoking commands.
7743         * configure: Re-generate.
7744
7745 2010-06-10  Jan Hubicka  <jh@suse.cz>
7746
7747         PR rtl-optimization/44460
7748         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7749         TYPE_NEEDS_CONSTRUCTING sanity check.
7750
7751 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
7752
7753         * doc/include/fdl.texi: Move to GFDL version 1.3.
7754
7755         * doc/cpp.texi: Move to GFDL version 1.3.
7756         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
7757         * doc/gccint.texi: Move to GFDL version 1.3.
7758         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
7759         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
7760         * doc/invoke.texi: Move to GFDL version 1.3.
7761
7762 2010-06-09  Jan Hubicka  <jh@suse.cz>
7763
7764         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
7765         Break out from ...
7766         (propagate) ... here; swap the order.
7767
7768 2010-06-09  Jan Hubicka  <jh@suse.cz>
7769
7770         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
7771         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
7772         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
7773         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
7774
7775 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7776
7777         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
7778         Do not the gather memory reference in the outer loop if the step
7779         is not a constant.
7780
7781 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7782
7783         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
7784         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
7785         8 to 4.  Minor change of the related comments.
7786
7787 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7788
7789         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
7790         the scev analysis when the variable is not used outside the loop
7791         in a close phi node: call compute_overall_effect_of_inner_loop.
7792
7793 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7794
7795         * graphite-sese-to-poly.c (single_pred_cond): Renamed
7796         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
7797         (build_sese_conditions_before): Renamed call to single_pred_cond.
7798         (build_sese_conditions_after): Same.
7799
7800 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7801
7802         * graphite-poly.h: Fix comments and indentation.
7803         * graphite-sese-to-poly.c: Same.
7804         (build_sese_conditions_before): Compute stmt and gbb only when needed.
7805         * tree-chrec.c: Fix comments and indentation.
7806         (tree-ssa-loop-niter.c): Same.
7807
7808 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
7809
7810         PR rtl-optimization/42461
7811         * dce.c (deletable_insn_p): Return true for const or pure calls again.
7812         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
7813
7814 2010-06-09  Jan Hubicka  <jh@suse.cz>
7815
7816         * bitmap.c (bitmap_and): Walk array forward.
7817         (bitmap_and_compl_into): Likewise.
7818         (bitmap_xor): Likewise.
7819         (bitmap_xor_into):  Likewise.
7820         (bitmap_equal_p): Likewise.
7821         (bitmap_intersect_p): Likewise.
7822         (bitmap_intersect_compl_p): Likewise.
7823         (bitmap_ior_and_into): Likewise.
7824         (bitmap_elt_copy): Likewise.
7825         (bitmap_and_compl): Likewise.
7826         (bitmap_elt_ior): Likewise.
7827
7828 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
7829
7830         * opts-common.c (prune_options): Ensure replacement argv array
7831         is correctly terminated by a NULL entry.
7832
7833 2010-06-09  Jan Hubicka  <jh@suse.cz>
7834
7835         * cgraph.h (varpool_first_static_initializer,
7836         varpool_next_static_initializer): Make checking only when
7837         checking enabled.
7838         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
7839         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
7840         gcc_assert to gcc_checking_assert.
7841         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
7842         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
7843         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
7844         op_iter_init_phiuse, op_iter_init_phidef,
7845         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
7846         gcc_checking_assert.
7847         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
7848         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
7849         partition_is_global, live_on_entry, live_on_exit,
7850         live_merge_and_clear): Likewise.
7851         * system.h (gcc_checking_assert): New macro.
7852         * gimple.h (set_bb_seq): Use gcc_checking_assert.
7853
7854 2010-06-09  Jason Merrill  <jason@redhat.com>
7855
7856         * Makefile.in (TAGS): Collect tags info from c-family.
7857
7858 2010-06-09  Jan Hubicka  <jh@suse.cz>
7859
7860         * gimple.h (gcc_gimple_checking_assert): New macro.
7861         (gimple_set_def_ops, gimple_set_use_ops,
7862         gimple_set_vuse, gimple_set_vdef,
7863         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
7864         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
7865         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
7866         gimple_asm_output_op, gimple_asm_output_op_ptr,
7867         gimple_asm_set_output_op, gimple_asm_clobber_op,
7868         gimple_asm_set_clobber_op, gimple_asm_label_op,
7869         gimple_asm_set_label_op, gimple_try_set_kind,
7870         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
7871         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
7872         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
7873         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
7874         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
7875         gimple_omp_for_set_initial, gimple_omp_for_final,
7876         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
7877         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
7878         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
7879         conditional with ENABLE_GIMPLE_CHECKING.
7880         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
7881
7882 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
7883
7884         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
7885         (get_computation_cost_at): Use it.
7886         (determine_use_iv_cost_condition): Likewise.
7887         (determine_iv_cost): Likewise.
7888
7889 2010-06-09  Richard Guenther  <rguenther@suse.de>
7890
7891         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
7892         replace constants.
7893
7894 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
7895
7896         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
7897
7898 2010-06-09  Martin Jambor  <mjambor@suse.cz>
7899
7900         PR tree-optimization/44423
7901         * tree-sra.c (dump_access): Dump also grp_assignment_read.
7902         (analyze_access_subtree): Pass negative allow_replacements to children
7903         if the current type is scalar.
7904
7905 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7906
7907         PR testsuite/42843
7908         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
7909         * doc/plugins.texi (Plugin license check): Update information
7910         on type of plugin_is_GPL_compatible.
7911         * Makefile.in (PLUGINCC): Define as $(COMPILER).
7912         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
7913
7914 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
7915
7916         * config/arm/arm.c (thumb2_reorg): New function.
7917         (arm_reorg): Call it.
7918         * config/arm/thumb2.md (define_peephole2 for flag clobbering
7919         arithmetic operations): Delete.
7920
7921 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
7922
7923         PR target/44067
7924         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
7925         e500v2 target.
7926
7927 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7928
7929         PR plugins/44459
7930         * gcc-plugin.h: Encapsulate all declarations in extern "C".
7931
7932 2010-06-08  Jan Hubicka  <jh@suse.cz>
7933
7934         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
7935         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
7936
7937 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
7938
7939         PR tree-optimization/39874
7940         PR middle-end/28685
7941         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
7942         Declare.
7943         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
7944         same_bool_result_p): New.
7945         (and_var_with_comparison, and_var_with_comparison_1,
7946         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
7947         (or_var_with_comparison, or_var_with_comparison_1,
7948         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
7949         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
7950         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
7951         of combine_comparisons.
7952         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
7953
7954 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
7955
7956         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7957         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7958         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
7959         pdp11_function_value_regno_p): New functions.
7960         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7961         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7962
7963 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
7964
7965         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
7966         Thumb-2 in the MINUS case.
7967
7968 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7969
7970         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
7971
7972         * doc/gty.texi (GTY Options): Document typed GC allocation and
7973         variable_size GTY option.
7974
7975         * ggc-internal.h: New.
7976
7977         * ggc.h: Update copyright year.
7978         (digit_string): Move to stringpool.c.
7979         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
7980         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
7981         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
7982         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
7983         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
7984         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
7985         (ggc_force_collect, ggc_get_size, ggc_statistics)
7986         (ggc_print_common_statistics): Move to ggc-internal.h.
7987         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
7988         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
7989         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
7990         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
7991         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
7992         (ggc_alloc_zone_pass_stat): Remove.
7993         (ggc_internal_alloc_stat, ggc_internal_alloc)
7994         (ggc_internal_cleared_alloc_stat): New.
7995         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
7996         (ggc_internal_vec_alloc_stat)
7997         (ggc_internal_cleared_vec_alloc_stat)
7998         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
7999         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
8000         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
8001         (ggc_cleared_alloc_ptr_array_two_args): New.
8002         (htab_create_ggc, splay_tree_new_ggc): Redefine.
8003         (ggc_splay_alloc): Change the type of the first argument to
8004         enum gt_types_enum.
8005         (ggc_alloc_string): Make macro.
8006         (ggc_alloc_string_stat): New.
8007         (ggc_strdup): Redefine.
8008         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
8009         (ggc_alloc_rtvec_sized): New.
8010         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
8011         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
8012         (ggc_internal_cleared_alloc_zone_stat)
8013         (ggc_internal_zone_alloc_stat)
8014         (ggc_internal_zone_cleared_alloc_stat)
8015         (ggc_internal_zone_vec_alloc_stat)
8016         (ggc_alloc_zone_rtx_def_stat)
8017         (ggc_alloc_zone_tree_node_stat)
8018         (ggc_alloc_zone_cleared_tree_node_stat)
8019         (ggc_alloc_cleared_gimple_statement_d_stat): New.
8020
8021         * ggc-common.c: Include ggc-internal.h.
8022         (ggc_internal_cleared_alloc_stat): Rename from
8023         ggc_alloc_cleared_stat.
8024         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
8025         (ggc_calloc): Remove.
8026         (ggc_cleared_alloc_htab_ignore_args): New.
8027         (ggc_cleared_alloc_ptr_array_two_args): New.
8028         (ggc_splay_alloc): Add obj_type parameter.
8029         (init_ggc_heuristics): Formatting fixes.
8030
8031         * ggc-none.c: Update copyright year.
8032         (ggc_alloc_stat): Rename to ggc_alloc_stat.
8033         (ggc_alloc_cleared_stat): Rename to
8034         ggc_internal_cleared_alloc_stat.
8035         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8036
8037         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
8038         Remove references to ggc_alloc in comments.
8039         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
8040         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
8041         (new_ggc_zone, destroy_ggc_zone): Remove.
8042         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8043
8044         * ggc-zone.c: Include ggc-internal.h.  Remove references to
8045         ggc_alloc in comments.
8046         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
8047         (ggc_internal_alloc_zone_pass_stat): New.
8048         (ggc_internal_cleared_alloc_zone_stat): New.
8049         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
8050         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
8051         (new_ggc_zone, destroy_ggc_zone): Remove.
8052
8053         * stringpool.c: Update copyright year.  Include ggc-internal.h
8054         (digit_vector): Make static.
8055         (digit_string): Moved from ggc.h.
8056         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
8057         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
8058
8059         * Makefile.in (GGC_INTERNAL_H): New.
8060         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
8061         $(GGC_INTERNAL_H) to dependencies.
8062
8063         * gentype.c: Update copyright year.
8064         (walk_type): Accept variable_size GTY option.
8065         (USED_BY_TYPED_GC_P): New macro.
8066         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
8067         whitespace at the end of strings.
8068         (get_type_specifier, variable_size_p): New functions.
8069         (alloc_quantity, alloc_zone): New enums.
8070         (write_typed_alloc_def): New function.
8071         (write_typed_struct_alloc_def): Likewise.
8072         (write_typed_typed_typedef_alloc_def): Likewise.
8073         (write_typed_alloc_defns): Likewise.
8074         (output_typename, write_splay_tree_allocator_def): Likewise.
8075         (write_splay_tree_allocators): Likewise.
8076         (main): Call write_typed_alloc_defns and
8077         write_splay_tree_allocators.
8078
8079         * lto-streamer.h (lto_file_decl_data_ptr): New.
8080
8081         * passes.c (order): Define using cgraph_node_ptr.
8082
8083         * strinpool.c (struct string_pool_data): Declare nested_ptr using
8084         ht_identifier_ptr.
8085
8086         * gimple.h (union gimple_statement_d): Likewise.
8087
8088         * rtl.h (struct rtx_def): Likewise.
8089         (struct rtvec_def): Likewise.
8090
8091         * tree.h (union tree_node): Likewise.
8092
8093         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
8094
8095         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
8096
8097         * tree-scalar-evolution.c (scev_initialize): Likewise.
8098
8099         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
8100
8101         * dwarf2asm.c (dw2_force_const_mem): Likewise.
8102
8103         * omp-low.c (lower_omp_critical): Likewise.
8104
8105         * bitmap.h (struct bitmap_head_def): Update comment to not
8106         reference ggc_alloc.
8107
8108         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
8109
8110         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
8111
8112         * ipa-prop.c (duplicate_ggc_array): Rename to
8113         duplicate_ipa_jump_func_array.  Use typed GC allocation.
8114         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
8115
8116         * gimple.c (gimple_alloc_stat): Use
8117         ggc_alloc_cleared_gimple_statement_d_stat.
8118
8119         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
8120
8121         * tree.c (make_node_stat): Use
8122         ggc_alloc_zone_cleared_tree_node_stat.
8123         (make_tree_vec_stat): Likewise.
8124         (build_vl_exp_stat): Likewise.
8125         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
8126         (make_tree_binfo_stat): Likewise.
8127         (tree_cons_stat): Likewise.
8128
8129         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
8130         (shallow_copy_rtx_stat): Likewise.
8131         (make_node_stat): Likewise.
8132
8133         * lto-symtab.c: Fix comment.
8134
8135         * tree-cfg.c (create_bb): Update comment to not reference
8136         ggc_alloc_cleared.
8137         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
8138
8139         * varpool.c (varpool_node): Use typed GC allocation.
8140         (varpool_extra_name_alias): Likewise.
8141
8142         * varasm.c (emutls_decl): Likewise.
8143         (get_unnamed_section): Likewise.
8144         (get_noswitch_section): Likewise.
8145         (get_section): Likewise.
8146         (get_block_for_section): Likewise.
8147         (build_constant_desc): Likewise.
8148         (create_constant_pool): Likewise.
8149         (force_const_mem): Likewise.
8150
8151         * tree.c (build_vl_exp_stat): Likewise.
8152         (build_real): Likewise.
8153         (build_string): Likewise.
8154         (decl_debug_expr_insert): Likewise.
8155         (decl_value_expr_insert): Likewise.
8156         (type_hash_add): Likewise.
8157         (build_omp_clause): Likewise.
8158
8159         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
8160
8161         * tree-ssa.c (init_tree_ssa): Likewise.
8162
8163         * tree-ssa-structalias.c (heapvar_insert): Likewise.
8164
8165         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
8166
8167         * tree-ssa-loop-niter.c (record_estimate): Likewise.
8168
8169         * tree-ssa-alias.c (get_ptr_info): Likewise.
8170
8171         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
8172
8173         * tree-phinodes.c (allocate_phi_node): Likewise.
8174
8175         * tree-iterator.c (tsi_link_before): Likewise.
8176         (tsi_link_after): Likewise.
8177
8178         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
8179
8180         * tree-dfa.c (create_var_ann): Likewise.
8181
8182         * tree-cfg.c (create_bb): Likewise.
8183
8184         * toplev.c (alloc_for_identifier_to_locale): Likewise.
8185         (general_init): Likewise.
8186
8187         * stringpool.c (stringpool_ggc_alloc): Likewise.
8188         (gt_pch_save_stringpool): Likewise.
8189
8190         * sese.c (if_region_set_false_region): Likewise.
8191
8192         * passes.c (do_per_function_toporder): Likewise.
8193
8194         * optabs.c (set_optab_libfunc): Likewise.
8195         (set_conv_libfunc): Likewise.
8196
8197         * lto-symtab.c (lto_symtab_register_decl): Likewise.
8198
8199         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
8200         (input_eh_region): Likewise.
8201         (input_eh_lp): Likewise.
8202         (make_new_block): Likewise.
8203         (unpack_ts_real_cst_value_fields): Likewise.
8204
8205         * lto-section-in.c (lto_new_in_decl_state): Likewise.
8206
8207         * lto-cgraph.c (input_node_opt_summary): Likewise.
8208
8209         * loop-init.c (loop_optimizer_init): Likewise.
8210
8211         * lambda.h (lambda_vector_new): Likewise.
8212
8213         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
8214
8215         * ira.c (update_equiv_regs): Likewise.
8216
8217         * ipa.c (cgraph_node_set_new): Likewise.
8218         (cgraph_node_set_add): Likewise.
8219         (varpool_node_set_new): Likewise.
8220         (varpool_node_set_add): Likewise.
8221
8222         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
8223         (duplicate_ipa_jump_func_array): Likewise.
8224         (ipa_read_node_info): Likewise.
8225
8226         * ipa-cp.c (ipcp_create_replace_map): Likewise.
8227
8228         * integrate.c (get_hard_reg_initial_val): Likewise.
8229
8230         * gimple.c (gimple_alloc_stat): Likewise.
8231         (gimple_build_omp_for): Likewise.
8232         (gimple_seq_alloc): Likewise.
8233         (gimple_copy): Likewise.
8234
8235         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
8236         (gsi_insert_after_without_update): Likewise.
8237
8238         * function.c (add_frame_space): Likewise.
8239         (insert_temp_slot_address): Likewise.
8240         (assign_stack_temp_for_type): Likewise.
8241         (allocate_struct_function): Likewise.
8242         (types_used_by_var_decl_insert): Likewise.
8243
8244         * except.c (init_eh_for_function): Likewise.
8245         (gen_eh_region): Likewise.
8246         (gen_eh_region_catch): Likewise.
8247         (gen_eh_landing_pad): Likewise.
8248         (add_call_site): Likewise.
8249
8250         * emit-rtl.c (get_mem_attrs): Likewise.
8251         (get_reg_attrs): Likewise.
8252         (start_sequence): Likewise.
8253         (init_emit): Likewise.
8254
8255         * dwarf2out.c (new_cfi): Likewise.
8256         (queue_reg_save): Likewise.
8257         (dwarf2out_frame_init): Likewise.
8258         (new_loc_descr): Likewise.
8259         (find_AT_string): Likewise.
8260         (new_die): Likewise.
8261         (add_var_loc_to_decl): Likewise.
8262         (clone_die): Likewise.
8263         (clone_as_declaration): Likewise.
8264         (break_out_comdat_types): Likewise.
8265         (new_loc_list): Likewise.
8266         (loc_descriptor): Likewise.
8267         (add_loc_descr_to_each): Likewise.
8268         (add_const_value_attribute): Likewise.
8269         (tree_add_const_value_attribute): Likewise.
8270         (add_comp_dir_attribute): Likewise.
8271         (add_name_and_src_coords_attributes): Likewise.
8272         (lookup_filename): Likewise.
8273         (store_vcall_insn): Likewise.
8274         (dwarf2out_init): Likewise.
8275
8276         * dbxout.c (dbxout_init): Likewise.
8277
8278         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8279
8280         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8281
8282         * config/score/score7.c (score7_output_external): Likewise.
8283
8284         * config/score/score3.c (score3_output_external): Likewise.
8285
8286         * config/s390/s390.c (s390_init_machine_status): Likewise.
8287
8288         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
8289         (rs6000_init_machine_status): Likewise.
8290         (output_toc): Likewise.
8291
8292         * config/pa/pa.c (pa_init_machine_status): Likewise.
8293         (get_deferred_plabel): Likewise.
8294
8295         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
8296
8297         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
8298
8299         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
8300
8301         * config/mep/mep.c (mep_init_machine_status): Likewise.
8302         (mep_note_pragma_flag): Likewise.
8303
8304         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
8305
8306         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
8307
8308         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
8309
8310         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
8311         (i386_pe_maybe_record_exported_symbol): Likewise.
8312
8313         * config/i386/i386.c (get_dllimport_decl): Likewise.
8314         (ix86_init_machine_status): Likewise.
8315         (assign_386_stack_local): Likewise.
8316
8317         * config/frv/frv.c (frv_init_machine_status): Likewise.
8318
8319         * config/darwin.c (machopic_indirection_name): Likewise.
8320
8321         * config/cris/cris.c (cris_init_machine_status): Likewise.
8322
8323         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
8324
8325         * config/avr/avr.c (avr_init_machine_status): Likewise.
8326
8327         * config/arm/arm.c (arm_init_machine_status): Likewise.
8328
8329         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
8330         (alpha_need_linkage): Likewise.
8331         (alpha_use_linkage): Likewise.
8332
8333         * cgraph.c (cgraph_allocate_node): Likewise.
8334         (cgraph_create_edge_1): Likewise.
8335         (cgraph_create_indirect_edge): Likewise.
8336         (cgraph_add_asm_node): Likewise.
8337
8338         * cfgrtl.c (init_rtl_bb_info): Likewise.
8339
8340         * cfgloop.c (alloc_loop): Likewise.
8341         (rescan_loop_exit): Likewise.
8342
8343         * cfg.c (init_flow): Likewise.
8344         (alloc_block): Likewise.
8345         (unchecked_make_edge): Likewise.
8346
8347         * c-parser.c (c_parse_init): Likewise.
8348         (c_parse_file): Likewise.
8349
8350         * c-decl.c (bind): Likewise.
8351         (record_inline_static): Likewise.
8352         (push_scope): Likewise.
8353         (make_label): Likewise.
8354         (lookup_label_for_goto): Likewise.
8355         (finish_struct): Likewise.
8356         (finish_enum): Likewise.
8357         (c_push_function_context): Likewise.
8358
8359         * bitmap.c (bitmap_element_allocate): Likewise.
8360         (bitmap_gc_alloc_stat): Likewise.
8361
8362         * alias.c (record_alias_subset): Likewise.
8363         (init_alias_analysis): Likewise.
8364
8365 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
8366
8367         * fold-const.c (fold_comparison): Remove redundant parenthesis.
8368         * tree-inline.c (expand_call_inline): Pass translated return value of
8369         cgraph_inline_failed_string to diagnostic function.
8370
8371 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
8372             Shujing Zhao  <pearly.zhao@oracle.com>
8373
8374         PR c/37724
8375         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
8376         implicit bad conversions is initialization.
8377         (error_init): Use gmsgid instead of msgid for argument name and change
8378         the call for error.
8379         (pedwarn_init): Use gmsgid instead of msgid for argument name and
8380         change the call for pedwarn.
8381         (warning_init): Use gmsgid instead of msgid for argument name and
8382         change the call for warning.
8383
8384 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
8385
8386         * config/mips/mips-protos.h (mips_print_operand): Delete.
8387         (mips_print_operand_address): Delete.
8388         * config/mips/mips.h (mips_print_operand_punct): Delete.
8389         (PRINT_OPERAND): Delete.
8390         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8391         (PRINT_OPERAND_ADDRESS): Delete.
8392         * config/mips/mips.c (mips_print_operand_punct): Make static.
8393         (mips_print_operand_address): Make static.
8394         (mips_print_operand): Make static.  Call
8395         mips_print_operand_punct_valid_p.
8396         (mips_print_operand_punct_valid_p): New function.
8397         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8398         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8399
8400 2010-06-07  Jan Hubicka  <jh@suse.cz>
8401
8402         PR middle-end/44454
8403         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
8404         are allocated.
8405
8406 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8407
8408         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
8409         name of RECORD.
8410
8411 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8412
8413         * doc/sourcebuild.texi (Effective-Target Keywords, Other
8414         attributes): Document gas.
8415
8416 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
8417
8418         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
8419         <TYPE_LEA>: Split instruction.
8420         <default>: Remove alternative 2 handling.
8421         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
8422         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
8423         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
8424
8425         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
8426         (ashift_zext lea splitter): Use DImode for multiplication.
8427
8428         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
8429         to generate addition.
8430
8431 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
8432
8433         * common.opt (fira-verbose): Use Var.
8434         (fpcc-struct-return): Use Init instead of VarExists.
8435         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
8436         toplev.c.
8437         * flags.h (flag_signed_char, flag_short_enums,
8438         flag_pcc_struct_return, flag_ira_verbose,
8439         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
8440         * toplev.c (flag_detailed_statistics, flag_signed_char,
8441         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
8442         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
8443         * toplev.h (flag_crossjumping, flag_if_conversion,
8444         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
8445         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
8446         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
8447         flag_cprop_registers, time_report, flag_ira_loop_pressure,
8448         flag_ira_coalesce, flag_ira_move_spills,
8449         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
8450
8451 2010-06-07  Jan Hubicka  <jh@suse.cz>
8452
8453         * df-core.c (df_analyze_problem): Do verification after allocation.
8454
8455         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
8456         (df_lr_alloc): Initialize problem data; move bitmaps to
8457         lr_bitmaps obstack.
8458         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
8459         (df_lr_verify_solution_start): Do not initialize problem data;
8460         allocate bitmaps in lr_bitmaps.
8461         (df_lr_verify_solution_end): Do not free problem data.
8462
8463 2010-06-07  Jan Hubicka  <jh@suse.cz>
8464
8465         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
8466         if caller is noreturn.
8467         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
8468         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
8469         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
8470         * ipa-pure-const.c (check_decl): Add IPA parameter.
8471         (state_from_flags): New function.
8472         (better_state, worse_state): New functions.
8473         (check_call): When in IPA mode, do not care about callees.
8474         (check_load, check_store): Update.
8475         (check_ipa_load, check_ipa_store): New.
8476         (check_stmt): When in IPA mode, use IPA checkers.
8477         (analyze_function): Use state_from_flags.
8478         (propagate): Check indirect edges and references.
8479
8480 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
8481
8482         PR rtl-optimization/44404
8483         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
8484         of count_occurrences to see if it's safe to modify mem_insn.
8485
8486 2010-06-07  Richard Guenther  <rguenther@suse.de>
8487
8488         * gimplify.c (gimplify_cleanup_point_expr): For empty body
8489         and EH-only cleanup drop the cleanup instead of inserting it
8490         unconditionally.
8491
8492 2010-06-07  Ira Rosen  <irar@il.ibm.com>
8493
8494         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
8495         documentation.
8496         * targhooks.c (default_builtin_vectorization_cost): New function.
8497         * targhooks.h (default_builtin_vectorization_cost): Declare.
8498         * target.h (enum vect_cost_for_stmt): Define.
8499         (builtin_vectorization_cost): Change argument and comment.
8500         * tree-vectorizer.h: Remove cost model macros.
8501         * tree-vect-loop.c: Include target.h.
8502         (vect_get_cost): New function.
8503         (vect_estimate_min_profitable_iters): Replace cost model macros with
8504         calls to vect_get_cost.
8505         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
8506         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
8507         default implementation.
8508         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
8509         calls to target hook builtin_vectorization_cost.
8510         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
8511         Likewise.
8512         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
8513         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
8514         implementation to return costs.
8515         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
8516         * config/spu/spu.h: Remove vectorizer cost model macros.
8517         * config/i386/i386.h: Likewise.
8518         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
8519         a call to target hook builtin_vectorization_cost.
8520
8521 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
8522
8523         PR target/44319
8524         * config/i386/i386.c (override_options): Turn zee pass on for level 2
8525         and above and defer till target is known.
8526         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
8527         turn off otherwise.
8528
8529 2010-05-25  Jan Hubicka  <jh@suse.cz>
8530
8531         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
8532         (df_compact_blocks): Likewise.
8533         * df.h (struct df): Turn hardware_regs_used,
8534         regular_block_artificial_uses, eh_block_artificial_uses,
8535         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
8536         bitmap_head.
8537         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
8538         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
8539         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
8540         df_scan_blocks, df_insn_delete, df_insn_rescan,
8541         df_insn_rescan_debug_internal, df_insn_rescan_all,
8542         df_process_deferred_rescans, df_process_deferred_rescans,
8543         df_notes_rescan, df_get_call_refs, df_get_call_refs,
8544         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
8545         df_record_entry_block_defs, df_record_exit_block_uses,
8546         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
8547         df_scan_verify): Update.
8548
8549 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
8550
8551         PR c++/44188
8552         * c-common.c (is_typedef_decl): Move this definition ...
8553         * tree.c (is_typedef_decl): ... here.
8554         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8555         * c-common.h (is_typedef_decl): Move this declaration ...
8556         * tree.h (is_typedef_decl): ... here.
8557         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8558         * dwarf2out.c (is_naming_typedef_decl): New function.
8559         (gen_tagged_type_die): Split out of ...
8560         (gen_type_die_with_usage): ... this function. When an anonymous
8561         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8562         is emitted for the typedef.
8563         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8564         anonymous tagged types.
8565
8566 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8567
8568         PR c/20000
8569         * c-decl.c (grokdeclarator): Delete warning.
8570
8571 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
8572
8573         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
8574         newly built CALL_EXPR.
8575         * tree-profile.c (tree_profiling): Don't profile functions produced
8576         for built-in stuff.
8577
8578 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
8579
8580         PR bootstrap/44427
8581         PR bootstrap/44428
8582         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
8583         endianness-independent.
8584
8585 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
8586
8587         * c-common.c: Move to c-family/.
8588         * c-common.def: Likewise.
8589         * c-common.h: Likewise.
8590         * c-cppbuiltin.c: Likewise.
8591         * c-dump.c: Likewise.
8592         * c-format.c: Likewise.
8593         * c-format.h : Likewise.
8594         * c-gimplify.c: Likewise.
8595         * c-lex.c: Likewise.
8596         * c-omp.c: Likewise.
8597         * c.opt: Likewise.
8598         * c-opts.c: Likewise.
8599         * c-pch.c: Likewise.
8600         * c-ppoutput.c: Likewise.
8601         * c-pragma.c: Likewise.
8602         * c-pragma.h: Likewise.
8603         * c-pretty-print.c: Likewise.
8604         * c-pretty-print.h: Likewise.
8605         * c-semantics.c: Likewise.
8606         * stub-objc.c: Likewise.
8607
8608         * gengtype.c (get_file_langdir): Special-case files in c-family/.
8609         (get_output_file_with_visibility): Fix name for c-common.h.
8610         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
8611
8612         * c-tree.h: Update include path for moved files.
8613         * c-lang.c: Likewise.
8614         * c-lang.h: Likewise.
8615         * c-parser.c: Likewise.
8616         * c-convert.c: Likewise.
8617         * c-decl.c: Likewise.
8618         * c-objc-common.c: Likewise.
8619         * configure.ac: Make sure c-family/ exists in the build directory.
8620         * configure: Regenerate.
8621         * Makefile.in: Update paths for moved files.  Regroup files per
8622         location and update dependencies.  Move generated_files down after
8623         ALL_GTFILES_H.
8624
8625         * config/spu/spu-c.c: Update paths for moved files.
8626         * config/mep/mep-pragma.c: Likewise.
8627         * config/darwin-c.c: Likewise.
8628         * config/i386/msformat-c.c: Likewise.
8629         * config/i386/i386-c.c: Likewise.
8630         * config/avr/avr-c.c: Likewise.
8631         * config/sol2-c.c: Likewise.
8632         * config/ia64/ia64-c.c: Likewise.
8633         * config/rs6000/rs6000-c.c: Likewise.
8634         * config/arm/arm.c: Likewise.
8635         * config/arm/arm-c.c: Likewise.
8636         * config/h8300/h8300.c: Likewise.
8637         * config/v850/v850-c.c: Likewise.
8638
8639         * config/t-darwin: Fix dependencies for moved files.
8640         * config/t-sol2: Fix dependencies for moved files.
8641         * config/mep/t-mep: Fix dependencies for moved files.
8642         * config/ia64/t-ia64: Fix dependencies for moved files.
8643         * config/rs6000/t-rs6000: Fix dependencies for moved files.
8644         * config/v850/t-v850: Fix dependencies for moved files.
8645         * config/v850/t-v850e: Fix dependencies for moved files.
8646
8647         * config/m32c/m32c-pragma.c
8648
8649         * po/exgettext: Look in c-family/ also.
8650
8651 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
8652
8653         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
8654         (mark_control_dependent_edges_necessary): Call it instead of marking
8655         the last statement manually.
8656         (propagate_necessity): Likewise.
8657
8658 2010-06-05  Jan Hubicka  <jh@suse.cz>
8659
8660         * basic-block.h (compute_dominance_frontiers): Updated.
8661         (compute_idf): Likewise.
8662
8663         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
8664         for dominance frontiers.
8665         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
8666         (insert_updated_phi_nodes_for): Likewise.
8667         (update_ssa): Likewise.
8668         * cfganal.c (compute_dominance_frontiers_1): Likewise.
8669         (compute_dominance_frontiers): Likewise.
8670         (compute_idf): Likewise.
8671         * df-problems.c (df_md_local_compute): Likewise.
8672
8673 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
8674
8675         * target.h (struct gcc_target): Add memory_move_cost field.
8676         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
8677         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
8678         * targhooks.c (default_memory_move_cost): New function.
8679         * targhooks.h (default_memory_move_cost): Declare function.
8680         * reload.h (memory_move_cost): Declare.
8681         (memory_move_secondary_cost): Change type of 'in' argument to bool.
8682         * reginfo.c (memory_move_cost): New function.
8683         (memory_move_secondary_cost): Change type of 'in' argument to bool.
8684         * ira.h (ira_memory_move_cost): Update comment.
8685         * ira.c (ira_memory_move_cost): Update comment.
8686         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
8687         with memory_move_cost.
8688         * postreload.c (reload_cse_simplify_set): (Ditto.).
8689         * reload1.c (choose_reload_regs): (Ditto.).
8690         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
8691         (MEMORY_MOVE_COST):  Revise documentation.
8692
8693         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
8694         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
8695         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
8696         type of 'in' argument to bool.
8697         (TARGET_MEMORY_MOVE_COST): Define.
8698
8699 2010-06-05  Jan Hubicka  <jh@suse.cz>
8700
8701         * ipa-pure-const.c (propagate): Fix typo in handling of functions
8702         that cannot return.  Be more careful when merging the results with
8703         previously known ones.
8704
8705 2010-06-05  Matthias Klose  <doko@ubuntu.com>
8706
8707         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
8708         function to add the -iplugindir option.
8709         (find_plugindir_spec_function): Add new declaration and function.
8710         (static_spec_func): Use it for "find-plugindir".
8711
8712 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
8713
8714         PR c++/44361
8715         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
8716         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
8717         statement expression.
8718
8719 2010-06-05  Jan Hubicka  <jh@suse.cz>
8720
8721         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
8722         (df_rd_problem_data): Convert sparse_invalidated_by_call,
8723         dense_invalidated_by_call to bitmap head.
8724         (df_rd_alloc, df_rd_bb_local_compute_process_def,
8725         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
8726         df_rd_start_dump, df_lr_verify_transfer_functions,
8727         df_live_verify_transfer_functions, df_chain_create_bb,
8728         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
8729         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
8730         df_simulate_one_insn_forwards, df_md_alloc,
8731         df_md_bb_local_compute_process_def,
8732         df_md_bb_local_compute_process_def, df_md_local_compute,
8733         df_md_transfer_function df_md_free): Update.
8734
8735 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
8736
8737         PR c/44322
8738         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
8739         target type for ADDR_EXPR; require no changes to qualifiers except
8740         for function types.
8741         * c-tree.h (c_build_type_variant): Remove.
8742
8743 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8744
8745         * genautomata.c (get_excl_set): Do work per element, not per char.
8746         (check_presence_pattern_sets): Similar.
8747         (check_absence_pattern_sets): Similar.
8748
8749 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8750
8751         * genautomata.c (curr_state_pass_num): Delete.
8752         (min_issue_delay_pass_states): Delete.
8753         (min_issue_delay): Delete.
8754         (initiate_min_issue_delay_pass_states): Delete.
8755         (output_min_issue_delay_table): Compute min_issue_delay_vect
8756         using a breadth-first search variant.
8757         (output_tables): Don't call initiate_min_issue_delay_pass_states.
8758
8759 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
8760
8761         PR boostrap/44421
8762         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
8763         (df_byte_lr_bb_local_compute): Likewise.
8764
8765 2010-06-03  Jason Merrill  <jason@redhat.com>
8766
8767         Implement noexcept operator (5.3.7)
8768         * c-common.c (c_common_reswords): Add noexcept.
8769         * c-common.h (enum rid): Add RID_NOEXCEPT.
8770
8771 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
8772
8773         * config/darwin-driver.c (darwin_default_min_version): Use
8774         GCC-specific formats in diagnostics.
8775         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
8776         diagnostics.
8777         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
8778         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
8779         eval_spec_function, handle_braces, process_brace_body, main,
8780         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
8781         getenv_spec_function, compare_version_strings,
8782         version_compare_spec_function): Use GCC-specific formats in
8783         diagnostics.
8784
8785 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8786
8787         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
8788         that operand 0 and operand 1 are equal.
8789         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
8790         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
8791         and operand 1 are equal.
8792         <default>: Ditto.  Remove ??? comment.
8793         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
8794         and operand 1 are equal.
8795         <default>: Ditto.  Remove ??? comment.
8796         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
8797         are equal.
8798         (*add<mode>_4) <default>: Ditto.
8799         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
8800
8801 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
8802
8803         * config/i386/i386-protos.h (ix86_print_operand): Declare.
8804         * config/i386/i386.c (ix86_print_operand): Make non-static.
8805         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
8806         * output.h (output_operand): Declare.
8807         * final.c (output_operand): Make non-static.
8808
8809 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
8810
8811         PR rtl-optimization/44013
8812         * sched-deps.c (add_dependence_list_and_free): Don't free lists
8813         when processing debug insns.
8814
8815         PR debug/41371
8816         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
8817         recursing.  Check that recursion is bounded.  Rename inner var
8818         to avoid hiding incoming argument.
8819
8820 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8821
8822         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
8823         operands[2] == 255.
8824         (*addqi_3): Ditto.
8825         (*addqi_4): Ditto.
8826         (*addqi_5): Ditto.
8827         (*addqi_ext_1_rex64): Ditto.
8828         (*addqi_ext_1): Ditto.
8829
8830         (*addqi_4): Check for incdec_operand in QImode.
8831
8832         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
8833         using SWI mode iterator.
8834         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
8835         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
8836         mode iterator.
8837         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
8838         using SWI mode iterator.
8839
8840 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8841
8842         PR c/25880
8843         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
8844         * c-format.c (gcc_diag_flag_specs): Add hash.
8845         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
8846         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
8847         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
8848         pp_c_cv_qualifiers. Handle qualifiers spelling here.
8849         (pp_c_type_qualifier_list): Call the function above.
8850         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
8851         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
8852         (WARN_FOR_QUALIFIERS): New macro.
8853         (convert_for_assignment): Use it.
8854
8855 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
8856
8857         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
8858
8859 2010-06-04  Jan Hubicka  <jh@suse.cz>
8860
8861         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
8862         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
8863         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
8864         DF_BYTE_LR_OUT): Update for embedded bitmaps.
8865         * fwprop.c (single_def_use_enter_block): Likewise.
8866         * ddg.c (create_ddg_dep_from_intra_loop_link,
8867         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
8868         * loop-iv.c (latch_dominating_def): Likewise.
8869         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
8870         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
8871         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
8872         df_rd_transfer_function, df_rd_top_dump,
8873         df_rd_bottom_dump): Update.
8874         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
8875         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
8876         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
8877         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
8878         df_lr_verify_solution_start, df_lr_verify_solution_end,
8879         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
8880         df_live_free_bb_info, df_live_alloc, df_live_reset,
8881         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
8882         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
8883         df_live_verify_solution_start, df_live_verify_solution_end,
8884         df_live_verify_transfer_functions, df_chain_create_bb,
8885         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
8886         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8887         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8888         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
8889         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8890         df_byte_lr_transfer_function, df_byte_lr_top_dump,
8891         df_byte_lr_bottom_dump, df_create_unused_note,
8892         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
8893         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
8894         df_md_transfer_function, df_md_init, df_md_confluence_0,
8895         df_md_confluence_n,
8896         df_md_top_dump, df_md_bottom_dump): Update.
8897         (struct df_lr_problem_data): Embedd bitmap headers.
8898
8899 2010-06-04  Jan Hubicka  <jh@suse.cz>
8900
8901         * dce.c (dce_process_block): Do not re-scan already marked
8902         instructions.
8903
8904 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
8905
8906         PR rtl-optimization/39871
8907         PR rtl-optimization/40615
8908         PR rtl-optimization/42500
8909         PR rtl-optimization/42502
8910         * ira.c (init_reg_equiv_memory_loc: New function.
8911         (ira): Call it twice.
8912         * reload.h (calculate_elim_costs_all_insns): Declare.
8913         * ira-costs.c: Include "reload.h".
8914         (regno_equiv_gains): New static variable.
8915         (init_costs): Allocate it.
8916         (finish_costs): Free it.
8917         (ira_costs): Call calculate_elim_costs_all_insns.
8918         (find_costs_and_classes): Take estimated elimination costs
8919         into account.
8920         (ira_adjust_equiv_reg_cost): New function.
8921         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
8922         * reload1.c (init_eliminable_invariants, free_reg_equiv,
8923         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
8924         (elim_bb): New static variable.
8925         (reload): Move code out of here into init_eliminable_invariants and
8926         free_reg_equiv.  Call them.
8927         (calculate_elim_costs_all_insns): New function.
8928         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
8929         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
8930         but call note_reg_elim_costly if we turned a valid memory address
8931         into an invalid one.
8932         * Makefile.in (ira-costs.o): Depend on reload.h.
8933
8934 2010-06-04  Julian Brown  <julian@codesourcery.com>
8935
8936         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
8937         for pool ranges.
8938
8939 2010-06-04  Richard Guenther  <rguenther@suse.de>
8940
8941         PR lto/41584
8942         * cgraph.h (struct varpool_node): Add lto_file_data field.
8943         * lto-cgraph.c (input_varpool_node): Initialize it.
8944
8945 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8946
8947         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
8948         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
8949         predicate in "type" attribute calculation.
8950         (*addsi_1_zext): Ditto.
8951         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
8952         (*addsi_2_zext): Ditto.
8953         (*add<mode>_3): Ditto.
8954         (*addsi_3_zext): Ditto.
8955         (*add<mode>_5): Ditto.
8956
8957 2010-06-03  Jan Hubicka  <jh@suse.cz>
8958
8959         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
8960         of bitmap_bit_p.
8961         * cfganal.c (compute_dominance_frontiers_1): Likewise.
8962
8963 2010-06-03  Jan Hubicka  <jh@suse.cz>
8964
8965         * df-problems.c (df_create_unused_note, df_note_bb_compute):
8966         micro-optimize the checks when to add new note.
8967
8968 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
8969
8970         * final.c (output_asm_insn): Call
8971         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
8972         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
8973         (output_address): Call targetm.asm_out.print_operand_address.
8974         Update comments.
8975         * target.h (struct gcc_target): Add print_operand,
8976         print_operand_address, and print_operand_punct_valid_p fields.
8977         * targhooks.h (default_print_operand): Declare.
8978         (default_print_operand_address): Declare.
8979         (default_print_operand_punct_valid_p): Declare.
8980         * targhooks.c (default_print_operand): Define.
8981         (default_print_operand_address): Define.
8982         (default_print_operand_punct_valid_p): Define.
8983         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
8984         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
8985         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
8986         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
8987         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
8988         * vmsdbgout.c (addr_const_to_string): Update comment.
8989         * config/i386/i386.c (print_operand): Rename to...
8990         (ix86_print_operand): ...this.  Make static.
8991         (print_operand_address): Rename to...
8992         (ix86_print_operand_address): ...this.  Make static.  Call
8993         ix86_print_operand instead of PRINT_OPERAND.
8994         (ix86_print_operand_punct_valid_p): New function.
8995         (TARGET_PRINT_OPERAND): Define.
8996         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8997         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8998         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
8999         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9000         (PRINT_OPERAND): Delete.
9001         (PRINT_OPERAND_ADDRESS): Delete.
9002         * config/i386/i386-protos.h (print_operand): Delete prototype.
9003         (print_operand_address): Delete prototype.
9004
9005 2010-06-03  Richard Guenther  <rguenther@suse.de>
9006
9007         PR tree-optimization/44403
9008         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9009         Preserve pointer qualifiers.
9010         (vect_create_data_ref_ptr): Likewise.
9011
9012 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
9013
9014         PR c++/44294
9015         * defaults.h (MAX_FIXED_MODE_SIZE): New.
9016
9017         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
9018
9019 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
9020
9021         PR debug/44375
9022         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
9023         return false if merging the bbs would lead to goto_locus
9024         location being lost from the IL.
9025
9026 2010-06-03  Jan Hubicka  <jh@suse.cz>
9027             Jakub Jelinek  <jakub@redhat.com>
9028
9029         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
9030         set->regs[i] is NULL or has just one entry.
9031
9032 2010-06-03  Jan Hubicka  <jh@suse.cz>
9033
9034         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
9035         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
9036
9037 2010-06-03  Paul Brook  <paul@codesourcery.com>
9038
9039         * config/arm/arm.c (FL_TUNE): Define.
9040         (arm_default_cpu, arm_cpu_select): Remove.
9041         (all_cores): Populate core field.
9042         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
9043         (arm_find_cpu): New function.
9044         (arm_handle_option): Lookup cpu/architecture names.
9045         (arm_override_options): Cleanup mcpu/march/mtune handling.
9046         (arm_file_start): Ditto.
9047
9048 2010-06-03  Alan Modra  <amodra@gmail.com>
9049
9050         PR target/44169
9051         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
9052         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
9053         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
9054         (rs6000_emit_load_toc_table): Likewise.
9055
9056 2010-06-02  Jan Hubicka  <jh@suse.cz>
9057
9058         * passes.c (init_optimization_passes): Put ipa reference
9059         after ipa pure-const.
9060
9061 2010-06-02  Jan Hubicka  <jh@suse.cz>
9062
9063         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
9064         calls_read_all and calls_write_all.
9065         (get_reference_optimization_summary): Fix formatting.
9066         (is_proper_for_analysis): Check that decl is not readonly.
9067         (propagate_bits): Check CONST/PURE/noreturn flags.
9068         (ipa_init): Move all_module_statics to optimization_summary_obstack.
9069         (analyze_function): Ignore indirect edges.
9070         (copy_global_bitmap): For all module statics, do nothing.
9071         (generate_summary): Do not print calls_read_all/calls_write_all.
9072         (read_write_all_from_decl): Take node as argument; check
9073         cgraph_node_cannot_return.
9074         (propagate): Reorganize read_all/write_all computation;
9075         check indirect edges; check ecf flags; use all_module_statics
9076         in the results; do not free all_module_statics.
9077         (stream_out_bitmap): Handle all_module_statics.
9078         (ipa_reference_write_optimization_summary): Likewise; use
9079         varpool/cgraph encoders to get boundaries.
9080         (ipa_reference_read_optimization_summary): Read in all_module_statics;
9081         use it when possible.
9082
9083 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9084
9085         PR target/44218
9086         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
9087         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
9088
9089         * doc/extend.texi (powerpc builtins): Document vec_recip,
9090         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
9091
9092         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
9093         (rs6000_emit_swrsqrt): Ditto.
9094         (rs6000_emit_swdivsf): Delete.
9095         (rs6000_emit_swdivdf): Ditto.
9096         (rs6000_emit_swrsqrtsf): Ditto.
9097
9098         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
9099         describe the reciprocal estimate support for each type.
9100         (recip_options): Map -mrecip=<opt> into option bits.
9101         (gen_2arg_fn_t): New typedef for binary rtx gen function.
9102         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
9103         reciprocal estimate instructions.
9104         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
9105         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
9106         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
9107         cost information if -mdebug=cost or -mdebug=reg.
9108         (rs6000_override_options): Set -mrecip-precision for power6, and
9109         power7 machines.  If -mvsx or -mdfp, enable various options that
9110         came in previous instruction set ISAs, unless the option was
9111         explicitly disabled by the command line option.  Parse
9112         -mrecip=<opt> options.
9113         (rs6000_builtin_vectorized_function): Add support for vectorizing
9114         the reciprocal estimate builtins and expansions.
9115         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
9116         (bdesc_2arg): Add reciprocal estimate builtins.
9117         (bdesc_1arg): Add reciprocal square root estimate builtins.
9118         (rs6000_expand_builtin): Rewrite to use a switch statement,
9119         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
9120         (rs6000_init_builtins): Create declarations for reciprocal
9121         estimate builtins.
9122         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
9123         sized, prefer traditional floating point registers, if integer
9124         vector types, prefer altivec registers.  Don't actually look at
9125         the memory address any more.
9126         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
9127         builtins.
9128         (rs6000_load_constant_and_splat): New helper function to load up
9129         the constant for reciprocal estimate instructions.
9130         (rs6000_emit_madd): New helper function for generating
9131         multiply/add type instructions, based on the current switches.
9132         (rs6000_emit_msub): Ditto.
9133         (rs6000_emit_mnsub): Ditto.
9134         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
9135         replace a divide with a reciprocal estimate and fixup, adding
9136         support for machines with high precision and vectors.
9137         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
9138         low precision machines.
9139         (rs6000_emit_swdiv): New common function to be called to replace a
9140         division with reciprocal estimate and fixup.
9141         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
9142         for double and vector types.  Add support for high precision machines.
9143
9144         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
9145         the reciprocal estimate instructions can be generated.
9146         (TARGET_FRE): Ditto.
9147         (TARGET_FRSQRTES): Ditto.
9148         (TARGET_FRSQRTE): Ditto.
9149         (RS6000_RECIP_*): New macros for reciprocal estimate support.
9150
9151         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
9152         square root estimate on vectors.
9153         (re<mode>2): New insn for reciprocal division estimate on vectors.
9154
9155         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
9156         New builtin.
9157         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
9158         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
9159         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
9160         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
9161         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
9162         (RS6000_BUILTIN_RSQRT): Ditto.
9163         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
9164         floating point builtin.
9165
9166         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9167         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
9168         __RECIP_PRECISION__ based on the command line switches.
9169         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
9170
9171         * config/rs6000/rs6000.opt (-mrecip): Document add support for
9172         replacing division instructions with reciprocal estimate and fixup.
9173         (-mrecip=<opt>): New option.
9174         (-mrecip-precision): Ditto.
9175
9176         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
9177         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
9178         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
9179         precision scalar.
9180
9181         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
9182         (UNSPEC_VREFP): Ditto.
9183         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
9184         conterparts with regard to support of -mno-fused-madd and -ffast-math.
9185         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
9186         reciprocal estimate instructions to be generated.
9187         (altivec_vrefp): Ditto.
9188
9189         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
9190         estimate support.
9191         (rreg): New mode attribute for reciprocal estimate support.
9192         (recip<mode>3): New insn for division using reciprocal estimate
9193         and fixup builtins.
9194         (divide define_split): New define_split to convert floating point
9195         division to use reciprocal estimate if the user used the
9196         appropriate options and the split is run when we can add new
9197         pseudo registers for the fixup.
9198         (rsqrt<mode>2): New insn for reciprocal square root support.
9199         (recipsf3): Move into recip<mode>3.
9200         (recipdf3): Ditto.
9201         (fres): Use TARGET_FRES.
9202         (rsqrtsf2): Move into rsqrt<mode>2.
9203         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
9204         (copysignsf3): Add support for VSX.
9205         (fred): Use TARGET_FRE.
9206         (fred_fpr): Ditto.
9207         (rsqrtdf_internal1): New function for frsqrte instruciton.
9208
9209         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
9210         (vec_rsqrt): Ditto.
9211
9212 2010-06-03  Richard Guenther  <rguenther@suse.de>
9213
9214         PR middle-end/44291
9215         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
9216         (set_user_assembler_libfunc): Likewise.
9217
9218 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
9219
9220         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
9221         defaults.h.
9222         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
9223         to defaults.h
9224         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
9225         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
9226         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
9227         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
9228         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
9229         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
9230         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
9231         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
9232         * defaults.h: Updated for above mentioned changes.
9233
9234 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
9235
9236         * c-common.c: Remove header include of tm_p.h.
9237         * Makefile.in (c-common.o): Remove TM_P_H dependency.
9238
9239 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
9240
9241         * tree.h (struct tree_decl_map): New type.
9242         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
9243         (tree_decl_map_hash): New prototype.
9244         (debug_expr_for_decl, value_expr_for_decl): Change into
9245         tree_decl_map hashtab from tree_map.
9246         (init_ttree): Adjust initialization.
9247         (tree_decl_map_hash): New function.
9248         (decl_debug_expr_lookup, decl_debug_expr_insert,
9249         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
9250
9251 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9252
9253         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
9254         linker emulations.
9255         * configure: Regenerate.
9256         * config.in: Regenerate.
9257
9258         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
9259         (X86_64_EMULATION): Define.
9260         (TARGET_LD_EMULATION): Use them.
9261
9262         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
9263         (SPARC64_EMULATION): Define.
9264         (LINK_ARCH_SPEC): Use them.
9265
9266 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
9267
9268         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
9269         smallest_mode_for_size for computing the precision types of new
9270         graphite IVs.  Do not call lang_hooks.types.type_for_size.
9271
9272 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
9273
9274         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
9275         information.
9276         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
9277
9278 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
9279
9280         PR middle-end/44363
9281         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
9282         return false instead.
9283
9284 2010-06-02  Jan Hubicka  <jh@suse.cz>
9285
9286         PR middle-end/44295
9287         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
9288         create new cgraph node to check callee.
9289
9290 2010-06-02  Richard Guenther  <rguenther@suse.de>
9291
9292         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
9293
9294 2010-06-02  Richard Guenther  <rguenther@suse.de>
9295
9296         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
9297         (lto_wrapper_cleanup): ... this.  Do not exit.
9298         (fatal): Adjust.  Exit here.
9299         (fatal_perror): Likewise.
9300         (fatal_signal): New function.
9301         (main): Set up signal handlers to cleanup temporary files.
9302         * Makefile.in (lto-wrapper.o): Adjust dependencies.
9303
9304 2010-06-02  Richard Guenther  <rguenther@suse.de>
9305
9306         PR tree-optimization/44377
9307         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
9308
9309 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9310
9311         * config/s390/2097.md (z10_fhex): Remove insn reservation.
9312         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
9313         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
9314         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
9315         instruction.
9316         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
9317
9318 2010-06-02  Jan Hubicka  <jh@suse.cz>
9319
9320         * bitmap.c (bitmap_descriptor): Add search_iter.
9321         (bitmap_find_bit): Increment it.
9322         (print_statistics): Print it.
9323
9324 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
9325
9326         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
9327         instead of gimple_build_call_vec.  Delete unnecessary local variable.
9328
9329 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
9330
9331         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
9332         change from yesterday.
9333
9334 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
9335
9336         * c-ada-spec.c: Clean up redundant includes.
9337
9338 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
9339
9340         * gimplify.c: Do not include except.h and optabs.h.
9341         (gimplify_body): Do not initialize RTL profiling.
9342         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
9343         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
9344         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
9345         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
9346         langhooks.h.
9347
9348         * tree-pretty-print.h: Include pretty-print.h.
9349         * gimple-pretty-print.h: Include pretty-print.h.
9350
9351         * tree-pretty-print.c: Do not include diagnostic.h.
9352         * tree-vrp.c: Likewise.
9353         * tree-tailcall.c: Likewise
9354         * tree-scalar-evolution.c: Likewise
9355         * tree-ssa-dse.c: Likewise
9356         * tree-chrec.c: Likewise
9357         * tree-ssa-sccvn.c: Likewise
9358         * tree-ssa-copyrename.c: Likewise
9359         * tree-nomudflap.c: Likewise
9360         * tree-call-cdce.c: Likewise
9361         * tree-stdarg.c: Likewise
9362         * tree-ssa-math-opts.c: Likewise
9363         * tree-nrv.c: Likewise
9364         * tree-ssa-sink.c: Likewise
9365         * tree-browser.c: Likewise
9366         * tree-ssa-loop-ivcanon.c: Likewise
9367         * tree-ssa-loop.c: Likewise
9368         * tree-parloops.c: Likewise
9369         * tree-ssa-address.c: Likewise
9370         * tree-ssa-ifcombine.c: Likewise
9371         * tree-if-conv.c: Likewise
9372         * tree-data-ref.c: Likewise
9373         * tree-affine.c: Likewise
9374         * tree-ssa-phiopt.c: Likewise
9375         * tree-ssa-coalesce.c: Likewise
9376         * tree-ssa-pre.c: Likewise
9377         * tree-ssa-live.c: Likewise
9378         * tree-predcom.c: Likewise
9379         * tree-ssa-forwprop.c: Likewise
9380         * tree-ssa-dce.c: Likewise
9381         * tree-ssa-ter.c: Likewise
9382         * tree-ssa-loop-prefetch.c: Likewise
9383         * tree-optimize.c: Likewise
9384         * tree-ssa-phiprop.c: Likewise
9385         * tree-object-size.c: Likewise
9386         * tree-outof-ssa.c: Likewise
9387         * tree-ssa-structalias.c: Likewise
9388         * tree-switch-conversion.c: Likewise
9389         * tree-ssa-reassoc.c: Likewise
9390         * tree-ssa-operands.c: Likewise
9391         * tree-vectorizer.c: Likewise
9392         * tree-vect-data-refs.c: Likewise
9393         * tree-vect-generic.c: Likewise
9394         * tree-vect-stmts.c: Likewise
9395         * tree-vect-patterns.c: Likewise
9396         * tree-vect-slp.c: Likewise
9397         * tree-vect-loop.c: Likewise
9398         * tree-ssa-loop-ivopts.c: Likewise
9399         * tree-ssa-loop-im.c: Likewise
9400         * tree-ssa-loop-niter.c: Likewise
9401         * tree-ssa-loop-unswitch.c: Likewise
9402         * tree-ssa-loop-manip.c: Likewise
9403         * tree-ssa-loop-ch.c: Likewise
9404         * tree-dump.c: Likewise
9405         * tree-complex.c: Likewise
9406
9407         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
9408         * tree-ssa-uninit.c: Likewise
9409         * tree-ssa-threadupdate.c: Likewise
9410         * tree-ssa-uncprop.c: Likewise
9411         * tree-ssa-ccp.c: Likewise
9412         * tree-ssa-dom.c: Likewise
9413         * tree-ssa-propagate.c: Likewise
9414         * tree-ssa-alias.c: Likewise
9415         * tree-dfa.c: Likewise
9416         * tree-cfgcleanup.c: Likewise
9417         * tree-sra.c: Likewise
9418         * tree-ssa-copy.c: Likewise
9419         * tree-ssa.c: Likewise
9420         * tree-profile.c: Likewise
9421         * tree-cfg.c: Likewise
9422         * tree-ssa-threadedge.c: Likewise
9423         * tree-vect-loop-manip.c: Likewise
9424
9425         * tree-inline.c: Do not include diagnostic.h and expr.h.
9426         Include rtl.h.
9427         (copy_decl_for_dup_finish): Do not use NULL_RTX.
9428
9429         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
9430         * tree-loop-distribution.c: Likewise.
9431
9432 2010-06-01  Jan Hubicka  <jh@suse.cz>
9433
9434         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
9435
9436 2010-06-01  Jan Hubicka  <jh@suse.cz>
9437
9438         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
9439         remove return value.
9440         (split_bbs_on_noreturn_calls) .... here.
9441         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
9442         * tree-flow.h (fixup_noreturn_call): New.
9443
9444 2010-06-01  Jan Hubicka  <jh@suse.cz>
9445
9446         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
9447
9448 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
9449
9450         * tree.h (build_nt_call_list): Delete.
9451         * tree.c (build_nt_call_list): Delete.
9452
9453 2010-06-01  Jan Hubicka  <jh@suse.cz>
9454
9455         * fwprop.c: Make emit-rtl.h include last.
9456         * rtlanal.c: Include emit-rtl.h.
9457         * genautomata.c: Output emit-rtl include into insn-automata.c
9458         * df-scan.c: Include emit-rtl.h.
9459         * haifa-sched.c: Indlude emit-rtl.h.
9460         * mode-switching.c: Indlude emit-rtl.h.
9461         * graph.c: Indlude emit-rtl.h.
9462         * sel-sched.c: Include emit-rtl.h.
9463         * sel-sched-ir.c: Include emit-rtl.h.
9464         * ira-build.c: Include emit-rtl.h.
9465         * emit-rtl.c (first_insn, last_insn): Remove defines.
9466         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
9467         Move to emit-rtl.h.
9468         (set_new_first_and_last_insn, get_last_insn_anywhere,
9469         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
9470         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
9471         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
9472         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
9473         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
9474         Use accessor functions.
9475         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
9476          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
9477         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
9478         mem_expr_equal_p): Move here from rtl.h.
9479         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
9480         Move here from emit-rtl.c; make inline.
9481         * cfglayout.h: Include emit-rtl.h.
9482         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
9483          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
9484         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
9485         mem_expr_equal_p, get_insns, set_first-insn,
9486         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
9487         * reg-stack.c: Include emit-rtl.h.
9488         * dce.c: Likewise.
9489
9490 2010-06-01  Jan Hubicka  <jh@suse.cz>
9491
9492         * cgraph.h (tree_function_versioning): Update prototype.
9493         (cgraph_function_versioning): Update prototype.
9494         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
9495         bitmap.
9496         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
9497         (cgraph_materialize_clone, save_inline_function_body): Update use of
9498         tree_function_versioning.
9499         * tree-inline.c (copy_bb): Look for previous copied block to link
9500         after; fix debug output.
9501         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
9502         (copy_body): Likewise.
9503         (expand_call_inline): Update use of copy_body.
9504         (tree_function_versioning): Update use of copy body; accept
9505         blocks_to_copy and new_entry.
9506
9507 2010-06-01  Jan Hubicka  <jh@suse.cz>
9508
9509         * gegenrtl.c: Remove unnecesary prototypes.
9510         (gendecl): Remove.
9511         (gendef): Produce static inline.
9512         (gencode): Remove.
9513         (main): Do not decode parameters; generate header only.
9514         * Makefile.in (genrtl.c): Remove.
9515
9516 2010-06-01  Jan Hubicka  <jh@suse.cz>
9517
9518         * tree-switch-conversion.c (build_one_array): Make it readonly.
9519
9520 2010-06-01  Richard Guenther  <rguenther@suse.de>
9521
9522         * optabs.c (init_optabs): Guard all accesses to reinit.
9523         * ipa-pure-const.c (propagate): Fix another typo.
9524         * opts.c (common_handle_option): Split assignment to bool.
9525         * c-opts.c (c_common_handle_option): Likewise.
9526
9527 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
9528             Matthew Gingell  <gingell@adacore.com>
9529
9530         * doc/invoke.texi: Mention -fdump-ada-spec.
9531         * tree-dump.c (dump_files): Add ada-spec.
9532         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
9533         * tree-pass.h (tree_dump_index): Add TDI_ada.
9534         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
9535         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
9536         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
9537         * c-decl.c: Include c-ada-spec.h.
9538         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
9539         functions.
9540         (c_write_global_declarations): Add handling of -fdump-ada-spec.
9541         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
9542         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
9543         * c-ada-spec.h, c-ada-spec.c: New files.
9544
9545 2010-06-01  Richard Guenther  <rguenther@suse.de>
9546
9547         PR lto/43853
9548         * ipa-pure-const.c (get_function_state): Hand back varying state
9549         if we do not have one.
9550         (has_function_state): New function.
9551         (duplicate_node_data): Adjust.
9552         (remove_node_data): Likewise.
9553         (pure_const_write_summary): Likewise.
9554         (propagate): Likewise.  Fix typo.
9555
9556 2010-06-01  Jan Hubicka  <jh@suse.cz>
9557
9558         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
9559         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
9560         (execute_all_ipa_transforms): Do not play with the states.
9561
9562 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
9563
9564         * config/arm/t-linux-androideabi: New.
9565         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
9566
9567 2010-06-01  Jan Hubicka  <jh@suse.cz>
9568
9569         * tree-inline.c (estimate_num_insns): For stdarg functions look
9570         into call statement to count cost of argument passing.
9571
9572 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
9573
9574         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
9575         argument for fprintf.
9576         (ix86_output_addr_diff_elt): Likewise.
9577         (x86_function_profiler): Likewise.
9578         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
9579         (LPREFIX): Likewise.
9580         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
9581
9582 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
9583
9584         PR target/44338
9585         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
9586         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
9587         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
9588         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
9589         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
9590         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
9591         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
9592         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
9593         TARGET_FUSED_MADD.
9594
9595 2010-05-31  Jan Hubicka  <jh@suse.cz>
9596
9597         * tree.h (tree_range_check_failed): Declare noreturn.
9598
9599 2010-05-31  Jan Hubicka  <jh@suse.cz>
9600
9601         * gimple.c (gimple_call_builtin_p): New function.
9602         * gimple.h (gimple_call_builtin_p): Declare.
9603         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
9604         to exit.
9605         (execute_warn_function_return): BUILT_IN_RETURN is return.
9606         (split_critical_edges): Return edges are not critical.
9607         (is_ctrl_altering_stmt): Builtin_in_return is altering.
9608         (gimple_verify_flow_info): Handle built_in_return.
9609         (execute_warn_function_return): Handle built_in_return.
9610         * ipa-pure-const.c (check_call): Ignore builtin_return.
9611
9612 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
9613
9614         PR middle-end/44337
9615         * expr.c (expand_assignment): Don't store anything for out-of-bounds
9616         array accesses with non-MEM.
9617
9618         PR tree-optimization/44182
9619         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
9620         newly needs to end a bb is followed by debug stmts, instead return
9621         true from the function at the end.
9622         (maybe_move_debug_stmts_to_successors): New function.
9623         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
9624
9625 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
9626
9627         PR target/44161
9628         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
9629
9630 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
9631
9632         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
9633         for nested functions in non-optimized compilation.
9634
9635 2010-05-31  Richard Guenther  <rguenther@suse.de>
9636
9637         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
9638
9639 2010-05-30  Jan Hubicka  <jh@suse.cz>
9640
9641         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
9642
9643 2010-05-30  Richard Guenther  <rguenther@suse.de>
9644
9645         PR lto/42975
9646         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
9647         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
9648         no longer needed.
9649
9650 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
9651
9652         * config/darwin.c (output_objc_section_asm_op): Add comment.
9653         (name_needs_quotes): Add '_' to list of valid comment chars.
9654         (machopic_output_function_base_name): Remove unneeded quotes.
9655         (darwin_encode_section_info): Adjust asm whitespace.
9656         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
9657         (ASM_OUTPUT_LOCAL): Ditto.
9658         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
9659         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
9660         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
9661
9662 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
9663
9664         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
9665         RS6000_OUTPUT_BASENAME unconditionally.
9666         (rs6000_output_function_epilogue): Likewise.
9667
9668 2010-05-30  Jan Hubicka  <jh@suse.cz>
9669
9670         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
9671         nodes.
9672
9673 2010-05-30  Richard Guenther  <rguenther@suse.de>
9674
9675         * tree-cfg.c (verify_gimple_assign_single): Implement
9676         verification for COND_EXPR rhs.
9677
9678 2010-05-30  Jan Hubicka  <jh@suse.cz>
9679
9680         * cgraph.h (cgraph_dump_file): Declare.
9681         * cgraphunit.c (cgraph_dump_file): Export.
9682         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
9683
9684 2010-05-30  Jan Hubicka  <jh@suse.cz>
9685
9686         * dwarf2out.c (reference_to_unused,
9687         premark_types_used_by_global_vars_helper): Avoid creation of new
9688         varpool nodes.
9689
9690 2010-05-30  Jan Hubicka  <jh@suse.cz>
9691
9692         * cgraph.h (cgraph_node_cannot_return,
9693         cgraph_edge_cannot_lead_to_return): New functions.
9694         * cgraph.c (cgraph_node_cannot_return,
9695         cgraph_edge_cannot_lead_to_return): Use them.
9696         * ipa-pure-const.c (pure_const_names): New static var.
9697         (check_call): Handle calls not leading to return.
9698         (pure_const_read_summary): Dump info read.
9699         (propagate): Dump info about propagation process; ignore side effects
9700         of functions not leading to exit; fix handling of pure functions.
9701
9702 2010-05-30  Jan Hubicka  <jh@suse.cz>
9703
9704         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
9705         for tail call epilogues.
9706
9707 2010-05-30  Jan Hubicka  <jh@suse.cz>
9708
9709         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
9710         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
9711         dump files.
9712
9713 2010-05-29  Jan Hubicka  <jh@suse.cz>
9714
9715         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
9716         node; remove references in node we no longer keep in cgrpah but need
9717         body of.
9718
9719 2010-05-29  Jan Hubicka  <jh@suse.cz>
9720
9721         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
9722
9723 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9724
9725         PR target/44165
9726         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
9727
9728 2010-05-29  Jan Hubicka  <jh@suse.cz>
9729
9730         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
9731         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
9732         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
9733         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
9734         debug_names_replaced_by, debug_update_ssa): Likewise.
9735         * sbitmap.c (debug_sbitmap): Likewise.
9736         * genrecog.c (debug_decision, debug_decision_list): Likewise.
9737         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
9738         debug_tree_chain): Likewise.
9739         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
9740         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
9741         * optabs.c (debug_optab_libfuncs): Likewise.
9742         (verify_loop_closed_ssa): Likewise.
9743         * value-prof.c (verify_histograms): Likewise.
9744         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
9745         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
9746         * cfghooks.c (verify_flow_info): Likewise.
9747         * fold-const.c (debug_fold_checksum): Likewise.
9748         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
9749         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
9750         Likewise.
9751         * omega.c (debug_omega_problem): Likewise.
9752         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
9753         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
9754         * dominance.c (verify_dominators, debug_dominance_info,
9755         debug_dominance_tree): Likewise.
9756         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
9757         * df_regno_debug, df_ref_debug,
9758         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
9759         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
9760         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
9761         * sel-sched.c (debug_state): Likewise.
9762         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
9763         Likewise.
9764         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
9765         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
9766         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
9767         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
9768         Likewise.
9769         * c-pretty-print.c (debug_c_tree): Likewise.
9770         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
9771         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
9772         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
9773         * ebitmap.c (debug_ebitmap): Likewise.
9774         * function.c (debug_find_var_in_block_tree): Likewise.
9775         * print-rtl.c (debug_rtx): Likewise.
9776         (debug_rtx_count): Likewise.
9777         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
9778         * stor-layout.c (debug_rli): Likewise.
9779         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
9780         * tree-data-ref.c (debug_data_references,
9781         debug_data_dependence_relations, debug_data_reference,
9782         debug_data_dependence_relation, debug_rdg_vertex,
9783         debug_rdg_component, debug_rdg): Likewise.
9784         * tree-affine.c (debug_aff): Likewise.
9785         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
9786         Likewise.
9787         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
9788         * emit-rtl.c (verify_rtl_sharing): Likewise.
9789         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
9790         debug_value_expressions): Likewise.
9791         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
9792         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
9793         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
9794         * cfglayout.c (verify_insn_chain): Likewise.
9795         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
9796         debug_clast_stmt, debug_generated_program): Likewise.
9797         * ggc-page.c (debug_print_page_list): Likewise.
9798         * tree-ssa-ter.c (debug_ter): Likewise.
9799         * graphite-dependences.c (debug_pddr): Likewise.
9800         * sched-deps.c (debug_ds): Likewise.
9801         * tree-ssa.c (verify_ssa): Likewise.
9802         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
9803         debug_scattering_functions, debug_iteration_domains, debug_pdr,
9804         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
9805         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
9806         * tree-inline.c (debug_find_tree): Likewise.
9807         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
9808         debug_ppl_powerset_matrix): Likewise.
9809         * var-tracking.c (debug_dv): Likewise.
9810         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
9811         * cfgloop.c (verify_loop_structure): Likewise.
9812         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
9813         * c-common.c (verify_sequence_points): Likewise.
9814         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
9815         debug_candidates, debug_rgn_dependencies): Likewise.
9816         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
9817         * debug_constraint_graph, debug_solution_for_var,
9818         debug_sa_points_to_info): Likewise.
9819         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
9820         Likewie.
9821         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
9822         debug_loops, debug_loop, debug_loop_num): Likewise.
9823         * passes.c (debug_pass): Likewise.
9824         (dump_properties): Likewise; add cfglayout property.
9825         (debug_properties): Likewise.
9826         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
9827         * varpool.c (debug_varpool): Likewise.
9828         * regcprop.c (debug_value_data): Likewise.
9829         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
9830         debug_immediate_uses_for): Likewise.
9831
9832 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
9833
9834         PR bootstrap/44315
9835         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
9836         Filter out insn-flags.h.
9837
9838 2010-05-29  Jan Hubicka  <jh@suse.cz>
9839
9840         * cgraph.h (struct varpool_node_set_def,
9841         struct cgraph_node_set_def): Remove unused AUX pointer.
9842         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
9843         VEC_empty macro.
9844
9845 2010-05-29  Jan Hubicka  <jh@suse.cz>
9846
9847         PR middle-end/44324
9848         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
9849
9850 2010-05-29  Richard Guenther  <rguenther@suse.de>
9851
9852         * lto-streamer.c (cached_bp): New global variable.
9853         (bitpack_create): Return the cached bitpack, if available.
9854         (bitpack_delete): Clear and cache the bitpack, if appropriate.
9855         (bp_pack_value): Remove redundant asserts.
9856
9857 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
9858
9859         PR middle-end/44306
9860         * tree-if-conv.c (is_true_predicate): New.
9861         (is_predicated): Use is_true_predicate.
9862         (add_to_predicate_list): Same.  Do not use unshare_expr.
9863         (add_to_dst_predicate_list): Same.
9864
9865 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
9866
9867         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
9868         field on edges.
9869         (predicate_bbs): Same.
9870         (clean_predicate_lists): Same.
9871         (find_phi_replacement_condition): Do not AND the predicate from
9872         edge->aux.
9873
9874 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
9875
9876         PR bootstrap/44315
9877         * Makefile.in (build/gencondmd.o): Add a missing `\'.
9878
9879 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9880
9881         PR target/44261
9882         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
9883         (negdf2): Adjust expander pattern and use negdf2_slow.
9884         (negsf2): Likewise.
9885
9886 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
9887
9888         * basic-block.h (struct control_flow_graph): Move last_label_uid field
9889         up.
9890         * df.h (struct df_base_ref): Move regno field up.
9891         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
9892         * expr.h (struct separate_ops): Move location field up.
9893         * optabs.h (struct optab_d): Move libcall_basename field down.
9894         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
9895         * config/i386/i386.h (struct machine_function): Convert call_abi field
9896         into a bitfield.  Move cfa field to the end of the structure.
9897
9898 2010-05-29  Jan Hubicka  <jh@suse.cz>
9899
9900         * varpool.c (varpool_get_node): Fix lookup.
9901
9902 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9903
9904         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
9905         RTL specific prototypes with #ifdef RTX_CODE.
9906         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
9907         * config/spu/t-spu-elf: Fix dependencies.
9908
9909         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
9910
9911 2010-05-29  Mike Stump  <mikestump@comcast.net>
9912
9913         PR bootstrap/44315
9914         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
9915         TM_H when building to avoid dependency loops.
9916
9917 2010-05-29  Jan Hubicka  <jh@suse.cz>
9918
9919         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
9920         refs and body; not the whole node for masters of materialized clones.
9921
9922 2010-05-29  Mike Stump  <mikestump@comcast.net>
9923
9924         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
9925
9926 2010-05-29  Jan Hubicka  <jh@suse.cz>
9927
9928         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
9929         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
9930         use of clone_function_name.
9931         * cgraph.h (cgraph_create_virtual_clone,
9932         cgraph_function_versioning): update prototypes.
9933         (clone_function_name): Declare.
9934         * ipa-cp.c (ipcp_insert_stage): Update call of
9935         cgraph_create_virtual_clone.
9936         * omp-low.c (create_omp_child_function_name): Use
9937         cgraph_create_virtual_clone.
9938         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
9939         (cgraph_function_versioning): Take SUFFIX argument; produce new name
9940         and make decl local.
9941
9942 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9943
9944         * vec.h: Include statistics.h
9945         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
9946         with VEC_H.
9947
9948 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9949
9950         * c-lex.c: Do not include c-tree.h.
9951         * c-pretty-print.c: Likewise.
9952         * c-opts.c: Likewise.
9953         * c-gimplify.c: Likewise.
9954         * c-common.c: Likewise.
9955         * c-dump.c: Likewise.  Include c-common.h.
9956
9957 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9958
9959         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
9960         before including diagnostic-core.h.
9961         (c_cpp_error): New prototype moved from c-tree.h.
9962         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
9963         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
9964         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
9965         (c_cpp_error): Prototype moved to c-common.h.
9966         * Makefile.in: Update dependency for C_COMMON_H.
9967
9968 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9969
9970         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
9971         * c-common.c (c_register_addr_space): Remove here.
9972         * c-decl.c (c_register_addr_space): Re-add here.
9973
9974 2010-05-28  Mike Stump  <mikestump@comcast.net>
9975
9976         * config/darwin-c.c: Remove c-tree.h include.
9977
9978 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9979
9980         * gcc.c: Include diagnostic.h.
9981         (error_count): Remove.  All users changed to use errorcount.
9982         (programname): Remove.  All users changed to use progname.
9983         (fancy_abort, internal_error, fatal_error, error, warning, inform,
9984         fnotice): Remove.
9985         (execute): Don't include "Internal error" and bug reporting
9986         information in argument of internal_error call.
9987         (process_command): Don't increment error_count after calling
9988         perror_with_name.
9989         (input_filename): Rename to gcc_input_filename.  All users
9990         changed.
9991         (main): Call diagnostic_initialize.  Register delete_temp_files
9992         with atexit.  Use seen_error to test for errors.
9993         * gcc.h: Include diagnostic-core.h.
9994         (fatal_error, error, warning): Remove.
9995         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
9996         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
9997         (gcc.o): Update dependencies.
9998
9999 2010-05-28  Jeff Law  <law@redhat.com>
10000
10001         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
10002         functions.
10003         * ira.h (ira_bad_reload_regno): Declare
10004         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
10005
10006         * ira-color.c (update_curr_costs): Free updated hard reg costs.
10007         (ira_reassign_conflict_allocnos): Remove bogus asserts.
10008         (allocno_reload_assign): Likewise.
10009
10010 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
10011
10012         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
10013         build1_stat.
10014
10015 2010-05-28  Richard Guenther  <rguenther@suse.de>
10016
10017         PR lto/44312
10018         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
10019         Stream fixed-point constants mode.
10020         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
10021         and TYPE_PRECISION.
10022         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
10023         Stream fixed-point constants mode.
10024         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
10025         and TYPE_PRECISION.
10026
10027 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10028
10029         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
10030         only place it was called from.
10031         (number_of_latch_executions): Do not return chrec_dont_know when the
10032         may_be_zero is a runtime condition: instead, return a COND_EXPR
10033         including the may_be_zero condition.
10034         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
10035         of nb_iterations.
10036         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
10037         COND_EXPRs.
10038
10039 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10040
10041         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
10042         generate COND_EXPRs for degenerate_phi_result.
10043
10044 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10045
10046         PR middle-end/44293
10047         * tree-if-conv.c (if_convertible_loop_p): Check the
10048         if-convertibility of phi nodes in non predicated BBs.
10049
10050 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10051
10052         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
10053
10054 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10055
10056         PR driver/15303
10057         * gcc.c (inform, warning, inform): New functions.
10058         (fatal_ice): Rename to internal_error; change cmsgid parameter to
10059         gmsgid.  All callers changed.
10060         (notice): Rename to fnotice; add parameter fp.  All callers changed.
10061         (fatal_error): Rename to fatal_signal.  All users changed.
10062         (fatal): Rename to fatal_error; change cmsgid parameter to
10063         gmsgid.  All callers changed.
10064         (process_command): Use warning instead of error for warnings.
10065         (end_going_arg): Don't use _() around argument of error.
10066         (do_spec_1): Use inform for message from %n specs.  Use warning
10067         instead of error for warnings.
10068         (main): Use inform for comparison messages.  Use warning for
10069         message about unused linker input.
10070         (error): Increment error_count.  Print "error: ".
10071         * gcc.h (fatal): Change to fatal_error.
10072         (warning): Declare.
10073         * config/darwin-driver.c (darwin_default_min_version): Use warning
10074         instead of fprintf for warnings.
10075         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
10076
10077 2010-05-28  Julian Brown  <julian@codesourcery.com>
10078
10079         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
10080         (*thumb2_addsi3_compare0_scratch): New.
10081         * config/arm/constraints.md (Pv): New.
10082         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
10083         for ARM mode only.
10084         (*addsi3_compare0_scratch): Likewise.
10085
10086 2010-05-28  Jan Hubicka  <jh@suse.cz>
10087
10088         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
10089         check.
10090         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
10091         only on local statics.
10092
10093 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
10094
10095         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
10096
10097 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10098
10099         PR bootstrap/44314
10100         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
10101         (OPTION_GLIBC): Define.
10102
10103 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
10104
10105         PR debug/41048
10106         * dwarf2out.c (double_int_type_size_in_bits): New function.
10107         (round_up_to_align): Change first argument and return value to
10108         double_int.
10109         (field_byte_offset): Work internally on double_ints.
10110
10111         PR target/43636
10112         * builtins.c (expand_movstr): Use a temporary pseudo instead
10113         of target even when target is not NULL and not const0_rtx, but
10114         fails movstr predicate.
10115         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
10116
10117 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10118
10119         * final.c (rest_of_clean_state): Use %m in errors instead of
10120         strerror (errno).
10121         * gengtype.c (read_input_list, close_output_files): Use xstrerror
10122         instead of strerror.
10123         * toplev.c (process_options): Use %m in errors instead of strerror
10124         (errno).
10125         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
10126         (errno).
10127
10128 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
10129
10130         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
10131         (ix86_canonical_va_list_type): Make static.  Add declaration.
10132         (ix86_enum_va_list): Make static.  Reindent.
10133         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
10134         (ix86_canonical_va_list_type): Ditto.
10135         (ix86_enum_va_list): Ditto.
10136
10137 2010-05-28  Richard Guenther  <rguenther@suse.de>
10138
10139         * lto-wrapper.c (run_gcc): With -save-temps generate a
10140         user-visible ltrans filename.  Fixup ltrans unit numbering.
10141
10142 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
10143
10144         * c-common.c (c_common_nodes_and_builtins): Replace use
10145         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
10146         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
10147         to ix86_enum_va_list.
10148         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
10149         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
10150         (TARGET_ENUM_VA_LIST_P): Add hook description.
10151         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
10152         * target.h (gcc_target): Add enum_va_list hook.
10153
10154         PR bootstrap/44299
10155         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
10156         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
10157         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
10158
10159 2010-05-28  Alan Modra  <amodra@gmail.com>
10160
10161         PR target/44266
10162         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10163         emit_library_call machinery to set up __tls_get_addr calls.
10164
10165 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10166
10167         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
10168
10169 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
10170
10171         Revert fix for PR c++/44188
10172         * c-common.c (is_typedef_decl): Revert the moving of  this
10173         definition ...
10174         * tree.c (is_typedef_decl): ... here.
10175         (typdef_variant_p): Revert the moving of this  definition
10176         here from gcc/cp/tree.c.
10177         * c-common.h (is_typedef_decl): Revert the moving of this
10178         declaration ...
10179         * tree.h (is_typedef_decl): ... here.
10180         (typedef_variant_p): Revert the moving of this  declaration here
10181         from gcc/cp/cp-tree.h
10182         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
10183         (gen_tagged_type_die): Revert the splitting out of ...
10184         (gen_type_die_with_usage): ... this function. Revert the anonymous
10185         tagged type handling.
10186         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
10187         typedefs naming anonymous tagged types.
10188
10189 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
10190
10191         * config/rs6000/rs6000-modes.def (PSImode): Delete.
10192
10193 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
10194
10195         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
10196         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
10197         throughout.
10198         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
10199         "xer" to "ca".
10200         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
10201         XER_REGS to CA_REGS throughout.
10202         * config/rs6000/rs6000.h: Same.
10203         (ADDITIONAL_REGISTER_NAMES): Add "xer".
10204         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
10205         that mode_iterator "P" is the size for arithmetic carries as well.
10206         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
10207
10208 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
10209
10210         PR bootstrap/44255
10211         * combine.c (struct rtx_subst_pair): Define unconditionally.
10212         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
10213         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
10214         Call make_compound_operation on pair->to.
10215         (propagate_for_debug): Don't call make_compound_operation here.
10216         Always use simplify_replace_fn_rtx.
10217
10218 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
10219
10220         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
10221         * config/xtensa/xtensa.c (override_options): Check
10222           TARGET_FORCE_NO_PIC and set flag_pic.
10223         * config/xtensa/xtensa.opt: Document -mforce-no-pic
10224
10225 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
10226
10227         PR bootstrap/44299
10228         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
10229         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
10230
10231 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
10232
10233         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
10234         toplev.h.
10235         * diagnostic.c: Don't include toplev.h.
10236         (progname): Define.  Moved from toplev.c.
10237         (seen_error): New function.
10238         * diagnostic.h: Include diagnostic-core.h.
10239         (diagnostic_t, emit_diagnostic): Don't declare here.
10240         * toplev.c (progname): Move to toplev.c.
10241         (emit_debug_global_declarations, compile_file, finalize,
10242         do_compile, toplev_main): Use seen_error.
10243         * toplev.h: Include diagnostic-core.h.
10244         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
10245         internal_error, warning, warning_at, error, error_n, error_at,
10246         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
10247         verbatim, fnotice, progname): Move to diagnostic-core.h.
10248         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
10249         (expand_builtin_expect): Use seen_error.
10250         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
10251         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
10252         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
10253         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
10254         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
10255         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
10256         errorcount for errors.
10257         * c-opts.c (c_common_finish): Use seen_error.
10258         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
10259         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
10260         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
10261         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
10262         (get_coverage_counts): Use seen_error.
10263         * dwarf2out.c (dwarf2out_finish): Use seen_error.
10264         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
10265         gimplify_body): Use seen_error.
10266         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
10267         * ipa-pure-const.c (gate_pure_const): Use seen_error.
10268         * ipa-reference.c (gate_reference): Use seen_error.
10269         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
10270         * lambda-code.c: Include diagnostic-core.h instead of
10271         diagnostic.h.
10272         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
10273         * lto-compress.c: Include diagnostic-core.h instead of
10274         diagnostic.h.
10275         * lto-section-in.c: Include diagnostic-core.h instead of
10276         diagnostic.h.
10277         * lto-streamer-out.c: Include diagnostic-core.h instead of
10278         diagnostic.h.
10279         * lto-streamer.c: Include diagnostic-core.h instead of
10280         diagnostic.h.
10281         (gate_lto_out): Use seen_error.
10282         * matrix-reorg.c: Include diagnostic-core.h instead of
10283         diagnostic.h.
10284         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
10285         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
10286         (gate_expand_omp, lower_omp_1): Use seen_error.
10287         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
10288         (rest_of_decl_compilation, rest_of_type_compilation,
10289         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
10290         * tree-cfg.c (label_to_block_fn): Use seen_error.
10291         * tree-inline.c (optimize_inline_calls): Use seen_error.
10292         * tree-mudflap.c (mudflap_finish_file): Use
10293         seen_error.
10294         * tree-optimize.c (gate_all_optimizations,
10295         gate_all_early_local_passes, gate_all_early_optimizations): Use
10296         seen_error.
10297         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
10298         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
10299         (varpool_remove_unreferenced_decls,
10300         varpool_assemble_pending_decls): Use seen_error.
10301         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
10302         (TOPLEV_H, DIAGNOSTIC_H): Update.
10303         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
10304         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
10305         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
10306         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
10307         coverage.o, lambda-code.o): Update dependencies.
10308
10309 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
10310
10311         PR c++/44188
10312         * c-common.c (is_typedef_decl): Move this definition ...
10313         * tree.c (is_typedef_decl): ... here.
10314         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10315         * c-common.h (is_typedef_decl): Move this declaration ...
10316         * tree.h (is_typedef_decl): ... here.
10317         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10318         * dwarf2out.c (is_naming_typedef_decl): New function.
10319         (gen_tagged_type_die): Split out of ...
10320         (gen_type_die_with_usage): ... this function. When an anonymous
10321         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10322         is emitted for the typedef.
10323         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10324         anonymous tagged types.
10325
10326 2010-05-27  Jason Merrill  <jason@redhat.com>
10327
10328         * print-tree.c (debug_vec_tree): New fn.
10329         (print_vec_tree): New fn.
10330         * tree.h: Declare them.
10331         * gdbinit.in (pvt): New command.
10332
10333         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
10334
10335         * gdbinit.in (pdd): New command.
10336
10337 2010-05-27  Jan Hubicka  <jh@suse.cz>
10338
10339         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
10340         (update_caller_keys): Return early if there are no callers;
10341         only update fibheap when decresing the key.
10342         (update_callee_keys): Avoid recursion.
10343         (decide_inlining_of_small_functions): When badness does not match;
10344         re-insert into fibheap.
10345
10346 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
10347
10348         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
10349         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
10350         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
10351         (ALL_HOST_OBJS): Now a union of the above two.
10352         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
10353         all files in ALL_HOST_FRONTEND_OBJS.
10354         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
10355
10356         * c-common.c: Pretend to be a backend file by undefining
10357         IN_GCC_FRONTEND (still need rtl.h here).
10358
10359 2010-05-27  Jan Hubicka  <jh@suse.cz>
10360
10361         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
10362         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
10363
10364 2010-05-27  Jan Hubicka  <jh@suse.cz>
10365
10366         * sched-ebb.c: Rename struct deps to struct deps_desc.
10367         * ddg.c: Likewise.
10368         * sel-sched-ir.c: Likewise.
10369         * sched-deps.c: Likewise.
10370         * sched-int.h: Likewise.
10371         * sched-rgn.c: Likewise.
10372
10373 2010-05-27  Jon Beniston  <jon@beniston.com>
10374
10375         PR 43726
10376         * config/lm32/lm32.h: Remove definition of
10377         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
10378
10379 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
10380
10381         PR lto/44230
10382         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
10383
10384 2010-05-27  Richard Guenther  <rguenther@suse.de>
10385
10386         PR tree-optimization/44284
10387         * tree-vect-stmts.c (vectorizable_assignment): Handle
10388         sign-changing conversions as simple copy.
10389
10390 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10391
10392         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
10393         Bionic C library.
10394         (__gthread_active_p): Check for pthread_create if compiling against
10395         Bionic C library.
10396
10397 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10398
10399         Support compilation for Android platform.  Reimplement -mandroid.
10400
10401         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
10402         (*android*): Set ANDROID_DEFAULT.
10403         (arm*-*-linux*): Include linux-android.h.
10404         (arm*-*-eabi*): Don't include previous -mandroid implementation.
10405         * config/arm/eabi.h: Remove, move Android-specific parts ...
10406         * config/linux-android.h: ... here.  New file.
10407         * config/arm/eabi.opt: Rename to ...
10408         * config/linux-android.opt: ... this.
10409         (mandroid): Allow -mno-android option.  Initialize based on
10410         ANDROID_DEFAULT.
10411         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
10412         Move logic to corresponding LINUX_TARGET_* macros.
10413         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
10414         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
10415         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
10416         Android definitions.
10417         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
10418         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
10419         Document.
10420
10421 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10422
10423         Add support for Bionic C library
10424
10425         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
10426         macro.
10427         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
10428         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
10429
10430         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
10431         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
10432         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
10433         to support multiple C libraries.  Handle Bionic.
10434         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
10435         (BIONIC_DYNAMIC_LINKER64): Define.
10436         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
10437         Update.
10438         (TARGET_HAS_SINCOS): Enable for Bionic.
10439
10440         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
10441         the last option specified on command line take effect.
10442         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
10443         (mbionic): New.
10444         (mglibc, muclibc): Update.
10445
10446         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
10447         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
10448         DEFAULT_LIBC.
10449
10450         * doc/invoke.texi (-mglibc, -muclibc): Update.
10451         (-mbionic): Document.
10452
10453 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10454
10455         * c-common.h (c_register_addr_space): Add prototype.
10456         (ADDR_SPACE_KEYWORD): Remove.
10457         * c-common.c (c_register_addr_space): New function.
10458         (c_addr_space_name): Reimplement.
10459         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
10460
10461         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
10462         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
10463
10464         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
10465         Remove TARGET_ADDR_SPACE_KEYWORDS.
10466
10467 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
10468
10469         * input.c: New file.
10470         * input.h (main_input_filename): Move declaration to toplev.h.
10471         * toplev.c (input_location, line_table): Move to input.c
10472         * toplev.h (main_input_filename): Move declaration from input.h.
10473         * tree.c (expand_location): Move to input.c.
10474         * Makefile.in (OBJS-common): Add input.o.
10475         (input.o): Add dependencies.
10476
10477 2010-05-27  Richard Guenther  <rguenther@suse.de>
10478
10479         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
10480         for non-existant files.
10481         (fork_execute): Mark args_name file as deleted.
10482
10483 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
10484
10485         PR bootstrp/44287
10486         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
10487         (narrow_signed_type): Likewise.
10488
10489 2010-05-26  Jan Hubicka  <jh@suse.cz>
10490
10491         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
10492         edge only when checking is enabled; check using former_clone_of;
10493         check inline clones too.
10494         (cgraph_materialize_clone): Record former_clone_of pointer.
10495         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
10496         combining redirections; dump args_to_skip bitmap
10497         (cgraph_materialize_all_clones): Do no redirection here.
10498         * ipa-inline.c (inline_transform): Do redirection here.
10499         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
10500         cheking only).
10501
10502 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10503
10504         * config/avr/avr-c.c: Do not include regs.h.
10505         Include cpplib.h for cpp_define and tree.h for c-common.h.
10506         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
10507         * config/avr/t-avr: Fix dependencies for avr-c.o.
10508
10509 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10510
10511         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
10512         string instead of SYMBOL_REF rtx.
10513         * rtl.h (set_stack_check_libfunc): Move prototype from here...
10514         * libfuncs.h: ...to here.  Adjust for explow.c change.
10515
10516 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
10517
10518         * pretty-print.c: Don't include ggc.h.
10519         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
10520         (identifier_to_locale): Use them for allocation.
10521         * pretty-print.h (identifier_to_locale_alloc,
10522         identifier_to_locale_free): Declare.
10523         * toplev.c (alloc_for_identifier_to_locale): New.
10524         (general_init): Set identifier_to_locale_alloc and
10525         identifier_to_locale_free.
10526         * Makefile.in (pretty-print.o): Update dependencies.
10527
10528 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
10529
10530         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
10531         pointer types if they have different alignment or mode.
10532
10533 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
10534
10535         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10536         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10537         * config/sparc/sparc-protos.h (function_value): Remove declaration.
10538         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
10539         sparc_function_value_regno_p): New functions.
10540         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10541         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10542         (function_value): Rename to...
10543         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
10544         argument to 'outgoing'.
10545         (function_arg_record_value, function_arg_union_value,
10546         function_arg_vector_value): Update comment.
10547
10548 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
10549
10550         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
10551         (fde_needed_for_eh_p): New predicate.
10552         (output_call_frame_info): Use it throughout to decide whether FDEs
10553         are needed for EH purpose.
10554         (dwarf2out_begin_prologue): Reorder assignments.
10555
10556 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10557
10558         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
10559         special case loop->header.
10560         (is_predicated): New.
10561         (if_convertible_loop_p): Call it.
10562
10563 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10564
10565         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
10566         iterator in parameter.  Do not generate code during the analysis.
10567         (tree_if_convert_cond_stmt): Removed.
10568         (tree_if_convert_stmt): Removed.
10569         (predicate_bbs): New.
10570         (if_convertible_loop_p): Call predicate_bbs.
10571         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
10572         now contains all the analysis part.
10573
10574 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10575
10576         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
10577         statements in the analysis part.
10578         (tree_if_convert_stmt): Update comment.
10579         (remove_conditions_and_labels): New.
10580         (combine_blocks): Call remove_conditions_and_labels.
10581         (tree_if_conversion): Update comment.
10582
10583 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10584
10585         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
10586         than 2 predecessors or more than 2 successors.
10587
10588 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10589
10590         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
10591         of loops in which the data dependence analysis fails.
10592
10593 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10594
10595         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
10596         CDI_POST_DOMINATORS.
10597         (tree_if_conversion): Same.
10598
10599 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10600
10601         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
10602
10603 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
10604
10605         * tree-if-conv.c: Update copyright years.  Fix comments.
10606         Fix indentation.
10607
10608 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
10609
10610         * builtin-types.def (BT_INT128): New primitive type.
10611         (BT_UINT128): Likewise.
10612         * c-common.c (c_common_r): Add __int128 keyword.
10613         (c_common_type_for_size): Handle __int128.
10614         (c_common_type_for_mode): Likewise.
10615         (c_common_signed_or_unsigned_type): Likewise.
10616         (c_common_nodes_and_builtins): Add builtin type
10617         if target supports 128-bit integer scalar.
10618         * c-common.h (enum rid): Add RID_INT128.
10619         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
10620         if target supports 128-bit integer scalar.
10621         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
10622         (finish_declspecs): Likewise.
10623         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
10624         (c_token_starts_declspecs): Likewise.
10625         (c_parser_declspecs): Likewise.
10626         (c_parser_attributes): Likewise.
10627         (c_parser_objc_selector): Likewise.
10628         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
10629         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
10630         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
10631         * tree.c (make_or_reuse_type): Likewise.
10632         (make_unsigned_type): Likewise.
10633         (build_common_tree_nodes_2): Likewise.
10634         * tree.h (enum integer_type_kind): Add itk_int128 and
10635         itk_unsigned_int128.
10636         (int128_integer_type_node): New define.
10637         (int128_unsigned_type_node): New define.
10638         * doc/extend.texi: Add documentation about __int128 type.
10639
10640 2010-05-26  Richard Guenther  <rguenther@suse.de>
10641
10642         * tree-ssa-sccvn.c (copy_nary): Adjust.
10643         (copy_phis): Rename to ...
10644         (copy_phi): ... this.  Adjust.
10645         (copy_references): Rename to ...
10646         (copy_reference): ... this.  Adjust.
10647         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
10648         result into the valid table.
10649
10650 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10651
10652         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
10653         insn-config.h, insn-codes.h, recog.h, and optabs.h.
10654
10655 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10656
10657         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
10658
10659 2010-05-26  Richard Guenther  <rguenther@suse.de>
10660
10661         * opts.c (common_handle_option): Handle OPT_Ofast.
10662
10663 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
10664
10665         * diagnostic.c: Don't include opts.h.
10666         (permissive_error_option): Define.
10667         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
10668         for classify_diagnostic.  Don't use memset for
10669         classify_diagnostic.  Initialize new and recently added fields.
10670         (diagnostic_classify_diagnostic): Use context->n_opts instead of
10671         N_OPTS.
10672         (diagnostic_report_diagnostic): Pass context parameter to
10673         diagnostic_report_warnings_p.  Use option_enabled and option_name
10674         hooks from context.
10675         (emit_diagnostic): Use permissive_error_option.
10676         (permerror): Likewise.
10677         * diagnostic.h: Don't include options.h.
10678         (struct diagnostic_context): Add n_opts, opt_permissive,
10679         inhibit_warnings, warn_system_headers, option_enabled and
10680         option_name fields.  Change classify_diagnostic to a pointer.
10681         * opts-diagnostic.h: New file.
10682         * opts.c: Include opts-diagnostic.h.
10683         (common_handle_option): Set global_dc fields for -Wfatal-errors,
10684         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
10685         (option_name): New function.
10686         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
10687         (c_common_handle_option): Set global_dc->permissive for
10688         -fpermissive.
10689         * c-common.c (c_cpp_error): Save and restore
10690         global_dc->warn_system_headers, not variable warn_system_headers.
10691         * toplev.c: Include opts-diagnostic.h.
10692         (general_init): Update call to diagnostic_initialize.  Set
10693         global_dc->show_column, global_dc->option_enabled and
10694         global_dc->option_name.
10695         (process_options): Don't set global_dc fields here.
10696         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
10697         (diagnostic.o, opts.o, toplev.o): Update dependencies.
10698
10699 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10700
10701         * config/picochip/picochip.md (movsi): Split a movsi from a
10702         const after reload.
10703
10704 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10705
10706         * ggc-zone.c: Update copyright year.
10707         (poison_region): Mark memory for Valgrind as undefined before
10708         memset () call and inaccessible afterwards.
10709         (ggc_pch_total_size): Change type of i to int.
10710
10711 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10712
10713         * ggc-common.c (ggc_free_overhead): Allow empty slot.
10714
10715 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10716
10717         * ggc-common.c: Update copyright year.
10718         (ggc_rlimit_bound): Remove prototype.  Compile only if
10719         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
10720         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
10721         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
10722         (ggc_min_heapsize_heuristic): Likewise.
10723
10724 2010-05-26  Richard Guenther  <rguenther@suse.de>
10725
10726         PR rtl-optimization/44164
10727         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
10728         no-common access-path disambiguation.
10729         (indirect_ref_may_alias_decl_p): Adjust.
10730         (indirect_refs_may_alias_p): Likewise.
10731         (refs_may_alias_p_1): Likewise.
10732
10733 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10734
10735         * c-typeck.c: Do not include expr.h.
10736
10737 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10738
10739         * rtl.h (decl_default_tls_model): Move prototype from here...
10740         * output.h: ...to here.
10741         * c-decl.c: Do not include rtl.h.
10742         * c-pragma.c: Likewise.
10743         * c-parser.c: Likewise.
10744         * c-gimplify.c: Likewise.  And also not hard-reg-set.
10745         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
10746         FIXME note for it.  Add a FIXME note for expr.h.
10747         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
10748         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
10749         defined.
10750
10751 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
10752
10753         PR target/44199
10754         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
10755         or total_size is larger than red zone size for non-V4 ABI, emit a
10756         stack_tie resp. frame_tie insn before stack pointer restore.
10757         * config/rs6000/rs6000.md (frame_tie): New insn.
10758
10759 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
10760
10761         * function.h (struct function): Add can_throw_non_call_exceptions bit.
10762         * lto-streamer-in.c (input_function): Stream it in.
10763         * lto-streamer-out.c (output_function): Stream it out.
10764         * function.c (allocate_struct_function): Set it.
10765         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
10766         for flag_non_call_exceptions.
10767         * cfgbuild.c (control_flow_insn_p): Likewise.
10768         (make_edges): Likewise.
10769         * cfgexpand.c (expand_stack_alignment): Likewise.
10770         * combine.c (distribute_notes): Likewise.
10771         * cse.c (cse_extended_basic_block): Likewise.
10772         * except.c (insn_could_throw_p): Likewise.
10773         * gcse.c (simple_mem): Likewise.
10774         * ipa-pure-const.c (check_call): Likewise.
10775         (check_stmt ): Likewise.
10776         * lower-subreg.c (lower-subreg.c): Likewise.
10777         * optabs.c (emit_libcall_block): Likewise.
10778         (prepare_cmp_insn): Likewise.
10779         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
10780         * postreload.c (rest_of_handle_postreload): Likewise.
10781         * reload1.c (reload_as_needed): Likewise.
10782         (emit_input_reload_insns): Likewise.
10783         (emit_output_reload_insns): Likewise.
10784         (fixup_abnormal_edges): Likewise.
10785         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
10786         * store-motion.c (find_moveable_store): Likewise.
10787         * tree-eh.c (stmt_could_throw_p): Likewise.
10788         (tree_could_throw_p): Likewise.
10789         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10790         * config/arm/arm.c (arm_expand_prologue): Likewise.
10791         (thumb1_expand_prologue): Likewise.
10792         * config/rx/rx.md (cbranchsf4): Likewise.
10793         (cmpsf): Likewise.
10794         * config/s390/s390.c (s390_emit_prologue): Likewise.
10795         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
10796         (inline_forbidden_into_p): New predicate.
10797         (expand_call_inline): Use it to forbid inlining.
10798         (tree_can_inline_p): Likewise.
10799
10800 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10801
10802         * config/i386/i386-c.c: Do not include rtl.h.
10803         * config/i386/t-i386: Update dependencies.
10804
10805 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10806
10807         * attribs.c: Do not include rtl.h.
10808         * Makefile.in: Update dependencies.
10809
10810 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
10811
10812         * double-int.h (double_int_and): New.
10813         * combine.c (try_combine): Clean up, use double_int_* and
10814         immed_double_int_const functions.
10815
10816 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10817
10818         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
10819         stderr to /dev/null instead of grep -q.
10820         * configure: Regenerate.
10821
10822 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10823
10824         * Makefile.in (EXCEPT_H): Fix typo.
10825
10826 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
10827
10828         * ira-build.c (update_conflict_hard_reg_costs): New.
10829         (ira_build): Call update_conflict_hard_reg_costs.
10830
10831 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
10832
10833         PR debug/41371
10834         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
10835         ENABLE_CHECKING.
10836         (intersect_loc_chains): Walk the s2var's loc_chain together
10837         with s1node chain as long as the locations are equal, don't
10838         call find_loc_in_1pdv in that case.
10839
10840         PR debug/42801
10841         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
10842         (copy_bind_expr): ... instead of here.
10843         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
10844         if the block hasn't been remapped.
10845         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
10846         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
10847
10848 2010-05-25  Richard Guenther  <rguenther@suse.de>
10849
10850         PR middle-end/44069
10851         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
10852         out-of-bounds array accesses.
10853
10854 2010-05-25  Richard Guenther  <rguenther@suse.de>
10855
10856         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
10857         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
10858         (run_gcc): Re-organize to make cleanup easier.
10859
10860 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10861
10862         * config/s390/s390.c (optimization_options): Fix and move the
10863         flag_prefetch_loop_arrays override ...
10864         (override_options): ... here.
10865
10866 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
10867
10868         * diagnostic.c: Don't include plugin.h.
10869         (diagnostic_report_diagnostic): Don't handle plugins specially
10870         here.  Pass context to internal_error callback.
10871         * diagnostic.h (struct diagnostic_context): Add context parameter
10872         to internal_error callback.
10873         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
10874         * plugin.h (struct diagnostic_context): Declare.
10875         (warn_if_plugins, plugins_internal_error_function): Declare.
10876         * toplev.c (general_init): Set global_dc->internal_error.
10877         * Makefile.in (diagnostic.o): Update dependencies.
10878
10879 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
10880
10881         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
10882         * config/rs6000/t-darwin64: New.
10883         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
10884         build crt2.
10885
10886 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
10887
10888         PR 44203
10889         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
10890         match the original (and intended) behaviour before r159557.  This
10891         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
10892         in two ways.
10893
10894 2010-05-25  Richard Guenther  <rguenther@suse.de>
10895
10896         * doc/invoke.texi: Document -Ofast.
10897         * target.h (struct gcc_target): Add handle_ofast.
10898         * target-def.h (TARGET_HANDLE_OFAST): Add.
10899         (TARGET_INITIALIZER): Adjust.
10900         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
10901         * common.opt (Ofast): Add.
10902
10903 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
10904
10905         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
10906         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
10907
10908 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
10909
10910         PR target/43610
10911         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
10912         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
10913         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
10914         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
10915
10916 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
10917
10918         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
10919         DW_OP_minus with negated offset instead of DW_OP_plus.
10920         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
10921
10922 2010-05-25  Wei Guozhi  <carrot@google.com>
10923
10924         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
10925         tst instruction and a new alternative.
10926         * config/arm/constraints.md (Pu): New constraint.
10927
10928 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
10929
10930         * function.c (assign_stack_local_1): Initialize variable
10931         to avoid warning when bootstrapping at -O3.
10932
10933 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
10934
10935         * configure.ac (all_lang_makefiles): Remove everything related to it.
10936         * configure: Regenerate.
10937         * Makefile.in: Fix reference to ada Make-lang.in.
10938         Remove support for LANG_MAKEFILES.
10939
10940 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
10941             Sandra Loosemore  <sandra@codesourcery.com>
10942
10943         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
10944         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
10945         description.  Add arm_neon_fp16_ok.
10946         (Add Options): Add arm_neon and arm_neon_fp16.
10947
10948 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
10949
10950         * diagnostic.c: Don't include flags.h.
10951         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
10952         context parameters.  Check flags in the context passed as a parameter.
10953         (diagnostic_build_prefix): Add context parameter.  Check
10954         show_column flag in context.
10955         (diagnostic_action_after_output): Check fatal_errors flag in context.
10956         (diagnostic_report_current_module): Check show_column flag in context.
10957         (default_diagnostic_starter): Update call to
10958         diagnostic_build_prefix.
10959         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
10960         (emit_diagnostic): Pass context to permissive_error_kind.
10961         (permerror): Pass context to permissive_error_kind.
10962         * diagnostic.h (struct diagnostic_context): Add show_column,
10963         pedantic_errors, permissive and fatal_errors fields.
10964         (diagnostic_build_prefix): Update prototype.
10965         * langhooks.c
10966         * toplev.c (process_options): Set flags in global_dc from
10967         flag_show_column, flag_pedantic_errors, flag_permissive,
10968         flag_fatal_errors.
10969         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
10970         to diagnostic_build_prefix.
10971         * Makefile.in (diagnostic.o): Update dependencies.
10972
10973 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10974
10975         * config/i386/ia32intrin.h (__crc32q): Define only if
10976         __SSE4_2__ is defined.
10977
10978 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
10979
10980         PR target/44132
10981         PR middle-end/43602
10982         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
10983         DECL_VISIBILITY_SPECIFIED.
10984         (emutls_decl): Set DECL_PRESERVE_P and copy
10985         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
10986         (emutls_finalize_control_var): New callback.
10987         (emutls_finish): Finalize emutls control variables.
10988         * toplev.c (compile_file): Move the call to emutls_finish ()
10989         before varpool_assemble_pending_decls ().
10990
10991 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
10992
10993         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
10994         added to the preprocessor condition.
10995
10996 2010-05-24  Paul Brook  <paul@codesourcery.com>
10997
10998         * gengtype-lex.l: Add HARD_REG_SET.
10999         * expr.c (expand_expr_real_1): Record writes to hard registers.
11000         * function.c (rtl_data): Add asm_clobbers.
11001         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
11002         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
11003         Use crtl->asm_clobbers.
11004
11005 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11006
11007         * doc/makefile.texi (Makefile): Mention stages 'profile'
11008         and 'feedback' for profiledbootstrap.
11009
11010 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11011
11012         PR target/44245
11013         * config/i386/i386.c (def_builtin): Properly check
11014         OPTION_MASK_ISA_64BIT.
11015
11016 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
11017
11018         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
11019         typedefs with different but compatible types.  Allow duplicate
11020         typedefs with the same type except for pedantic non-C1X, but give
11021         warning for variably modified types.
11022         * c-typeck.c (tagged_types_tu_compatible_p,
11023         function_types_compatible_p, type_lists_compatible_p,
11024         comptypes_internal): Add parameter different_types_p; set
11025         *different_types_p for different but compatible types.  All
11026         callers changed.
11027         (comptypes_check_different_types): New.
11028         * c-tree.h (comptypes_check_different_types): Declare.
11029
11030 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11031
11032         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
11033         * jump.c: Include basic-block.h.
11034         * profile.c: Likewise.
11035         * tree-profile.c: Likewise.
11036         * coverage.c: Likewise.
11037         * basic-block.h (optimize_function_for_size_p): Move to function.h.
11038         (optimize_function_for_speed_p): Likewise.
11039         * function.h (optimize_function_for_size_p,
11040         optimize_function_for_speed_p): Moved here from basic-block.h.
11041         * Makefile.in: Update dependencies.
11042
11043 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11044
11045         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
11046         before calling make; allow override through $MAKE.
11047         * doc/invoke.texi (Optimize Options): Document override.
11048
11049 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
11050
11051         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
11052         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11053         (rs6000_mode_dependent_address_ptr): Make static.
11054         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11055         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
11056         Remove.
11057
11058 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
11059
11060         PR target/43869
11061         * config/i386/i386.c: Make sure that the correct regparm is passed.
11062
11063 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11064
11065         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
11066         * sbitmap.c: ...to here to internalize sbitmap element access.
11067         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
11068         Explain why basic-block.h is included.
11069         * function.h: Include tm.h for CUMULATIVE_ARGS.
11070         * Makefile.in: Update dependencies.
11071
11072 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11073
11074         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
11075         New core types.
11076         * sbitmap.h (struct sbitmap_def): Do not typedef here.
11077         * sbitmap.c: Include sbitmap.h.
11078         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
11079         hard-reg-set.h.  Split everything related to regsets out from here...
11080         * regset.h: ...to here.  New file.
11081         * df.h: Include regset.h and sbitmap.h.
11082         * tree-flow.h: Likewise.
11083         * cfgloop.h: Likewise.
11084         * except.h: Do not include sbitmap.h.  Include hashtab.h.
11085         * cgraph.h: Include vec.h and function.h.
11086         * reload.h (struct insn_chain): Change types of live_throughout
11087         and dead_or_set from regset_head to bitmap_head.
11088         (compute_use_by_pseudos): Be defined also if regset.h is not included.
11089         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
11090         spilled_regs from regset_head to bitmap_head to avoid dependency
11091         in regset.h.
11092         * sel-sched-ir.h: Include regset.h.
11093         * reload.c: Include df.h before reload.h.
11094         * caller-save.c: Likewise.
11095         * reload1.c: Likewise.
11096         * ira.c: Likewise.
11097         (mark_elimination): Update type of r to bitmap, consistent with
11098         DF_LR_IN.
11099         * dominance.c: Include bitmap.h.
11100         * modulo-sched.c: Include df.h.
11101         * cfganal.c: Include bitmap.h and sbitmap.h.
11102         * cfgbuild.c: Include sbitmap.h.
11103         * lcm.c: Include sbitmap.h.
11104         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
11105         * domwalk.c: Include sbitmap.h, exclude ggc.h.
11106         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
11107         * cselib.c: Include bitmap.h.
11108         * tree-optimize.c: Include regset.h.
11109         * stmt.c: Include bitmap.h.
11110         * Makefile.in: Update dependencies.
11111
11112 2010-05-22  Jan Hubicka  <jh@suse.cz>
11113
11114         * cgraph.h (struct varpool_node): Add same_comdat_group.
11115         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
11116         pointer.
11117         (output_varpool): Update call of lto_output_varpool_node.
11118         (input_varpool): Read same_comdat_group pointer.
11119         (input_varpool_1): Fixup same_comdat_group pointer.
11120         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
11121         group is needed, all are.
11122         * varpool.c (varpool_remove_node): Remove node from same comdat group
11123         linklist too.
11124         (varpool_analyze_pending_decls): Walk same comdat groups.
11125
11126 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11127
11128         * rtl.h (union rtunion_def): Remove rt_bit member.
11129         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
11130         * print-rtl (print_rtx): Do not print the member.
11131         * gengtype.c (adjust_field_rtx_def): Do not handle it.
11132         * gengenrtl.c (type_from_format): Likewise.
11133         (accessor_from_format): Likewise.
11134
11135 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
11136
11137         * dbgcnt.c: Include toplev.h instead of errors.h.
11138         * ira-emit.c: Don't include errors.h.
11139         * ira.c: Include toplev.h instead of errors.h.
11140         * lto-compress.c: Include toplev.h instead of errors.h.
11141         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
11142         ira.o, dbgcnt.o): Update dependencies.
11143
11144 2010-05-22  Richard Guenther  <rguenther@suse.de>
11145
11146         * gimple.c (gimple_types_compatible_p): Check type qualifications
11147         before merging pointer to complete and pointer to incomplete type.
11148         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
11149         we use our own resolution algorithm.  The gold linker plugin
11150         doesn't do the job we want it to do here.
11151
11152 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
11153
11154         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11155         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11156         (sparc_mode_dependent_address_p): New function.
11157
11158 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11159
11160         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
11161
11162         * timevar.c: Do not include any core headers.
11163         (timevar_print): De-i18n-ize.
11164         (print_time): Likewise.
11165         * timevar.h (timevar_push, timevar_pop): Make inline functions.
11166
11167 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
11168
11169         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
11170         langhooks-def.h.
11171         (diagnostic_initialize): Initialize x_data not last_function.
11172         (diagnostic_report_current_function): Move to tree-diagnostic.c.
11173         (default_diagnostic_starter): Call
11174         diagnostic_report_current_module not
11175         diagnostic_report_current_function.
11176         (diagnostic_report_diagnostic): Initialize x_data not
11177         abstract_origin.
11178         (verbatim): Likewise.
11179         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
11180         x_data.
11181         (struct diagnostic_context): Change last_function to x_data.
11182         (diagnostic_auxiliary_data): Replace with
11183         diagnostic_context_auxiliary_data and
11184         diagnostic_info_auxiliary_data.
11185         (diagnostic_last_function_changed, diagnostic_set_last_function,
11186         diagnostic_report_current_function): Move to tree-diagnostic.h.
11187         (print_declaration, dump_generic_node, print_generic_stmt,
11188         print_generic_stmt_indented, print_generic_expr,
11189         print_generic_decl, debug_c_tree, dump_omp_clauses,
11190         print_call_name, debug_generic_expr, debug_generic_stmt,
11191         debug_tree_chain, default_tree_printer): Move to
11192         tree-pretty-print.h.
11193         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
11194         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
11195         gimple-pretty-print.h.
11196         * pretty-print.c: Don't include tree.h
11197         (pp_base_format): Don't handle %K here.
11198         (pp_base_tree_identifier): Move to tree-pretty-print.c.
11199         * pretty-print.h (text_info): Change abstract_origin to x_data.
11200         (pp_tree_identifier, pp_unsupported_tree,
11201         pp_base_tree_identifier): Move to tree-pretty-print.h.
11202         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
11203         tree-pretty-print.h: New files.
11204         * tree-pretty-print.c: Include tree-pretty-print.h.
11205         (percent_K_format): New.  Moved from pretty-print.c.
11206         (pp_base_tree_identifier): Move from pretty-print.c.
11207         * c-objc-common.c: Include tree-pretty-print.h.
11208         (c_tree_printer): Handle %K here.
11209         * langhooks.c: Include tree-diagnostic.h.
11210         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
11211         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
11212         (default_tree_printer): Handle %K using percent_K_format.
11213         (general_init): Use default_tree_diagnostic_starter.
11214         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
11215         (free_lang_data): Use default_tree_diagnostic_starter.
11216         * c-pretty-print.c: Include tree-pretty-print.h.
11217         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11218         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11219         * dwarf2out.c: Include tree-pretty-print.h.
11220         * except.c: Include tree-pretty-print.h.
11221         * gimple-pretty-print.c: Include tree-pretty-print.h and
11222         gimple-pretty-print.h.
11223         * gimplify.c: Include tree-pretty-print.h.
11224         * graphite-poly.c: Include tree-pretty-print.h and
11225         gimple-pretty-print.h.
11226         * ipa-cp.c: Include tree-pretty-print.h.
11227         * ipa-inline.c: Include gimple-pretty-print.h.
11228         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11229         * ipa-pure-const.c: Include gimple-pretty-print.h.
11230         * ipa-struct-reorg.c: Include tree-pretty-print.h and
11231         gimple-pretty-print.h.
11232         * ipa-type-escape.c: Include tree-pretty-print.h.
11233         * print-rtl.c: Include tree-pretty-print.h.
11234         * print-tree.c: Include gimple-pretty-print.h.
11235         * sese.c: Include tree-pretty-print.h.
11236         * tree-affine.c: Include tree-pretty-print.h.
11237         * tree-browser.c: Include tree-pretty-print.h.
11238         * tree-call-cdce.c: Include gimple-pretty-print.h.
11239         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11240         * tree-chrec.c: Include tree-pretty-print.h.
11241         * tree-data-ref.c: Include tree-pretty-print.h and
11242         gimple-pretty-print.h.
11243         * tree-dfa.c: Include tree-pretty-print.h.
11244         * tree-if-conv.c: Include tree-pretty-print.h and
11245         gimple-pretty-print.h.
11246         * tree-inline.c: Include tree-pretty-print.h.
11247         * tree-into-ssa.c: Include tree-pretty-print.h and
11248         gimple-pretty-print.h.
11249         * tree-nrv.c: Include tree-pretty-print.h.
11250         * tree-object-size.c: Include tree-pretty-print.h and
11251         gimple-pretty-print.h.
11252         * tree-outof-ssa.c: Include tree-pretty-print.h and
11253         gimple-pretty-print.h.
11254         * tree-parloops.c: Include tree-pretty-print.h and
11255         gimple-pretty-print.h.
11256         * tree-predcom.c: Include tree-pretty-print.h and
11257         gimple-pretty-print.h.
11258         * tree-scalar-evolution.c: Include tree-pretty-print.h and
11259         gimple-pretty-print.h.
11260         * tree-sra.c: Include tree-pretty-print.h.
11261         * tree-ssa-address.c: Include tree-pretty-print.h.
11262         * tree-ssa-alias.c: Include tree-pretty-print.h.
11263         * tree-ssa-ccp.c: Include tree-pretty-print.h and
11264         gimple-pretty-print.h.
11265         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
11266         * tree-ssa-copy.c: Include tree-pretty-print.h and
11267         gimple-pretty-print.h.
11268         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
11269         * tree-ssa-dce.c: Include tree-pretty-print.h and
11270         gimple-pretty-print.h.
11271         * tree-ssa-dom.c: Include tree-pretty-print.h and
11272         gimple-pretty-print.h.
11273         * tree-ssa-dse.c: Include gimple-pretty-print.h.
11274         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
11275         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
11276         * tree-ssa-live.c: Include tree-pretty-print.h and
11277         gimple-pretty-print.h.
11278         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
11279         gimple-pretty-print.h.
11280         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
11281         gimple-pretty-print.h.
11282         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
11283         gimple-pretty-print.h.
11284         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
11285         gimple-pretty-print.h.
11286         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
11287         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
11288         * tree-ssa-operands.c: Include tree-pretty-print.h and
11289         gimple-pretty-print.h.
11290         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
11291         gimple-pretty-print.h.
11292         * tree-ssa-pre.c: Include tree-pretty-print.h and
11293         gimple-pretty-print.h.
11294         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
11295         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
11296         gimple-pretty-print.h.
11297         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
11298         gimple-pretty-print.h.
11299         * tree-ssa-sink.c: Include gimple-pretty-print.h.
11300         * tree-ssa-ter.c: Include tree-pretty-print.h and
11301         gimple-pretty-print.h.
11302         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
11303         * tree-ssa.c: Include tree-pretty-print.h and
11304         gimple-pretty-print.h.
11305         * tree-stdarg.c: Include gimple-pretty-print.h.
11306         * tree-switch-conversion.c: Include gimple-pretty-print.h.
11307         * tree-tailcall.c: Include tree-pretty-print.h and
11308         gimple-pretty-print.h.
11309         * tree-vect-data-refs.c: Include tree-pretty-print.h and
11310         gimple-pretty-print.h.
11311         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
11312         gimple-pretty-print.h.
11313         * tree-vect-loop.c: Include tree-pretty-print.h and
11314         gimple-pretty-print.h.
11315         * tree-vect-patterns.c: Include gimple-pretty-print.h.
11316         * tree-vect-slp.c: Include tree-pretty-print.h and
11317         gimple-pretty-print.h.
11318         * tree-vect-stmts.c: Include tree-pretty-print.h and
11319         gimple-pretty-print.h.
11320         * tree-vectorizer.c: Include tree-pretty-print.h.
11321         * tree-vrp.c: Include tree-pretty-print.h and
11322         gimple-pretty-print.h.
11323         * value-prof.c: Include tree-pretty-print.h and
11324         gimple-pretty-print.h.
11325         * var-tracking.c: Include tree-pretty-print.h.
11326         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
11327         (tree-diagnostic.o): New dependencies.
11328         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
11329         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
11330         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
11331         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
11332         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
11333         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
11334         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
11335         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
11336         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
11337         tree-ssa-address.o, tree-ssa-loop-niter.o,
11338         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
11339         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
11340         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
11341         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
11342         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
11343         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
11344         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
11345         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
11346         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
11347         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
11348         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
11349         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
11350         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
11351         tree-switch-conversion.o, var-tracking.o, value-prof.o,
11352         cfgexpand.o, pretty-print.o): Update dependencies.
11353
11354 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
11355
11356         * tree-ssa-structalias.c: Remove tm_p.h from include.
11357
11358 2010-05-21  Jeff Law  <law@redhat.com>
11359
11360         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
11361
11362 2010-05-21  Jason Merrill  <jason@redhat.com>
11363
11364         * tree-eh.c (cleanup_is_dead_in): New.
11365         (lower_try_finally): Don't generate a dead cleanup region.
11366         (lower_cleanup): Likewise.
11367
11368 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
11369
11370         PR debug/44223
11371         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
11372         unchain each use from the cyclic next_regno_use chain first.
11373
11374 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11375
11376         * real: Do not include gmp.h, mpfr.h, and mpc.h.
11377         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
11378         (real_value_negate, real_value_abs): New prototypes.
11379         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
11380         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
11381         new include file for interface between MPFR and REAL_VALUE_TYPE.
11382         * real.c: Include realmpfr.h.
11383         (real_arithmetic2): Remove legacy function.
11384         (real_value_negate): New.
11385         (real_value_abs): New.
11386         (mfpr_from_real, real_from_mpfr): Move from here...
11387         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
11388         * builtins.c: Include realmpfr.h.
11389         * fold-const.c: Include realmpfr.h.
11390         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
11391         (fold_negate_const): Likewise.
11392         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
11393         * toplev.c: Include realmpfr.h.
11394         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
11395         and real_value_negate.
11396         * fixed-value.c (check_real_for_fixed_mode): Likewise.
11397         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
11398         (vfp3_const_double_index): Likewise.
11399         (arm_print_operand): Likewise.
11400         * Makefile.in: Update dependencies.
11401
11402 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11403
11404         * config/s390/s390.c (override_options): Increase the default
11405         of max-completely-peel-times.
11406
11407 2010-05-21  Julian Brown  <julian@codesourcery.com>
11408             Mark Mitchell  <mark@codesourcery.com>
11409
11410         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
11411         sibling calls for Thumb-1.
11412         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
11413         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
11414         Thumb-2.
11415         (*call_insn, *call_value_insn): Don't use for Thumb-2.
11416         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
11417         for Thumb-2.
11418         (return): New expander.
11419         (*arm_return): New name for ARM return insn.
11420         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
11421
11422 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
11423
11424         * config.gcc (sparc64-*-rtems*): New target.
11425
11426 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
11427
11428         * tree.c (build_function_decl_skip_args): Fix grammar.
11429         (build_function_type_list_1): Fix typos, adjust formatting.
11430
11431 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11432
11433         * tree.h: Include real.h and fixed-value.h as basic datatypes.
11434         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
11435         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
11436         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
11437         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
11438         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
11439         tree-pretty-print.c, tree-loop-distribution.c,
11440         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
11441         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
11442         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
11443         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
11444         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
11445         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
11446         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
11447         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
11448         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
11449         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
11450         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
11451         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
11452         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
11453         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
11454         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
11455         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
11456         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
11457         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
11458         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
11459         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
11460         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
11461         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
11462         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
11463         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
11464         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
11465         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
11466         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
11467         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
11468         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
11469         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
11470         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
11471         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
11472         config/score/score7.c, config/score/score.c, config/arm/arm.c,
11473         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
11474         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
11475         config/bfin/bfin.c: Clean up redundant includes.
11476         * Makefile.in: Update accordingly.
11477
11478 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
11479
11480         PR middle-end/44204
11481         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
11482         statement has no arguments.
11483
11484 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
11485
11486         PR/44139
11487         * varasm.c (emutls_decl): Merge attributes to new decl.
11488
11489 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
11490
11491         PR middle-end/44101
11492         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
11493         around the uniquized constructor if its type requires a conversion.
11494
11495 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
11496
11497         PR debug/44205
11498         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
11499         at -O0 goto_locus of any of the incoming edges differs from
11500         goto_locus of outgoing edge, or gimple_location of any of the
11501         labels differs.
11502
11503 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
11504
11505         * ira.c (ira_non_ordered_class_hard_regs): Define.
11506         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
11507         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
11508         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
11509         cost of unaligned hard regs when allocating multi-reg pseudos.
11510
11511 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
11512
11513         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
11514         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
11515         for TARGET_NO_FLOAT.
11516         * config/mips/mips.c (mips_file_start): Expand conditional expression
11517         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
11518         (mips_override_options): Move -mno-float override -msoft-float and
11519         -mhard-float.
11520         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
11521         Condition(TARGET_SUPPORTS_NO_FLOAT).
11522         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
11523         __mips_no_float here.
11524         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
11525         (TARGET_SUPPORTS_NO_FLOAT): Define.
11526         * config/mips/sdemtk.opt: Delete.
11527
11528 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
11529
11530         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
11531
11532 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
11533
11534         PR target/43733
11535         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
11536         * configure: Regenerate.
11537         * config.in: Regenerate.
11538         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
11539         instead of sahf only for 64bit targets.
11540
11541 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
11542
11543         PR debug/44178
11544         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
11545         setup_ref_regs for DEBUG_INSNs.
11546
11547 2010-05-20  Jan Hubicka  <jh@suse.cz>
11548
11549         PR middle-end/44197
11550         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
11551
11552 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11553
11554         PR bootstrap/43870
11555         * df-scan.c (df_ref_compare): Stabilize sort.
11556
11557 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
11558
11559         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
11560         argument.  Don't use DW_OP_piece if offset is non-zero,
11561         put offset into second DW_OP_bit_piece argument.
11562         (dw_sra_loc_expr): Adjust callers.  For memory expressions
11563         compute offset.
11564
11565 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
11566
11567         PR target/44202
11568         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
11569         settings for 16-bit-constant "addo" alternative.
11570
11571 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
11572
11573         * config/mips/mips-dsp.md (add<DSPV:mode>3,
11574         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
11575
11576         PR target/43764
11577         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
11578         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
11579         Use it.
11580
11581 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
11582
11583         * diagnostic.c (FLOAT, FFS): Don't undefine.
11584         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
11585         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
11586         include ordering.
11587
11588 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
11589
11590         * combine.c (propagate_for_debug): Call make_compound_operation
11591         on the source value.
11592         (try_combine): When implementing a split chosen by find_split_point,
11593         either copy i2src or set it to null.  Assert that i2src is not null
11594         before substituting into CALL_INSN_FUNCTION_USAGE.
11595
11596 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
11597
11598         * double-int.h (double_int_ior): New function.
11599         * tree.h (build_int_cst_wide_type): Remove.
11600         * tree.c (build_int_cst_wide_type): Remove.
11601         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
11602         of build_int_cst_wide_type.
11603         * stor-layout.c (set_sizetype): (Ditto.).
11604         * dojump.c (do_jump): Use build_int_cstu instead of
11605         build_int_cst_wide_type.
11606
11607 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11608
11609         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
11610         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
11611         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
11612         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
11613         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
11614         propagate the 'data' argument to copy_tree_r.
11615         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
11616         Propagate 'data' argument to walk_tree.
11617         (copy_if_shared): New function.
11618         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
11619         (unmark_visited): New function.
11620         (unshare_body): Call copy_if_shared instead of doing it manually.
11621         (unvisit_body): Call unmark_visited instead of doing it manually.
11622
11623 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
11624
11625         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
11626         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
11627         * hooks.c: Likewise.
11628         * target-def.h (TARGET_FOLD_BUILTIN): Define to
11629         hook_tree_tree_int_treep_bool_null.
11630         * target.h (struct gcc_target): Update signature of fold_builtin
11631         field.
11632         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
11633         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
11634         instead of the call expression.
11635         (fold_builtin_call_array): Pass n and argarray directly.
11636         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
11637         consing a list.
11638         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
11639         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
11640         `i' and use it in place of `arity'.
11641         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
11642         Dereference `args' directly.
11643         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
11644
11645 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11646
11647         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11648         3dnow, sse3, sse2.
11649         (Directives): Document optional dg-require-effective-target
11650         selector.
11651
11652 2010-05-19  Richard Guenther  <rguenther@suse.de>
11653
11654         PR lto/44196
11655         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
11656
11657 2010-05-19  Richard Guenther  <rguenther@suse.de>
11658
11659         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
11660         * common.opt (fwhopr=): New.
11661         * opts.c (common_handle_option): Handle OPT_fwhopr.
11662         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
11663         * collect2.c (main): Match -fwhopr*.
11664         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
11665         Execute ltrans stage in parallel when jobs is bigger than 1.
11666
11667 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11668
11669         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
11670         pentiumpro on Solaris 8/x86 with Sun as.
11671         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
11672         hidden alias bug.
11673         (gcc_cv_as_ix86_quad): Check for .quad directive.
11674         * configure: Regenerate.
11675         * config.in: Regenerate.
11676         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
11677
11678 2010-05-19  Martin Jambor  <mjambor@suse.cz>
11679
11680         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
11681         also for indirect edges.  Actual printing moved...
11682         (ipa_print_node_jump_functions_for_edge): ...here.
11683         (ipa_compute_jump_functions): Renamed to
11684         ipa_compute_jump_functions_for_edge and made static.
11685         (ipa_compute_jump_functions): New function.
11686         (make_edge_direct_to_target): Check if the number of arguments on
11687         the newly direct edge is the same as the number of parametrs of
11688         the callee.
11689         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
11690         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
11691         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11692         analysis functions unconditionally, call the new
11693         ipa_analyze_params_uses on the node instead of every edge.
11694
11695 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
11696
11697         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
11698         to tree.
11699         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
11700         also checks for a constant int vs.  non-constant but
11701         loop-invariant steps.
11702         (find_or_create_group): Change the sort algorithm to only consider
11703         steps that are constant ints.
11704         (idx_analyze_ref): Adopt code to handle a tree instead of a
11705         HOST_WIDE_INT for step.
11706         (gather_memory_references_ref): Handle tree instead of int and be
11707         prepared to see a NULL_TREE.
11708         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
11709         prefetches if the step cannot be calculated at compile time.
11710         (issue_prefetch_ref): Issue prefetches for non-constant but
11711         loop-invariant steps.
11712
11713 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11714
11715         Revert:
11716         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11717
11718         * tree.h (build_call_list): Remove.
11719         * tree.c (build_call_list): Remove.
11720
11721 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11722
11723         * tree.h (build_call_list): Remove.
11724         * tree.c (build_call_list): Remove.
11725
11726 2010-05-18  Jan Hubicka  <jh@suse.cz>
11727
11728         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
11729
11730 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
11731
11732         PR rtl-optimization/43332
11733         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
11734
11735 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
11736
11737         * tree.h (build_int_cstu): Implement as static inline.
11738         * tree.c (build_int_cstu): Remove function.
11739         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
11740         sign extended.
11741
11742 2010-05-18  Richard Guenther  <rguenther@suse.de>
11743
11744         PR lto/44143
11745         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
11746         (debug): Initialize from -save-temps.
11747         (collect_execute): Print command-line when verbose.
11748         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
11749         for ltrans invocation.  Produce -dumpbase flag again.
11750         (process_args): Remove.
11751         (main): Simplify.
11752         * collect2.c (maybe_run_lto_and_relink): Only pass object
11753         files to lto-wrapper.
11754         * gcc.c (LINK_COMMAND_SPEC): Likewise.
11755
11756 2010-05-18  Jan Hubicka  <jh@suse.cz>
11757
11758         * opts.c (decode_options): Do not disable whopr at ipa_cp.
11759         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
11760
11761 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11762
11763         PR lto/44184
11764         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
11765         in a GIMPLE_ASM.
11766         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
11767         in a GIMPLE_ASM.
11768
11769 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
11770
11771         PR debug/41371
11772         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
11773         rtx_equal_p inline.
11774
11775 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11776
11777         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
11778         lto-macho as lto_binary_reader.
11779
11780         * darwin.c (darwin_asm_named_section): Do not add assembler comment
11781         after .section directive; just print it before the directive instead.
11782
11783 2010-05-17  Jan Hubicka  <jh@suse.cz>
11784
11785         * cgraph.c (cgraph_create_virtual_clone): Only check
11786         versionable_function_p when not in wpa and checking is enabled.
11787         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
11788         there are no more functions to materialize.
11789
11790 2010-05-17  Jan Hubicka  <jh@suse.cz>
11791
11792         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
11793         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
11794         New functions.
11795         (output_cgraph): Call output_cgraph_opt_summary.
11796         (input_cgrpah): Call input_cgraph_opt_summary.
11797         (output_cgraph_opt_summary_p, output_node_opt_summary,
11798         input_node_opt_summary, input_cgraph_opt_section): New functions.
11799         * lto-section-in.c (lto_section_name): Add cgraphopt.
11800         * tree-inline.c (tree_function_versioning): Handle parm_num.
11801         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
11802         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
11803
11804 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
11805
11806         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
11807         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
11808         the insn to prefetch ratio heuristic to loops with known trip count.
11809
11810 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
11811
11812         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
11813         (schedule_prefetches): Do not generate a prefetch if the unroll factor
11814         is far from what is required by the prefetch.
11815
11816 2010-05-17  Jan Hubicka  <jh@suse.cz>
11817
11818         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
11819         (ipcp_estimate_growth): Likewise.
11820         (ipcp_const_param_count): Likewise.
11821         (ipcp_insert_stage): Likewise.
11822         * ipa-prop.c (visit_load_for_mod_analysis): New function.
11823         (visit_store_addr_for_mod_analysis): Set used flag.
11824         (ipa_detect_param_modifications): Set used flag for SSE params;
11825         update use of walk_stmt_load_store_addr_ops.
11826         (ipa_print_node_params): Print used flag.
11827         (ipa_write_node_info): Stream used flag.
11828         (ipa_read_node_info): Likewise.
11829         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
11830         (ipa_is_param_used): New function.
11831         (lto_ipa_fixup_call_notes): Remove unused declaration.
11832
11833 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11834
11835         PR target/44074
11836         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
11837         * configure: Regenerate.
11838         * config.in: Regenerate.
11839         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
11840         !HAVE_AS_IX86_REP_LOCK_PREFIX.
11841         Don't emit whitespace.
11842         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
11843         (*rep_movsi): Likewise.
11844         (*rep_movsi_rex64): Likewise.
11845         (*rep_movqi): Likewise.
11846         (*rep_movqi_rex64): Likewise.
11847         (*rep_stosdi_rex64): Likewise.
11848         (*rep_stossi): Likewise.
11849         (*rep_stossi_rex64): Likewise.
11850         (*rep_stosqi): Likewise.
11851         (*rep_stosqi_rex64): Likewise.
11852         (*cmpstrnqi_nz_1): Use {%;} after repz.
11853         (*cmpstrnqi_nz_rex_1): Likewise.
11854         (*cmpstrnqi_1): Likewise.
11855         (*cmpstrnqi_rex_1): Likewise.
11856         (*strlenqi_1): Use {%;} after repnz.
11857         (*strlenqi_rex_1): Likewise.
11858         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
11859         (*sync_compare_and_swap<mode>): Likewise.
11860         (sync_double_compare_and_swap<mode>): Likewise.
11861         (*sync_double_compare_and_swapdi_pic): Likewise.
11862         (sync_old_add<mode>): Likewise.
11863         (sync_add<mode>): Likewise.
11864         (sync_sub<mode>): Likewise.
11865         (sync_<code><mode>): Likewise.
11866
11867 2010-05-17  Martin Jambor  <mjambor@suse.cz>
11868
11869         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
11870         otr_token and polymorphic.
11871         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
11872         (cgraph_clone_edge): Copy the above fields.
11873         * tree.c (get_binfo_at_offset): New function.
11874         * tree.h (get_binfo_at_offset): Declare.
11875         * ipa-prop.h (enum jump_func_type): Added known_type jump function
11876         type, reordered items, updated comments.
11877         (union jump_func_value): Added base_type field, reordered fields.
11878         (enum ipa_lattice_type): Moved down in the file.
11879         (struct ipa_param_descriptor): New field polymorphic.
11880         (ipa_is_param_polymorphic): New function.
11881         * ipa-prop.c: Include gimple.h and gimple-fold.h.
11882         (ipa_print_node_jump_functions): Print known type jump functions.
11883         (compute_complex_pass_through): Renamed to...
11884         (compute_complex_assign_jump_func): this.
11885         (compute_complex_ancestor_jump_func): New function.
11886         (compute_known_type_jump_func): Likewise.
11887         (compute_scalar_jump_functions): Create known type and complex ancestor
11888         jump functions.
11889         (ipa_note_param_call): New parameter polymorphic, set the corresponding
11890         flag in the call note accordingly.
11891         (ipa_analyze_call_uses): Renamed to...
11892         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
11893         variable var only in the block where it is used.
11894         (ipa_analyze_virtual_call_uses): New function.
11895         (ipa_analyze_call_uses): Likewise.
11896         (combine_known_type_and_ancestor_jfs): Likewise.
11897         (update_jump_functions_after_inlining): Implemented handling of a
11898         number of new jump function types combination.
11899         (print_edge_addition_message): Removed.
11900         (make_edge_direct_to_target): New function.
11901         (try_make_edge_direct_simple_call): Likewise.
11902         (try_make_edge_direct_virtual_call): Likewise.
11903         (update_call_notes_after_inlining): Renamed to...
11904         (update_indirect_edges_after_inlining): this.  Moved edge creation for
11905         indirect calls to try_make_edge_direct_simple_call, also calls
11906         try_make_edge_direct_virtual_call for virtual calls.
11907         (ipa_print_node_params): Changed the header message.
11908         (ipa_write_jump_function): Stream also known type jump functions.
11909         (ipa_read_jump_function): Likewise.
11910         (ipa_write_indirect_edge_info): Stream new fields in
11911         cgraph_indirect_call_info.
11912         (ipa_read_indirect_edge_info): Likewise.
11913         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
11914         GIMPLE_FOLD_H.
11915
11916 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11917
11918         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
11919
11920 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
11921
11922         * tree.h (CALL_EXPR_ARGS): Delete.
11923         (call_expr_arglist): Delete.
11924         * tree.c (call_expr_arglist): Delete.
11925         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
11926         targetm.fold_builtin.
11927         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
11928         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
11929         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
11930         arglist parameter.  Use CALL_EXPR_ARG.
11931         (picochip_expand_builtin_3op): Likewise.
11932         (picochip_expand_builtin_2opvoid): Likewise.
11933         (picochip_expand_array_get): Likewise.
11934         (picochip_expand_array_put): Likewise.
11935         (picochip_expand_array_testport): Likewise.
11936         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
11937         rather than arglist.
11938         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
11939         CALL_EXPR_ARGS.
11940         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
11941         than TREE_VALUE and TREE_CHAIN.
11942         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
11943         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
11944         the arglist.
11945
11946 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
11947
11948         PR bootstrap/42347
11949         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
11950         to have no fallthru edge.
11951
11952         PR middle-end/44102
11953         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
11954         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
11955         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
11956         add BARRIER after previous bb if needed.
11957
11958 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
11959
11960         * tree.c (build_function_type_list_1): Remove bogus assert condition.
11961
11962 2010-05-17  Alan Modra  <amodra@gmail.com>
11963
11964         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
11965         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
11966         with copy_reg rtx param.
11967         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
11968         Correct cases where code for ABI_V4 did not initialise the reg
11969         used to access frame.  Also leave frame_reg_rtx as sp for large
11970         frames that save no regs.
11971
11972 2010-05-17  Martin Jambor  <mjambor@suse.cz>
11973
11974         PR middle-end/44133
11975         * tree-sra.c (create_access_replacement): New parameter rename, mark
11976         the replaement for renaming only when it is true.
11977         (get_access_replacement): Pass true in the rename parameter of
11978         create_access_replacement.
11979         (get_unrenamed_access_replacement): New function.
11980         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
11981         replacement declaration from it.
11982
11983 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
11984
11985         * function.c (try_fit_stack_local, add_frame_space): New static
11986         functions.
11987         (assign_stack_local_1): Use them.  Look for opportunities to use
11988         space previously wasted on alignment.
11989         * function.h (struct frame_space): New.
11990         (struct rtl_data): Add FRAME_SPACE_LIST member.
11991         * reload1.c (something_was_spilled): New static variable.
11992         (alter_reg): Set it.
11993         (reload): Test it in addition to testing if the frame size changed.
11994
11995 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
11996
11997         * config/s390/s390.c: Define sane prefetch settings and activate
11998         flag_prefetch_loop_arrays on -O3.
11999         * config/s390/s390.h: Declare that read can use write prefetch.
12000
12001 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
12002
12003         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
12004         build.
12005
12006 2010-05-16  Jan Hubicka  <jh@suse.cz>
12007
12008         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
12009         function body; do not check stdarg field of struct function.
12010
12011 2010-05-16  Jan Hubicka  <jh@suse.cz>
12012
12013         * cgraph.c (dump_cgraph_node): Dump versionable flag.
12014         * cgraph.h (cgraph_local_info): Add versionable flag.
12015         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
12016         (ipcp_versionable_function_p): Use it.
12017         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12018         versionable flag.
12019
12020 2010-05-16  Jan Hubicka  <jh@suse.cz>
12021
12022         * cgraph.c (cgraph_clone_node): Take decl argument and insert
12023         clone into hash when it is different from orig.
12024         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
12025         * cgraph.h (cgraph_clone_node): Update prototype.
12026         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
12027         (lto_cgraph_encoder_delete): Delete body map.
12028         (lto_cgraph_encoder_size): Move to header.
12029         (lto_cgraph_encoder_encode_body_p,
12030         lto_set_cgraph_encoder_encode_body): New.
12031         (lto_output_node): Do not take written_decls argument; output clone_of
12032         pointer.
12033         (add_node_to): Add include_body_argument; call
12034         lto_set_cgraph_encoder_encode_body on master of the clone.
12035         (add_references): Update use of add_node_to.
12036         (compute_ltrans_boundary): Likewise.
12037         (output_cgraph): Do not create written_decls bitmap.
12038         (input_node): Take nodes argument; stream in clone_of correctly.
12039         (input_cgraph_1): Update use of input_node.
12040         * lto-streamer-out.c (lto_output): Use encoder info to decide
12041         what bodies to output.
12042         * ipa-inline.c (cgraph_clone_inlined_nodes,
12043         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
12044         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
12045         (lto_cgraph_encoder_size): Define here.
12046         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
12047         Declare.
12048
12049 2010-05-16  Richard Guenther  <rguenther@suse.de>
12050
12051         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
12052         -fipa-type-escape.
12053         * ipa-type-escape.c (gate_type_escape_vars): Run when
12054         -fipa-struct-reorg runs.
12055         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
12056         * common.opt (fipa-type-escape): Remove.
12057
12058 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12059
12060         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
12061         (decode_options): Likewise.
12062         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
12063
12064 2010-05-16  Jan Hubicka  <jh@suse.cz>
12065
12066         * ipa.c (function_and_variable_visibility): Also bring local all
12067         aliases.
12068
12069 2010-05-16  Richard Guenther  <rguenther@suse.de>
12070
12071         * alias.c (nonoverlapping_memrefs_p): Remove use of
12072         IPA type-escape information.
12073
12074 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
12075
12076         * c-common.c (c_common_reswords): Add _Static_assert for C.
12077         * c-parser.c (c_token_starts_declaration,
12078         c_parser_next_token_starts_declaration,
12079         c_parser_static_assert_declaration_no_semi,
12080         c_parser_static_assert_declaration): New.
12081         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
12082         Handle static assertions if static_assert_ok.
12083         (c_parser_external_declaration, c_parser_declaration_or_fndef,
12084         c_parser_compound_statement_nostart, c_parser_label,
12085         c_parser_for_statement, c_parser_objc_methodprotolist,
12086         c_parser_omp_for_loop): All callers of
12087         c_parser_declaration_or_fndef changed.
12088         (c_parser_struct_declaration): Handle static assertions.
12089         (c_parser_compound_statement_nostart): Use
12090         c_parser_next_token_starts_declaration and
12091         c_token_starts_declaration to detect start of declarations.
12092         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
12093         Likewise.
12094
12095 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
12096
12097         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12098         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12099         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12100         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12101         (mmix_function_outgoing_value): Rename to...
12102         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
12103         (mmix_function_value_regno_p): Make static.
12104         (mmix_libcall_value): New function.
12105         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
12106         mmix_function_value_regno_p): Remove declaration.
12107
12108 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12109
12110         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
12111         BUILT_IN_ALLOCA if stack checking is enabled.
12112
12113 2010-05-16  Richard Guenther  <rguenther@suse.de>
12114
12115         * var-tracking.c (vars_copy_1): Inline ...
12116         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12117         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
12118         (variable_merge_over_cur): Adjust.  Merge asserts.
12119         (variable_merge_over_src): Likewise.
12120         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
12121         (variable_post_merge_new_vals): Merge asserts.
12122         (variable_post_merge_perm_vals): Likewise.
12123         (find_mem_expr_in_1pdv): Likewise.
12124         (dataflow_set_different_value): Remove.
12125         (onepart_variable_different_p): Merge asserts.
12126         (variable_different_p): Likewise.
12127         (dataflow_set_different_1): Inline ...
12128         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12129         (emit_notes_for_differences_1): Merge asserts.
12130
12131 2010-05-16  Richard Guenther  <rguenther@suse.de>
12132
12133         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
12134         * optabs.c (libfunc_decl_hash): Likewise.
12135         * varasm.c (emutls_decl): Likewise.
12136
12137 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
12138
12139         * c-decl.c: Don't include gimple.h.
12140         (merge_decls): Do not copy gimple_body.
12141
12142 2010-05-15  Jason Merrill  <jason@redhat.com>
12143
12144         * c.opt: Add -fnothrow-opt.
12145
12146 2010-05-15  Jan Hubicka  <jh@suse.cz>
12147
12148         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
12149         analyzed.
12150         * passes.c (ipa_write_summaries): Write all analyzed nodes.
12151
12152 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
12153
12154         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
12155         * Makefile.in: Add it.
12156         Fix all other Makefile dependencies for changes below.
12157         * tree.h: Include it instead of defining VEC primitives here.
12158         * gimple.h: Likewise.
12159         * rtl.h: Likewise.
12160         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
12161         * except.h: Include vecir.h, break dependence on tree.h.
12162
12163         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
12164         Move from here...
12165         * tree-iterator.c: ...to here.
12166         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
12167
12168         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
12169         tm_p.h.
12170         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
12171         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
12172         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
12173         tree-mudflap.h, and target.h.
12174         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
12175         predict.h, tree-inline.h, gimple.h, and langhooks.h.
12176         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
12177         Add FIXME for why gimple.h is still included (should be unnecessary
12178         since GCC 4.5 gimplification unit-at-a-time).
12179         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
12180         * c-pragma.c: Add FIXME for why function.h needs to be included just
12181         for cfun, at front-end level.
12182         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
12183         Do not include ggc.h, but include vecprim.h for VEC(char).
12184         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
12185         Explain why target.h is included.
12186         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
12187         Explain why gimple.h is included.
12188         * c-ppoutput.c: Do not include tm.h.
12189         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
12190         * c-parses.c: Explain why rtl.h is included, and that this (and only
12191         this) is also why tm.h must be included.
12192         Do not include except.h.
12193         * c-lang.c: Do not include ggc.h.
12194
12195 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
12196
12197         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
12198
12199 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
12200
12201         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
12202         unions by default if those structs and unions have no tags.  Do
12203         not condition anonymous struct and unions handling on flag_iso.
12204         Allow anonymous structs and unions for C1X.
12205         (finish_struct): Do not diagnose lack of named fields when
12206         anonymous structs and unions present for C1X.  Accept flexible
12207         array members in structure with anonymous structs or unions but no
12208         directly named fields.
12209         * doc/extend.texi (Unnamed Fields): Update.
12210
12211 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
12212
12213         * gimple.h (compare_field_offset): Rename into...
12214         (gimple_compare_field_offset): ...this.
12215         * gimple.c (compare_field_offset): Rename into...
12216         (gimple_compare_field_offset): ...this.  Compare the full access if
12217         the offset is self-referential.
12218         (gimple_types_compatible_p): Adjust for above renaming.
12219         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
12220         DECL_NONADDRESSABLE_P flag of fields before merging them.
12221
12222 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
12223
12224         * tree.h (ctor_to_list): Delete.
12225         * tree.c (ctor_to_list): Delete.
12226
12227 2010-05-15  Jan Hubicka  <jh@suse.cz>
12228
12229         * ipa-reference.c: Include toplev.h
12230         (is_proper_for_analysis): Only add to all_module_statics
12231         if it is allocated.
12232         (write_node_summary_p, stream_out_bitmap,
12233         ipa_reference_write_optimization_summary,
12234         ipa_reference_read_optimization_summary): New.
12235         (struct ipa_opt_pass_d pass_ipa_reference): Add
12236         optimization summary streaming.
12237         * lto-cgraph.c (referenced_from_this_partition_p,
12238         reachable_from_this_partition_p): New functions.
12239         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12240         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
12241         * opts.c (decode_options): Enable ipa_reference.
12242         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
12243         * lto-streamer.h (referenced_from_this_partition_p,
12244         reachable_from_this_partition_p): Declare.
12245
12246 2010-05-15  Richard Guenther  <rguenther@suse.de>
12247
12248         PR tree-optimization/44038
12249         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
12250         taking the address of a V_C_E of a constant.
12251
12252 2010-05-14  Jan Hubicka  <jh@suse.cz>
12253
12254         * tree.h (memory_identifier_string): Remove.
12255         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
12256         (ipa_reference_global_vars_info_d): Remove statics_not_read and
12257         statics_not_written.
12258         (ipa_reference_optimization_summary_d): New structure.
12259         (ipa_reference_optimization_summary_t): New type and vector.
12260         (ipa_reference_vars_info_d): Embedd structures instead of using
12261         pointers.
12262         (reference_vars_to_consider): Remove out of GGC space.
12263         (module_statics_escape): Remove.
12264         (global_info_obstack): Rename to ...
12265         (optimization_summary_obstack): ... this one.
12266         (initialization_status_t): Remove.
12267         (memory_identifier_string): Remove.
12268         (get_reference_vars_info): Fix indenting.
12269         (set_reference_vars_info): Likewise.
12270         (get_reference_optimization_summary): New.
12271         (set_reference_optimization_summary): New.
12272         (get_global_reference_vars_info): Remove.
12273         (ipa_reference_get_read_global): Remove.
12274         (ipa_reference_get_written_global): Remove.
12275         (ipa_reference_get_not_read_global): Update.
12276         (ipa_reference_get_not_written_global): Update.
12277         (is_proper_for_analysis): Outlaw addressable.
12278         (propagate_bits): Update for new datastructures.
12279         (analyze_variable): Remove.
12280         (init_function_info): Update for new datastructures.
12281         (clean_function_local_data): Remove.
12282         (clean_function): Remove.
12283         (copy_global_bitmap): Use optimizations_summary_obstack.
12284         (duplicate_node_data): Duplicate optimization summary only.
12285         (remove_node_data): Remove optimization summary only.
12286         (generate_summary): Do not analyze variables; do not compute
12287         module_statics_escape; do not prune solutions by it.
12288         (read_write_all_from_decl): Fix typos in comments.
12289         (propagate): Doscover readonly and nonaddressable first;
12290         update for new datastructures; share global bitmaps.
12291         * ipa-reference.h (ipa_reference_get_read_global,
12292         ipa_reference_get_written_global): Remove.
12293         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
12294         * Makefile.in: Remove ipa-refereference from GT files.
12295
12296 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
12297
12298         PR debug/44112
12299         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
12300         for all SYMBOL_REF_DECLs.
12301
12302 2010-05-14  Jan Hubicka  <jh@suse.cz>
12303
12304         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
12305         (varpool_all_refs_explicit_p): New inline function.
12306         * ipa-reference.c: Update comment.
12307         (module_statics_written): Remove.
12308         (get_static_decl): Remove.
12309         (ipa_init): Do not initialize module_statics_written.
12310         (analyze_function): Likewise.
12311         (generate_summary): Likewise; do not compute module_statics_readonly
12312         and do not update variable flags.
12313         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
12314         * ipa.c: Inlucde flags.h
12315         (cgraph_local_node_p): New.
12316         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
12317         promote functions to local.
12318         (ipa_discover_readonly_nonaddressable_vars): New function.
12319         (function_and_variable_visibility): Use cgraph_local_node_p.
12320         * varpool.c (varpool_finalize_decl): Set force_output for
12321         DECL_PRESERVE_P vars.
12322
12323 2010-05-14  Jan Hubicka  <jh@suse.cz>
12324
12325         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
12326
12327 2010-05-14  Richard Guenther  <rguenther@suse.de>
12328
12329         PR tree-optimization/44119
12330         * tree-ssa-pre.c (eliminate): Properly mark replacement of
12331         a PHI node necessary.
12332
12333 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
12334
12335         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
12336
12337 2010-05-14  Jason Merrill  <jason@redhat.com>
12338
12339         PR c++/44127
12340         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
12341         (gimple_call_set_nothrow): New.
12342         * gimple.c (gimple_build_call_from_tree): Call it.
12343         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
12344
12345         PR c++/44127
12346         * gimplify.c (gimplify_seq_add_stmt): No longer static.
12347         * gimple.h: Declare it.
12348         * gimple.c (gimple_build_eh_filter): No ops.
12349
12350 2010-05-14  Jan Hubicka  <jh@suse.cz>
12351
12352         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
12353         nodes already in queue.
12354         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
12355         re-enqueueing node.
12356
12357 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
12358
12359         PR debug/44136
12360         * cfgexpand.c (expand_debug_expr): If non-memory op0
12361         has BLKmode, return NULL.
12362
12363 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
12364
12365         * config.gcc: Add support for --with-cpu option for bdver1.
12366         * config/i386/i386.h (TARGET_BDVER1): New macro.
12367         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
12368         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
12369         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
12370         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
12371         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
12372         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
12373         (processor_type): Add PROCESSOR_BDVER1.
12374         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
12375         processor_type in config/i386/i386.h.
12376         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
12377         movaps <reg, reg> instead of movapd <reg, reg> when replacing
12378         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
12379         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
12380         to emit packed xor instead of packed double/packed integer
12381         xor for SSE and AVX when moving a zero value.
12382         * config/i386/sse.md: Add check for
12383         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
12384         movapd/movdqa for SSE and AVX.
12385         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
12386         single logical operations i.e and, or and xor instead of packed double
12387         logical operations for SSE and AVX.
12388         * config/i386/i386-c.c (ix86_target_macros_internal):
12389         Add PROCESSOR_BDVER1.
12390         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
12391         (has_fma4, has_xop): New.
12392         * config/i386/i386.c (bdver1_cost): New variable.
12393         (m_BDVER1): New macro.
12394         (m_AMD_MULTIPLE): Add m_BDVER1.
12395         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
12396         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
12397         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
12398         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
12399         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
12400         x86_tune_sse_partial_reg_dependency,
12401         x86_tune_sse_unaligned_load_optimal,
12402         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
12403         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
12404         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
12405         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
12406         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
12407         Enable/disable for bdver1.
12408         (processor_target_table): Add bdver1_cost.
12409         (cpu_names): Add bdver1.
12410         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
12411          processor_alias_table.
12412         (ix86_expand_vector_move_misalign): Change.
12413         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
12414         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
12415         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
12416         of movupd/movdqu for SSE and AVX.
12417         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
12418         (ix86_tune_adjust_cost): Add code for bdver1.
12419         (standard_sse_constant_opcode): Add check for
12420         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
12421         of packed double xor for SSE and AVX.
12422
12423 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
12424
12425         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
12426         result to unsigned.
12427
12428 2010-05-14  Tristan Gingold  <gingold@adacore.com>
12429
12430         * toplev.c (default_debug_hooks): Remove this variable.
12431         (process_options): Remove assignments to default_debug_hooks.
12432
12433 2010-05-14  Martin Jambor  <mjambor@suse.cz>
12434
12435         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
12436         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
12437         * langhooks.h (struct lang_hooks_for_decls): Removed field
12438         fold_obj_type_ref.
12439         * tree.c (free_lang_data): Remove assignment to
12440         lang_hooks.fold_obj_type_ref.
12441         * tree.def (OBJ_TYPE_REF): Update comment.
12442
12443 2010-05-14  Richard Guenther  <rguenther@suse.de>
12444
12445         PR tree-optimization/44124
12446         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
12447
12448 2010-05-14  Alan Modra  <amodra@gmail.com>
12449
12450         PR target/44075
12451         * config/rs6000/rs6000.c (struct machine_function): Reorder
12452         fields for better packing.  Add lr_save_state.
12453         (rs6000_ra_ever_killed): Return lr_save_state if set.
12454         (rs6000_emit_eh_reg_restore): Set lr_save_state.
12455
12456 2010-05-13  Jan Hubicka  <jh@suse.cz>
12457
12458         * varpool.c (decide_is_variable_needed): Drop code checking
12459         TREE_SYMBOL_REFERENCED.
12460
12461 2010-05-13  Jan Hubicka  <jh@suse.cz>
12462
12463         * final.c (output_addr_const): Do not call mark_decl_referenced.
12464         * cgraphunit.c (process_function_and_variable_attributes): Use
12465         mark_needed_node dirrectly.
12466         (assemble_thunk): Do not call mark_decl_referenced.
12467
12468 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
12469
12470         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
12471
12472 2010-05-13  Jeff Law  <law@redhat.com>
12473
12474         * ira-conflicts.c (print_allocno_conflicts): New function broken out
12475         from...
12476         (print_conflicts): Call print_allocno_conflicts.
12477
12478 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
12479
12480         PR debug/44104
12481         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
12482         if it is NULL.
12483
12484 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
12485
12486         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
12487         t-mingw-w64 or t-mingw-w32 for multilib configuration.
12488         * config/i386/t-mingw-w32: New.
12489         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
12490
12491 2010-05-13  Martin Jambor  <mjambor@suse.cz>
12492
12493         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
12494         gimple-fold.c).
12495         * gimple-fold.c (get_base_binfo_for_type): New function.
12496         (gimple_get_relevant_ref_binfo): Likewise.
12497         (gimple_fold_obj_type_ref_known_binfo): Likewise.
12498         (gimple_fold_obj_type_ref): Likewise.
12499         (fold_gimple_call): Simplify condition for folding virtual calls
12500         and call gimple_fold_obj_type_ref.
12501         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
12502         (gimple_fold_obj_type_ref_known_binfo): Likewise.
12503
12504 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
12505
12506         * config/rs6000/rs6000-protos.h
12507         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
12508         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
12509         (rs6000_debug_mode_dependent_address)
12510         (rs6000_mode_dependent_address_ptr): Likewise.
12511
12512 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
12513
12514         PR debug/43983
12515         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
12516         by SRA.
12517         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
12518         * tree-sra.c (create_access_replacement): Call unshare_expr before
12519         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
12520         * dwarf2out.c: Include tree-flow.h.
12521         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
12522         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
12523         Handle DW_OP_bit_piece.
12524         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
12525         construct_piece_list, adjust_piece_list): New functions.
12526         (add_var_loc_to_decl): Handle SRA optimized variables.
12527         Adjust for var_loc_note to loc field renaming.
12528         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
12529         in VAR_LOCATION note.
12530         (new_loc_descr_op_bit_piece): New function.
12531         (dw_sra_loc_expr): New function.
12532         (dw_loc_list): Use it.  Don't handle the last range after the
12533         loop, handle it inside of the loop.  Adjust for var_loc_note
12534         to loc field renaming.
12535         (add_location_or_const_value_attribute): Only special case
12536         single entry loc lists if loc is NOTE_P.  Adjust for
12537         var_loc_note to loc field renaming.
12538         (dwarf2out_var_location): Don't set newloc->var_loc_note
12539         and newloc->next here.
12540
12541 2010-05-12  Jan Hubicka  <jh@suse.cz>
12542
12543         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
12544         flag.
12545         * cgraph.h (cgraph_only_called_directly_p,
12546         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
12547         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
12548         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
12549         (assemble
12550         * ipa.c (cgraph_remove_unreachable_nodes): Use
12551         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
12552         flags.
12553         * tree-inline.c (copy_bb): Check address_taken flag.
12554         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
12555         externally_visible flag.
12556
12557 2010-05-12  Jason Merrill  <jason@redhat.com>
12558
12559         PR bootstrap/44048
12560         PR target/44099
12561         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
12562         * sdbout.c (plain_type_1): Likewise.
12563         * dwarf2out.c (is_base_type): Likewise.
12564         (gen_type_die_with_usage): Likewise.  Generate
12565         DW_TAG_unspecified_type for any LANG_TYPE.
12566
12567 2010-05-12  Jan Hubicka  <jh@suse.cz>
12568
12569         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
12570         indrect edges too.
12571         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
12572         (cgraph_clone_edge): Update.
12573         (cgraph_node_remove_callees): Remove indirect calls too.
12574         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
12575         (cgraph_create_indirect_edge): Update prototype.
12576         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
12577         is_proper_for_analysis.
12578         (add_new_function, visited_nodes, function_insertion_hook_holder,
12579         get_local_reference_vars_info, mark_address_taken, mark_address,
12580         mark_load, mark_store, check_asm_memory_clobber, check_call,
12581         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
12582         (ipa_init): Do not initialize visited_nodes;
12583         function_insertion_hook_holder.
12584         (analyze_variable): Rewrite.
12585         (analyze_function): Rewrite.
12586         (copy_local_bitmap): Remove.
12587         (duplicate_node_dat): Do not duplicate local info.
12588         (generate_summary): Simplify to only walk cgraph.
12589         (write_node_summary_p, ipa_reference_write_summary,
12590         ipa_reference_read_summary): Remove.
12591         (propagate): Do not remove function insertion;
12592         generate summary.
12593         (pass_ipa_reference): NULLify summary handling fields.
12594         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
12595         (input_edge): Input ecf_flags.
12596         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
12597         (update_indirect_edges_after_inlining): Ignore edges with unknown
12598         param.
12599
12600 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
12601
12602         * implicit-zee.c: New file.
12603         * tree-pass.h (pass_implicit_zee): Declare.
12604         * passes.c (init_optimization_passes): Add zee pass.
12605         * common.opt (fzee): New flag.
12606         * timevar.def (TV_ZEE): Define.
12607         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
12608         and beyond.
12609         * Makefile.in (implicit-zee.o): Add new build file.
12610
12611 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
12612             Nathan Froyd  <froydnj@codesourcery.com>
12613
12614         * c-common.c (sync_resolve_params): Remove write-only variable.
12615
12616 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
12617
12618         * target.h (struct gcc_target): Add mode_dependent_address_p field.
12619         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
12620         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
12621         * targhooks.c (default_mode_dependent_address_p): New function.
12622         * targhooks.h (default_mode_dependent_address_p): Declare function.
12623         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
12624         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
12625         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
12626         target hook. Change return type to bool.
12627         * recog.h (mode_dependent_address_p): Change return type to bool.
12628
12629 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
12630             Nathan Froyd  <froydnj@codesourcery.com>
12631
12632         * tree-mudflap.c (build_function_type_0, build_function_type_1,
12633         build_function_type_2, build_function_type_3): Remove.
12634         (mudflap_init): Use build_function_type_list.
12635
12636 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
12637             Nathan Froyd  <froydnj@codesourcery.com>
12638
12639         * coverage.c (build_fn_info_value): Call build_constructor instead of
12640         build_constructor_from_list.
12641         (build_ctr_info_value): Likewise.
12642         (build_gcov_info): Likewise.
12643
12644 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
12645
12646         * tree.c (build_constructor): Compute TREE_CONSTANT for the
12647         resultant constructor.
12648         (build_constructor_single): Don't set TREE_CONSTANT.
12649         (build_constructor_from_list): Don't compute TREE_CONSTANT.
12650
12651 2010-05-12  Jan Hubicka  <jh@suse.cz>
12652
12653         * cgraph.h (struct varpool_node): Add aux.
12654         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
12655         * varpool.c (varpool_remove_node): Do not remove initializer.
12656         (varpool_reset_queue): Export.
12657         (varpool_finalize_decl): Volatile vars are forced to be output.
12658         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
12659         replaced decl.
12660         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
12661         process_references, varpool_can_remove_if_no_refs): New functions.
12662         (cgraph_remove_unreachable_nodes): Handle variables too.
12663
12664 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
12665
12666         PR target/44088
12667         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
12668
12669 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
12670
12671         PR middle-end/44085
12672         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
12673         change value of ORT_TASK.
12674         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
12675         (omp_notice_threadprivate_variable): New function.
12676         (omp_notice_variable): Call it for threadprivate variables.
12677         If enclosing ctx is a task, print enclosing task rather than
12678         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
12679         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
12680         if task has untied clause.
12681
12682         PR debug/42278
12683         * dwarf2out.c (base_type_die): Don't add name attribute here.
12684         (modified_type_die): Instead of sizetype use
12685         its underlying original type.  If a DW_TAG_base_type doesn't
12686         have name added, add __unknown__.
12687         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
12688         always call force_type_die instead.
12689
12690 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
12691
12692         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
12693         for __stack_chk_guard.
12694
12695 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
12696
12697         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
12698         don't call start_source_file debug hook here...
12699         (finish_options): ... but here, after outputting predefined and
12700         command line defines and undefs.
12701
12702         PR middle-end/44071
12703         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
12704         no fallthru edge.
12705         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
12706         optimizing away empty bb with no successors, move over its
12707         footer chain to fallthru predecessor.
12708         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
12709         (rtl_split_edge): For asm goto call patch_jump_insn even if
12710         splitting fallthru edge.
12711
12712         PR c++/44059
12713         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
12714         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
12715         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
12716         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
12717         on DW.ref.* decls.
12718
12719         PR c++/44062
12720         * c-parser.c (c_parser_expression): Mark LHS of a comma
12721         expression as read if it is a decl, handled component or
12722         COMPOUND_EXPR with that on the RHS.
12723         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
12724         if it is a decl or handled component.
12725
12726 2010-05-11  Jan Hubicka  <jh@suse.cz>
12727
12728         * lto-symtab.c (lto_symtab_free): New function.
12729         * lto-streamer.h (lto_symtab_free): Declare.
12730
12731 2010-05-11  Jan Hubicka  <jh@suse.cz>
12732
12733         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
12734         that if function is needed it is reachable.
12735         (lto_output_node): See if it the function is reachable or referenced.
12736         (output_cgraph): Update call of lto_output_node.
12737         * lto-streamer.h (reachable_from_other_partition_p): Declare.
12738
12739 2010-05-11  Jan Hubicka  <jh@suse.cz>
12740
12741         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
12742         Mark as used.
12743
12744 2010-05-11  Jan Hubicka  <jh@suse.cz>
12745
12746         PR tree-optimize/44063
12747         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
12748         queue.
12749         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
12750         limits.
12751         (estimate_function_body_sizes): Compute sizes even when disregarding.
12752
12753 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
12754
12755         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
12756
12757 2010-05-11  Jan Hubicka  <jh@suse.cz>
12758
12759         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
12760         into every boundary.
12761
12762 2010-05-11  Jan Hubicka  <jh@suse.cz>
12763
12764         * matrix-reorg.c (matrix_reorg): Rebuild edges.
12765
12766 2010-05-11  Jan Hubicka  <jh@suse.cz>
12767
12768         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
12769         lto_streamer_cache_delete): Put nodes into heap.
12770         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
12771         heap.
12772
12773 2010-05-11  Jan Hubicka  <jh@suse.cz>
12774
12775         * cgraphbuild.c (cgraph_rebuild_references): New.
12776         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
12777         out extern inlines.
12778         * cgraph.h (cgraph_rebuild_references): Declare.
12779         * tree-inline.c (tree_function_versioning): Use it.
12780         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
12781
12782 2010-05-11  Jan Hubicka  <jh@suse.cz>
12783
12784         * cgraph.c: Include ipa-utils.h
12785         (cgraph_create_virtual_clone): Update references.
12786         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
12787
12788 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
12789
12790         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
12791         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
12792         cache size.
12793
12794 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
12795
12796         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
12797
12798 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
12799
12800         * gcc.c (execute): For -### don't quote arguments that
12801         contain just alphanumerics and _/-. characters.
12802         * doc/invoke.texi: Document that change for -###.
12803
12804         PR debug/44023
12805         * df-problems.c (struct dead_debug): Add to_rescan field.
12806         (dead_debug_init): Clear to_rescan field.
12807         (dead_debug_finish): Rescan all debug insns in to_rescan
12808         bitmap and free the bitmap.
12809         (dead_debug_insert_before): Instead of rescanning debug insns
12810         immediately queue their rescanning until dead_debug_finish.
12811         (df_note_bb_compute): After dead_debug_add do continue instead
12812         of break.
12813
12814 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
12815
12816         PR debug/44028
12817         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
12818         clear also INSN_REG_USE_LIST.
12819
12820 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12821
12822         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
12823
12824 2010-05-10  Jan Hubicka  <jh@suse.cz>
12825
12826         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
12827         commited change.
12828
12829 2010-05-10  Jan Hubicka  <jh@suse.cz>
12830
12831         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
12832         Allocate encoders.
12833         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
12834         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
12835         (lto_streamer_cache_create): Init alloc pool.
12836         (lto_streamer_cache_delete): Free alloc pool.
12837         * lto-streamer.h: Include alloc pool.
12838         (lto_streamer_cache_d): Use alloc pool.
12839         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
12840
12841 2010-05-10  Jan Hubicka  <jh@suse.cz>
12842
12843         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
12844         * cgraphbuild.c: Include except.h
12845         (record_type_list, record_eh_tables): New function.
12846         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
12847
12848 2010-05-10  Jan Hubicka  <jh@suse.cz>
12849
12850         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
12851         __frame_dummy_init_array_entry, force_to_data): Attribute as used
12852         rather than unused.
12853
12854 2010-05-10  Michael Matz  <matz@suse.de>
12855
12856         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
12857         (can_reassociate_p): Use FLOAT_TYPE_P.
12858         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
12859         (vect_force_simple_reduction): ... this.
12860         * tree-parloops.c (gather_scalar_reductions): Use
12861         vect_force_simple_reduction.
12862         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
12863         vect_is_simple_reduction, add modify argument, if true rewrite
12864         "a-b" into "a+(-b)".
12865         (vect_is_simple_reduction, vect_force_simple_reduction): New
12866         functions.
12867         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
12868
12869 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12870             Vladimir Makarov  <vmakarov@redhat.com>
12871
12872         PR rtl-optimization/44012
12873         * ira-build.c (remove_unnecessary_allocnos): Nullify
12874         regno_allocno_map of the removed allocno.
12875
12876 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12877
12878         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
12879         to /dev/null.
12880         * configure: Regenerate.
12881
12882 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12883
12884         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
12885         unused.
12886         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
12887         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
12888         support in Sun ld.
12889         * configure: Regenerate.
12890
12891 2010-05-10  Richard Guenther  <rguenther@suse.de>
12892
12893         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
12894         marked if the entry identifier is marked.
12895
12896 2010-05-10  Richard Guenther  <rguenther@suse.de>
12897
12898         * c-common.c (struct c_common_attributes): Add fnspec attribute.
12899         (handle_fnspec_attribute): New function.
12900         * gimple.h (gimple_call_return_flags): Declare.
12901         (gimple_call_arg_flags): Likewise.
12902         * gimple.c (gimple_call_arg_flags): New function.
12903         (gimple_call_return_flags): Likewise.
12904         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
12905         New argument flags.
12906         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
12907         return value flags.
12908         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
12909         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
12910         main work to ...
12911         (make_heapvar_for): ... this new function.
12912         (handle_rhs_call): Handle fnspec attribute argument specifiers.
12913         (handle_lhs_call): Likewise.
12914         (find_func_aliases): Adjust.
12915
12916 2010-05-10  Richard Guenther  <rguenther@suse.de>
12917
12918         PR tree-optimization/44050
12919         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
12920
12921 2010-05-10  Wei Guozhi  <carrot@google.com>
12922
12923         PR target/42879
12924         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
12925
12926 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
12927
12928         PR c/10676
12929         * c-typeck.c (lookup_field): Take a type directly.  Update
12930         recursive calls.
12931         (build_component_ref): Update call to lookup_field.
12932         (set_init_label): Use lookup_field to find initialized field.
12933         Handle returned list of fields like a sequence of designators.
12934
12935 2010-05-09  Richard Guenther  <rguenther@suse.de>
12936
12937         PR middle-end/44024
12938         * fold-const.c (tree_single_nonzero_warnv_p): Properly
12939         handle &FUNCTION_DECL.
12940
12941 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
12942
12943         PR c/4784
12944         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
12945         structures and unions recursively.
12946         (detect_field_duplicates): Move duplicate detection with a hash to
12947         detect_field_duplicates_hash.  Always use a hash if anonymous
12948         structures or unions are present.
12949         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
12950         give errors.
12951
12952 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12953
12954         PR target/44046
12955         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
12956         detect Atom, Core 2 and Core i7.
12957
12958 2010-05-09  Richard Guenther  <rguenther@suse.de>
12959
12960         * gcc.c (store_arg): Handle temporary file deletion for
12961         joined arguments.
12962
12963 2010-05-09  Richard Guenther  <rguenther@suse.de>
12964
12965         PR middle-end/44043
12966         * ipa-inline.c (estimate_function_body_sizes): Return after
12967         disregarding inline limits.
12968
12969 2010-05-09  Richard Guenther  <rguenther@suse.de>
12970
12971         * gcc.c (store_arg): Revert last change.
12972
12973 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
12974
12975         PR middle-end/28685
12976         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
12977         (optimize_ops_list): Call it.
12978
12979 2010-05-08  Richard Guenther  <rguenther@suse.de>
12980
12981         PR tree-optimization/44030
12982         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
12983         NECESSARY flag if we propagate from a inserted expression.
12984
12985 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
12986
12987         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
12988         domain types as equal if they are both PLACEHOLDER_EXPRs.
12989
12990 2010-05-08  Richard Guenther  <rguenther@suse.de>
12991
12992         * lto-wrapper.c (run_gcc): Remove linker output from
12993         command line for LTRANS invocation.
12994
12995 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
12996
12997         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12998         lto-macho as lto_binary_reader.
12999         * target.h (struct gcc_target): New hooks lto_start and lto_end.
13000         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
13001         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
13002         in lto_start and lto_end calls.
13003         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
13004         magic numbers.
13005         (scan_prog_file): Update is_elf_or_coff call.
13006         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
13007
13008         * collect2.c (main): Fix enum comparison.
13009
13010         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
13011         Add prototypes.
13012         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
13013         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
13014         and TARGET_ASM_LTO_END.
13015         * darwin.c: Include obstack.h and lto-streamer.h.
13016         (lto_section_names_offset, lto_section_names_obstack,
13017         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
13018         global variables.
13019         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
13020         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
13021         to a temporary file.
13022         (darwin_asm_lto_end): New function.  Restore asm_out_file.
13023         (darwin_asm_named_section): For LTO sections, replace the name with
13024         the offset of the section name in a string table, and build this
13025         table.
13026         (darwin_file_start): Initialize global vars for LTO support.
13027         (darwin_file_end): If output to asm_out_file was redirected, append it
13028         to the proper asm_out_file here.  Add the section names section.
13029
13030 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
13031
13032         * c-pragma.c (pending_weak_d, pending_weak): New.
13033         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
13034         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
13035         handle_pragma_weak): Update the uses of pending_weaks.
13036
13037 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13038
13039         PR documentation/44016
13040         * doc/standards.texi (Standards): Link to unversioned
13041         cxx0x_status.html page.
13042
13043 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
13044
13045         PR target/43708
13046         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
13047         in addition to TREE_USED, to avoid "set but unused" warnings.
13048
13049 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13050
13051         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
13052         (is_loop_prefetching_profitable): Do not insert prefetches
13053         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
13054         times the prefetch ahead distance.
13055
13056 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13057
13058         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
13059         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
13060         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
13061         the unroll_factor.
13062
13063 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13064
13065         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
13066         a diagnostic info when the insn-to-mem ratio is too small.
13067
13068 2010-05-07  Richard Guenther  <rguenther@suse.de>
13069
13070         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
13071         the linker plugin.
13072         (store_arg): Queue temp_filename for deletion instead of
13073         the whole argument.
13074
13075 2010-05-07  Richard Guenther  <rguenther@suse.de>
13076
13077         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
13078         (run_gcc): Handle LTRANS phase invocation.
13079         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
13080
13081 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
13082
13083         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
13084         this is also meaningful on PARM_DECLs and RESULT_DECLs.
13085
13086 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13087
13088         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
13089
13090 2010-05-07  Richard Guenther  <rguenther@suse.de>
13091
13092         PR tree-optimization/44020
13093         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
13094         code when PRE is not yet initialized.
13095
13096 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13097
13098         * config/mips/dbxmdebug.h: Remove.
13099         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
13100
13101 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
13102
13103         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
13104         with null pointer and also warn about ordered comparison of zero with
13105         pointer if -Wextra.
13106
13107 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13108
13109         * graphite-blocking.c
13110         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
13111         * graphite-clast-to-gimple.c
13112         (clast_to_gcc_expression): Same.
13113         (precision_for_value): Same.
13114         (precision_for_interval): Same.
13115         (gcc_type_for_interval): Same.
13116         (graphite_create_new_guard): Same.
13117         (compute_bounds_for_level): Same.
13118         (graphite_create_new_loop_guard): Same.
13119         * graphite-interchange.c
13120         (build_linearized_memory_access): Same.
13121         (pdr_stride_in_loop): Same.
13122         (memory_strides_in_loop_1): Same.
13123         (memory_strides_in_loop): Same.
13124         (extend_scattering): Same.
13125         (psct_scattering_dim_for_loop_depth): Same.
13126         (pbb_number_of_iterations): Same.
13127         * graphite-poly.h
13128         (debug_iteration_domains): Same.
13129         * graphite-ppl.c
13130         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13131         (ppl_set_inhomogeneous_gmp): Same.
13132         (ppl_strip_loop): Same.
13133         (ppl_lexico_compare_linear_expressions): Same.
13134         (ppl_read_polyhedron_matrix): Same.
13135         (ppl_max_for_le_pointset): Same.
13136         * graphite-ppl.h
13137         (ppl_read_polyhedron_matrix): Same.
13138         (tree_int_to_gmp): Same.
13139         (gmp_cst_to_tree): Same.
13140         (ppl_set_inhomogeneous): Same.
13141         (ppl_set_inhomogeneous_tree): Same.
13142         (ppl_set_coef): Same.
13143         (ppl_set_coef_tree): Same.
13144         * graphite-sese-to-poly.c
13145         (build_pbb_scattering_polyhedrons): Same.
13146         (build_scop_scattering): Same.
13147         (scan_tree_for_params_right_scev): Same.
13148         (scan_tree_for_params): Same.
13149         (find_params_in_bb): Same.
13150         (find_scop_parameters): Same.
13151         (add_upper_bounds_from_estimated_nit): Same.
13152         (build_loop_iteration_domains): Same.
13153         (add_condition_to_domain): Same.
13154         (pdr_add_memory_accesses): Same.
13155
13156 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13157
13158         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
13159         CLooG's value_* macros to their respective mpz_* counterparts.
13160         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
13161         (graphite_create_new_loop_guard): Same.
13162         * graphite-interchange.c (build_linearized_memory_access): Same.
13163         (pdr_stride_in_loop): Same.
13164         (memory_strides_in_loop_1): Same.
13165         (1st_interchange_profitable_p): Same.
13166         * graphite-poly.c (extend_scattering): Same.
13167         (psct_scattering_dim_for_loop_depth): Same.
13168         (pbb_number_of_iterations): Same.
13169         (pbb_number_of_iterations_at_time): Same.
13170         * graphite-poly.h (new_1st_loop): Same.
13171         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
13172         (oppose_constraint): Same.
13173         (insert_constraint_into_matrix): Same.
13174         (ppl_set_inhomogeneous_gmp): Same.
13175         (ppl_set_coef_gmp): Same.
13176         (ppl_strip_loop): Same.
13177         (ppl_lexico_compare_linear_expressions): Same.
13178         (ppl_max_for_le_pointset): Same.
13179         (ppl_min_for_le_pointset): Same.
13180         (ppl_build_realtion): Same.
13181         * graphite-ppl.h (gmp_cst_to_tree): Same.
13182         (ppl_set_inhomogeneous): Same.
13183         (ppl_set_inhomogeneous_tree): Same.
13184         (ppl_set_coef): Same.
13185         (ppl_set_coef_tree): Same.
13186         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
13187         (build_scop_scattering): Same.
13188         (add_value_to_dim): Same.
13189         (scan_tree_for_params_right_scev): Same.
13190         (scan_tree_for_params_int): Same.
13191         (scan_tree_for_params): Same.
13192         (find_params_in_bb): Same.
13193         (find_scop_parameters): Same.
13194         (add_upper_bounds_from_estimated_nit): Same.
13195         (build_loop_iteration_domains): Same.
13196         (create_linear_expr_from_tree): Same.
13197         (add_condition_to_domain): Same.
13198         (pdr_add_memory_accesses): Same.
13199
13200 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
13201             Jason Merrill  <jason@redhat.com>
13202
13203         * c-common.c (c_common_reswords): Add nullptr.
13204         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
13205         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
13206         (gen_type_die_with_usage): Likewise.
13207         * dbxout.c (dbxout_type): Likewise.
13208         * sdbout.c (plain_type_1): Likewise.
13209
13210 2010-05-06  Jason Merrill  <jason@redhat.com>
13211
13212         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
13213         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
13214         ret appropriately.
13215         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
13216
13217         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
13218         stripping WITH_SIZE_EXPR.
13219         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
13220         change.
13221
13222 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13223
13224         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
13225         list of obsolete configurations.
13226         Disabled check for obsolete configurations.
13227         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
13228         Removed support for previous versions.
13229         * config/mips/iris.h: Removed.
13230         * config/mips/iris5.h: Removed.
13231         * config/mips/iris6.h: Merged old iris.h contents.
13232         (TARGET_IRIX): Removed.
13233         (DRIVER_SELF_SPECS): Removed mabi=32.
13234         (IDENT_ASM_OP): Removed undef.
13235         (STARTFILE_SPEC): Removed mabi=32.
13236         (ENDFILE_SPEC): Likewise.
13237         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
13238         (MACHINE_TYPE): Update for IRIX 6.5.
13239         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
13240         TARGET_IRIX by TARGET_IRIX6.
13241         (mips_file_start): Likewise.
13242         (mips_output_external): Remove IRIX 5/6 O32 support.
13243         (mips_output_function_prologue): Likewise.
13244         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
13245         TARGET_IRIX6.
13246         (TARGET_CPU_CPP_BUILTINS): Likewise.
13247         (TARGET_IRIX): Removed.
13248         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
13249         (MULTILIB_DIRNAMES): Removed 32.
13250         (MULTILIB_OSDIRNAMES): Removed ../lib.
13251         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
13252         (Specific, mips-sgi-irix5): Document removal.
13253         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
13254         Remove references to older IRIX 6 releases and the O32 ABI.
13255
13256 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
13257
13258         PR bootstrap/43994
13259         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
13260         instead of DF_REF_REAL_REG.
13261
13262 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13263
13264         PR target/43888
13265         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
13266         handling to still return true for x64 targets.
13267
13268 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13269
13270         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
13271
13272 2010-05-06  Jan Hubicka  <jh@suse.cz>
13273
13274         PR tree-optimization/43791
13275         * ipa-inline.c (update_caller_keys): Remove bogus
13276         disregard_inline_limits check.
13277
13278 2010-05-06  Michael Matz  <matz@suse.de>
13279
13280         PR tree-optimization/43984
13281         * tree-ssa-pre.c (inserted_phi_names): Remove.
13282         (inserted_exprs): Change to bitmap.
13283         (create_expression_by_pieces): Set bits, don't append to vector.
13284         (insert_into_preds_of_block): Don't handle inserted_phi_names.
13285         (eliminate): Don't look at inserted_phi_names, remove deleted
13286         insns from inserted_exprs.
13287         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
13288         (init_pre, fini_pre): Allocate and free bitmaps.
13289         (execute_pre): Insert insns on edges before elimination.
13290
13291 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13292
13293         * tree.c (initializer_zerop): Handle STRING_CST.
13294
13295 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13296
13297         PR 40989
13298         * doc/invoke.texi (Wimplicit): Document as C only.
13299         * opts.c (common_handle_option): Add argument kind.
13300         (handle_option): Rename as read_cmdline_option. Factor out code to...
13301         (handle_option): ... here. New.
13302         (handle_options): Rename as read_cmdline_options.
13303         (decode_options): Update call.
13304         (set_option): Use option index instead of option pointer. Classify
13305         diagnostics correctly.
13306         (enable_warning_as_error): Call handle_option.
13307         * opts.h (set_option): Update declaration.
13308         (handle_option): Declare.
13309         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
13310         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
13311         * c-opts.c (set_Wimplicit): Delete.
13312         (c_family_lang_mask): New static constant.
13313         (c_common_handle_option): Add argument kind. Use handle_option
13314         instead of set_Wimplicit.
13315         (c_common_post_options): warn_implicit and warn_implicit_int
13316         are disabled by default.
13317         * c-common.c (warn_implicit): Do not define here.
13318         * c-common.h (warn_implicit): Do not declare here.
13319         (c_common_handle_option): Update declaration.
13320         * lto-opts.c (lto_reissue_options): Update call to set_option.
13321
13322 2010-05-06  Richard Guenther  <rguenther@suse.de>
13323
13324         PR tree-optimization/43571
13325         * domwalk.c (walk_dominator_tree): Walk the dominator
13326         sons in more optimal order.
13327
13328 2010-05-06  Richard Guenther  <rguenther@suse.de>
13329
13330         PR tree-optimization/43934
13331         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
13332         (stmt_cost): Likewise.
13333         (extract_true_false_args_from_phi): New helper.
13334         (determine_max_movement): For PHI nodes verify we can hoist them
13335         and compute their cost.
13336         (determine_invariantness_stmt): Handle PHI nodes.
13337         (move_computations_stmt): Likewise.  Hoist PHI nodes in
13338         if-converted form using COND_EXPRs.
13339         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
13340         (tree_ssa_lim): Likewise.
13341         * tree-flow.h (tree_ssa_lim): Adjust prototype.
13342         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
13343
13344 2010-05-06  Richard Guenther  <rguenther@suse.de>
13345
13346         PR tree-optimization/43987
13347         * tree-ssa-structalias.c (could_have_pointers): For possibly
13348         address-taken variables force pointers to be recorded.
13349         (create_variable_info_for_1): Likewise.
13350         (push_fields_onto_fieldstack): Pass in wheter all fields
13351         must have pointers.
13352         (find_func_aliases): Query types instead of vars whether
13353         they contain pointers where appropriate.
13354
13355 2010-05-06  Jan Hubicka  <jh@suse.cz>
13356
13357         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
13358         (record_reference, mark_address, mark_load, mark_store): Record
13359         references.
13360         (record_references_in_initializer): Update call of record_references.
13361         (rebuild_cgraph_edges): Remove all references before rebuiding.
13362         * cgraph.c (cgraph_create_node): Clear ref list.
13363         (cgraph_remove_node): Remove references.
13364         (dump_cgraph_node): Dump references.
13365         (cgraph_clone_node): Clone references.
13366         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
13367         (struct cgraph_node, varpool_node): Add ref_lst.
13368         * ipa-ref.c: New file.
13369         * ipa-ref.h: New file.
13370         * ipa-ref-inline.h: New file.
13371         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
13372         (referenced_from_other_partition_p): New function.
13373         (lto_output_varpool_node): Take set arugment; call
13374         referenced_from_other_partition.
13375         (lto_output_ref): New.
13376         (add_references): New.
13377         (output_refs): New.
13378         (output_cgraph): Compute boundary based on references; output refs.
13379         (output_varpool): Accept cgraph_node_set argument.
13380         (input_ref): New.
13381         (input_refs): New.
13382         (input_cgraph): Call input_refs.
13383         * lto-section-in.c (lto_section_name): Add refs.
13384         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
13385         (ipa-ref.o): New file.
13386         * varpool.c (varpool_node): Clear ipa ref list.
13387         (varpool_remove_node): Remove references.
13388         (dump_varpool_node): Dump references.
13389         (varpool_assemble_decl): Only compile finalized ones.
13390         (varpool_extra_name_alias): Initialize ref list.
13391         * lto-streamer.c (lto-get_section_name): Add .refs section.
13392         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
13393         (referenced_from_other_partition_p): Declared.
13394
13395 2010-05-06  Ira Rosen  <irar@il.ibm.com>
13396
13397         PR tree-optimization/43901
13398         * tree-vect-stmts.c (vectorizable_call): Assert that vector
13399         type is not NULL if it's transformation phase, and return
13400         FALSE if it's analysis.
13401         (vectorizable_conversion, vectorizable_operation,
13402         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
13403
13404 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
13405
13406         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
13407         Delete.
13408         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
13409         New define.
13410         * config/mips/mips-protos.h
13411         (mips_small_register_classes_for_mode_p): Delete prototype.
13412
13413 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
13414
13415         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
13416         * config/arm/arm.c (multiple_operation_profitable_p,
13417         compute_offset_order): New static functions.
13418         (load_multiple_sequence, store_multiple_sequence): Use them.
13419         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
13420         memory offsets, not register numbers.
13421         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
13422
13423 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
13424
13425         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
13426         (get_pending_sizes, put_pending_size, put_pending_sizes):
13427         Update the uses of pending_sizes.
13428         * c-decl.c (store_parm_decls): Likewise.
13429         * c-tree.h (struct c_arg_info): Likewise.
13430         * tree.h: Update the prototype for get_pending_sizes and
13431         put_pending_sizes.
13432
13433 2010-05-05  Jason Merrill  <jason@redhat.com>
13434
13435         PR debug/43370
13436         * c-common.c (handle_aligned_attribute): Respect
13437         ATTR_FLAG_TYPE_IN_PLACE.
13438
13439         PR testsuite/43758
13440         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
13441         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13442         (TARGET_INITIALIZER): Use it.
13443         * c-common.c (attribute_takes_identifier_p): Call it.
13444         * c-common.h: Update prototype.
13445         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
13446         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13447
13448 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
13449
13450         PR debug/43950
13451         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
13452         DW_ID_down_case for Fortran compilation units.
13453
13454 2010-05-05  Jan Hubicka  <jh@suse.cz>
13455
13456         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
13457         handle aliases.
13458
13459 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
13460
13461         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
13462         a variable-sized RESULT_DECL.
13463
13464 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
13465
13466         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
13467
13468 2010-05-05  Jason Merrill  <jason@redhat.com>
13469
13470         PR c++/43787
13471         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
13472         returns GS_OK.
13473         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
13474
13475 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
13476             Jakub Jelinek  <jakub@redhat.com>
13477
13478         PR debug/43478
13479         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
13480         (dead_debug_init, dead_debug_finish): New functions.
13481         (dead_debug_add, dead_debug_insert_before): Likewise.
13482         (df_note_bb_compute): Initialize a dead_debug object, add dead
13483         debug uses to it, insert debug bind insns before death insns,
13484         reset debug insns that refer to pending uses at the end.
13485         * rtl.h (make_debug_expr_from_rtl): New prototype.
13486         * varasm.c (make_debug_expr_from_rtl): New function.
13487
13488 2010-05-05  Jan Hubicka  <jh@suse.cz>
13489
13490         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
13491         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
13492         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
13493         lto_varpool_encoder_deref, lto_varpool_encoder_size,
13494         lto_varpool_encoder_encode_initializer_p,
13495         lto_set_varpool_encoder_encode_initializer): New functions.
13496         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
13497         call output_varpool.
13498         (input_varpool_node): Do not always set analyzed.
13499         (input_cgraph_1): Return vector of cgraph nodes.
13500         (input_varpool_1): Return vector of varpools.
13501         (input_cgraph): Free the vectors.
13502         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13503         output only initializers needed.
13504         (lto_output): Only call output_cgraph.
13505         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
13506         * lto-section-out.c (lto_new_out_decl_state): Initialize
13507         state->varpool_node_encoder.
13508         * lto-streamer.h (lto_varpool_encoder_d): New.
13509         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
13510         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
13511         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
13512         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
13513         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
13514         Declare.
13515         (output_varpool, input_varpool): Remove declarations.
13516
13517 2010-05-05  Jan Hubicka  <jh@suse.cz>
13518
13519         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
13520         with body can prevail.
13521
13522 2010-05-05  Jan Hubicka  <jh@suse.cz>
13523
13524         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
13525         size.
13526
13527 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13528
13529         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
13530
13531         * gengtype.h (erro_at_line): Constify pos argument.
13532
13533         * gengtype.c: Include hashtab.h.
13534         (enum gc_used): Document GC_MAYBE_POINTED_TO.
13535         (error_at_line): Constify pos argument.
13536         (do_typedef): Initialize p->opt field.
13537         (get_file_gtfilename): Fix comment typo.
13538         (struct walk_type_data): Constify line field.
13539         (get_output_file_for_structure): New function.
13540         (write_local_func_for_structure): Constify orig_s argument.
13541         Use get_output_file_for_structure.
13542         (write_func_for_structure): Use get_output_file_for_structure.
13543         (INDENT): New define.
13544         (dump_pair, dump_type, dump_type_list, dump_typekind)
13545         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
13546         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
13547         functions.
13548         (seen_types): New variable.
13549         (main): New variable do_dump.  Process "-d" command line option.
13550         Call dump_everything if dump requested.
13551
13552 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
13553
13554         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
13555         in a temporary instead of invoking the macro multiple times.
13556         (track_expr_p): Likewise.
13557
13558 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
13559
13560         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
13561         per new semantics.
13562         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
13563         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
13564         conditions for printing notes.
13565         * common.opt (-Wcoverage-mismatch): Allow negative, default to
13566         true, update documentation.
13567         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
13568
13569 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
13570
13571         PR c/43981
13572         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
13573         on dimen.
13574
13575 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13576
13577         PR target/43799
13578         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
13579         (*sse_prologue_save_insn1): Likewise.
13580         (SSE prologue save splitter): Likewise.
13581
13582 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
13583
13584         * tree.c (free_lang_data_in_one_sizepos): New inline function.
13585         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
13586         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
13587         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
13588         all decls.  Call it on DECL_FIELD_OFFSET of fields.
13589         (find_decls_types_r): Follow DECL_VALUE_EXPR.
13590         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
13591
13592 2010-05-04  Martin Jambor  <mjambor@suse.cz>
13593
13594         * tree-sra.c (build_access_from_expr_1): The first parameter type
13595         changed to simple tree.
13596         (build_access_from_expr): Likewise, gsi parameter was eliminated.
13597         (scan_assign_result): Renamed to assignment_mod_result, enum elements
13598         renamed as well.
13599         (build_accesses_from_assign): Removed all parameters except for a
13600         simple gimple statement.  Now returns a simple bool.
13601         (scan_function): All non-analysis parts moved to separate functions
13602         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
13603         parameters and updated both callers.
13604         (sra_modify_expr): Removed parameter data.
13605         (sra_modify_function_body): New function.
13606         (perform_intra_sra): Call sra_modify_function_body to modify the
13607         function body.
13608         (replace_removed_params_ssa_names): Parameter data changed into
13609         adjustments vector.
13610         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
13611         changed the parameter dont_convert to convert with the opposite
13612         meaning.
13613         (sra_ipa_modify_assign): Parameter data changed into adjustments
13614         vector, return value changed to bool.
13615         (ipa_sra_modify_function_body): New function.
13616         (sra_ipa_reset_debug_stmts): Updated a comment.
13617         (modify_function): Use ipa_sra_modify_function_body to modify function
13618         body.
13619
13620 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13621
13622         PR middle-end/43671
13623         * alias.c (true_dependence): Handle the same VALUE in x and mem.
13624         (canon_true_dependence): Likewise.
13625         (write_dependence_p): Likewise.
13626
13627 2010-05-04  Jan Hubicka  <jh@suse.cz>
13628
13629         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
13630         * cgraphbuild.c: Include ipa-utils.h
13631         (record_reference_ctx): New struct.
13632         (record_reference): Simplify to work on initializers; not statements.
13633         (mark_address, mark_load, mark_store): New.
13634         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
13635         walk PHI nodes too.
13636         (record_references_in_initializer): Update use of record_reference.
13637         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
13638         walk PHI nodes too.
13639
13640 2010-05-04  Jan Hubicka  <jh@suse.cz>
13641
13642         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
13643         node will be removed anyway.
13644         (lto_varpool_replace_node): Allow also unanalyzed nodes;
13645         relink aliases of node into prevailing node.
13646         * varpool.c (varpool_remove_node): Remove aliases properly;
13647         when removing node, remove all its aliases too; remove DECL_INITIAL
13648         of removed node; ggc_free the varpool node.
13649
13650 2010-05-04  Richard Guenther  <rguenther@suse.de>
13651
13652         PR tree-optimization/43879
13653         * tree-ssa-structalias.c (alias_get_name): Use
13654         DECL_ASSEMBLER_NAME if available.
13655         (create_function_info_for): Return the varinfo node.
13656         (ipa_pta_execute): Associate same-body aliases and extra names
13657         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
13658
13659 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13660
13661         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
13662
13663 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
13664
13665         PR bootstrap/43964
13666         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
13667         only if HONOR_REG_ALLOC_ORDER is not defined.
13668
13669 2010-05-04  Richard Guenther  <rguenther@suse.de>
13670
13671         PR tree-optimization/43949
13672         * tree-vrp.c (extract_range_from_binary_expr): Only handle
13673         TRUNC_MOD_EXPR.
13674
13675 2010-04-26  Jason Merrill  <jason@redhat.com>
13676
13677         * c.opt (-fstrict-enums): New.
13678         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
13679
13680 2010-05-03  David Ung  <davidu@mips.com>
13681             James E. Wilson  <wilson@codesourcery.com>
13682
13683         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
13684         emit the trap instruction before the divide for TUNE_74K.
13685
13686 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
13687
13688         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
13689         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
13690         based on the above, for new target hook.
13691
13692         * hooks.c (hook_bool_mode_true): New generic hook.
13693         * hooks.h (hook_bool_mode_true): Add prototype.
13694
13695         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
13696         target hook.
13697         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
13698         target hook, set to hook_bool_mode_false.
13699         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
13700         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
13701         with targetm.small_register_classes_for_mode_p.
13702         (find_reusable_reload): Likewise.
13703         (combine_reloads): Likewise.
13704         * reload1.c (reload_as_needed): Likewise.
13705         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
13706         * ifcvt.c (noce_process_if_block, check_cond_move_block,
13707         dead_or_predicable): Likewise.
13708         * regmove.c (optimize_reg_copy_1): Likewise.
13709         * calls.c (prepare_call_address): Likewise.
13710         (precompute_register_parameters): Likewise.
13711
13712         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
13713         hook definition.
13714         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
13715         implementation of the hook that considers all register classes
13716         small except for SH64.
13717         (sh_override_options): Use the new hook.
13718         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
13719         Add prototype.
13720
13721         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
13722         hook definition.
13723         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
13724         implementation of the hook that considers all register classes
13725         small for THUMB1.
13726         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
13727         Add prototype.
13728
13729         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
13730         hook definition.
13731         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
13732         implementation of the hook that considers all register classes
13733         small for MIPS16.
13734         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
13735         Add prototype.
13736
13737         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
13738         hook definition.
13739         * config/m32c/m32c.h: Likewise.
13740         * config/pdp11/pdp11.h: Likewise.
13741         * config/avr/avr.h: Likewise.
13742         * config/xtensa/xtensa.h: Likewise.
13743         * config/m68hc11/m68hc11.h: Likewise.
13744         * config/mn10300/mn10300.h: Likewise.
13745         * config/mcore/mcore.h: Likewise.
13746         * config/h8300/h8300.h: Likewise.
13747         * config/bfin/bfin.h: Likewise.
13748
13749         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
13750         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
13751
13752 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
13753
13754         * double-int.h (tree_to_double_int): Remove macro.
13755         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
13756         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13757         (tree_to_double_int): New function.
13758         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
13759         Move ...
13760         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13761
13762 2010-05-03  Richard Guenther  <rguenther@suse.de>
13763
13764         PR tree-optimization/43971
13765         * tree-ssa-structalias.c (get_constraint_for_1): Fix
13766         constraints in the !flag_delete_null_pointer_checks case.
13767
13768 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
13769
13770         PR debug/43972
13771         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
13772         result mode matches original rtl mode.
13773
13774 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
13775
13776         PR target/43888
13777         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
13778
13779 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13780
13781         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
13782         when processing flag options.
13783
13784 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13785
13786         * gcov-iov.c (main): Change format string placeholder
13787         from %#08x to 0x%08x.
13788         * genchecksum.c (dosum): Change format string placeholder
13789         from %#02x to 0x%02x.
13790
13791 2010-05-02  Richard Guenther  <rguenther@suse.de>
13792
13793         PR tree-optimization/43879
13794         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
13795
13796 2010-05-02  Bruno Haible  <bruno@clisp.org>
13797
13798         * doc/extend.texi (Function Attributes): Fix a typo.
13799
13800 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13801
13802         Revert:
13803         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
13804         placeholder from 0x%x to %#x.
13805         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13806         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13807         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13808         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13809         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13810         * config/i386/i386.c (ix86_target_string): Ditto.
13811         * config/i386/i386.c (output_pic_addr_const): Ditto.
13812         (print_operand): Ditto.
13813
13814 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13815
13816         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
13817         placeholder from 0x%x to %#x.
13818         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
13819         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
13820         (ASM_OUTPUT_DEBUG_DATA): Ditto.
13821         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
13822         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
13823         * optc-gen.awk: Ditto.
13824         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
13825         (HOST_WIDE_INT_PRINT_HEX): Ditto.
13826         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
13827         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13828
13829 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
13830
13831         * target.h (struct calls): Add function_value_regno_p field.
13832         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13833         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
13834         * targhooks.c (default_function_value_regno_p): New function.
13835         * targhooks.h (default_function_value_regno_p): Declare function.
13836         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
13837         * builtins.c. (apply_result_size): (Ditto.).
13838         * combine.c. (likely_spilled_retval_p): (Ditto.).
13839         * mode-switching.c. Include 'target.h'.
13840         (create_pre_exit): Use function_value_regno_p hook.
13841         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
13842         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
13843         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
13844
13845         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
13846         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
13847         (ix86_function_value_regno_p): Declare as static, change argument
13848         type to const unsigned int.
13849         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
13850
13851 2010-05-01  Richard Guenther  <rguenther@suse.de>
13852
13853         PR tree-optimization/43949
13854         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
13855         types.
13856         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
13857
13858 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
13859
13860         * rtl.h (CONST_DOUBLE_P): Define.
13861         (rtx_to_double_int): Declare.
13862         * emit-rtl.c (rtx_to_double_int): New function.
13863         * dwarf2out.c (insert_double): New function.
13864         (loc_descriptor, add_const_value_attribute): Clean up, use
13865         rtx_to_double_int and insert_double functions.
13866
13867 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
13868
13869         * doc/extend.texi (Inline): Add missing return keyword to examples.
13870         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
13871         "command-line".
13872
13873 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
13874
13875         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
13876         the variable part of the offset as well.  Use highest_pow2_factor for
13877         all alignment checks.
13878
13879 2010-04-30  Richard Guenther  <rguenther@suse.de>
13880
13881         PR tree-optimization/43879
13882         * tree-ssa-structalias.c (type_could_have_pointers): Functions
13883         can have pointers.
13884
13885 2010-04-30  Jan Hubicka  <jh@suse.cz>
13886
13887         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
13888         varpool.
13889         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
13890
13891 2010-04-30  Jan Hubicka  <jh@suse.cz>
13892
13893         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
13894         New.
13895         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
13896         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
13897         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
13898         cgraph_node_set_needs_ltrans_p): Remove.
13899
13900 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
13901
13902         * sdbout.c: Include vec.h, do not include varray.h.
13903         (deferred_global_decls, sdbout_global_decl,
13904         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
13905         * toplev.c: Do not include varray.h.
13906         (dump_memory_report): Do not dump VARRAY statistics.
13907         * gengtype.c (open_base_file): Ignore varray.h.
13908         * Makefile.in: Update for abovementioned changes.
13909         Remove all traces of varray.c and varray.h.
13910         * varray.c: Remove file.
13911         * varray.h: Remove file.
13912
13913 2010-04-30  Jan Hubicka  <jh@suse.cz>
13914
13915         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
13916         references.
13917
13918 2010-04-30  Jan Hubicka  <jh@suse.cz>
13919
13920         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
13921         needed.
13922
13923 2010-04-30  Richard Guenther  <rguenther@suse.de>
13924
13925         * tree-ssa-structalias.c (get_constraint_for_1): Generate
13926         constraints for CONSTRUCTOR.
13927
13928 2010-04-30  Richard Guenther  <rguenther@suse.de>
13929
13930         PR lto/43946
13931         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
13932         first after all lowering passes.
13933
13934 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
13935
13936         * toplev.c: Include varray.h for statistics dumping.
13937         * tree.h: Do not declare varray_head_tag.
13938         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
13939         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
13940         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
13941         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
13942         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
13943         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
13944         c-common.c, c-common.h, reg-stack.c, basic-block.h,
13945         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
13946         include varray.h.
13947         * Makefile.in: Update for abovementioned changes.
13948
13949 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
13950
13951         PR debug/43942
13952         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
13953
13954 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13955
13956         * config/picochip/picochip.c (picochip_legitimize_address): Define.
13957         Use this function to do machine-specific conversion.
13958         (picochip_legitimize_reload_address): Likewise.
13959         (picochip_legitimate_address_p): Check valid base register only if
13960         strict.
13961         (picochip_check_conditional_copy): Check for modw only if opnd is
13962         register.
13963         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
13964         to call the function in c.
13965         * config/picochip/picochip-protos.h
13966         (picochip_legitimize_reload_address): Define.
13967         * config/picochip/picochip.md (supported_compare1): Define.
13968
13969 2010-04-30  Jan Hubicka  <jh@suse.cz>
13970
13971         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
13972         (cgraph_global_info): Remove inlined.
13973         (LTO_cgraph_tag_names): Remove.
13974         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
13975         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
13976         simplify cgraph tags and document.
13977         (lto_output_node): Use only LTO_cgraph_unavail_node and
13978         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
13979         for_functions_valid, global info, process and output flags.
13980         (input_overwrite_node): Initialize estimated stack size and
13981         estimated growth.  Do not read flags we no longer store.
13982         (input_node): Likewise do not read info no longer stored.
13983         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
13984         flag.
13985
13986 2010-04-30  Richard Guenther  <rguenther@suse.de>
13987
13988         PR tree-optimization/43879
13989         * tree-ssa-structalias.c (get_constraint_for_1): Properly
13990         handle non-zero initializers.
13991
13992 2010-04-30  Richard Guenther  <rguenther@suse.de>
13993
13994         * builtins.c (fold_builtin_1): Delete free (0).
13995
13996 2010-04-29  Jan Hubicka  <jh@suse.cz>
13997
13998         * gengtype.c (open_base_files): Add lto-streamer.h
13999         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
14000         (pass_ipa_cp): GGC collect.
14001         * toplev. (compile_file): Do not output symbols.
14002         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
14003         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
14004         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
14005         * lto-section-in.c: Include ggc.h
14006         (lto_new_in_decl_state): Alloc in GGC.
14007         (lto_delete_in_decl_state): Likewise.
14008         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
14009         Collect.
14010
14011 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14012
14013         PR target/42895
14014         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
14015         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
14016         (HONOR_REG_ALLOC_ORDER): Describe new macro.
14017         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
14018         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
14019         account only if HONOR_REG_ALLOC_ORDER is not defined.
14020         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
14021         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
14022
14023 2010-04-29  Jon Grant  <04@jguk.org>
14024
14025         * collect2.c (vflag): Change type from int to bool.
14026         (debug): Likewise.
14027         (helpflag): New global bool.
14028         (main): Set vflag and debug with boolean, not integer truth values.
14029         Accept new "--help" option and output usage text if found.
14030         * collect2.h (vflag): Update prototype.
14031         (debug): Likewise.
14032
14033 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14034
14035         PR bootstrap/43936
14036         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
14037
14038 2010-04-29  Richard Guenther  <rguenther@suse.de>
14039
14040         PR bootstrap/43935
14041         * plugin.h (invoke_plugin_callbacks): Annotate arguments
14042         with ATTRIBUTE_UNUSED.
14043
14044 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14045
14046         PR target/43921
14047         * config/i386/i386.c (get_some_local_dynamic_name): Replace
14048         INSN_P with NONDEBUG_INSN_P.
14049         (distance_non_agu_define): Likewise.
14050         (distance_agu_use): Likewise.
14051
14052 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14053
14054         From Dominique d'Humieres  <dominiq@lps.ens.fr>
14055         PR bootstrap/43858
14056         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
14057         test_set.
14058
14059 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
14060
14061         * plugin.h (invoke_plugin_callbacks): New inline function.
14062         * plugin.c (flag_plugin_added): New global flag.
14063         (add_new_plugin): Initialize above flag.
14064         (invoke_plugin_callbacks): Rename to ...
14065         (invoke_plugin_callbacks_full): ... this.
14066
14067 2010-04-28  Jan Hubicka  <jh@suse.cz>
14068
14069         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
14070         (lto_varpool_replace_node): New.
14071         (lto_symtab_resolve_symbols): Resolve varpool nodes.
14072         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
14073         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
14074         * cgraph.h (varpool_node_ptr): New type.
14075         (varpool_node_ptr): New vector.
14076         (varpool_node_set_def): New structure.
14077         (varpool_node_set): New type.
14078         (varpool_node_set): New vector.
14079         (varpool_node_set_element_def): New structure.
14080         (varpool_node_set_element, const_varpool_node_set_element): New types.
14081         (varpool_node_set_iterator): New type.
14082         (varpool_node): Add prev pointers, add used_from_other_partition,
14083         in_other_partition.
14084         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
14085         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
14086         varpool_get_node, varpool_remove_node): Declare.
14087         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
14088         varpool_node_set_size): New inlines.
14089         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
14090         * tree-pass.h (varpool_node_set_def): Forward declare.
14091         (ipa_opt_pass_d): Summary writting takes vnode sets too.
14092         (ipa_write_optimization_summaries): Update prototype.
14093         * ipa-cp.c (ipcp_write_summary): Update.
14094         * ipa-reference.c (ipa_reference_write_summary): Update.
14095         * lto-cgraph.c (lto_output_varpool_node): New static function.
14096         (output_varpool): New function.
14097         (input_varpool_node): New static function.
14098         (input_varpool_1): New function.
14099         (input_cgraph): Input varpool.
14100         * ipa-pure-const.c (pure_const_write_summary): Update.
14101         * lto-streamer-out.c (lto_output): Update, output varpool too.
14102         (write_global_stream): Kill WPA hack.
14103         (produce_asm_for_decls): Update.
14104         (output_alias_pair_p): Handle variables.
14105         (output_unreferenced_globals): Output only needed partition of varpool.
14106         * ipa-inline.c (inline_write_summary): Update.
14107         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
14108         cgraph.
14109         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
14110         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
14111         varpool_node_set_new, varpool_node_set_add,
14112         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
14113         debug_varpool_node_set): New functions.
14114         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
14115         (execute_one_pass): Process new decls too.
14116         (ipa_write_summaries_2): Pass around vsets.
14117         (ipa_write_summaries_1): Likewise.
14118         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
14119         to add.
14120         (ipa_write_optimization_summaries_1): Pass around vsets.
14121         (ipa_write_optimization_summaries): Likewise.
14122         * varpool.c (varpool_get_node): New.
14123         (varpool_node): Update doubly linked lists.
14124         (varpool_remove_node): New.
14125         (dump_varpool_node): More dumping.
14126         (varpool_enqueue_needed_node): Update doubly linked lists.
14127         (decide_is_variable_needed): Kill ltrans hack.
14128         (varpool_finalize_decl): Kill lto hack.
14129         (varpool_assemble_decl): Skip decls in other partitions.
14130         (varpool_assemble_pending_decls): Update doubly linkes lists.
14131         (varpool_empty_needed_queue): Likewise.
14132         (varpool_extra_name_alias): Likewise.
14133         * lto-streamer.c (lto_get_section_name): Add vars section.
14134         * lto-streamer.h (lto_section_type): Update.
14135         (output_varpool, input_varpool): Declare.
14136
14137 2010-04-28  Mike Stump  <mikestump@comcast.net>
14138
14139         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
14140
14141 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14142
14143         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
14144         record or union type with RECORD_OR_UNION_TYPE_P predicate.
14145         (lto_input_ts_type_tree_pointers): Likewise.
14146         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
14147         (lto_output_ts_type_tree_pointers): Likewise.
14148
14149 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14150
14151         Uniquization of constants at the Tree level
14152         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
14153         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
14154         bit to the end.
14155         (tree_output_constant_def): Declare.
14156         * gimplify.c (gimplify_init_constructor): When using block copy, first
14157         uniquize the constant constructor on the RHS.
14158         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
14159         DECL_IN_CONSTANT_POOL flag.
14160         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
14161         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
14162         constant pool.
14163         (assemble_variable): Deal with symbols belonging to the tree constant
14164         pool.
14165         (get_constant_section): Add ALIGN parameter and simplify.
14166         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
14167         (assemble_constant_contents): Use the expression of the VAR_DECL.
14168         (output_constant_def_contents): Use the alignment of the VAR_DECL.
14169         (tree_output_constant_def): New global function.
14170         (mark_constant): Use the expression of the VAR_DECL.
14171         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
14172         its expression.
14173         (output_object_block): Likewise and assemble the expression.
14174
14175 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14176
14177         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
14178         hash_tree, eq_tree): New tree hash table.
14179         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
14180         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
14181         lto_orig_address_remove): Reimplement.
14182
14183 2010-04-28  Xinliang David Li  <davidxl@google.com>
14184
14185         PR c/42643
14186         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
14187         (compute_uninit_opnds_pos): New function.
14188         (is_non_loop_exit_postdominating): New function.
14189         (compute_control_dep_chain): New function.
14190         (find_pdom): New function.
14191         (convert_control_dep_chain_into_preds): New function.
14192         (find_predicates): New function.
14193         (find_control_equiv_block): New function.
14194         (collect_phi_def_edges): New function.
14195         (find_def_preds): New function.
14196         (find_dom): New function.
14197         (dump_predicates): New function.
14198         (get_cmp_code): New function.
14199         (is_value_included_in): New function.
14200         (find_matching_predicate_in_rest_chains): New function.
14201         (use_pred_not_overlap_with_undef_path_pred): New function.
14202         (is_use_properly_guarded): New function.
14203         (normalize_cond_1): New function.
14204         (is_and_or_or): New function.
14205         (normalize_cond): New function.
14206         (is_gcond_subset_of): New function.
14207         (is_subset_of_any): New function.
14208         (is_or_set_subset_of): New function.
14209         (is_and_set_subset_of): New function.
14210         (is_norm_cond_subset_of): New function.
14211         (is_pred_expr_subset_of): New function.
14212         (is_pred_chain_subset_of): New function.
14213         (is_included_in): New function.
14214         (is_superset_of): New function.
14215         (find_uninit_use): New function.
14216         (warn_uninitialized_phi): New function.
14217         (compute_possibly_undefined_names): New function.
14218         (ssa_undefined_value_p): New function.
14219         (execute_late_warn_uninitialized): New function.
14220         * tree-ssa.c (ssa_undefined_value_p): Removed.
14221         (warn_uninit): Changed to extern.
14222         (warn_uninitialized_phi): Removed.
14223         (warn_uninitialized_vars): Changed to extern.
14224         (execute_late_warn_uninitialized): Removed
14225         * tree-flow.h: Add new prototypes.
14226         * timevar.def: Add new time variable.
14227         * Makefile.in: Add new build file.
14228
14229 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
14230
14231         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
14232         type if available.
14233
14234 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14235
14236         PR target/22224
14237         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
14238
14239 2010-04-28  Martin Jambor  <mjambor@suse.cz>
14240
14241         * cgraph.h (struct cgraph_node): New field indirect_calls.
14242         (struct cgraph_indirect_call_info): New type.
14243         (struct cgraph_edge): Removed field indirect_call. New fields
14244         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
14245         (cgraph_create_indirect_edge): Declare.
14246         (cgraph_make_edge_direct): Likewise.
14247         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
14248         * ipa-prop.h (struct ipa_param_call_note): Removed.
14249         (struct ipa_node_params): Removed field param_calls.
14250         (ipa_create_all_structures_for_iinln): Declare.
14251         * cgraph.c: Described indirect edges and uids in initial comment.
14252         (cgraph_add_edge_to_call_site_hash): New function.
14253         (cgraph_edge): Search also among the indirect edges, use
14254         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
14255         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
14256         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
14257         site hash.
14258         (initialize_inline_failed): Assign a reason to indirect edges.
14259         (cgraph_create_edge_1): New function.
14260         (cgraph_create_edge): Moved some functionality to
14261         cgraph_create_edge_1.
14262         (cgraph_create_indirect_edge): New function.
14263         (cgraph_edge_remove_callee): Add an assert checking for
14264         non-indirectness.
14265         (cgraph_edge_remove_caller): Special-case indirect edges.
14266         (cgraph_remove_edge): Likewise.
14267         (cgraph_set_edge_callee): New function.
14268         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
14269         (cgraph_make_edge_direct): New function.
14270         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
14271         the declaration of the call statement matches.
14272         (cgraph_node_remove_callees): Special-case indirect edges.
14273         (cgraph_clone_edge): Likewise.
14274         (cgraph_clone_node): Clone also the indirect edges.
14275         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
14276         indirect_call, dump count of indirect_calls edges.
14277         * ipa-prop.c (iinlining_processed_edges): New variable.
14278         (ipa_note_param_call): Create indirect edges instead of
14279         creating notes.  New parameter node.
14280         (ipa_analyze_call_uses): New parameter node, pass it on to
14281         ipa_note_param_call.
14282         (ipa_analyze_stmt_uses): Likewise.
14283         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
14284         (print_edge_addition_message): Work on edges rather than on notes.
14285         (update_call_notes_after_inlining): Likewise, renamed to
14286         update_indirect_edges_after_inlining.
14287         (ipa_create_all_structures_for_iinln): New function.
14288         (ipa_free_node_params_substructures): Do not free notes.
14289         (ipa_edge_duplication_hook): Propagate bits within
14290         iinlining_processed_edges bitmap.
14291         (ipa_node_duplication_hook): Do not duplicate notes.
14292         (free_all_ipa_structures_after_ipa_cp): Renamed to
14293         ipa_free_all_structures_after_ipa_cp.
14294         (free_all_ipa_structures_after_iinln): Renamed to
14295         ipa_free_all_structures_after_iinln.
14296         (ipa_write_param_call_note): Removed.
14297         (ipa_read_param_call_note): Removed.
14298         (ipa_write_indirect_edge_info): New function.
14299         (ipa_read_indirect_edge_info): Likewise.
14300         (ipa_write_node_info): Do not stream notes, do stream information
14301         in indirect edges.
14302         (ipa_read_node_info): Likewise.
14303         (lto_ipa_fixup_call_notes): Removed.
14304         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
14305         * ipa-inline.c (pass_ipa_inline): Likewise.
14306         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
14307         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
14308         * tree-inline.c (copy_bb): Removed an unnecessary double check for
14309         is_gimple_call.
14310         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
14311         edges.
14312         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
14313         (output_cgraph): Stream also indirect edges.
14314         (lto_output_edge): Added capability to stream indirect edges.
14315         (input_edge): Likewise.
14316         (input_cgraph_1): Likewise.
14317         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
14318         of indirect edges.
14319
14320 2010-04-28  Richard Guenther  <rguenther@suse.de>
14321
14322         PR tree-optimization/43879
14323         PR tree-optimization/43909
14324         * tree-ssa-structalias.c (struct variable_info): Add
14325         only_restrict_pointers flag.
14326         (new_var_info): Initialize it.  Increment stats.total_vars here.
14327         (create_function_info_for): Do not increment stats.total_vars here.
14328         (get_function_part_constraint): Fix build with C++.
14329         (insert_into_field_list): Remove.
14330         (push_fields_onto_fieldstack): Properly merge fields.
14331         (create_variable_info_for): Split and simplify.
14332         (create_variable_info_for_1): New piece.
14333         (intra_create_variable_infos): Properly make restrict constraints
14334         from parameters.
14335
14336 2010-04-28  Richard Guenther  <rguenther@suse.de>
14337
14338         PR c++/43880
14339         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
14340
14341 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14342             Jan Hubicka  <hubicka@ucw.cz>
14343
14344         * doc/invoke.texi (-Wsuggest-attribute=const,
14345         -Wsuggest-attribute=pure): Document.
14346         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
14347         (function_always_visible_to_compiler_p,
14348         suggest_attribute, warn_function_pure, warn_function_const):
14349         New functions.
14350         (check_call): Improve debug info.
14351         (analyze_function): Do not check availability.
14352         (add_new_function): Check availability.
14353         (propagate): Output warnings.
14354         (skip_function_for_local_pure_const): New function.
14355         (local_pure_const): Use it; output warnings.
14356         * common.opt (Wsuggest-attribute=const,
14357         Wsuggest-attribute=pure): New.
14358
14359 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
14360
14361         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
14362         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
14363         or DW_CFA_def_cfa_offset{,_sf}.
14364
14365 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14366
14367         * tree.h: Fix truncated long macros.
14368
14369 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
14370
14371         * collect2.c (TARGET_64BIT): Redefine to target's default.
14372         * tlink.c: Likewise.
14373         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
14374         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
14375         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
14376         for underscoring __USER_LABEL_PREFIX__.
14377         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
14378         (SUB_LINK_ENTRY32): New.
14379         (SUB_LINK_ENTRY64): New.
14380         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
14381         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
14382         (SUB_LINK_ENTRY64): New.
14383         (SUB_LINK_ENTRY): New.
14384         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
14385         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
14386         x64 target is choosen.
14387         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
14388         * configure: Regenerated.
14389         * configure.ac (leading-mingw64-underscores): Option added.
14390
14391 2010-04-27  Jan Hubicka  <jh@suse.cz>
14392
14393         * doc/invoke.texi (-fipa-profile): Document.
14394         * opts.c (decode_options): Enable ipa-profile at -O1.
14395         * timevar.def (TV_IPA_PROFILE): Define.
14396         * common.opt (fipa-profile): Add.
14397         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
14398         flag for clones.
14399         (cgraph_propagate_frequency): Handle only local ones.
14400         * tree-pass.h (pass_ipa_profile): Declare.
14401         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
14402         (pass_ipa_profile): Use TV_IPA_PROFILE.
14403         * ipa.c (ipa_profile): New function.
14404         (gate_ipa_profile): Likewise.
14405         (pass_ipa_profile): New global variable.
14406         * passes.c (pass_ipa_profile): New.
14407
14408 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
14409
14410         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
14411
14412 2010-04-27  Martin Jambor  <mjambor@suse.cz>
14413
14414         PR middle-end/43812
14415         * ipa.c (dissolve_same_comdat_group_list): New function.
14416         (function_and_variable_visibility): Call
14417         dissolve_same_comdat_group_list when comdat group contains external or
14418         newly local nodes.
14419         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
14420         lists are circular and that they contain only DECL_ONE_ONLY nodes.
14421
14422 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14423
14424         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
14425         (const_hash_1) <VECTOR_CST>: New case.
14426         (compare_constant) <VECTOR_CST>: Likewise.
14427         <ADDR_EXPR>: Deal with LABEL_REFs.
14428         (copy_constant) <VECTOR_CST>: New case.
14429
14430 2010-04-27  Jan Hubicka  <jh@suse.cz>
14431
14432         * cgraph.c (cgraph_propagate_frequency): New function.
14433         * cgraph.h (cgraph_propagate_frequency): Declare.
14434         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
14435         cgraph_propagate_frequency.
14436
14437 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
14438
14439         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
14440
14441 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
14442
14443         PR target/40657
14444         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
14445         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
14446         here to determine which regs to push and how much stack to reserve.
14447
14448 2010-04-27  Jie Zhang  <jie@codesourcery.com>
14449
14450         * doc/gimple.texi (gimple_statement_with_ops): Remove
14451         addresses_taken field.
14452         (gimple_statement_with_memory_ops): Likewise.
14453
14454 2010-04-27  Jan Hubicka  <jh@suse.cz>
14455
14456         * tree-inline.c (eni_inlining_weights): Remove.
14457         (estimate_num_insns): Special case more builtins.
14458
14459 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
14460
14461         PR c/32207
14462         * c-typeck.c (build_binary_op): Move forward check for comparison
14463         pointer with null pointer constant and adjust the diagnostic message.
14464
14465 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
14466
14467         PR lto/42776
14468         * configure.ac (gcc_cv_as_section_has_align): Set if installed
14469         binutils supports extended .section directive needed by LTO, or
14470         warn if older binutils found.
14471         (LTO_BINARY_READER): New AC_SUBST'd variable.
14472         (LTO_USE_LIBELF): Likewise.
14473         * gcc/config.gcc (lto_binary_reader): New target-specific configure
14474         variable.
14475         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
14476         (LTO_USE_LIBELF): Likewise.
14477         * configure: Regenerate.
14478
14479         * collect2.c (is_elf): Rename from this ...
14480         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
14481          object files in addition to ELF-formatted ones.
14482         (scan_prog_file): Caller updated.  Also allow for LTO info marker
14483         symbol to be prefixed or not by an extra underscore.
14484
14485         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
14486         * config/i386/winnt.c: Also #include lto-streamer.h
14487         (i386_pe_asm_named_section): Specify 1-byte section alignment for
14488         LTO named sections.
14489         (i386_pe_asm_output_aligned_decl_common): Add comment.
14490         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
14491
14492 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
14493
14494         PR target/43889
14495         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
14496         Add missing earlyclobber for second alternative.
14497
14498 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
14499
14500         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
14501         bits for artificial defs at the top of the block.
14502         * fwprop.c (single_def_use_enter_block): Don't call it.
14503
14504 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
14505
14506         PR 43715
14507         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
14508         instead of "$gcc_cv_objdump -T".
14509         Use "-undefined dynamic_lookup" on darwin.
14510         * gcc/configure: Regenerate.
14511
14512 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
14513
14514         PR c/43893
14515         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
14516
14517 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
14518
14519         * c-parser.c (struct c_token): Move location field up.
14520         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
14521         (struct c_declspecs): Convert typespec_word, storage_class, and
14522         default_int_p into bitfields.
14523         (struct c_declarator): Move loc field up.
14524
14525 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
14526
14527         * cfgloop.h (struct loop): Move can_be_parallel field up.
14528         * ipa-prop.h (struct ip_node_params): Move bitfields up.
14529         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
14530         down.
14531         (struct iv_cand): Convert pos field into a bitfield.
14532         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
14533         field up.
14534         (struct _stmt_vec_info): Shuffle fields for better packing.
14535
14536 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
14537
14538         * varasm.c (IN_NAMED_SECTION): Remove guard.
14539         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
14540         (IN_NAMED_SECTION_P): ...this.
14541         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
14542         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
14543
14544 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
14545
14546         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
14547         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
14548         of shadowing it.  Fix comments.
14549
14550 2010-04-26  Jan Hubicka  <jh@suse.cz>
14551
14552         * cgraph.c (cgraph_create_node): Set node frequency to normal.
14553         (cgraph_clone_node): Copy function frequency.
14554         * cgraph.h (node_frequency): New enum
14555         (struct cgraph_node): Add.
14556         * final.c (rest_of_clean_state): Update.
14557         * lto-cgraph.c (lto_output_node): Output node frequency.
14558         (input_overwrite_node): Input node frequency.
14559         * tre-ssa-loop-ivopts (computation_cost): Update.
14560         * lto-streamer-out.c (output_function): Do not output function
14561         frequency.
14562         * predict.c (maybe_hot_frequency_p): Update and handle functions
14563         executed once.
14564         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
14565         attribute lookup.
14566         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
14567         (compute_function_frequency): Set noreturn functions to be executed
14568         once.
14569         (choose_function_section): Update.
14570         * lto-streamer-in.c (input_function): Do not input function frequency.
14571         * function.c (allocate_struct_function): Do not initialize function
14572         frequency.
14573         * function.h (function_frequency): Remove.
14574         (struct function): Remove function frequency.
14575         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
14576         (try_update): Update.
14577         * tree-inline.c (initialize_cfun): Do not update function frequency.
14578         * passes.c (pass_init_dump_file): Update.
14579         * i386.c (ix86_compute_frame_layout): Update.
14580         (ix86_pad_returns): Update.
14581
14582 2010-04-26  Jie Zhang  <jie@codesourcery.com>
14583
14584         PR tree-optimization/43833
14585         * tree-vrp.c (range_int_cst_p): New.
14586         (range_int_cst_singleton_p): New.
14587         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
14588         when both operands are constants.  Use range_int_cst_p in
14589         BIT_IOR_EXPR case.
14590
14591 2010-04-26  Jan Hubicka  <jh@suse.cz>
14592
14593         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
14594
14595 2010-04-26  Richard Guenther  <rguenther@suse.de>
14596
14597         PR lto/43080
14598         * gimple.c (gimple_decl_printable_name): Deal gracefully
14599         with a NULL DECL_NAME.
14600
14601 2010-04-26  Richard Guenther  <rguenther@suse.de>
14602
14603         PR lto/42425
14604         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
14605         if emitting debug information and it is either a function
14606         or a namespace decl.
14607
14608 2010-04-26  Ira Rosen  <irar@il.ibm.com>
14609
14610         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
14611         determine if the statement is vectorizable, and a macro to access it.
14612         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14613         Skip statements that can't be vectorized. If the analysis fails,
14614         mark the statement as unvectorizable if vectorizing basic block.
14615         (vect_compute_data_refs_alignment): Likewise.
14616         (vect_verify_datarefs_alignment): Skip statements marked as
14617         unvectorizable. Add print.
14618         (vect_analyze_group_access): Skip statements that can't be
14619         vectorized. If the analysis fails, mark the statement as
14620         unvectorizable if vectorizing basic block.
14621         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
14622         * tree-vect-stmts.c (vectorizable_store): Fix the number of
14623         generated stmts for SLP.
14624         (new_stmt_vec_info): Initialize the new field.
14625         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
14626         statements marked as unvectorizable.
14627
14628 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
14629
14630         * c-common.c (flag_isoc1x): New.
14631         (flag_isoc99): Update comment.
14632         * c-common.h (flag_isoc1x): New.
14633         (flag_isoc99): Update comment.
14634         * c-cppbuiltin.c (builtin_define_float_constants): Also define
14635         __<type>_DECIMAL_DIG__.
14636         * c-opts.c (set_std_c1x): New.
14637         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
14638         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
14639         * c.opt (-std=c1x, -std=gnu1x): New options.
14640         * doc/cpp.texi: Mention -std=c1x.
14641         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
14642         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
14643         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
14644         * doc/standards.texi: Mention C1X.
14645         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
14646         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
14647         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
14648         Define for C1X.
14649
14650 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
14651
14652         * config/i386/gmon-sol2.c (_mcleanup): Change format string
14653         placeholder from 0x%x to %#x.
14654         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14655         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14656         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14657         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14658         * config/i386/i386.c (ix86_target_string): Ditto.
14659         (output_pic_addr_const): Ditto.
14660         (print_operand): Ditto.
14661
14662 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
14663
14664         * combine.c (find_split_point): Add third argument.  Use it
14665         to find nested multiply-accumulate instructions.  Adjust calls.
14666         (try_combine): Adjust call to find_split_point.
14667
14668 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
14669
14670         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
14671
14672 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
14673
14674         PR tree-optimization/41442
14675         * fold-const.c (merge_truthop_with_opposite_arm): New function.
14676         (fold_binary_loc): Call it.
14677
14678 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14679
14680         * toplev.c (general_init): Set default for fdiagnostics-show-option.
14681         * opts.c (common_handle_option): Allow disabling it.
14682         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
14683
14684 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
14685
14686         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
14687         between modes if both types are integral.
14688
14689 2010-04-23  Richard Guenther  <rguenther@suse.de>
14690
14691         PR tree-optimization/43572
14692         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
14693
14694 2010-04-23  Richard Guenther  <rguenther@suse.de>
14695
14696         PR lto/43455
14697         * tree-inline.c (tree_can_inline_p): Also check compatibility
14698         of return types.
14699
14700 2010-04-23  Martin Jambor  <mjambor@suse.cz>
14701
14702         PR tree-optimization/43846
14703         * tree-sra.c (struct access): New flag grp_assignment_read.
14704         (build_accesses_from_assign): Set grp_assignment_read.
14705         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
14706         (enum mark_read_status): New type.
14707         (analyze_access_subtree): Propagate grp_assignment_read, create
14708         accesses also if both direct_read and root->grp_assignment_read.
14709
14710 2010-04-23  Martin Jambor  <mjambor@suse.cz>
14711
14712         PR middle-end/43835
14713         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
14714         function does not have type attributes.
14715
14716 2010-04-23  Richard Guenther  <rguenther@suse.de>
14717
14718         PR lto/42653
14719         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
14720         of FUNCTION_DECLs.
14721
14722 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14723
14724         * sese.h (create_if_region_on_edge): Remove.
14725
14726         * sese.c (create_if_region_on_edge): Make static.
14727
14728         * tree-inline.c: Do not include ggc.h.
14729
14730         * expr.c: Do not include ggc.h.
14731
14732         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
14733         dependencies.
14734
14735 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14736
14737         PR target/43744
14738         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14739         in the middle of insns for casesi_worker_2.
14740
14741 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
14742
14743         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
14744
14745 2010-04-22  Ira Rosen  <irar@il.ibm.com>
14746
14747         PR tree-optimization/43842
14748         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
14749         loop unrolling in update of exit phis. Fix comment.
14750         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
14751         least two reduction statements in the loop before starting SLP
14752         analysis.
14753
14754 2010-04-22  Nick Clifton  <nickc@redhat.com>
14755
14756         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
14757
14758 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
14759
14760         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
14761         to simplify a + ~a.
14762
14763 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14764
14765         * tree-parloops.c (loop_parallel_p): New argument
14766         parloop_obstack.  Pass it down.
14767         (parallelize_loops): New variable parloop_obstack.  Initialize it,
14768         pass it down, free it.
14769
14770         * tree-loop-linear.c (linear_transform_loops): Pass down
14771         lambda_obstack.
14772
14773         * tree-data-ref.h (lambda_compute_access_matrices): New argument
14774         of type struct obstack *.
14775
14776         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
14777         scratch_obstack.  Initialize it, pass down, free it.
14778
14779         * lambda.h (lambda_loop_new): Remove.
14780         (lambda_matrix_new, lambda_matrix_inverse)
14781         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
14782         argument of type struct obstack *.
14783
14784         * lambda-trans.c (lambda_trans_matrix_new): New argument
14785         lambda_obstack.  Pass it down, use obstack allocation for ret.
14786         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
14787         it down.
14788
14789         * lambda-mat.c (lambda_matrix_get_column)
14790         (lambda_matrix_project_to_null): Remove.
14791         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
14792         allocation for mat.
14793         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
14794         lambda_obstack.
14795
14796         * lambda-code.c (lambda_loop_new): New function.
14797         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
14798         (lambda_compute_auxillary_space, lambda_compute_target_space)
14799         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
14800         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
14801         (build_access_matrix): New argument lambda_obstack.  Use obstack
14802         allocation for am.
14803         (lambda_compute_step_signs, lambda_compute_access_matrices): New
14804         argument lambda_obstack.  Pass it down.
14805
14806 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14807
14808         * optabs.h (expand_widening_mult): Declare.
14809
14810 2010-04-22  Richard Guenther  <rguenther@suse.de>
14811
14812         PR tree-optimization/43845
14813         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
14814         lookup the CALL_EXPR function and arguments.
14815
14816 2010-04-22  Nick Clifton  <nickc@redhat.com>
14817
14818         * config/stormy16/stormy16.c
14819         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
14820         * config/stormy16/stormy16.h: Tidy up formatting.
14821         (DONT_USE_BUILTIN_SETJMP): Remove definition.
14822         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
14823         (ineqbranchsi): Delete pattern.
14824         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
14825         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
14826         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14827         stormy16-lib2-ucmpsi2.c.
14828
14829 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14830
14831         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
14832         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
14833         extra set merge_set_noclobber, and use it to relax the final test
14834         slightly.
14835         * df.h (df_simulate_find_noclobber_defs): Declare.
14836         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
14837         conditional defs.
14838         (df_simulate_find_noclobber_defs): New function.
14839
14840 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
14841
14842         * config/i386/i386.md: Use {} around multi-line preparation statements.
14843
14844 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14845
14846         * c-tree.h (push_init_level, pop_init_level, set_init_index)
14847         (process_init_element): New argument of type struct obstack *.
14848
14849         * c-typeck.c (push_init_level, pop_init_level, set_designator)
14850         (set_init_index, set_init_label, set_nonincremental_init)
14851         (set_nonincremental_init_from_string, find_init_member)
14852         (output_init_element, output_pending_init_elements)
14853         (process_init_element): New argument braced_init_obstack.  Pass it
14854         down.
14855         (push_range_stack, add_pending_init): New argument
14856         braced_init_obstack.  Use obstack allocation.
14857
14858         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
14859         braced_init_obstack.  Pass it down.
14860         (c_parser_braced_init): New variables ret, braced_init_obstack.
14861         Initialize obstack, pass it down and finally free it.
14862
14863 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14864
14865         PR middle-end/29274
14866         * tree-pass.h (pass_optimize_widening_mul): Declare.
14867         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
14868         gate_optimize_widening_mul): New static functions.
14869         (pass_optimize_widening_mul): New.
14870         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
14871         <case MULT_EXPR>: Remove support for widening multiplies.
14872         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
14873         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
14874         simplify_gen_unary rather than directly building extensions.
14875         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
14876         WIDEN_MULT_EXPR.
14877         * expmed.c (expand_widening_mult): New function.
14878         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
14879
14880 2010-04-21  Jan Hubicka  <jh@suse.cz>
14881
14882         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
14883         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
14884         * lto-wpa-fixup.c: Remove.
14885         * Makefile.in (lto-wpa-fixup.o): Remove.
14886         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
14887         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
14888         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
14889
14890 2010-04-21  Jan Hubicka  <jh@suse.cz>
14891
14892         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
14893         add write_optimization_summary, read_optimization_summary.
14894         (ipa_write_summaries_of_cgraph_node_set): Remove.
14895         (ipa_write_optimization_summaries): Declare.
14896         (ipa_read_optimization_summaries): Declare.
14897         * ipa-cp.c (pass_ipa_cp): Update.
14898         * ipa-reference.c (pass_ipa_reference): Update.
14899         * ipa-pure-const.c (pass_ipa_pure_const): Update.
14900         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
14901         Update.
14902         * ipa-inline.c (pass_ipa_inline): Update.
14903         * ipa.c (pass_ipa_whole_program): Update.
14904         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
14905         * passes.c (ipa_write_summaries_1): Do not test wpa.
14906         (ipa_write_optimization_summaries_1): New.
14907         (ipa_write_optimization_summaries): New.
14908         (ipa_read_summaries): Do not test ltrans.
14909         (ipa_read_optimization_summaries_1): New.
14910         (ipa_read_optimization_summaries): New.
14911
14912 2010-04-21  Jan Hubicka  <jh@suse.cz>
14913
14914         * lto-cgraph.c (lto_output_node): Do not output comdat groups
14915         for boundary nodes.
14916         (output_cgraph): Do not arrange comdat groups for boundary nodes.
14917
14918 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14919
14920         PR debug/40040
14921         * dwarf2out.c (add_name_and_src_coords_attributes): Add
14922         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
14923
14924 2010-04-21  Jan Hubicka  <jh@suse.cz>
14925
14926         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
14927
14928 2010-04-21  Jan Hubicka  <jh@suse.cz>
14929
14930         * varpool.c (decide_is_variable_needed): Variable is always needed
14931         during ltrans.
14932
14933 2010-04-21  Jan Hubicka  <jh@suse.cz>
14934
14935         * opts.c (decode_options): Enable pure-const pass for whopr.
14936
14937 2010-04-21  Jan Hubicka  <jh@suse.cz>
14938
14939         * cgraph.c (dump_cgraph_node): Dump also assembler name.
14940         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
14941         at WPA dumping.
14942         (cgraph_decide_inlining): Do not expect callee to be removed in all
14943         cases.
14944
14945 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
14946
14947         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
14948
14949 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
14950
14951         * config/i386/i386.md (x86_shrd): Add athlon_decode and
14952         amdfam10_decode attributes.
14953
14954 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14955
14956         PR middle-end/43570
14957         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
14958         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
14959         (lower_copyprivate_clauses): Use private var in outer
14960         context instead of original var.  Make sure the types
14961         are correct for VLAs.
14962
14963 2010-04-21  Richard Guenther  <rguenther@suse.de>
14964
14965         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
14966         to non-pointer objects.
14967
14968 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14969
14970         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
14971         last chain entry if it starts with the still current label.
14972         (add_location_or_const_value_attribute): Check that
14973         loc_list->first->next is NULL instead of comparing ->first with ->last.
14974         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
14975         to add_var_loc_to_decl.
14976
14977         * dwarf2out.c (output_call_frame_info): For dw_cie_version
14978         >= 4 add also address size and segment size fields into CIE header.
14979
14980         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
14981         long as address size is the same as sizeof (void *) and
14982         segment size is 0.
14983         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
14984         address size or segment size is unexpected, return DW_EH_PE_omit.
14985         (classify_object_over_fdes): If get_cie_encoding returned
14986         DW_EH_PE_omit, return -1.
14987         (init_object): If classify_object_over_fdes returned -1,
14988         pretend there were no FDEs at all.
14989
14990 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
14991
14992         * config/i386/i386.md (bswap<mode>2): Macroize expander from
14993         bswap{si,di}2 using SWI48 mode iterator.
14994         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
14995         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
14996         set modrm attribute of bswap insn to 0 and remove length attribute.
14997         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
14998         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
14999         set mode attribute to <MODE> and remove length attribute.
15000
15001 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
15002
15003         PR rtl-optimization/43520
15004         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
15005         zero available registers.
15006
15007 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15008
15009         * builtins.c (fold_builtin_cproj): Fold more cases.
15010
15011 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15012
15013         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
15014         (fold_builtin_1): Fold builtin cproj.
15015         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
15016         Use ATTR_CONST_NOTHROW_LIST.
15017
15018 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
15019
15020         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
15021         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
15022         ffsi2_no_cmove for !TARGET_CMOVE.
15023         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
15024         (ffssi2): Remove expander.
15025         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
15026         mode iterator.
15027         (ctz<mode>2): Ditto from ctz{si,di}2.
15028         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
15029         mode iterator.
15030         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
15031         mode iterator.
15032
15033 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15034
15035         * dwarf2out.c (AT_linkage_name): Define.
15036         (clone_as_declaration): Handle DW_AT_linkage_name.
15037         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
15038         of DW_AT_MIPS_linkage_name.
15039         (move_linkage_attr): Likewise.
15040         (dwarf2out_finish): Likewise.
15041
15042 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
15043
15044         PR middle-end/41952
15045         * fold-const.c (fold_comparison): New folding rule.
15046
15047 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
15048
15049         * double-int.h (double_int_setbit): Declare.
15050         * double-int.c (double_int_setbit): New function.
15051         * rtl.h (immed_double_int_const): Declare.
15052         * emit-rtl.c (immed_double_int_const): New function.
15053         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
15054         and immed_double_int_const functions.
15055         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
15056         expand_copysign_bit): (Ditto.).
15057         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
15058         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
15059         * dojump.c (prefer_and_bit_test): (Ditto.).
15060         * expr.c (convert_modes, reduce_to_bit_field_precision,
15061         const_vector_from_tree): (Ditto.).
15062         * expmed.c (mask_rtx, lshift_value): (Ditto.).
15063
15064 2010-04-20  Jan Hubicka  <jh@suse.cz>
15065
15066         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
15067         (dump_cgraph_node): Dump new flags.
15068         * cgraph.h (struct cgraph_node): Add flags
15069         reachable_from_other_partition and in_other_partition.
15070         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
15071         other partition can not be removed.
15072         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
15073         the other partition must be output; silence sanity checking on
15074         leaking functions bodies from other paritition.
15075         * lto-cgraph.c (reachable_from_other_partition_p): New function.
15076         (lto_output_node): Output new flags; do not sanity check that inline
15077         clones are output; drop lto_forced_extern_inline_p code; do not mock
15078         visibility flags at partition boundaries.
15079         (add_node_to): New function.
15080         (output_cgraph): Use it to sort functions so masters appear before
15081         clones.
15082         (input_overwrite_node): Input new flags.
15083         * passes.c (ipa_write_summaries): Do not call
15084         lto_new_extern_inline_states.
15085         * lto-section-out.c (forced_extern_inline,
15086         lto_new_extern_inline_states lto_delete_extern_inline_states,
15087         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
15088         * lto-streamer.h (lto_new_extern_inline_states,
15089         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
15090         lto_forced_extern_inline_p): Kill.
15091
15092 2010-04-20  Richard Guenther  <rguenther@suse.de>
15093
15094         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
15095         from vars that can have pointers.
15096         (process_constraint): Dump useless constraints.
15097
15098 2010-04-20  Richard Guenther  <rguenther@suse.de>
15099
15100         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
15101         (dump_sa_points_to_info): Remove asserts.
15102         (init_base_vars): nothing_id isn't an escape point nor does it
15103         have pointers.
15104
15105 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15106
15107         * tree.h (TYPE_REF_IS_RVALUE): Define.
15108         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
15109         should_move_die_to_comdat, prune_unused_types_walk): Handle
15110         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
15111         (modified_type_die, gen_reference_type_die): Emit
15112         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
15113         if TYPE_REF_IS_RVALUE and -gdwarf-4.
15114
15115 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15116
15117         PR target/43635
15118         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
15119         calls for -fpic -m31 if they have been sibcall optimized.
15120
15121 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
15122
15123         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
15124         ar.lc fixed and call-used.
15125
15126         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
15127
15128 2010-04-19  Jan Hubicka  <jh@suse.cz>
15129
15130         * opts.c (decode_options): Disable whpr incompatible passes.
15131         * lto/lto.c (lto_1_to_1_map): Skip clones.
15132         (read_cgraph_and_symbols): Do not mark everything as needed.
15133         (do_whole_program_analysis): Do map only after optimizing;
15134         set proper cgraph_state; use passmanager.
15135
15136 2010-04-19  DJ Delorie  <dj@redhat.com>
15137
15138         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
15139         POINTER_PLUS_EXPR and fix them.
15140
15141 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
15142
15143         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
15144         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
15145         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
15146         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
15147         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
15148         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
15149         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
15150         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
15151         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
15152         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
15153         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
15154
15155 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15156
15157         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
15158         (check_cond_move_block): Likewise.
15159         (cond_move_process_if_block): Likewise.
15160         (noce_find_if_block): Improve formatting.
15161         (find_if_header): Pass 0 to memset and tweak conditions.
15162         (cond_exec_find_if_block): Fix long lines and tweak conditions.
15163
15164 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
15165
15166         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
15167         for -gdwarf-4.
15168
15169         PR middle-end/43337
15170         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
15171         with non-local decl doesn't need chain.
15172
15173 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
15174
15175         * ira-color.c (allocno_reload_assign): Avoid accumulating
15176         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
15177
15178 2010-04-19  Martin Jambor  <mjambor@suse.cz>
15179
15180         * gimple.h (create_tmp_reg): Declare.
15181         * gimplify.c (create_tmp_reg): New function.
15182         (gimplify_return_expr): Use create_tmp_reg.
15183         (gimplify_omp_atomic): Likewise.
15184         (gimple_regimplify_operands): Likewise.
15185         * tree-dfa.c (make_rename_temp): Likewise.
15186         * tree-predcom.c (predcom_tmp_var): Likewise.
15187         (reassociate_to_the_same_stmt): Likewise.
15188         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
15189         (get_replaced_param_substitute): Likewise.
15190         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15191         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
15192         * tree-ssa-pre.c (get_representative_for): Likewise.
15193         (create_expression_by_pieces): Likewise.
15194         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
15195         (create_tailcall_accumulator): Likewise.
15196
15197 2010-04-19  Martin Jambor  <mjambor@suse.cz>
15198
15199         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
15200         new_stmt.
15201         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
15202
15203 2010-04-19  Richard Guenther  <rguenther@suse.de>
15204
15205         PR tree-optimization/43796
15206         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
15207         from SCEV in the lattice.
15208         (vrp_visit_phi_node): Dump change.
15209
15210 2010-04-19  Richard Guenther  <rguenther@suse.de>
15211
15212         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
15213         * configure: Re-generated.
15214
15215 2010-04-19  Richard Guenther  <rguenther@suse.de>
15216
15217         PR tree-optimization/43783
15218         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
15219         constant ARRAY_REF operands two and three if possible.
15220
15221 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
15222
15223         PR target/43766
15224         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
15225
15226 2010-04-19  Jie Zhang  <jie@codesourcery.com>
15227
15228         PR target/43662
15229         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
15230
15231 2010-04-19  Ira Rosen  <irar@il.ibm.com>
15232
15233         PR tree-optimization/37027
15234         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
15235         and macro to access it.
15236         (vectorizable_reduction): Add argument.
15237         (vect_get_slp_defs): Likewise.
15238         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
15239         statements for possible use in SLP.
15240         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
15241         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
15242         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
15243         add new argument.
15244         (vectorizable_reduction): Likewise.
15245         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
15246         vect_get_slp_defs.
15247         (vectorizable_type_demotion, vectorizable_type_promotion,
15248         vectorizable_store): Likewise.
15249         (vect_analyze_stmt): Update call to vectorizable_reduction.
15250         (vect_transform_stmt): Likewise.
15251         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
15252         (vect_build_slp_tree): Fix indentation. Check that there are no loads
15253         from different interleaving chains in same node.
15254         (vect_slp_rearrange_stmts): New function.
15255         (vect_supported_load_permutation_p): Allow load permutations for
15256         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
15257         inside SLP nodes if necessary.
15258         (vect_analyze_slp_instance): Handle reductions.
15259         (vect_analyze_slp): Try to build SLP instances originating from groups
15260         of reductions.
15261         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
15262         (vect_get_constant_vectors): Create initial vectors for reductions
15263         according to reduction code. Add new argument.
15264         (vect_get_slp_defs): Add new argument, pass it to
15265         vect_get_constant_vectors.
15266         (vect_schedule_slp_instance): Remove SLP tree root statements.
15267
15268 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
15269
15270         * tree.h (ENUM_IS_SCOPED): Define.
15271         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
15272         for ENUM_IS_SCOPED enums.
15273
15274 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15275
15276         * fold-const.c (fold_comparison): Use ssizetype.
15277         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15278         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
15279         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
15280         * tree-object-size.c (compute_object_sizes): Use size_type_node.
15281
15282         * tree.h (initialize_sizetypes): Remove parameter.
15283         (build_common_tree_nodes): Remove second parameter.
15284         * stor-layout.c (initialize_sizetypes): Remove parameter.
15285         Always create an unsigned type.
15286         (set_sizetype): Assert that the passed type is unsigned and simplify.
15287         * tree.c (build_common_tree_nodes): Remove second parameter.
15288         Adjust call to initialize_sizetypes.
15289         * c-decl.c (c_init_decl_processing): Remove second argument in call to
15290         build_common_tree_nodes.
15291
15292 2010-04-18  Matthias Klose  <doko@ubuntu.com>
15293
15294         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
15295
15296 2010-04-18  Ira Rosen  <irar@il.ibm.com>
15297
15298         PR tree-optimization/43771
15299         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
15300         load permutation doesn't have gaps.
15301
15302 2010-04-18  Jan Hubicka  <jh@suse.cz>
15303
15304         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
15305         (sse_prologue_save_insn expander): Use new pattern.
15306         (sse_prologue_save_insn1): New pattern and splitter.
15307         (sse_prologue_save_insn): Update to deal also with 64bit aligned
15308         blocks.
15309         * i386.c (setup_incoming_varargs_64): Do not compute jump
15310         destination here.
15311         (ix86_gimplify_va_arg): Update alignment needed.
15312         (ix86_local_alignment): Do not align all local arrays to 128bit.
15313
15314 2010-04-17  Jan Hubicka  <jh@suse.cz>
15315
15316         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
15317
15318 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
15319
15320         * arm.md (negdi2): Remove redundant code to force values into a
15321         register.
15322
15323 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
15324
15325         * arm/bpabi.S: Add EABI alignment attributes to objects.
15326         * arm/bpabi-v6m.S: Likewise.
15327         * arm/crti.asm: Likewise.
15328         * arm/crtn.asm: Likewise.
15329         * arm/lib1funcs.asm: Likewise.
15330         * arm/libunwind.S: Likewise.
15331
15332 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
15333
15334         * arm-protos.h (tune_params): New structure.
15335         * arm.c (current_tune): New variable.
15336         (arm_constant_limit): Delete.
15337         (struct processors): Add pointer to the tune parameters.
15338         (arm_slowmul_tune): New tuning option.
15339         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
15340         (all_cores): Adjust to pick up the tuning model.
15341         (arm_constant_limit): New function.
15342         (arm_override_options): Select the appropriate tuning model.  Delete
15343         initialization of arm_const_limit.
15344         (arm_split_constant): Use the new constant-limit model.
15345         (arm_rtx_costs): Pick up the current tuning model.
15346         * arm.md (is_strongarm, is_xscale): Delete.
15347         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
15348         for Xscale variant architectures.
15349         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
15350
15351 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15352
15353         * config/arm/arm.c (arm_gen_constant): Remove unused variable
15354         can_shift.
15355         (arm_rtx_costs_1): Remove unused variable extra_cost.
15356         (arm_unwind_emit_set): Use variable offset.
15357         (thumb1_output_casesi): Remove unused variable flags.
15358
15359 2010-04-16  Jeff Law  <law@redhat.com>
15360
15361         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
15362         needing assignment rather than doing a two-phase assignment.  Remove
15363         unused variable 'm'.
15364
15365 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
15366
15367         PR bootstrap/43767
15368         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
15369
15370 2010-04-16  Doug Kwan  <dougkwan@google.com>
15371
15372         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
15373         (next_operand_entry_id): New static variable.
15374         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
15375         (add_to_ops_vec): Assigned unique ID to operand entry.
15376         (struct oecount_s): New field ID.
15377         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
15378         (undistribute_ops_list): Assign unique IDs to oecounts.
15379         (init_reassoc): reset next_operand_entry_id.
15380
15381 2010-04-16  Doug Kwan  <dougkwan@google.com>
15382
15383         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
15384         missing left parenthesis.
15385
15386 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
15387
15388         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
15389         *btdi_rex64 using SWI48 mode iterator.
15390         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
15391         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
15392         *jcc_btdi_mask_rex64.
15393
15394 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
15395
15396         * double-int.h (tree_to_double_int): Convert to macro.
15397         * double-int.c (tree_to_double_int): Remove.
15398
15399 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
15400
15401         PR debug/43762
15402         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
15403         with want_address 2 and in case a single element list might be
15404         possible, call it again with want_address 0.
15405
15406 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
15407
15408         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
15409         case 'W' print operands for HI mode.
15410         * config/h8300/h8300.h (Y0, Y2) : New constraints.
15411         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
15412         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
15413         * config/h8300/predicate.md (bit_register_indirect_operand): New.
15414
15415         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
15416
15417         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
15418         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
15419         #xx:3 and #xx:4 mode.
15420
15421         * config/h8300/h8300.md (inverted load with HImode dest): Add
15422         support for H8300SX.
15423
15424         * config/h8300/predicate.md (bit_operand): Allow immediate values that
15425         satisfy 'U' constraint.
15426
15427 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15428
15429         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
15430         * configure: Regenerate.
15431         * config.in: Regenerate.
15432         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
15433         works.
15434
15435 2010-04-16  Richard Guenther  <rguenther@suse.de>
15436
15437         * tree.h (struct tree_decl_minimal): Move pt_uid ...
15438         (struct tree_decl_common): ... here.
15439         (DECL_PT_UID): Adjust.
15440         (SET_DECL_PT_UID): Likewise.
15441         (DECL_PT_UID_SET_P): Likewise.
15442
15443 2010-04-16  Richard Guenther  <rguenther@suse.de>
15444
15445         PR tree-optimization/43572
15446         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
15447         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
15448         * tree-flow.h (is_call_clobbered): Remove.
15449         * tree-flow-inline.h (is_call_clobbered): Likewise.
15450         * tree-dfa.c (dump_variable): Do not dump call clobber state.
15451         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
15452         (execute_return_slot_opt): Adjust.
15453         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
15454         check for call clobbered vars here.
15455         (find_tail_calls): Move tailcall verification to the
15456         proper place.
15457
15458 2010-04-16  Diego Novillo  <dnovillo@google.com>
15459
15460         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
15461
15462 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
15463
15464         PR target/40603
15465         * config/arm/arm.md (cbranchqi4): New pattern.
15466         * config/arm/predicates.md (const0_operand,
15467         cbranchqi4_comparison_operator): New predicates.
15468
15469 2010-04-16  Richard Guenther  <rguenther@suse.de>
15470
15471         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
15472         (dump_gimple_stmt): Likewise.
15473
15474 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
15475
15476         * recog.h (struct recog_data): New field is_operator.
15477         (struct insn_operand_data): New field is_operator.
15478         * recog.c (extract_insn): Set recog_data.is_operator.
15479         * genoutput.c (output_operand_data): Emit code to set the
15480         is_operator field.
15481         * reload.c (find_reloads): Use it rather than testing for an
15482         empty constraint string.
15483
15484         PR target/41514
15485         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
15486         If the previous insn is a cbranchsi4_insn with the same arguments,
15487         omit the compare instruction.
15488
15489         * config/arm/arm.md (addsi3_cbranch): If destination is a high
15490         register, inputs must be low registers and we need a low register
15491         scratch.  Handle alternative 2 like alternative 3.
15492
15493 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
15494
15495         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
15496         don't call get_addr on both.  If one expression is a VALUE and
15497         the other a REG, check VALUE's locs if the REG isn't among them.
15498
15499 2010-04-16  Christian Bruel  <christian.bruel@st.com>
15500
15501         * config/sh/sh.h (sh_frame_pointer_required): New function.
15502         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
15503         (flag_omit_frame_pointer) Set.
15504         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
15505         (rounded_frame_size): Adjust size with outgoing_args_size.
15506         (sh_set_return_address): Must return from stack pointer.
15507         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
15508         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
15509         (ACCUMULATE_OUTGOING_ARGS): Define.
15510         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
15511         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
15512
15513 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
15514
15515         PR target/43471
15516         * config/sh/sh.c (sh_legitimize_reload_address): Use
15517         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
15518         Remove a unneeded check for offset_base.
15519
15520 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
15521
15522         * configure: Regenerated.
15523
15524 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15525
15526         * config/s390/s390.c (s390_call_save_register_used): Switch back
15527         to HARD_REGNO_NREGS.
15528
15529 2010-04-15  Richard Guenther  <rguenther@suse.de>
15530
15531         * alias.c (alias_set_subset_of): Handle alias-set zero
15532         child properly.
15533
15534 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
15535             Julian Brown  <julian@codesourcery.com>
15536
15537         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
15538         alternatives according to use of high and low regs.
15539         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15540         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
15541         optimizing for size on Thumb-2.
15542
15543 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
15544
15545         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
15546
15547 2010-04-15  Richard Guenther  <rguenther@suse.de>
15548
15549         * tree-ssa-structalias.c (struct variable_info): Add
15550         is_fn_info flag.
15551         (new_var_info): Initialize it.
15552         (dump_constraints): Support printing last added constraints.
15553         (debug_constraints): Adjust.
15554         (dump_constraint_graph): Likewise.
15555         (make_heapvar_for): Check for NULL cfun.
15556         (get_function_part_constraint): New function.
15557         (get_fi_for_callee): Likewise.
15558         (find_func_aliases): Properly implement IPA PTA constraints.
15559         (process_ipa_clobber): New function.
15560         (find_func_clobbers): Likewise.
15561         (insert_into_field_list_sorted): Remove.
15562         (create_function_info_for): Properly allocate vars for IPA mode.
15563         Do not use insert_into_field_list_sorted.
15564         (create_variable_info_for): Properly generate constraints for
15565         global vars in IPA mode.
15566         (dump_solution_for_var): Always dump the solution.
15567         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
15568         (find_what_var_points_to): Adjust.
15569         (pt_solution_set): Change.
15570         (pt_solution_ior_into): New function.
15571         (pt_solution_empty_p): Export.
15572         (pt_solution_includes_global): Adjust.
15573         (pt_solution_includes_1): Likewise.
15574         (pt_solutions_intersect_1): Likewise.
15575         (dump_sa_points_to_info): Check some invariants.
15576         (solve_constraints): Move constraint dumping ...
15577         (compute_points_to_sets): ... here.
15578         (ipa_pta_execute): ... and here.
15579         (compute_may_aliases): Do not re-compute points-to info
15580         locally if IPA info is available.
15581         (ipa_escaped_pt): New global var.
15582         (ipa_pta_execute): Properly implement IPA PTA.
15583         * tree-into-ssa.c (dump_decl_set): Support dumping
15584         decls not in referenced-vars.
15585         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
15586         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
15587         (dump_points_to_solution): Likewise.
15588         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
15589         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
15590         (remap_gimple_stmt): Reset call clobber/use information if necessary.
15591         (copy_decl_to_var): Copy DECL_PT_UID.
15592         (copy_result_decl_to_var): Likewise.
15593         * tree.c (make_node_stat): Initialize DECL_PT_UID.
15594         (copy_node_stat): Copy it.
15595         * tree.h (DECL_PT_UID): New macro.
15596         (SET_DECL_PT_UID): Likewise.
15597         (DECL_PT_UID_SET_P): Likewise.
15598         (struct tree_decl_minimal): Add pt_uid member.
15599         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
15600         (pt_solution_empty_p): Declare.
15601         (pt_solution_set): Adjust.
15602         (ipa_escaped_pt): Declare.
15603         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
15604         * gimple-pretty-print.c (pp_points_to_solution): New function.
15605         (dump_gimple_call): Dump call clobber/use information.
15606         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
15607         * tree-pass.h (TDF_ALIAS): New dump option.
15608         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
15609         * doc/invoke.texi (-fipa-pta): Update documentation.
15610
15611 2010-04-15  Richard Guenther  <rguenther@suse.de>
15612
15613         * Makefile.in (OBJS-common): Add gimple-fold.o.
15614         (gimple-fold.o): New rule.
15615         * tree.h (maybe_fold_offset_to_reference,
15616         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
15617         prototypes ...
15618         * gimple.h: ... here.
15619         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
15620         may_propagate_address_into_dereference): Move prototypes ...
15621         * gimple.h: ... here.
15622         * tree-ssa-ccp.c (get_symbol_constant_value,
15623         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
15624         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
15625         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
15626         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
15627         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
15628         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
15629         gimplify_and_update_call_from_tree): Move ...
15630         * gimple-fold.c: ... here.  New file.
15631         (ccp_fold_builtin): Rename to ...
15632         (gimple_fold_builtin): ... this.
15633         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
15634
15635 2010-04-15  Richard Guenther  <rguenther@suse.de>
15636
15637         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
15638         fit_double_type, force_fit_type_double, add_double_with_sign,
15639         neg_double, mul_double_with_sign, lshift_double, rshift_double,
15640         lrotate_double, rrotate_double, div_and_round_double): Move ...
15641         * double-int.c: ... here.
15642         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
15643         add_double, neg_double, mul_double_with_sign, mul_double,
15644         lshift_double, rshift_double, lrotate_double, rrotate_double,
15645         div_and_round_double): Move prototypes ...
15646         * double-int.h: ... here.
15647
15648 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
15649
15650         PR target/43742
15651         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
15652         matching constraints to ensure inputs match the output.
15653
15654 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
15655
15656         PR target/43742
15657         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
15658         in an input-only operand.
15659
15660 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
15661
15662         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
15663         (double_int_not, double_int_lshift, double_int_rshift): Declare.
15664         (double_int_negative_p): Convert to static inline function.
15665         * double-int.c (double_int_lshift, double_int_lshift): New functions.
15666         (double_int_negative_p): Remove.
15667         * tree.h (lshift_double, rshift_double):
15668         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
15669         * fold-const.c (fold_convert_const_int_from_real,
15670         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
15671         (lshift_double): Change type of arith argument to bool.
15672         (rshift_double): Change type of arith argument to bool. Correct
15673         comment.
15674         * expmed.c (mask_rtx, lshift_value): (Ditto.).
15675
15676 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
15677
15678         PR target/21803
15679         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
15680         at the start and end of the then/else blocks, and omit them from the
15681         conversion.
15682         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
15683         argument; all callers changed.  Pass zero to old_insns_match_p instead.
15684         (flow_find_head_matching_sequence): New function.
15685         (old_insns_match_p): Check REG_EH_REGION notes for calls.
15686         * basic-block.h (flow_find_cross_jump,
15687         flow_find_head_matching_sequence): Declare functions.
15688
15689 2010-04-14  Jason Merrill  <jason@redhat.com>
15690
15691         PR c++/36625
15692         * c-common.c (attribute_takes_identifier_p): New fn.
15693         * c-common.h: Declare it.
15694
15695 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15696
15697         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
15698         splitter condition.
15699         (*udivmod<mode>4): Ditto.
15700
15701 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15702
15703         * config/i386/i386.md (maxmin_int): Rename code attribute from
15704         maxminiprefix and update all users.
15705         (maxmin_float): Ditto from maxminfprefix.
15706         (logic): Ditto from logicprefix.
15707         (absneg_mnemonic): Ditto from absnegprefix.
15708         * config/i386/mmx.md: Update all users of maxminiprefix,
15709         maxminfprefix and logicprefix for rename.
15710         * config/i386/sse.md: Ditto.
15711         * config/i386/sync.md (sync_<code><mode>): Update for
15712         logicprefix rename.
15713
15714 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15715
15716         PR 42966
15717         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
15718         warnings converted to errors.
15719
15720 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15721
15722         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
15723         used insn_type variable.
15724         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
15725         to avoid set-but-not-used warning.
15726
15727 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15728
15729         * df-core.c (df_ref_debug): Change format string placeholder
15730         from 0x%x to %#x.
15731         * dwarf2asm.c (dw2_asm_output_data_raw,
15732         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
15733         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
15734         * dwarf2out.c (output_cfi, output_cfi_directive,
15735         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
15736         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
15737         Ditto.
15738         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
15739         * print-rtl.c (print_rtx): Ditto.
15740
15741 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15742
15743         PR middle-end/42694
15744         * builtins.c (expand_builtin_pow_root): New function to expand pow
15745         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
15746         series of sqrt and cbrt calls under -ffast-math.
15747         (expand_builtin_pow): Call it.
15748
15749 2010-04-14  Michael Matz  <matz@suse.de>
15750
15751         PR tree-optimization/42963
15752         * tree-cfg.c (touched_switch_bbs): New static variable.
15753         (group_case_labels_stmt): New function broken out from ...
15754         (group_case_labels): ... here, use the above.
15755         (start_recording_case_labels): Allocate touched_switch_bbs.
15756         (end_recording_case_labels): Deallocate it, call
15757         group_case_labels_stmt.
15758         (gimple_redirect_edge_and_branch): Remember index of affected BB.
15759
15760 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15761
15762         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
15763         from insn template.
15764
15765 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15766
15767         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
15768
15769 2010-04-13  Jan Hubicka  <jh@suse.cz>
15770
15771         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
15772         of optimized out static functions.
15773         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
15774         cost computation.  Also sanity check for overflows.
15775         (update_caller_keys): Update cgraph_edge_badness call; properly
15776         update fibheap and sanity check that it is up to date.
15777         (add_new_edges_to_heap): Update cgraph_edge_badness.
15778         (cgraph_decide_inlining_of_small_function): Likewise;
15779         add sanity checking that badness in heap is up to date;
15780         improve dumping of reason; Update badness of calls to the
15781         offline copy of function currently inlined; dump badness
15782         of functions not inlined because of unit growth limits.
15783
15784 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
15785
15786         PR middle-end/32628
15787         * c-common.c (pointer_int_sum): Disregard overflow that occured only
15788         because of sign-extension change when converting to sizetype here...
15789         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
15790
15791         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
15792         the folding to constants.  Remove redundant final conversion.
15793         (fold_binary) <associate>: Do not associate if the re-association of
15794         constants alone overflows.
15795         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
15796         to the end of the list.
15797         (multiple_of_p) <COND_EXPR>: New case.
15798
15799 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15800
15801         * opt-functions.awk (opt_sanitized_name): New.
15802         (opt_enum): New.
15803         * optc-gen.awk: Use it
15804         * opth-gen.awk: Use it.
15805
15806 2010-04-13  Martin Jambor  <mjambor@suse.cz>
15807
15808         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
15809         (sra_modify_assign): Delete stmts loading dead data even if racc has no
15810         children.  Call replace_uses_with_default_def_ssa_name to handle
15811         SSA_NAES on lhs.
15812
15813 2010-04-13  Michael Matz  <matz@suse.de>
15814
15815         PR middle-end/43730
15816         * builtins.c (expand_builtin_interclass_mathfn): Also create
15817         a register if the predicate doesn't match.
15818
15819 2010-04-13  Diego Novillo  <dnovillo@google.com>
15820
15821         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
15822         * c-pch.c: Include timevar.h.
15823         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
15824         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
15825         * ggc-common.c: Include timevar.h.
15826         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
15827         * timevar.def (TV_PCH_SAVE): Define.
15828         (TV_PCH_CPP_SAVE): Define.
15829         (TV_PCH_PTR_REALLOC): Define.
15830         (TV_PCH_PTR_SORT): Define.
15831         (TV_PCH_RESTORE): Define.
15832         (TV_PCH_CPP_RESTORE): Define.
15833
15834 2010-04-13  Michael Matz  <matz@suse.de>
15835
15836         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
15837         into MINUS_EXPRs.
15838         (can_reassociate_p): New function.
15839         (break_up_subtract_bb, reassociate_bb): Use it.
15840
15841 2010-04-13  Richard Guenther  <rguenther@suse.de>
15842
15843         PR bootstrap/43737
15844         * builtins.c (c_readstr): Fix assert.
15845
15846 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
15847
15848         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
15849         when generating cltd insn.
15850
15851         (*ashl<mode>3_1): Remove special handling for register operand 2.
15852         (*ashlsi3_1_zext): Ditto.
15853         (*ashlhi3_1): Ditto.
15854         (*ashlhi3_1_lea): Ditto.
15855         (*ashlqi3_1): Ditto.
15856         (*ashlqi3_1_lea): Ditto.
15857         (*<shiftrt_insn><mode>3_1): Ditto.
15858         (*<shiftrt_insn>si3_1_zext): Ditto.
15859         (*<shiftrt_insn>qi3_1_slp): Ditto.
15860         (*<rotate_insn><mode>3_1): Ditto.
15861         (*<rotate_insn>si3_1_zext): Ditto.
15862         (*<rotate_insn>qi3_1_slp): Ditto.
15863
15864 2010-04-13  Richard Guenther  <rguenther@suse.de>
15865
15866         * tree-ssa-structalias.c (callused_id): Remove.
15867         (call_stmt_vars): New.
15868         (get_call_vi): Likewise.
15869         (lookup_call_use_vi): Likewise.
15870         (lookup_call_clobber_vi): Likewise.
15871         (get_call_use_vi): Likewise.
15872         (get_call_clobber_vi): Likewise.
15873         (make_transitive_closure_constraints): Likewise.
15874         (handle_const_call): Adjust to do per-call call-used handling.
15875         (handle_pure_call): Likewise.
15876         (find_what_var_points_to): Remove general callused handling.
15877         (init_base_vars): Likewise.
15878         (init_alias_vars): Initialize call_stmt_vars.
15879         (compute_points_to_sets): Process call-used and call-clobbered
15880         vars for call statements.
15881         (delete_points_to_sets): Free call_stmt_vars.
15882
15883 2010-04-13  Richard Guenther  <rguenther@suse.de>
15884
15885         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15886         Only add RW dependence for dependence distance zero.
15887         Adjust maximal vectorization factor according to dependences.
15888         Move alignment handling ...
15889         (vect_find_same_alignment_drs): ... here.  New function.
15890         (vect_analyze_data_ref_dependences): Adjust.
15891         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
15892         (vect_analyze_data_refs): Adjust minimal vectorization factor
15893         according to data references.
15894         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
15895         dependences before determining the vectorization factor.
15896         Analyze alignment after determining the vectorization factor.
15897         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
15898         dependences before alignment.
15899         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
15900         Adjust prototype.
15901         (vect_analyze_data_refs): Likewise.
15902         (MAX_VECTORIZATION_FACTOR): New define.
15903
15904 2010-04-13  Duncan Sands  <baldrick@free.fr>
15905
15906         * except.h (lang_eh_type_covers): Remove.
15907         * except.c (lang_eh_type_covers): Likewise.
15908
15909 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15910             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15911
15912         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
15913         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
15914         UNITS_PER_LONG where it is ABI relevant.
15915         (s390_return_addr_rtx): Likewise.
15916         (s390_back_chain_rtx): Likewise.
15917         (s390_frame_area): Likewise.
15918         (s390_frame_info): Likewise.
15919         (s390_initial_elimination_offset): Likewise.
15920         (save_gprs): Likewise.
15921         (s390_emit_prologue): Likewise.
15922         (s390_emit_epilogue): Likewise.
15923         (s390_function_arg_advance): Likewise.
15924         (s390_function_arg): Likewise.
15925         (s390_va_start): Likewise.
15926         (s390_gimplify_va_arg): Likewise.
15927         (s390_function_profiler): Likewise.
15928         (s390_optimize_prologue): Likewise.
15929         (s390_rtx_costs): Likewise.
15930         (s390_secondary_reload): Likewise.
15931         (s390_promote_function_mode): Likewise.
15932         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
15933         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
15934         registers available.
15935         (s390_unwind_word_mode): New function.
15936         (s390_function_value): Split 64 bit values into register pair if
15937         used as return value.
15938         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
15939         function call parameters.  Handle parallels.
15940         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
15941         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
15942         (DWARF_CIE_DATA_ALIGNMENT): New macro.
15943         (s390_expand_setmem): Remove unused variable src_addr.
15944         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
15945         deal with 64 bit registers.
15946         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
15947         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
15948         (UNITS_PER_LONG): New macro.
15949         * libjava/include/s390-signal.h: Define extended ucontext
15950         structure containing the upper halfs of the 64 bit registers.
15951
15952 2010-04-13  Simon Baldwin  <simonb@google.com>
15953
15954         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
15955
15956 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
15957
15958         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
15959         rvalue on the RHS if the LHS is of a non-renamable type.
15960         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
15961
15962 2010-04-13  Matthias Klose  <doko@ubuntu.com>
15963
15964         * gcc.c (cc1_options): Handle -iplugindir before processing
15965         the cc1 spec. Only add -iplugindir once.
15966         (cpp_unique_options): Add -iplugindir option if -fplugin* options
15967         found.
15968         * common.opt (iplugindir): Remove `Separate' property, initialize.
15969         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
15970         option.
15971         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
15972         (distclean): Remove plugin dir.
15973         * doc/invoke.texi: Document -iplugindir.
15974
15975 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
15976
15977         * doc/plugins.texi (Loading Plugins): Document short
15978         -fplugin=foo option.
15979         (Plugin API): Mention default_plugin_dir_name function.
15980
15981         * gcc.c (find_file_spec_function): Add new declaration.
15982         (static_spec_func): Use it for "find-file".
15983         (find_file_spec_function): Add new function.
15984         (cc1_options): Add -iplugindir option if -fplugin* options found.
15985
15986         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
15987
15988         * plugin.c (add_new_plugin): Updated comment, and handle short
15989         plugin name.
15990         (default_plugin_dir_name): Added new function.
15991
15992         * common.opt (iplugindir): New option to set the plugin directory.
15993
15994 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
15995
15996         * config/i386/i386.md (any_rotate): New code iterator.
15997         (rotate_insn): New code attribute.
15998         (rotate): Ditto.
15999         (SWIM124): New mode iterator.
16000         (<rotate_insn>ti3): New expander.
16001         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
16002         any_rotate code iterator.
16003         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
16004         using any_rotate code iterator and SWIM124 mode iterator.
16005         (ix86_rotlti3): New insn_and_split pattern.
16006         (ix86_rotrti3): Ditto.
16007         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
16008         ix86_rotl{di,ti}3 patterns.
16009         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
16010         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
16011         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
16012         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
16013         code iterator and SWI mode iterator.
16014         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
16015         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
16016         code iterator.
16017         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
16018         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
16019         (bswap rotatert splitter): Add splitter.
16020         (bswap splitter): Macroize splitter using any_rotate code iterator.
16021         Add insn predicate to split only for TARGET_USE_XCHGB or when
16022         optimizing function for size.
16023
16024 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16025
16026         * config/pa/pa.c (emit_move_sequence): Remove use of
16027         deleted variable flag_argument_noalias.
16028
16029 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16030
16031         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
16032         configurations.
16033         Add to unsupported targets list.
16034         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
16035         sparc*-sun-solaris2.[567]* from target lists.
16036         * configure: Regenerate.
16037         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
16038         removal.
16039         Remove Solaris 7 patch references.
16040         (Specific, sparc-sun-solaris2.7): Removed.
16041         (sparc-sun-solaris2*): Update Solaris 7 example.
16042         (sparc64-*-solaris2*): Likewise.
16043
16044 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16045
16046         * config.build (alpha*-dec-osf4*): Remove.
16047         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
16048         of obsolete configurations.
16049         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
16050         support.
16051         * config/alpha/t-osf4: Renamed to ...
16052         * config/alpha/t-osf5: ... this.
16053         * config/alpha/osf.h: Renamed to ...
16054         * config/alpha/osf5.h: ... this.
16055         Merged old osf5.h contents.
16056         Update comments.
16057         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
16058         (EXTRA_SPECS): Removed.
16059         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
16060         reflect removal of Tru64 UNIX V4.0/V5.0 support.
16061         Document that.
16062
16063 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16064
16065         * doc/contrib.texi (Contributors, Rainer Orth): Update.
16066
16067 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
16068
16069         PR/43702
16070         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
16071         __thiscall convention.
16072
16073 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16074
16075         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
16076         orig_base.
16077         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
16078
16079 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16080
16081         * function.c (assign_parms_initialize_all): Add unused attribute
16082         to fntype.
16083
16084 2010-04-12  Richard Guenther  <rguenther@suse.de>
16085
16086         * gsstruct.def (GSS_CALL): New.
16087         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
16088         * gimple.h: Include tree-ssa-alias.h.
16089         (struct gimple_statement_call): New.
16090         (union gimple_statement_struct_d): Add gimple_call member.
16091         (gimple_call_reset_alias_info): Declare.
16092         (gimple_call_use_set): New function.
16093         (gimple_call_clobber_set): Likewise.
16094         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
16095         * gimple.c (gimple_call_reset_alias_info): New function.
16096         (gimple_build_call_1): Call it.
16097         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16098         * tree-inline.c (remap_gimple_stmt): Likewise.
16099         (expand_call_inline): Remove callused handling.
16100         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
16101         * tree-dfa.c (dump_variable): Likewise.
16102         * tree-parloops.c (parallelize_loops): Likewise.
16103         * tree-ssa.c (init_tree_ssa): Likewise.
16104         (delete_tree_ssa): Likewise.
16105         * tree-flow-inline.h (is_call_used): Remove.
16106         * tree-flow.h (struct gimple_df): Remove callused member.
16107         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
16108         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
16109         (ref_maybe_used_by_call_p_1): Simplify.
16110         (call_may_clobber_ref_p_1): Likewise.
16111         * tree-ssa-structalias.c (compute_points_to_sets): Set
16112         the call stmt used and clobbered sets.
16113         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
16114         (find_tail_calls): Verify the tail call.
16115
16116 2010-04-12  Richard Guenther  <rguenther@suse.de>
16117
16118         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
16119         single-iteration always-inline inlining.
16120         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
16121         (cgraph_decide_inlining): Do not handle always-inline specially.
16122         (try_inline): Remove always-inline cycle detection special case.
16123         Do not recurse on always-inlines.
16124         (cgraph_early_inlining): Do not iterate if not optimizing.
16125         (cgraph_gate_early_inlining): remove.
16126         (pass_early_inline): Run unconditionally.
16127         (gate_cgraph_decide_inlining): New function.
16128         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
16129         not inlining or optimizing.
16130         (cgraph_decide_inlining_of_small_functions): Also consider
16131         always-inline functions.
16132         (cgraph_default_inline_p): Return true for nodes which should
16133         disregard inline limits.
16134         (estimate_function_body_sizes): Assume zero size and time for
16135         nodes which are marked as disregarding inline limits.
16136         (cgraph_decide_recursive_inlining): Do not perform recursive
16137         inlining on always-inline nodes.
16138
16139 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
16140
16141         PR bootstrap/43699
16142         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
16143         for exprs satisfying handled_component_p.
16144
16145 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
16146
16147         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
16148         non-constant aggregate elements.
16149
16150         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
16151         is a real initialization.
16152
16153 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
16154
16155         PR c/36774
16156         * c-decl.c (start_function): Move forward check for nested function.
16157
16158 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16159
16160         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
16161         * config/sh/sh.c: Include reload.h.
16162         (sh_legitimize_reload_address): New.
16163         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
16164         sh_legitimize_reload_address.
16165
16166 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16167
16168         * config/sh/sh.md (*movqi_pop): New insn pattern.
16169         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
16170
16171 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16172
16173         * config/i386/i386.md (any_shiftrt): New code iterator.
16174         (shiftrt_insn): New code attribute.
16175         (shiftrt): Ditto.
16176         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
16177         using any_shiftrt code iterator.
16178         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
16179         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
16180         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
16181         pattern from corresponding peephole2 patterns.
16182         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
16183         using any_shiftrt code iterator.
16184         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
16185         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
16186         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
16187         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
16188         *{ashr,lshr}<mode>3_cmp_zext.
16189         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
16190
16191 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16192
16193         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
16194         scratch register.
16195         (*lshr<mode>3_cconly): Ditto.
16196
16197 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16198
16199         * config/i386/i386.md (lshr<mode>3): Macroize expander from
16200         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
16201         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
16202         pattern from *lshr{di,ti}3_1 and corresponding splitters using
16203         DWI mode iterator.
16204         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
16205         from corresponding peephole2 patterns.
16206         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
16207         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
16208         and *lshrdi3_1_rex64 using SWI mode iterator.
16209         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
16210         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
16211         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
16212         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
16213         and *lshrdi3_cmp_rex64 using SWI mode iterator.
16214         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
16215         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
16216         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
16217         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
16218         SWI mode iterator.
16219
16220 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
16221
16222         * config/i386/i386.md (ashr<mode>3): Macroize expander from
16223         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
16224         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
16225         pattern from *ashr{di,ti}3_1 and corresponding splitters using
16226         DWI mode iterator.
16227         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
16228         from corresponding peephole2 patterns.
16229         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
16230         (ashrsi3_cvt): Rename from ashrsi3_31.
16231         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
16232         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
16233         and x86_64_shift_adj_3 using SWI48 mode iterator.
16234         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
16235         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
16236         and *ashrdi3_1_rex64 using SWI mode iterator.
16237         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
16238         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
16239         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
16240         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
16241         and *ashrdi3_cmp_rex64 using SWI mode iterator.
16242         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
16243         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
16244         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
16245         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
16246         SWI mode iterator.
16247         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
16248         * config/i386/i386.c (ix86_split_ashr): Update for renamed
16249         x86_shift<mode>_adj_3 expanders.
16250
16251 2010-04-10  Wei Guozhi  <carrot@google.com>
16252
16253         PR target/42601
16254         * config/arm/arm.c (arm_pic_static_addr): New function.
16255         (legitimize_pic_address): Call arm_pic_static_addr when it detects
16256         a static symbol.
16257         (arm_output_addr_const_extra): Output expression for new pattern.
16258         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
16259
16260 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
16261
16262         * ira-costs.c (record_reg_classes): Ignore alternatives that are
16263         not enabled.
16264
16265         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
16266         * web.c: Include "insn-config.h" and "recog.h".
16267         (union_match_dups): New function.
16268         (web_main): Call it.
16269         (union_defs): Don't try to recognize match_dups.
16270
16271         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
16272         if doing so would replace the entire pattern.
16273
16274 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
16275
16276         PR target/43707
16277         PR target/43709
16278         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
16279         and splitter pattern.  Change splitter operand 1 predicate to
16280         nonmemory_operand.
16281
16282 2010-04-09  Martin Jambor  <mjambor@suse.cz>
16283
16284         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
16285         lattices are addresses of CONST_DECLs with the same initial value.
16286         (ipcp_print_all_lattices): Print values of CONST_DECLs.
16287         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
16288
16289 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
16290             Bernd Schmidt  <bernds@codesourcery.com>
16291
16292         * loop-invariant.c (replace_uses): New static function.
16293         (move_invariant_reg): Use it to ensure we can replace the uses.
16294
16295 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
16296
16297         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
16298         function template.
16299         (picochip_override_options): Enable section anchors only above -O1.
16300         (picochip_reorg): Fixed a couple of build warnings.
16301
16302 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16303
16304         * configure.ac (plugin -rdynamic test): Log result.
16305         * configure: Regenerate.
16306         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
16307         (RDYNAMIC_SPEC): Define.
16308         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
16309
16310 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16311
16312         * configure.ac: Determine Sun ld version numbers.
16313         (comdat_group): Restrict GNU ld version checks to gld.
16314         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
16315         (enable_comdat): Support --enable-comdat.
16316         * configure: Regenerate.
16317         * doc/install.texi (Configuration): Document --enable-comdat.
16318
16319 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16320
16321         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
16322         * config/sol2-gld.h: ... here.
16323         * config.gcc (sparc*-*-solaris2*): Reflect this.
16324         (i[34567]86-*-solaris2*): Use it.
16325
16326 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
16327
16328         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
16329         setup_clocks_p.
16330         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
16331
16332 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16333
16334         PR 42965
16335         * diagnostic.c (diagnostic_initialize): Initialize
16336         some_warnings_are_errors.
16337         (diagnostic_finish): New.
16338         (diagnostic_action_after_output): Call it before exiting.
16339         (diagnostic_report_diagnostic): Do not print message here. Set
16340         some_warnings_are_errors.
16341         * diagnostic.h (diagnostic_context): Delete
16342         issue_warnings_are_errors_message. Add some_warnings_are_errors.
16343         (diagnostic_finish): Declare.
16344         * toplev.c (toplev_main): Call it before exit.
16345
16346 2010-04-09  Jason Merrill  <jason@redhat.com>
16347
16348         PR c++/42623
16349         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
16350         for incomplete type.
16351
16352         PR c++/41788
16353         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
16354         based on a warning flag.
16355
16356 2010-04-09  Richard Guenther  <rguenther@suse.de>
16357
16358         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
16359
16360 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
16361
16362         PR bootstrap/43684
16363         * varasm.c (default_assemble_visibility): Wrap vars that are
16364         set, but unused, by targets without GAS.
16365         * config/rs6000/rs6000.c (paired_emit_vector_compare):
16366         Remove set, but unused, vars.
16367         (rs6000_legitimize_tls_address): Likewise.
16368         (altivec_expand_dst_builtin): Likewise.
16369         * config/darwin.c (machopic_classify_symbol): Likewise.
16370         (machopic_indirection_name): Likewise.
16371
16372 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
16373
16374         * config/i386/i386.md (DWI): New mode iterator.
16375         (S): New mode attribute.
16376         (shift_operand): Ditto.
16377         (shift_immediate_operand): Ditto.
16378         (ashl_input_operand): Ditto.
16379         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
16380         using SDWIM mode iterator.
16381         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
16382         pattern from *ashl{di,ti}3_1 and corresponding splitters using
16383         DWI mode iterator.
16384         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
16385         from corresponding peephole2 patterns.
16386         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
16387         and x86_64_shift_adj_1 using SWI48 mode iterator.
16388         (x86_shift<mode>_adj_2): Ditto.
16389         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
16390         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
16391         using SWI48 mode iterator.
16392         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
16393         *ashldi3_cmp_rex64 using SWI mode iterator.
16394         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
16395         *ashldi3_cconly_rex64 using SWI mode iterator.
16396         * config/i386/i386.c (ix86_split_ashl): Update for renamed
16397         x86_shift<mode>_adj_{1,2}.
16398         (ix86_split_ashr): Ditto.
16399         (ix86_split_lshr): Ditto.
16400
16401 2010-04-09  Richard Guenther  <rguenther@suse.de>
16402
16403         * target.h (builtin_conversion): Pass in input and output types.
16404         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
16405         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
16406         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
16407         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
16408
16409         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
16410         Handle AVX modes.
16411         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
16412
16413 2010-04-09  Richard Guenther  <rguenther@suse.de>
16414
16415         PR target/43152
16416         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
16417
16418 2010-04-09  Richard Guenther  <rguenther@suse.de>
16419
16420         * tree-vectorizer.h (struct _stmt_vec_info): Document
16421         that vectype is the type of the LHS.
16422         (supportable_widening_operation, supportable_narrowing_operation):
16423         Get both input and output vector types as arguments.
16424         (vect_is_simple_use_1): Declare.
16425         (get_same_sized_vectype): Likewise.
16426         * tree-vect-loop.c (vect_determine_vectorization_factor):
16427         Set STMT_VINFO_VECTYPE to the vector type of the def.
16428         (vectorizable_reduction): Adjust.
16429         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
16430         Adjust.  Specify the output vector type.
16431         (vect_pattern_recog_1): Adjust.
16432         * tree-vect-stmts.c (get_same_sized_vectype): New function.
16433         (vectorizable_call): Adjust.
16434         (vectorizable_conversion): Likewise.
16435         (vectorizable_operation): Likewise.
16436         (vectorizable_type_demotion): Likewise.
16437         (vectorizable_type_promotion): Likewise.
16438         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
16439         the def.
16440         (vect_is_simple_use_1): New function.
16441         (supportable_widening_operation): Get both input and output
16442         vector types.
16443         (supportable_narrowing_operation): Likewise.
16444         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
16445
16446 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
16447
16448         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
16449         __thiscall and _thiscall as predefined macros.
16450         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
16451         thiscall attribute handling.
16452         (ix86_comp_type_attributes): Likewise.
16453         (ix86_function_regparm): Likewise.
16454         (ix86_return_pops_args): Likewise.
16455         (init_cumulative_args): Likewise.
16456         (find_drap_reg): Likewise.
16457         (ix86_static_chain): Likewise.
16458         (x86_this_parameter): Likewise.
16459         (x86_output_mi_thunk): Likewise.
16460         (ix86_attribute_table): Add description for thiscall attribute.
16461         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
16462         * doc/extend.texi: Add documentation for thiscall.
16463
16464 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16465
16466         PR c++/28584
16467         * c.opt (Wint-to-pointer-cast): Available in C++.
16468         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
16469
16470 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
16471
16472         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
16473         * calls.c (expand_call): Pass the function type to aggregate_value_p.
16474         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
16475         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
16476         function type instead.  Reorder and simplify checks.
16477
16478         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
16479
16480 2010-04-08  Jing Yu  <jingyu@google.com>
16481             Zdenek Dvorak  <ook@ucw.cz>
16482
16483         PR tree-optimization/42720
16484         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
16485         loop unswitch conditions here from ...
16486         (tree_unswitch_single_loop): ... here.
16487
16488 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
16489
16490         * tree-if-conv.c: Fix comments and simplify logic.
16491
16492 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
16493
16494         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
16495         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
16496         (main_tree_if_conversion): Update call to tree_if_conversion.
16497
16498 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16499
16500         PR 42485
16501         * doc/invoke.texi (-b,-V): Delete.
16502         * doc/tm.texi: Do not mention -b.
16503         * gcc.c (display_help): Delete -b and -V.
16504         (process_command): Delete -b and -V.
16505         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
16506
16507 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
16508             Wolfgang Gellerich  <gellerich@de.ibm.com>
16509
16510         Implement target hook for loop unrolling
16511         * target.h (loop_unroll_adjust): Add a new target hook function.
16512         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
16513         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
16514         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
16515         (s390_loop_unroll_adjust): Implement the new target hook for s390.
16516         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
16517         target hook.
16518         (decide_unroll_stupid): Likewise.
16519
16520 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16521
16522         PR target/43643
16523         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
16524
16525 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16526
16527         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
16528         (Specific, *-*-solaris2*): Likewise.
16529         Don't prefer Sun as over GNU as.
16530
16531 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
16532
16533         * config/s390/s390.c (override_options): Adjust the z10 defaults
16534         for max-unroll-times, max-completely-peeled-insns
16535         and max-completely-peel-times.
16536
16537 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16538
16539         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
16540         instructions for z10.
16541         (s390_expand_setmem): Likewise.
16542         (s390_expand_cmpmem): Likewise.
16543
16544 2010-04-08  Richard Guenther  <rguenther@suse.de>
16545
16546         PR tree-optimization/43679
16547         * tree-ssa-pre.c (eliminate): Only propagate copies.
16548
16549 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
16550
16551         PR bootstrap/43681
16552         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
16553         set but not used variable warning.
16554
16555 2010-04-08  Wei Guozhi  <carrot@google.com>
16556
16557         PR target/41653
16558         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
16559         (arm_size_rtx_costs): Call the new function when optimized for size.
16560
16561 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
16562
16563         PR debug/43670
16564         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
16565         op0 is not a MEM, just return NULL instead of assertion
16566         failure.
16567         (discover_nonconstant_array_refs): Don't walk debug stmts.
16568
16569 2010-04-08  Doug Kwan  <dougkwan@google.com>
16570
16571         * configure.ac: Recognize gold and do not use its version number
16572         to test ld features.
16573         * configure: Regenerate.
16574
16575 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
16576
16577         PR middle-end/40815
16578         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
16579         (negate_value): Move code to push elements to broken_up_substracts ...
16580         (eliminate_plus_minus_pair): ... here.  Push operands that have no
16581         negative pair to plus_negates.
16582         (repropagate_negates, init_reassoc, fini_reassoc): Update.
16583
16584 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16585
16586         * doc/install.texi (Configuration): Move description of
16587         --enable-lto, --with-libelf*, --enable-gold from Java section to
16588         general section.
16589
16590         * doc/generic.texi (Working with declarations)
16591         (Function Properties, C and C++ Trees): Fix typos.
16592         * doc/sourcebuild.texi (Top Level): Likewise.
16593
16594 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
16595
16596         PR c/18624
16597         * tree.h (DECL_READ_P): Define.
16598         (struct tree_decl_common): Add decl_read_flag.
16599         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
16600         a set but not used warning.
16601         (merge_decls): Merge DECL_READ_P flag.
16602         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
16603         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
16604         * c-common.c (handle_used_attribute, handle_unused_attribute):
16605         Likewise.
16606         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
16607         New prototypes.
16608         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
16609         New functions.
16610         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
16611         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
16612         c_parser_binary_expression, c_parser_cast_expression,
16613         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
16614         Call default_function_array_read_conversion instead of
16615         default_function_array_conversion where needed.
16616         (c_parser_unary_expression, c_parser_conditional_expression,
16617         c_parser_postfix_expression_after_primary, c_parser_initelt):
16618         Likewise.  Call mark_exp_read where needed.
16619         (c_parser_statement_after_labels, c_parser_asm_operands,
16620         c_parser_typeof_specifier, c_parser_sizeof_expression,
16621         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
16622         where needed.
16623         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
16624         New.
16625         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
16626         (warn_unused_but_set_parameter): Default to warn_unused
16627         && extra_warnings.
16628         * doc/invoke.texi: Document -Wunused-but-set-variable and
16629         -Wunused-but-set-parameter.
16630
16631         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
16632         used count variable.
16633         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
16634         when operandN variables aren't used in the body of the expander
16635         or splitter.
16636         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
16637         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
16638         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
16639         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
16640         FOR_EACH_IMM_USE_ON_STMT): Likewise.
16641         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
16642         * tree.c (PROCESS_ARG): Likewise.
16643
16644 2010-04-07  Simon Baldwin  <simonb@google.com>
16645
16646         * diagnostic.h (diagnostic_override_option_index): New macro to
16647         set a diagnostic's option_index.
16648         * c-tree.h (c_cpp_error): Add warning reason argument.
16649         * opts.c (_warning_as_error_callback): New.
16650         (register_warning_as_error_callback): Store callback for
16651         warnings enabled via enable_warning_as_error.
16652         (enable_warning_as_error): Call callback, minor code tidy.
16653         * opts.h (register_warning_as_error_callback): Declare.
16654         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
16655         response to -Werror=.
16656         (c_common_init_options): Register warning_as_error_callback in opts.c.
16657         * common.opt: Add -Wno-cpp option.
16658         * c-common.c (struct reason_option_codes_t): Map cpp warning
16659         reason codes to gcc option indexes.
16660         * (c_option_controlling_cpp_error): New function, lookup the gcc
16661         option index for a cpp warning reason code.
16662         * (c_cpp_error): Add warning reason argument, call
16663         c_option_controlling_cpp_error for diagnostic_override_option_index.
16664         * doc/invoke.texi: Document -Wno-cpp.
16665
16666 2010-04-07  Richard Guenther  <rguenther@suse.de>
16667
16668         * ipa-reference.c (mark_load): Use get_base_address.
16669         (mark_store): Likewise.
16670
16671         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
16672         inserting GIMPLE_NOPs into the IL.
16673         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16674         Explicitly strip handled components and indirect references.
16675
16676         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
16677         folding address expressions.
16678         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
16679         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
16680         operand_equal_p to compare decls.
16681         (ptr_deref_may_alias_decl_p): Likewise.
16682         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
16683         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
16684         Handle reversed comparison ops.
16685         * tree-sra.c (asm_visit_addr): Use get_base_address.
16686         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
16687         * ipa-reference.c (mark_address): Use get_base_address.
16688
16689 2010-04-07  Richard Guenther  <rguenther@suse.de>
16690
16691         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
16692         Propagate constants everywhere.
16693
16694 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
16695
16696         PR debug/43516
16697         * tree.c (MAX_INT_CACHED_PREC): Define.
16698         (nonstandard_integer_type_cache): New array.
16699         (build_nonstandard_integer_type): Cache results for precision
16700         <= MAX_INT_CACHED_PREC.
16701
16702 2010-04-07  Richard Guenther  <rguenther@suse.de>
16703
16704         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
16705         -fargument-noalias-global, -fargument-noalias-anything): Remove.
16706         * common.opt: Likewise.
16707         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
16708         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
16709         (nonoverlapping_memrefs_p): Likewise.
16710         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16711         * opts.c (common_handle_option): Handle OPT_fargument_alias,
16712         OPT_fargument_noalias, OPT_fargument_noalias_anything and
16713         OPT_fargument_noalias_global for backward compatibility.
16714
16715 2010-04-07  Richard Guenther  <rguenther@suse.de>
16716
16717         PR tree-optimization/43270
16718         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
16719         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
16720         * tree-ssa-pre.c (phi_translate_1): Adjust.
16721         (fully_constant_expression): Split out vn_reference handling to ...
16722         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
16723         Fold reads from constant strings.
16724         (vn_reference_lookup): Handle fully constant references.
16725         (vn_reference_lookup_pieces): Likewise.
16726         * Makefile.in (expmed.o-warn): Add -Wno-error.
16727
16728 2010-04-07  Martin Jambor  <mjambor@suse.cz>
16729
16730         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
16731
16732 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
16733
16734         PR driver/41594
16735         * gcc.c: Add -static-libstdc++ to list of recognized options.
16736
16737 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16738
16739         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
16740
16741 2010-04-07  Richard Guenther  <rguenther@suse.de>
16742
16743         PR middle-end/42617
16744         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
16745         bases build simple mem attributes to retain points-to information.
16746
16747 2010-04-07  Richard Guenther  <rguenther@suse.de>
16748
16749         PR middle-end/42617
16750         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
16751         preserve points-to related information.
16752
16753 2010-04-07  Richard Guenther  <rguenther@suse.de>
16754
16755         PR middle-end/42617
16756         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
16757         discard plain indirect references.
16758         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
16759         * tree.c (tree_nop_conversion): Likewise.
16760
16761 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
16762
16763         PR debug/43628
16764         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
16765
16766 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
16767
16768         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
16769         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
16770
16771 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16772
16773         * tree-if-conv.c: Fix indentation and comments.
16774
16775 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16776
16777         * tree-if-conv.c: Sort static functions in topological order.
16778
16779 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16780
16781         * tree-if-conv.c: Fix indentation and comments.
16782
16783 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16784
16785         PR middle-end/43519
16786         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
16787         lang_hooks.types.type_for_size instead of
16788         build_nonstandard_integer_type.
16789         When converting an unsigned type to signed, double its precision.
16790         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
16791         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
16792         (graphite_create_new_loop_guard): When ub + 1 wraps around,
16793         use lb <= ub.
16794
16795 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16796
16797         PR middle-end/43519
16798         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16799         POINTER_PLUS_EXPR for pointer types.
16800
16801 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16802
16803         PR middle-end/43519
16804         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
16805         * graphite-clast-to-gimple.c: Include langhooks.h.
16806         (max_signed_precision_type): New.
16807         (max_precision_type): Takes two types as arguments.
16808         (precision_for_value): New.
16809         (precision_for_interval): New.
16810         (gcc_type_for_interval): New.
16811         (gcc_type_for_value): New.
16812         (gcc_type_for_clast_term): New.
16813         (gcc_type_for_clast_red): New.
16814         (gcc_type_for_clast_bin): New.
16815         (gcc_type_for_clast_expr): Split up into several functions.
16816         (gcc_type_for_clast_eq): Rewritten.
16817         (compute_bounds_for_level): New.
16818         (compute_type_for_level_1): New.
16819         (compute_type_for_level): New.
16820         (gcc_type_for_cloog_iv): Removed.
16821         (gcc_type_for_iv_of_clast_loop): Rewritten.
16822         (graphite_create_new_loop): Compute the lower and upper bound types
16823         with gcc_type_for_clast_expr.
16824         (graphite_create_new_loop_guard): Same.
16825         (find_cloog_iv_in_expr): Removed.
16826         (compute_cloog_iv_types_1): Removed.
16827         (compute_cloog_iv_types): Removed.
16828         (gloog): Do not call compute_cloog_iv_types.
16829         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
16830         GBB_CLOOG_IV_TYPES.
16831         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
16832         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
16833         (GBB_CLOOG_IV_TYPES): Removed.
16834
16835 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16836
16837         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
16838         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
16839         (detect_commutative_reduction): Same.
16840
16841 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16842
16843         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
16844         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
16845         argument.
16846         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
16847         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
16848         (rewrite_commutative_reductions_out_of_ssa): Same.
16849         * passes.c (execute_function_todo): Call verify_ssa for every pass
16850         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
16851         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
16852         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
16853         with an extra argument.
16854         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
16855         verify_ssa only when the extra argument is true.
16856         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
16857         with an extra argument.
16858         (tree_transform_and_unroll_loop): Same.
16859
16860 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16861
16862         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
16863         for all the passes of the LNO having LOOP_CLOSED_SSA.
16864         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
16865         * tree-loop-distribution.c (pass_loop_distribution): Same.
16866         * tree-pass.h (TODO_verify_loops): Removed.
16867         * tree-ssa-loop.c (pass_tree_loop_init): Same.
16868         (pass_lim): Same.
16869         (pass_tree_unswitch): Same.
16870         (pass_predcom): Same.
16871         (pass_vectorize): Same.
16872         (pass_linear_transform): Same.
16873         (pass_graphite_transforms): Same.
16874         (pass_iv_canon): Same.
16875         (pass_complete_unroll): Same.
16876         (pass_complete_unrolli): Same.
16877         (pass_parallelize_loops): Same.
16878         (pass_loop_prefetch): Same.
16879         (pass_iv_optimize): Same.
16880
16881 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
16882
16883         PR middle-end/32824
16884         * passes.c (init_optimization_passes): Move pass_lim before
16885         pass_copy_prop and pass_dce_loop.
16886
16887 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
16888
16889         PR target/43667
16890         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
16891         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
16892         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
16893         MULTI_* defines for 4 argument vpermil2p* builtins.
16894
16895 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
16896
16897         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
16898         * config/i386/i386.c (x86_maybe_negate_const_int): New.
16899         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
16900         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
16901         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
16902         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
16903         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
16904         Use x86_maybe_negate_const_int to output insn mnemonic.
16905         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
16906         check from instruction predicate.  Update comments.
16907         * config/i386/sync.md (sync_add<mode>): Use
16908         x86_maybe_negate_const_int to output insn mnemonic.
16909
16910 2010-04-06  Jan Hubicka  <jh@suse.cz>
16911
16912         PR tree-optimization/42906
16913         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
16914         IGNORE_SELF argument.  Set visited_control_parents for fully
16915         processed BBs.
16916         (find_obviously_necessary_stmts): Update call of
16917         mark_control_dependent_edges_necessary.
16918         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
16919
16920 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
16921
16922         * config/i386/i386.md: Remove comment about 'e' and 'E'
16923         operand modifier.
16924
16925 2010-04-06  Richard Guenther  <rguenther@suse.de>
16926
16927         PR tree-optimization/43627
16928         * tree-vrp.c (extract_range_from_unary_expr): Widenings
16929         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
16930         not varying.
16931
16932 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
16933
16934         * BASE-VER: Change to 4.6.0.
16935
16936         PR target/43638
16937         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
16938         handling.
16939
16940 2010-04-06  Richard Guenther  <rguenther@suse.de>
16941
16942         PR middle-end/43661
16943         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
16944
16945 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16946
16947         * doc/invoke.texi (Optimize Options): Document that LTO
16948         won't remove object access purely due to incompatible
16949         declarations.
16950
16951 2010-04-04  Matthias Klose  <doko@ubuntu.com>
16952
16953         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
16954         Initialize variable.
16955
16956 2010-04-03  Richard Guenther  <rguenther@suse.de>
16957
16958         PR middle-end/42509
16959         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
16960         require a non-NULL MEM_OFFSET.
16961
16962 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
16963
16964         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
16965         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
16966         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
16967         config/alpha/predicates.md, config/arm/arm.md,
16968         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
16969         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
16970         config/darwin9.h, config/darwin.c, config/darwin.h,
16971         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
16972         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
16973         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
16974         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
16975         config/mips/mips.md, config/mn10300/mn10300.c,
16976         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
16977         config/rs6000/aix.h, config/rs6000/dfp.md,
16978         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
16979         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
16980         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
16981         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
16982         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
16983         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
16984         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
16985         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
16986         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
16987         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
16988         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
16989         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
16990         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
16991         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
16992         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
16993         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
16994         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
16995         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
16996         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
16997         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
16998         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
16999         opt-functions.awk, opth-gen.awk, params.def, passes.c,
17000         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
17001         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
17002         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
17003         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
17004         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
17005         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17006         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
17007         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
17008         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
17009         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
17010         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
17011         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
17012         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
17013         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
17014
17015 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17016
17017         PR other/43620
17018         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
17019         * aclocal.m4: Regenerate.
17020
17021 2010-04-02  Richard Guenther  <rguenther@suse.de>
17022
17023         PR tree-optimization/43629
17024         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
17025         if we have seen a constant value.
17026
17027 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
17028
17029         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
17030
17031 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
17032
17033         PR target/43469
17034         * arm.c (legitimize_tls_address): Adjust call to
17035         gen_tls_load_dot_plus_four.
17036         (arm_note_pic_base): New function.
17037         (arm_cannot_copy_insn_p): Use it.
17038         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
17039         constraint.
17040
17041 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17042
17043         PR bootstrap/43531
17044
17045         Revert:
17046         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17047
17048         * Makefile.in ($(out_object_file)): Depend on
17049         gt-$(basename $(notdir $(out_file))).h.
17050
17051 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
17052
17053         * config.gcc (lm32-*-rtems*): Add t-lm32.
17054
17055 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
17056
17057         * config.gcc: Add lm32-*-rtems*.
17058         * config/lm32/rtems.h: New file.
17059
17060 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
17061
17062         PR target/42609
17063         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
17064
17065 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
17066
17067         * dwarf2out.c (output_compilation_unit_header): For
17068         -gdwarf-4 use version 4 instead of version 3.
17069         (output_line_info): For version 4 and above emit additional
17070         maximum ops per insn header field.
17071         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
17072
17073         * dwarf2out.c (is_c_family, is_java): Remove.
17074         (lower_bound_default): New function.
17075         (add_bound_info, gen_descr_array_type_die): Use it.
17076
17077 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
17078
17079         PR debug/43325
17080         * dwarf2out.c (gen_variable_die): Allow debug info for variable
17081         re-declaration when it happens in a function.
17082
17083 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
17084
17085         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
17086         (cgraph_remove_function_insertion_hook): Same.
17087         (cgraph_call_function_insertion_hooks): Same.
17088
17089 2010-04-01  Richard Guenther  <rguenther@suse.de>
17090
17091         PR middle-end/43614
17092         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
17093         and TREE_THIS_VOLATILE.
17094         (copy_ref_info): Likewise.
17095         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
17096         * tree.c (build6_stat): Ignore side-effects of all but arg5
17097         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
17098         TARGET_MEM_REF.
17099
17100 2010-04-01  Richard Guenther  <rguenther@suse.de>
17101
17102         PR tree-optimization/43607
17103         * ipa-type-escape.c (check_call): Do not access non-existing
17104         arguments.
17105
17106 2010-04-01  Richard Guenther  <rguenther@suse.de>
17107
17108         PR middle-end/43602
17109         Revert
17110         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
17111                     Jack Howarth  <howarth@bromo.med.uc.edu>
17112
17113         * tree-profile.c (tree_init_ic_make_global_vars): Make static
17114         variables TLS.
17115
17116 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17117
17118         * doc/install.texi (Prerequisites): Document libelf usability on
17119         IRIX 5/6 and Solaris 2.
17120         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
17121         Update GNU as, GNU ld requirements.
17122         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
17123         Document Sun Studio compiler download.
17124         Update and simplify as, ld recommendations.
17125         (Specific, *-*-solaris2.7): Note obsoletion, removal.
17126
17127 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17128
17129         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
17130         with_tune_32 to pentium4.
17131
17132 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
17133
17134         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
17135
17136 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17137
17138         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
17139         obsoletion, removal.
17140         Update IDO URL.
17141         Document GNU as requirement.
17142         Update configure requirements.
17143         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
17144         Recomment IRIX 6.5.18+.
17145         Document IDF/IDL requirement.
17146         Document GNU as requirement.
17147         Document GNU ld bootstrap failure.
17148         Remove freeware.sgi.com reference.
17149
17150 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17151
17152         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
17153         UNIX V4.0, V5.0 obsoletion, removal.
17154         Remove --with-gc=simple reference.
17155         Update VM requirements during bootstrap.
17156         Remove -oldas bootstrap description.
17157         Update binutils reference.
17158         Remove comparison failure note.
17159
17160 2010-03-31  Richard Guenther  <rguenther@suse.de>
17161             Zdenek Dvorak  <ook@ucw.cz>
17162             Sebastian Pop  <sebastian.pop@amd.com>
17163
17164         PR middle-end/43464
17165         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
17166         with multiple arguments.
17167         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
17168
17169 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17170
17171         * graphite-dependences.c (print_pddr): Call print_pdr with an
17172         extra argument.
17173         * graphite-poly.c (debug_pdr): Add an extra argument for the
17174         verbosity level.
17175         (print_pdr): Same.
17176         (print_pbb_domain): Same.
17177         (print_pbb): Same.
17178         (print_scop_context): Same.
17179         (print_scop): Same.
17180         (print_cloog): Same.
17181         (debug_pbb_domain): Same.
17182         (debug_pbb): Same.
17183         (print_pdrs): Same.
17184         (debug_pdrs): Same.
17185         (debug_scop_context): Same.
17186         (debug_scop): Same.
17187         (debug_cloog): Same.
17188         (print_scop_params): Same.
17189         (debug_scop_params): Same.
17190         (print_iteration_domain): Same.
17191         (print_iteration_domains): Same.
17192         (debug_iteration_domain): Same.
17193         (debug_iteration_domains): Same.
17194         (print_scattering_function): Same.
17195         (print_scattering_functions): Same.
17196         (debug_scattering_function): Same.
17197         (debug_scattering_functions): Same.
17198         * graphite-poly.h (debug_pdr): Update declaration.
17199         (print_pdr): Same.
17200         (print_pbb_domain): Same.
17201         (print_pbb): Same.
17202         (print_scop_context): Same.
17203         (print_scop): Same.
17204         (print_cloog): Same.
17205         (debug_pbb_domain): Same.
17206         (debug_pbb): Same.
17207         (print_pdrs): Same.
17208         (debug_pdrs): Same.
17209         (debug_scop_context): Same.
17210         (debug_scop): Same.
17211         (debug_cloog): Same.
17212         (print_scop_params): Same.
17213         (debug_scop_params): Same.
17214         (print_iteration_domain): Same.
17215         (print_iteration_domains): Same.
17216         (debug_iteration_domain): Same.
17217         (debug_iteration_domains): Same.
17218         (print_scattering_function): Same.
17219         (print_scattering_functions): Same.
17220         (debug_scattering_function): Same.
17221         (debug_scattering_functions): Same.
17222
17223 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17224
17225         * graphite-poly.c (print_scattering_function_1): New.
17226         (print_scattering_function): Call it.
17227         (print_scop_params): Remove spaces at the end of lines.
17228         (print_cloog): New.
17229         (debug_cloog): New.
17230         * graphite-poly.h (print_cloog): Declared.
17231         (debug_cloog): Declared.
17232
17233 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17234
17235         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
17236         in loop->header.
17237         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
17238         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
17239         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
17240         to switch between adding the IV bump in loop->latch or in loop->header.
17241
17242 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17243
17244         * graphite-poly.c (print_scattering_function): Pretty print following
17245         the scoplib format.
17246         (print_pdr): Same.
17247         (print_pbb_domain): Same.
17248         (dump_gbb_cases): Same.
17249         (dump_gbb_conditions): Same.
17250         (print_pdrs): Same.
17251         (print_pbb): Same.
17252         (print_scop_params): Same.
17253         (print_scop_context): Same.
17254         (print_scop): Same.
17255         (print_pbb_body): New.
17256         (lst_indent_to): New.
17257         (print_lst): Start new lines with a #.
17258         * graphite-poly.h (pbb_bb): New.
17259         (pbb_index): Use pbb_bb.
17260         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
17261         disjuncts.
17262         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
17263
17264 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
17265
17266         * dwarf2out.c (size_of_die): For -gdwarf-4 use
17267         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
17268         and 0 instead of 1 for dw_val_class_flag.
17269         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
17270         dw_val_class_range_list, dw_val_class_loc_list,
17271         dw_val_class_lineptr and dw_val_class_macptr, use
17272         DW_FORM_flag_present for dw_val_class_flag and
17273         DW_FORM_exprloc for dw_val_class_loc.
17274         (output_die): For -gdwarf-4 print dw_val_class_loc
17275         size as uleb128 instead of 1 or 2 bytes and don't print
17276         anything for dw_val_class_flag.
17277
17278         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
17279         instead of cselib_lookup following by tweaking locs->setting_insn.
17280
17281         PR bootstrap/43596
17282         * cselib.c (cselib_process_insn): Clear cselib_current_insn
17283         even before returning from label, setjmp call or volatile asm
17284         handling.
17285
17286 2010-03-31  Richard Guenther  <rguenther@suse.de>
17287
17288         PR middle-end/43600
17289         * cgraphunit.c (cgraph_output_in_order): Do not allocate
17290         temporary data on stack.
17291
17292 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17293
17294         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
17295         (PUSHSECTION_ASM_OP): Remove.
17296         (POPSECTION_ASM_OP): Remove.
17297         (PUSHSECTION_FORMAT): Remove.
17298         * config/sol2.h (PUSHSECTION_FORMAT): Define.
17299         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
17300         * config/sol2.c (solaris_output_init_fini): Use it.
17301
17302 2010-03-31  Jie Zhang  <jie@codesourcery.com>
17303
17304         PR 43574
17305         * opt-functions.awk (var_type_struct): Use signed char type
17306         for simple variables.
17307
17308 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17309
17310         * config/sol2.c: Include output.h.
17311         (solaris_assemble_visibility): New function.
17312         * config/t-sol2 (sol2.o): Add output.h dependency.
17313         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
17314         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
17315         Redefine.
17316
17317 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
17318
17319         PR target/43580
17320         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
17321         V2SImode or XFmode on PRE_DEC.
17322
17323         PR debug/43557
17324         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
17325         BLKmode.
17326
17327 2010-03-31  Jie Zhang  <jie@codesourcery.com>
17328
17329         PR 43562
17330         * reload.h (caller_save_initialized_p): Declare.
17331         * toplev.c (backend_init_target): Don't call
17332         init_caller_save but set caller_save_initialized_p to false.
17333         * caller-save.c (caller_save_initialized_p): Define.
17334         (init_caller_save): Check caller_save_initialized_p.
17335         * ira.c (ira): Call init_caller_save if flag_caller_saves.
17336
17337 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17338
17339         PR target/39048
17340         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
17341         and soft-fp/t-softfp to tmake_file.
17342         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
17343         (LIBGCC2_TF_CEXT): Define.
17344         (TF_SIZE): Define.
17345
17346 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
17347
17348         PR debug/42977
17349         * cselib.c (n_useless_values): Document handling of debug locs.
17350         (n_useless_debug_values, n_debug_values): New variables.
17351         (new_elt_loc_list): Don't add to debug values, keep count.
17352         (promote_debug_loc): New.
17353         (cselib_reset_table): Zero new variables.
17354         (entry_and_rtx_equal_p): Promote debug locs.
17355         (discard_useless_locs): Increment n_useless_debug_values for
17356         debug values.
17357         (remove_useless_values): Adjust n_useless_values and n_debug_values
17358         with n_useless_debug_values.
17359         (add_mem_for_addr): Promote debug locs.
17360         (cselib_lookup_mem): Likewise.
17361         (cselib_lookup_addr): Renamed to...
17362         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
17363         (cselib_log_lookup): ... this.  Turn into...
17364         (cselib_lookup_addr): ... new wrapper.
17365         (cselib_lookup_from_insn): New.
17366         (cselib_invalidate_regno): Increment n_useless_debug_values for
17367         debug values.
17368         (cselib_invalidate_mem): Likewise.
17369         (cselib_process_insn): Take n_deleted and n_debug_values into
17370         account to guard remove_useless_value call.
17371         (cselib_finish): Zero n_useless_debug_values.
17372         * cselib.h (cselib_lookup_from_insn): Declare.
17373         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
17374         (sched_analyze_2): Likewise.
17375
17376 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
17377
17378         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
17379         functions.
17380         (adjust_mems): Replace narrowing SUBREG of expression containing
17381         just PLUS, MINUS, MULT and ASHIFT of registers and constants
17382         with operations in the narrower mode.
17383
17384         PR debug/43593
17385         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
17386         regs_invalidated_by_call instead all call_used_reg_set registers.
17387
17388 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
17389
17390         PR middle-end/43430
17391         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
17392         pointer comparisons with types_compatible_p.
17393         * tree-vect-stmts.c (vectorizable_call): Same.
17394         (vectorizable_condition): Same.
17395
17396 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17397
17398         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
17399         stack check if the mask would be zero.
17400
17401 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
17402             Jack Howarth  <howarth@bromo.med.uc.edu>
17403
17404         * tree-profile.c (tree_init_ic_make_global_vars): Make static
17405         variables TLS.
17406
17407 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
17408
17409         PR other/25232
17410         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
17411         and __unordtf2.
17412         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
17413         Include ___unordxf2 and ___unordtf2.
17414         * config/i386/libgcc-glibc.ver: Do not define inheritance from
17415         GCC_4.4.0 here.
17416
17417 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
17418
17419         * config/lm32/t-lm32: New file.
17420         * config.gcc: Use the above file when targetting lm32.
17421
17422 2010-03-28  Duncan Sands  <baldrick@free.fr>
17423
17424         * Makefile.in (PLUGIN_HEADERS): Add except.h.
17425
17426 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
17427
17428         PR middle-end/43431
17429         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
17430         Improve vectorization cost model diagnostic.
17431
17432 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
17433
17434         PR middle-end/43436
17435         * tree-vect-data-refs.c (vect_analyze_data_refs): When
17436         compute_data_dependences_for_loop returns false, early exit
17437         and output an extra diagnostic for the failed data reference
17438         analysis.
17439
17440 2010-03-29  Richard Guenther  <rguenther@suse.de>
17441
17442         PR tree-optimization/43560
17443         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
17444         (can_sm_ref_p): Treat stores to readonly locations as trapping.
17445
17446 2010-03-29  Jie Zhang  <jie@codesourcery.com>
17447
17448         PR 43564
17449         * toplev.c (process_options): Set optimization_default_node
17450         and optimization_current_node.
17451         * opts.c (decode_options): Don't set optimization_default_node
17452         and optimization_current_node.
17453
17454 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
17455
17456         * config/rtems.h: Abandon -qrtems_debug.
17457
17458 2010-03-28  Jan Hubicka  <jh@suse.cz>
17459
17460         PR tree-optimization/43505
17461         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
17462         map should not be copied.
17463
17464 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17465
17466         PR middle-end/41674
17467         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
17468         cdtors, set DECL_PRESERVE_P.
17469         * ipa.c (cgraph_externally_visible_p): Return true if declaration
17470         should be preseved.
17471
17472 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
17473
17474         PR tree-optimization/43528
17475         * stor-layout.c (place_field): Check that constant fits into
17476         unsigned HWI when skipping calculation of MS bitfield layout.
17477
17478 2010-03-27  Jan Hubicka  <jh@suse.cz>
17479
17480         PR middle-end/43391
17481         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
17482         notice_global_symbol work.
17483
17484 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
17485
17486         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
17487         instead of dwarf2out_decl.
17488         (struct var_loc_node): Remove section_label field.
17489         (dwarf2out_function_decl): New function.
17490         (dwarf2out_var_location): Don't set section_label field.
17491         (dwarf2out_begin_function): Don't empty decl_loc_table here.
17492
17493 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17494
17495         PR tree-optimization/43544
17496         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17497         First argument for builtin vectorized function hook is now a
17498         tree to be able to distinguish between machine specific and
17499         standard builtins.
17500         * targhooks.c (default_builtin_vectorized_function): Ditto.
17501         * targhooks.h (default_builtin_vectorized_function): Ditto.
17502         * target.h (struct gcc_target): Ditto.
17503         * tree-vect-stmts.c (vectorizable_function): Ditto.
17504         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
17505         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
17506         Ditto.
17507
17508 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
17509
17510         PR c/43381
17511         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
17512         nested binding iff it is a FUNCTION_DECL.
17513         (store_parm_decls_newstyle): Pass nested=true to bind for
17514         FUNCTION_DECLs amongst parameters.
17515
17516 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
17517
17518         * var-tracking.c (vt_expand_loc_callback): Don't run
17519         cselib_expand_value_rtx_cb in dummy mode if
17520         cselib_dummy_expand_value_rtx_cb returned false.
17521
17522         * var-tracking.c (emit_note_insn_var_location): For one part
17523         notes with offset 0, don't add EXPR_LIST around the location.
17524         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
17525         add_location_or_const_value_attribute): Adjust for that change.
17526
17527         PR debug/43540
17528         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
17529         into first operand and location into second.
17530         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
17531         dw_cfi_oprnd_loc for DW_CFA_expression.
17532         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
17533         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
17534         assume first argument is regnum and second argument is location.
17535
17536 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
17537
17538         PR target/42113
17539         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
17540         of scratch register to DImode.  Split to DImode comparison operator.
17541         Use SImode subreg of scratch register in the multiplication.
17542         (*cmp_sadd_sidi): Ditto.
17543         (*cmp_ssub_si): Ditto.
17544         (*cmp_ssub_sidi): Ditto.
17545
17546 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
17547
17548         PR target/43524
17549         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
17550         Remove invalid assert and wrong comment.
17551
17552 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
17553
17554         PR debug/43516
17555         * flags.h (final_insns_dump_p): New extern.
17556         * final.c (final_insns_dump_p): New variable.
17557         (rest_of_clean_state): Set it before -fdump-final-insns=
17558         dumping, clear afterwards.
17559         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
17560         MEM_ALIAS_SET on MEMs.
17561
17562 2010-03-26  David S. Miller  <davem@davemloft.net>
17563
17564         * configure.ac: Fix sparc GOTDATA_OP bug check.
17565         * configure: Rebuild.
17566
17567 2010-03-26  Alan Modra  <amodra@gmail.com>
17568
17569         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
17570
17571 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17572
17573         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
17574         TLS_SECTION_ASM_FLAG.
17575
17576 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
17577
17578         PR bootstrap/43511
17579         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
17580         Clear first_function_block_is_cold.
17581
17582         PR c/43385
17583         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
17584         argument if the argument is truth_value_p.
17585
17586 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17587
17588         * config/rs6000/constraints.md: Update copyright year for my changes.
17589
17590         PR target/43484
17591         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
17592         used in reg+reg addressing, swap registers.
17593
17594 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
17595
17596         PR debug/43293
17597         * target.h (struct gcc_target): Add code_end hook.
17598         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
17599         if not yet defined.
17600         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
17601         * toplev.c (compile_file): Call targetm.asm_out.code_end
17602         hook before unwind info/debug info output.
17603         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
17604         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
17605         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
17606         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
17607         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
17608         * config/i386/i386.c (ix86_file_end): Renamed to...
17609         (ix86_code_end): ... this.  Make static.  Don't call
17610         file_end_indicate_exec_stack.  Emit unwind info using
17611         final_start_function/final_end_function.
17612         (darwin_x86_file_end): Remove.
17613         (TARGET_ASM_CODE_END): Define.
17614         * config/i386/i386.h (TARGET_ASM_FILE_END,
17615         NEED_INDICATE_EXEC_STACK): Don't define.
17616         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
17617         (TARGET_ASM_FILE_END): Define to darwin_file_end.
17618         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
17619         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
17620
17621         PR target/43498
17622         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
17623         at the beginning and final_end_function at the end.
17624         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17625
17626 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17627
17628         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
17629         and Sun as TLS syntax.
17630         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
17631         * configure: Regenerate.
17632         * config.in: Regenerate.
17633         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
17634         (default_elf_asm_named_section): Use it.
17635         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
17636         (i386_output_dwarf_dtprel): Likewise.
17637         (output_addr_const_extra): Likewise.
17638         (output_pic_addr_const): Lowercase @GOTTPOFF.
17639         (output_addr_const_extra): Likewise.
17640         (output_pic_addr_const): Lowercase @GOTNTPOFF.
17641         (output_addr_const_extra): Likewise.
17642         (output_pic_addr_const): Lowercase @INDNTPOFF.
17643         (output_addr_const_extra): Likewise.
17644         (output_pic_addr_const): Lowercase @NTPOFF.
17645         (output_addr_const_extra): Likewise.
17646         (output_pic_addr_const): Lowercase @TPOFF.
17647         (output_addr_const_extra): Likewise.
17648         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
17649         (*tls_global_dynamic_64): Likewise.
17650         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
17651         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
17652
17653         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
17654         (ASM_OUTPUT_TLS_COMMON): Use it.
17655         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
17656
17657         PR target/38118
17658         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
17659         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17660         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
17661         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
17662         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
17663         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
17664
17665 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17666
17667         * config/i386/i386.c (override_options): Don't accept
17668         -mtls-dialect=sun any longer.
17669         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
17670         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
17671         (*tls_local_dynamic_base_32_sun): Likewise.
17672         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
17673
17674 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
17675
17676         PR debug/43508
17677         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17678         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
17679
17680         PR debug/43479
17681         * ira.c (adjust_cleared_regs): New function.
17682         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
17683
17684         PR debug/19192
17685         PR debug/43479
17686         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
17687         from gimple_block.
17688         * expr.c (expand_expr_real): Restore previous
17689         curr_insn_source_location and curr_insn_block after
17690         expand_expr_real_1 call.
17691         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
17692         instead of expand_expr_real_1.
17693
17694 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
17695
17696         PR rtl-optimization/43413
17697         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
17698         hard regs too.
17699
17700 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
17701
17702         PR target/43348
17703         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
17704         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
17705
17706 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17707
17708         * config/i386/i386.c (ix86_target_string): Add -mfma.
17709         Fix a typo in comment.
17710
17711 2010-03-22  Mike Stump  <mikestump@comcast.net>
17712
17713         PR target/23071
17714         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
17715         Don't overly align based upon packed packed fields.
17716
17717 2010-03-22  Jason Merrill  <jason@redhat.com>
17718
17719         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
17720         Use () rather than [], and move before the element type.
17721
17722 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17723
17724         * doc/configfiles.texi (Configuration Files): Removed
17725         fixinc/Makefile*, intl/Makefile.*.
17726         * doc/makefile.texi: Fixed markup. Abstract from version
17727         control system used.
17728         (Makefile): Removed obsolete gcc/java/parse.y example.
17729         * doc/sourcebuild.texi: Likewise.
17730         (Top Level): Added config, gnattools, libdecnumber, libgcc,
17731         libgomp, libssp.  Removed fastjar.
17732         (Miscellaneous Docs): Clarify location.
17733         Added COPYING3, COPYING3.LIB.
17734         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
17735
17736 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17737
17738         PR target/38085
17739         * config/i386/i386.c (x86_function_profiler)
17740         [!NO_PROFILE_COUNTERS]: Fix typo.
17741         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
17742         instead of callq.
17743
17744 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
17745             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17746
17747         * doc/sourcebuild.texi (Test Directives): Split into six
17748         subsections, with most of the current text in new subsections
17749         Directives, Selectors, and Final Actions.
17750         (Directives): Split list of test directives into multiple
17751         subsubsections.
17752         (Selectors): Describe use and syntax of selectors.
17753         (Effective-Target Keywords): Describe all existing keywords.
17754         (Add Options): Describe features for dg-add-options.
17755         (Require Support): Describe variants of dg-require-support.
17756         (Final Actions): Describe commands to use in dg-final.
17757
17758 2010-03-22  Michael Matz  <matz@suse.de>
17759
17760         PR middle-end/43475
17761         * recog.c (validate_replace_rtx_group): Replace also in
17762         REG_EQUAL and REG_EQUIV notes.
17763
17764 2010-03-22  Richard Guenther  <rguenther@suse.de>
17765
17766         PR tree-optimization/43390
17767         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
17768         sure vector extracts are type correct.
17769
17770 2010-03-22  Richard Guenther  <rguenther@suse.de>
17771
17772         PR middle-end/40106
17773         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
17774         x * sqrt (x) even when optimizing for size if the target
17775         has native support for sqrt.
17776
17777 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17778
17779         * varasm.c (make_decl_rtl_for_debug): Also clear
17780         flag_mudflap for the duration of make_decl_rtl call.
17781
17782         PR debug/43443
17783         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
17784         locs from preserved VALUEs.
17785
17786 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17787
17788         PR middle-end/42718
17789         * pa.md (movmemsi): Set align to one if zero.
17790         (movmemdi): Likewise.
17791
17792 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
17793
17794         PR target/42321
17795         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
17796         with their corresponding prologue pushes.
17797
17798 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
17799
17800         PR target/43156
17801         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
17802         at the begining or end.
17803         (spu_expand_epilogue): Likewise.
17804
17805 2010-03-20  Richard Guenther  <rguenther@suse.de>
17806
17807         PR rtl-optimization/43438
17808         * combine.c (make_extraction): Properly zero-/sign-extend an
17809         extraction of the low part of a CONST_INT.  Also handle
17810         CONST_DOUBLE.
17811
17812 2010-03-19  Mike Stump  <mikestump@comcast.net>
17813
17814         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
17815         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
17816         (override_options): Use SUBTARGET32_DEFAULT_CPU.
17817
17818 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
17819
17820         PR c/43211
17821         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
17822         an error.
17823
17824 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
17825
17826         PR rtl-optimization/42258
17827         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
17828         use that may match DEF.
17829
17830         PR target/40697
17831         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
17832         the cost of loading the constant rather than assuming
17833         COSTS_N_INSNS (1).
17834         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
17835         outer code is AND, do the same tests as the andsi3 expander and
17836         return COSTS_N_INSNS (1) if and is cheap.
17837
17838         * optabs.c (avoid_expensive_constant): Fix formatting.
17839
17840 2010-03-19  Michael Matz  <matz@suse.de>
17841
17842         PR c++/43116
17843         * attribs.c (decl_attributes): When rebuilding a function pointer
17844         type use the same qualifiers as the original pointer type.
17845
17846 2010-03-19  Martin Jambor  <mjambor@suse.cz>
17847
17848         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
17849         and is_gimple_ip_invariant_address.
17850
17851 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17852
17853         Revert
17854         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17855
17856         * config/arm/arm.c (arm_override_options): Turn off
17857         flag_dwarf2_cfi_asm for AAPCS variants.
17858
17859 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17860
17861         PR target/43399
17862         * config/arm/arm.c (emit_multi_reg_push): Update comments.
17863         Use PRE_MODIFY instead of PRE_DEC.
17864         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
17865         (vfp_emit_fstmd): Likewise.
17866
17867 2010-03-19  Michael Matz  <matz@suse.de>
17868
17869         PR target/43305
17870         * builtins.c (expand_builtin_interclass_mathfn,
17871         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
17872         if that fails.
17873
17874 2010-03-19  Richard Guenther  <rguenther@suse.de>
17875
17876         PR tree-optimization/43415
17877         * tree-ssa-pre.c (phi_translate): Split out worker to ...
17878         (phi_translate_1): ... this.
17879         (phi_translate): Move all caching here.  Cache all NARY
17880         and REFERENCE translations.
17881
17882 2010-03-19  David S. Miller  <davem@davemloft.net>
17883
17884         With help from Eric Botcazou.
17885         * config/sparc/sparc.c: Include dwarf2out.h.
17886         (emit_pic_helper): Delete.
17887         (pic_helper_symbol_name): Delete.
17888         (pic_helper_emitted_p): Delete.
17889         (pic_helper_needed): New.
17890         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
17891         (get_pc_thunk_name): New.
17892         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
17893         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
17894         Set pic_helper_needed to true.  Don't call emit_pic_helper.
17895         (sparc_expand_prologue): Update load_pic_register call.
17896         (sparc_output_mi_thunk): Likewise.
17897         (sparc_file_end): Emit a hidden comdat symbol for the PIC
17898         thunk if possible.  Output CFI information as needed.
17899
17900 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17901             Jack Howarth  <howarth@bromo.med.uc.edu>
17902
17903         PR target/36399
17904         * config/i386/i386.h: Fix ABI on darwin x86-32.
17905
17906 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
17907
17908         * tree.h: Declare make_decl_rtl_for_debug.
17909         * varasm.c (make_decl_rtl_for_debug): New.
17910         * dwarf2out.c (rtl_for_decl_location): Call it.
17911         * cfgexpand.c (expand_debug_expr): Call it.
17912
17913 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
17914
17915         PR bootstrap/43399
17916         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
17917         mem_mode.
17918
17919         PR bootstrap/43403
17920         * var-tracking.c (vt_init_cfa_base): Do nothing if
17921         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
17922
17923 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
17924
17925         PR debug/42873
17926         * var-tracking.c (canonicalize_vars_star): New.
17927         (dataflow_post_merge_adjust): Use it.
17928
17929 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
17930
17931         PR debug/43058
17932         * var-tracking.c (non_suitable_const): New function.
17933         (add_uses): For DEBUG_INSNs with constants, don't record any
17934         value, instead just the constant value itself.
17935         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
17936         is not VAR_LOC_UNKNOWN_P, set var to the constant.
17937         (emit_notes_in_bb): Likewise.
17938         (emit_note_insn_var_location): For onepart variables if
17939         cur_loc is a VOIDmode constant, use DECL_MODE.
17940
17941 2010-03-18  Martin Jambor  <mjambor@suse.cz>
17942
17943         PR middle-end/42450
17944         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
17945         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
17946         all non-clones.  Moved call redirection...
17947         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
17948         (cgraph_materialize_all_clones): Dispose of all
17949         combined_args_to_skip bitmaps.
17950         (verify_cgraph_node): Do not check for edges pointing to wrong
17951         nodes in inline clones.
17952         * tree-inline.c (copy_bb): Call
17953         cgraph_redirect_edge_call_stmt_to_callee.
17954         * ipa.c (cgraph_remove_unreachable_nodes): Call
17955         cgraph_node_remove_callees even when there are used clones.
17956
17957 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
17958
17959         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
17960
17961 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
17962
17963         PR target/43383
17964         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
17965         for 32bit.
17966
17967 2010-03-18  Michael Matz  <matz@suse.de>
17968
17969         PR middle-end/43419
17970         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
17971         into sqrt(x) if we need to preserve signed zeros.
17972
17973 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
17974             Eric Botcazou  <ebotcazou@adacore.com>
17975
17976         PR rtl-optimization/43360
17977         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
17978         note if we don't know its invariant status.
17979
17980 2010-03-18  Michael Matz  <matz@suse.de>
17981
17982         PR tree-optimization/43402
17983         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
17984         PHI chains of ssa names registered for update.
17985
17986 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
17987
17988         PR target/42427
17989         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
17990         non-offsettable and pre_modify update addressing.
17991         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
17992         and "2" alternatives "#".
17993         (*movdd_softfloat32): Make all alternatives "#";
17994         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
17995         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
17996         (*movdf_softfloat32): Make all alternatives "#";
17997         (movdi): Use the new DIFD mode iterator to create a common splitter
17998         for movdi, movdf and movdd patterns.
17999
18000 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
18001
18002         * common.opt (dumpdir): Remove redundant tab.
18003
18004 2010-03-17  Martin Jambor  <mjambor@suse.cz>
18005
18006         PR tree-optimization/43347
18007         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
18008         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
18009
18010 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18011
18012         PR rtl-optimization/42216
18013         * regrename.c (create_new_chain): New function, broken out from...
18014         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
18015         appending a use to an empty chain.
18016         (build_def_use): Remove previous changes that convert OP_INOUT to
18017         OP_OUT operands; instead detect the case where an OP_INOUT operand
18018         uses a previously untracked register and create an empty chain for it.
18019
18020 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18021
18022         * doc/extend.texi (Function Attributes): Rewrite unfinished
18023         sentence in ms_abi documentation.
18024
18025 2010-03-17  Alan Modra  <amodra@gmail.com>
18026
18027         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
18028         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
18029         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
18030         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
18031
18032 2010-03-16  Richard Henderson  <rth@redhat.com>
18033
18034         PR middle-end/43365
18035         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
18036         (lower_try_finally): Save and restore eh_seq around the expansion
18037         of the try-finally.
18038
18039 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18040
18041         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
18042         statements before splitting block.
18043
18044 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18045
18046         * doc/sourcebuild.texi (Testsuites): Fix markup.
18047         Use pathnames relative to gcc/testsuite.
18048         (Test Directives): Move description of how timeout is determined.
18049         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
18050         (C Tests): Correct gcc.misc-tests directory.
18051         Framework tests now live in gcc.test-framework.
18052
18053 2010-03-16  Richard Guenther  <rguenther@suse.de>
18054
18055         PR middle-end/43379
18056         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
18057         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
18058
18059 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18060             Alexandre Oliva  <aoliva@redhat.com>
18061
18062         PR tree-optimization/42917
18063         * lambda-code.c (remove_iv): Skip debug statements.
18064         (lambda_loopnest_to_gcc_loopnest): Likewise.
18065         (not_interesting_stmt): Debug statements are not interesting.
18066
18067 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
18068
18069         PR debug/43051
18070         PR debug/43092
18071         * cselib.c (cselib_preserve_constants,
18072         cfa_base_preserved_val): New static variables.
18073         (preserve_only_constants): New function.
18074         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
18075         clear its REG_VALUES.  If cselib_preserve_constants, don't
18076         empty the whole hash table, but preserve there VALUEs with constants,
18077         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
18078         (cselib_preserve_cfa_base_value): New function.
18079         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
18080         (cselib_init): Change argument to int bitfield.  Set
18081         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
18082         is in it.
18083         (cselib_finish): Clear cselib_preserve_constants and
18084         cfa_base_preserved_val.
18085         * cselib.h (enum cselib_record_what): New enum.
18086         (cselib_init): Change argument to int.
18087         (cselib_preserve_cfa_base_value): New prototype.
18088         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
18089         * dse.c (dse_step1): Likewise.
18090         * cfgcleanup.c (thread_jump): Likewise.
18091         * sched-deps.c (sched_analyze): Likewise.
18092         * gcse.c (local_cprop_pass): Likewise.
18093         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
18094         If FN is non-NULL, call the callback always and whenever it returns
18095         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
18096         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
18097         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
18098         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
18099         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
18100         * var-tracking.c: Include recog.h.
18101         (bb_stack_adjust_offset): Remove.
18102         (vt_stack_adjustments): Don't call it, instead just gather the
18103         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
18104         (adjust_stack_reference): Remove.
18105         (compute_cfa_pointer): New function.
18106         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
18107         (struct adjust_mem_data): New type.
18108         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
18109         functions.
18110         (get_address_mode): New function.
18111         (replace_expr_with_values): Use it.
18112         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
18113         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
18114         (adjust_sets): Remove.
18115         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
18116         Use get_address_mode.
18117         (get_adjusted_src): Remove.
18118         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
18119         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
18120         (add_with_sets): Don't call adjust_sets.
18121         (fp_setter, vt_init_cfa_base): New functions.
18122         (vt_initialize): Change return type to bool.  Move most of pool etc.
18123         initialization to the beginning of the function from end.  Pass
18124         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
18125         If !frame_pointer_needed, call vt_stack_adjustment before mos
18126         vector is filled, call vt_init_cfa_base if argp/framep has been
18127         eliminated to sp.  If frame_pointer_needed and argp/framep has
18128         been eliminated to hard frame pointer, set
18129         hard_frame_pointer_adjustment and call vt_init_cfa_base after
18130         encountering fp setter in the prologue.  For MO_ADJUST, call
18131         log_op_type before pusing the op into mos vector, not afterwards.
18132         Call adjust_insn before cselib_process_insn/add_with_sets,
18133         call cancel_changes (0) afterwards.
18134         (variable_tracking_main_1): Adjust for vt_initialize calling
18135         vt_stack_adjustments and returning whether it succeeded or not.
18136
18137 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
18138
18139         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
18140         debug statements.
18141
18142 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
18143
18144         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
18145         has been set.
18146         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
18147         drap_reg has not been set.
18148
18149 2010-03-15  Michael Matz  <matz@suse.de>
18150
18151         PR middle-end/43300
18152         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
18153         use it to expand block copies.
18154         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18155         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
18156         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
18157
18158 2010-03-15  Richard Guenther  <rguenther@suse.de>
18159
18160         PR tree-optimization/43367
18161         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
18162         elimination check.
18163
18164 2010-03-15  Richard Guenther  <rguenther@suse.de>
18165
18166         PR tree-optimization/43317
18167         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
18168
18169 2010-03-15  Martin Jambor  <mjambor@suse.cz>
18170
18171         PR tree-optimization/43141
18172         * tree-sra.c (create_abstract_origin): New function.
18173         (modify_function): Call create_abstract_origin.
18174
18175 2010-03-15  Chris Demetriou  <cgd@google.com>
18176
18177         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
18178         wasn't copied.
18179
18180 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18181
18182         PR middle-end/43354
18183         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
18184         call insert_out_of_ssa_copy for default definitions.
18185
18186 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18187
18188         * graphite-clast-to-gimple.c (my_long_long): Defined.
18189         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
18190         * graphite-sese-to-poly.c (my_long_long): Defined.
18191         (scop_ivs_can_be_represented): Use it.
18192
18193 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18194
18195         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
18196         graphite-max-bbs-per-function, and loop-block-tile-size.
18197         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
18198         with "maximum".
18199         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
18200
18201 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18202
18203         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
18204         forward declaration.
18205         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
18206         (add_upper_bounds_from_estimated_nit): New.
18207         (build_loop_iteration_domains): Use it.
18208
18209 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18210
18211         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
18212
18213 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18214
18215         PR middle-end/43306
18216         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
18217         should be an INTEGER_CST.  Also handle CASE_CONVERT.
18218
18219 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18220
18221         * graphite.c (graphite_initialize): To bound the number of bbs per
18222         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
18223         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
18224         * doc/invoke.texi: Document it.
18225
18226 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18227
18228         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
18229         * graphite-sese-to-poly.h (build_poly_scop): Same.
18230
18231 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18232
18233         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
18234         the number of parameters in the scop.  Use as an upper bound
18235         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
18236         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
18237         * doc/invoke.texi: Document it.
18238
18239 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
18240
18241         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
18242         * doc/c-tree.texi: Remove.
18243         * doc/generic.texi: Merge c-tree.texi here.
18244         * doc/gccint.texi (Trees): Remove menu entry.
18245         (c-tree.texi): Remove @include.
18246         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
18247         * doc/languages.texi (Reading RTL): Ditto.
18248
18249 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
18250
18251         PR target/42869
18252         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
18253
18254 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18255
18256         PR middle-end/42431
18257         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
18258         code added to work around reload clobbering CONST insns.
18259
18260 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
18261
18262         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
18263         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
18264         (cselib_preserve_only_values): Remove retain argument, don't
18265         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
18266         * cselib.h (cselib_preserve_only_values): Remove retain argument.
18267         * var-tracking.c (micro_operation): Move insn field before union.
18268         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
18269         (struct variable_tracking_info_def): Remove n_mos field, change
18270         mos into a vector of micro_operations.
18271         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
18272         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
18273         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
18274         changing into a vector.
18275         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
18276         come before all other uops generated by add_stores.
18277         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
18278         argument removal.
18279         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
18280         a vector.  Run just one pass over the bbs instead of separate counting
18281         and computation phase.
18282         (vt_finalize): Free VTI (bb)->mos vector instead of array.
18283
18284         PR debug/43329
18285         * tree-inline.c (remap_decls): Put old_var rather than origin_var
18286         into *nonlocalized_list vector.
18287         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
18288         even if origin is non-NULL.
18289         (gen_variable_die): Likewise.
18290         (process_scope_var): Don't change origin.
18291         (gen_decl_die): Likewise.
18292         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
18293         before adding new edges instead of after it, fix moving over
18294         debug stmts.
18295
18296 2010-03-11  David S. Miller  <davem@davemloft.net>
18297
18298         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
18299         of four.
18300         * configure: Rebuild.
18301
18302 2010-03-11  Martin Jambor  <mjambor@suse.cz>
18303
18304         PR tree-optimization/43257
18305         * tree.c (assign_assembler_name_if_neeeded): New function.
18306         (free_lang_data_in_cgraph): Assembler name assignment moved to the
18307         above new function.
18308         * tree.h (assign_assembler_name_if_neeeded): Declare.
18309         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
18310         the function if needed.
18311
18312 2010-03-11  Chris Demetriou  <cgd@google.com>
18313
18314         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
18315         include/stdint-gcc.h, and include/stdint.h world-readable.
18316
18317 2010-03-11  Richard Guenther  <rguenther@suse.de>
18318
18319         PR tree-optimization/43255
18320         * tree-vrp.c (process_assert_insertions_for): Do not insert
18321         asserts for trivial conditions.
18322
18323 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18324
18325         PR tree-optimization/43280
18326         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
18327         generation.  Move calculation of size out of the if branch.
18328         (find_bswap): Modify compare number generation.
18329
18330 2010-03-11  Richard Guenther  <rguenther@suse.de>
18331
18332         PR lto/43200
18333         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
18334         (input_gimple_stmt): Fixup handled component types during
18335         operand read.  Also fix up decls in ADDR_EXPRs.
18336
18337 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
18338
18339         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
18340         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
18341
18342 2010-03-10  Jan Hubicka  <jh@suse.cz>
18343
18344         PR c/43288
18345         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
18346         * varasm.c (get_variable_section): Don't do that here...
18347         (make_decl_rtl): ... and here.
18348         (do_assemble_alias): Produce decl RTL.
18349         (assemble_alias): Likewise.
18350
18351 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
18352
18353         PR debug/43290
18354         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
18355         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
18356         of fde->vdrap_reg.
18357         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
18358         (based_loc_descr): Only express drap or vdrap regno based expressions
18359         using DW_OP_fbreg when not optimizing.
18360         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
18361         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
18362         REG_CFA_SET_VDRAP note.
18363
18364 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
18365
18366         PR tree-optimization/43236
18367         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
18368         error in calculation of base address in reverse iteration case.
18369         (generate_builtin): Take number of latch executions if the statement
18370         is in the latch.
18371
18372 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
18373
18374         PR middle-end/42859
18375         * tree-eh.c: Include pointer-set.h.
18376         (lower_eh_dispatch): Filter out duplicate case labels and
18377         remove the unneeded edge when the label is unused.  Return
18378         true when some edges are removed.
18379         (execute_lower_eh_dispatch): When any lowering resulted in
18380         removing an edge, also delete unreachable blocks.
18381
18382 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
18383
18384         PR bootstrap/43287
18385         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18386         UNSPEC_MACHOPIC_OFFSET.
18387
18388 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
18389
18390         PR target/43294
18391         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
18392         (m68k_delegitimize_address): New function.
18393
18394 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
18395
18396         PR debug/43299
18397         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
18398
18399         PR debug/43299
18400         * var-tracking.c (adjust_sets): New function.
18401         (count_with_sets, add_with_sets): Use it.
18402         (get_adjusted_src): New inline function.
18403         (add_stores): Use it.
18404
18405         PR debug/43304
18406         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
18407         call cselib_dummy_expand_value_rtx_cb instead of
18408         cselib_expand_value_rtx_cb.
18409
18410         PR debug/43293
18411         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
18412         * config/i386/i386.c: Include debug.h and dwarf2out.h.
18413         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
18414         and .cfi_endproc around the pic thunks.
18415         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
18416         all queued unwind info register saves are saved before the call.
18417         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
18418         considered as sp-=4 for unwind info and the pop as sp+=4 which
18419         also clobbers dest, but doesn't actually restore it.
18420
18421         PR debug/43290
18422         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
18423         RTX_FRAME_RELATED_P.
18424
18425 2010-03-09  Jie Zhang  <jie@codesourcery.com>
18426
18427         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
18428         whitespaces in output template.
18429
18430 2010-03-09  Jie Zhang  <jie@codesourcery.com>
18431
18432         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
18433         out array boundary.
18434
18435 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
18436
18437         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
18438         builtins.exp in a separate job.
18439
18440 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18441
18442         * graphite-sese-to-poly.c (add_param_constraints): Use
18443         lower_bound_in_type and upper_bound_in_type.
18444
18445 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18446
18447         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
18448         instead of unsigned_type_node.
18449
18450 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18451             Reza Yazdani  <reza.yazdani@amd.com>
18452
18453         PR middle-end/43065
18454         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
18455         on pointer type parameters.
18456
18457 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18458
18459         PR middle-end/42644
18460         PR middle-end/42130
18461         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
18462         handle conversions from pointer to integers.
18463         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
18464         induction variable, to be able to work with code generated by CLooG.
18465         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
18466         (build_poly_scop): Bail out if we cannot codegen a loop.
18467
18468 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18469
18470         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
18471         code generation with gloog_error.
18472
18473 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18474
18475         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
18476         Call fold_convert on all the returned values.
18477         (expand_scalar_variables_expr): Pass to
18478         expand_scalar_variables_ssa_name the type of the resulting expression.
18479
18480 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18481
18482         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
18483         ppl_min_for_le_pointset.
18484         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
18485         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
18486
18487 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18488
18489         * graphite-dependences.c (map_into_dep_poly): Removed.
18490         (dependence_polyhedron_1): Use combine_context_id_scat.
18491
18492 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18493
18494         * graphite-poly.h (struct poly_scattering): Add layout documentation.
18495         (struct poly_bb): Same.
18496         (combine_context_id_scat): New.
18497
18498 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18499
18500         PR middle-end/42326
18501         * sese.c (name_defined_in_loop_p): Return false for default
18502         definitions.
18503
18504 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18505
18506         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
18507         and clean up the logic.
18508
18509 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
18510
18511         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
18512         early return.
18513
18514 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
18515
18516         * var-tracking.c (remove_cselib_value_chains): Define only for
18517         ENABLE_CHECKING.
18518         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
18519         delete_slot_part, emit_notes_for_differences_1): Don't call
18520         remove_cselib_value_chains here.
18521         (set_slot_part, emit_notes_for_differences_2): Don't call
18522         add_cselib_value_chains here.
18523         (preserved_values): New vector.
18524         (preserve_value): New function.
18525         (add_uses, add_stores, vt_add_function_parameters): Use it
18526         instead of cselib_preserve_value.
18527         (changed_values_stack): New vector.
18528         (check_changed_vars_0): New function.
18529         (check_changed_vars_1, check_changed_vars_2): Use it.
18530         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
18531         changed_values_stack VALUEs.
18532         (vt_emit_notes): For all preserved_values call
18533         add_cselib_value_chains.  If ENABLE_CHECKING call
18534         remove_cselib_value_chains before verifying value_chains is empty.
18535         Initialize and free changed_values_stack.
18536         (vt_initialize): Initialize preserved_values.
18537         (vt_finalize): Free preserved_values.
18538
18539 2010-03-08  Richard Guenther  <rguenther@suse.de>
18540
18541         PR tree-optimization/43269
18542         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
18543         region detection.
18544
18545 2010-03-08  Martin Jambor  <mjambor@suse.cz>
18546
18547         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
18548         (ipa_is_param_called): Removed.
18549         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
18550         (ipa_print_node_params): Do not print the called flag.
18551         (ipa_write_node_info): Do not stream the called flag.
18552         (ipa_read_node_info): Likewise.
18553
18554 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
18555
18556         PR debug/43176
18557         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
18558         * cselib.c (struct expand_value_data): Add dummy field.
18559         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
18560         dummy to false.
18561         (cselib_dummy_expand_value_rtx_cb): New function.
18562         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
18563         any rtl.
18564         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
18565         * var-tracking.c: Include pointer-set.h.
18566         (variable): Change n_var_parts to char from int.  Add
18567         cur_loc_changed and in_changed_variables fields.
18568         (variable_canonicalize): Remove.
18569         (shared_var_p): New inline function.
18570         (unshare_variable): Maintain cur_loc_changed and
18571         in_changed_variables fields.  If var was in changed_variables,
18572         replace it there with new_var.  Just copy cur_loc instead of
18573         resetting it to something else.
18574         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
18575         (dataflow_set_union): Don't call variable_canonicalize.
18576         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
18577         of their DEBUG_EXPR_TREE_DECLs.
18578         (canonicalize_loc_order_check): Verify that cur_loc is NULL
18579         and in_changed_variables and cur_loc_changed is false.
18580         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
18581         and cur_loc_changed.  Don't update cur_loc here.
18582         (variable_merge_over_src): Don't call variable_canonicalize.
18583         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
18584         removing loc that is equal to cur_loc, clear cur_loc,
18585         set cur_loc_changed and ensure variable_was_changed is called.
18586         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
18587         compare pointers in cur_loc check, if it is equal to loc,
18588         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
18589         (variable_different_p): Remove compare_current_location argument,
18590         don't compare cur_loc.
18591         (dataflow_set_different_1): Adjust variable_different_p caller.
18592         (variable_was_changed): If dv had some var in changed_variables
18593         already, reset in_changed_variables flag for it and propagate
18594         cur_loc_changed over to the new variable.  On empty var
18595         always set cur_loc_changed.  Set in_changed_variables on whatever
18596         var is added to changed_variables.
18597         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
18598         Use shared_var_p.  When removing loc that is equal to cur_loc,
18599         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
18600         end, don't set it to something else, just call variable_was_changed.
18601         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
18602         loc being removed, clear cur_loc and set cur_loc_changed.
18603         Set cur_loc_changed if all locations have been removed.
18604         (struct expand_loc_callback_data): New type.
18605         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
18606         allocated.  Always create SUBREGs if simplify_subreg failed.
18607         Prefer to use cur_loc, when that fails and still in
18608         changed_variables (and seen first time) recompute it.  Set
18609         cur_loc_changed of variables which had to change cur_loc and
18610         compute elcd->cur_loc_changed if any of the subexpressions used
18611         had to change cur_loc.
18612         (vt_expand_loc): Adjust to pass arguments in
18613         expand_loc_callback_data structure.
18614         (vt_expand_loc_dummy): New function.
18615         (emitted_notes): New variable.
18616         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
18617         that weren't used for any other decl in current
18618         emit_notes_for_changes call call vt_expand_loc_dummy to update
18619         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
18620         first loc_chain location if NULL before.  Always use just
18621         cur_loc instead of first loc_chain location.  When cur_loc_changed
18622         is false, when not --enable-checking=rtl just don't emit any note.
18623         When rtl checking, compute the note and assert it is the same
18624         as previous note.  Clear cur_loc_changed and in_changed_variables
18625         at the end before removing from changed_variables.
18626         (check_changed_vars_3): New function.
18627         (emit_notes_for_changes): Traverse changed_vars to call
18628         check_changed_vars_3 on each changed var.
18629         (emit_notes_for_differences_1): Clear cur_loc_changed and
18630         in_changed_variables.  Recompute cur_loc of new_var.
18631         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
18632         (vt_emit_notes): Initialize and destroy emitted_notes.
18633
18634 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
18635
18636         PR rtl-optimization/42220
18637         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
18638         Use verify_reg_tracked to determine if we should use OP_OUT rather
18639         than OP_INOUT.
18640         (build_def_use): If we see an in-out operand for a register that we
18641         know nothing about, treat is an output if possible, fail the block if
18642         not.
18643
18644 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
18645
18646         PR debug/42897
18647         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
18648         permanently.
18649
18650 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
18651
18652         PR debug/42897
18653         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
18654         uses of relevant DEFs that are dead outside the loop too.
18655
18656 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
18657
18658         * var-tracking.c (dataflow_set_merge): Swap src and src2.
18659         Reverted:
18660         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
18661         PR debug/41371
18662         * var-tracking.c (values_to_unmark): New variable.
18663         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18664         values_to_unmark vector.  Moved body to...
18665         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
18666         instead queue it into values_to_unmark vector.
18667         (vt_find_locations): Free values_to_unmark vector.
18668
18669 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
18670
18671         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
18672         (site.exp): Export them when plugins are enabled.
18673
18674 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
18675
18676         PR middle-end/42326
18677         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
18678         that contain scevs.
18679         (chrec_fold_multiply): Same.
18680
18681 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
18682
18683         PR c/43248
18684         * c-decl.c (build_compound_literal): Return early if init is
18685         an error_mark_node.
18686
18687 2010-03-04  Martin Jambor  <mjambor@suse.cz>
18688
18689         PR tree-optimization/43164
18690         PR tree-optimization/43191
18691         * tree-sra.c (type_consists_of_records_p): Reject records with
18692         zero-size bit-fields at the end.
18693
18694 2010-03-04  Mike Stump  <mikestump@comcast.net>
18695
18696         * Makefile.in (TAGS): Remove *.y.
18697
18698 2010-03-04  Richard Guenther  <rguenther@suse.de>
18699
18700         PR tree-optimization/40761
18701         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
18702         in reverse order.
18703         (my_rev_post_order_compute): New function.
18704         (init_pre): Call it.
18705
18706 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
18707
18708         PR middle-end/43209
18709         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
18710         decrease the cost of an IV candidate when the cost is infinite.
18711
18712 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18713
18714         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
18715         Use '3DNow!' for the extension of that name, ensure normal space
18716         after the string.
18717         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
18718
18719 2010-03-03  Jeff Law  <law@redhat.com>
18720
18721         * PR middle-end/32693
18722         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
18723         than gen_rtx_SUBREG.
18724         (extract_bit_field_1): Likewise.
18725
18726 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
18727
18728         * doc/sourcebuild.texi (Test directives): Document that arguments
18729         include-opts and exclude-opts are now optional for dg-skip-if,
18730         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
18731
18732 2010-03-03  Jason Merrill  <jason@redhat.com>
18733
18734         PR c++/12909
18735         * cgraph.h (varpool_node): Add extra_name field.
18736         * varpool.c (varpool_extra_name_alias): New.
18737         (varpool_assemble_decl): Emit extra name aliases.
18738         (varpool_mark_needed_node): Look past an extra name alias.
18739         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
18740         * lto-streamer-in.c (lto_input_tree): Read it.
18741         * lto-streamer-out.c (output_unreferenced_globals): Write it.
18742
18743 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18744
18745         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
18746         (sparc*-*-solaris2*): ...this.
18747
18748 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
18749
18750         PR debug/43229
18751         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
18752         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
18753         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
18754         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
18755
18756         PR debug/43237
18757         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
18758         fallthrough to default handling, just with want_address 0 instead of 2.
18759         For single element lists, add_AT_loc directly, otherwise create an
18760         artificial variable DIE and stick location list to it.
18761
18762         PR debug/43177
18763         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
18764         (VAL_EXPR_HAS_REVERSE): Define.
18765         (reverse_op): New function.
18766         (add_stores): For reversible operations add an extra MO_VAL_USE.
18767
18768 2010-03-02  Jason Merrill  <jason@redhat.com>
18769
18770         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
18771
18772 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
18773
18774         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
18775         (sparc64-*-linux*): Likewise.
18776         (sparc64-*-solaris2*): Include assembler files before linker ones.
18777         (sparc-*-solaris2*): Simplify and reorder to match previous case.
18778         * config/sparc/gas.h: Delete.
18779         * config/sparc/sol2-64.h: Add copyright notice.
18780         * config/sparc/sol2-gas-bi.h: Likewise.
18781         * config/sparc/sol2-gld.h: Likewise.
18782         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
18783         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
18784         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
18785         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
18786         (sparc_elf_asm_named_section): Rename into...
18787         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
18788
18789 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
18790
18791         * config/alpha/alpha.c (override_options): Fix -mtune error message.
18792
18793 2010-03-02  Jeff Law  <law@redhat.com>
18794
18795         PR middle-end/42431
18796         * reload1.c (rtx_p, substitute_stack): Declare.
18797         (substitute): Record addresses of changed rtxs.
18798         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
18799         Restore the original rtx when complete.
18800         (reload): Free subsitute_stack when complete.
18801
18802 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
18803
18804         * doc/gccint.texi (menu): Add Testsuites as a chapter.
18805         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
18806         new chapter.
18807         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
18808         LTO Testing, gcov Testing, profopt Testing, compat Testing,
18809         Torture Tests): Change from subsection to section.
18810
18811 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
18812             Steven Bosscher  <steven@gcc.gnu.org>
18813
18814         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
18815         instead of bb.
18816
18817 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
18818
18819         PR middle-end/42640
18820         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
18821         the assignment from the new induction variable to the assignment
18822         of the value from the original loop PHI function.
18823
18824 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
18825             Daniel Jacobowitz  <dan@codesourcery.com>
18826
18827         * doc/sourcebuild.texi (Test directives): Clarify options to
18828         dg-skip-if.
18829
18830 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18831
18832         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
18833         Disable cfi directives unless GCC and gas agree on using read-only
18834         .eh_frame sections for 64-bit.
18835         * configure: Regenerate.
18836
18837 2010-03-01  Richard Guenther  <rguenther@suse.de>
18838
18839         PR tree-optimization/43220
18840         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
18841         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
18842
18843 2010-03-01  Richard Guenther  <rguenther@suse.de>
18844             Martin Jambor  <mjambor@suse.cz>
18845
18846         PR middle-end/41250
18847         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
18848         gimplified parameters.
18849
18850 2010-03-01  Christian Bruel  <christian.bruel@st.com>
18851
18852         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
18853
18854 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18855
18856         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
18857
18858 2010-03-01  Richard Guenther  <rguenther@suse.de>
18859
18860         PR middle-end/43213
18861         * expr.c (expand_assignment): Use the alias-oracle to tell
18862         if the rhs aliases the result decl.
18863
18864 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18865
18866         PR pch/14940
18867         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
18868         to sol_gt_pch_get_address.
18869         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
18870         64-bit, SPARC and x86.
18871         (sol_gt_pch_get_address): New function.
18872
18873 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
18874
18875         * toplev.h (inform_n, error_n): Declare.
18876         * diagnostic.c (inform_n, error_n): New function.
18877
18878 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
18879
18880         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
18881         has no rtl yet when processing local_decls, queue it and recheck
18882         if deferred stack allocation hasn't assigned it rtl.
18883
18884 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
18885
18886         * config/sh/sh.c (unspec_bbr_uid): New.
18887         (gen_block_redirect): Use it instead of INSN_UID.
18888         (gen_far_branch): Likewise.
18889
18890 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
18891
18892         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
18893         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
18894
18895 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18896
18897         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
18898         (Warning Options): -Wno-conversion-null is valid for
18899         Objective-C++ as well.
18900         * doc/tm.texi (Named Address Spaces): Likewise.
18901         * doc/plugins.texi (Plugins): Replace TABs with spaces.
18902         * doc/tree-ssa.texi (Tree SSA): Likewise.
18903
18904 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18905
18906         PR bootstrap/43202
18907         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
18908         by default.  Don't set the default arch for
18909         i[34567]86-*-darwin*|x86_64-*-darwin*.
18910
18911 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18912
18913         PR bootstrap/43202
18914         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
18915         default.  Set the default 32bit/64bit archs with $with_arch
18916         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
18917
18918 2010-02-27  Richard Guenther  <rguenther@suse.de>
18919
18920         PR tree-optimization/43186
18921         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
18922         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
18923         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
18924         unroller iterations.
18925
18926 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18927
18928         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
18929         required and i[34567]86-*-* targets don't support 64bit ISA.
18930
18931 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
18932
18933         PR ada/43096
18934         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18935         the same alias set.
18936
18937 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
18938
18939         * config.gcc: Set the default arch at least to Prescott for
18940         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
18941         if SSE math is enabled.
18942
18943 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18944
18945         * diagnostic.c (diagnostic_initialize): Update.
18946         (diagnostic_report_diagnostic): Test inhibit_notes_p for
18947         informative notes.
18948         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
18949         (diagnostic_inhibit_notes): New.
18950         * toplev.c (process_options): inhibit notes with -fcompare-debug.
18951
18952 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18953
18954         PR c/20631
18955         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
18956         * doc/standards.texi: Likewise.
18957         * doc/extend.texi: Likewise.
18958         * doc/trouble.texi: Likewise.
18959         * doc/cppopts.texi: Likewise.
18960         * doc/install.texi: Likewise.
18961         * c.opt (std=c90,std=gnu90): New options.
18962         * c-opts.c (c_common_handle_option): Handle them.
18963
18964 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18965
18966         PR c/24577
18967         * c-decl.c (undeclared_variable): Use an informative note.
18968
18969 2010-02-26  Richard Guenther  <rguenther@suse.de>
18970
18971         PR tree-optimization/43186
18972         * gimple.h (gimple_fold): Remove.
18973         * gimple.c (gimple_fold): Remove.  Inline into single user ...
18974         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
18975         Try harder for conditions.
18976
18977 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
18978
18979         PR debug/43190
18980         * function.c (used_types_insert): Don't skip through named pointer
18981         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
18982         and it is different from the main variant's type.
18983
18984 2010-02-26  Nick Clifton  <nickc@redhat.com>
18985
18986         * config/rx/rx.md (sminsi3): Remove bogus alternative.
18987
18988 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
18989
18990         * config.gcc: Support --with-fpmath=sse for x86.
18991
18992         * config/i386/ssemath.h: New.
18993
18994         * doc/install.texi (--with-fpmath=sse): Documented.
18995
18996 2010-02-26  Richard Guenther  <rguenther@suse.de>
18997
18998         PR tree-optimization/43188
18999         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
19000         vector types of over-aligned element type.
19001
19002 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
19003
19004         PR target/43175
19005         * config/i386/i386.c (expand_vec_perm_blend): Use correct
19006         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
19007
19008 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
19009
19010         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
19011
19012 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
19013
19014         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
19015         * var-tracking.c: Include diagnostic.h.
19016         (debug_dv): New function.
19017         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
19018
19019         PR debug/43160
19020         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
19021         (add_value_chain, add_value_chains, remove_value_chain,
19022         remove_value_chains): Handle DEBUG_EXPRs.
19023         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
19024
19025         PR debug/43161
19026         * regcprop.c (struct queued_debug_insn_change): New type.
19027         (struct value_data_entry): Add debug_insn_changes field.
19028         (struct value_data): Add n_debug_insn_changes field.
19029         (debug_insn_changes_pool): New variable.
19030         (free_debug_insn_changes, apply_debug_insn_changes,
19031         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
19032         (kill_value_one_regno): Call free_debug_insn_changes if needed.
19033         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
19034         fields.
19035         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
19036         changes for them.
19037         (copyprop_hardreg_forward_1): Don't call apply_change_group for
19038         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
19039         changes, call cprop_find_used_regs via note_stores.
19040         (copyprop_hardreg_forward): When copying vd from predecessor
19041         which has any queued DEBUG_INSN changes, make sure the pointers are
19042         cleared.  At the end call df_analyze and then if there are any
19043         DEBUG_INSN changes queued at the end of some basic block for still
19044         live registers, apply them.
19045         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
19046
19047 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
19048
19049         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
19050         (arm*-*-*): Ditto.
19051
19052 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
19053
19054         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
19055         targets.  Set the default with_cpu/with_arch from arch/cpu.
19056         Allow x86-64 and native for with_cpu/with_arch.
19057
19058 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
19059
19060         * ebitmap.c: Change calls to verify_popcount with calls to
19061         sbitmap_verify_popcount.
19062         (ebitmap_clear_bit): Fixed map->cacheindex test and
19063         map>cache update when bit clearing results in an empty
19064         element.
19065
19066 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19067
19068         PR target/43154
19069         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
19070         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
19071         and support both V2DF and V2DI modes.
19072         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
19073         support both V2DF and V2DI modes.
19074         (general): Delete trailing whitespace from a few patterns.
19075
19076         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19077         V2DF/V2DI interleave high/low builtins.
19078
19079         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
19080         new VSX builtins.
19081
19082         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
19083         interleave high/low functions.
19084
19085 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
19086
19087         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
19088         #pragma extern_prefix.
19089
19090 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
19091
19092         PR debug/43166
19093         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
19094         BLKmode, assert op0 is a MEM and just adjust its mode.
19095
19096         PR debug/43165
19097         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
19098         if bitpos isn't multiple of mode's bitsize.
19099
19100 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19101
19102         * c.opt (-ftemplate-depth=): New.
19103         (-ftemplate-depth-): Deprecate.
19104         * optc-gen.awk: Handle -ftemplate-depth=.
19105         * opth-gen.awk: Likewise.
19106         * c-opts.c (c_common_handle_option): Likewise.
19107         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
19108
19109 2010-02-24  Jason Merrill  <jason@redhat.com>
19110
19111         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
19112
19113 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19114
19115         * cfg.c (alloc_aux_for_block): Remove inline.
19116         (alloc_aux_for_edge): Likewise.
19117
19118 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19119
19120         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
19121
19122 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19123
19124         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
19125         * config/i386/sol2-gas.h: New file.
19126         * config.gcc (i[34567]86-*-solaris2*): Use it.
19127
19128 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19129
19130         PR c/43128
19131         * c-typeck.c (ep_convert_and_check): New.
19132         (build_conditional_expr): Use it.
19133         (build_binary_op): Likewise.
19134
19135 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
19136
19137         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
19138
19139         PR debug/43150
19140         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
19141         bounds even for -O+.
19142         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
19143         expr needs to have DECL_NAME set.
19144
19145 2010-02-24  Nick Clifton  <nickc@redhat.com>
19146
19147         * config/mep/mep.c: Include gimple.h.
19148         (mep_function_uses_sp): Delete unused function.
19149         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
19150         parameters.  Use unsigned integers to count args.  Return a
19151         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
19152
19153 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
19154
19155         PR target/43107
19156         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
19157         greater or equal to nelt instead of 2 * nelt.
19158         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
19159         with nelt - 1.
19160
19161 2010-02-23  Jason Merrill  <jason@redhat.com>
19162
19163         PR debug/42800
19164         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
19165         in cfun->local_decls even if they have register types.
19166
19167         PR c++/42837
19168         * stor-layout.c (place_field): Don't warn about unnecessary
19169         DECL_PACKED if the type is packed.
19170
19171 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
19172
19173         PR target/43139
19174         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
19175         GOTOFF relocs, even when the base reg isn't pic pointer.
19176
19177 2010-02-23  Michael Matz  <matz@suse.de>
19178
19179         PR debug/43077
19180         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
19181         (expand_gimple_basic_block): Generate and use debug temps if there
19182         are debug uses left after the last real use of TERed ssa names.
19183         Unlink debug immediate uses when they are expanded.
19184
19185 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19186
19187         PR 43123
19188         * config/i386/i386.c (override_options): Reorganise to provide
19189         better error messages.
19190
19191 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19192
19193         PR middle-end/43083
19194         * graphite-scop-detection.c (create_single_exit_edge): Move
19195         the call to find_single_exit_edge to....
19196         (create_sese_edges): ...here.  Don't handle multiple edges
19197         exiting the function.
19198         (build_graphite_scops): Don't handle multiple edges
19199         exiting the function.
19200
19201 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19202
19203         PR middle-end/43097
19204         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
19205         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
19206
19207 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19208
19209         PR middle-end/43026
19210         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
19211
19212 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19213
19214         PR c++/43126
19215         * c-typeck.c (convert_arguments): Print declaration location.
19216         * c-common.c (validate_nargs): Rename as
19217         builtin_function_validate_nargs.
19218         (check_builtin_function_arguments): Update.
19219
19220 2010-02-22  Richard Guenther  <rguenther@suse.de>
19221
19222         PR lto/43045
19223         * tree-inline.c (declare_return_variable): Use the type of
19224         the call stmt lhs if available.
19225
19226 2010-02-22  Duncan Sands  <baldrick@free.fr>
19227
19228         * passes.c (register_pass): Always consider all pass lists when
19229         ref_pass_instance_number is zero.
19230
19231 2010-02-22  Richard Guenther  <rguenther@suse.de>
19232
19233         PR tree-optimization/42749
19234         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
19235         parameter.  Do arithmetic in the original type.
19236         (update_accumulator_with_ops): Likewise.
19237         (adjust_accumulator_values): Adjust.
19238
19239 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19240
19241         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
19242         (QI to BLKmode splitter): New splitter.
19243
19244 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
19245
19246         * config/i386/i386.c (initial_ix86_tune_features): Turn on
19247         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
19248
19249 2010-02-22  Richard Guenther  <rguenther@suse.de>
19250
19251         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
19252
19253 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
19254
19255         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
19256         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
19257         ($(T)crti.o, $(T)crtn.o): Remove rules.
19258
19259 2010-02-21  Tobias Burnus  <burnus@net-b.de>
19260
19261         PR fortran/35259
19262         * doc/invoke.texi (-fassociative-math): Document that this
19263         option is automatically enabled for Fortran.
19264
19265 2010-02-20  David S. Miller  <davem@davemloft.net>
19266
19267         * configure.ac: Test if linker and assembler properly support
19268         GOTDATA_OP relocations.
19269         * configure: Rebuild.
19270         * config.in: Likewise.
19271         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
19272         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
19273         (movsi_high_pic): Likewise.
19274         (movdi_lo_sum_pic): Likewise.
19275         (movdi_high_pic): Likewise.
19276         (movsi_pic_gotdata_op): New pattern.
19277         (movdi_pic_gotdata_op): Likewise.
19278         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
19279         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
19280
19281 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
19282
19283         PR target/43067
19284         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
19285         attribute to ssemul.
19286         (xop_mulv2div2di3_high): Ditto.
19287
19288 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19289
19290         PR c++/35669
19291         * c.opt (Wconversion-null): New option.
19292         * doc/invoke.texi (Wconversion-null): Document.
19293
19294 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19295
19296         * common.opt (Wlarger-than-): Add Undocumented.
19297
19298 2010-02-19  Mike Stump  <mikestump@comcast.net>
19299
19300         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
19301
19302 2010-02-19  Jason Merrill  <jason@redhat.com>
19303
19304         PR target/40332
19305         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
19306         * configure: Likewise.
19307
19308 2010-02-20  Alan Modra  <amodra@gmail.com>
19309
19310         PR middle-end/42344
19311         * cgraph.h (cgraph_make_decl_local): Declare.
19312         * cgraph.c (cgraph_make_decl_local): New function.
19313         (cgraph_make_node_local): Use it.
19314         * cgraphunit.c (cgraph_function_versioning): Likewise.
19315         * ipa.c (function_and_variable_visibility): Likewise.
19316
19317 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19318
19319         PR bootstrap/43121
19320         * except.c (sjlj_emit_function_enter): Don't call
19321         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
19322         directly.
19323         * rtl.h (add_reg_br_prob_note): Remove prototype.
19324
19325 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19326
19327         PR 41779
19328         * c-common.c (conversion_warning): Remove widening conversions
19329         before checking the conversion of integers to reals.
19330
19331 2010-02-19  Mike Stump  <mikestump@comcast.net>
19332
19333         PR middle-end/43125
19334         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
19335
19336         PR objc/43061
19337         * cgraphunit.c (process_function_and_variable_attributes): Check
19338         DECL_PRESERVE_P instead of looking up attribute "used".
19339         * ipa-pure-const.c (check_decl): Likewise.
19340         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
19341         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
19342         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
19343         instead of attribute "used".
19344         * config/sol2-c.c (solaris_pragma_init): Likewise.
19345         (solaris_pragma_fini): Likewise.
19346
19347 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19348
19349         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
19350         Use XCNEW instead of xcalloc.
19351         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
19352         XNEW instead of xmalloc.
19353         (get_fields): Use XNEWVEC instead of xmalloc.
19354
19355         PR debug/43084
19356         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
19357         populate vars array.
19358         (create_new_general_access): For debug stmts just reset value.
19359         (get_stmt_accesses): For accesses within debug stmts just record them
19360         using add_access_to_acc_sites instead of preventing the peeling or
19361         counting them as accesses.
19362
19363         PR middle-end/42233
19364         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
19365
19366 2010-02-19  Richard Guenther  <rguenther@suse.de>
19367
19368         PR tree-optimization/42916
19369         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
19370         instructions.
19371
19372 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
19373
19374         * configure.ac: Replace all uses of changequote in macro arguments
19375         with proper quoting.
19376
19377 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19378
19379         PR middle-end/42233
19380         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
19381
19382 2010-02-19  Richard Guenther  <rguenther@suse.de>
19383
19384         PR tree-optimization/42944
19385         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
19386         test for aliasing with errno.
19387
19388 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
19389
19390         PR middle-end/42233
19391         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
19392         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
19393         * dojump.c: Include output.h.
19394         (inv): New inline function.
19395         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
19396         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
19397         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
19398         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
19399         argument, pass it down to other calls.
19400         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
19401         add REG_BR_PROB note to the conditional jump.
19402         * cfgexpand.c (add_reg_br_prob_note): Removed.
19403         (expand_gimple_cond): Don't call it, add the probability
19404         as last argument to jumpif_1/jumpifnot_1.
19405         * Makefile.in (dojump.o): Depend on output.h.
19406         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
19407         callers.
19408         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
19409         * stmt.c (do_jump_if_equal): Likewise.
19410         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
19411         * loop-unswitch.c (compare_and_jump_seq): Likewise.
19412         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
19413         Likewise.
19414         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
19415         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
19416         jumpifnot_1 callers.
19417         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
19418         callers.
19419         (store_expr): Adjust jumpifnot caller.
19420         (store_constructor): Adjust jumpif caller.
19421
19422         PR middle-end/42233
19423         * gimplify.c (gimple_boolify): For __builtin_expect call
19424         gimple_boolify also on its first argument.
19425
19426 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
19427
19428         * configure.ac (gnu-unique-object): Wrap regexps using [] in
19429         changequote block.
19430         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
19431         * configure: Regenerated.
19432
19433 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19434
19435         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
19436         lang_hooks.types_compatible_p instead of comptypes.
19437
19438 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19439
19440         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
19441         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
19442         if __prefer_thumb__ is defined.
19443
19444 2010-02-18  Martin Jambor  <mjambor@suse.cz>
19445
19446         PR tree-optimization/43066
19447         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
19448         array with zero-sized element type.
19449
19450 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
19451
19452         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
19453         rtx, allocate struct var_loc_node here and return it to the
19454         caller, and only if it is actually needed.
19455         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
19456         move it earlier and return immediately if it returns NULL.
19457
19458 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
19459
19460         * config/sparc/gas.h: New file.  Restore
19461         TARGET_ASM_NAMED_SECTION to its ELF default.
19462         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
19463         check !HAVE_GNU_AS.
19464         * config/sparc/sparc.c (sparc_elf_asm_named_section):
19465         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
19466         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
19467         after sparc/sysv4.h.
19468
19469 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
19470
19471         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
19472
19473 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
19474
19475         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
19476         patterns from predicated pattern.
19477
19478 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
19479
19480         PR target/43103
19481         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
19482         for insn mnemonic suffix.
19483
19484 2010-02-17  Richard Guenther  <rguenther@suse.de>
19485
19486         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
19487         to loop PHI nodes.
19488
19489 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
19490
19491         PR debug/42918
19492         * caller-save.c (save_call_clobbered_regs): If BB ends with
19493         a DEBUG_INSN, move any notes in between last real insn and the last
19494         DEBUG_INSN after the last DEBUG_INSN.
19495
19496 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
19497
19498         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
19499         Fix return type.  Fix argument type.  Explain meaning of return value.
19500
19501 2010-02-16  Richard Guenther  <rguenther@suse.de>
19502
19503         PR tree-optimization/41043
19504         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
19505         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
19506         statements ...
19507         (vrp_visit_phi_node): ... but only for loop PHI nodes.
19508
19509 2010-02-16  Ira Rosen  <irar@il.ibm.com>
19510
19511         PR tree-optimization/43074
19512         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
19513         * tree-vect-loop.c (vect_analyze_loop_operations): Add
19514         vectorizable cycles in hybrid SLP check.
19515         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
19516
19517 2010-02-16  Richard Guenther  <rguenther@suse.de>
19518
19519         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
19520         (true_dependence): If memrefs_conflict_p computes must-alias
19521         trust it.  Move TBAA check after offset-based disambiguation.
19522         (canon_true_dependence): Likewise.
19523
19524 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
19525
19526         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
19527         * doc/invoke.texi: Document it.
19528         * var-tracking.c: Include toplev.h and params.h.
19529         (vt_find_locations): Return bool indicating success.  Compute
19530         hash sizes unconditionally.  Check new parameter, report.
19531         (variable_tracking_main_1): Check vt_find_locations results and
19532         retry.  Renamed from...
19533         (variable_tracking_main): ... this.  New wrapper to preserve
19534         flag_var_tracking_assignments.
19535         * Makefile.in (var-tracking.o): Adjust dependencies.
19536
19537 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
19538             Jakub Jelinek  <jakub@redhat.com>
19539
19540         PR target/42854
19541         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
19542         if weak_import attribute is present.
19543         * config/darwin.c (machopic_select_section): Likewise.
19544
19545 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
19546
19547         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
19548         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
19549         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
19550         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
19551
19552         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
19553         types.
19554
19555         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19556         Fix argument types.
19557
19558         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
19559         Rewrite text to refer to the names.
19560
19561 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
19562
19563         * config/i386/i386-builtin-types.def
19564         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
19565         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
19566         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
19567         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
19568         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
19569         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
19570         IX86_BUILTIN_VPERMIL2PS256.
19571         (MULTI_ARG_4_DF2_DI_I): Defined.
19572         (MULTI_ARG_4_DF2_DI_I1): Defined.
19573         (MULTI_ARG_4_SF2_SI_I): Defined.
19574         (MULTI_ARG_4_SF2_SI_I1): Defined.
19575         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
19576         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
19577         __builtin_ia32_vpermil2ps256.
19578         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
19579         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
19580         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
19581         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
19582         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
19583         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
19584         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
19585         CODE_FOR_xop_vpermil2v8sf3.
19586         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
19587         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
19588         * config/i386/xopintrin.h (_mm_permute2_pd): New.
19589         (_mm256_permute2_pd): New.
19590         (_mm_permute2_ps): New.
19591         (_mm256_permute2_ps): New.
19592
19593 2010-02-15  Nick Clifton  <nickc@redhat.com>
19594
19595         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
19596         boolean parameters.  Use emit_jump_insn when emitting a pop
19597         instruction containing a return insn.
19598         (push): Use 'true' rather than '1' as second parameter to F.
19599         (h8300_expand_prologue): Likewise.
19600         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
19601         (h8300_expand_epilogue): Likewise.
19602
19603 2010-02-15  Richard Guenther  <rguenther@suse.de>
19604
19605         PR middle-end/43068
19606         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
19607         if that is zero.
19608
19609 2010-02-15  Nick Clifton  <nickc@redhat.com>
19610
19611         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
19612         delta.
19613
19614 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
19615
19616         * intl.c (fake_ngettext): New function.
19617         * intl.h (fake_ngettext): Declare.
19618         (ngettext): Define macro.
19619         * collect2.c (notice_translated): New function.
19620         (main): Use notice_translated and ngettext.
19621         * collect2.h (notice_translated): Declare.
19622
19623 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
19624
19625         * reorg.c (delete_computation): Comment fixes.
19626         * caller-save.c (setup_save_areas): Idem.
19627         * sel-sched-dump.c (dump_lv_set): Idem.
19628         * rtl.def: Idem.
19629
19630 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19631
19632         * config/s390/s390.c (s390_sched_init): New function.
19633         (TARGET_SCHED_INIT): Target hook defined.
19634
19635 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
19636             Jack Howarth  <howarth@bromo.med.uc.edu>
19637             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19638
19639         PR target/42982
19640         Partial revert of unintended change in fix for PR41605.
19641         * config/darwin.h: Fix typo.
19642         * config/darwin9.h: Same.
19643
19644 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
19645
19646         * c-pch.c (pch_init): Clear v.
19647
19648 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19649
19650         PR middle-end/42930
19651         * graphite-scop-detection.c (graphite_can_represent_scev): Call
19652         graphite_can_represent_init for MULT_EXPR.
19653
19654 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19655
19656         PR middle-end/42914
19657         PR middle-end/42530
19658         * graphite-sese-to-poly.c (remove_phi): New.
19659         (translate_scalar_reduction_to_array): Call remove_phi.
19660
19661 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19662
19663         PR middle-end/42771
19664         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
19665         * graphite-clast-to-gimple.h (gloog): Update declaration.
19666         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
19667         * graphite-poly.h (struct poly_bb): Add missing comments.
19668         (struct scop): Add poly_scop_p field.
19669         (POLY_SCOP_P): New.
19670         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
19671         * graphite.c (graphite_transform_loops): Build the polyhedral
19672         representation for each scop before code generation.
19673         * sese.c (rename_variables_in_operand): Removed.
19674         (rename_variables_in_expr): Return the renamed expression.
19675         (rename_sese_parameters): New.
19676         * sese.h (rename_sese_parameters): Declared.
19677
19678 2010-02-11  Richard Guenther  <rguenther@suse.de>
19679
19680         PR tree-optimization/42998
19681         * tree-ssa-pre.c (create_expression_by_pieces): Treat
19682         POINTER_PLUS_EXPR properly.
19683
19684 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19685             Changpeng Fang  <changpeng.fang@amd.com>
19686
19687         PR middle-end/40886
19688         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
19689         the cost of an IV candidate when the IV is used in a test against zero.
19690
19691         * gcc.dg/tree-ssa/ivopts-3.c: New.
19692
19693 2010-02-11  Richard Guenther  <rguenther@suse.de>
19694
19695         PR lto/41664
19696         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
19697         pointer-vs-decl case by swapping refs.  Handle some cases
19698         of pointer-vs-decl disambiguations more conservatively.
19699         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
19700         to false after expanding.
19701
19702 2010-02-11  Richard Guenther  <rguenther@suse.de>
19703
19704         PR driver/43021
19705         * gcc.c (process_command): Handle LTO file@offset case more
19706         appropriately.
19707
19708 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
19709
19710         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
19711         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
19712         of DEBUG_INSNs.
19713         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
19714
19715         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
19716         if MEM's mode size isn't DWARF2_ADDR_SIZE.
19717         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
19718         Optimize eq/ne comparisons when both arguments are known to be
19719         zero-extended.
19720         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
19721         Don't mask operands unnecessarily if they are known to be already
19722         zero-extended.
19723
19724 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
19725
19726         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
19727         instead of loop.
19728
19729 2010-02-10  Richard Guenther  <rguenther@suse.de>
19730
19731         PR tree-optimization/43017
19732         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
19733         for wrapping signed arithmetic.
19734
19735 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19736
19737         PR debug/43010
19738         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
19739         if no debug info should be emitted for it.
19740
19741 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19742
19743         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
19744         note when flag_exceptions is set.
19745
19746 2010-02-10  Duncan Sands  <baldrick@free.fr>
19747
19748         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
19749
19750 2010-02-10  Richard Guenther  <rguenther@suse.de>
19751
19752         PR c/43007
19753         * tree.c (get_unwidened): Handle constants.
19754         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
19755
19756 2010-02-10  Martin Jambor  <mjambor@suse.cz>
19757
19758         PR lto/42985
19759         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
19760         check for variable argument counts independently.
19761
19762 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19763
19764         PR target/42841
19765         * config/sh/sh.c (find_barrier): Increase length for non delayed
19766         conditional branches.
19767
19768 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19769
19770         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
19771
19772 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19773
19774         * builtins.c (set_builtin_user_assembler_name): Also handle
19775         ffs if int is smaller than word.
19776
19777 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
19778
19779         PR middle-end/42973
19780         * ira-conflicts.c (get_dup): Remove.
19781         (process_reg_shuffles): Add new parameter.  Use it as an
19782         additional guard for copy generation.
19783         (add_insn_allocno_copies): Rewrite.
19784
19785 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
19786
19787         * common.opt (fsched2-use-traces): Preserved for backward
19788         compatibility.
19789         * doc/invoke.texi: Remove the documentation about option
19790         -fsched2-use-traces.
19791         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
19792         flag_sched2_use_traces.
19793         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
19794         the backward compatibility flag section.
19795
19796 2010-02-09  Richard Guenther  <rguenther@suse.de>
19797
19798         PR tree-optimization/43008
19799         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
19800         make HEAP variables initialized from global memory if they
19801         are not known builtin functions.
19802         (find_func_aliases): Adjust.
19803
19804 2010-02-09  Richard Guenther  <rguenther@suse.de>
19805
19806         PR tree-optimization/43000
19807         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
19808         arithmetic manually.
19809
19810 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
19811
19812         PR tree-optimization/42931
19813         * tree-loop-linear.c (try_interchange_loops): Don't call
19814         double_int_mul if estimated_loop_iterations failed.
19815
19816 2010-02-08  Martin Jambor  <mjambor@suse.cz>
19817
19818         PR middle-end/42898
19819         * tree-sra.c (build_accesses_from_assign): Do not mark in
19820         should_scalarize_away_bitmap if stmt has volatile ops.
19821         (sra_modify_assign): Do not process assigns piecemeal if if stmt
19822         has volatile ops.
19823
19824 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
19825
19826         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
19827
19828 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
19829
19830         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
19831         before the pattern.
19832
19833 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
19834
19835         PR middle-end/42946
19836         * df-core.c (df_finish_pass): Change type of saved_flags to int.
19837
19838 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
19839
19840         PR middle-end/42988
19841         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
19842         to unknown_dependence.
19843         (graphite_legal_transform_dr): Handle the unknown_dependence.
19844         (graphite_carried_dependence_level_k): Same.
19845
19846 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
19847
19848         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
19849
19850 2010-02-07  Richard Guenther  <rguenther@suse.de>
19851
19852         PR middle-end/42991
19853         * expr.c (get_inner_reference): Always initialize *pbitsize.
19854
19855 2010-02-07  Richard Guenther  <rguenther@suse.de>
19856
19857         PR middle-end/42956
19858         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
19859         new ARRAY_REFs on variable size element or minimal index arrays.
19860         Complete.
19861         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
19862         gimple_fold_indirect_ref.
19863
19864 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
19865
19866         PR target/42957
19867         * arm.c (arm_override_options): Just return if the user has specified
19868         an invalid fpu name.
19869
19870 2010-02-03  Jason Merrill  <jason@redhat.com>
19871
19872         PR c++/42870
19873         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
19874         i386_pe_maybe_record_exported_symbol.
19875
19876 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
19877
19878         PR target/42924
19879         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19880         (pa_delegitimize_address): New function.
19881
19882 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
19883
19884         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
19885         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
19886
19887 2010-02-05  Richard Guenther  <rguenther@suse.de>
19888
19889         PR lto/42762
19890         * lto-streamer-in.c (get_resolution): Deal with references
19891         to undefined functions.
19892
19893 2010-02-05  Richard Guenther  <rguenther@suse.de>
19894
19895         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
19896         (fold_const_aggregate_ref): Likewise.
19897         (ccp_fold_stmt): Substitute loads.
19898         (maybe_fold_reference): Verify types before substituting.
19899         Unshare properly.
19900         (fold_gimple_assign): Unshare properly.
19901         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
19902
19903 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
19904
19905         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
19906         for rs6000_gen_cell_microcode.
19907
19908 2010-02-04  Richard Guenther  <rguenther@suse.de>
19909
19910         PR rtl-optimization/42952
19911         * dse.c (const_or_frame_p): Remove MEM handling.
19912
19913 2010-02-04  Nick Clifton  <nickc@redhat.com>
19914
19915         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19916         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
19917         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
19918         (mn10300_asm_output_mi_thunk): New function.
19919         (mn10300_can_output_mu_thunk): New function.
19920         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
19921         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
19922         (FUNCTION_ARG): Delete incorrect comment.
19923
19924 2010-02-03  Jason Merrill  <jason@redhat.com>
19925
19926         PR c++/40138
19927         * fold-const.c (operand_equal_p): Handle erroneous types.
19928
19929 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19930
19931         * config/h8300/h8300.md (can_delay): Fix attibute condition.
19932
19933 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
19934
19935         PR rtl-optimization/42941
19936         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
19937         of xmalloc.
19938
19939 2010-02-03  Jason Merrill  <jason@redhat.com>
19940
19941         PR c++/35652
19942         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
19943
19944 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
19945
19946         PR debug/42896
19947         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
19948         (cselib_reset_table): Renamed from...
19949         (cselib_reset_table_with_next_value): ... this.
19950         (cselib_get_next_uid): Renamed from...
19951         (cselib_get_next_unknown_value): ... this.
19952         * cselib.c (next_uid): Renamed from...
19953         (next_unknown_value): ... this.
19954         (cselib_clear_table): Adjust.
19955         (cselib_reset_table): Adjust.  Renamed from...
19956         (cselib_reset_table_with_next_value): ... this.
19957         (cselib_get_next_uid): Adjust.  Renamed from...
19958         (cselib_get_next_unknown_value): ... this.
19959         (get_value_hash): Use hash.
19960         (cselib_hash_rtx): Likewise.
19961         (new_cselib_val): Adjust.  Set and dump uid.
19962         (cselib_lookup_mem): Pass next_uid as hash.
19963         (cselib_subst_to_values): Likewise.
19964         (cselib_log_lookup): Dump uid.
19965         (cselib_lookup): Pass next_uid as hash.  Adjust.
19966         (cselib_process_insn): Adjust.
19967         (cselib_init): Initialize next_uid.
19968         (cselib_finish): Adjust.
19969         (dump_cselib_table): Likewise.
19970         * dse.c (canon_address): Dump value uid.
19971         * print-rtl.c (print_rtx): Print value uid.
19972         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
19973         (dvuid): New type.
19974         (dv_uid): New function, sort of renamed from...
19975         (dv_htab_hash): ... this, reimplemented in terms of it and...
19976         (dv_uid2hash): ... this.  New.
19977         (variable_htab_eq): Drop excess assertions.
19978         (tie_break_pointers): Removed.
19979         (canon_value_cmp): Compare uids.
19980         (variable_post_merge_New_vals): Print uids.
19981         (vt_add_function_parameters): Adjust.
19982         (vt_initialize): Reset table.  Adjust.
19983
19984 2010-02-03  Richard Guenther  <rguenther@suse.de>
19985
19986         PR tree-optimization/42944
19987         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
19988         (call_may_clobber_ref_p_1): Likewise.  Properly handle
19989         malloc and calloc clobbering errno.
19990
19991 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
19992
19993         * doc/invoke.texi: Fix name of sched1 dump.
19994
19995         * opts.c (decode_options): Set flag_tree_switch_conversion
19996         only conditionally on optimize >= 2.
19997
19998         * gcse.c: Assorted comment fixes in pass description.
19999
20000 2010-02-03  Anthony Green  <green@moxielogic.com>
20001
20002         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
20003         nop padding in order to maintain alignment of storage location of
20004         target function address.
20005         (moxie_trampoline_init): Store target function address at newly
20006         aligned location.
20007         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
20008         to 32.
20009         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
20010
20011 2010-02-03  Richard Guenther  <rguenther@suse.de>
20012
20013         PR middle-end/42927
20014         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
20015
20016 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20017
20018         * config.gcc: Reenable check for obsolete targets.
20019         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
20020         mips-sgi-irix6.[0-4]*.
20021
20022 2010-02-02  Nick Clifton  <nickc@redhat.com>
20023
20024         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
20025         constant size of 4 as being the same as 0.
20026         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
20027         can take values in the range 0..4.
20028
20029 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
20030
20031         PR java/41991
20032         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
20033         as _darwin10_Unwind_FindEnclosingFunction().
20034         * libgcc-libsystem.ver: New.
20035
20036 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
20037
20038         PR target/41399
20039         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
20040         implicitly set registers.
20041
20042 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
20043
20044         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
20045         (arm_override_options): Allow automatic selection of the thread
20046         pointer register if thumb2.
20047         (legitimize_pic_address): Improve code sequences for Thumb2.
20048         (arm_call_tls_get_addr): Likewise.
20049         (legitimize_tls_address): Likewise.
20050         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
20051         (pic_load_addr_32bit): ... this.  New named pattern.
20052         * thumb2.md (pic_load_addr_thumb2): Delete.
20053         (pic_load_dot_plus_four): Delete.
20054         (tls_load_dot_plus_four): New named pattern.
20055
20056 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20057
20058         PR libgomp/29986
20059         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
20060         Document fix for TLS bug.
20061
20062 2010-01-31  Richard Guenther  <rguenther@suse.de>
20063
20064         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
20065         conservatively correct.
20066
20067 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20068
20069         PR target/42850
20070         Revert:
20071         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20072
20073         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20074
20075 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20076
20077         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
20078
20079 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
20080
20081         * config.gcc: Adjust order of makefile fragments for mingw targets.
20082
20083 2010-01-31  Richard Guenther  <rguenther@suse.de>
20084
20085         PR middle-end/42898
20086         * gimplify.c (gimplify_init_constructor): For volatile LHS
20087         initialize a temporary.
20088
20089 2010-01-31  Matthias Klose  <doko@ubuntu.com>
20090
20091         * configure.ac: Fix __stack_chk_fail check for cross builds configured
20092         --with-headers
20093         * configure: Regenerate.
20094
20095 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
20096
20097         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20098         the same alias set and their sizes different constantness.
20099         (aliasing_component_refs_p): Revert 2009-10-24 change.
20100
20101 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20102
20103         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
20104         unused.
20105
20106 2010-01-29  Richard Guenther  <rguenther@suse.de>
20107
20108         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
20109         Assert we successfully updated the call.
20110
20111 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
20112
20113         PR rtl-optimization/42889
20114         * df.h (df_set_bb_dirty_nonlr): New prototype.
20115         * df-core.c (df_set_bb_dirty_nonlr): New function.
20116         * df-scan.c (df_insn_rescan): Call it instead of
20117         df_set_bb_dirty for DEBUG_INSNs.
20118
20119 2010-01-29  Richard Guenther  <rguenther@suse.de>
20120
20121         PR middle-end/37448
20122         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
20123         quadratic behavior in most cases.
20124
20125 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
20126
20127         PR target/42891
20128         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
20129         in the call to gen_x86_movsicc_0_m1.
20130
20131 2010-01-28  Richard Guenther  <rguenther@suse.de>
20132
20133         PR tree-optimization/42871
20134         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
20135
20136 2010-01-28  Richard Guenther  <rguenther@suse.de>
20137
20138         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
20139         into call arguments.
20140
20141 2010-01-28  Richard Guenther  <rguenther@suse.de>
20142
20143         PR middle-end/42883
20144         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
20145         the forwarder if the destination is an EH landing pad.
20146
20147 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
20148
20149         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
20150         block list passed to gimple_duplicate_sese_tail.
20151         (parallelize_loops): Avoid parallelization when the function
20152         has_nonlocal_label.
20153         Avoid parallelization when the preheader is IRREDUCIBLE.
20154         Try to optimize when estimated_loop_iterations_int is unresolved.
20155         Add the loop's location to the dump file.
20156         * tree-cfg.c (add_phi_args_after_redirect): Remove.
20157         (gimple_duplicate_sese_tail): Remove the check for the latch.
20158         Redirect nexits to the exit block.
20159         Remove handling of the incoming edges to the latch.
20160         Redirect the backedge from the copied latch to the exit bb.
20161
20162 2010-01-28  Michael Matz  <matz@suse.de>
20163
20164         PR target/42881
20165         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
20166         Wrap force_reg into a sequence, emit it before user.
20167
20168 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
20169
20170         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
20171         (arm_rev): New.
20172         (arm_legacy_rev): Likewise.
20173         (thumb_legacy_rev): Likewise.
20174
20175 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
20176
20177         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
20178         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
20179         on MEM's address failed, try avoid_constant_pool_reference and
20180         recurse if it returned something different.
20181         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
20182         address, try avoid_constant_pool_reference and recurse if it
20183         returned something different.
20184         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
20185         address and avoid_constant_pool_reference returned something
20186         different, don't set have_address.
20187
20188 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
20189
20190         PR debug/42861
20191         * var-tracking.c (val_store): Add modified argument, obey it.
20192         Adjust callers.
20193         (count_uses): Move down logging of main.
20194         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
20195         don't need resolution.
20196         (emit_notes_in_bb): Likewise.
20197
20198 2010-01-27  Richard Guenther  <rguenther@suse.de>
20199
20200         PR middle-end/42878
20201         * tree-inline.c (remap_decl): Delay remapping of SSA name
20202         default definitions until we need them.
20203
20204 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
20205
20206         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20207         (rs6000_delegitimize_address): New function.
20208
20209         * config/s390/s390.c (s390_delegitimize_address): Call
20210         delegitimize_mem_from_attrs.
20211
20212         PR middle-end/42874
20213         * tree-inline.c (cannot_copy_type_1): Removed.
20214         (copy_forbidden): Don't forbid copying of functions containing
20215         records/unions with variable length fields.
20216
20217 2010-01-27  Christian Bruel  <christian.bruel@st.com>
20218
20219         Revert:
20220         PR target/42841
20221         * config/sh/sh.c (find_barrier): Increase length for non delayed
20222         conditional branches.
20223
20224 2010-01-27  Matthias Klose  <doko@ubuntu.com>
20225
20226         * configure.ac (gnu-unique-object): Fix ldd version check.
20227         * configure: Regenerate.
20228
20229 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20230
20231         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
20232         HAVE_GNU_AS value.
20233         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
20234         Test for HAVE_GNU_AS value.
20235
20236 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20237
20238         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
20239         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
20240         INT64_TYPE): Define.
20241         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
20242         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
20243         INT_LEAST64_TYPE): Define.
20244         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
20245         UINT_LEAST64_TYPE): Define.
20246         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
20247         INT_FAST64_TYPE): Define.
20248         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
20249         UINT_FAST64_TYPE): Define.
20250         (INTMAX_TYPE, UINTMAX_TYPE): Define.
20251         (INTPTR_TYPE, UINTPTR_TYPE): Define.
20252         (SIG_ATOMIC_TYPE): Define.
20253
20254 2010-01-26  Richard Guenther  <rguenther@suse.de>
20255
20256         * df-scan.c (df_scan_set_bb_info): Remove assert.
20257         (df_insn_rescan_debug_internal): Merge asserts.
20258         (df_install_ref): Likewise.
20259         (df_mark_reg): Use bitmap_set_range.
20260         (df_hard_reg_used_p): Remove assert.
20261         (df_hard_reg_used_count): Likewise.
20262
20263 2010-01-26  Richard Guenther  <rguenther@suse.de>
20264
20265         PR rtl-optimization/42685
20266         * web.c (web_main): Ignore DEBUG_INSNs.
20267
20268 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
20269
20270         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
20271
20272         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
20273         Fix types of fndecl and arglist parameters.
20274
20275 2010-01-26  Richard Guenther  <rguenther@suse.de>
20276
20277         PR middle-end/42806
20278         * tree-eh.c (unsplit_eh): Skip debug insns.
20279
20280 2010-01-26  Richard Guenther  <rguenther@suse.de>
20281
20282         PR tree-optimization/42250
20283         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
20284
20285 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
20286
20287         PR fortran/42866
20288         * omp-low.c (expand_omp_sections): Only use single_pred if
20289         l2_bb is single_pred_p.
20290
20291 2010-01-25  Christian Bruel  <christian.bruel@st.com>
20292
20293         PR target/42841
20294         * config/sh/sh.c (find_barrier): Increase length for non delayed
20295         conditional branches.
20296         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
20297
20298 2010-01-24  David S. Miller  <davem@davemloft.net>
20299
20300         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
20301         define if not using GAS.
20302         * config/sparc/sparc.c (sparc_elf_asm_named_section):
20303         Likewise.  Delete SECTION_MERGE code, which is only applicable
20304         when using GAS.
20305
20306 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
20307
20308         PR c++/42748
20309         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
20310         mangling of va_list in system headers.
20311
20312 2010-01-23  Toon Moene  <toon@moene.org>
20313
20314         * tree-predcom.c (combine_chains): Return NULL, not false.
20315
20316 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
20317
20318         * tree-loop-distribution.c (distribute_loop): Fix declaration and
20319         initialization of variable res to agree with return type.
20320
20321 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
20322
20323         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
20324         * tree-sra.c: Add include of expr.h.
20325
20326 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
20327
20328         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
20329         insert the debug stmt on the single non-EH edge from the stmt.
20330
20331 2010-01-22  Richard Henderson  <rth@redhat.com>
20332
20333         PR tree-opt/42833
20334         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
20335         the RHS until after generate_subtree_copies has insertted its
20336         code before the current statement.
20337
20338 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
20339
20340         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
20341
20342         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
20343
20344 2010-01-21  Martin Jambor  <mjambor@suse.cz>
20345
20346         PR tree-optimization/42585
20347         * tree-sra.c (struct access): New field grp_total_scalarization.
20348         (dump_access): Dump the new field.
20349         (should_scalarize_away_bitmap): New variable.
20350         (cannot_scalarize_away_bitmap): Likewise.
20351         (sra_initialize): Allocate new bitmaps.
20352         (sra_deinitialize): Free new bitmaps.
20353         (create_access_1): New function.
20354         (create_access): Parts moved to create_access_1.
20355         (type_consists_of_records_p): New function.
20356         (completely_scalarize_record): Likewise.
20357         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
20358         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
20359         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
20360         access.
20361         (analyze_all_variable_accesses): Completely scalarize small eligible
20362         records.
20363
20364 2010-01-21  Martin Jambor  <mjambor@suse.cz>
20365
20366         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
20367
20368 2010-01-21  Andrew Haley  <aph@redhat.com>
20369
20370         * gcc.c (process_command): Move lang_specific_driver before
20371         setting cc_libexec_prefix.
20372
20373 2010-01-21  Richard Guenther  <rguenther@suse.de>
20374
20375         PR middle-end/19988
20376         * fold-const.c (negate_expr_p): Pretend only negative
20377         real constants are easily negatable.
20378
20379 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
20380             Jason Merrill  <jason@redhat.com>
20381
20382         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
20383         (TYPE_TRANSPARENT_AGGR): this, for union and record.
20384         * calls.c (initialize argument_information): Handle it.
20385         * c-common.c (handle_transparent_union_attribute): Use new name.
20386         * c-decl.c (finish_struct): Ditto.
20387         * c-typeck.c (type_lists_compatible_p): Ditto.
20388         (convert_for_assignment): Use new name and also handle record.
20389         * function.c (aggregate_value_p): Handle it.
20390         (pass_by_reference): Ditto.
20391         (assign_parm_data_types): Ditto.
20392         * print-tree.c (print_node): Ditto.
20393         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
20394         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
20395         * tree.c (first_field): New fn.
20396
20397 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
20398
20399         PR target/42818
20400         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
20401         even when linking statically, for now.
20402
20403 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
20404
20405         PR debug/42715
20406         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
20407         without a cselib val.
20408         (count_uses): Accept MO_VAL_SET with no val on stores.
20409         (add_stores): Likewise.
20410
20411 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20412
20413         * var-tracking.c (check_value_val): Add a compile time assertion.
20414         (dv_is_decl_p): Simplify.
20415         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
20416         gcc_assert if ENABLE_CHECKING.
20417
20418 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
20419
20420         PR debug/42782
20421         * var-tracking.c: Include tree-flow.h.
20422         (mem_dies_at_call): New.
20423         (dataflow_set_preserve_mem_locs): Use it.
20424         (dataflow_set_remove_mem_locs): Likewise.
20425         (dump_var): Renamed from dump_variable.  Adjust all callers.
20426         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
20427         * Makefile.in (var-tracking.o): Adjust deps.
20428
20429 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
20430
20431         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
20432
20433 2010-01-20  Richard Guenther  <rguenther@suse.de>
20434
20435         PR tree-optimization/42717
20436         * tree-ssa-dce.c (get_live_post_dom): Remove.
20437         (forward_edge_to_pdom): Take an arbitrary edge to copy
20438         degenerate PHI args from.
20439         (remove_dead_stmt): Use the first post-dominator even if it
20440         does not contain live statements as redirection destination.
20441
20442 2010-01-20  Richard Guenther  <rguenther@suse.de>
20443
20444         * tree-inline.c (estimate_num_insns): Handle EH builtins.
20445
20446 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20447
20448         * sel-sched.c (create_speculation_check): Remove set but not used
20449         variable twin.
20450         (try_transformation_cache): Remove set but not used variable ds.
20451         (calculate_privileged_insns): Remove set but not used variables
20452         cur_insn and min_spec_insn.
20453         (find_best_expr): Remove set but not used variable avail_n.
20454         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
20455         variable e.
20456         * cgraphunit.c (assemble_thunk): Remove set but not used variable
20457         false_label.
20458         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
20459         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
20460         new_scop_exit_edge.
20461
20462 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
20463
20464         PR bootstrap/42786
20465         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
20466         cpu types.  Add support for *-sse3 cpu types.
20467         (x86_64-*-*): Ditto.
20468
20469 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20470
20471         PR middle-end/42803
20472         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
20473         argument, call initializer_constant_valid_p_1 instead of
20474         initializer_constant_valid_p, pass CACHE to it, return NULL
20475         immediately if first call returns NULL.
20476         (initializer_constant_valid_p_1): New function.
20477         (initializer_constant_valid_p): Use it.
20478
20479 2010-01-20  Thomas Quinot  <quinot@adacore.com>
20480
20481         * tree.def (PLACEHOLDER_EXPR): Fix comment.
20482
20483 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
20484
20485         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
20486         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
20487         (loc_list_from_tree): Don't handle unsigned division.  Handle
20488         signed modulo using DW_OP_{over,over,div,mul,minus}.
20489         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
20490         modulo instead of signed.
20491
20492 2010-01-20  DJ Delorie  <dj@redhat.com>
20493
20494         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
20495         (Fpa): Pass it
20496         (h8300_emit_stack_adjustment): Propogate it.
20497         (push): Pass it.
20498         (h8300_expand_prologue): Likewise.
20499         (h8300_expand_epilogue): Likewise.
20500
20501 2010-01-19  Michael Matz  <matz@suse.de>
20502
20503         PR tree-optimization/41783
20504         * tree-data-ref.c (toplevel): Include flags.h.
20505         (dump_data_dependence_relation):  Also dump the inputs if the
20506         result will be unknown.
20507         (split_constant_offset_1): Look through some conversions.
20508         * tree-predcom.c (determine_roots_comp): Restart a new chain if
20509         the offset from last element is too large.
20510         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
20511         (reassociate_to_the_same_stmt): Handle vector registers.
20512         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
20513         (e.g. conversions).
20514         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
20515         wide_prolog_niters argument, emit widening instructions.
20516         (vect_do_peeling_for_alignment): Adjust caller, use widened
20517         variant of the iteration cound.
20518         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
20519
20520 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20521
20522         PR target/38697
20523         * config/arm/neon-testgen.m (emit_automatics): New parameter
20524         features. Adjust for Fixed_return_reg feature.
20525         (test_intrinsic): Call emit_automatics with new feature.
20526         * config/arm/neon.ml: Update copyright years.
20527         (features): New Fixed_return_reg feature.
20528         (ops): Update feature for Vget_low.
20529
20530 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
20531
20532         PR tree-optimization/42719
20533         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
20534         stmt uses.
20535
20536         PR debug/42728
20537         * fwprop.c (all_uses_available_at): Return false if def_set dest
20538         is a REG that is used in def_insn.
20539
20540 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
20541
20542         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
20543
20544         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
20545         Add argument names.
20546
20547         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
20548
20549         * target.h (struct gcc_target) <secondary_reload>: Change type
20550         of last argument to secondary_reload_info *.
20551
20552 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
20553
20554         PR target/42774
20555         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
20556         memory references with unaligned offsets.  Remove CQImode handling.
20557         (unaligned_memory_operand): Return 1 for memory references with
20558         unaligned offsets.  Remove CQImode handling.
20559
20560 2010-01-18  Richard Guenther  <rguenther@suse.de>
20561
20562         PR middle-end/39954
20563         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
20564         builtin calls.
20565
20566 2010-01-18  Richard Guenther  <rguenther@suse.de>
20567
20568         PR tree-optimization/42781
20569         * tree-ssa-structalias.c (find_what_var_points_to): Skip
20570         restrict processing only if the original variable was artificial.
20571
20572 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
20573
20574         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
20575         find number of popped argument bytes.
20576
20577         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
20578         Fix the text that describes the return value for invalid insns.
20579
20580         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
20581
20582         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
20583         Clarify what 'cost of the -dependence' is.  Fix quoting.
20584
20585         * toplev.c (default_get_pch_validity): Rename argument to "sz".
20586         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
20587
20588 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
20589
20590         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
20591         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
20592
20593 2010-01-17  Richard Guenther  <rguenther@suse.de>
20594
20595         PR middle-end/42248
20596         * function.c (split_complex_args): Take a VEC to modify.
20597         (assign_parms_augmented_arg_list): Build a VEC instead of
20598         a chain of PARM_DECLs.
20599         (assign_parms_unsplit_complex): Take a VEC of arguments.
20600         Do not fixup unmodified parms.
20601         (assign_parms): Deal with the VEC.
20602         (gimplify_parameters): Likewise.
20603
20604 2010-01-17  Richard Guenther  <rguenther@suse.de>
20605
20606         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
20607         node existence check.
20608         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
20609         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
20610         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
20611         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
20612         (gimple_execute_on_growing_pred): Likewise.
20613
20614 2010-01-17  Richard Guenther  <rguenther@suse.de>
20615
20616         PR tree-optimization/42773
20617         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
20618         (compute_antic_aux): Likewise.
20619         (compute_partial_antic_aux): Likewise.
20620
20621 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
20622
20623         PR debug/42767
20624         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
20625         and US_TRUNCATE.
20626
20627 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
20628
20629         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
20630         appearance.
20631
20632         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
20633         Fix markup for strict argument.
20634
20635         (TARGET_SCHED_REORDER2): Fix argument types.
20636
20637         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
20638         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
20639
20640         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
20641         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
20642
20643         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
20644         Add argument name.
20645
20646         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
20647         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
20648         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
20649         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
20650         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
20651
20652         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
20653
20654         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
20655
20656         (TARGET_ASM_RELOC_RW_MASK): Add return type.
20657         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
20658
20659         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
20660
20661         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
20662         Use prototype.
20663
20664         (TARGET_ASM_NAMED_SECTION): Fix argument list.
20665
20666         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
20667         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
20668
20669         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
20670
20671         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
20672
20673         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
20674         referring to it.  Fix language.
20675
20676         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
20677
20678         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
20679
20680         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
20681
20682         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
20683
20684         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
20685         '@var{stream}.  Remove stray 'and'.
20686
20687         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
20688
20689         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
20690
20691         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
20692
20693         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
20694         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
20695
20696         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
20697         Fix description of return value.
20698         Rename argument "sz" to "len."
20699
20700         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
20701         Clarify meaning of 'true' return value.
20702
20703         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
20704
20705         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
20706         rep_mode versus mode_rep.
20707
20708         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
20709
20710         (TARGET_BUILTIN_DECL): Fix name.
20711
20712         (TARGET_COMMUTATIVE_P): Fix type of first argument.
20713
20714         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
20715
20716         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
20717
20718         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
20719
20720         (TARGET_RELAXED_ORDERING): Use @deftypevr.
20721
20722         (TARGET_GET_DRAP_RTX): Note that this is a hook.
20723         Clarify language.
20724
20725         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
20726         Rename argument tm_fn to md_fn.
20727
20728         (TARGET_OPTION_PRINT): Fix argument list.
20729
20730 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
20731
20732         PR target/42664
20733         * config/i386/i386.c (ix86_fixup_binary_operands):
20734         Revert FMA4 fixup of operands.
20735
20736 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20737
20738         PR gcc/42525
20739         * Makefile.in (write_entries_to_file, install-plugin):
20740         Use \012 instead of \n with tr.
20741
20742 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
20743
20744         * configure.ac (HAVE_AS_REF): New C macro.
20745         * configure: Regenerate.
20746         * config.in: Likewise.
20747         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
20748         if HAVE_AS_REF.
20749         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
20750         if HAVE_AS_REF.
20751
20752 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
20753
20754         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
20755
20756         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
20757
20758         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
20759
20760         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
20761
20762         (TARGET_IN_SMALL_DATA_P): Fix argument type.
20763
20764         (TARGET_BINDS_LOCAL_P): Fix argument type.
20765
20766         (TARGET_ASM_FILE_END): Use prototype.
20767
20768         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
20769
20770         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
20771
20772         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
20773
20774         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
20775
20776         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
20777         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
20778
20779         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
20780         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
20781
20782         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
20783         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
20784         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
20785         (TARGET_ADDR_SPACE_CONVERT): Likewise.
20786
20787         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
20788
20789         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
20790
20791         (TARGET_INIT_BUILTINS): Use prototype.
20792
20793         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
20794         Put 'const char *' in braces.  Fix parameter types.
20795         (TARGET_INVALID_CONVERSION): Fix parameter types.
20796         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
20797         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
20798
20799         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
20800         Fix argument type.
20801
20802         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
20803
20804         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
20805
20806 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
20807
20808         * doc/tm.texi (TARGET_HELP): Fix return type.
20809
20810         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
20811         in braces.  Fix argument types.
20812
20813         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
20814
20815         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
20816
20817         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
20818
20819         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
20820         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
20821
20822         (TARGET_MANGLE_TYPE): Fix argument types.
20823
20824         (TARGET_IRA_COVER_CLASSES): Use prototype.
20825
20826         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
20827
20828         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
20829
20830         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
20831
20832         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
20833
20834         (TARGET_CALLEE_COPIES): Fix argument types.
20835
20836         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
20837
20838         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
20839
20840         (TARGET_FUNCTION_VALUE): Fix argument types.
20841
20842         (TARGET_RETURN_IN_MSB): Fix argument type.
20843
20844         (TARGET_RETURN_IN_MEMORY): Fix argument types.
20845
20846         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
20847
20848         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
20849
20850         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
20851         agree with return type.
20852
20853         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
20854
20855 2010-01-15  Jing Yu  <jingyu@google.com>
20856
20857         PR rtl-optimization/42691
20858         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
20859         a pseudo to a constant and are merged, and adjust comments.
20860
20861 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
20862
20863         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
20864
20865 2010-01-15  Richard Guenther  <rguenther@suse.de>
20866
20867         PR middle-end/42739
20868         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
20869         labels of computed or non-local gotos to the destination.
20870         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
20871         landing pad label is the first label.
20872
20873 2010-01-15  Richard Guenther  <rguenther@suse.de>
20874
20875         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
20876
20877 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20878
20879         PR target/42747
20880         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
20881         to allow generation of the xssqrtdp instruction on power7.
20882         (sqrtdf2_fpr): Ditto.
20883
20884 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20885
20886         PR middle-end/42674
20887         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
20888         functions with noreturn attribute.
20889
20890         PR c++/42608
20891         * varasm.c (declare_weak): Add weak attribute to decl if it
20892         doesn't have one already.
20893         (assemble_external): Only add decls to weak_decls if they also
20894         have weak attribute.
20895
20896 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
20897
20898         * var-tracking.c (var_reg_delete): Don't delete the association
20899         between REGs and values or one-part variables if the register
20900         isn't clobbered.
20901
20902 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20903
20904         PR debug/42657
20905         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
20906         because its first operand is a non-localized variable.
20907
20908 2010-01-14  Martin Jambor  <mjambor@suse.cz>
20909
20910         PR tree-optimization/42706
20911         * tree-sra.c (encountered_recursive_call): New variable.
20912         (encountered_unchangable_recursive_call): Likewise.
20913         (sra_initialize): Initialize both new variables.
20914         (callsite_has_enough_arguments_p): New function.
20915         (scan_function): Call decl and flags check only for IPA-SRA, check
20916         whether there is a recursive call and whether it has enough arguments.
20917         (all_callers_have_enough_arguments_p): New function.
20918         (convert_callers): Look for recursive calls only when
20919         encountered_recursive_call is set.
20920         (ipa_early_sra): Bail out either if
20921         !all_callers_have_enough_arguments_p or
20922         encountered_unchangable_recursive_call.
20923
20924 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20925
20926         * sel-sched.c: Add 2010 to copyright years.
20927         * sel-sched-ir.c: Likewise.
20928         * sel-sched-ir.h: Likewise.
20929
20930 2010-01-14  Martin Jambor  <mjambor@suse.cz>
20931
20932         PR tree-optimization/42714
20933         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
20934         constructors specially.
20935
20936 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20937
20938         * config/i386/drivers-i386.c (detect_caches_intel):
20939         Add l2sizekb parameter and fill in.
20940         (host_detect_local_cpu): Add l2sizekb, fill in.
20941         Add Atom small cache heuristic.
20942
20943 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20944
20945         * config/i386/drivers-i386.c (detect_caches_cpuid4):
20946         Add level3 parameter and fill in.
20947         (detect_caches_intel): Handle level3 cache.
20948
20949 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20950
20951         * config/i386/drivers-i386.c (host_detect_local_cpu):
20952         Fix core duo detection.
20953
20954 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20955
20956         * config/i386/drivers-i386.c (host_detect_local_cpu):
20957         Fix Atom detection.
20958
20959 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20960
20961         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
20962         (rs6000_variable_issue_1): this.  Use...
20963         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
20964
20965 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20966
20967         * sel-sched-ir.c (sel_restore_other_notes): Rename to
20968         sel_restore_notes.  Update all callers.  Call reemit_notes
20969         for all insns.
20970
20971 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20972
20973         PR rtl-optimization/42246
20974         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
20975         loops.
20976
20977 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20978
20979         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
20980         all successors is the same as number of successors in current region.
20981
20982 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20983
20984         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
20985         to rename is not separable.  Otherwise check that its LHS is not NULL.
20986
20987 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20988
20989         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
20990
20991 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20992
20993         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
20994         available registers when failed to discover LHS register class.
20995         Fix indentation.  Update comment.
20996
20997 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20998             Alexander Monakov  <amonakov@ispras.ru>
20999
21000         PR rtl-optimization/42389
21001         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
21002         to can_issue_more.
21003         (advance_state_on_fence): Likewise.
21004         (sel_target_adjust_priority): Print debug output only when
21005         sched_verbose >= 4, not 2.
21006         (get_expr_cost): Do not issue all unique insns on the next cycle.
21007         (fill_insns): Initialize can_issue_more from the value saved
21008         with the fence.
21009         * sel-sched-ir.c (flist_add): New parameter issue_more.
21010         Init FENCE_ISSUE_MORE with it.
21011         (merge_fences): Likewise.
21012         (init_fences): Update call to flist_add.
21013         (add_to_fences, add_clean_fence_to_fences)
21014         (add_dirty_fence_to_fences): Likewise.
21015         (move_fence_to_fences): Update call to merge_fences.
21016         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
21017         sched groups.
21018         * sel-sched-ir.h (struct _fence): New field issue_more.
21019         (FENCE_ISSUE_MORE): New accessor macro.
21020
21021 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21022
21023         PR rtl-optimization/42388
21024         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
21025         that have no predecessors nor successors.  Do not call move_bb_info
21026         for empty blocks outside of current region.
21027
21028 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21029
21030         PR rtl-optimization/42294
21031         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
21032         * sel-sched.c (move_exprs_to_boundary): Transitively add all
21033         originators' originators.
21034
21035 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21036
21037         PR rtl-optimization/39453
21038         PR rtl-optimization/42246
21039         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
21040         for pipelining_p.
21041         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
21042
21043 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21044             Alexander Monakov  <amonakov@ispras.ru>
21045
21046         PR middle-end/42245
21047         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
21048         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
21049         argument.  Update all callers.
21050         (tidy_control_flow): ... and here.  Recompute topological order
21051         of basic blocks in region if necessary.
21052         (sel_redirect_edge_and_branch): Change return type.  Return true
21053         if topological order might have been invalidated.
21054         (purge_empty_blocks): Export and move from...
21055         * sel-sched.c (purge_empty_blocks): ... here.
21056         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
21057         (maybe_tidy_empty_bb): Delete prototype.
21058         (purge_empty_blocks): Declare.
21059
21060 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21061
21062         PR rtl-optimization/42249
21063         * sel-sched.c (try_replace_dest_reg): When chosen register
21064         and original register is the same, do not bail out early, but
21065         still check all original insns for validity of replacing destination
21066         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
21067         in this case.
21068
21069 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21070
21071         PR c/42721
21072         Port from no-undefined-overflow branch:
21073         2009-03-09  Richard Guenther  <rguenther@suse.de>
21074
21075         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
21076
21077 2010-01-14  Richard Guenther  <rguenther@suse.de>
21078
21079         PR lto/42665
21080         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
21081
21082 2010-01-14  Ira Rosen  <irar@il.ibm.com>
21083
21084         PR tree-optimization/42709
21085         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
21086         as scalar type in creation of constant vector operand.
21087
21088 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21089
21090         PR testsuite/42414
21091         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
21092         (check-parallel-%): Match `testsuite' directory component only
21093         at the end.
21094
21095 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
21096
21097         PR translation/39521
21098         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
21099         strings with _().
21100
21101 2010-01-13  Richard Guenther  <rguenther@suse.de>
21102
21103         PR tree-optimization/42730
21104         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
21105         offset zero.
21106
21107 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
21108
21109         PR target/pr42542
21110         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
21111         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
21112         them signed.
21113
21114 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
21115
21116         * config/bfin/libgcc-bfin.ver: Regenerate based on current
21117         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
21118         ___umulsi3_highpart.
21119
21120         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
21121         rather than schedule_insns if the pass is enabled.
21122
21123 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21124
21125         PR tree-optimization/42704
21126         * tree-sra.c (sra_modify_assign): Do not delete assignments to
21127         SSA_NAMEs.
21128
21129 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21130
21131         PR tree-optimization/42703
21132         * tree-sra.c (analyze_access_subtree): Check that we can build a
21133         reference to the original data within the aggregate.
21134
21135 2010-01-13  Richard Guenther  <rguenther@suse.de>
21136
21137         PR tree-optimization/42705
21138         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
21139
21140 2010-01-13  Richard Guenther  <rguenther@suse.de>
21141
21142         PR middle-end/42716
21143         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
21144
21145 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21146
21147         PR debug/41371
21148         * var-tracking.c (values_to_unmark): New variable.
21149         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21150         values_to_unmark vector.  Moved body to...
21151         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21152         instead queue it into values_to_unmark vector.
21153         (vt_find_locations): Free values_to_unmark vector.
21154
21155 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
21156
21157         * config/s390/s390.c (override_options): Set
21158         default of max-pending-list-length to 256
21159
21160 2010-01-13  Richard Guenther  <rguenther@suse.de>
21161
21162         PR lto/42678
21163         * tree-pass.h (PROP_gimple_lcx): New.
21164         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
21165         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
21166         before the final cleanup_eh.
21167         (dump_properties): Dump PROP_gimple_lcx.
21168         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
21169         (tree_lower_complex_O0): Remove.
21170         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
21171         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
21172         tree_lower_complex, schedule TODO_update_ssa.
21173         * lto-streamer-out.c (output_function): Stream the functions
21174         properties.
21175         * lto-streamer-in.c (input_function): Likewise.
21176         (lto_read_body): Do not override them here.
21177
21178 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
21179
21180         PR c/42708
21181         * c-typeck.c (build_c_cast): Fold value cast to union type before
21182         wrapping it in a CONSTRUCTOR.
21183
21184 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
21185
21186         PR rtl-optimization/42699
21187         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
21188         involved.
21189
21190 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21191
21192         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21193         SUBTARGET_WARN_UNUSED_SPEC): Move ...
21194         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21195         SUBTARGET_WARN_UNUSED_SPEC): ... here
21196         * config/mips/iris5.h (LIBGCC_SPEC): Define.
21197
21198 2010-01-12  Julian Brown  <julian@codesourcery.com>
21199
21200         * config/arm/neon-schedgen.ml (Utils): Don't try to
21201         open missing module.
21202         (find_with_result): New.
21203
21204 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
21205
21206         PR debug/42662
21207         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
21208         sharing when canonicalizing ({lt,ge}u (plus a b) b).
21209
21210         PR tree-optimization/42645
21211         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
21212         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
21213         decl_map, set processing_debug_stmt to -1 and return name without
21214         any remapping.
21215
21216 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
21217
21218         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
21219         binutils version, and reword target configuration description.
21220
21221 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
21222
21223         * config/avr/avr.h (LINKER_NAME): Remove.
21224
21225 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
21226
21227         PR target/42416
21228         * config/rs6000/rs6000.c (rs6000_override_options): On targets
21229         that support VSX, warn for -mno-altivec if vsx is not disabled,
21230         and disable vsx.
21231
21232 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
21233             Shujing Zhao  <pearly.zhao@oracle.com>
21234
21235         PR translation/42469
21236         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
21237         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
21238         character between option name and help text.
21239         * c.opt (imultilib): Likewise.
21240
21241 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
21242
21243         * lto-streamer-out.c (output_unreferenced_globals): Output static
21244         variables.
21245
21246 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
21247
21248         PR rtl-optimization/42621
21249         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
21250         optimizing for size.
21251         (duplicate_computed_gotos): Remove now-redundant check.
21252
21253 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
21254
21255         PR target/37454
21256         * configure.ac: Save and restore LDFLAGS and LIBS
21257         * configure: Regenerate.
21258
21259 2010-01-10  Richard Guenther  <rguenther@suse.de>
21260
21261         PR middle-end/42667
21262         * builtins.c (fold_builtin_strlen): Add type argument and
21263         convert the resulting length to it.
21264         (fold_builtin_1): Adjust.
21265
21266 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
21267
21268         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
21269         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
21270         1 insn.
21271         (num_insns_constant_wide): Adjust for that change.
21272
21273 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21274
21275         PR debug/42631
21276         * web.c (union_defs): Add used argument, to combine uses of
21277         uninitialized regs.
21278         (entry_register): Adjust type and tests of used argument.
21279         (web_main): Widen used for new use.  Pass it to union_defs.
21280         * df.h (union_defs): Adjust prototype.
21281
21282 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21283
21284         PR debug/42630
21285         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
21286         uses in new incoming argument.  Free body.
21287         (reset_debug_uses_in_loop): New.
21288         (analyze_insn_to_expand_var): Call the latter if the former found
21289         anything.  Fix whitespace.  Reject invalid dest overlaps before
21290         going through all insns in the loop.
21291
21292 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21293
21294         PR debug/42629
21295         * haifa-sched.c (dying_use_p): Debug insns don't count.
21296
21297 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21298
21299         PR middle-end/42363
21300         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
21301         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
21302         (verify_gimple_call): Reject LHS in noreturn calls.
21303
21304 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21305
21306         PR debug/42604
21307         PR debug/42395
21308         * tree-vect-loop-manip.c (adjust_info): New type.
21309         (adjust_vec): New pointer to vector.
21310         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
21311         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
21312         (slpeel_update_phis_for_duplicate_loop): Use them.
21313         (slpeel_update_phi_nodes_for_guard1): Likewise.
21314         (slpeel_update_phi_nodes_for_guard2): Likewise.
21315         (slpeel_tree_peel_loop_to_edge): Likewise.
21316         (vect_update_ivs_after_vectorizer): Likewise.
21317
21318 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21319
21320         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
21321         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
21322
21323 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
21324
21325         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
21326         bogus uninitialized warning.
21327
21328 2010-01-09  Richard Guenther  <rguenther@suse.de>
21329
21330         PR middle-end/42512
21331         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
21332         the evolution is compatible with the initial condition.
21333
21334 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
21335
21336         * gcc.c (process_command): Update copyright notice dates.
21337         * gcov.c (print_version): Likewise.
21338         * gcov-dump.c (print_version): Likewise.
21339         * mips-tfile.c (main): Likewise.
21340         * mips-tdump.c (main): Likewise.
21341
21342 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
21343
21344         PR target/41885
21345         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
21346         (rotlhi3): Delete.
21347         (rotlhi3_8): Delete.
21348         (rotlsi3): Delete.
21349         (rotlsi3_8): Delete.
21350         (rotlsi3_16): Delete.
21351         (rotlsi3_24): Delete.
21352         (rotl<mode>3): New.
21353         (*rotw<mode>3): New.
21354         (*rotb<mode>3): New.
21355         * config/avr/avr.c (avr_rotate_bytes): New function.
21356         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
21357
21358 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
21359
21360         PR target/37454
21361         * configure.ac: Modify -rdynamic check.
21362         * configure: Regenerate.
21363
21364 2010-01-08  DJ Delorie  <dj@redhat.com>
21365
21366         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
21367         register popping order.
21368
21369 2010-01-08  Richard Guenther  <rguenther@suse.de>
21370
21371         PR lto/42528
21372         * c.opt (fsigned-char): Also let LTO handle this option.
21373         (funsigned-char): Likewise.
21374
21375 2010-01-07  Richard Guenther  <rguenther@suse.de>
21376
21377         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
21378         (gimple_op): Likewise.
21379         (gimple_op_ptr): Likewise.
21380         (gimple_assign_set_lhs): Remove gcc_assert.
21381         (gimple_assign_set_rhs1): Likewise.
21382         (gimple_assign_set_rhs2): Likewise.
21383         (gimple_call_set_lhs): Likewise.
21384         (gimple_call_set_fn): Likewise.
21385         (gimple_call_set_fndecl): Likewise.
21386         (gimple_call_fndecl): Likewise.
21387         (gimple_call_return_type): Likewise.
21388         (gimple_call_set_chain): Likewise.
21389         (gimple_call_num_args): Likewise.
21390         (gimple_call_set_arg): Likewise.
21391         (gimple_cond_set_code): Likewise.
21392         (gimple_cond_set_lhs): Likewise.
21393         (gimple_cond_set_rhs): Likewise.
21394         (gimple_cond_set_true_label): Likewise.
21395         (gimple_cond_set_false_label): Likewise.
21396         (gimple_label_set_label): Likewise.
21397         (gimple_goto_set_dest): Likewise.
21398         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
21399         (gimple_debug_bind_get_value): Likewise.
21400         (gimple_debug_bind_get_value_ptr): Likewise.
21401         (gimple_debug_bind_set_var): Likewise.
21402         (gimple_debug_bind_set_value): Likewise.
21403         (gimple_debug_bind_reset_value): Likewise.
21404         (gimple_debug_bind_has_value_p): Likewise.
21405         (gimple_return_retval_ptr): Remove gcc_assert.
21406         (gimple_return_retval): Likewise.
21407         (gimple_return_set_retval): Likewise.
21408         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
21409         (safe_referenced_var_iterator): Remove.
21410         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
21411         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
21412         (fill_referenced_var_vec): Remove.
21413         (first_readonly_imm_use): Remove redundant gcc_assert.
21414         (phi_arg_index_from_use): Combine gcc_asserts.
21415         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
21416         (first_imm_use_stmt): Remove redundant gcc_assert.
21417         * tree-cfg.c (verify_gimple_call): Verify function and chain
21418         operands.  Verify arguments.
21419         (verify_types_in_gimple_stmt): Verify condition code and labels.
21420
21421 2010-01-07  Richard Guenther  <rguenther@suse.de>
21422
21423         PR tree-optimization/42641
21424         * sese.c (rename_map_elt_info): Use the SSA name version, do
21425         not hash pointers.
21426
21427 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
21428
21429         PR tree-optimization/42625
21430         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
21431         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
21432
21433 2010-01-07  Duncan Sands  <baldrick@free.fr>
21434
21435         * Makefile.in (PLUGIN_HEADERS): Add version.h.
21436
21437 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
21438
21439         PR target/42511
21440         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
21441         note itself is not function_invariant_p.
21442
21443 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
21444
21445         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
21446         Do not add the DF_NOTE problem.
21447         * store-motion.c (execute_rtl_store_motion): Likewise.
21448
21449 2010-01-07  Martin Jambor  <mjambor@suse.cz>
21450
21451         PR tree-optimization/42157
21452         * tree-sra.c (compare_access_positions): Stabilize sort if both
21453         accesses have integer types, return zero immediately if they are the
21454         same.
21455
21456 2010-01-06  Richard Henderson  <rth@redhat.com>
21457
21458         PR middle-end/41883
21459         * haifa-sched.c (add_to_note_list): Merge into ...
21460         (concat_note_lists): ... here, and ...
21461         (unlink_other_notes, rm_other_notes): Merge into...
21462         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
21463         NOTE_INSN_EPILOGUE_BEG.
21464
21465 2010-01-06  Richard Guenther  <rguenther@suse.de>
21466
21467         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
21468         not inline regular functions into always-inline functions.
21469
21470 2010-01-06  Nick Clifton  <nickc@redhat.com>
21471
21472         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
21473         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
21474         used together.
21475         (OVERRIDE_OPTIONS): Delete.
21476         (OPTIMIZATION_OPTIONS): Define.
21477         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
21478         * config/rx/rx.c (rx_handle_option): Issue an error message if
21479         -mcpu=rx200 and -fpu are used together.
21480         (rx_set_optimization_options): New function.  Issue an error
21481         message if an optimization attribute attempts to reset the FPU/
21482         math optimization pairing.
21483         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
21484         * config/rx/rx.opt: Set the default to 32-bit doubles.
21485         * config/rx/t-rx: Add multilibs for -nofpu option.
21486         * doc/invoke.texi: Update documentation of RX options.
21487
21488 2010-01-06  Richard Guenther  <rguenther@suse.de>
21489
21490         * tree-ssa-pre.c (name_to_id): New global.
21491         (alloc_expression_id): Simplify SSA name handling.
21492         (lookup_expression_id): Likewise.
21493         (init_pre): Zero name_to_id.
21494         (fini_pre): Free it.
21495
21496 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
21497
21498         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
21499
21500 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
21501
21502         PR target/42542
21503         * config/i386/sse.md (smaxv2di3): New.
21504         (umaxv2di3): Likewise.
21505         (sminv2di3): Likewise.
21506         (uminv2di3): Likewise.
21507
21508 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
21509
21510         PR target/42564
21511         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
21512         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
21513         (legitimize_tls_address): Likewise.
21514         (sparc_tls_referenced_p): Likewise.
21515         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
21516         and adjust calls to legitimize_pic_address.
21517         (legitimate_constant_p) Use sparc_tls_referenced_p.
21518         (legitimate_pic_operand_p): Likewise.
21519         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
21520         (sparc_tls_symbol_ref_1): Delete.
21521         (sparc_tls_referenced_p): Make static, recognize specific patterns.
21522         (legitimize_tls_address): Make static, handle CONST patterns.
21523         (legitimize_pic_address): Make static, remove unused parameter and
21524         adjust recursive calls.
21525         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
21526         and adjust call to legitimize_pic_address.
21527         (sparc_output_mi_thunk): Likewise.
21528
21529 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
21530             H.J. Lu  <hongjiu.lu@intel.com>
21531
21532         PR target/42542
21533         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
21534         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
21535         operands to make them signed.
21536
21537         Revert:
21538         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21539
21540         PR target/42542
21541         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
21542         GTU to GT for V4SI and V2DI.
21543
21544         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
21545         (umin<mode>3): Removed.
21546         (uminv8hi3): New.
21547         (uminv4si3): Likewise.
21548
21549 2010-01-05  Martin Jambor  <mjambor@suse.cz>
21550
21551         PR tree-optimization/42462
21552         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
21553         current_function_decl to helper functions and macros.
21554
21555 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21556
21557         PR bootstrap/41771
21558         * flags.h: Don't include real.h.
21559         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
21560         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
21561         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
21562         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
21563         * dominance.c: Update copyright.
21564         * gimple.c (walk_gimple_op): Remove inline.
21565         * tree-ssa-reassoc.c: Include real.h.
21566         * Makefile.in (FLAGS_H): Remove $(REAL_H).
21567         (tree-ssa-reassoc.o): Depend on $(REAL_H).
21568
21569 2010-01-05  Nick Clifton  <nickc@redhat.com>
21570
21571         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
21572         register to push into the stack frame when the accumulator has to
21573         be saved during interrupts.
21574
21575 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
21576
21577         * doc/invoke.texi: Remove the documentation about option
21578         -Wunreachable-code.
21579         * common.opt (Wunreachable-code):  Preserved for backward
21580         compatibility.
21581         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
21582         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
21583         the backward compatibility flag section.
21584
21585 2010-01-05  Richard Guenther  <rguenther@suse.de>
21586
21587         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
21588
21589 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
21590
21591         PR other/42611
21592         * cfgexpand.c (expand_one_var): Diagnose too large variables.
21593
21594         PR tree-optimization/42508
21595         * tree-sra.c (convert_callers): Check for recursive call
21596         by comparing cgraph nodes instead of decls.
21597         (modify_function): Call ipa_modify_formal_parameters also
21598         on all same_body aliases.
21599
21600         * cgraphunit.c (cgraph_materialize_all_clones): Compare
21601         cgraph nodes when checking for same_body aliases.
21602
21603 2010-01-05  Richard Guenther  <rguenther@suse.de>
21604
21605         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
21606         allocation and lookup.
21607         (get_or_alloc_expr_for_constant): Likewise.
21608         (phi_translate): Sink allocation.
21609
21610 2010-01-04  Richard Guenther  <rguenther@suse.de>
21611
21612         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
21613         a new entry only if needed.
21614         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
21615         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
21616         hashtable lookup.
21617         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
21618         the result array.
21619         (phi_translate): Handle CONSTANTs early.
21620
21621 2010-01-04  Martin Jambor  <mjambor@suse.cz>
21622
21623         PR tree-optimization/42398
21624         * tree-sra.c (struct access): Removed flag grp_different_types.
21625         (dump_access): Do not dump the removed flag.
21626         (sort_and_splice_var_accesses): Do not set the removed flag.
21627         (sra_modify_expr): Check for type compatibility directly.
21628
21629 2010-01-04  Martin Jambor  <mjambor@suse.cz>
21630
21631         PR tree-optimization/42366
21632         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
21633         edges with variable number of parameters.
21634         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
21635         flag instead of asserting it.
21636         (ipa_read_node_info): Read uses_analysis_done flag.
21637
21638 2010-01-04  Richard Guenther  <rguenther@suse.de>
21639
21640         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
21641         iterative_hash_* as intended.
21642         (vn_reference_compute_hash): Likewise.  Simplify hashing
21643         SSA names.
21644         (vn_reference_lookup_2): Likewise.
21645         (vn_nary_op_compute_hash): Likewise.
21646         (vn_phi_compute_hash): Likewise.
21647         (expressions_equal_p): Remove strange code.
21648         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
21649         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
21650         (bitmap_insert_into_set_1): Take value-id as parameter.
21651         (add_to_value): Pass it.
21652         (bitmap_insert_into_set): Likewise.
21653         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
21654
21655 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
21656
21657         PR driver/42442
21658         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
21659         (do_self_spec): For switches with SWITCH_IGNORE set set also
21660         SWITCH_IGNORE_PERMANENTLY.
21661         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
21662         of SWITCH_IGNORE.
21663
21664 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
21665
21666         * lto-streamer-out.c (output_unreferenced_globals): Output the full
21667         tree of an unreferenced global var.
21668
21669 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21670
21671         PR target/42542
21672         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
21673         GTU to GT for V4SI and V2DI.
21674
21675         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
21676         (umin<mode>3): Removed.
21677         (uminv8hi3): New.
21678         (uminv4si3): Likewise.
21679
21680 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21681
21682         PR lto/42581
21683         * collect2.c (main): Turn on trace in collect2 if -v is passed
21684         to gcc with LTO.
21685
21686 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
21687
21688         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
21689         description of expression operand.
21690
21691 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
21692
21693         * configure.ac: Add install-html to target_list for Make-hooks.
21694         * configure: Regenerate.
21695         * fortran/Make-lang.in (F95_HTMLFILES): New.
21696         (fortran.html): Use it.
21697         (fortran.install-html): New.
21698         * Makefile.in (install-html): Add lang.install-html.
21699         * java/Make-lang.in (JAVA_HTMLFILES): New.
21700         (java.html): Use it.
21701         (java.install-html): New.
21702         * objc/Make-lang.in (objc.install-html): New.
21703         * objcp/Make-lang.in (obj-c++.install-html): New.
21704         * cp/Make-lang.in (c++.install-html): New.
21705         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
21706         * lto/Make-lang.in (lto.install-html): New.
21707
21708 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21709
21710         PR lto/42520
21711         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
21712
21713 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
21714
21715         PR rtl-optimization/41862
21716         * store-motion.c (store_killed_in_insn, compute_store_table,
21717         remove_reachable_equiv_notes, replace_store_insn,
21718         build_store_vectors): Ignore all DEBUG_INSNs.
21719
21720 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21721
21722         PR lto/41564
21723         * common.opt: Add dumpdir.
21724
21725         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
21726         isn't specified.
21727         (option_map): Add --dumpdir.
21728
21729         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
21730
21731         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
21732
21733         * opts.c (decode_options): Try dump_dir_name first if
21734         dump_base_name isn't an absolute path.
21735         (common_handle_option): Handle OPT_dumpdir.
21736
21737         * toplev.c (dump_dir_name): New.
21738         (print_switch_values): Also ignore -dumpdir.
21739
21740         * toplev.h (dump_dir_name): New.
21741
21742 2010-01-03  Richard Guenther  <rguenther@suse.de>
21743
21744         PR tree-optimization/42589
21745         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
21746         double-word expansion of bswap32.
21747
21748 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
21749
21750         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
21751         with BLOCK_FOR_INSN.
21752         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
21753         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
21754         noce_process_if_block): Likewise.
21755         * gcse.c (compute_local_properties, insert_expr_in_table,
21756         insert_set_in_table, canon_list_insert, find_avail_set,
21757         pre_insert_copy_insn): Likewise.
21758
21759         * basic-block.h (BLOCK_NUM): Move from here...
21760         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
21761
21762 2010-01-03  Richard Guenther  <rguenther@suse.de>
21763
21764         PR tree-optimization/42438
21765         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
21766         contains_may_not_return_call flag.
21767         (BB_MAY_NOTRETURN): New.
21768         (valid_in_sets): Trapping nary operations are not valid
21769         in blocks that may not return.
21770         (insert_into_preds_of_block): Remove check for trapping expressions.
21771         (compute_avail): Compute also BB_MAY_NOTRETURN.
21772
21773 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
21774
21775         * doc/invoke.texi: Add 2010 to copyright years.
21776
21777 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
21778
21779         * config/sparc/sparc.c: Fix formatting nits.
21780
21781 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
21782             Alexander Monakov  <amonakov@ispras.ru>
21783
21784         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
21785
21786 2010-01-02  Richard Guenther  <rguenther@suse.de>
21787
21788         PR middle-end/42577
21789         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
21790         (simplify_switch_using_ranges): Mark to be removed edges
21791         as non-executable.
21792
21793 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21794
21795         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
21796
21797         * collect2.c (scan_libraries): Add missing argument in call to
21798         scan_prog_file.
21799
21800 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
21801
21802         PR target/42448
21803         * config/alpha/predicates.md (aligned_memory_operand): Return false
21804         for CQImode.
21805         (unaligned_memory_operand): Return true for CQImode.
21806         * config/alpha/alpha.c (get_aligned_mem): Assert that location
21807         doesn not cross aligned SImode word boundary.
21808
21809 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
21810
21811         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
21812         Remove.
21813         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
21814         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
21815
21816 2010-01-02  Richard Guenther  <rguenther@suse.de>
21817
21818         PR lto/41597
21819         * toplev.c (compile_file): Emit LTO marker properly.  Change
21820         it to __gnu_lto_v1.
21821         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
21822
21823 2010-01-01  Richard Guenther  <rguenther@suse.de>
21824
21825         PR debug/42455
21826         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
21827
21828 2010-01-01  Richard Guenther  <rguenther@suse.de>
21829
21830         PR c/42570
21831         * c-decl.c (grokdeclarator): For zero-size arrays force
21832         structural equality checks as layout_type does.
21833
21834 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
21835
21836         * builtins.c: Update copyright to 2010.
21837
21838 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
21839
21840         PR lto/42531
21841         * lto-streamer-out.c (produce_asm): Revert the last change.
21842         (copy_function): Likewise.
21843
21844         * lto-streamer.c (lto_get_section_name): Skip any leading
21845         asterisk in name.
21846
21847 2010-01-01  Richard Guenther  <rguenther@suse.de>
21848
21849         PR middle-end/42559
21850         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
21851         for LABEL_DECLs.
21852
21853 \f
21854 Copyright (C) 2010 Free Software Foundation, Inc.
21855
21856 Copying and distribution of this file, with or without modification,
21857 are permitted in any medium without royalty provided the copyright
21858 notice and this notice are preserved.