OSDN Git Service

a23d5044e6f263d65b027882f145af00dcd644d1
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2
3         PR target/36822
4         * recog.c (asm_operand_ok): Change the order of the extra
5         memory constraint checks.
6
7 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8
9         PR tree-opt/36879
10         * tree-switch-conversion.c (build_one_array): Call
11         varpool_mark_needed_node and varpool_finalize_decl 
12         instead of assemble_variable.
13
14 2008-07-19  Jan Hubicka  <jh@suse.cz>
15
16         * cgraph.c (cgraph_add_new_function): Do early local passes.
17         * tree-nrv.c (gate_pass_return_slot): New gate.
18         (pass_nrv): Add the gate.
19         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
20         functions.
21         (coalesce_ssa_name): Coalesce SSA names.
22         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
23         not optimizing so unused user vars remains visible.
24         * common.opt (flag_tree_ter): Always enable by default.
25         * tree-ssa-ter.c: Include flags.h
26         (is_replaceable_p): Check that locations match; when aliasing is missing
27         be conservative about loads.
28         * tree-optimize.c (gate_init_datastructures): Remove.
29         (pass_init_datastructures): New.
30         * passes.c: Reorder passes so we always go into SSA.
31
32 2008-07-19  Jan Hubicka  <jh@suse.cz>
33
34         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
35         * doc/invoke.texi (--combine): Likewise.
36         (-finline-functions-called-once): Update levels when enabled.
37         (-funit-at-a-time): Document new behaviour.
38         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
39         -fno-section-anchors when disabled explicitly.
40         (inline params): They are not ignored now.
41         (precompiled headers): Remove unit-at-a-time as being incompatible.
42         * opts.c (decode_options): Handle unit-at-a-time as alias;
43         imply -fno-section-anchors when toplevel reorder is disabled
44         explicitly.
45         * common.opt (ftoplevel-reorder): Set default value to 2.
46         (funit-at-a-time): Set default value to 1.
47         * config/rs6000/rs6000.c (optimization_options): Set section anchors
48         to 2.
49
50 2008-07-19  Jan Hubicka  <jh@suse.cz>
51
52         * builtins.c (expand_builtin_int_roundingfn,
53         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
54         it is not useful.
55
56 2008-07-19  Richard Guenther  <rguenther@suse.de>
57
58         PR bootstrap/36864
59         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
60         * tree-ssa-sccvn.c (get_constant_value_id): New function.
61         * tree-ssa-pre.c (get_expr_value_id): For newly created
62         constant value-ids make sure to add the expression to its
63         expression-set.
64
65 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
66
67         PR middle-end/36877
68         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
69         return value of the builtin is ignored.
70
71 2008-07-19  Olivier Hainque  <hainque@adacore.com>
72
73         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
74         bits, a C conformant malloc implementation has to provide.
75         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
76
77 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
78
79         PR target/36780
80         PR target/36827
81         * reload.c (find_reloads_subreg_address): Only reload address if
82         reloaded == 0, not for reloaded != 1.
83
84         Revert:
85         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
86         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
87         (m32c_legitimate_address_p): Handle "++rii" addresses created by
88         m32c_legitimize_reload_address.
89
90         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
91         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
92         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
93
94 2008-07-19  Olivier Hainque  <hainque@adacore.com>
95
96         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
97         argument, saying whether nested array are to be collapsed
98         into a single array type DIE with multiple subscripts.
99         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
100         issues, centralize the nested array types collapsing control and
101         disable the transformation for Ada.
102         
103 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
104
105         PR target/36786
106         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
107         x86_64_shift_adj.
108         (x86_64_shift_adj_2): New expander.
109         (x86_64_shift_adj_3): Ditto.
110         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
111         to split TImode operands.
112         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
113         (ix86_split_lshr): Ditto.
114
115 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
116
117         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
118         and __CHAR32_TYPE__.
119         * c-typeck.c (digest_init): Support char16_t and char32_t.
120         (set_nonincremental_init_from_string): Idem.
121
122 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
123
124         PR middle-end/36859
125         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
126         PREFERRED_STACK_BOUNDARY.
127         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
128
129 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
130
131         PR middle-end/36858
132         * function.c (locate_and_pad_parm): Cap boundary earlier.
133
134 2008-07-17  Julian Brown  <julian@codesourcery.com>
135
136         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
137         no-op for targets which don't use DLLs.
138
139 2008-07-17  Martin Jambor  <mjambor@suse.cz>
140
141         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
142         that nodes are relevant by examining the node->analyzed flag.
143         (ipcp_init_stage): Check which nodes are relevant, assert that the
144         relevant ones are also required.
145         (ipcp_propagate_stage): Check on the side arrays are properly
146         allocated.
147         (ipcp_print_all_jump_functions): Make sure not to touch any node
148         that is not analyzed or an edge that does not have a corresponding
149         entry in the on-the-side vectors.
150         (ipcp_function_scale_print): Likewise.
151         (ipcp_update_callgraph): Check that the node is relevant.
152         (ipcp_insert_stage): Check that the node is relevant.  Check there is
153         an info for every node and edge.
154         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
155         (ipa_print_all_tree_maps): Likewise and a new variable info.
156         (ipa_print_all_params_modified): Likewise.
157         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
158
159 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
160
161         PR target/25343
162         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
163
164 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
165
166         PR rtl-optimization/36753
167         * fwprop.c (use_killed_between): Don't shortcut
168         single-definition global registers.
169
170 2008-07-16  Jan Hubicka  <jh@suse.cz>
171
172         * cgraph.h (varpool_empty_needed_queue): Declare.
173         * cgraphunit.c (output_in_order): Mark all variables as needed;
174         empty the queue.
175         * varpool.c (varpool_assemble_node): Update debug queue.
176         (varpool_assemble_pending_decls): Don't do it here.
177         (varpool_empty_needed_queue):  New function.
178
179 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
180
181         * recog.c (peephole2_optimize): Fix formatting.
182
183 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
184
185         * c-pch.c (get_ident): Avoid C++ keywords.
186         * combine-stack-adj.c (single_set_for_csa): Likewise.
187         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
188         output_asm_insn): Likewise.
189         * reload.c (push_secondary_reload, find_reusable_reload,
190         push_reload, combine_reloads, find_reloads,
191         debug_reload_to_stream): Likewise.
192         * reload.h (struct reload): Likewise.
193         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
194         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
195         emit_output_reload_insns): Likewise.
196         * targhooks.c (default_secondary_reload): Likewise.
197         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
198
199 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
200
201         * recog.c (validate_change_1, validate_change,
202         validate_unshare_change, validate_replace_rtx_1, struct
203         funny_match, constrain_operands, peephole2_optimize): Avoid C++
204         keywords.
205         * reload.c (push_secondary_reload, secondary_reload_class,
206         scratch_reload_class, find_valid_class, find_reusable_reload,
207         push_reload, find_dummy_reload, find_reloads_address_1,
208         find_reloads_address_part, find_equiv_reg): Likewise.
209         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
210         choose_reload_regs): Likewise.
211         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
212         Likewise.
213         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
214         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
215         * sched-rgn.c (concat_INSN_LIST): Likewise.
216         * stor-layout.c (mode_for_size, mode_for_size_tree,
217         smallest_mode_for_size): Likewise.
218
219 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
220
221         * cfg.c (dump_reg_info): Avoid C++ keywords.
222         * dwarf2asm.c (dw2_force_const_mem,
223         dw2_asm_output_encoded_addr_rtx): Likewise.
224         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
225         * expmed.c (expand_shift): Likewise.
226         * global.c (find_reg): Likewise.
227         * graph.c (draw_edge): Likewise.
228         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
229         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
230         widen_clz, widen_bswap, expand_parity, expand_unop,
231         emit_cmp_and_jump_insn_1): Likewise.
232         * postreload.c (reload_cse_simplify_operands): Likewise.
233         * ra.h (add_neighbor): Likewise.
234         * reg-stack.c (remove_regno_note, change_stack): Likewise.
235         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
236         record_reg_classes, copy_cost, record_address_regs,
237         invalid_mode_change_p): Likewise.
238         * regrename.c (regrename_optimize, scan_rtx_reg,
239         dump_def_use_chain, find_oldest_value_reg,
240         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
241
242 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
243
244         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
245         MASK_POWERPC64 for power4 in previous commit.
246
247 2008-07-16  Olivier Hainque  <hainque@adacore.com>
248
249         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
250         instead of bare conversion to cast const-ness away.
251
252 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
253
254         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
255         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
256         * config/xtensa/xtensa.c (xtensa_function_value): New function.
257         (TARGET_FUNCTION_VALUE): Define.
258
259 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
260
261         * config/rs6000/rs6000.c (processor_target_table): Add
262         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
263
264 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
265
266         PR target/36827
267         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
268         (m32c_legitimate_address_p): Handle "++rii" addresses created by
269         m32c_legitimize_reload_address.
270
271 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
272
273        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
274        DECL_IN_SYSTEM_HEADER in sync.
275
276 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
277
278         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
279         * tree-ssa-pre.c (pre_expr_eq): Ditto
280         (get_constant_for_value_id): Take a type as an argument.
281         (fully_constant_expression): Pass in type.
282         (find_or_generate_expression): Short circuit constant case.
283         (create_expression_by_pieces): Remove special casing of
284         pointer_plus.
285         (do_regular_insertion): Short circuit constant case.
286         (do_partial_partial_insertion): Ditto.
287
288 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
289
290         PR target/36782
291         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
292
293 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
294         
295         * config/xtensa/libgcc-xtensa.ver: New file.
296         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
297         
298 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
299
300         * df-problems.c (df_set_note): Avoid C++ keywords.
301         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
302         * dse.c (record_store, remove_useless_values): Likewise.
303         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
304         gen_reg_rtx_offset, operand_subword, change_address_1,
305         change_address, adjust_address_1, offset_address,
306         widen_memory_access, emit_copy_of_insn_after): Likewise.
307         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
308         * fwprop.c (should_replace_address, propagate_rtx_1,
309         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
310         Likewise.
311         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
312         gcse_emit_move_after, update_ld_motion_stores): Likewise.
313         * lcm.c (compute_insert_delete, pre_edge_lcm,
314         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
315         * lower-subreg.c (resolve_reg_notes): Likewise.
316         * mode-switching.c (optimize_mode_switching): Likewise.
317
318 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
319
320         * bt-load.c (add_btr_def, migrate_btr_def,
321         branch_target_load_optimize): Avoid C++ keywords.
322         * caller-save.c (insert_restore, insert_save, insert_one_insn):
323         Likewise.
324         * combine.c (subst, simplify_set, make_extraction,
325         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
326         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
327         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
328
329 2008-07-15  Richard Guenther  <rguenther@suse.de>
330
331         PR middle-end/36369
332         * c-common.c (strict_aliasing_warning): Do not warn for
333         TYPE_REF_CAN_ALIAS_ALL pointers.
334         (c_common_get_alias_set): may_alias types are not special.
335         * tree.c (build_pointer_type_for_mode): Look up the may_alias
336         attribute and set can_ref_all accordingly.
337         (build_reference_type_for_mode): Likewise.
338         * doc/extend.texi (may_alias): Clarify.
339
340 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
341
342         PR target/36780
343         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
344         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
345
346 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
347
348         PR target/31568
349         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
350         gcc_assert, instead call output_operand_lossage.
351
352 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
353
354         * builtins.c (std_canonical_va_list): Treat structure based
355         va_list types.
356
357 2008-07-15  Ben Elliston  <bje@au.ibm.com>
358
359         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
360
361 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
362
363         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
364         is set.
365
366 2008-07-14  Jan Hubicka  <jh@suse.cz>
367
368         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
369         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
370         fix predicates and constraints.
371         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
372         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
373
374 2008-07-14  Doug Kwan  <dougkwan@google.com>
375
376         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
377         additional option file arm/eabi.opt.
378         * config/arm/eabi.h (File): New configuration file for EABI targets.
379         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
380         SUBSUBTARGET_EXTRA_SPECS.
381         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
382         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
383         from STARTFILE_SPEC so that it can be referenced in an override.
384         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
385         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
386         can be referenced in an override.
387         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
388         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
389         so that it can be referenced in an override.
390         (LINK_SPEC): Use BPABI_LINK_SPEC.
391         * config/arm/eabi.opt (File): New.
392
393 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
394
395         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
396         (FIXED_VALUE_H): New variable.
397         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
398         input.h, fixed-value.h.
399         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
400         (BASIC_BLOCK_H): Use $(BITMAP_H).
401         (FUNCTION_H): Add varray.h.
402         (IPA_REFERENCE_H): Use $(BITMAP_H).
403         (CGRAPH_H): Add $(BASIC_BLOCK_H).
404         (DF_H): Use $(BITMAP_H).
405         (GGC_H): Add statistics.h.
406         (INSN_ADDR_H): New.
407         (INSN_ATTR_H): Use it.
408         (SYSTEM_H): Add safe-ctype.h, filenames.h.
409         (INPUT_H): New.
410         (SYMTAB_H): Add $(OBSTACK_H).
411         (CPP_INTERNAL_H): New.
412         (TREE_DUMP_H): Add tree-pass.h.
413         (TREE_FLOW_H): Use $(BITMAP_H)
414         (PRETTY_PRINT_H): Use $(INPUT_H).
415         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
416         (GSTAB_H): New.
417         (BITMAP_H): New.
418         (many object files): Fix lots of header dependencies throughout.
419
420 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
421
422         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
423         New macros.
424         (s-gtyp-input): Use them to write tmp-gi.list.
425         (echo_to_gi.list): Remove.
426
427 2008-07-14  Richard Guenther  <rguenther@suse.de>
428
429         * tree-ssa-sccvn.c (pre_info): Remove.
430         (switch_to_PRE_table): Likewise.
431         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
432         (set_hashtable_value_ids): Do not create value-ids for the
433         optimistic tables.
434         (run_scc_vn): Remove double test.  Remove bogus special-case
435         in value-number printing.
436         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
437         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
438         SSA_NAME_VALUE.
439         * tree-flow-inline.h (get_value_handle): Remove.
440         * tree-flow.h (get_value_handle): Remove.
441
442 2008-07-14  Martin Jambor  <mjambor@suse.cz>
443
444         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
445         in which we generate arithmetics is not a subrange.
446
447 2008-07-14  Martin Jambor  <mjambor@suse.cz>
448
449         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
450
451 2008-07-14  Richard Guenther  <rguenther@suse.de>
452
453         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
454
455 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
456
457         PR target/36745
458         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
459         reload for symbol refs moved to r0 with -fPIC.
460         (legitimize_pic_address): Use the target register as temporary
461         reg if possible.
462         (emit_symbolic_move): Adjust comment.
463         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
464         New expanders.
465
466 2008-07-14  Ben Elliston  <bje@au.ibm.com>
467
468         * c-common.h (C_CPP_HASHNODE): New macro.
469         * coretypes.h (struct cpp_token): Forward declare.
470         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
471         the context-sensitive keyword method.
472         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
473         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
474         expand_bool_pixel): New.
475         (altivec_categorize_keyword): New function.
476         (init_vector_keywords): New function.
477         (rs6000_macro_to_expand): Likewise.
478         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
479         compiling an ISO C dialect.
480
481 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
482
483         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
484         (create_expression_by_pieces): Fix typo.
485         (do_regular_insertion): Use debug counter here too.
486
487 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
488
489         PR target/35492.
490         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
491         CONST_OK_FOR_LETTER_P.  All port-local users changed.
492         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
493         implement Kp matching power-of-two.
494         (CONSTRAINT_LEN): Define to match.
495         * config/cris/cris.md: Replace all use of constraint K with Kc.
496         ("*btst*): Use Kp for operand 0 of last alternative.
497
498 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
499
500         PR testsuite/36440
501         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
502         and quad formats.
503
504 2008-07-13  Jan Hubicka  <jh@suse.cz>
505
506         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
507         to be mangled too.
508
509 2008-07-13  Richard Guenther  <rguenther@suse.de>
510
511         PR middle-end/36811
512         * langhooks.c (lhd_print_error_function): Deal with recursive
513         BLOCK trees.
514
515 2008-07-12  Jan Hubicka  <jh@suse.cz>
516
517         * cgraph.c (assembler_name_hash): New static var.
518         (hash_node_by_assembler_name, eq_assembler_name): New.
519         (cgraph_node_for_asm): Use hashtable.
520         (cgraph_remove_node): Maintain hashtable.
521         (change_decl_assembler_name): Sanity check that names are not changing
522         after aliasing was processed.
523         * cgraph.h (varpoon_node): Add next GGC marker.
524         * tree.c (decl_assembler_name_equal): Constify.
525         (decl_assembler_name_hash): New.
526         * tree.h (decl_assembler_name_equal): Constify.
527         (decl_assembler_name_hash): Update.
528
529 2008-07-12  David Daney  <ddaney@avtrex.com>
530
531         * config/mips/driver-native.c (host_detect_local_cpu): Handle
532         sb1 and r5000 cpus.
533
534 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
535
536         * doc/md.texi: Document the MIPS "v" constraint.
537         * config/mips/mips.h (reg_class): Revert last change.
538         (REG_CLASS_NAMES): Likewise.
539         (REG_CLASS_CONTENTS): Likewise.
540         * config/mips/mips.c (mips_regno_to_class): Likewise.
541         * config/mips/constraints.md (v): Likewise, but add documentation.
542         Add a comment to say that this constraint should not be used in
543         gcc code.
544
545 2008-07-11  DJ Delorie  <dj@redhat.com>
546
547         * config/h8300/h8300.md (length): Fix branch offset limit.
548
549 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
550
551         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
552         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
553         (avr_hard_regno_scratch_ok): New function.
554         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
555         * config/avr/avr.md (all peepholes that request a scratch register):
556         Remove avr_peep2_scratch_safe use.
557
558 2008-07-11  Tom Tromey  <tromey@redhat.com>
559             Ian Lance Taylor  <iant@google.com>
560
561         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
562         (struct c_common_resword): Define.
563         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
564         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
565         (c_common_reswords, num_c_common_reswords): Declare.
566         * c-common.c (c_common_reswords): New global const array.
567         (num_c_common_reswords): New const int.
568         * c-parser.c (struct resword, reswords): Don't define.
569         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
570         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
571         than reswords.  If warning about C++ keywords, give them a special
572         RID code.
573         (c_lex_one_token): Warn about C++ keywords.  Call
574         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
575         (c_parser_external_declaration): Look for RID_xxx rather than
576         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
577         (c_parser_statement_after_labels): Likewise.
578         (c_parser_objc_class_instance_variables): Likewise.
579         (c_parser_objc_class_declaration): Likewise.
580         (c_parser_objc_try_catch_statement): Likewise.
581         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
582         (declspecs_add_type): Likewise.
583
584 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
585
586         * ggc-page.c (alloc_page):
587         Substituting xmalloc, xcalloc with
588         XNEWVEC and XCNEWVAR macros which add the
589         needed casts.
590
591 2008-07-11  Richard Guenther  <rguenther@suse.de>
592
593         PR tree-optimization/36765
594         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
595         aliases from HEAP vars to SMTs.
596
597 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
598
599         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
600         * configure.ac (loose_warn): Move -Wc++-compat from here...
601         (strict_warn): ...to here.
602         * configure: Regenerate.
603
604 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
605
606         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
607         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
608         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
609         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
610         excluding more specific h8300-*-* and sh-*-* targets.
611
612 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
613
614         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
615         (eliminate): Ditto.
616         (execute_pre): Call loop_optimizer_finalize in early exit.
617
618 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
619
620         PR middle-end/36790
621         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
622         uids in the bitmap, not just VAR_DECL uids.
623
624         PR rtl-optimization/36419
625         * combine-stack-adj.c (adjust_frame_related_expr): New function.
626         (combine_stack_adjustments_for_block): Call it if needed.  Delete
627         correct insn.
628         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
629         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
630         prologue sp adjustment.
631
632 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
633
634         PR other/28322
635         * opts.c (print_ignored_options): Report postponed diagnostics for
636         unknown -Wno-* options as warnings, not errors.
637         (postpone_unknown_option_error): Renamed to...
638         (postpone_unknown_option_warning): ... this.
639
640 2008-07-09  Doug Kwan  <dougkwan@google.com>
641
642         Revert:
643         2008-07-08  Doug Kwan  <dougkwan@google.com>
644
645         * config/arm/arm.opt (mandroid): New option.
646         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
647         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
648         (CC1_SPEC): Same.
649         (CC1PLUS_SPEC): Same.
650         (LIB_SPEC): Same.
651         (STARTFILE_SPEC): Same.
652         (ENDFILE_SPEC): Same.
653         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
654         used.
655
656 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
657
658         PR target/35802
659         * config/mips/mips.h (reg_class): Remove V1_REG.
660         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
661         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
662         instead of V1_REGS.
663         (mips_get_tp): New function.
664         (mips_legitimize_tls_address): Use it.
665         * config/mips/constraints.md (v): Delete.
666         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
667         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
668         After reload, split into a move and ...
669         (*tls_get_tp_<mode>_split): ...this new instruction.
670
671 2008-07-09  David Daney  <ddaney@avtrex.com>
672
673         * config/mips/driver-native.c: Include coretypes.h and tm.h.
674
675 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
676
677         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
678         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
679         Add c argument.
680         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
681         htab_delete should be called.  Don't free c.
682         (lookup_tmp_var): Create temp_htab lazily.
683         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
684         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
685         callers.
686         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
687         lower_omp_ordered, lower_omp_critical, lower_omp_for,
688         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
689         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
690         * tree-sra.c (generate_element_init): Likewise.
691         * tree-mudflap.c (execute_mudflap_function_ops,
692         execute_mudflap_function_decls): Likewise.
693         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
694         * tree-gimple.h (struct gimplify_ctx): New type.
695         (push_gimplify_context): Adjust prototype.
696
697 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
698
699         * tree-ssa-pre.c (phi_translate_1): Update placement of
700         add_to_value calls.
701
702 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
703
704         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
705         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
706         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
707         * targhooks.c (default_hard_regno_scratch_ok): New function.
708         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
709         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
710         * recog.c:  Include "target.h".
711         (peep2_find_free_register): Add check for global regs. Add target
712         specific check.
713         * Makefile.in (recog.o): Depend on target.h.
714
715 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
716
717         * config/sh/sh.c (sh_canonical_va_list_type): New.
718         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
719
720 2008-07-09  Raksit Ashok <raksit@google.com>
721
722         * doc/invoke.texi (Option Summary): Mention new option
723         -Wdisallowed-function-list=...
724         (Warning Options): Document -Wdisallowed-function-list=...
725         * common.opt (Wdisallowed-function-list=): New flag.
726         * flags.h (warn_disallowed_functions): External definition of new
727         boolean warning flag.
728         (warn_if_disallowed_function_p): Declare new function.
729         * opts.c (warning_disallowed_functions): New static variable.
730         (warn_disallowed_functions): New boolean warning flag.
731         (warn_if_disallowed_function_p): New function.
732         (add_comma_separated_to_vector): Rename
733         add_instrument_functions_exclude_list to this.
734         (common_handle_option): Handle new option. Rename calls to
735         add_instrument_functions_exclude_list into calls to
736         add_comma_separated_to_vector.
737         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
738         based on flag warn_disallowed_functions.
739
740 2008-07-09  Christian Bruel  <christian.bruel@st.com>
741
742         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
743          instead of get_attr_length.
744
745 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
746
747         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
748         keywords.
749         * genemit.c (gen_insn): Likewise.
750         * gengtype.c (note_def_vec): Likewise.
751         * gengtype.h (note_def_vec): Likewise.
752         * genoutput.c (struct data, output_insn_data, process_template,
753         gen_expand, gen_split, note_constraint): Likewise.
754         * genrecog.c (new_decision, add_to_sequence, factor_tests,
755         make_insn_sequence): Likewise.
756         * gensupport.c (record_insn_name): Likewise.
757
758 2008-07-08  Doug Kwan  <dougkwan@google.com>
759
760         * config/arm/arm.opt (mandroid): New option.
761         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
762         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
763         (CC1_SPEC): Same.
764         (CC1PLUS_SPEC): Same.
765         (LIB_SPEC): Same.
766         (STARTFILE_SPEC): Same.
767         (ENDFILE_SPEC): Same.
768         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
769         used.
770
771 2008-07-08  Raksit Ashok  <raksit@google.com>
772
773         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
774         (set_storage_via_setmem): Fix expected_align parameter.
775         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
776         missing from the list.
777         * doc/md.texi (movmem): Explicitly state that expected alignment is
778         to be expressed in bytes.
779         (setmem): Explicitly state that expected alignment is to be expressed
780         in bytes.
781
782 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
783
784         * reload.c (find_reloads_subreg_address): Do not require validity
785         of address in original mode before reloading address.
786
787 2008-07-07  Tianwei Sheng  <tianweis@google.com>
788
789         * df-core.c (df_remove_problem): Adjust the access to avoid out of
790         bounds array access.
791
792 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
793
794         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
795
796 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
797         
798         Fix PR tree-optimization/23455
799         Fix PR tree-optimization/35286
800         Fix PR tree-optimization/35287
801         * Makefile.in (OBJS-common): Remove tree-vn.o.
802         (tree-vn.o): Remove.
803         * dbgcnt.def: Add treepre_insert debug counter.
804         * gcc/tree-flow.h (add_to_value): Updated for other changes.
805         (debug_value_expressions): Ditto.
806         (print_value_expressions): Ditto.
807         * tree-pretty-print.c (dump_generic_node): Updated for
808         VALUE_HANDLE removal.
809         * tree-ssa-dom.c (record_equality): Ditto.
810         (cprop_operand): Ditto.
811         (lookup_avail_expr): Ditto.
812         * tree-ssa-threadedge.c
813         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
814         (simplify_control_stmt_condition): Ditto.
815         * tree.c (tree_code_size): Ditto.
816         (tree_node_structure): Ditto.
817         (iterative_hash_expr): Ditto.
818         * tree.def: Ditto.
819         * tree.h (VALUE_HANDLE_ID): Ditto.
820         (VALUE_HANDLE_EXPR_SET): Ditto.
821         (struct tree_value_handle): Ditto.
822         (union tree_node): Ditto.
823         * treestruct.def: Ditto.
824         * tree-vn.c: Removed.
825         * tree-ssa-pre.c: Rewritten entirely.
826         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
827         (constant_value_ids): Ditto.
828         (vn_nary_op_t): Moved to header.
829         (vn_phi_t): Ditto.
830         (vn_reference_op_t): Ditto
831         (vn_reference_t): Ditto.
832         (next_value_id): New variable.
833         (VN_INFO): Add an assert.
834         (vn_constant_eq): New function.
835         (vn_constant_hash): Ditto.
836         (get_or_alloc_constant_value_id): Ditto.
837         (value_id_constant_p): Ditto.
838         (vn_reference_compute_hash): De-staticify.
839         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
840         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
841         (valueize_refs): Update opcode if it changes from ssa name to constant.
842         (vn_reference_lookup_1): Add new argument.
843         (vn_reference_lookup):  Ditto.
844         (vn_reference_lookup_pieces): New function.
845         (vn_reference_insert): Add return type. Modify to deal with value ids.
846         (vn_reference_insert_pieces):  New function.
847         (vn_nary_op_compute_hash): De-staticify.
848         (vn_nary_op_eq): Ditto.
849         (vn_nary_op_lookup_pieces): New function.
850         (vn_nary_op_lookup): Add new argument.  
851         (vn_nary_op_insert_pieces): New function.
852         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
853         (vn_phi_insert): Ditto.
854         (visit_unary_op): Update for callee changes.
855         (visit_binary_op): Ditto.
856         (visit_reference_op_load): Ditto.
857         (visit_reference_op_store): Ditto.
858         (init_scc_vn): Init next_value_id, constant_to_value_id and
859         constant_value_ids. 
860         (free_scc_vn): Free them.
861         (set_hashtable_value_ids): New function.
862         (run_scc_vn): Use it.
863         (get_max_value_id): New function.
864         (get_next_value_id): Ditto.
865         (expressions_equal_p): Moved from tree-vn.c
866         (sort_vuses): Ditto.
867         (sort_vuses_heap): Ditto.
868         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
869         above).
870         * tree.c (iterative_hash_hashval_t): Made non-static
871         * tree.h (iterative_hash_hashval_t): Declare it.
872         
873 2008-07-08  Martin Jambor  <mjambor@suse.cz>
874
875         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
876         instead of ipa_create_node_params.
877         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
878         ipa_check_create_edge_args, free them with
879         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
880
881         * ipa-prop.c: Include flags.h and tree-inline.h.
882         (ipa_node_params_vector): New variable.
883         (ipa_edge_args_vector): New variable.
884         (edge_removal_hook_holder): New variable.
885         (node_removal_hook_holder): New variable.
886         (edge_duplication_hook_holder): New variable.
887         (node_duplication_hook_holder): New variable.
888         (ipa_detect_param_modifications): Check for presence of modified flags.
889         (ipa_compute_jump_functions): Check for presence of jump functions.
890         (ipa_free_edge_args_substructures): New function.
891         (ipa_create_node_params): Removed.
892         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
893         (ipa_free_node_params_substructures): New function.
894         (ipa_free_all_node_params): Changed to deallocate the on-the-side
895         vector.
896         (ipa_edge_removal_hook): New function.
897         (ipa_node_removal_hook): New function.
898         (duplicate_array): New function.
899         (ipa_edge_duplication_hook): New function.
900         (ipa_node_duplication_hook): New function.
901         (ipa_register_cgraph_hooks): New function.
902         (ipa_unregister_cgraph_hooks): New function.
903         (free_all_ipa_structures_after_ipa_cp): New function.
904         
905         * ipa-prop.h: Include vec.h.
906         (ipa_node_params_t): New typedef with vector types for it.
907         (ipa_edge_args_t):  New typedef with vector types for it.
908         (IPA_NODE_REF): Changed to access an on-the-side vector.
909         (IPA_EDGE_REF): Changed to access an on-the-side vector.
910         (ipa_check_create_node_params): New function.
911         (ipa_check_create_edge_args): New function.
912         
913         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
914         all users.
915         
916 2008-07-07  Tom Tromey  <tromey@redhat.com>
917
918         * configure, config.in: Rebuilt.
919         * configure.ac: Don't check for scandir or alphasort.
920
921 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
922
923         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
924         types immediately after creating them.
925
926 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
927
928         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
929
930 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
931
932         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
933         dump_constraint_graph.
934         (dump_constraint_edge): New function.
935         (dump_constraint_graph): New function.
936         (debug_constraint_graph): New function.
937         (dump_constraint): Removed useless comparison.
938         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
939         (dump_constraint_graph): Declare.
940         (debug_constraint_graph): Declare.
941         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
942
943 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
944
945         * config/i386/i386.c (is_va_list_char_pointer): New.
946         (ix86_va_start): Replace compare with ms_va_list_type_node
947         by is_va_list_char_pointer.
948         (ix86_gimplify_va_arg): Likewise.
949
950 2008-07-07  Martin Jambor  <mjambor@suse.cz>
951
952         * cgraph.c (cgraph_edge_max_uid): New variable.
953         (struct cgraph_edge_hook_list): New type.
954         (struct cgraph_node_hook_list): New type.
955         (struct cgraph_2edge_hook_list): New type.
956         (struct cgraph_2node_hook_list): New type.
957         (first_cgraph_edge_removal_hook): New variable.
958         (first_cgraph_node_removal_hook): New variable.
959         (first_cgraph_edge_duplicated_hook): New variable.
960         (first_cgraph_node_duplicated_hook): New variable.
961         (cgraph_add_edge_removal_hook): New function.
962         (cgraph_remove_edge_removal_hook): New function.
963         (cgraph_call_edge_removal_hooks):  New function.
964         (cgraph_add_node_removal_hook):  New function.
965         (cgraph_remove_node_removal_hook):  New function.
966         (cgraph_call_node_removal_hooks):  New function.
967         (cgraph_add_edge_duplication_hook):  New function.
968         (cgraph_remove_edge_duplication_hook):  New function.
969         (cgraph_call_edge_duplication_hooks):  New function.
970         (cgraph_add_node_duplication_hook):  New function.
971         (cgraph_remove_node_duplication_hook):  New function.
972         (cgraph_call_node_duplication_hooks):  New function.
973         (cgraph_create_edge): Assign to edge uid.
974         (cgraph_remove_edge): Call edge removal hooks.
975         (cgraph_node_remove_callees): Call edge removal hooks.
976         (cgraph_node_remove_callers): Call edge removal hooks.
977         (cgraph_remove_node): Call node removal hooks.
978         (cgraph_clone_edge): Call edge duplication hooks.
979         (cgraph_clone_node): Call node duplication hooks.
980
981         * cgraph.h (cgraph_edge): New field uid.
982         (cgraph_edge_hook): New type.
983         (cgraph_node_hook): New type.
984         (cgraph_2edge_hook): New type.
985         (cgraph_2node_hook): New type.
986
987 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
988
989         * config.in: Regenerate.
990
991 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
992
993         * gcc.c (print_sysroot): New.
994         (option_map, display_help, process_command): Handle the
995         -print-sysroot option.
996         (main): Print the sysroot if requested.
997         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
998         
999 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1000
1001         PR target/34780
1002         * unwind-pe.h (size_of_encoded_value): add attribute unused.
1003
1004 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
1005
1006         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
1007         (assign_parm_setup_block_p): Also check mode of entry_parm.
1008
1009 2008-07-07  Richard Guenther  <rguenther@suse.de>
1010
1011         * tree-ssa-structalias.h (set_used_smts): Remove.
1012         * tree-ssa-structalias.c (used_smts): Likewise.
1013         (set_used_smts): Likewise.
1014         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
1015         call to set_used_smts.
1016
1017 2008-07-07  Richard Guenther  <rguenther@suse.de>
1018
1019         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
1020         (new_var_info): Set it to false.
1021         (solution_set_add): Correctly handle pointers outside a var and
1022         inside a field.
1023         (type_safe): Treat variables with is_full_var properly.
1024         (do_sd_constraint): Likewise.
1025         (do_ds_constraint): Likewise.
1026         (process_constraint): Remove zeroing offset for !use_field_sensitive.
1027         (get_constraint_for_ptr_offset): New function.
1028         (get_constraint_for_component_ref): For addresses at least include
1029         the last field of the variable.  Handle is_full_vars properly.
1030         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
1031         (handle_ptr_arith): Remove.
1032         (find_func_aliases): Simplify assignment handling.
1033         (create_function_info_for): For parameter and result varinfos set
1034         is_full_var flag.
1035         (create_variable_info_for): Set is_full_var flag whenever we
1036         just created a single varinfo for a decl.
1037         (init_alias_vars): Initialize use_field_sensitive from
1038         max-fields-for-field-sensitive parameter.
1039
1040 2008-07-07  Richard Guenther  <rguenther@suse.de>
1041
1042         PR tree-optimization/36713
1043         * tree-flow-inline.h (is_call_used): New function.
1044         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
1045         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1046         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
1047
1048 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1049
1050         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
1051         
1052 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
1053
1054         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1055
1056 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1057             Nathan Sidwell  <nathan@codesourcery.com>
1058
1059         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
1060         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1061         tmake_file.
1062         * config/m68k/t-linux: New.
1063         * doc/install.texi: Document m68k-*-linux is now multilibbed by
1064         default.
1065
1066 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1067
1068         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1069         * config/m68k/m68k-devices.def: Remove multilibs that only differ
1070         by MAC/EMAC.
1071
1072 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1073
1074         * gcc.c (execute): Fix -Wc++-compat warning.
1075
1076 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
1077
1078         PR target/36720
1079         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1080         constant for little endian.
1081
1082 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
1083
1084         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1085         mips_base_mips16 instead of TARGET_MIPS16.
1086         (mips_base_mips16): Declare.
1087         * config/mips/mips.c (mips_base_mips16): Make global.
1088         (was_mips16_p): Remove GTY marker.
1089         (was_mips16_pch_p): New variable.
1090         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1091         (mips_override_options): Force to non-MIPS16 mode initially.
1092         Do not complain about MIPS16 PIC incompatibilities here.
1093         Only allow -mgpopt if -mexplicit-relocs is in force for
1094         non-MIPS16 code.
1095
1096 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
1097
1098         * configure.ac: Check for caddr_t, define to char * if not defined.
1099         * configure: Regenerate.
1100         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1101         (mmap_gt_pch_use_address): Likewise.
1102         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1103
1104 2008-07-06  Richard Guenther  <rguenther@suse.de>
1105
1106         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1107         (new_var_info): Deal with it.
1108         (solution_set_add): Likewise.
1109         (bitpos_of_field): Make signed, fix.
1110         (struct fieldoff): Remove type and decl fields.  Make size field
1111         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
1112         flags.
1113         (fieldoff_compare): Deal with it.
1114         (push_fields_onto_fieldstack): Remove has_union argument, glob
1115         adjacent non-pointer fields together.
1116         (create_function_info_for): Do not set has_union.
1117         (create_variable_info_for): Simplify.
1118
1119 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
1120
1121         * config.gcc (extra_headers): Add cross-stdarg.h for target
1122         x86_64-*-* and i?86-*-*.
1123         * config/i386/cross-stdarg.h: New.
1124         * builtins.c (std_fn_abi_va_list): New.
1125         (std_canonical_va_list_type): New.
1126         (stabilize_va_list): Replace va_list_type_node use by
1127         mtarget.canonical_va_list_type.
1128         (gimplify_va_arg_expr): Likewise.
1129         (expand_builtin_va_copy): Replace va_list_type_node use by
1130         mtarget.fn_abi_va_list.
1131         * tree-sra.c (is_va_list_type): New helper.
1132         (decl_can_be_decomposed_p): Replace
1133         va_list_type_node use by is_va_list_type.
1134         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1135         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1136         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1137         * config/i386/i386-protos.h (ix86_get_valist_type): New.
1138         (ix86_enum_va_list): New.
1139         * config/i386/i386.c (sysv_va_list_type_node): New.
1140         (ms_va_list_type_node): New.
1141         (ix86_function_type_abi): Remove sorry.
1142         (ix86_build_builtin_va_list_abi): New.
1143         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1144         for 64-bit targets.
1145         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1146         (ix86_init_builtins_va_builtins_abi): New.
1147         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1148         for 64-bit targets.
1149         (ix86_handle_abi_attribute): New.
1150         (attribute_spec): Add sysv_abi and ms_abi.
1151         (ix86_fn_abi_va_list): New.
1152         (ix86_canonical_va_list_type): New.
1153         (ix86_enum_va_list): New.
1154         (TARGET_FN_ABI_VA_LIST): New.
1155         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1156         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1157         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1158         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1159         (TARGET_ENUM_VA_LIST): New.
1160         * expr.h (std_fn_abi_va_list): New.
1161         (std_canonical_va_list_type): New.
1162         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1163         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1164         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1165         TARGET_CANONICAL_VA_LIST_TYPE.
1166         * target.h (struct gcc_target): Add fn_abi_va_list hook
1167         and canonical_va_list_type hook.
1168
1169 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1170
1171         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1172         integral and pointer types.
1173
1174 2008-07-04  Roger Sayle  <roger@eyesopen.com>
1175
1176         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
1177         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1178
1179 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1180
1181         PR target/36684
1182         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
1183
1184 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
1185
1186         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1187         build_gimple_modify_stmt.
1188         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
1189         gimple operand.  Use fold_build* instead of build*.
1190
1191 2008-07-04  Richard Guenther  <rguenther@suse.de>
1192
1193         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1194         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1195         properly to compute the reachability set if we do field-sensitive PTA.
1196         * invoke.texi (max-fields-for-field-sensitive): Document default.
1197         * opts.c (decode_options): Set max-fields-for-field-sensitive to
1198         100 for optimize >= 2.
1199
1200 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1201
1202         * ggc-zone.c (lookup_page_table_if_allocated,
1203         set_page_table_entry, zone_find_object_size, alloc_small_page,
1204         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
1205         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
1206         -Wc++-compat and/or -Wcast-qual warnings.
1207
1208 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
1209
1210         PR target/36634
1211         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
1212         pic_offset_table_rtx to be marked as used here.
1213         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
1214         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
1215         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
1216         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
1217         !TARGET_SECURE_PLT.
1218
1219 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1220
1221         * alloc-pool.c (hash_descriptor, eq_descriptor,
1222         alloc_pool_descriptor): Fix -Wc++-compat warnings.
1223         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
1224         Likewise.
1225         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
1226         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
1227         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
1228         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
1229         Likewise.
1230
1231 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1232
1233         * tree-flow.h (loop_only_exit_p): Declare.
1234         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1235         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1236         the number of iterations if it is constant.  Otherwise, if this is the
1237         only possible exit of the loop, use the conservative estimate on the
1238         number of iterations of the entire loop if available.
1239
1240 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
1241
1242         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1243         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1244         Add synchronization functions.
1245         * config/sync.c: New file.
1246         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1247         (LIBGCC_SYNC_CFLAGS): Likewise.
1248
1249 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
1250
1251         PR target/36710
1252         * config/i386/i386.md (mode): Add TF to "mode" attribute.
1253         (*pushtf_sse): New insn pattern.
1254         (pushtf splitters): New splitters.
1255
1256 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
1257
1258         PR middle-end/35736
1259         * predict.c (build_predict_expr): Use void_type_node for the tree
1260         type, instead of NULL_TREE.
1261
1262 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1263
1264         * config/i386/i386.c (contains_aligned_value_p): Return true
1265         for TCmode.
1266         (ix86_data_alignment): Align TCmode to 128bits.
1267         (ix86_local_alignment): Likewise.
1268
1269 2008-07-03  Andrew Haley  <aph@redhat.com>
1270
1271         PR bootstrap/33304
1272         * vec.h (VEC_TA): New.
1273         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1274         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1275         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1276         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1277         (C_COMMON_FIXED_TYPES): Remove first arg.
1278         (C_COMMON_FIXED_MODE_TYPES): Likewise.
1279         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1280         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1281         not to use empty macro arguments.
1282
1283 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
1284
1285         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1286         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1287         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1288         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1289         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1290         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1291         config/ia64/crtn.asm, config/m68hc11/larith.asm,
1292         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1293         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1294         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1295         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1296         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1297         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1298         config/rs6000/e500crtres64gpr.asm,
1299         config/rs6000/e500crtres64gprctr.asm,
1300         config/rs6000/e500crtrest32gpr.asm,
1301         config/rs6000/e500crtrest64gpr.asm,
1302         config/rs6000/e500crtresx32gpr.asm,
1303         config/rs6000/e500crtresx64gpr.asm,
1304         config/rs6000/e500crtsav32gpr.asm,
1305         config/rs6000/e500crtsav64gpr.asm,
1306         config/rs6000/e500crtsav64gprctr.asm,
1307         config/rs6000/e500crtsavg32gpr.asm,
1308         config/rs6000/e500crtsavg64gpr.asm,
1309         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1310         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1311         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1312         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1313         config/sparc/sol2-cn.asm: Remove .file directives.
1314
1315 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
1316
1317         * resource.c (mark_referenced_resources): Look inside
1318         UNSPEC_VOLATILEs and ASM_INPUTs.
1319
1320 2008-07-02  Ian Lance Taylor  <iant@google.com>
1321
1322         * rtlanal.c (add_reg_note): New function.
1323         * rtl.h (add_reg_note): Declare.
1324         * auto-inc-dec.c (attempt_change): Use add_reg_note.
1325         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1326         * builtins.c (expand_builtin_longjmp): Likewise.
1327         (expand_builtin_nonlocal_goto): Likewise.
1328         * calls.c (emit_call_1, expand_call): Likewise.
1329         * cfgexpand.c (add_reg_br_prob_note): Likewise.
1330         * cfglayout.c (fixup_reorder_chain): Likewise.
1331         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1332         (commit_one_edge_insertion): Likewise.
1333         * combine.c (move_deaths, distribute_notes): Likewise.
1334         * df-problems.c (df_set_note): Likewise.
1335         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1336         (set_unique_reg_note): Likewise.
1337         (emit_copy_of_insn_after): Likewise.
1338         * expr.c (expand_expr_real): Likewise.
1339         * gcse.c (add_label_notes): Likewise.
1340         * haifa-sched.c (create_check_block_twin): Likewise.
1341         * jump.c (mark_jump_label_1): Likewise.
1342         * loop-doloop.c (add_test, doloop_modify): Likewise.
1343         * loop-unswitch.c (compare_and_jump_seq): Likewise.
1344         * lower-subreg.c (move_eh_region_note): Likewise.
1345         * optabs.c (emit_libcall_block): Likewise.
1346         * predict.c (predict_insn): Likewise.
1347         (combine_predictions_for_insn): Likewise.
1348         * recog.c (peephole2_optimize): Likewise.
1349         * regmove.c (try_auto_increment): Likewise.
1350         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1351         * reload.c (find_reloads): Likewise.
1352         * reload1.c (fixup_eh_region_note): Likewise.
1353         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1354         * reorg.c (delete_prior_computation): Likewise.
1355         (delete_computation, dbr_schedule): Likewise.
1356         * config/pa/pa.c (legitimize_pic_address): Likewise.
1357         * config/sh/sh.c (sh_reorg): Likewise.
1358
1359 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1360
1361         PR target/36669
1362         * config/libgcc-glibc.ver: Add %exclude.
1363         * config/m32r/libgcc-glibc.ver: Likwise.
1364         * config/s390/libgcc-glibc.ver: Likwise.
1365         * config/sh/libgcc-glibc.ver: Likwise.
1366         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1367
1368         * config/i386/libgcc-glibc.ver: New.
1369
1370         * config/i386/libgcc-x86_64-glibc.ver: Removed.
1371
1372 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1373
1374         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1375         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1376         i[34567]86-*-linux*, x86_64-*-linux*.  Add
1377         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1378         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1379         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
1380         i[34567]86-*-linux*, x86_64-*-linux*.
1381
1382         * libgcc-std.ver: Add empty GCC_4.4.0.
1383
1384         * mkmap-symver.awk: Support multiple versions per symbol.
1385
1386         * config/i386/i386.c (ix86_init_builtins): Always define
1387         __builtin_fabsq and __builtin_copysignq with fallbacks.
1388         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1389         and __builtin_copysignq if SSE2 isn't available.
1390
1391         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1392         (LIBGCC2_TF_CEXT): Likwise.
1393         (TF_SIZE): Likwise.
1394
1395         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1396
1397         * config/i386/sfp-machine.h: Moved to libgcc.
1398
1399         * config/i386/sfp-machine.h: New.
1400         * config/i386/t-linux: Likwise.
1401
1402         * config/i386/t-darwin: Remove softfp_wrap_start and
1403         softfp_wrap_end.
1404         * config/i386/t-darwin64: Likewise.
1405
1406         * config/i386/t-fprules-softfp64: Renamed to ...
1407         * config/i386/t-fprules-softfp: This.
1408
1409         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1410         and softfp_wrap_end.
1411
1412 2008-07-02  Jason Merrill  <jason@redhat.com>
1413
1414         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1415
1416         * tree.c (ctor_to_list): New fn.
1417         * tree.h: Declare it.
1418         (CONSTRUCTOR_ELT): New macro.
1419         (CONSTRUCTOR_NELTS): New macro.
1420
1421 2008-07-02  Richard Guenther  <rguenther@suse.de>
1422
1423         * tree-ssa-structalias.c (struct variable_info): Reorder
1424         to fill padding on 64bit hosts.  Make collapsed_to an int.
1425         (get_varinfo_fc): Deal with that.
1426         (new_var_info): Likewise.
1427         (collapse_rest_of_var): Likewise.
1428
1429 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
1430
1431         * doc/install.texi (--enable-java-home): Document.
1432         (--enable-aot-compile-rpm): Likewise.
1433         (--with-arch-directory): Likewise.
1434         (--with-os-directory): Likewise.
1435         (--with-origin-name): Likewise.
1436         (--with-arch-suffix): Likewise.
1437         (--with-jvm-root-dir): Likewise.
1438         (--with-jvm-jar-dir): Likewise.
1439         (--with-python-dir): Likewise.
1440
1441 2008-07-02  Richard Guenther  <rguenther@suse.de>
1442
1443         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1444         from decls explicitly.  Merge operand checking from tuples.
1445
1446 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1447
1448         * tree-switch-conversion.c: Included timevar.h which I forgot before.
1449         
1450 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1451
1452         * tree-switch-conversion.c: Included timevar.h
1453         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1454
1455         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1456
1457 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1458
1459         * tree-switch-conversion.c: Corrected various comments and
1460         whitespace issues
1461         (build_constructors): Fixed minor formatting mistakes.
1462
1463         * invoke.texi (Optimize Options): Corrected the
1464         switch-conversion-max-branch-ratio parameter.
1465
1466 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
1467
1468         * final.c (asm_insn_count): Return zero for an empty asm body.
1469
1470 2008-07-02  Richard Guenther  <rguenther@suse.de>
1471
1472         * bitmap.h (bitmap_set_bit): Return bool.
1473         (bitmap_clear_bit): Likewise.
1474         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
1475         write to the bitmap if it would.
1476         (bitmap_clear_bit): Likewise.
1477         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1478         bitmap_set_bit return value.
1479         (add_pred_graph_edge): Likewise.
1480         (add_graph_edge): Likewise.
1481         (do_sd_constraint): Likewise.
1482         (do_ds_constraint): Likewise.
1483
1484 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1485
1486         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1487         Fix -Wc++-compat and/or -Wcast-qual warnings.
1488         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1489         gen_regparm_prefix): Likewise.
1490         * vmsdbgout.c (write_modbeg, lookup_filename,
1491         vmsdbgout_source_line, vmsdbgout_init): Likewise.
1492
1493 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1494
1495         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1496         defaults.h definition apply.
1497
1498 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1499
1500         * function.c (assign_parm_remove_parallels): New.
1501         (assign_parm_setup_block_p): Do not return true for non-BLKmode
1502         PARALLELs.
1503         (assign_parm_setup_block): Do not handle them.
1504         (assign_parm_setup_reg, assign_parm_setup_stack): Call
1505         assign_parm_remove_parallels.
1506
1507 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1508
1509         * c-typeck.c (convert_for_assignment): Use
1510         vector_targets_convertible_p.
1511         * c-common.c (vector_targets_convertible_p): New.
1512         * c-common.h (vector_targets_convertible_p): New prototype.
1513         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1514         opaque_p_V2SI_type_node.
1515
1516 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
1517
1518         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1519         RFmode constants.
1520
1521 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
1522
1523         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1524         TFmode constants via two element DImode vector for hosts with
1525         HOST_BITS_PER_WIDE_INT < 64.
1526         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1527         also for HOST_BITS_PER_WIDE_INT < 64.
1528
1529 2008-07-01  Richard Guenther  <rguenther@suse.de>
1530
1531         PR tree-optimization/36666
1532         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1533         (get_constraint_exp_from_ssa_var): Split into ...
1534         (get_constraint_exp_for_temp): ... this ...
1535         (get_constraint_for_ssa_var): ... and that.
1536         Return constraint expressions for all touched sub-fields
1537         if the results address is not taken.
1538         (process_constraint): Remove assertion that aggregate
1539         assignments do not happen at this place.
1540         (get_constraint_for_component_ref): Add address_p argument.
1541         Return constraint expressions for all touched sub-fields
1542         if the results address is not taken.
1543         (do_deref): Use get_constraint_exp_for_temp.
1544         (get_constraint_for_1): Rename from ...
1545         (get_constraint_for): ... this.  Add the old function as wrapper.
1546         (do_structure_copy): Use get_constraint_for_1.
1547
1548 2008-07-01  Martin Jambor  <mjambor@suse.cz>
1549
1550         * Makefile.in (tree-switch-conversion.o): Add.
1551         (OBJS-common): Add tree-swtch-conversion.o.
1552         * passes.c (init_optimization_passes): Add pass_convert_switch.
1553         * tree-pass.h: (pass_convert_switch): Add.
1554         * tree-switch-conversion.c: New file.
1555         * gcc.dg/tree-ssa/cswtch.c: New testcase.
1556         * common.opt (ftree-cswtch): New option.
1557         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1558         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1559         * opts.c (decode_options): Set flag_tree_switch_conversion when
1560         optimization level is >= 2.
1561         * doc/invoke.texi (Optimize Options): Added description of
1562         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1563
1564 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1565
1566         * config/darwin-driver.c (darwin_default_min_version): Fix
1567         -Wc++-compat warnings.
1568
1569 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
1570
1571         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1572         of operand 0.
1573
1574 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1575
1576         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1577         
1578 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1579
1580         PR rtl-optimization/34744
1581         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1582         (df_scan_free_internal): Free data structures not
1583         allocated in storage pools.
1584         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1585         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1586         df_scan_free_mws_vec.
1587         * dse.c (dse_step6): Free offset_map_p and offset_map_n
1588         unconditionally.
1589
1590 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1591
1592         * config/i386/i386.c (contains_aligned_value_p): Return true
1593         for __float128.
1594         (ix86_function_arg_boundary): Return its natural boundary
1595         for __float128.
1596         (return_in_memory_32): Don't check TDmode.
1597         (ix86_split_to_parts): Support splitting into 4 parts and
1598         support TFmode for 32bit target.
1599         (ix86_split_long_move): Support splitting into 4 parts.
1600         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1601         for SSE2.
1602         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1603         (ix86_init_builtins): Here.
1604         (ix86_scalar_mode_supported_p): Always return true for TFmode.
1605         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1606         'q' and 'w', respectively. 
1607
1608         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1609         TARGET_64BIT.
1610         (movtf_internal): Likewise.
1611         (<code>tf2): Likewise.
1612         (*absnegtf2_sse): Likewise.
1613         (copysign<mode>3): Likewise.
1614         (copysign<mode>3_const): Likewise.
1615         (copysign<mode>3_var): Likewise.
1616         (define_split UNSPEC_COPYSIGN): Likewise.
1617         * config/i386/sse.md (*nandtf3): Likewise.
1618         (<code>tf3): Likewise.
1619         (*<code>tf3): Likewise.
1620
1621 2008-06-30  Joey Ye  <joey.ye@intel.com>
1622             H.J. Lu  <hongjiu.lu@intel.com>
1623
1624         * global.c (compute_regsets): Set frame_pointer_needed here.
1625         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1626
1627 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1628
1629         * doc/install.texi (specific): Expand Windows build notes.
1630
1631 2008-06-30  Ira Rosen  <irar@il.ibm.com>
1632
1633         PR tree-optimization/36648
1634         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1635         number of prolog iterations by step. Fix the comment.
1636
1637 2008-06-30  Richard Guenther  <rguenther@suse.de>
1638
1639         PR middle-end/36671
1640         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1641         handle calls from ECF_MALLOC functions.
1642         (handle_pure_call): ECF_MALLOC functions do not return
1643         call-used memory.
1644         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1645
1646 2008-06-29  Andreas Schwab  <schwab@suse.de>
1647
1648         * config/m68k/m68k.c (print_operand): Always print a float
1649         constant in hex.
1650         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1651         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1652         Remove macros.
1653
1654         * config/rs6000/x-linux64: Remove never used file.
1655
1656 2008-06-29  Richard Guenther  <rguenther@suse.de>
1657
1658         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1659         prototype.
1660         (struct alias_info): Move ...
1661         * tree-ssa-alias.c: ... here.
1662         (update_alias_info): Declare.
1663         (compute_may_aliases): Call it.
1664         (update_alias_info): New function.
1665         * tree-ssa-structalias.c (update_alias_info): Move ...
1666         * tree-ssa-alias.c (update_alias_info_1): ... here.
1667         * tree-ssa-structalias.c (process_constraint_1): Remove
1668         unused from_call argument.  Rename to ...
1669         (process_constraint): ... this.  Delete old wrapper.
1670         (make_constraint_to): Adjust callers.
1671         (handle_const_call): Likewise.
1672         (handle_pure_call): Likewise.
1673         (init_base_vars): Likewise.
1674         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
1675         (find_func_aliases): We don't need structure copies for
1676         complex types.
1677         (make_constraint_from_anything): Remove.
1678         (create_variable_info_for): For globals make constraints
1679         from escaped, not from anything.
1680         (compute_points_to_sets): Do not call update_alias_info.
1681         (ipa_pta_execute): Use make_constraint_from.
1682
1683 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1684
1685         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1686         (bitmap.o-warn, dominance.o-warn): New.
1687         * configure.ac (cxx_compat_warn): Delete.
1688         (loose_warn): Add -Wcast-qual and -Wc++-compat.
1689         * system.h: Remove #pragma diagnostic for -Wcast-qual and
1690         -Wc++-compat.
1691         * configure: Regenerate.
1692
1693         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1694         warnings.
1695
1696 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1697
1698         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1699         * df-scan.c (df_notes_rescan): Likewise.
1700         * ggc-page.c (set_page_table_entry): Likewise.
1701         * intl.c (gcc_gettext_width): Likewise.
1702         * varasm.c (get_unnamed_section, get_noswitch_section,
1703         get_section): Likewise.
1704
1705 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
1706
1707         * regrename.c (build_def_use): Don't copy RTX.
1708
1709 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
1710
1711         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1712         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
1713         punctuation.  Use @ref instead of @xref.
1714         (Function Names): Remove stray @display/@end display.
1715         (C++ Attributes): Use @ref instead of @xref.
1716         (Deprecated Features): Fix punctuation around @xref.
1717         (Backwards Compatibility): Likewise.
1718         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1719
1720 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
1721
1722         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1723         constants for E500 double.
1724
1725 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1726
1727         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1728         element type of const_vector.
1729
1730 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
1731
1732         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1733         Remove FLAGS_REG clobber from expander pattern.
1734         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1735         (anddi3, andsi3, andhi3, andqi3): Ditto.
1736         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1737         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1738         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1739         (ashlsi3, ashlhi3, ashlqi3): Ditto.
1740         (ashrsi3, ashrhi3, ashrqi3): Ditto.
1741         (lshrsi3, lshrhi3, lshrqi3): Ditto.
1742         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1743         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1744
1745 2008-06-28  Richard Guenther  <rguenther@suse.de>
1746
1747         * tree-ssa-structalias.c (callused_id, var_callused,
1748         callused_tree): Add.
1749         (handle_pure_call): New function.
1750         (find_func_aliases): Call it.
1751         (find_what_p_points_to): Handle the call-used set.
1752         (clobber_what_escaped): Likewise.
1753         (compute_call_used_vars): New function.
1754         (init_base_vars): Init the call-used variable.
1755         (do_sd_constraint): Do not propagate the solution from CALLUSED
1756         but use CALLUSED as a placeholder.
1757         (solve_graph): Likewise.
1758         * tree-flow-inline.h (gimple_call_used_vars): New function.
1759         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1760         (compute_call_used_vars): Declare.
1761         * tree-ssa-alias.c (set_initial_properties): Call
1762         compute_call_used_vars.
1763         (reset_alias_info): Clear call-used variables.
1764         (add_call_clobber_ops): Assert we are not called for const/pure
1765         functions.  Remove handling of them.
1766         (add_call_read_ops): Handle pure functions by adding the
1767         call-used set of variables as VUSEs.
1768         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1769         (delete_tree_ssa): Free it.
1770         * tree-dfa.c (remove_referenced_var): Clear the var from the
1771         call-used bitmap.
1772
1773 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
1774
1775         * tree.c (build_varargs_function_type_list): New.
1776         (build_function_type_list_1): New.
1777         (build_function_type_list): Use build_function_type_list_1.
1778         * tree.h (build_varargs_function_type_list): New.
1779
1780 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1781
1782         PR target/34856
1783         * config/spu/spu.c (spu_builtin_splats): Do not generate
1784         invalid CONST_VECTOR expressions.
1785         (spu_expand_vector_init): Likewise.
1786
1787 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
1788
1789         * optabs.c (libfunc_decls): New variable.
1790         (libfunc_decl_hash, libfunc_decl_eq): New functions.
1791         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1792         for the same function twice.
1793
1794 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
1795
1796         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1797         ix86_expand_binary_operator directly.
1798         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
1799         for operand 2.
1800         (*ashrti3_1): Ditto.
1801         (*lshrti3_1): Ditto.
1802         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1803         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1804         using only one splitter.  Conditionaly execute splitter before or
1805         after peephole2 pass.
1806         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1807         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
1808         Use only one alternative in asm template.
1809         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1810         in asm template.
1811         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1812         "J" operand constraint for operand 2.
1813         (*ashldi3_cconly_rex64): Ditto.
1814         (*ashrdi3_cmp_rex64): Ditto.
1815         (*ashrdi3_cconly_rex64): Ditto.
1816         (*lshrdi3_cmp_rex64): Ditto.
1817         (*lshrdi3_cconly_rex64): Ditto.
1818         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1819         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1820         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1821         gen_x86_shrd_1.
1822
1823 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1824
1825         * gimplify.c (omp_is_private): Don't return true if decl is not
1826         already private on #pragma omp for or #pragma omp parallel for.
1827
1828         PR debug/36617
1829         * tree-cfg.c (struct move_stmt_d): Replace block field with
1830         orig_block and new_block fields.
1831         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1832         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1833         (move_block_to_fn): Replace vars_map and new_label_map arguments
1834         with struct move_stmt_d pointer.
1835         (replace_block_vars_by_duplicates): New function.
1836         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
1837         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
1838         all subblocks of ORIG_BLOCK to the new function.  Call
1839         replace_block_vars_by_duplicates.
1840         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1841         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1842         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
1843         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1844         (expand_omp): Temporarily set input_location to the location of
1845         region's controlling stmt.
1846         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1847         BIND_EXPR, push ctx->block_vars and gimplification vars into
1848         the BIND_EXPR and its block's BLOCK_VARS instead of directly
1849         into dest function.
1850         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1851         there are any BLOCK_VARS.
1852         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1853         OMP_PARALLEL or OMP_TASK stmt.
1854         (lower_omp): Save and restore input_location around the lower_omp_1
1855         call.
1856
1857 2008-06-27  Richard Guenther  <rguenther@suse.de>
1858
1859         PR tree-optimization/36400
1860         PR tree-optimization/36373
1861         PR tree-optimization/36344
1862         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1863         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1864         (update_alias_info): Remove call clobbering code.
1865         (make_constraint_to): New helper function.
1866         (make_escape_constraint): Likewise.
1867         (handle_rhs_call): Use it on all pointer containing arguments.
1868         Also mark the static chain escaped.
1869         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1870         instead of ANYTHING.
1871         (make_constraint_from): New helper split out from ...
1872         (make_constraint_from_anything): ... here.
1873         (find_func_aliases): Add constraints for escape sites.
1874         (intra_create_variable_infos): Make constraints from NONLOCAL
1875         for parameters.
1876         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1877         as ANYTHING.
1878         (clobber_what_p_points_to): Remove.
1879         (clobber_what_escaped): New function.
1880         (init_base_vars): Init NONLOCAL and ESCAPED.
1881         (do_sd_constraint): Do not propagate the solution from ESCAPED
1882         but use ESCAPED as a placeholder.
1883         (solve_graph): Likewise.
1884         * tree-flow.h (clobber_what_p_points_to): Remove.
1885         (clobber_what_escaped): Declare.
1886         * tree-ssa-alias.c (set_initial_properties): Call it.
1887         Remove code clobbering escaped pointers.
1888
1889 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1890
1891         * function.c (allocate_struct_function): Only allocate a unique
1892         funcdef_no if the decl is nonzero.
1893
1894 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1895
1896         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1897         * config/mips/mips.c (mips_split_const_insns): New function.
1898         * config/mips/mips.md (move_type): New attribute.
1899         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
1900         (dword_mode): New attribute.
1901         (type): Avoid long line.  Map "move_type"s to "type"s,
1902         choosing "multi" for doubleword moves if appropriate.
1903         Swap MTC/MFC comments to match their declaration order.
1904         (extended_mips16): Default to "yes" if "move_type" is "sll0",
1905         "type" is "branch" or "jal" is "direct".
1906         (length): Handle "extended_mips16" first.  Make the default
1907         "0" for "ghost" instructions.  Set the length from "move_type".
1908         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1909         of "type", with "sll0" for the register alternative.  Remove the
1910         "extended_mips16" attribute.
1911         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1912         of "type", with "shift_shift" for the register alternative.
1913         Remove the "length" attribute.
1914         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1915         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1916         of "type", with "andi" for the register alternative.
1917         (*zero_extendqihi2): Likewise.
1918         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1919         of "andi" instead of a "type" of "arith".
1920         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1921         instead of "type".
1922         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1923         (mov_<store>r, *mov<mode>_ra): Likewise.
1924         (extendsidi2): Use "move_type" instead of "type", with "move"
1925         for the register alternative.
1926         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1927         of "type", with "signext" for the register alternative.
1928         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1929         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1930         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1931         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1932         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1933         (unnamed branch insn): Likewise.
1934         (*movdi_gp32_fp64): Fold into...
1935         (*movdi_32bit): ...here.
1936         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1937         (*movdf_hardfloat): ...this new pattern.
1938         (*movdf_softfloat): Remove redundant FPR alternatives.
1939         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1940         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1941         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
1942         the "move" attribute.
1943         (*movdi_32bit): Use "move_type" instead of "type" and remove the
1944         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
1945         and "store" for COP loads and stores.
1946         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1947         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1948         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1949         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1950         (*movtf_mips16, *movv2sf): Likewise.
1951         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1952         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1953         (mfhc1<mode>): Use "move_type" instead of "move".
1954         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1955         (loadgp_blockage): Remove the "length" attribute.
1956         (blockage, set_got_version, update_got_version): Likewise.
1957         (call_internal): Remove the "extended_mips16" attribute.
1958         (call_value_internal, call_value_multiple_internal): Likewise.
1959         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1960         instead of "move".
1961         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1962         the "length" attribute.
1963
1964 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1965
1966         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1967         -Wcast-qual warnings.
1968         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1969         handle_pragma_pop_macro): Likewise.
1970         * collect2.c (resolve_lib_name): Likewise.
1971         * config/arc/arc.c (arc_init): Likewise.
1972         * config/arm/arm.c (neon_builtin_compare,
1973         locate_neon_builtin_icode): Likewise.
1974         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1975         * config/bfin/bfin.c (bfin_init_machine_status,
1976         bfin_optimize_loop): Likewise.
1977         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1978         * config/cris/cris.c (cris_init_expanders): Likewise.
1979         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1980         * config/darwin.c (machopic_indirection_eq,
1981         machopic_indirection_name, machopic_output_indirection): Likewise.
1982         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1983         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1984         frv_optimize_membar): Likewise.
1985         * config/i386/cygwin.h (mingw_scan,
1986         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1987         * config/i386/cygwin1.c (mingw_scan): Likewise.
1988         * config/i386/i386.c (machopic_output_stub): Likewise.
1989         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1990         i386_pe_unique_section): Likewise.
1991         * config/ia64/ia64.c (ia64_init_machine_status,
1992         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1993         Likewise.
1994         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1995         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1996         * config/m68k/m68k.c (m68k_handle_option,
1997         m68k_sched_md_init_global): Likewise.
1998         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1999         mcore_unique_section): Likewise.
2000         * config/mips/mips.c (mips_block_move_straight,
2001         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
2002         Likewise.
2003         * config/mmix/mmix.c (mmix_init_machine_status,
2004         mmix_encode_section_info): Likewise.
2005         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
2006         * config/rs6000/rs6000.c (rs6000_init_machine_status,
2007         print_operand_address, output_toc, redefine_groups,
2008         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
2009         * config/s390/s390.c (s390_init_machine_status): Likewise.
2010         * config/score/score.c (score_block_move_straight,
2011         score_block_move_loop_body): Likewise.
2012         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2013         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2014         * emit-rtl.c (find_auto_inc): Likewise.
2015         * gcc.c (translate_options, process_command): Likewise.
2016         * reorg.c (dbr_schedule): Likewise.
2017         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
2018         * xcoffout.c (xcoffout_declare_function): Likewise.
2019
2020 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
2021
2022         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
2023         ipa-pta working again.
2024
2025 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
2026
2027         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
2028         genautomata.
2029
2030 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
2031
2032         * config.gcc (powerpc*-*-*): Add new core e500mc.
2033         * config/rs6000/e500mc.md: New file.
2034         * config/rs6000/rs6000.c (processor_costs): Add new costs for
2035         e500mc.
2036         (rs6000_override_options): Add e500mc case to
2037         processor_target_table. Altivec and Spe options not allowed
2038         with e500mc. Add isel instruction to e500mc by
2039         default. Initialize rs6000_cost for e500mc.
2040         (rs6000_issue_rate): Set issue rate for e500mc.
2041         * config/rs6000/rs6000.h (processor_type): Add
2042         PROCESSOR_PPCE500MC.
2043         (ASM_CPU_SPEC): Add e500mc.
2044         Set TARGET_ISEL to rs6000_isel.
2045         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
2046         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
2047         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
2048         Include e500mc.md.
2049         * doc/invoke.texi: Add e500mc to list of cpus.
2050
2051 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2052
2053         PR c/34867
2054         * c-lex.c (lex_charconst): Initialize unsignedp.
2055
2056 2008-06-27  Olivier Hainque  <hainque@adacore.com>
2057
2058         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2059         documented assumptions.
2060
2061 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2062
2063         * dwarf2out.c: Remove trailing white spaces.  Break long line
2064         in comments.
2065
2066 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
2067
2068         * libfuncs.h (LTI_synchronize): New libfunc_index.
2069         (synchronize_libfunc): Declare.
2070         * builtins.c (expand_builtin_synchronize): Consider using
2071         synchronize_libfunc before falling back on an asm blockage.
2072         * config/mips/mips.c: Include libfuncs.h
2073         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2074
2075 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
2076
2077         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2078         parameter.  Copy stack_reg to r11 where appropriate.
2079         (no_global_regs_above): Add gpr parameter.
2080         (rs6000_stack_info): Only add padding for SPE save area if we
2081         are saving SPE GPRs and CR.
2082         (saveres_routine_syms): New variable.
2083         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2084         Define.
2085         (rs6000_savres_routine_sym): New function.
2086         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2087         split out of...
2088         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
2089         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
2090         Tweak FPR out-of-line saving.
2091         (rs6000_make_savres_rtx): New function.
2092         (rs6000_use_multiple_p): New function.
2093         (rs6000_savres_strategy): New function.
2094         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
2095         out-of-line if appropriate.
2096         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2097         if we are optimizing for size.
2098         (GP_SAVE_INLINE): Define.
2099         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2100         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2101         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2102         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2103         (*save_fpregs_<mode>): Add use of r11.
2104         (*restore_gpregs_<mode>): New insn.
2105         (*return_and_restore_gpregs_<mode>): New insn.
2106         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2107         use r11.
2108         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2109         (*restore_gpregs_spe): New insn.
2110         (*return_and_restore_gpregs_spe): New insn.
2111         * config/rs6000/predicates.md (save_world_operation): Fix check.
2112
2113 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2114
2115         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2116         this point, so assert that.
2117
2118 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2119
2120         * cfganal.c: Include vec.h and vecprim.h.
2121         (compute_idf): Import from...
2122         * tree-into-ssa (compute_idf): ...here.
2123         * basic-block.h (compute_idf): Export.
2124
2125 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
2126
2127         * c-decl.c (merge_decls): Use !current_function_decl to check for
2128         extern declaration of C99 inline function being at file scope.
2129
2130 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
2131
2132         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2133
2134 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2135
2136         * alias.c (record_alias_subset, init_alias_analysis): Fix
2137         -Wc++-compat and/or -Wcast-qual warnings.
2138         * attribs.c (lookup_attribute_spec): Likewise.
2139         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2140         copy_bb, connect_traces,
2141         find_rarely_executed_basic_blocks_and_cr): Likewise.
2142         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2143         note_btr_set, migrate_btr_defs): Likewise.
2144         * builtins.c (result_vector, expand_builtin_memcpy,
2145         expand_builtin_mempcpy_args, expand_builtin_strncpy,
2146         builtin_memset_read_str, expand_builtin_printf,
2147         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2148         Likewise.
2149         * caller-save.c (mark_set_regs): Likewise.
2150         * calls.c (expand_call, emit_library_call_value_1): Likewise.
2151         * cgraph.c (cgraph_edge): Likewise.
2152         * combine.c (likely_spilled_retval_1): Likewise.
2153         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2154         htab_counts_entry_del, get_coverage_counts): Likewise.
2155         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2156         new_cselib_val): Likewise.
2157         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2158         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2159         Likewise.
2160         * df-core.c (df_compact_blocks): Likewise.
2161         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2162         * df-scan.c (df_grow_reg_info, df_ref_create,
2163         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2164         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2165         df_record_entry_block_defs, df_record_exit_block_uses,
2166         df_bb_verify): Likewise.
2167         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2168         DF_REF_EXTRACT_MODE_CONST): New.
2169         * dominance.c (get_immediate_dominator, get_dominated_by,
2170         nearest_common_dominator, root_of_dom_tree,
2171         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2172         -Wc++-compat and/or -Wcast-qual warnings.
2173         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2174         record_store, replace_read, check_mem_read_rtx, scan_insn,
2175         dse_step1, dse_record_singleton_alias_set): Likewise.
2176         * dwarf2asm.c (dw2_force_const_mem): Likewise.
2177
2178 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2179
2180         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2181         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2182         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2183         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2184         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2185         add_ranges_num, add_ranges_by_labels, file_info_cmp,
2186         file_name_acquire, output_file_names, add_const_value_attribute,
2187         premark_used_types_helper, file_table_eq, file_table_hash,
2188         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2189         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2190         -Wcast-qual warnings.
2191         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2192         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2193         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2194         gen_reg_rtx, start_sequence, init_emit): Likewise.
2195         * et-forest.c (et_new_occ, et_new_tree): Likewise.
2196         * except.c (init_eh_for_function, gen_eh_region,
2197         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
2198         arh_to_landing_pad, arh_to_label, add_action_record,
2199         add_call_site, switch_to_exception_section): Likewise.
2200         * expmed.c (synth_mult): Likewise.
2201         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
2202         store_expr): Likewise.
2203         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
2204         Likewise.
2205         * function.c (assign_stack_temp_for_type,
2206         allocate_struct_function, match_asm_constraints_1): Likewise.
2207         * gcov-io.c (gcov_allocate): Likewise.
2208         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
2209         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
2210         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
2211         record_one_set, insert_expr_in_table, insert_set_in_table,
2212         dump_hash_table, compute_hash_table_work, alloc_hash_table,
2213         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
2214         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
2215         -Wcast-qual warnings.
2216
2217 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2218
2219         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
2220         -Wcast-qual warnings.
2221         * gcc.c (process_command): Likewise.
2222         * genattrtab.c (oballoc): Use XOBNEW.
2223         (oballocvec): Define.
2224         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
2225         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
2226         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
2227         -Wc++-compat and/or -Wcast-qual warnings.
2228         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
2229         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
2230         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2231         gen_presence_absence_set, gen_automaton, gen_regexp_el,
2232         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2233         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2234         add_excls, process_presence_absence_names,
2235         process_presence_absence_patterns, add_presence_absence,
2236         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2237         get_free_state, add_arc, get_free_automata_list_el,
2238         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2239         transform_3, cache_presence, create_ainsns, create_automata,
2240         create_state_ainsn_table, dfa_insn_code_enlarge,
2241         output_trans_func, output_min_issue_delay_func,
2242         output_dead_lock_func, output_reset_func,
2243         output_get_cpu_unit_code_func, output_dfa_start_func,
2244         expand_automata): Likewise.
2245         * genextract.c (gen_insn): Likewise.
2246         * gengtype-lex.l: Likewise.
2247         * gengtype.c (read_input_list, adjust_field_type,
2248         process_gc_options): Likewise.
2249         * genoutput.c (note_constraint): Likewise.
2250         * genpreds.c (mangle, add_constraint): Likewise.
2251         * genrecog.c (process_define_predicate, new_decision,
2252         add_to_sequence): Likewise.
2253         * gensupport.c (record_insn_name): Likewise.
2254
2255 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2256
2257         * config/i386/driver-i386.c (detect_caches_amd,
2258         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2259         and/or -Wcast-qual warnings.
2260         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2261         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2262         gt_pch_save): Likewise.
2263         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2264         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2265         * global.c (compute_regsets): Likewise.
2266         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2267         finish_graph_dump_file): Likewise.
2268         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2269         unlink_bb_notes): Likewise.
2270         * integrate.c (get_hard_reg_initial_val): Likewise.
2271         * ipa-prop.c (ipa_push_func_to_list): Likewise.
2272         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2273         * local-alloc.c (update_equiv_regs): Likewise.
2274         * loop-invariant.c (check_invariant_table_size,
2275         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2276         Likewise.
2277         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2278         altered_reg_used, mark_altered): Likewise.
2279         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2280         insert_var_expansion_initialization,
2281         combine_var_copies_in_loop_exit, apply_opt_in_copies,
2282         release_var_copies): Likewise.
2283         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2284         analyze_matrix_decl, add_allocation_site, analyze_transpose,
2285         analyze_accesses_for_phi_node, check_var_notmodified_p,
2286         check_allocation_function, find_sites_in_func,
2287         record_all_accesses_in_func, transform_access_sites,
2288         transform_allocation_sites): Likewise.
2289         * omp-low.c (new_omp_region, create_omp_child_function_name,
2290         check_omp_nesting_restrictions, check_combined_parallel,
2291         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2292         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2293         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2294         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2295         Likewise.
2296         * opts-common.c (prune_options): Likewise.
2297         * opts.c (add_input_filename, print_filtered_help,
2298         get_option_state): Likewise.
2299         * params.c (add_params): Likewise.
2300         * passes.c (set_pass_for_id, next_pass_1,
2301         do_per_function_toporder, pass_fini_dump_file): Likewise.
2302         * postreload.c (reload_cse_simplify_operands): Likewise.
2303         * predict.c (tree_predicted_by_p, tree_predict_edge,
2304         clear_bb_predictions, combine_predictions_for_bb): Likewise.
2305
2306 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2307
2308         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2309         warnings.
2310         * recog.c (check_asm_operands, validate_change_1): Likewise.
2311         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2312         subst_asm_stack_regs): Likewise.
2313         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2314         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2315         * regmove.c (reg_is_remote_constant_p): Likewise.
2316         * regrename.c (regrename_optimize, scan_rtx_reg,
2317         kill_clobbered_value, kill_set_value, kill_autoinc_value):
2318         Likewise.
2319         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2320         regstat_compute_calls_crossed): Likewise.
2321         * reload1.c (init_reload, new_insn_chain,
2322         has_nonexceptional_receiver, reload, copy_reloads,
2323         calculate_needs_all_insns, init_elim_table): Likewise.
2324         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2325         * rtl.c (shallow_copy_rtx_stat): Likewise.
2326         * rtlanal.c (parms_set): Likewise.
2327         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2328         sbitmap_resize, sbitmap_vector_alloc): Likewise.
2329         * sched-ebb.c (earliest_block_with_similiar_load,
2330         add_deps_for_risky_insns): Likewise.
2331         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2332         schedule_region): Likewise.
2333         * see.c (eq_descriptor_pre_extension,
2334         hash_descriptor_pre_extension, hash_del_pre_extension,
2335         eq_descriptor_properties, hash_descriptor_properties,
2336         hash_del_properties, see_seek_pre_extension_expr,
2337         see_initialize_data_structures, see_print_register_properties,
2338         see_print_pre_extension_expr, see_delete_merged_def_extension,
2339         see_delete_unmerged_def_extension, see_emit_use_extension,
2340         see_pre_delete_extension, see_map_extension, see_commit_changes,
2341         see_analyze_merged_def_local_prop,
2342         see_analyze_merged_def_local_prop,
2343         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2344         see_set_prop_merged_def, see_set_prop_unmerged_def,
2345         see_set_prop_unmerged_use, see_print_one_extension,
2346         see_merge_one_use_extension, see_merge_one_def_extension,
2347         see_store_reference_and_extension, see_update_uses_relevancy,
2348         see_update_defs_relevancy): Likewise.
2349         * statistics.c (hash_statistics_hash, hash_statistics_eq,
2350         hash_statistics_free, curr_statistics_hash): Likewise.
2351         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2352         expand_asm_operands, expand_return, case_bit_test_cmp,
2353         expand_case): Likewise.
2354         * stor-layout.c (start_record_layout): Likewise.
2355         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2356         gt_pch_save_stringpool): Likewise.
2357         * tree-data-ref.c (hash_stmt_vertex_info,
2358         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2359         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2360
2361 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
2362
2363         PR target/36627
2364         * config/i386/i386.md : Change constraints of HImode and QImode
2365         immediate operands from "i" to "n".  Change SImode "ni" constraint to
2366         "i" and SImode "rmi" constraint to "g".  Remove all constraints
2367         from const0_operand and const1_operand predicated operands.
2368         (i): Change QImode and HImode attribute from "i" to "n".
2369         (*subqi_2): Change HImode operands to QImode.
2370         (*subqi_3): Ditto.
2371
2372 2008-06-25  Olivier Hainque  <hainque@adacore.com>
2373
2374         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2375         sed substitutions.
2376
2377 2008-06-25  Richard Guenther  <rguenther@suse.de>
2378
2379         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2380         not overflow the result type.
2381
2382 2008-06-25  Richard Guenther  <rguenther@suse.de>
2383
2384         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2385         (vn_lookup): Likewise.
2386
2387 2008-06-25  Richard Guenther  <rguenther@suse.de>
2388
2389         PR tree-optimization/35518
2390         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2391         * tree-sra.c (instantiate_element): Use fold_build3 to build
2392         BIT_FIELD_REFs.
2393         (try_instantiate_multiple_fields): Likewise.
2394
2395 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2396
2397         * config/rs6000/rs6000.md: Change all string instruction's clobber to
2398         be early clobbers.
2399
2400 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2401
2402         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2403         use_backchain_to_restore_sp to true
2404         if the offset of the link register save area would go over the 32k - 1
2405         offset limit of the load
2406         instructions.
2407
2408 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2409
2410         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2411         anchor for the type-punning blurb.  Cross-reference "Structures
2412         unions enumerations and bit-fields implementation".  Provide a
2413         cast-through-pointer example.  Make final sentence self-contained.
2414         * doc/implement-c.texi (Structures unions enumerations and
2415         bit-fields implementation): Cross-reference the type-punning blurb
2416         in the -fstrict-aliasing documentation.
2417
2418 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2419
2420         PR middle-end/36594
2421         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2422         the memory instead of the memory itself for the save area.
2423
2424 2008-06-24  Olivier Hainque  <hainque@adacore.com>
2425             Nicolas Roche  <roche@adacore.com>
2426
2427         * gengtype.c (srcdir_len): size_t instead of int.
2428         (get_file_realbasename): New function.  For F a filename, the real
2429         basename of F, with all the path components stripped.
2430         (get_file_srcdir_relative_path): New function.  For F a filename, the
2431         relative path to F from $(srcdir).
2432         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2433         get_file_realbasename.  Adjust the head comment.
2434         (get_prefix_langdir_index): New function. For F a filename, return the
2435         lang_dir_names[] relative index of the language directory that is
2436         a prefix in F.
2437         (get_file_langdir): For F a filename, return the name of the language
2438         directory where F is located.
2439         (get_file_gtfilename): New function. The gt- output file name for an
2440         input filename F.
2441         (get_output_file_with_visibility): Replace in-line computations with
2442         uses of get_file_gtfilename and get_prefix_langdir_index.
2443         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2444
2445 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
2446
2447         PR tree-optimization/36504
2448         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2449         references without base address.
2450
2451 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2452
2453         PR middle-end/36584
2454         * calls.c (expand_call): Increase alignment for recursive functions.
2455
2456 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
2457
2458         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2459         (TARGET_FUNCTION_VALUE): New define.
2460         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2461         * config/avr/avr.h (FUNCTION_VALUE): Remove.
2462
2463 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2464
2465         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2466         (fmod<mode>3): Ditto.
2467         (remainderxf3): Ditto.
2468         (remainder<mode>3): Ditto.
2469
2470 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
2471
2472         PR target/36533
2473         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2474         REG is a hard register.
2475
2476         PR tree-optimization/36508
2477         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2478         499, don't check it at all in release compilers.
2479
2480 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2481
2482         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2483         together with SSE_TARGET_MATH to disable insn pattern.
2484         (*fop_<MODEF:mode>_2_i387): Ditto.
2485         (*fop_<MODEF:mode>_3_i387): Ditto.
2486
2487 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
2488
2489         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2490         
2491 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2492
2493         PR middle-end/34906
2494         * gimplify.c (gimplify_asm_expr): Check the return code of
2495         parse_output_constraint call, set function return and is_inout
2496         value if it failed.
2497
2498 2008-06-22  Ian Lance Taylor  <iant@google.com>
2499
2500         * c-lex.c (narrowest_unsigned_type): Change itk to int.
2501         (narrowest_signed_type): Likewise.
2502         * c-typeck.c (c_common_type): Change local variable mclass to enum
2503         mode_class, twice.
2504         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2505         tcc_comparison, not the tree code itself.
2506         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2507         (c_expand_expr): Cast modifier to enum expand_modifier.
2508         * c-common.h (C_RID_CODE): Add casts.
2509         (C_SET_RID_CODE): Define.
2510         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2511         (c_lex_one_token): Add cast to avoid warning.
2512         (c_parser_objc_type_name): Rename local typename to type_name.
2513         (check_no_duplicate_clause): Change code parameter to enum
2514         omp_clause_code.
2515         (c_parser_omp_var_list_parens): Change kind parameter to enum
2516         omp_clause_code.
2517         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2518         c_parser_omp_list_var_parens.
2519         (c_parser_omp_threadprivate): Likewise.
2520         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2521         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2522         * c-format.c (NO_FMT): Define.
2523         (printf_length_specs): Use NO_FMT.
2524         (asm_fprintf_length_specs): Likewise.
2525         (gcc_diag_length_specs): Likewise.
2526         (scanf_length_specs): Likewise.
2527         (strfmon_length_specs): Likewise.
2528         (gcc_gfc_length_specs): Likewise.
2529         (printf_flag_specs): Change 0 to STD_C89.
2530         (asm_fprintf_flag_specs): Likewise.
2531         (gcc_diag_flag_specs): Likewise.
2532         (gcc_cxxdiag_flag_specs): Likewise.
2533         (scanf_flag_specs): Likewise.
2534         (strftime_flag_specs): Likewise.
2535         (strfmon_flag_specs): Likewise.
2536         (print_char_table): Likewise.
2537         (asm_fprintf_char_table): Likewise.
2538         (gcc_diag_char_table): Likewise.
2539         (gcc_tdiag_char_table): Likewise.
2540         (gcc_cdiag_char_table): Likewise.
2541         (gcc_cxxdiag_char_table): Likewise.
2542         (gcc_gfc_char_table): Likewise.
2543         (scan_char_table): Likewise.
2544         (time_char_table): Likewis.
2545         (monetary_char_table): Likewise.
2546         * c-format.h (BADLEN): Likewise.
2547
2548 2008-06-21  Ian Lance Taylor  <iant@google.com>
2549
2550         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2551         Define END_OF_BASE_TREE_CODES around inclusion.
2552         * tree.c (tree_code_type): New global array.
2553         (tree_code_length, tree_code_name): Likewise.
2554         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2555         $(lang_tree_files).
2556         (all-tree.def, s-alltree): New targets.
2557         (gencheck.h, s-gencheck): Remove.
2558         (tree.o): Depend upon all-tree.def.
2559         (build/gencheck.o): Remove gencheck.h dependency.
2560         (mostlyclean): Don't remove gencheck.h.
2561         * c-common.h (enum c_tree_code): Remove.
2562         * c-lang.c (tree_code_type): Remove.
2563         (tree_code_length, tree_code_name): Remove.
2564         * gencheck.c (tree_codes): Include all-tree.def, rather than
2565         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
2566         after it is used.
2567         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2568         than tree.def.
2569         * cp/cp-tree.h (enum cplus_tree_code): Remove.
2570         (operator_name_info): Size to MAX_TREE_CODES.
2571         (assignment_operator_name_info): Likewise.
2572         * cp/cp-lang.c (tree_code_type): Remove.
2573         (tree_code_length, tree_code_name): Remove.
2574         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2575         (assignment_operator_name_info): Likewise.
2576         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2577         MAX_TREE_CODES.
2578         * cp/mangle.c (write_expression): Likewise.
2579         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2580         * fortran/f95-lang.c (tree_code_type): Remove.
2581         (tree_code_length, tree_code_name): Remove.
2582         * java/java-tree.h (enum java_tree_code): Remove.
2583         * java/lang.c (tree_code_type): Remove.
2584         (tree_code_length, tree_code_name): Remove.
2585         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2586         * objc/objc-act.h (enum objc_tree_code): Remove.
2587         * objc/objc-lang.c (tree_code_type): Remove.
2588         (tree_code_length, tree_code_name): Remove.
2589         * objcp/objcp-lang.c (tree_code_type): Remove.
2590         (tree_code_length, tree_code_name): Remove.
2591         * ada/ada-tree.h (enum gnat_tree_code): Remove.
2592         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2593         * ada/misc.c (tree_code_type): Remove.
2594         (tree_code_length, tree_code_name): Remove.
2595
2596 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2597
2598         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2599         the grand_bitmap_obstack.
2600
2601 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2602
2603         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2604         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2605         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2606         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2607         move_stmt_r, new_label_mapper): Likewise.
2608         * tree-complex.c (cvc_lookup): Likewise.
2609         * tree-dfa.c (create_function_ann): Likewise.
2610         * tree-dump.c (dump_register): Likewise.
2611         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2612         find_phi_replacement_condition): Likewise.
2613         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2614         tree_function_versioning): Likewise.
2615         * tree-into-ssa.c (cmp_dfsnum): Likewise.
2616         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2617         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2618         get_nonlocal_debug_decl, convert_nonlocal_reference,
2619         convert_nonlocal_omp_clauses, get_local_debug_decl,
2620         convert_local_reference, convert_local_omp_clauses,
2621         convert_nl_goto_reference, convert_nl_goto_receiver,
2622         convert_tramp_reference, convert_call_expr): Likewise.
2623         * tree-outof-ssa.c (contains_tree_r): Likewise.
2624         * tree-parloops.c (reduction_phi, initialize_reductions,
2625         eliminate_local_variables_1, add_field_for_reduction,
2626         add_field_for_name, create_phi_for_local_result,
2627         create_call_for_reduction_1, create_loads_for_reductions,
2628         create_stores_for_reduction, create_loads_and_stores_for_name):
2629         Likewise.
2630         * tree-phinodes.c (allocate_phi_node): Likewise.
2631         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2632         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2633         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2634         * tree-ssa-coalesce.c (compare_pairs): Likewise.
2635         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2636         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2637         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2638         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
2639         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2640         vn_nary_op_insert): Likewise.
2641         * tree-ssa.c (redirect_edge_var_map_add,
2642         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2643         * tree-vectorizer.c (vectorize_loops): Likewise.
2644         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2645         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2646         tree_cons_stat, build1_stat, build_variant_type_copy,
2647         decl_init_priority_lookup, decl_fini_priority_lookup,
2648         decl_priority_info, decl_restrict_base_lookup,
2649         decl_restrict_base_insert, decl_debug_expr_lookup,
2650         decl_debug_expr_insert, decl_value_expr_lookup,
2651         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2652         type_hash_add, get_file_function_name, tree_check_failed,
2653         tree_not_check_failed, tree_range_check_failed,
2654         omp_clause_range_check_failed, build_omp_clause,
2655         build_vl_exp_stat): Likewise.
2656         * value-prof.c (gimple_histogram_value,
2657         gimple_duplicate_stmt_histograms): Likewise.
2658         * var-tracking.c (attrs_list_insert, attrs_list_copy,
2659         unshare_variable, variable_union_info_cmp_pos, variable_union,
2660         dataflow_set_different_1, dataflow_set_different_2,
2661         vt_find_locations, variable_was_changed, set_variable_part,
2662         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2663         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2664         section_entry_hash, object_block_entry_eq,
2665         object_block_entry_hash, create_block_symbol,
2666         initialize_cold_section_name, default_function_rodata_section,
2667         strip_reg_name, set_user_assembler_name, const_desc_eq,
2668         build_constant_desc, output_constant_def, lookup_constant_def,
2669         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2670         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2671         default_internal_label): Likewise.
2672         * varray.c (varray_init, varray_grow): Likewise.
2673         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2674
2675 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2676
2677         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2678         operators for "test" insn.  Macroize insn using SWI mode macro.
2679         (*jcc_fused_2): Ditto.
2680         (*jcc_fused_3): Macroize insn using SWI mode macro.
2681         (*jcc_fused_4): Ditto.
2682
2683 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
2684
2685         * tree-ssa-pre.c: Fix typo in comment.
2686         (init_antic, fini_antic): Add explicit funtions for
2687         initializing and deinitializing ANTIC and AVAIL sets.
2688         (create_expression_by_pieces): Fix typo in comment.
2689         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2690         (execute_pre): Eventually dump details about ANTIC_IN.
2691
2692 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2693
2694         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2695         * gcc.c (translate_options, init_spec, store_arg, read_specs,
2696         add_to_obstack, file_at_path, find_a_file, execute,
2697         add_preprocessor_option, add_assembler_option, add_linker_option,
2698         process_command, insert_wrapper, do_option_spec, do_self_spec,
2699         spec_path, do_spec_1, is_directory, main, used_arg,
2700         getenv_spec_function): Likewise.
2701         * tlink.c (symbol_hash_lookup, file_hash_lookup,
2702         demangled_hash_lookup, symbol_push, file_push, frob_extension):
2703         Likewise.
2704
2705 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2706
2707         * doc/rtl.texi: Updated subreg section.
2708
2709 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2710
2711         PR c++/36523
2712         * cgraphunit.c (cgraph_process_new_functions): Don't clear
2713         node->needed and node->reachable.
2714         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2715         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2716         (expand_task_call): Don't call expand_task_copyfn.
2717         (expand_task_copyfn): Renamed to...
2718         (finalize_task_copyfn): ... this.
2719
2720 2008-06-19  Jan Hubicka  <jh@suse.cz>
2721
2722         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2723         clobbering framepointer.
2724
2725 2008-06-19  Jan Hubicka  <jh@suse.cz>
2726
2727         * tree-optimize.c (execute_early_local_optimizations): Set
2728         cgraph_state only at first invocation.
2729
2730 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2731
2732         * system.h (-Wc++-compat): Activate as a warning, no an error.
2733
2734 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2735
2736         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2737         instead of "#" in insn asm template.
2738         (*jcc_fused_2): Ditto.
2739
2740 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2741
2742         * config/i386/i386.h (ix86_tune_indices)
2743         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2744         (TARGET_FUSE_CMP_AND_BRANCH): New define.
2745         * config/i386/i386.md (*jcc_fused_1): New insn pattern
2746         (*jcc_fused_2): Ditto.
2747         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2748         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2749         (print operand): Handle 'E' and 'e' code.
2750
2751 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
2752
2753         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2754         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2755         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2756
2757 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
2758
2759         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2760         node->decl.
2761         (cgraph_expand_function): Use local copy of decl.
2762         (cgraph_expand_all_functions): Remove redundant initialization of
2763         order_pos.
2764         (cgraph_optimize): Reword internal_error message.
2765
2766 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
2767
2768         * arm-protos.h (arm_return_in_memory): Remove public
2769         arm_return_in_memory() prototype.
2770         * arm.c (arm_return_in_memory): Add static prototype, add target
2771         hook macro, change definition and comments.
2772         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2773
2774 2008-06-19  Ben Elliston  <bje@au.ibm.com>
2775
2776         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2777         real.c: Remove references to IEEE 754R.
2778         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2779         * doc/libgcc.texi (Decimal float library routines): Likewise.
2780
2781 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2782
2783         * targhooks.h (struct gcc_target): New member unwind_word_mode.
2784         (default_unwind_word_mode): Add prototype.
2785         * targhooks.c (default_unwind_word_mode): New function.
2786         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2787         instead of word_mode.
2788         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2789         (TARGET_INITIALIZER): Use it.
2790
2791         * c-common.c (handle_mode_attribute): Support "unwind_word"
2792         mode attribute.
2793         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2794
2795         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2796         word_mode to access SjLj_Function_Context member "data".
2797         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
2798         conversion from targetm.eh_return_filter_mode () to
2799         targetm.unwind_word_mode () if they differ.
2800
2801         * builtin-types.def (BT_UNWINDWORD): New primitive type.
2802         (BT_FN_UNWINDWORD_PTR): New function type.
2803         (BT_FN_WORD_PTR): Remove.
2804         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2805         * except.c (expand_builtin_extend_pointer): Convert pointer to
2806         targetm.unwind_word_mode () instead of word_mode.
2807
2808         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2809         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2810         (spu_unwind_word_mode): New function.
2811         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2812         (TARGET_UNWIND_WORD_MODE): Define.
2813         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2814
2815 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2816
2817         * config/spu/spu.c (reg_align): Remove.
2818         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2819         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2820         (spu_split_store): Likewise.
2821
2822 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
2823
2824         * gcc/tree-vn.c: Fix typo in comment.
2825
2826 2008-06-18  Jan Hubicka  <jh@suse.cz>
2827
2828         * cgraphunit.c (cgraph_optimize): Output debug info when doing
2829         toplevel reorder too.
2830
2831 2008-06-18  Jan Hubicka  <jh@suse.cz>
2832
2833         * c-opts.c (c_common_post_options): PCH is not compatible with
2834         no-unit-at-a-time.
2835         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2836         -fno-toplevel-reorder by default now.
2837
2838 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2839
2840         PR documentation/30739
2841         * doc/install.texi (Prerequisites): Document dependency on awk.
2842
2843 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
2844             Ian Lance Taylor  <iant@google.com>
2845
2846         PR rtl-optimization/35604
2847         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2848         only want to change jump destinations, not eventual label comparisons.
2849
2850 2008-06-16  Jan Hubicka  <jh@suse.cz>
2851
2852         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2853         syntax errors.
2854         (cgraph_analyze_function): Likewise.
2855
2856 2008-06-16  Jan Hubicka  <jh@suse.cz>
2857
2858         * cgraph.h (cgraph_mark_if_needed): New function.
2859         * cgraphunit.c (cgraph_mark_if_needed): New function.
2860         * c-decl.c (duplicate_decl): Use it.
2861
2862 2008-06-16  Jan Hubicka  <jh@suse.cz>
2863
2864         * cgraph.c (cgraph_add_new_function): When in expansion state, do
2865         lowering.
2866
2867 2008-06-16  Jan Hubicka  <jh@suse.cz>
2868
2869         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2870
2871 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
2872             Kazu Hirata  <kazu@codesourcery.com>
2873             Maxim Kuvyrkov  <maxim@codesourcery.com
2874
2875         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2876         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2877         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2878         EXTRA_SPEC_FUNCTIONS.
2879         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2880         (DRIVER_SELF_SPECS): Adjust.
2881         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2882         * config/mips/st.h, config/mips/t-st: New.
2883         * config/mips/driver-native.c, config/mips/x-native: New.
2884         * doc/invoke.texi (MIPS): Document 'native' value for -march and
2885         -mtune options.
2886
2887 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2888
2889         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2890         from it.
2891         (ISA_HAS_FP_CONDMOVE): New macro.
2892         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2893         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2894         (ISA_HAS_NMADD3_NMSUB3): New macro.
2895         * config/mips/mips.c (mips_rtx_costs): Update.
2896         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2897         compiling for ST Loongson 2E/2F.
2898         (madd<mode>): Rename to madd4<mode>.  Update.
2899         (madd3<mode>): New pattern.
2900         (msub<mode>): Rename to msub4<mode>.  Update.
2901         (msub3<mode>): New pattern.
2902         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
2903         (nmadd3<mode>): New pattern.
2904         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
2905         (nmadd3<mode>_fastmath): New pattern.
2906         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
2907         (nmsub3<mode>): New pattern.
2908         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
2909         (nmsub3<mode>_fastmath): New pattern.
2910         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2911
2912 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2913
2914         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2915         (DF_REF_INSN_INFO): New.
2916         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2917         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2918         with a NULL DF_REF_INSN_INFO.
2919         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2920         DF_INSN_SET.
2921         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2922         DF_INSN_INFO_EQ_USES): New.
2923         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2924         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2925         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2926         * df-core.c: Update comment for above changes.
2927         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2928         DF_INSN_UID_* macros.
2929         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2930         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2931         insn rtx.  Update all callers.
2932         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2933         df_ref_create_structure, df_insn_refs_collect): Likewise.
2934         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2935         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2936         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2937         macros to access the insn refs.
2938         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2939         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2940         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2941         for accessing the refs.
2942         (try_fwprop_subst): Likewise.
2943         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2944         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2945         for accessing the refs.
2946         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2947         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2948         to look at the insn refs.
2949         (record_uses): Likewise.
2950         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2951         function anymore.
2952         (mark_artificial_uses): Don't mark_insn for artificial refs.
2953         (mark_reg_rependencies): Likewise.
2954
2955         * doc/rtl.texi: Remove documentation of ADDRESSOF.
2956
2957 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2958
2959         * configure: Regenerate.
2960
2961 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2962
2963         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2964         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2965         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2966
2967 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2968
2969         * config/avr/avr.c (avr_mcu_t): Add attiny167.
2970         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2971         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2972
2973 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2974
2975         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2976         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2977         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2978
2979 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2980
2981         * tree-ssa-sccvn.c: Fix format of comments.
2982
2983 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2984
2985         * cgraph.c: Remove unneeded forward declarations of eq_node()
2986         and hash_node().
2987
2988 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2989
2990         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2991         REG_RETVAL notes.
2992         (see_update_relevancy): Likewise.
2993         * fwprop.c (try_fwprop_subst): Likewise.
2994         * rtlanal.c (noop_move_p): Likewise.
2995         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2996         notes to non-existing libcall blocks.
2997         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
2998         Remove orig_set.
2999         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
3000         (dead_libcall_p): Remove.
3001         (delete_trivially_dead_insns): Don't use it.
3002         * web.c (union_defs): Remove comment about keeping nops.
3003         * gcse.c (hash_scan_insn): Don't take libcall pointers.
3004         (compute_hash_table_work): Don't track libcall notes.
3005         (do_local_cprop): Don't take libcall pointers.  Don't update
3006         libcall notes.
3007         (adjust_libcall_notes): Deleted.
3008         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
3009         ever have existed in the first place).
3010         (replace_store_insn): Don't try to remove libcall notes.
3011         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
3012         (resolve_reg_notes): Don't call them.
3013         (resolve_simple_move): Likewise.
3014         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
3015         Don't remove REG_RETVAL notes.
3016         * emit-rtl.c (try_split): Don't update libcall notes.
3017         (emit_copy_of_insn_after): Dito.
3018         * cselib.c (cselib_current_insn_in_libcall): Remove.
3019         (cselib_process_insn): Don't set/clear it.
3020         (new_elt_loc_list): Don't record it.
3021         (cselib_init): Don't initialize it.
3022         * cselib.c (struct elt_loc_list): Remove in_libcall field.
3023         * loop-invariant.c (find_invariant_insn): Don't look for libcall
3024         notes.
3025         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
3026         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
3027         (init_deps): Don't initialize it.
3028         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
3029         * combine.c (delete_noop_moves): Don't update libcall notes.
3030         (can_combine_p): Remove now pointless #if 0 block.
3031         (try_combine): Remove another obsolete #if 0 block.
3032         (distribute_notes): Don't distribute libcall notes.
3033         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
3034         * dce.c (libcall_dead_p): Remove.
3035         (delete_unmarked_insns): Don't handle libcall blocks.
3036         (preserve_libcall_for_dce): Remove.
3037         (prescan_insns_for_dce): Don't special-case libcall block insns.
3038         * reload1 (reload): Don't handle libcall notes. 
3039         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
3040         documentation.
3041
3042 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
3043
3044         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
3045         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3046         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3047
3048 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
3049
3050         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
3051         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3052         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
3053
3054 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3055
3056         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3057
3058 2008-06-16  Ira Rosen  <irar@il.ibm.com>
3059
3060         PR tree-optimization/36493
3061         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3062         the arguments list. Use VECTYPE to create vector pointer.
3063         (vectorizable_store): Fail if accesses through a pointer to vectype
3064         do not alias the original memory reference operands.
3065         Call vect_create_data_ref_ptr without the removed argument.
3066         (vectorizable_load): Likewise.
3067         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3068         removed argument.
3069
3070 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
3071
3072         PR target/36336
3073         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
3074         reg_equiv_constant.
3075
3076 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3077
3078         * config/mips/loongson2ef.md: New file.
3079         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3080         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3081         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3082         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3083         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3084         and loongson_2f.
3085         (loongson2ef.md): New include.
3086         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3087         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3088         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3089         (loongson_gt_<mode>, loongson_extract_halfword)
3090         (loongson_insert_halfword_0, loongson_insert_halfword_2)
3091         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3092         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3093         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3094         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3095         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3096         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3097         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3098         (vec_interleave_low<mode>): Define type attribute.
3099         * config/mips/mips.c (mips_ls2): New static variable.
3100         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3101         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3102         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3103         Implement target scheduling hooks.
3104         (mips_multipass_dfa_lookahead): Update to handle tuning for
3105         Loongson 2E/2F.
3106         (mips_sched_init): Initialize data for Loongson scheduling.
3107         (mips_ls2_variable_issue): New static function.
3108         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3109         Add sanity check.
3110         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3111         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3112         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3113         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3114         Handle ST Loongson 2E/2F cores.
3115         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3116
3117 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3118
3119         * omp-low.c (extract_omp_for_data): Fix comment typo.
3120         * c.opt: Fix typo.
3121
3122 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3123
3124         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3125         FIXME note about gcc/config.guess.
3126         * doc/options.texi (Option file format): Remove non-ASCII bytes.
3127         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3128         * doc/cppopts.texi: Likewise.
3129         * doc/extend.texi: Likewise.
3130         * doc/gcc.texi: Likewise.
3131         * doc/gccint.texi: Likewise.
3132         * doc/gcov.texi: Likewise.
3133         * doc/gty.texi: Likewise.
3134         * doc/hostconfig.texi: Likewise.
3135         * doc/install.texi: Likewise.
3136         * doc/invoke.texi: Likewise.
3137         * doc/loop.texi: Likewise.
3138         * doc/makefile.texi: Likewise.
3139         * doc/md.texi: Likewise.
3140         * doc/passes.texi: Likewise.
3141         * doc/tm.texi: Likewise.
3142         * doc/tree-ssa.texi: Likewise.
3143         * doc/trouble.texi: Likewise.
3144
3145 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
3146             Nathan Sidwell  <nathan@codesourcery.com>
3147             Maxim Kuvyrkov  <maxim@codesourcery.com>
3148             Richard Sandiford  <rdsandiford@googlemail.com>
3149         
3150         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3151         * config/mips/mips-protos.h (mips_expand_vector_init): New.
3152         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3153         builtins.
3154         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3155         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3156         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3157         V8QImode cases.
3158         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3159         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3160         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3161         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3162         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3163         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3164         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3165         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3166         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3167         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3168         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3169         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3170         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3171         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3172         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3173         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3174         (mips_builtins): Add Loongson builtins.
3175         (mips_loongson_2ef_bdesc): New.
3176         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3177         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3178         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3179         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3180         New.
3181         (mips_expand_vector_init): New.
3182         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3183         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3184         if appropriate.
3185         * config/mips/mips.md: Add unspec numbers for Loongson
3186         builtins.  Include loongson.md.
3187         (MOVE64): Include Loongson vector modes.
3188         (SPLITF): Include Loongson vector modes.
3189         (HALFMODE): Handle Loongson vector modes.
3190         * config/mips/loongson.md: New.
3191         * config/mips/loongson.h: New.
3192         * config.gcc: Add loongson.h header for mips*-*-* targets.
3193         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3194
3195 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
3196
3197         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
3198         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
3199         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
3200         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
3201         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
3202         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
3203         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
3204         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
3205         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
3206         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
3207         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
3208         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
3209         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
3210         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
3211         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
3212         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
3213         Remove use_fixproto=yes.
3214         (ia64*-*-hpux*): Remove comment about using fixproto.
3215         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
3216
3217 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3218
3219         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
3220         library rebuilds.
3221         * configure: Regenerate.
3222
3223 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3224
3225         PR middle-end/36520
3226         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
3227         before evaluating it.
3228
3229 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
3230
3231         PR c/36507
3232         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3233         nested inline functions.
3234         (start_decl, start_function): Don't invert DECL_EXTERNAL
3235         for nested inline functions.
3236
3237 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3238
3239         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3240         splits that must be made for correctness.
3241
3242 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3243
3244         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3245         (AVAIL_NON_MIPS16): Likewise.
3246         (mips_builtin_description): Replace target_flags with a predicate.
3247         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3248         (dspr2_32): New availability predicates.
3249         (MIPS_BUILTIN): New macro.
3250         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3251         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3252         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3253         Replace the TARGET_FLAGS parameters with AVAIL parameters.
3254         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3255         (mips_dsp_32only_bdesc): Merge into...
3256         (mips_builtins): ...this new array.
3257         (mips_bdesc_map, mips_bdesc_arrays): Delete.
3258         (mips_init_builtins): Update after above changes.
3259         (mips_expand_builtin_1): Merge into...
3260         (mips_expand_builtin): ...here and update after above changes.
3261
3262 2008-06-12  Paul Brook  <paul@codesourcery.com>
3263
3264         * longlong.h (__arm__): Define count_leading_zeros.
3265         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3266         (clzsi2, clzdi2): New functions.
3267         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3268         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3269         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3270         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3271         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3272         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3273         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3274         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3275         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3276         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3277
3278 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
3279
3280         * config/m68k/m68k.c (m68k_tune_flags): New.
3281         (override_options): Compute m68k_tune_flags.
3282         (MULL_COST, MULW_COST): Update for various variants of CFV2.
3283         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3284
3285 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3286
3287         PR middle-end/36506
3288         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3289
3290 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3291
3292         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3293         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3294
3295 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3296
3297         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3298         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3299
3300 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3301
3302         PR middle-end/36506
3303         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3304         reductions.
3305
3306 2008-06-12  Richard Guenther  <rguenther@suse.de>
3307
3308         PR tree-optimization/36345
3309         * tree-flow.h (struct ptr_info_def): Align escape_mask,
3310         add memory_tag_needed flag.
3311         (may_alias_p): Declare.
3312         * tree-ssa-alias.c (may_alias_p): Export.
3313         (set_initial_properties): Use memory_tag_needed flag.
3314         (update_reference_counts): Likewise.
3315         (reset_alias_info): Reset memory_tag_needed flag.
3316         (create_name_tags): Check memory_tag_needed flag.
3317         (dump_points_to_info_for): Dump it.
3318         * tree-ssa-structalias.c (struct variable_info): Remove
3319         directly_dereferenced flag.
3320         (new_var_info): Do not initialize it.
3321         (process_constraint_1): Do not set it.
3322         (update_alias_info): Set is_dereferenced flag.
3323         (set_uids_in_ptset): Use may_alias_p.
3324         (set_used_smts): Check memory_tag_needed flag.
3325         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
3326         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3327         memory_tag_needed flag.
3328         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3329         from broken design.
3330
3331 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
3332
3333         * config/i386/i386.c (ix86_compute_frame_layout): Disable
3334         red zone for w64 abi.
3335         (ix86_expand_prologue): Likewise.
3336         (ix86_force_to_memory): Likewise.
3337         (ix86_free_from_memory): Likewise.
3338
3339 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
3340
3341         PR target/36425
3342         * config/rs6000/rs6000.c (rs6000_override_options): Set
3343         rs6000_isel conditionally to the absence of comand line override.
3344         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3345         Remove duplicate rs6000_isel setting.
3346         * config/rs6000/eabispe.h: Ditto.
3347
3348 2008-06-11  Richard Guenther  <rguenther@suse.de>
3349
3350         * alias.c (get_alias_set): Use the element alias-set for arrays.
3351         (record_component_aliases): For arrays and vectors do nothing.
3352         * c-common.c (strict_aliasing_warning): Handle the cases
3353         of alias set zero explicitly.
3354         * Makefile.in (dfp.o-warn): Add -Wno-error.
3355
3356 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3357
3358         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3359         tune_32 tune_64.
3360         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3361         tune_32 tune_64 to supported_defaults.  Allow values not
3362         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3363         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
3364         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3365         with_cpu_64 to generic for 64-bit-supporting configurations, not
3366         with_cpu.  Remove FIXMEs.
3367         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3368         --with-arch-64, --with-tune-32, --with-tune-64): Document.
3369         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3370         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3371         arch_32 and arch_64.
3372
3373 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3374             Olivier Hainque  <hainque@adacore.com>
3375
3376         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3377         Use DECL_SIZE_UNIT to retrieve the size of the field.
3378
3379 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3380
3381         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3382         with function calls after declarations.  Lay out
3383         neon_float_type_node before further use.
3384
3385 2008-06-11  Richard Guenther  <rguenther@suse.de>
3386
3387         * tree-flow.h (may_point_to_global_var): Declare.
3388         * tree-ssa-alias.c (may_point_to_global_var): New function.
3389         * tree-ssa-sink.c (is_hidden_global_store): Use it.
3390
3391 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
3392
3393         * configure.ac: Teach that fido supports .debug_line.
3394         * configure: Regenerate.
3395
3396 2008-06-10  Tom Tromey  <tromey@redhat.com>
3397
3398         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3399         debug hook.
3400
3401 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3402
3403         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3404         (encode_decimal64, decode_decimal64, encode_decimal128,
3405         decode_decimal128): Reverse order of 32-bit parts of value if host
3406         and target endianness differ.
3407
3408 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
3409
3410         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3411         Avoid division by 0.
3412         (tree_mod_pow2_value_transform): Likewise.
3413         (tree_ic_transform): Likewise.
3414         (tree_stringops_transform): Likewise.
3415         (tree_mod_subtract_transform): Likewise.
3416         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3417         (copy_edges_for_bb): Likewise.
3418         (initialize_cfun): Likewise.
3419
3420 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3421
3422         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3423         nonmemory_operand. Add "N" operand constraint.
3424         (*btsi): Ditto.
3425         (*jcc_btdi_mask_rex64): New instruction and split pattern.
3426         (*jcc_btsi_mask): Ditto.
3427         (*jcc_btsi_mask_1): Ditto.
3428
3429 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3430
3431         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3432         TYPE_CANONICAL for copied element type.
3433
3434 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3435
3436         PR target/36473
3437         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3438         Add m_CORE2 and m_GENERIC.
3439         * config/i386/predicates.md (bt_comparison_operator): New predicate.
3440         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3441         (*btsi): Ditto.
3442         (*jcc_btdi_rex64): New instruction and split pattern.
3443         (*jcc_btsi): Ditto.
3444         (*jcc_btsi_1): Ditto.
3445         (*btsq): Fix Intel asm dialect operand order.
3446         (*btrq): Ditto.
3447         (*btcq): Ditto.
3448
3449 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3450
3451         PR middle-end/36447
3452         * simplify-rtx.c (simplify_subreg): Add check for shift count 
3453         greater than size.
3454
3455 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
3456
3457         * doc/md.texi: Synchronize with later constraints.md change.
3458         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3459         with a C implementation.
3460         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3461         MFLO handling.
3462         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3463         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3464         when moving to and from MD_REGNUM.
3465         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3466         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3467         Handle byte and halfword moves.
3468         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3469         separately.
3470         * config/mips/constraints.md (h): Turn into NO_REGS.
3471         (l, x): Update documentation.
3472         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3473         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3474         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3475         (HILO): New mode iterator.
3476         (MOVE128): Add TI.
3477         (any_div): New code iterator.
3478         (u): Extend code attribute to div and udiv.
3479         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3480         d_operand in the splitters.  Remove redundant CONST_INT checks.
3481         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3482         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3483         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
3484         accordingly, using normal moves instead of unspecs to move LO into
3485         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
3486         (<u>mulsidi3): Handle expansion in C code.
3487         (<u>mulsidi3_32bit_internal): Rename to...
3488         (<u>mulsidi3_32bit): ...this.
3489         (<u>mulsidi3_32bit_r4000): Fix insn separator.
3490         (*<u>mulsidi3_64bit): Rename to...
3491         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
3492         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
3493         to set LO and HI to the multiplication result.  Use a normal move
3494         for MFLO and an unspec for MFHI.
3495         (*<u>mulsidi3_64bit_parts): Replace with...
3496         (<u>mulsidi3_64bit_hilo): ...this new instruction.
3497         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3498         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3499         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
3500         instead of HI.  Split the instruction into a separate multiplication
3501         and MFHI if !TARGET_FIX_R4000.
3502         (<su>muldi3_highpart): Likewise.
3503         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3504         and the "=h" clobber.
3505         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3506         (<u>mulditi3): New expander.
3507         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3508         (madsi): Remove "=h" clobber.
3509         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3510         Force the modulus result to be a GPR and split the instruction into
3511         a division followed by an MFHI after reload.
3512         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3513         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
3514         the MIPS16 HIGH define_split.
3515         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3516         of acc<->gpr moves to "multi".
3517         (*movdi_64bit): Replace the single "x" alternative with
3518         alternatives for moving into and out of "a".
3519         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
3520         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3521         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3522         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
3523         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
3524         (movti): New expander.
3525         (*movti, *movti_mips16): New insns.
3526         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3527         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3528         (mthi<GPR:mode>_<HILO:mode>): Likewise.
3529         * config/mips/predicates.md (fpr_operand): Delete.
3530         (d_operand): New predicate.
3531
3532 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
3533
3534         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3535         failure on some Bourne shells.
3536         (x86_64-*-*): Ditto.
3537
3538 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
3539
3540         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3541
3542 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3543
3544         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3545         (sparc-sun-solaris2*): Likewise.
3546
3547 2008-06-09  Arnaud Charlet  <charlet@adacore.com
3548
3549         * doc/install.texi: Update requirements to build the Ada compiler.
3550
3551 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3552
3553         * df-scan.c (struct df_scan_problem_data): Remove the
3554         mw_link_pool alloc pool.
3555         (df_scan_free_internal): Don't free it.
3556         (df_scan_alloc): Don't allocate it.
3557         * df.h (struct df_link): Update comment.
3558
3559 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3560
3561         * except.h: Correct checks for when SJLJ exceptions must be used.
3562
3563 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3564
3565         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3566         default.
3567         
3568 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
3569
3570         PR tree-optimization/36218
3571         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3572         configure for the build system.
3573         (BUILD_LDFLAGS): Define.
3574         * configure: Regenerate.
3575         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3576
3577 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
3578
3579         PR target/36424
3580         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3581         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
3582         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
3583
3584 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
3585
3586         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3587
3588 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3589
3590         * config.gcc (Obsolete configurations): Remove list of
3591         configurations.
3592         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3593         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
3594         targets matched by those patterns.
3595         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3596         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3597         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3598         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3599         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3600         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3601         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3602         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3603         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3604         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3605         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3606         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3607         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3608         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3609         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3610         Make code for Solaris 7 and greater unconditional for Solaris.
3611         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3612         Remove --with-* handling.
3613         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3614         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3615         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3616         LINK_OS_WINDISS_SPEC): Remove.
3617         * config/rs6000/sysv4.opt (mwindiss): Remove.
3618         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3619         * configure: Regenerate.
3620         * doc/cpp.texi: Don't mention BeOS.
3621         * doc/extend.texi (interrupt): Don't mention MS1.
3622         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3623         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3624         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3625         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3626         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3627         Remove.
3628         * doc/invoke.texi (MT Options): Remove.
3629         (-mwindiss): Remove.
3630         (CRIS Options): Remove cris-axis-aout references.
3631         (HPPA Options): Don't mention hppa1.1-*-pro.
3632         * doc/md.texi: (MorphoTech family): Remove.
3633         * libgcc2.c: Don't handle UWIN.
3634         * config/alpha/t-unicosmk: Remove.
3635         * config/alpha/unicosmk.h: Remove.
3636         * config/arm/kaos-arm.h: Remove.
3637         * config/arm/kaos-strongarm.h: Remove.
3638         * config/arm/strongarm-coff.h: Remove.
3639         * config/arm/strongarm-elf.h: Remove.
3640         * config/arm/strongarm-pe.h: Remove.
3641         * config/arm/t-strongarm-pe: Remove.
3642         * config/arm/t-xscale-coff: Remove.
3643         * config/arm/t-xscale-elf: Remove.
3644         * config/arm/xscale-coff.h: Remove.
3645         * config/arm/xscale-elf.h: Remove.
3646         * config/chorus.h: Remove.
3647         * config/cris/aout.h: Remove.
3648         * config/cris/aout.opt: Remove.
3649         * config/cris/t-aout: Remove.
3650         * config/i386/beos-elf.h: Remove.
3651         * config/i386/kaos-i386.h: Remove.
3652         * config/i386/ptx4-i.h: Remove.
3653         * config/i386/sco5.h: Remove.
3654         * config/i386/sco5.opt: Remove.
3655         * config/i386/sysv4-cpp.h: Remove.
3656         * config/i386/sysv5.h: Remove.
3657         * config/i386/t-beos: Remove.
3658         * config/i386/t-sco5: Remove.
3659         * config/i386/t-uwin: Remove.
3660         * config/i386/uwin.asm: Remove.
3661         * config/i386/uwin.h: Remove.
3662         * config/kaos.h: Remove.
3663         * config/mips/windiss.h: Remove.
3664         * config/mt: Remove directory.
3665         * config/pa/pa-osf.h: Remove.
3666         * config/pa/pa-pro-end.h: Remove.
3667         * config/pa/t-pro: Remove.
3668         * config/ptx4.h: Remove.
3669         * config/rs6000/beos.h: Remove.
3670         * config/rs6000/kaos-ppc.h: Remove.
3671         * config/rs6000/t-beos: Remove.
3672         * config/rs6000/windiss.h: Remove.
3673         * config/sh/kaos-sh.h: Remove.
3674         * config/sol2-6.h: Remove.
3675         * config/sparc/sol26-sld.h: Remove.
3676         * config/sparc/sysv4-only.h: Remove.
3677         * config/vax/bsd.h: Remove.
3678         * config/vax/t-memfuncs: Remove.
3679         * config/vax/ultrix.h: Remove.
3680         * config/vax/vaxv.h: Remove.
3681         * config/windiss.h: Remove.
3682
3683 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
3684
3685         PR rtl-optimization/36438
3686         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3687         for vector shifts with constant scalar shift operands.
3688
3689 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
3690
3691         * doc/invoke.texi: Document -march=xlr.
3692         * config/mips/xlr.md: New file.
3693         * config/mips/mips.md: Include it.
3694         (cpu): Add "xlr".
3695         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3696         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3697         (mips_rtx_cost_data): Likewise.
3698
3699 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
3700
3701         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3702         PRE_INC and PRE_DEC cases.
3703
3704 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3705
3706         PR rtl-optimization/36419
3707         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3708         the emitting jump insn.
3709
3710         PR target/36362
3711         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3712         is not bool, boolify the whole *expr_p and convert to the desired type.
3713
3714 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3715
3716         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3717         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3718         Add omp_private_outer_ref hook, add another argument to
3719         omp_clause_default_ctor hook.
3720         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3721         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3722         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3723         hook_tree_tree_tree_tree_null.
3724         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3725         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3726         * hooks.c (hook_tree_tree_tree_tree_null): New function.
3727         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3728         * tree.def (OMP_TASK): New tree code.
3729         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3730         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3731         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3732         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3733         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3734         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3735         OMP_CLAUSE_COLLAPSE_EXPR): Define.
3736         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3737         (OMP_DIRECTIVE_P): Add OMP_TASK.
3738         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3739         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3740         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3741         and OMP_CLAUSE_UNTIED entries.
3742         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
3743         num_ops to 2.
3744         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3745         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3746         * tree-pretty-print.c (dump_omp_clause): Handle
3747         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3748         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3749         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3750         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
3751         warning about unsigned iterators.  Change decl/init/cond/incr
3752         arguments to TREE_VECs, check arguments for all collapsed loops.
3753         (c_finish_omp_taskwait): New function.
3754         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3755         ws_clauses.
3756         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
3757         default_function_array_conversion on init.  Add par_clauses argument.
3758         If decl is present in parallel's lastprivate clause, change it to
3759         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3760         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
3761         collapse count in clauses.
3762         (c_parser_omp_for, c_parser_omp_parallel): Adjust
3763         c_parser_omp_for_loop callers.
3764         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3765         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3766         (c_parser_omp_clause_name): Handle collapse and untied clauses.
3767         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3768         functions.
3769         (c_parser_omp_clause_schedule): Handle schedule(auto).
3770         Include correct location in the error message.
3771         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3772         and PRAGMA_OMP_CLAUSE_UNTIED.
3773         (OMP_TASK_CLAUSE_MASK): Define.
3774         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3775         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3776         * tree-nested.c (convert_nonlocal_omp_clauses,
3777         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3778         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3779         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3780         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3781         OMP_CLAUSE_DECL.
3782         (conver_nonlocal_reference, convert_local_reference,
3783         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
3784         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3785         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3786         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3787         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3788         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3789         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3790         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3791         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3792         OMP_CLAUSE_UNTIED.
3793         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3794         * c-common.h (c_finish_omp_taskwait): New prototype.
3795         * gimple-low.c (lower_stmt): Handle OMP_TASK.
3796         * tree-parloops.c (create_parallel_loop): Create 1 entry
3797         vectors for OMP_FOR_{INIT,COND,INCR}.
3798         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3799         (make_edges): Handle OMP_TASK.
3800         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3801         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3802         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3803         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3804         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3805         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3806         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3807         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3808         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3809         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3810         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3811         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3812         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3813         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3814         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3815         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3816         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3817         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3818         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3819         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3820         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3821         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3822         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3823         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3824         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3825         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3826         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
3827         original iterator is present in lastprivate clause or if
3828         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
3829         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3830         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3831         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3832         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3833         if it is set, lookup var in outer contexts too.  Handle
3834         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
3835         to be implicitly determined firstprivate for task regions.
3836         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3837         if it is set, lookup var in outer contexts too.  Set
3838         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3839         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3840         OMP_CLAUSE_UNTIED.  Take region_type as last argument
3841         instead of in_parallel and in_combined_parallel.
3842         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3843         Adjust callers.
3844         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3845         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
3846         (new_omp_context): Set default_kind to
3847         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3848         (omp_region_type): New enum.
3849         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3850         fields, add region_type.
3851         (new_omp_context): Take region_type as argument instead of is_parallel
3852         and is_combined_parallel.
3853         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3854         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3855         ctx->is_combined_parallel checks.
3856         (gimplify_omp_task): New function.
3857         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3858         OMP_CLAUSE_UNTIED.
3859         * omp-low.c (extract_omp_for_data): Use schedule(static)
3860         for schedule(auto).  Handle pointer and unsigned iterators.
3861         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
3862         Add loops argument.  Extract data for collapsed OMP_FOR loops.
3863         (expand_parallel_call): Assert sched_kind isn't auto,
3864         map runtime schedule to index 3.
3865         (struct omp_for_data_loop): New type.
3866         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3867         Add loop, loops, collapse and iter_type fields.
3868         (workshare_safe_to_combine_p): Disallow combined for if
3869         iter_type is unsigned long long.  Don't combine collapse > 1 loops
3870         unless all bounds and steps are constant.  Adjust extract_omp_for_data
3871         caller.
3872         (expand_omp_for_generic): Handle pointer, unsigned and long long
3873         iterators.  Handle collapsed OMP_FOR loops.  Adjust
3874         for struct omp_for_data changes.  If libgomp function doesn't return
3875         boolean_type_node, add comparison of the return value with 0.
3876         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3877         pointer, unsigned and long long iterators.  Adjust for struct
3878         omp_for_data changes.
3879         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3880         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
3881         unsigned long long.  Allocate loops array, pass it to
3882         extract_omp_for_data.  For collapse > 1 loops use always
3883         expand_omp_for_generic.
3884         (omp_context): Add sfield_map and srecord_type fields.
3885         (is_task_ctx, lookup_sfield): New functions.
3886         (use_pointer_for_field): Use is_task_ctx helper.  Change first
3887         argument's type from const_tree to tree.  Clarify comment.
3888         In OMP_TASK disallow copy-in/out sharing.
3889         (build_sender_ref): Call lookup_sfield instead of lookup_field.
3890         (install_var_field): Add mask argument.  Populate both record_type
3891         and srecord_type if needed.
3892         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3893         in srecord_type.
3894         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3895         and DECL_FIELD_OFFSET.
3896         (scan_sharing_clauses): Adjust install_var_field callers.  For
3897         firstprivate clauses on explicit tasks allocate the var by value in
3898         record_type unconditionally, rather than by reference.
3899         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3900         Use is_taskreg_ctx instead of is_parallel_ctx.
3901         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3902         (create_omp_child_function_name): Add task_copy argument, use
3903         *_omp_cpyfn* names if it is true.
3904         (create_omp_child_function): Add task_copy argument, if true create
3905         *_omp_cpyfn* helper function.
3906         (scan_omp_parallel): Adjust create_omp_child_function callers.
3907         Rename parallel_nesting_level to taskreg_nesting_level.
3908         (scan_omp_task): New function.
3909         (lower_rec_input_clauses): Don't run constructors for firstprivate
3910         explicit task vars which are initialized by *_omp_cpyfn*.  
3911         Pass outer var ref to omp_clause_default_ctor hook if
3912         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3913         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3914         OMP_CLAUSE_REDUCTION_INIT.
3915         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3916         avoid duplicate setting of fields.  Handle
3917         OMP_CLAUSE_PRIVATE_OUTER_REF.
3918         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
3919         copy-out if TREE_READONLY, only copy-in.
3920         (expand_task_copyfn): New function.
3921         (expand_task_call): New function.
3922         (struct omp_taskcopy_context): New type.
3923         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3924         New functions.
3925         (lower_omp_parallel): Rename to...
3926         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3927         Call create_task_copyfn if srecord_type is needed.  Adjust
3928         sender_decl type.
3929         (task_shared_vars): New variable.
3930         (check_omp_nesting_restrictions): Warn if work-sharing,
3931         barrier, master or ordered region is closely nested inside OMP_TASK.
3932         Add warnings for barrier if closely nested inside of work-sharing,
3933         ordered, or master region.
3934         (scan_omp_1): Call check_omp_nesting_restrictions even for
3935         GOMP_barrier calls.  Rename parallel_nesting_level to
3936         taskreg_nesting_level.  Handle OMP_TASK.
3937         (lower_lastprivate_clauses): Even if some lastprivate is found on a
3938         work-sharing construct, continue looking for them on parent parallel
3939         construct.
3940         (lower_omp_for_lastprivate): Add lastprivate clauses
3941         to the beginning of dlist rather than end.  Adjust for struct
3942         omp_for_data changes.
3943         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3944         not after it.  Handle collapsed OMP_FOR loops, adjust for
3945         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3946         (get_ws_args_for): Adjust extract_omp_for_data caller.
3947         (scan_omp_for): Handle collapsed OMP_FOR
3948         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3949         (lower_omp_single_simple): If libgomp function doesn't return
3950         boolean_type_node, add comparison of the return value with 0.
3951         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3952         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
3953         (parallel_nesting_level): Rename to...
3954         (taskreg_nesting_level): ... this.
3955         (is_taskreg_ctx): New function.
3956         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3957         of is_parallel_ctx.
3958         (execute_lower_omp): Rename parallel_nesting_level to
3959         taskreg_nesting_level.
3960         (expand_omp_parallel): Rename to...
3961         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3962         Call omp_task_call for OMP_TASK regions.
3963         (expand_omp): Adjust caller, handle OMP_TASK.
3964         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3965
3966         * bitmap.c (bitmap_default_obstack_depth): New variable.
3967         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3968         if argument is NULL and bitmap_default_obstack is already initialized.
3969         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3970         at the end.
3971         * matrix-reorg.c (matrix_reorg): Likewise.
3972
3973 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
3974
3975         * config/i386/i386.md (*indirect_jump): Macroize using P
3976         mode iterator.  Remove !TARGET_64BIT from insn constraints.
3977         (*tablejump_1): Ditto.
3978         (*indirect_jump_rex64): Remove insn pattern.
3979         (*tablejump_1_rex64): Ditto.
3980         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3981         and eh_return_si insn patterns.
3982
3983 2008-06-06  Richard Guenther  <rguenther@suse.de>
3984
3985         * tree-ssa-structalias.c (merge_smts_into): Remove.
3986         (find_what_p_points_to): Do not bother to compute the
3987         points-to set for pt_anything pointers.
3988         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3989         for pt_anything pointers is ok.
3990
3991 2008-06-06  Jan Hubicka  <jh@suse.cz>
3992
3993         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3994
3995 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3996
3997         * cgraph.c: Fix typos in comments.
3998         (cgraph_availability_names): Fix string typo.
3999         * fold-const.c: Fix typos in comments.
4000         (fold_binary): Fix typo in warning.
4001         * genautomata.c: Fix typos in comments.
4002         (check_presence_pattern_sets): Fix typo in local variable.
4003         (output_description): Fix typo in output.
4004         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
4005         * hwint.h: Likewise.
4006         * matrix-reorg.c (check_allocation_function): Likewise.
4007         * omega.c (smooth_weird_equations): Likewise.
4008         * auto-inc-dec.c: Fix typos in comments.
4009         * bb-reorder.c: Likewise.
4010         * builtins.c: Likewise.
4011         * c-common.c: Likewise.
4012         * c-cppbuiltin.c: Likewise.
4013         * c-parser.c: Likewise.
4014         * c-pretty-print.c: Likewise.
4015         * cfgcleanup.c: Likewise.
4016         * cfgexpand.c: Likewise.
4017         * cfghooks.c: Likewise.
4018         * cfglayout.c: Likewise.
4019         * cfgloopmanip.c: Likewise.
4020         * cgraphunit.c: Likewise.
4021         * coverage.c: Likewise.
4022         * dbxout.c: Likewise.
4023         * df-byte-scan.c: Likewise.
4024         * df-core.c: Likewise.
4025         * df-problems.c: Likewise.
4026         * df-scan.c: Likewise.
4027         * dfp.c: Likewise.
4028         * dominance.c: Likewise.
4029         * domwalk.c: Likewise.
4030         * dse.c: Likewise.
4031         * dwarf2out.c: Likewise.
4032         * emit-rtl.c: Likewise.
4033         * et-forest.c: Likewise.
4034         * function.c: Likewise.
4035         * function.h: Likewise.
4036         * gcc.c: Likewise.
4037         * gcov-io.c: Likewise.
4038         * gcov.c: Likewise.
4039         * gcse.c: Likewise.
4040         * genattrtab.c: Likewise.
4041         * ggc-page.c: Likewise.
4042         * gimplify.c: Likewise.
4043         * gthr-lynx.h: Likewise.
4044         * haifa-sched.c: Likewise.
4045         * ipa-cp.c: Likewise.
4046         * ipa-inline.c: Likewise.
4047         * ipa-prop.h: Likewise.
4048         * ipa-pure-const.c: Likewise.
4049         * ipa-struct-reorg.c: Likewise.
4050         * ipa-struct-reorg.h: Likewise.
4051         * ipa-type-escape.c: Likewise.
4052         * ipa.c: Likewise.
4053         * loop-doloop.c: Likewise.
4054         * mips-tfile.c: Likewise.
4055         * mkmap-flat.awk: Likewise.
4056         * mkmap-symver.awk: Likewise.
4057         * modulo-sched.c: Likewise.
4058         * omp-low.c: Likewise.
4059         * optabs.c: Likewise.
4060         * optabs.h: Likewise.
4061         * opts.c: Likewise.
4062         * passes.c: Likewise.
4063         * postreload-gcse.c: Likewise.
4064         * postreload.c: Likewise.
4065         * predict.c: Likewise.
4066         * pretty-print.h: Likewise.
4067         * profile.c: Likewise.
4068         * protoize.c: Likewise.
4069         * ra-conflict.c: Likewise.
4070         * real.c: Likewise.
4071         * recog.c: Likewise.
4072         * regclass.c: Likewise.
4073         * regs.h: Likewise.
4074         * reload.c: Likewise.
4075         * rtl-error.c: Likewise.
4076         * rtlanal.c: Likewise.
4077         * scan.h: Likewise.
4078         * sched-rgn.c: Likewise.
4079         * see.c: Likewise.
4080         * stmt.c: Likewise.
4081         * target.h: Likewise.
4082         * tree-dfa.c: Likewise.
4083         * tree-eh.c: Likewise.
4084         * tree-flow-inline.h: Likewise.
4085         * tree-inline.c: Likewise.
4086         * tree-into-ssa.c: Likewise.
4087         * tree-loop-distribution.c: Likewise.
4088         * tree-nested.c: Likewise.
4089         * tree-parloops.c: Likewise.
4090         * tree-pass.h: Likewise.
4091         * tree-pretty-print.c: Likewise.
4092         * tree-profile.c: Likewise.
4093         * tree-scalar-evolution.c: Likewise.
4094         * tree-sra.c: Likewise.
4095         * tree-ssa-alias-warnings.c: Likewise.
4096         * tree-ssa-ccp.c: Likewise.
4097         * tree-ssa-coalesce.c: Likewise.
4098         * tree-ssa-dom.c: Likewise.
4099         * tree-ssa-dse.c: Likewise.
4100         * tree-ssa-forwprop.c: Likewise.
4101         * tree-ssa-live.c: Likewise.
4102         * tree-ssa-live.h: Likewise.
4103         * tree-ssa-loop-im.c: Likewise.
4104         * tree-ssa-loop-ivopts.c: Likewise.
4105         * tree-ssa-loop-niter.c: Likewise.
4106         * tree-ssa-loop-prefetch.c: Likewise.
4107         * tree-ssa-phiopt.c: Likewise.
4108         * tree-ssa-phiprop.c: Likewise.
4109         * tree-ssa-sccvn.c: Likewise.
4110         * tree-ssa-ter.c: Likewise.
4111         * tree-ssa-threadupdate.c: Likewise.
4112         * tree-ssa.c: Likewise.
4113         * tree-vect-analyze.c: Likewise.
4114         * tree-vect-transform.c: Likewise.
4115         * tree-vectorizer.c: Likewise.
4116         * tree-vn.c: Likewise.
4117         * tree-vrp.c: Likewise.
4118         * tree.c: Likewise.
4119         * tree.def: Likewise.
4120         * tree.h: Likewise.
4121         * unwind-dw2-fde.c: Likewise.
4122         * unwind.inc: Likewise.
4123         * value-prof.c: Likewise.
4124         * vmsdbgout.c: Likewise.
4125
4126 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
4127
4128         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4129         always place FP constants in the TOC for TARGET_POWERPC64.
4130         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4131
4132 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
4133
4134         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4135         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4136         enable for TARGET_E500_DOUBLE.
4137         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4138         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4139         floating-point modes like integer modes for E500 double.
4140         (rs6000_legitimate_offset_address_p): Likewise.
4141         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
4142         addressing for DDmode for E500 double.
4143         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4144         modes as using 64-bits of registers for E500 double.
4145         (spe_build_register_parallel): Do not handle DDmode or TDmode.
4146         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4147         specially for E500 double.
4148         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4149         TDmode for E500 double.
4150         (rs6000_gimplify_va_arg): Only handle SDmode in registers
4151         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4152         (rs6000_split_multireg_move): Do not handle TDmode specially for
4153         E500 double.
4154         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4155         using 64-bit registers for E500 double.
4156         (emit_frame_save): Do not handle DDmode specially for E500 double.
4157         (gen_frame_mem_offset): Likewise.
4158         (rs6000_function_value): Do not call spe_build_register_parallel
4159         for DDmode or TDmode.
4160         (rs6000_libcall_value): Likewise.
4161         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4162         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4163         for E500 double.
4164
4165 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4166
4167         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4168         in comments.
4169
4170 2008-06-04  Junjie Gu <jgu@tensilica.com>
4171
4172         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4173         comparison for frame pointers.
4174
4175 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
4176
4177         PR target/27386
4178         * config/avr/avr.h (PUSH_ROUNDING): Remove.
4179
4180 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
4181
4182         PR target/30243
4183         * builtins.c (expand_builtin_signbit): Don't take lowpart when
4184         register is already smaller or equal to required mode. 
4185
4186 2008-06-04  Xinliang David Li  <davidxl@google.com>
4187
4188         * tree-call-cdce.c: New file. 
4189         (cond_dead_built_in_calls): New static variable.
4190         (input_domain): New struct.
4191         (check_pow): New function.
4192         (check_builtin_call): Ditto.
4193         (check_target_format): Ditto.
4194         (is_call_dce_candidate): Ditto.
4195         (gen_one_condition): Ditto.
4196         (gen_conditions_for_domain): Ditto.
4197         (get_domain): Ditto.
4198         (gen_conditions_for_pow_cst_base): Ditto.
4199         (gen_conditions_for_pow_int_base): Ditto.
4200         (gen_conditions_for_pow): Ditto.
4201         (get_no_error_domain): Ditto.
4202         (gen_shrink_wrap_conditions): Ditto.
4203         (shrink_wrap_one_built_in_call): Ditto.
4204         (shink_wrap_conditional_dead_built_in_calls): Ditto.
4205         (tree_call_cdce): Ditto.
4206         (gate_call_cdce): Ditto.
4207         (pass_call_cdce): New gimple pass.
4208         * passes.c: (init_optimization_passes): New pass.
4209         * tree-pass.h: New pass declaration.
4210         * opts.c (decode_options): New flag setting.
4211         * common.opt: Add -ftree-builtin-call-dce flag.
4212         * Makefile.in: Add new source file.
4213         * tempvar.def: New tv_id.
4214         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
4215
4216 2008-06-04  Richard Guenther  <rguenther@suse.de>
4217
4218         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
4219         (is_call_clobbered): Always check var_ann->call_clobbered.
4220         (mark_call_clobbered): Always set var_ann->call_clobbered.
4221         (clear_call_clobbered): Always clear var_ann->call_clobbered.
4222         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
4223         (reset_alias_info): Clear call clobbering info on MTAGs and
4224         globals as well.
4225         (set_pt_anything): Set pt_global_mem.
4226         (create_tag_raw): Adjust comment.
4227         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
4228
4229 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
4230             Maxim Kuvyrkov  <maxim@codesourcery.com>
4231
4232         * config/m68k/m68k.opt (mxgot): New option.
4233         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4234         (m68k_output_addr_const_extra): New.
4235         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4236         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4237         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4238         * doc/invoke.texi (M680x0 Options): Document -mxgot.
4239
4240 2008-06-04  Richard Guenther  <rguenther@suse.de>
4241
4242         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4243         negative or non-representable offsets.
4244
4245 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4246
4247         * config/i386/i386.c (ix86_gen_leave): New.
4248         (ix86_gen_pop1): Likewise.
4249         (ix86_gen_add3): Likewise.
4250         (ix86_gen_sub3): Likewise.
4251         (ix86_gen_sub3_carry): Likewise.
4252         (ix86_gen_one_cmpl2): Likewise.
4253         (ix86_gen_monitor): Likewise.
4254         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4255         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4256         ix86_gen_one_cmpl2 and ix86_gen_monitor.
4257         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4258         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4259         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4260         (ix86_expand_epilogue): Updated.
4261         (print_operand): Handle integer register operand for 'z'.
4262         (ix86_expand_strlensi_unroll_1): Likewise.
4263         (ix86_expand_strlen): Likewise.
4264         (ix86_expand_builtin): Likewise.
4265         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4266         mov{q}/mov{l} and add{q}/add{l}.
4267
4268 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4269
4270         * config/i386/i386.md (P): New mode iterator.
4271         (SFmode push_operand splitter): Macroize DImode and SImode pushes
4272         using P mode iterator.
4273         (DFmode push_operand splitter): Ditto.
4274         (XFmode push_operand splitter): Ditto.
4275         (DFmode float_extend SFmode push_operand splitter): Ditto.
4276         (XFmode float_extend SFmode push_operand splitter): Do not generate
4277         SImode pushes for 64bit target.  Macroize Dimode and SImode
4278         pushes using P mode iterator.
4279         (XFmode float_extend DFmode push_operand splitter): Ditto.
4280
4281 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4282
4283         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4284         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4285         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4286         return type to int.
4287         (ix86_call_abi_override): Remove check for call_used_regs.
4288
4289 2008-06-03  Richard Guenther  <rguenther@suse.de>
4290
4291         * tree-ssa-structalias.c (find_func_aliases): Add constraints
4292         for the lhs of calls if the return type contains pointers.
4293
4294 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4295
4296         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4297         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4298         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4299         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4300         of cfun and DEFAULT_ABI to deceide abi mode.
4301         (DEFAULT_ABI): New.
4302         (REG_PARM_STACK_SPACE): Removed.
4303         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4304         (STACK_BOUNDARY): Use default target to deceide stack boundary.
4305         * config/i386/i386-protos.h (ix86_cfun_abi): New.
4306         (ix86_function_abi): Likewise.
4307         (ix86_function_type_abi): Likewise.
4308         (ix86_call_abi_override): Likewise.
4309         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4310         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4311         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4312         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4313         specific defines.
4314         (X86_64_REGPARM_MAX): New.
4315         (X86_64_SSE_REGPARM_MAX): New.
4316         (X64_REGPARM_MAX): New.
4317         (X64_SSE_REGPARM_MAX): New.
4318         (X86_32_REGPARM_MAX): New.
4319         (X86_32_SSE_REGPARM_MAX): New.
4320         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4321         (ix86_function_regparm): Handle user calling abi.
4322         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4323         by DEFAULT_ABI versus SYSV_ABI check.
4324         (ix86_reg_parm_stack_space): New.
4325         (ix86_function_type_abi): New.
4326         (ix86_call_abi_override): New.
4327         (ix86_function_abi): New.
4328         (ix86_cfun_abi): New.
4329         (init_cumulative_args): Call abi specific initialization.
4330         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4331         (function_arg_64): Extend SSE_REGPARM_MAX check.
4332         (function_arg (): Remove TARGET_64BIT_MS_ABI.
4333         (ix86_pass_by_reference): Likewise.
4334         (ix86_function_value_regno_p): Likewise.
4335         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4336         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4337         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4338         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4339         (setup_incoming_varargs_64): Adjust regparm for call abi.
4340         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4341         (ix86_va_start): Likewise.
4342         (ix86_gimplify_va_arg): Likewise.
4343         (ix86_expand_prologue): Likewise.
4344         (output_pic_addr_const): Likewise.
4345         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4346         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4347         (x86_output_mi_thunk): Likewise.
4348         (x86_function_profiler): Likewise.
4349         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4350         (SYSV_ABI, MS_ABI): New constants.
4351         (DEFAULT_ABI): New.
4352         (init_regs): Add prototype of function in regclass.c file.
4353         (OVERRIDE_ABI_FORMAT): New.
4354         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4355         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4356         (OUTGOING_REG_PARM_STACK_SPACE): New.
4357         (ix86_reg_parm_stack_space): New prototype.
4358         (CUMULATIVE_ARGS): Add call_abi member.
4359         (machine_function): Add call_abi member.
4360         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4361         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4362
4363 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
4364
4365         PR target/34879
4366         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4367         (avr_builtin_setjmp_frame_value): New function.
4368         * config/avr/avr.md (nonlocal_goto_receiver): Define.
4369         (nonlocal_goto): Define.
4370
4371 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
4372
4373         * config/mips/mips.c (mips_emit_loadgp): Return early if
4374         there is nothing do to, otherwise emit a blockage if
4375         !TARGET_EXPLICIT_RELOCS || crtl->profile.
4376         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4377
4378 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4379
4380         * configure.ac: Drop unneeded backslash ending up in config.in.
4381         * acinclude.m4: Likewise.
4382         * config.in: Regenerate.
4383
4384 2008-05-26  Jan Hubicka  <jh@suse.cz>
4385
4386         * predict.c (maybe_hot_frequency_p): Break out of...
4387         (maybe_hot_bb_p): ... here.
4388         (maybe_hot_edge_p): New.
4389         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4390         * basic-block.h (maybe_hot_edge_p): Declare.
4391
4392 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4393
4394         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4395         (*cmpfp_<mode>_cc): Ditto.
4396         (*fp_jcc_8<mode>_387): Ditto.
4397         (*fop_<MODEF:mode>_2_i387): Ditto.
4398         (*fop_<MODEF:mode>_3_i387): Ditto.
4399         (*fop_xf_2_i387): Ditto.
4400         (*fop_xf_3_i387): Ditto.
4401
4402 2008-06-02  Tomas Bily  <tbily@suse.cz>
4403
4404         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4405
4406 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4407
4408         * config/mips/mips.c (mips_valid_offset_p): New function.
4409         (mips_valid_lo_sum_p): Likewise.
4410         (mips_classify_address): Use them.
4411         (mips_force_address): New function.
4412         (mips_legitimize_address): Use it.
4413         * config/mips/mips.md (MOVE128): New mode iterator.
4414         (movtf): Require TARGET_64BIT.  Remove empty strings.
4415         (*movtf_internal): Rename to...
4416         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
4417         of "R" and use {,fp}{load,store} attributes instead of "multi".
4418         Use a separate define_split.
4419         (*movtf_mips16): New pattern.
4420
4421 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4422
4423         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4424         * config/mips/mips.c (mips_expand_before_return): New function.
4425         (mips_expand_epilogue): Call it.
4426         * config/mips/mips.md (return): Turn into a define_expand.
4427         (*return): New insn.
4428
4429 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4430
4431         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4432         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4433         functions.  Do not emit uses and clobbers of CONCATs; individually
4434         use and clobber their operands.
4435         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4436         gen_clobber, emit_use and gen_use.
4437         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4438         (expand_builtin_return): Likewise.
4439         * cfgbuild.c (count_basic_blocks): Likewise.
4440         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4441         * explow.c (emit_stack_restore): Likewise.
4442         * expmed.c (extract_bit_field_1): Likewise.
4443         * expr.c (convert_move, emit_move_complex_parts): Likewise.
4444         (emit_move_multi_word, store_constructor): Likewise.
4445         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4446         (thread_prologue_and_epilogue_insns): Likewise.
4447         * lower-subreg.c (resolve_simple_move): Likewise.
4448         * optabs.c (widen_operand, expand_binop): Likewise.
4449         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4450         * reload.c (find_reloads): Likewise.
4451         * reload1.c (eliminate_regs_in_insn): Likewise.
4452         * stmt.c (expand_nl_goto_receiver): Likewise.
4453         * config/alpha/alpha.md (builtin_longjmp): Likewise.
4454         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4455         * config/arm/arm.c (arm_load_pic_register): Likewise.
4456         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4457         * config/arm/arm.md (untyped_return): Likewise.
4458         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4459         * config/avr/avr.c (expand_prologue): Likewise.
4460         * config/bfin/bfin.c (do_unlink): Likewise.
4461         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4462         * config/cris/cris.c (cris_expand_prologue): Likewise.
4463         * config/darwin.c (machopic_indirect_data_reference): Likewise.
4464         (machopic_legitimize_pic_address): Likewise.
4465         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4466         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4467         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4468         (ix86_expand_convert_uns_didf_sse): Likewise.
4469         (ix86_expand_vector_init_general): Likewise.
4470         * config/ia64/ia64.md (eh_epilogue): Likewise.
4471         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4472         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4473         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4474         (config/iq2000/iq2000.c): Likewise.
4475         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4476         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4477         (builtin_longjmp): Likewise.
4478         * config/mn10300/mn10300.md (call, call_value): Likewise.
4479         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4480         * config/pdp11/pdp11.md (abshi2): Likewise.
4481         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4482         * config/s390/s390.c (s390_emit_prologue): Likewise.
4483         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4484         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4485         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4486         * config/sh/sh.c (prepare_move_operands): Likewise.
4487         (output_stack_adjust, sh_expand_epilogue): Likewise.
4488         (sh_set_return_address, sh_expand_t_scc): Likewise.
4489         * config/sparc/sparc.c (load_pic_register): Likewise.
4490         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4491         * config/spu/spu.c (spu_expand_epilogue): Likewise.
4492         * config/v850/v850.c (expand_epilogue): Likewise.
4493
4494 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
4495
4496         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4497         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4498         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4499         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
4500         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
4501         stack pointer register.
4502         (output_movhi): Remove code for interrupt specific writing to the 
4503         stack pointer register.
4504
4505 2008-05-31  Richard Guenther  <rguenther@suse.de>
4506
4507         PR tree-optimization/34244
4508         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4509         (tree_expr_nonzero_warnv_p): Likewise.
4510         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4511         ssa_name_nonnegative_p.
4512         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4513         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4514         not tree_expr_nonzero_warnv_p.
4515
4516         PR tree-optimization/36262
4517         Revert
4518         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
4519
4520         PR tree-optimization/34244
4521         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4522         (record_numbers_of_iterations): New function.
4523         (execute_vrp): Cache the numbers of iterations of loops.
4524         * tree-scalar-evolution.c (scev_reset_except_niters):
4525         New function.
4526         (scev_reset): Use scev_reset_except_niters.
4527         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4528
4529 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4530
4531         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4532         __WORKAROUND_RETS when appropriate.
4533
4534 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4535
4536         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4537         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4538         mode iterator.
4539         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4540         *fop_df_comm_sse insn patterns using MODEF mode iterator.
4541         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4542         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4543         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4544         *fop_df_1_mixed insn patterns using MODEF mode iterator.
4545         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4546         *fop_df_1_sse insn patterns using MODEF mode iterator.
4547         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4548         *fop_df_1_i387 insn patterns using MODEF mode iterator.
4549         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4550         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4551         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4552         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4553         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4554         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4555         (*fop_xf_4_i387): Use <MODE> for mode attribute.
4556         (*fop_xf_5_i387): Ditto.
4557         (*fop_xf_6_i387): Ditto.
4558
4559 2008-05-30  Richard Guenther  <rguenther@suse.de>
4560
4561         * builtins.c (build_string_literal): Avoid generating
4562         a non-gimple_val result.
4563
4564 2008-05-30  DJ Delorie  <dj@redhat.com>
4565
4566         * exec-tool.in: Use an environment variable (private) instead of a
4567         file (shared) as a semaphore, so as to not break parallel builds.
4568
4569 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4570
4571         * optabs.c (maybe_encapsulate_block): Remove.
4572         (emit_libcall_block): Adjust accordingly.
4573         * optabs.h (maybe_encapsulate_block): Remove prototype.
4574
4575         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4576         Don't use maybe_encapsulate_block.
4577
4578 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4579
4580         * config/rs6000/rs6000.c (rs6000_legitimize_address,
4581         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4582         rtx is a SYMBOL_REF before calling get_pool_constant.
4583
4584 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4585
4586         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4587
4588 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
4589
4590         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4591         rather than OS names to choose INO_T_EQ definition.
4592         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4593         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4594
4595 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
4596
4597         PR target/36348
4598         * config/darwin-f.c: New.
4599         * config/t-darwin: Added rule to build darwin-f.o.
4600         * config.gcc: Defined new variable, fortran_target_objs.
4601         (*-*-darwin*): Set fortran_target_objs.
4602         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4603         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4604         * configure: Regenerated.
4605
4606 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4607
4608         PR target/35771
4609         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4610         canonical type if needed.
4611
4612 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4613
4614         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4615
4616 2008-05-29  Richard Guenther  <rguenther@suse.de>
4617
4618         PR tree-optimization/36343
4619         PR tree-optimization/36346
4620         PR tree-optimization/36347
4621         * tree-flow.h (clobber_what_p_points_to): Declare.
4622         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4623         pointed-to variable is dereferenced is irrelevant to whether
4624         the pointer can access the pointed-to variable.
4625         (clobber_what_p_points_to): New function.
4626         * tree-ssa-alias.c (set_initial_properties): Use it.
4627         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4628         call clobber check for NMTs.
4629
4630 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4631         
4632         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4633         for printing gcov_type.
4634
4635 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4636
4637         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4638         and the eh region information.
4639         * value-prof.c (gimple_move_stmt_histograms): New function.
4640         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4641
4642 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
4643
4644         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4645
4646 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
4647
4648         * value-prof.c (tree_ic_transform): Print counts.
4649         * tree-profile.c (tree_gen_ic_func_profiler):
4650         Clear __gcov_indreict_call_callee variable to avoid misattribution
4651         of the profile.
4652
4653 2008-05-28  Rafael Espindola  <espindola@google.com>
4654
4655         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4656         invalid sharing.
4657
4658 2008-05-28  Richard Guenther  <rguenther@suse.de>
4659
4660         PR tree-optimization/36339
4661         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4662         and clobbering code out of the loop.
4663
4664 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4665
4666         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4667         letters defined.
4668
4669         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4670         s390_contiguous_bitmask_p, s390_symref_operand_p,
4671         s390_check_symref_alignment, s390_reload_larl_operand,
4672         s390_reload_symref_address): New functions.
4673         (s390_branch_condition_mnemonic): Support compare and branch
4674         instructions.
4675         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4676         and 'W' constraints.
4677         (s390_secondary_reload): Add secondary reloads for unaligned
4678         symbol refs or symbol refs to floating point or QI/TI mode
4679         integer values.
4680         (legitimate_address_p): Accept symbol references as addresses.
4681         (s390_expand_insv): Use rotate and insert selected bits
4682         instruction for insv when building for z10.
4683         (print_operand_address): Handle symbol ref addresses.
4684         (print_operand): Output modifier 'c' added for signed byte values.
4685         (s390_encode_section_info): Mark symbol refs with
4686         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4687
4688         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4689         (length attribute): RRF, RRR have 4 byte length.
4690         (FPALL, INTALL): New mode iterators added.
4691         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4692         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4693         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4694         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4695         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4696         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4697         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4698         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4699         instructions.
4700         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4701         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4702         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4703         reload<INTALL:mode><P:mode>_toreg_z10,
4704         reload<FPALL:mode><P:mode>_tomem_z10,
4705         reload<FPALL:mode><P:mode>_toreg_z10,
4706         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4707         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4708         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4709         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4710         definition.
4711         (movmem, clrmem, cmpmem): New splitters added.
4712
4713         * config/s390/predicates.md (larl_operand): Use
4714         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4715         SYMBOL_REF_ALIGN1_P.
4716         (s390_signed_integer_comparison,
4717         s390_unsigned_integer_comparison): New predicates.
4718
4719         * config/s390/s390-protos.h (s390_check_symref_alignment,
4720         s390_contiguous_bitmask_p, s390_reload_larl_operand,
4721         s390_reload_symref_address,
4722         s390_compare_and_branch_condition_mask): Prototypes added.
4723
4724         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4725         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4726         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4727
4728 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4729
4730         * config/s390/s390.c (z10_cost): New cost function for z10.
4731         (s390_handle_arch_option, override_options): Support -march=z10 switch.
4732         (s390_issue_rate): Adjust issue rate for z10.
4733         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4734         (processor_flags): Add PF_Z10.
4735         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4736         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4737         * gcc/config.gcc: Add z10.
4738
4739 2008-05-28  Richard Guenther  <rguenther@suse.de>
4740
4741         PR tree-optimization/36291
4742         * tree-flow. h (struct gimple_df): Remove var_anns member.
4743         * tree-flow-inline.h (gimple_var_anns): Remove.
4744         (var_ann): Simplify.
4745         * tree-dfa.c (create_var_ann): Simplify.
4746         (remove_referenced_var): Clear alias info from var_anns of globals.
4747         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4748         (delete_tree_ssa): Clear alias info from var_anns of globals.
4749         Do not free var_anns.
4750         (var_ann_eq): Remove.
4751         (var_ann_hash): Likewise.
4752
4753 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4754
4755         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4756         and loongson2f entries.
4757         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4758         * config/mips/mips.h (processor_type): Add Loongson-2E
4759         and Loongson-2F entries.
4760         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4761         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4762         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4763         * doc/invoke.texi (MIPS Options): Document loongson2e
4764         and loongson2f processor names.
4765
4766 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4767
4768         PR target/35767
4769         PR target/35771
4770         * config/i386/i386.c (ix86_function_arg_boundary): Use
4771         alignment of canonical type.
4772         (ix86_expand_vector_move): Check unaligned memory access for
4773         all SSE modes.
4774
4775 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4776
4777         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4778         Moved to the front of file.
4779
4780 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
4781             H.J. Lu  <hongjiu.lu@intel.com>
4782
4783         * dwarf2out.c (current_fde): New.
4784         (add_cfi): Use it.
4785         (lookup_cfa:): Likewise.
4786         (dwarf2out_end_epilogue): Likewise.
4787         (dwarf2out_note_section_used): Likewise.
4788
4789 2008-05-27  Michael Matz  <matz@suse.de>
4790
4791         PR c++/27975
4792         * c.opt (Wenum-compare): New warning option.
4793         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
4794
4795 2008-05-27  Michael Matz  <matz@suse.de>
4796
4797         PR middle-end/36326
4798         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4799         non-BLKmode types.
4800         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4801         into memory as tail calls.
4802
4803 2008-05-27  Richard Guenther  <rguenther@suse.de>
4804
4805         PR tree-optimization/36339
4806         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4807         pointers cause all addressable variables to be call clobbered.
4808
4809 2008-05-27  Richard Guenther  <rguenther@suse.de>
4810
4811         PR tree-optimization/36245
4812         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4813
4814 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4815
4816         * config/s390/s390.md: Replace all occurences of the 'm'
4817         constraint with 'RT'.
4818
4819 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4820
4821         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4822         definitions added.
4823         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4824         "*movdi_64".
4825         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4826         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4827         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4828
4829 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4830
4831         * reload.c: (find_reloads): Skip alternatives according to the
4832         "enabled" attribute. Constify the constraint variable.
4833         * recog.c (get_attr_enabled): Add default implementation.
4834         (extract_insn): Set the alternative_enabled_p array
4835         in the recog_data struct.
4836         (preprocess_constraints, constrain_operands): Skip
4837         alternatives according to the "enabled" attribute
4838         * recog.h (struct recog_data): New field alternative_enabled_p.
4839         (skip_alternative): New inline function.
4840         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4841         (record_reg_classes): Skip alternative according to the
4842         "enabled" attribute.
4843
4844         * doc/md.texi: Add documention for the "enabled" attribute.
4845
4846 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4847
4848         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4849         * postreload.c (reload_cse_simplify_operands): Replace 'm'
4850         constraint with TARGET_MEM_CONSTRAINT.
4851         * recog.c (asm_operand_ok, preprocess_constraints,
4852         constrain_operands): Likewise.
4853         * regclass.c (record_reg_classes): Likewise.
4854         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4855         * reload1.c (maybe_fix_stack_asms): Likewise.
4856         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4857         * recog.h: Adjust comment.
4858         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4859         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4860         * doc/md.texi: Add a note to description of 'm' constraint.
4861         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4862
4863 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4864
4865         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4866         that the bitfield is of integral type before testing its precision.
4867
4868 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4869             Sa Liu  <saliu@de.ibm.com> 
4870
4871         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
4872         __modti3, __udivti3, __umodti3 and __udivmodti4.
4873         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4874         that implement TImode mul and div functions.
4875         * config/spu/multi3.c: New. Implement __multi3.
4876         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4877         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4878         functions on SPU.
4879
4880 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
4881
4882         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4883         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4884         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4885         tls_sysv_suffix): New mode and mode attribute iterators.
4886         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4887         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4888         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4889         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4890         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4891         iterators.
4892
4893 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4894
4895         PR tree-optimization/36329
4896         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4897         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4898         * cgraphbuild.c (initialize_inline_failed): Use the latter
4899         macro in lieu of the former.
4900         * ipa-inline.c (cgraph_mark_inline): Likewise.
4901         (cgraph_decide_inlining_of_small_function): Likewise.
4902         (cgraph_decide_inlining): Likewise.
4903         (cgraph_decide_inlining_incrementally): Likewise.
4904
4905 2008-05-26  Tristan Gingold  <gingold@adacore.com>
4906             Anatoly Sokolov  <aesok@post.ru>
4907
4908         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4909         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4910         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
4911         optimization for 'avr6' architecture.
4912
4913 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
4914
4915         PR target/34932
4916         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4917
4918 2008-05-26  Richard Guenther  <rguenther@suse.de>
4919
4920         * tree-ssa-sccvn.c (expr_has_constants): Declare.
4921         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4922
4923 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4924
4925         PR middle-end/36253
4926         * caller-save.c (insert_restore): Verify alignment of spill space.
4927         (insert_save): Likewise.
4928         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4929         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4930         (STACK_SLOT_ALIGNMENT): Likewise.
4931         * function.c (LOCAL_ALIGNMENT): Removed.
4932         (get_stack_local_alignment): New.
4933         (assign_stack_local): Use it.  Set alignment on stack slot.
4934         (assign_stack_temp_for_type): Use get_stack_local_alignment.
4935         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4936         (STACK_SLOT_ALIGNMENT): New.
4937         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4938         stack slot in XFmode.
4939
4940         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4941
4942 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
4943
4944         PR/36321
4945         * config/i386/i386.md (allocate_stack_worker_64): Make sure
4946         argument operand in rax isn't removed.
4947
4948 2008-05-26  Richard Guenther  <rguenther@suse.de>
4949
4950         PR middle-end/36300
4951         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4952         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
4953
4954 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4955
4956         PR bootstrap/36331
4957         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4958
4959 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
4960
4961         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4962         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4963
4964 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4965
4966         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4967         build a trampoline if we don't want one.
4968         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4969         return zero for nested functions if we don't want a trampoline.
4970
4971 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4972
4973         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4974
4975 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4976
4977         PR fortran/18428
4978         * c.opt: Removed undocumented option '-lang-fortran'.
4979         * c-common.h: Removed global variable 'lang_fortran'.
4980         * c-opts.c (c_common_handle_option): Removed code to handle
4981         option '-lang-fortran'. Updated includes.
4982         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4983         definition of '__GFORTRAN__'.
4984         (define__GNUC__): Reimplemented to use BASEVER and
4985         cpp_define_formatted.
4986         (builtin_define_with_value_n): Removed.
4987         * c-incpath.h: Renamed to ...
4988         * incpath.h: ... this.
4989         * c-incpath.c: Renamed to ...
4990         * incpath.c: ... this. Updated includes.
4991         * fix-header.c: Updated includes.
4992         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4993         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4994         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4995
4996 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4997
4998         * tree.h: Update the table of flags used on tree nodes.
4999         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
5000         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
5001         (FORCED_LABEL): Add access check.
5002         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
5003         (ASM_INPUT_P): Likewise.
5004         (ASM_VOLATILE_P): Likewise.
5005         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
5006         (OMP_SECTION_LAST): Access private_flag directly.
5007         (OMP_RETURN_NOWAIT): Likewise.
5008         (OMP_PARALLEL_COMBINED): Likewise.
5009         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
5010         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
5011         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
5012         deprecated_flag directly.
5013
5014 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5015
5016         * final.c (frame_pointer_needed): Removed.
5017         * flags.h (frame_pointer_needed): Likewise.
5018
5019         * function.h (rtl_data): Add frame_pointer_needed.
5020         (frame_pointer_needed): New.
5021
5022 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
5023
5024         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
5025
5026 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
5027
5028         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
5029         SRC is a REG.
5030
5031 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
5032
5033         * c-common.c (strip_array_types): Move function to..
5034         * tree.c: ..here.
5035         (get_inner_array_type): Delete.
5036         * c-common.h (strip_array_types): Move declaration to..
5037         * tree.h: ..here.
5038         (get_inner_array_type): Delete.
5039         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
5040         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
5041         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5042         * config/pa/pa.c (emit_move_sequence): Likewise.
5043
5044 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5045
5046         * config/i386/i386.md (*sse_prologue_save_insn): Set length
5047         attribute to 34.
5048
5049 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
5050
5051         * function.c: Include target hook for nonlocal_goto frame value.
5052
5053 2008-05-24  Richard Guenther  <rguenther@suse.de>
5054
5055         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5056         variable can be only accessed through a pointer or a union.
5057
5058 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5059
5060         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5061         * doc/extend.texi: Likewise.
5062
5063 2008-05-23  DJ Delorie  <dj@redhat.com>
5064
5065         * config/m32c/jump.md (untyped_call): Add.
5066
5067         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5068         for A24 to PSImode.
5069         (m32c_address_cost): Detail costs for indirect offsets.
5070
5071 2008-05-23  Rafael Espindola  <espindola@google.com>
5072
5073         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5074         if a node is a SUBREG.
5075         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5076         is a SUBREG.
5077
5078 2008-05-23  Paul Brook  <paul@codesourcery.com>
5079             Carlos O'Donell  <carlos@codesourcery.com>
5080
5081         * doc/extend.texi: Clarify use of __attribute__((naked)).
5082         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5083         * target.h (gcc_target): Add allocate_stack_slots_for_args.
5084         * function.c (use_register_for_decl): Use
5085         targetm.calls.allocate_stack_slots_for_args.
5086         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5087         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5088         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5089
5090 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5091
5092         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5093
5094 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
5095
5096         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5097         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5098         is only rounded once.
5099
5100 2008-05-23  Richard Guenther  <rguenther@suse.de>
5101
5102         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5103
5104 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
5105             Jakub Jelinek  <jakub@redhat.com>
5106
5107         PR target/36079
5108         * configure.ac: Handle --enable-cld.
5109         * configure: Regenerated.
5110         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5111         * config/i386/i386.h (struct machine_function): Add needs_cld field.
5112         (ix86_current_function_needs_cld): New define.
5113         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5114         (cld): New isns pattern.
5115         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5116         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5117         * config/i386/i386.opt (mcld): New option.
5118         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5119         TARGET_CLD and ix86_current_function_needs_cld.
5120         (override_options): Use -mcld by default for 32-bit code if
5121         USE_IX86_CLD.
5122
5123         * doc/install.texi (Options specification): Document --enable-cld.
5124         * doc/invoke.texi (Machine Dependent Options)
5125         [i386 and x86-64 Options]: Add -mcld option.
5126         (Intel 386 and AMD x86-64 Options): Document -mcld option.
5127
5128 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
5129         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5130         (return_in_memory_64): Likewise.
5131         (return_in_memory_ms_64): Likewise.
5132
5133 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5134
5135         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5136         * builtins.c (fold_builtin_fpclassify): New.
5137         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5138         * builtins.def (BUILT_IN_FPCLASSIFY): New.
5139         * c-common.c (handle_type_generic_attribute): Adjust to accept
5140         fixed arguments before an elipsis.
5141         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5142         * doc/extend.texi: Document __builtin_fpclassify.
5143
5144 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
5145
5146         * omp-low.c (gate_expand_omp_ssa): Remove.
5147         (pass_expand_omp_ssa): Remove.
5148         (gate_expand_omp): Do not check for flag_openmp_ssa.
5149         * common.opt (-fopenmp-ssa): Remove.
5150         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5151
5152 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5153
5154         * config/sh/sh.opt (mfixed-range): New option.
5155         * config/sh/sh-protos.h (sh_fix_range): Declare.
5156         * config/sh/sh.c (sh_fix_range): New function.
5157         * config/sh/sh.h (sh_fixed_range_str): Declare.
5158         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5159         is not empty.
5160         * doc/invoke.texi (SH Options): Document -mfixed-range.
5161
5162 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
5163
5164         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5165         it before the redeclaration.
5166
5167 2008-05-22  Anatoly Sokolov <aesok@post.ru>
5168
5169         * config/avr/avr.c (get_sequence_length): Add new function.
5170         (expand_prologue, expand_epilogue): Remove duplicate code.
5171
5172 2008-05-22  Rafael Espindola  <espindola@google.com>
5173
5174         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5175         sharing.
5176
5177 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5178
5179         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5180         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5181
5182         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5183         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5184         (vect_update_misalignment_for_peel): Likewise.
5185         (vector_alignment_reachable_p): Likewise.
5186         * tree-vect-transform.c (vectorizable_load): Likewise.
5187         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5188         (get_vectype_for_scalar_type): Pass mode of scalar_type
5189         to UNITS_PER_SIMD_WORD.
5190
5191         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5192         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5193         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5194         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5195         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5196
5197 2008-05-22  Ira Rosen  <irar@il.ibm.com>
5198
5199         PR tree-optimization/36293
5200         * tree-vect-transform.c (vect_transform_strided_load): Don't check
5201         if the first load must be skipped because of a gap.
5202
5203 2008-05-22  Richard Guenther  <rguenther@suse.de>
5204
5205         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
5206         more cases of offset disambiguation that is possible if
5207         strict-aliasing rules apply.
5208         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
5209         for basic offset and type-based disambiguation.
5210
5211 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5212
5213         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
5214         ix86_expand_vector_set on V16QImode for SSE4.1.
5215
5216 2008-05-21  Tom Tromey  <tromey@redhat.com>
5217
5218         * c.opt (Wimport): Mark as undocumented.
5219         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
5220         -Wno-import.
5221         (Warning Options): Likewise.
5222         * doc/cppopts.texi: Don't mention -Wimport.
5223
5224 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
5225
5226         PR tree-optimization/36287
5227         PR tree-optimization/36286
5228         * lambda-code.c (build_access_matrix): Do not use the loop->num
5229         for computing the number of induction variables: use the loop depth
5230         instead.
5231
5232 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
5233
5234         PR/36280
5235         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5236         option -f(no-)leading-underscore.
5237
5238 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5239
5240         * config/i386/i386.c (ix86_expand_vector_init_general): Use
5241         GET_MODE_NUNITS (mode).
5242
5243 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
5244
5245         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5246         (-mmulhw): Add 464 to description.
5247         (-mdlmzb): Likewise.
5248         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5249         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5250         464fp entries.
5251         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5252         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5253         * config/rs6000/rs6000.md: Update comments for 464.
5254
5255 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
5256
5257         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5258
5259 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5260
5261         * config/i386/sse.md (vec_extractv4sf): Removed.
5262         (vec_extractv2df): Likewise.
5263         (vec_extractv2di): Likewise.
5264         (vec_extractv4si): Likewise.
5265         (vec_extractv8hi): Likewise.
5266         (vec_extractv16qi): Likewise.
5267         (vec_extract<mode>): New.
5268
5269 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5270
5271         * config/i386/sse.md (vec_setv4sf): Removed.
5272         (vec_setv2df): Likewise.
5273         (vec_setv2di): Likewise.
5274         (vec_setv4si): Likewise.
5275         (vec_setv8hi): Likewise.
5276         (vec_setv16qi): Likewise.
5277         (vec_set<mode>): New.
5278
5279 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5280
5281         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5282         goto for vec_concat and vec_interleave.
5283
5284 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5285
5286         * config/i386/sse.md (vec_initv4sf): Removed.
5287         (vec_initv2df): Likewise.
5288         (vec_initv2di): Likewise.
5289         (vec_initv4si): Likewise.
5290         (vec_initv8hi): Likewise.
5291         (vec_initv16qi): Likewise.
5292         (vec_init<mode>): New.
5293
5294 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
5295
5296         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5297
5298 2008-05-21  Tom Tromey  <tromey@redhat.com>
5299
5300         * ggc-zone.c (lookup_page_table_if_allocated): New function.
5301         (zone_find_object_offset): Likewise.
5302         (gt_ggc_m_S): Likewise.
5303         (highest_bit): Likewise.
5304         * ggc-page.c (gt_ggc_m_S): New function.
5305         * stringpool.c (string_stack): Remove.
5306         (init_stringpool): Update.
5307         (ggc_alloc_string): Use ggc_alloc.
5308         (maybe_delete_ident): New function.
5309         (ggc_purge_stringpool): Likewise.
5310         (gt_ggc_m_S): Remove.
5311         * ggc-common.c (ggc_protect_identifiers): New global.
5312         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
5313         ggc_protect_identifiers.
5314         * ggc.h (ggc_protect_identifiers): Declare.
5315         (gt_ggc_m_S): Update.
5316         (ggc_purge_stringpool): Declare.
5317         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5318         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5319         special case.
5320         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5321
5322 2008-05-21  David S. Miller  <davem@davemloft.net>
5323
5324         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5325         tmake_file.
5326
5327 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5328
5329         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5330         once finished.
5331
5332 2008-05-20  David Daney  <ddaney@avtrex.com>
5333
5334         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5335         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5336         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5337         UNSPEC_UPDATE_GOT_VERSION): Renumber.
5338         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5339         (atomic_hiqi_op): New define_code_iterator.
5340         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5341         mips_expand_compare_and_swap_12.
5342         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5343         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
5344         (sync_<optab><mode>, sync_old_<optab><mode>,
5345         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5346         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5347         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5348         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5349         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5350         (test_and_set_12): New insn.
5351         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5352         sync_new_<optab><mode>, sync_old_nand<mode>,
5353         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
5354         clobber to operand 0 for SI and DI mode insns.
5355         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5356         mips_gen_fn_4): New typedefs.
5357         (mips_gen_fn_ptrs): Define new union type.
5358         (mips_expand_compare_and_swap_12): Remove declaration.
5359         (mips_expand_atomic_qihi): Declare function.
5360         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5361         (mips_expand_atomic_qihi): ... this.  Use new generator function
5362         parameter.
5363         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5364         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5365         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5366         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5367         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5368         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5369         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5370         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5371         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5372         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5373         New macros.
5374
5375 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5376
5377         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5378         the missing break.
5379
5380 2008-05-20  Anatoly Sokolov <aesok@post.ru>
5381
5382         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5383         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5384         (avr_attribute_table): Add 'OS_main' function attribute.
5385         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5386         functions with 'OS_main' attribute.
5387
5388 2008-05-20  Richard Guenther  <rguenther@suse.de>
5389
5390         PR tree-optimization/35204
5391         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5392         helper, split out from ...
5393         (DFS): ... here.  Make the DFS walk non-recursive.
5394
5395 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
5396             Jan Sjodin  <jan.sjodin@amd.com>
5397
5398         PR tree-optimization/36181
5399         * tree-parloops.c (loop_has_vector_phi_nodes): New.
5400         (parallelize_loops): Don't parallelize when the loop has vector
5401         phi nodes.
5402
5403 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5404             Sebastian Pop  <sebastian.pop@amd.com>
5405
5406         * tree-loop-linear.c (gather_interchange_stats): Look in the access
5407         matrix, and never look at the tree representation of the memory
5408         accesses.
5409         (linear_transform_loops): Computes parameters and access matrices.
5410         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5411         when fails.
5412         (access_matrix_get_index_for_parameter): New.
5413         * tree-data-ref.h (struct access_matrix): New.
5414         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5415         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5416         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5417         am_vector_index_for_loop): New.
5418         (struct data_reference): Add field access_matrix.
5419         (DR_ACCESS_MATRIX): New.
5420         (compute_data_dependences_for_loop): Update declaration.
5421         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5422         * lambda.h (lambda_vector_vec_p): Declared.
5423         * lambda-code.c: Depend on pointer-set.h.
5424         (lambda_collect_parameters_from_af, lambda_collect_parameters,
5425         av_for_af_base, av_for_af, build_access_matrix,
5426         lambda_compute_access_matrices): New.
5427         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5428
5429 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
5430
5431         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5432         $SOURCEDIR/include.
5433
5434 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5435             Sebastian Pop  <sebastian.pop@amd.com>
5436
5437         PR tree-optimization/36206
5438         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5439         FOLD_CONVERSIONS.
5440         (instantiate_scev_1): Rename flags to fold_conversions.
5441         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5442         outeside instantiation_loop.
5443         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5444         (evolution_function_is_affine_or_constant_p): Removed.
5445         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5446         instantiate_scev.
5447         (analyze_siv_subscript): Pass in the loop nest number.
5448         Call evolution_function_is_affine_in_loop instead of 
5449         evolution_function_is_affine_p.
5450         (analyze_overlapping_iterations): Pass in the loop nest number.
5451
5452 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5453             Sebastian Pop  <sebastian.pop@amd.com>
5454
5455         PR tree-optimization/36206
5456         * tree-chrec.h (chrec_fold_op): New.
5457         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5458         and other trees.
5459
5460 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
5461
5462         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5463         (DIRS_EQ): New.
5464         (remove_duplicates): Do not set inode on non-inode systems.
5465         Use DIRS_EQ.
5466
5467 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5468
5469         * config.gcc (tm_file): Update comments about relative pathnames.
5470
5471 2008-05-20  Richard Guenther  <rguenther@suse.de>
5472
5473         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5474         * tree-ssa-sccvn.c (process_scc): Likewise.
5475         * tree-ssa-sink.c (execute_sink_code): Likewise.
5476         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5477         * tree-vrp.c (process_assert_insertions): Likewise.
5478         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5479         (perform_tree_ssa_dce): Likewise.
5480         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5481         (dump_dominator_optimization_stats): Likewise.
5482         * tree-vectorizer.c (vectorize_loops): Likewise.
5483
5484 2008-05-20  Richard Guenther  <rguenther@suse.de>
5485
5486         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5487
5488 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
5489
5490         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5491         (ix86_i386elf_return_in_memory): Likewise.
5492         (ix86_i386interix_return_in_memory): Likewise.
5493         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5494         (SUBTARGET_RETURN_IN_MEMORY): New.
5495         * config/i386/i386elf.h: Likewise.
5496         * config/i386/ptx4-i.h: Likewise.
5497         * config/i386/sol2-10.h: Likewise.
5498         * config/i386/sysv4.h: Likewise.
5499         * config/i386/vx-common.h: Likewise.
5500         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5501         * config/i386/i386.c (ix86_return_in_memory): Made static and
5502         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5503         (ix86_i386elf_return_in_memory): Removed.
5504         (ix86_i386interix_return_in_memory): Removed.
5505         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5506         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5507
5508 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
5509
5510         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5511
5512 2008-05-19  Xinliang David Li  <davidxl@google.com>
5513
5514         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
5515         * opts.c: Ditto.
5516         * common.opt: Ditto.
5517         * doc/invoke.texi: Ditto.
5518
5519 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5520
5521         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5522         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5523
5524 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5525
5526         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5527         sizes of operand array from 8/4 to 4/2.
5528         (ix86_expand_vector_init_general): Change size of operand array
5529         from 32 to 16.  Remove op0, op1 and half_mode.
5530
5531 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5532
5533         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5534         (ix86_expand_vector_init_interleave): Likewise.
5535         (ix86_expand_vector_init_general): Use them.  Assert
5536         word_mode == SImode when n_words == 4.
5537
5538 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
5539
5540         * config/i386/i386.c (ix86_secondary_reload): New static function.
5541         (TARGET_SECONDARY_RELOAD): New define.
5542         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5543         * config/i386/i386.md (reload_outqi): Remove.
5544
5545 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5546
5547         PR middle-end/35509
5548         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5549         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
5550         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5551         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5552         (fold_builtin_1): Likewise.
5553         * builtins.def (BUILT_IN_ISINF_SIGN): New.
5554         c-common.c (check_builtin_function_arguments): Handle
5555         BUILT_IN_ISINF_SIGN.
5556         * doc/extend.texi: Document __builtin_isinf_sign.
5557         * fold-const.c (operand_equal_p): Handle COND_EXPR.
5558
5559 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
5560
5561         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5562         EH cleanup at the end of the pass, search for those that have been
5563         turned into forwarder blocks and do the cleanup on their successor.
5564
5565 2008-05-18  Richard Guenther  <rguenther@suse.de>
5566
5567         * tree-cfg.c (verify_gimple_expr): Allow conversions from
5568         pointers to sizetype and vice versa.
5569
5570 2008-05-18 Xinliang David Li   <davidxl@google.com>
5571
5572         * gcc/tree-ssa-dce.c: Coding style fix.
5573         (check_pow): Documentation comment. 
5574         (check_log): Documenation comment. Coding style fix.
5575         (is_unnecessary_except_errno_call): Ditto.
5576         (gen_conditions_for_pow): Ditto.
5577         (gen_conditions_for_log): Ditto.
5578         (gen_shrink_wrap_conditions): Ditto.
5579         (shrink_wrap_one_built_in_calls): Ditto.
5580         * gcc/doc/invoke.texi: Better documentation string.
5581         * ChangeLog: Fix wrong change log entries from 
5582         May 17 checkin on function call DCE.
5583
5584 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5585
5586         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5587
5588 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
5589
5590         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5591         * df-problems.c (simulation routines): Fixed block comment to
5592         properly say how to add forwards scanning functions.
5593         
5594 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5595
5596         * tree-inline.c (setup_one_parameter): Remove dead code.
5597
5598 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5599
5600         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5601         a BIT_AND_EXPR only for an INTEGER_TYPE.
5602
5603 2008-05-17 Xinliang David Li   <davidxl@google.com>
5604
5605         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5606         (check_pow, check_log, is_unnecessary_except_errno_call): New 
5607         functions to check for eliminating math functions that are pure 
5608         except for setting errno.
5609         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5610         general condition expressions for shrink-wrapping pow/log calls.
5611         (gen_shrink_wrap_conditions): Ditto.
5612         (shrink_wrap_one_built_in_call): Ditto.
5613         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5614         (mark_operand_necessary): If debugging, output if OP is necessary.
5615         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5616         unnecessary.
5617         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5618         opt level >= 2.
5619         * gcc/common.opt: New user flag -ftree-builtin-dce.
5620         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5621
5622 2008-05-16  David S. Miller  <davem@davemloft.net>
5623
5624         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5625         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5626
5627 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
5628
5629         PR target/36246
5630         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5631
5632 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5633
5634         * ifcvt.c (dead_or_predicable): Rename
5635         df_simulate_one_insn_backwards to df_simulate_one_insn.
5636         * recog.c (peephole2_optimize): Ditto.
5637         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5638         Ditto.
5639         * df.h: Rename df_simulate_one_insn_backwards to
5640         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
5641         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5642         scanning of defs and uses.
5643         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5644         (df_simulate_one_insn_forwards): Removed.
5645
5646 2008-05-16  Doug Kwan  <dougkwan@google.com>
5647
5648         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5649         QNaN & SNaN.
5650         (real_from_string): Handle NaNs and Inf as approriate.
5651
5652 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5653
5654         * doc/gty.texi (Source Files Containing Type Information): Note
5655         that headers should appear first in the gtfiles list.
5656
5657 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5658
5659         * tree.def (COND_EXEC): Properly documented this code.
5660
5661 2008-05-16  Diego Novillo  <dnovillo@google.com>
5662
5663         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5664         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5665         the new field.
5666
5667 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5668
5669         * tree-ssa-dse (max_stmt_uid): Removed.
5670         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
5671         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5672         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5673         * function.h (cfun.last_stmt_uid): New field.
5674         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5675         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5676         New functions.
5677         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5678         (create_stmt_ann): Initialize the ann->uid field.
5679         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5680         with new calls.
5681         * tree-flow.h (renumber_gimple_stmt_uids): New function.
5682
5683 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5684
5685         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5686         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5687         (init_empty_tree_cfg): Call it.
5688
5689 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5690
5691         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
5692         Update all users.
5693
5694 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5695
5696         * doc/invoke.text (-fdump-tree-*-verbose): New option.
5697         * tree-dump.c (dump_options): New verbose option.
5698         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5699         Add verbose dump.
5700         * tree-pass.h (TDF_VERBOSE): New dump flag.
5701         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5702         (tree-flow.h): Added include.
5703         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
5704
5705 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
5706
5707         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5708
5709         From Jie Zhang  <jie.zhang@analog.com>
5710         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5711         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5712         mcpu=bf561-none and mcpu=bf561-0.2.
5713         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5714         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5715         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5716         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5717         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5718         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5719         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
5720         option.
5721         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5722         (cputype_selected): Remove.
5723         (bfin_handle_option): Don't use cputype_selected.
5724         (override_options): When no mcpu option, enable all workarounds.
5725         Don't use bfin_workarounds.
5726         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5727         processor type.
5728         (DEFAULT_CPU_TYPE): Don't define.
5729
5730 2008-05-16  Richard Guenther  <rguenther@suse.de>
5731
5732         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5733         on deletion of the last stmt.
5734
5735 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5736
5737         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5738         V8HImode for SSE2 and V16QImode for SSE4.1.
5739
5740 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
5741
5742         * cgraph.h (compute_inline_parameters): Made public.
5743         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5744         variable_generate_summary, function_write_summary,
5745         variable_write_summary, variable_read_summary.  Added generate_summary,
5746         write_summary, read_summary.
5747         * cgraphunit.c (cgraph_process_new_functions): Changed call from
5748         pass_ipa_inline.function_generate_summary, to
5749         compute_inline_parameters. 
5750         * ipa-inline.c (compute_inline_parameters): Made public and added
5751         node parameter.
5752         (compute_inline_parameters_for_current): New function.
5753         (pass_inline_param): Now calls compute_inline_parameters_for_current.
5754         (inline_generate_summary): Removed parameter and made to loop over
5755         all cgraph nodes.
5756         (pass_ipa_inline): Updated for new IPA_PASS structure.
5757         * passes.c (execute_ipa_summary_passes): Now is called once per
5758         pass rather than once per node*pass.
5759         
5760 2008-05-15  Anatoly Sokolov <aesok@post.ru>
5761
5762         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
5763         avr_have_mul_p, avr_asm_only_p): Remove variables.
5764         (avr_override_options): Remove initialization of removed variables.
5765         (avr_file_start):  Convert removed variables to fields of 
5766         'struct base_arch_s *avr_current_arch'. 
5767         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5768         (AVR_HAVE_MUL): (Ditto.).
5769         (AVR_HAVE_MOVW): (Ditto.).
5770         (AVR_HAVE_LPMX): (Ditto.). 
5771         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
5772         avr_asm_only_p): Remove declaration.
5773
5774 2008-05-15  Diego Novillo  <dnovillo@google.com>
5775
5776         * config/arm/arm.c (arm_return_in_memory): Fix return type.
5777         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5778
5779 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
5780
5781         PR middle-end/36194
5782         * combine.c (check_conversion): Rename back to check_promoted_subreg.
5783         Don't call record_truncated_value from here.
5784         (record_truncated_value): Turn it into a for_each_rtx callback.
5785         (record_truncated_values): New function.
5786         (combine_instructions): Call note_uses with record_truncated_values.
5787         Change name of check_conversion to check_promoted_subreg. 
5788
5789 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5790
5791         * doc/sourcebuild.texi: Document support for torture tests.
5792
5793 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5794
5795         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5796         to alternative 4 of operand 2.
5797
5798 2008-05-15  Richard Guenther  <rguenther@suse.de>
5799
5800         * tree-pass.h (current_pass): Declare.
5801         (get_pass_for_id): Likewise.
5802         * passes.c (passes_by_id, passes_by_id_size): New globals.
5803         (set_pass_for_id): New function.
5804         (get_pass_for_id): Likewise.
5805         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5806         (execute_function_todo): Flush per function statistics.
5807         * toplev.c (compile_file): Init statistics.
5808         (general_init): Do early statistics initialization.
5809         (finalize): Finish statistics.
5810         * statistics.h (statistics_early_init): Declare.
5811         (statistics_init): Likewise.
5812         (statistics_fini): Likewise.
5813         (statistics_fini_pass): Likewise.
5814         (statistics_counter_event): Likewise.
5815         (statistics_histogram_event): Likewise.
5816         * statistics.c: New file.
5817         * Makefile.in (OBJS-common): Add statistics.o.
5818         (statistics.o): Add dependencies.
5819         * doc/invoke.texi (-fdump-statistics): Document.
5820
5821         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5822         (insert): Likewise.
5823         (execute_pre): Use statistics_counter_event.
5824         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5825         (substitute_and_fold): Increment it.  Use statistics_counter_event.
5826
5827 2008-05-15  Diego Novillo  <dnovillo@google.com>
5828
5829         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5830
5831         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5832         * tree-ssa-alias.c (new_type_alias): Remove references to
5833         sub-variables from comment.
5834         * tree-ssa-operands.c (swap_tree_operands): Likewise.
5835
5836 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5837
5838         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5839         attribute to 1 only for insertps alternative.
5840
5841 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5842
5843         * config/bfin/bfin.md (loadbytes): New pattern.
5844         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5845         (bfin_init_builtins): Initialize it.
5846         (bdesc_1arg): Add it.
5847
5848 2008-05-15  Sa Liu  <saliu@de.ibm.com>
5849
5850         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5851         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5852         * testsuite/lib/target-supports.exp: Add
5853         check_effective_target_fortran_integer_16.
5854
5855 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5856
5857         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5858         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5859         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
5860         (TARGET_RETURN_IN_MEMORY): Define.
5861
5862 2008-05-15  Richard Guenther  <rguenther@suse.de>
5863
5864         PR middle-end/36244
5865         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5866         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5867         represent unmodifiable vars.
5868
5869 2008-05-15  Richard Guenther  <rguenther@suse.de>
5870
5871         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5872         INDIRECT_REF and TARGET_MEM_REF.
5873         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5874         TARGET_MEM_REF.
5875
5876 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5877             H.J. Lu  <hongjiu.lu@intel.com>
5878
5879         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5880         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5881         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
5882         insn alternatives.  Add missing alternatives.
5883         (*vec_concatv2di_rex64_sse4_1): Likewise.
5884         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5885         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5886         Require TARGET_SSE.
5887
5888 2008-05-15  Richard Guenther  <rguenther@suse.de>
5889
5890         PR tree-optimization/36009
5891         PR tree-optimization/36204
5892         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5893         (determine_invariantness_stmt): Record the loop a store is
5894         always executed in.
5895         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5896         dependency.
5897
5898 2008-05-15  Richard Guenther  <rguenther@suse.de>
5899
5900         PR tree-optimization/34330
5901         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5902         through the pointer will alias the SMT.
5903
5904 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
5905
5906         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5907
5908 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5909
5910         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5911
5912 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5913             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5914
5915         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5916         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5917         (vashl_optab): New optab for vector/vector shifts.
5918         (vashr_optab): Ditto.
5919         (vlshr_optab): Ditto.
5920         (vrotl_optab): Ditto.
5921         (vrotr_optab): Ditto.
5922         (optab_subtype): New enum for optab_for_tree_code call.
5923         (optab_for_tree_code): Add enum optab_subtype argument.
5924
5925         * optabs.c (optab_for_tree_code): Take an additional argument to
5926         distinguish between a vector shift by a scalar and vector shift by
5927         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
5928         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
5929         vector shift by a vector.
5930         (expand_widen_pattern_expr): Pass additional argument to
5931         optab_for_tree_code.
5932
5933         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5934         vrotl_optab, vrotr_optab.
5935
5936         * expr.c (expand_expr_real_1): Update calls to
5937         optab_for_tree_code to distinguish between vector shifted by a
5938         scalar and vector shifted by a vector.
5939         * tree-vectorizer.c (supportable_widening_operation): Ditto.
5940         (supportable_narrowing_operation): Ditto.
5941         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5942         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5943         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5944         (vect_create_epilog_for_reduction): Ditto.
5945         (vectorizable_reduction): Ditto.
5946         (vectorizable_operation): Ditto.
5947         (vect_strided_store_supported): Ditto.
5948         (vect_strided_load_supported): Ditto.
5949         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5950         * expmed.c (expand_shift): Ditto.
5951
5952         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5953         scalar type.
5954         (ashr@var{m}3): Ditto.
5955         (vashl@var{m}3): Document new vector/vector shift standard name.
5956         (vashr@var{m}3): Ditto.
5957         (vlshr@var{m}3): Ditto.
5958         (vrotl@var{m}3): Ditto.
5959         (vrotr@var{m}3): Ditto.
5960
5961         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5962         (PPERM_INVERT): Ditto.
5963         (PPERM_REVERSE): Ditto.
5964         (PPERM_REV_INV): Ditto.
5965         (PPERM_ZERO): Ditto.
5966         (PPERM_ONES): Ditto.
5967         (PPERM_SIGN): Ditto.
5968         (PPERM_INV_SIGN): Ditto.
5969         (PPERM_SRC1): Ditto.
5970         (PPERM_SRC2): Ditto.
5971
5972         * config/i386/sse.md (mulv2di3): Add SSE5 support.
5973         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5974         allows a memory operand to be the value being added, and split it
5975         to improve vectorization.
5976         (sse5_pmacsdqh_mem): Ditto.
5977         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5978         (sse5_mulv2div2di3_high): Ditto.
5979         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5980         (vec_pack_trunc_v4si): Ditto.
5981         (vec_pack_trunc_v2di): Ditto.
5982         (sse5_pcmov_<mode>): Remove code that tried to use use
5983         andps/andnps instead of pcmov.
5984         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5985         pmacsdqh instructions.
5986         (vec_widen_smult_lo_v4si): Ditto.
5987
5988         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5989         (PPERM_INVERT): Ditto.
5990         (PPERM_REVERSE): Ditto.
5991         (PPERM_REV_INV): Ditto.
5992         (PPERM_ZERO): Ditto.
5993         (PPERM_ONES): Ditto.
5994         (PPERM_SIGN): Ditto.
5995         (PPERM_INV_SIGN): Ditto.
5996         (PPERM_SRC1): Ditto.
5997         (PPERM_SRC2): Ditto.
5998         (ix86_expand_sse_movcc): Move the SSE5 test after the if
5999         true/false tests.
6000         (ix86_expand_int_vcond): If SSE5 generate all possible integer
6001         comparisons.
6002         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
6003         says ignore whether the last reference is a memory operand.
6004
6005 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6006             Paolo Bonzini <bonzini at gnu dot org>
6007
6008         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
6009         shift patterns.
6010
6011         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
6012         (vlshr<mode>3): Rename from vlshr<mode>3.
6013         (vashr<mode>3): Rename from vashr<mode>3.
6014         (mulv4sf3): Change the names of vector shift patterns.
6015         (mulv4si3): Ditto.
6016         (negv4sf2): Ditt.
6017
6018         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
6019         shift insns.
6020
6021         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
6022         (SI_SHLHI): Ditto.
6023         (SI_SHL): Ditto.
6024         (SI_SHLI): Ditto.
6025         (SI_ROTH): Ditto.
6026         (SI_ROTHI): Ditto.
6027         (SI_ROT): Ditto.
6028         (SI_ROTI): Ditto.
6029         (SPU_RL_0): Ditto.
6030         (SPU_RL_1): Ditto.
6031         (SPU_RL_2): Ditto.
6032         (SPU_RL_3): Ditto.
6033         (SPU_RL_4): Ditto.
6034         (SPU_RL_5): Ditto.
6035         (SPU_RL_6): Ditto.
6036         (SPU_RL_7): Ditto.
6037         (SPU_SL_0): Ditto.
6038         (SPU_SL_1): Ditto.
6039         (SPU_SL_2): Ditto.
6040         (SPU_SL_3): Ditto.
6041         (SPU_SL_4): Ditto.
6042         (SPU_SL_5): Ditto.
6043         (SPU_SL_6): Ditto.
6044         (SPU_SL_7): Ditto.
6045
6046         * config/spu/spu.md (v): New iterator macro to add v for vector types.
6047         (floatunssidf2_internal): Change vector/vector shift names.
6048         (floatunsdidf2_internal): Ditto.
6049         (mulv8hi3): Ditto.
6050         (ashrdi3): Ditto.
6051         (ashrti3): Ditto.
6052         (cgt_df): Ditto.
6053         (cgt_v2df): Ditto.
6054         (dftsv): Ditto.
6055         (vashl<mode>3): Rename from ashl<mode>3.
6056         (vashr<mode>3): Rename from ashr<mode>3.
6057         (vlshr<mode>3): Rename from lshr<mode>3.
6058         (vrotl<mode>3): Rename from rotl<mode>3.
6059
6060 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6061
6062         PR target/36224
6063         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6064         multiply gives the wrong value when doing widening multiplies.
6065         (vec_widen_smult_lo_v4si): Ditto.
6066
6067 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
6068
6069         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6070         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6071         emit_library_call_value. 
6072         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6073         * tree.h (ECF_LIBCALL_BLOCK): Removed.
6074         * calls.c (initialize_argument_information, precompute_arguments, 
6075         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6076         (precompute_arguments): Removed flags parameter.
6077         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6078         
6079 2008-05-14  Richard Guenther  <rguenther@suse.de>
6080
6081         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6082         Make sure to register the store if the use is a PHI_NODE.
6083
6084 2008-05-14  Olivier Hainque  <hainque@adacore.com>
6085
6086         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6087         memory if the component is to be referenced in BLKmode according
6088         to get_inner_reference.
6089
6090 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
6091
6092         * calls.c (emit_library_call_value_1): Restore code clearing
6093         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6094
6095 2008-05-14  Olivier Hainque  <hainque@adacore.com>
6096             Nicolas Roche  <roche@adacore.com>
6097
6098         * configure.ac: Add support for a "gcc_subdir" variable in
6099         config-lang.in, to denote a subdirectory where the language/GCC
6100         integration files are to be found.
6101         * configure: Regenerate.
6102
6103 2008-05-14  Ira Rosen  <irar@il.ibm.com>
6104
6105         PR tree-optimization/36098
6106         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6107         value for the first load in the group in case of a gap.
6108         (vect_build_slp_tree): Check that there are no gaps in loads.
6109
6110 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
6111
6112         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6113         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6114         expand_copysign_bit, ): Change call to emit_no_conflict_block to
6115         emit_insn and remove unneeded code to construct extra args.
6116         (emit_no_conflict_block): Removed.
6117         * optabls.h: (emit_no_conflict_block): Removed.
6118         * cse.c (cse_extended_basic_block): Remove search for
6119         REG_NO_CONFLICT note.
6120         * global.c: Removed incorrect comment added in revision 117.
6121         * expr.c (convert_move): Change call to emit_no_conflict_block to
6122         emit_insn.
6123         * recog.c: Change comments so that they do not mention
6124         REG_NO_CONFLICT.
6125         * local_alloc.c (combine_regs): Removed last parameter.
6126         (no_conflict_p): Removed.
6127         (block_alloc): Removed note, no_conflict_combined_regno and set
6128         local vars. Removed all code to process REG_NO_CONFLICT blocks.
6129         (combine_regs): Removed already_dead and code to look for
6130         REG_NO_CONFLICT notes.
6131         * lower_subreg (remove_retval_note): Removed code to look for
6132         REG_NO_CONFLICT block.
6133         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6134         (resolve_clobber): Remove code to process libcalls that have
6135         REG_NO_CONFLICT notes.
6136         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6137         case.
6138         * combine.c (can_combine_p, distribute_notes):  Removed
6139         REG_NO_CONFLICT case.
6140         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6141         to emit_insns.
6142         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6143         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6144         Ditto.
6145         * reg-notes.def (NO_CONFLICT): Removed.
6146
6147 2008-05-14  David S. Miller  <davem@davemloft.net>
6148
6149         * config/sparc/sparc.c (sparc_profile_hook): If
6150         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6151         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6152         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6153
6154 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
6155
6156         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6157
6158 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
6159
6160         PR target/36222
6161         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6162         and op1 expansion before vector concat to have less live pseudos.
6163
6164 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6165
6166         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6167         ix86_expand_vector_set if supported.
6168
6169 2008-05-13  Diego Novillo  <dnovillo@google.com>
6170             Kenneth Zadeck  <zadeck@naturalbridge.com>
6171
6172         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6173
6174         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6175         phinodes_print_statistics, init_ssanames, fini_ssanames,
6176         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6177         release_ssa_name, release_defs, replace_ssa_name_symbol,
6178         ssanames_print_statistics): Move ...
6179         * tree-flow.h: ... here.
6180         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6181         Use FN instead of cfun.
6182         (make_ssa_name_fn): Rename from make_ssa_name.
6183         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6184         * tree-flow-inline.h (make_ssa_name): Move from
6185         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
6186         * omp-low.c (expand_omp_parallel):
6187         * tree-flow-inline.h (redirect_edge_var_map_result):
6188         * tree-ssa.c (init_tree_ssa): Add argument FN.
6189         Use it instead of cfun.  Update all users.
6190
6191 2008-05-13  Tom Tromey  <tromey@redhat.com>
6192
6193         PR preprocessor/22168:
6194         * doc/cpp.texi (Top): Update menu.
6195         (Alternatives to Wrapper #ifndef): New node.
6196         (Other Directives): Document deprecation.
6197         (Obsolete Features): Remove menu.
6198         (Assertions): Merge node into Obsolete Features.
6199         (Obsolete once-only headers): Move earlier; rename to Alternatives
6200         to Wrapper #ifndef.
6201         * doc/cppopts.texi: Update.
6202         * c.opt (Wdeprecated): Enable for C and ObjC.
6203         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
6204         (C++ Dialect Options): Move -Wno-deprecated from here to...
6205         (Warning Options): ... here.
6206
6207 2008-05-13  Richard Guenther  <rguenther@suse.de>
6208
6209         PR middle-end/36227
6210         * fold-const.c (fold_sign_changed_comparison): Do not allow
6211         changes in pointer-ness.
6212
6213 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6214
6215         PR target/24713
6216         * config/sh/sh.c (sh_expand_prologue): Don't clear
6217         RTX_FRAME_RELATED_P for push insns.
6218
6219 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
6220
6221         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
6222
6223 2008-05-12  Anatoly Sokolov <aesok@post.ru>
6224
6225         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
6226         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
6227         Use 'machine->is_leaf' instead of 'leaf_func_p'.
6228
6229 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
6230
6231         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6232         (*vec_concatv4sf_sse): This.
6233         (*sse2_concatv2si): Renamed to ...
6234         (*vec_concatv2si_sse2): This.
6235         (*sse1_concatv2si): Renamed to ...
6236         (*vec_concatv2si_sse): This.
6237         (*vec_concatv2di_rex): Renamed to ...
6238         (*vec_concatv2di_rex64): This.
6239         (*vec_concatv2si_sse4_1): New.
6240         (*vec_concatv2di_rex64_sse4_1): Likewise.
6241
6242 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
6243
6244         PR rtl-optimization/36111
6245         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6246         that was created for swappable operands.
6247
6248 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
6249
6250         PR ada/36001
6251         * Makefile.in: Substitute GNATMAKE and GNATBIND.
6252         * configure.ac: Add call to ACX_PROG_GNAT.
6253
6254 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
6255
6256         * optc-gen.awk: Fix comment typo.
6257
6258 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6259
6260         * pretty-print.c (pp_integer_with_precision): Use
6261         HOST_LONG_LONG_FORMAT.
6262
6263 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
6264
6265         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6266                 
6267 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6268
6269         * config/i386/i386.c (bdesc_ptest): Removed.
6270         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6271         (bdesc_args): Add __builtin_ia32_ptestz128,
6272         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6273         (ix86_init_mmx_sse_builtins): Updated.
6274         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6275         (ix86_expand_builtin): Updated.
6276
6277 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
6278
6279         * tree-cfg.c (valid_fixed_convert_types_p): New function.
6280         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6281
6282 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
6283
6284         * value-prof.c (interesting_stringop_to_profile): Do not
6285         return early for BUILT_IN_MEMPCPY.
6286
6287 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6288
6289         * calls.c (expand_call): Don't use callgraph to increase
6290         preferred_stack_boundary.
6291
6292         * cgraph.h (cgraph_rtl_info): Use unsigned on
6293         preferred_incoming_stack_boundary.
6294
6295         * final.c (rest_of_clean_state): Use unsigned on
6296         preferred_stack_boundary.
6297
6298 2008-05-09  Tom Tromey  <tromey@redhat.com>
6299
6300         PR preprocessor/22231:
6301         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6302         proceeding.
6303
6304 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
6305
6306         PR tree-optimization/36129
6307         * tree-ssa-ccp.c: Include value-prof.h.
6308         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6309         built-in function was folded to a constant.
6310         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6311
6312 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
6313             Sebastian Pop  <sebastian.pop@amd.com>
6314
6315         * tree-scalar-evolution.c: Document instantiate_scev.
6316         (instantiate_parameters_1): Renamed instantiate_scev_1.
6317         Don't use the same loop for instantiation_loop and evolution_loop.
6318         (instantiate_scev): New.
6319         (instantiate_parameters): Moved...
6320         (resolve_mixers): Update call to instantiate_scev_1 to pass the
6321         same loop twice.  Maintains the semantics for this function.
6322         * tree-scalar-evolution.h (instantiate_scev): Declare.
6323         (instantiate_parameters): ...here.  Now static inline.
6324         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6325         instead of resolve_mixers.
6326
6327 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6328
6329         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6330
6331 2008-05-09  Tomas Bily  <tbily@suse.cz>
6332
6333         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6334         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6335         * tree-ssa-structalias.c (get_constraint_for): Likewise.
6336         * c-common.c (c_common_truthvalue_conversion): Likewise.
6337         * tree-object-size.c (compute_object_offset): Likewise.
6338         * tree-inline.c (estimate_num_insns_1): Likewise.
6339         * varasm.c (const_hash_1, compare_constant, copy_constant)
6340         (compute_reloc_for_constant, output_addressed_constants)
6341         (initializer_constant_valid_p): Likewise.
6342         * c-omp.c (check_omp_for_incr_expr): Likewise.
6343         * gimplify.c (gimplify_expr): Likewise.
6344         * c-typeck.c (c_finish_return): Likewise.
6345         * tree-vectorizer.c (supportable_widening_operation)
6346         (supportable_narrowing_operation): Likewise.
6347         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6348         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6349         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6350         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6351         (descr_info_loc): Likewise.
6352         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6353         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6354         (fold_unary): Likewise.
6355         * builtins.c (get_pointer_alignment): Likewise.
6356         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6357         (instantiate_parameters_1): Likewise.
6358         * tree.c (expr_align, stabilize_reference): Likewise.
6359         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6360         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6361         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6362         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6363         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6364         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6365         Likewise.
6366         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6367         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6368         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6369         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6370         (forward_propagate_comparison)
6371         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6372         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6373         * emit-rtl.c (component_ref_for_mem_expr)
6374         (set_mem_attributes_minus_bitpos): Likewise.
6375         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6376         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6377         Likewise.
6378         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6379         (build_function_call, pointer_diff, build_compound_expr)
6380         (c_finish_return): Likewise.
6381         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6382         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6383         Likewise.
6384         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6385         * expr.c (is_aligning_offset): Likewise.
6386         * tree-ssa-alias.c (is_escape_site): Likewise.
6387         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6388         (check_all_va_list_escapes): Likewise.
6389         * tree-ssa-loop-ivopts.c (determine_base_object)
6390         (determine_common_wider_type): Likewise.
6391         * dojump.c (do_jump): Likewise.
6392         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6393         * tree-gimple.c (is_gimple_cast): Likewise.
6394         * fold-const.c (decode_field_reference, )
6395         (fold_sign_changed_comparison, fold_unary, fold_comparison)
6396         (fold_binary): Likewise.
6397         * tree-ssa-alias-warnings.c (find_alias_site_helper)
6398         (already_warned_in_frontend_p): Likewise.
6399         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6400         * tree.c (really_constant_p, get_unwidened): Likewise.
6401         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6402         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6403         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6404         Likewise.
6405         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6406         CONVERT_EXPR_P.
6407         (CONVERT_EXPR_P): Define.
6408         (CASE_CONVERT): Define.
6409         
6410 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
6411
6412         PR middle-end/36117
6413         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6414         (delete_unmarked_insns): When deleting a call, call
6415         delete_unreachable_blocks.
6416         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6417         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6418
6419 2008-05-08  Richard Guenther  <rguenther@suse.de>
6420
6421         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6422         (-ftree-salias): Likewise.
6423         (salias-max-implicit-fields): Remove param documentation.
6424         (salias-max-array-elements): Likewise.
6425         * tree-pass.h (pass_create_structure_vars): Remove.
6426         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6427         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6428         * tree-ssa-alias.c (create_structure_vars): Remove.
6429         (gate_structure_vars): Likewise.
6430         (pass_create_structure_vars): Likewise.
6431         (gate_build_alias): Likewise.
6432         (pass_build_alias): Adjust to run always and dump the function.
6433         * common.opt (ftree-salias): Hide.
6434         * passes.c (init_optimization_passes): Remove
6435         pass_create_structure_vars, adjust comment.
6436         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6437         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6438         * opts.c (decode_options): Do not set flag_tree_salias.
6439         (common_handle_option): Add OPT_ftree_salias to the backward
6440         compatibility section.
6441
6442 2008-05-08  Richard Guenther  <rguenther@suse.de>
6443
6444         * tree-flow-inline.h (var_can_have_subvars): Move ...
6445         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6446         * tree-flow.h (var_can_have_subvars): Remove.
6447         (push_fields_onto_fieldstack): Remove.
6448         (sort_fieldstack): Likewise.
6449         (struct fieldoff): Move ...
6450         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
6451         alias_set and base_for_components fields.
6452         (sort_fieldstack): Make static.
6453         (push_fields_onto_fieldstack): Likewise.  Remove code that
6454         handles anything but RECORD_TYPEs.  Remove alias_set and
6455         base_for_components handling.
6456         (create_variable_info_for): Adjust.
6457
6458 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
6459
6460         * common.opt (Wframe-larger-than=): Shorten the help message
6461         to one line.
6462         * doc/invoke.texi (Wframe-larger-than=): Add more description.
6463
6464 2008-05-08  Rafael Espindola  <espindola@google.com>
6465
6466         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6467         trap.
6468         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6469         trap and that both operands are gimple values.
6470         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6471         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6472         is a fp operation.
6473
6474 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6475
6476         * read-rtl.c (join_c_conditions): Return the first string if the
6477         two strings are equal.
6478
6479 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6480
6481         * gensupport.h (pred_data): Add a "num_codes" field.
6482         (add_predicate_code): Declare.
6483         * gensupport.c (add_predicate_code): New function.
6484         (std_pred_table): Add an "allows_const_p" field.
6485         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6486         Remove the (incomplete) list of such codes from the codes field.
6487         (init_predicate_table): Use add_predicate_code.  Add all
6488         RTX_CONST_OBJs if allows_const_p is true.
6489         * genrecog.c (process_define_predicate): Use add_predicate_code.
6490
6491 2008-05-08  David Daney  <ddaney@avtrex.com>
6492             Richard Sandiford  <rsandifo@nildram.co.uk>
6493         
6494         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6495         special case of constant zero operands.
6496         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6497         old and new values.  Special case constant zero values.
6498         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6499         fails.
6500         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6501         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6502
6503 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
6504
6505         PR target/36090
6506         * simplify-rtx.c (simplify_plus_minus): Create CONST of
6507         similar RTX_CONST_OBJ before CONST_INT.
6508
6509 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
6510
6511         * stmt.c (expand_stack_restore): Change sa mode if needed.
6512
6513 2008-05-08  Richard Guenther  <rguenther@suse.de>
6514
6515         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6516         return type to bool.
6517         (ix86_sol10_return_in_memory): Likewise.
6518         (ix86_i386elf_return_in_memory): Likewise.
6519         (ix86_i386interix_return_in_memory): Likewise.
6520         * config/i386/i386.c (ix86_return_in_memory): Likewise.
6521         (ix86_sol10_return_in_memory): Likewise.
6522         (ix86_i386elf_return_in_memory): Likewise.
6523         (ix86_i386interix_return_in_memory): Likewise.
6524
6525 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6526
6527         PR bootstrap/36180
6528         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6529         fndecl argument.
6530         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6531         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6532         declared in front.
6533
6534 2008-05-08  Richard Guenther  <rguenther@suse.de>
6535
6536         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6537         * tree-data-ref.h (struct dr_alias): Remove subvars field.
6538         (DR_SUBVARS): Remove.
6539         * tree-dfa.c (dump_subvars_for): Remove.
6540         (debug_subvars_for): Likewise.
6541         (dump_variable): Do not dump subvars.
6542         (remove_referenced_var): Do not remove subvars.
6543         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6544         (lookup_subvars_for_var): Remove.
6545         (get_subvars_for_var): Likewise.
6546         (get_subvars_at): Likewise.
6547         (get_first_overlapping_subvar): Likewise.
6548         (overlap_subvar): Likewise.
6549         * tree-flow.h (subvar_t): Remove.
6550         (struct var_ann_d): Remove subvars field.
6551         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6552         argument.  Remove special handling of SFTs.
6553         (compute_tag_properties): Likewise.
6554         (set_initial_properties): Likewise.
6555         (compute_call_clobbered): Likewise.
6556         (count_mem_refs): Likewise.
6557         (compute_memory_partitions): Likewise.
6558         (compute_flow_insensitive_aliasing): Likewise.
6559         (setup_pointers_and_addressables): Likewise.
6560         (new_type_alias): Likewise.
6561         (struct used_part): Remove.
6562         (used_portions): Likewise.
6563         (struct used_part_map): Likewise.
6564         (used_part_map_eq): Likewise.
6565         (used_part_map_hash): Likewise.
6566         (free_used_part_map): Likewise.
6567         (up_lookup): Likewise.
6568         (up_insert): Likewise.
6569         (get_or_create_used_part_for): Likewise.
6570         (create_sft): Likewise.
6571         (create_overlap_variables_for): Likewise.
6572         (find_used_portions): Likewise.
6573         (create_structure_vars): Likewise.
6574         * tree.def (STRUCT_FIELD_TAG): Remove.
6575         * tree.h (MTAG_P): Adjust.
6576         (struct tree_memory_tag): Remove base_for_components and
6577         unpartitionable flags.
6578         (struct tree_struct_field_tag): Remove.
6579         (SFT_PARENT_VAR): Likewise.
6580         (SFT_OFFSET): Likewise.
6581         (SFT_SIZE): Likewise.
6582         (SFT_NONADDRESSABLE_P): Likewise.
6583         (SFT_ALIAS_SET): Likewise.
6584         (SFT_UNPARTITIONABLE_P): Likewise.
6585         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6586         (union tree_node): Remove sft field.
6587         * alias.c (get_alias_set): Remove special handling of SFTs.
6588         * print-tree.c (print_node): Remove handling of SFTs.
6589         * tree-dump.c (dequeue_and_dump): Likewise.
6590         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6591         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6592         * tree-predcom.c (set_alias_info): Do not set subvars.
6593         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6594         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6595         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6596         (add_vars_for_offset): Remove.
6597         (add_virtual_operand): Remove special handling of SFTs.
6598         (add_call_clobber_ops): Likewise.
6599         (add_call_read_ops): Likewise.
6600         (get_asm_expr_operands): Likewise.
6601         (get_modify_stmt_operands): Likewise.
6602         (get_expr_operands): Likewise.
6603         (add_to_addressable_set): Likewise.
6604         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6605         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6606         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6607         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6608         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6609         (tree_node_structure): Likewise.
6610         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6611         handling of SFTs.
6612         (find_what_p_points_to): Likewise.
6613
6614 2008-05-08  Sa Liu  <saliu@de.ibm.com>
6615
6616         * config/spu/spu.md: Fixed subti3 pattern.
6617
6618 2008-05-08  Richard Guenther  <rguenther@suse.de>
6619
6620         PR middle-end/36154
6621         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6622         sure to create a representative for trailing arrays for PTA.
6623
6624 2008-05-08  Richard Guenther  <rguenther@suse.de>
6625
6626         PR middle-end/36172
6627         * fold-const.c (operand_equal_p): Two objects which types
6628         differ in pointerness are not equal.
6629
6630 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6631
6632         * calls.c (compute_argument_block_size): Add argument tree fndecl.
6633         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6634         (emit_library_call_value_1): Add new variable fndecl initialized by
6635         NULL_TREE. It should be the decl type of orgfun, but this information
6636         seems not to be available here, so it uses the default calling abi.
6637         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6638         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6639         by TARGET_RETURN_IN_MEMORY.
6640         * config/i386/i386-interix.h: Likewise.
6641         * config/i386/i386.h: Likewise.
6642         * config/i386/i386elf.h: Likewise.
6643         * config/i386/ptx4-i.h: Likewise.
6644         * config/i386/sol2-10.h: Likewise.
6645         * config/i386/sysv4.h: Likewise.
6646         * config/i386/vx-common.h: Likewise.
6647         * config/cris/cris.h: Removed #if 0 clause.
6648         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6649         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6650         argument.
6651         (ix86_sol10_return_in_memory): Likewise.
6652         (ix86_i386elf_return_in_memory): New.
6653         (ix86_i386interix_return_in_memory): New.
6654         * config/mt/mt-protos.h (mt_return_in_memory): New.
6655         * config/mt/mt.c: Likewise.
6656         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6657         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
6658         * config/bfin/bfin.h: Likewise.
6659         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6660         argument.
6661         * config/bfin/bfin.c: Likewise.
6662         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6663         * config/alpha/unicosmk.h: Likewise.
6664         * config/i386/cygming.h: Likewise.
6665         * config/iq2000/iq2000.h: Likewise.
6666         * config/mips/mips.h: Likewise.
6667         * config/mn10300/mn10300.h: Likewise.
6668         * config/rs6000/rs6000.h: Likewise.
6669         * config/score/score.h: Likewise.
6670         * config/spu/spu.h: Likewise.
6671         * config/v850/v850.h: Likewise.
6672         * defaults.h: Likewise.
6673         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6674         * expr.c (emit_block_move): Adjust use of
6675         OUTGOING_REG_PARM_STACK_SPACE.
6676         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6677         OUTGOING_REG_PARM_STACK_SPACE.
6678         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6679
6680 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
6681
6682         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6683         on OMP_RETURN for OMP_FOR.
6684
6685         PR debug/35896
6686         * dwarf2out.c (dw_expand_expr, common_check): Removed.
6687         (fortran_common): New function.
6688         (gen_variable_die): Call fortran_common instead of common_check,
6689         adjust for it returning tree instead of rtx.  Formatting.
6690
6691 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6692
6693         PR rtl/7335
6694         PR rtl/33826
6695         * see.c (see_copy_insn): Copy new pure const attributes for new call.
6696         * c-decl.c (merge_decls): Ditto.
6697         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6698         to RTL_CONST_OR_PURE_CALL_P.
6699         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6700         Initialized DECL_LOOPING_CONST_PURE.
6701         (process_call_operands): Set tree_side_effects properly.
6702         * tree.h (TREE_READONLY_DECL_P): Removed.
6703         (DECL_IS_PURE): Renamed to DECL_PURE_P.
6704         (DECL_LOOPING_OR_CONST_P): New macro.
6705         (struct tree_function_decl): Added looping_const_or_pure_p.
6706         (ECF_*) Renumbered.
6707         (ECF_LOOPING_OR_CONST_P): New macro.
6708         * rtlanal.c (pure_const_p): Removed.
6709         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6710         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6711         to RTL_CONST_CALL_P.
6712         * ipa-pure-const.c (pure_const_state_e): Added looping field.
6713         (check_decl, check_tree, check_call, scan_function): Initialize
6714         looping.
6715         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6716         (static_execute): Set looping true for recursive functions.
6717         Undo setting state to IPA_NEITHER for recursive functions.
6718         * cse.c (cse_insn): 
6719         * ifcvt.c (noce_can_store_speculate_p): Changed
6720         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
6721         RTL_CONST_OR_PURE_CALL_P.
6722         * dse.c (scan_insn): Ditto.
6723         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6724         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6725         RTL_CONST_OR_PURE_CALL_P.
6726         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6727         pure_call_p to RTL_CONST_CALL_P.
6728         * gimplify.c (gimplify_call_expr): Clear side effects for
6729         non-looping pure and constant calls.
6730         * calls.c (emit_call_1): Set rtl flags from ecf flags.
6731         (flags_from_decl_or_type): Set ecf flags from decl flags.
6732         (initialize_argument_information): Turn off
6733         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6734         Change const to pure if callee_copies is true rather than just
6735         turning off const.
6736         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6737         way of marking pure calls.
6738         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6739         Remove hack that was supposed to fix pr7335 and remove old
6740         way of marking pure calls.
6741         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6742         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6743         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6744         RTL_CONST_OR_PURE_CALL_P.
6745         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6746         * loop-invariant.c (find_exits, find_invariant_bb): Changed
6747         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6748         * sched-deps.c (schedule_analyze): Ditto.
6749         * rtl.h (struct rtx_def): Use call field, unchanging field, and
6750         return_val field of calls to represent pure and const function info.
6751         (CONST_OR_PURE_CALL_P): Deleted macro.
6752         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6753         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6754         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6755         TREE_READONLY.
6756         * tree-optimize.c (execute_fixup_cfg): Added test for
6757         ECF_LOOPING_CONST_OR_PURE.
6758         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6759         DECL_PURE_P.
6760         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6761         effects for looping pure or const calls.
6762         (verify_gimple_expr): Added verification code. 
6763         * config/alpha/alpha.c (alpha_legitimize_address,
6764         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6765         RTL_CONST_CALL_P.
6766         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6767         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6768         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6769         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6770         RTL_CONST_OR_PURE_CALL_P.
6771         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6772         and const calls to be deleted.
6773
6774 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6775
6776         PR target/35714
6777         * config/i386/mmx.md (mmx_subv2sf3): New expander.
6778         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6779         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6780         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6781         to handle nonimmediate operands.
6782         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6783         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
6784         to handle nonimmediate operands.
6785         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6786         (mmx_pmulhrwv4hi3): New expander.  Use
6787         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6788         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6789         (sse2_umulv1siv1di3): New expander.  Use
6790         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6791         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6792         (mmx_eq<mode>3): New expander.  Use
6793         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6794         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6795         (mmx_uavgv8qi3): New expander.  Use
6796         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6797         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6798         (mmx_uavgv4hi3): New expander.  Use
6799         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6800
6801         * config/i386/sse.md
6802         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
6803         to handle nonimmediate operands.
6804         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
6805         to handle nonimmediate operands.
6806         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
6807         to handle nonimmediate operands.
6808         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
6809         to handle nonimmediate operands.
6810         (sse2_unpckhpd_exp): New expander.  Use
6811         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6812         (sse2_unpcklpd_exp): New expander.  Use
6813         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6814         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
6815         to handle nonimmediate operands.
6816         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
6817         to handle nonimmediate operands.
6818         (*sse2_<plusminus_insn><mode>3): Rename from
6819         sse2_<plusminus_insn><mode>3 insn pattern.
6820         (sse2_<plusminus_insn><mode>3): New expander.  Use
6821         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6822         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6823         (sse2_umulv2siv2di3): New expander.  Use
6824         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6825         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6826         (sse4_1_mulv2siv2di3): New expander.  Use
6827         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6828         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6829         (sse2_pmaddwd): New expander.  Use
6830         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6831         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6832         (sse2_eq<mode>3): New expander.  Use
6833         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6834         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6835         (sse4_1_eqv2di3): New expander.  Use
6836         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6837         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6838         (sse2_uavgv16qi3): New expander.  Use
6839         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6840         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6841         (sse2_uavgv16qi3): New expander.  Use
6842         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6843         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6844         (sse2_uavgv8hi3): New expander.  Use
6845         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6846         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6847         (ssse3_pmulhrswv8hi3): New expander.  Use
6848         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6849         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6850         (ssse3_pmulhrswv4hi3): New expander.  Use
6851         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6852
6853         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6854         (<sse>_vmmul<mode>3): Ditto.
6855         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6856         (divv2df3): Ditto.
6857         (ssse3_pmaddubsw128): Use register_operand for operand 1.
6858         (ssse3_pmaddubsw): Ditto.
6859
6860         * config/i386/i386.c (struct_builtin_description)
6861         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6862         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6863         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6864         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6865         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6866         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6867         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6868         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6869         (ix86_fixup_binary_operands): Assert that src1
6870         and src2 must have the same mode when swapped.
6871         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6872         and ix86_binary_operator_ok.  Do not force operands in registers
6873         when optimizing.
6874
6875 2008-05-07  Jan Hubicka  <jh@suse.cz>
6876
6877         * cgraph.c (dump_cgraph_node): Update.
6878         * cgraph.h (cgraph_local_info): Break out inline summary.
6879         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6880         hook.
6881         * ipa-inline (inline_summary): New accestor function.
6882         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6883         cgraph_decide_inlining, compute_inline_parameters): Update.
6884         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6885
6886 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
6887
6888         Cleanup ColdFire scheduling support and add V4 pipeline model.
6889
6890         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6891         (define_attr cpu): Add cfv4 value.
6892         (define_attr type, define_attr type1): Merge into a single 'type'
6893         attribute.  Update all uses.
6894         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6895         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
6896         Update all uses.
6897         (define_attr opx_mem, define_attr opy_mem): Remove.
6898         (define_attr op_mem): Clean up, update comment.
6899         (define_attr size): Use specific values instead of general int.
6900         (define_attr guess, define_attr split): Remove.  Update all uses.
6901         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6902         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6903         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6904         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6905         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6906         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6907         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6908         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6909         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6910         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6911         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6912         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6913         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6914         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6915         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6916         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6917         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6918         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6919         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6920         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6921         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6922         Update or set attributes.
6923         (stack_tie): New fake instruction.
6924
6925         * config/m68k/m68k.h (TUNE_CFV4): New macro.
6926         (m68k_sched_attr_size): Update declaration.
6927         (m68k_sched_attr_type2): Remove.
6928         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6929         Declare new bypass predicates.
6930
6931         * config/m68k/m68k.c (m68k_sched_issue_rate,
6932         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6933         implementations.
6934         (TARGET_SCHED_ISSUE_RATE,
6935         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6936         (override_options): Handle scheduling for ColdFire V4 core.
6937         (m68k_expand_prologue): Emit stack_tie.
6938         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6939         'OP_TYPE_FPN'.  Update all uses.
6940         (sched_guess_p): Remove.
6941         (sched_address_type): Handle symbolic addresses.
6942         (sched_get_operand): New static function.
6943         (sched_operand_type): Merge into sched_attr_op_type.
6944         (sched_attr_op_type): Handle FP registers, handle quick constants,
6945         update.
6946         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6947         (m68k_sched_attr_size): Update.  Move logic to ...
6948         (sched_get_attr_size_int): New static function.
6949         (sched_get_opxy_mem_type): New static function.
6950         (m68k_sched_attr_op_mem): Update.
6951         (m68k_sched_attr_type2): Remove.
6952         (sched_cfv4_bypass_data): New static variable.
6953         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6954         (m68k_sched_issue_rate): Implement scheduler hook.
6955         (struct _sched_ib: enabled_p): New field.
6956         (m68k_sched_variable_issue): Update.  Handle V4.
6957         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6958         sched_dump_class_func_t, sched_dump_split_class,
6959         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6960         sched_dump_dfa_class, m68k_sched_dump): Remove.
6961         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6962         hook.
6963         (m68k_sched_init_global): Remove statisctics dumping, introduce
6964         sanity check that all instructions have pipeline reservations.  Handle
6965         ColdFire V4 core.
6966         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6967         Handle ColdFire V4 core.
6968         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6969         New static functions.
6970         (m68k_sched_address_bypass_p): New bypass predicate.
6971         (sched_get_indexed_address_scale): New static function.
6972         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6973
6974         * cf.md: Update comments.
6975         (define_attr type2): Remove.  Use 'type' attribute instead.
6976         Update all uses.
6977         (cf_ib): Rename to cfv123_ib.  Update all uses.
6978         (cf_oep): Rename to cfv123_oep.  Update all uses.
6979         (cf_chr): Rename to cfv123_chr.  Update all uses.
6980         (cf_mem): Rename to cfv123_mem.  Update all uses.
6981         (cf_mac): Move to more appropriate place.
6982         (cfv123_guess): New automaton and cpu_unit.
6983         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6984         Update uses of 'size' attribute.  Handle before reload scheduling.
6985         (cfv123_guess): New dummy reservation for unhandled instructions.
6986         (cfv4_*): Pipeline description of ColdFire V4 core.
6987         (ignore): New reservation to handle 'ignore' type.
6988
6989 2008-05-07  Ian Lance Taylor  <iant@google.com>
6990
6991         PR middle-end/36013
6992         * gimplify.c (find_single_pointer_decl_1): Don't look through
6993         indirections.
6994         (find_single_pointer_decl): Adjust comments.
6995
6996 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
6997
6998         PR middle-end/36137
6999         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
7000         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
7001
7002         PR middle-end/36106
7003         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
7004         integral type rather than floating point, then VIEW_CONVERT_EXPR
7005         to the floating point type.
7006
7007 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
7008
7009         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
7010         TFmode op0 to register.
7011
7012 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
7013
7014         * c-decl.c (grokdeclarator): Comment typo.
7015
7016 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
7017
7018         * tree-flow.h: Remove prototype for computed_goto_p.
7019         * tree-cfg.c (computed_goto_p): Make static.
7020
7021 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
7022
7023         PR target/35657
7024         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
7025         (contains_aligned_value_p): This.  Handle _Decimal128.
7026         (ix86_function_arg_boundary): Only align _Decimal128 to its
7027         natural boundary and handle it properly.
7028
7029 2008-05-06  Martin Jambor  <mjambor@suse.cz>
7030
7031         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
7032         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
7033         (ipcp_method_set_orig_node): Removed.
7034         (ipcp_cval_get_cvalue_type): Removed.
7035         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
7036         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
7037         (ipcp_cval_set_cvalue_type): Removed.
7038         (ipcp_cval_get_cvalue): Removed.
7039         (ipcp_cval_set_cvalue): Removed.
7040         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
7041         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
7042         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
7043         (ipcp_cval_meet): Renamed to ipa_lattice_meet
7044         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
7045         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
7046         (ipcp_get_ith_lattice): Changed parameters.
7047         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
7048         (ipcp_lattice_from_jfunc): Changed parameters.
7049         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
7050         (ipcp_method_cval_print): Added temporary variable info.
7051         (ipcp_redirect): Removed already unused local variable caller.
7052         (ipcp_redirect): New temporary variable orig_callee_info
7053         (ipcp_redirect): Removed newly unused local variable callee.
7054         (ipcp_redirect): Removed (a bit confusing) local variable type.
7055         (ipcp_insert_stage): Added local variable info.
7056         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
7057         renamed too
7058         (ipcp_formal_create): Removed.
7059         (ipcp_method_cval_set): Removed.
7060         (ipcp_propagate_stage): Renamed lattice variables.
7061         (ipcp_method_cval_set_cvalue_type): Removed.
7062         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7063         (ipcp_print_all_lattices): Changed printed strings to refer to 
7064         lattices rather than cvals.
7065         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7066         (ipcp_propagate_const): Changed formal parameters.
7067         (build_const_val): Changed formal parameters.
7068         (ipcp_insert_stage): Removed useless variable cvalue
7069         (build_const_val): Changed formal parameters.
7070         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7071         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7072         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7073         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7074         (ipcp_print_func_profile_counts): Changed string from "method" to 
7075         "function"
7076         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7077         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7078         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7079         (ipcp_structures_print): Renamed to ipcp_print_all_structures
7080         (ipcp_profile_print): Renamed to ipcp_print_profile_data
7081         (ipcp_lat_is_const): Changed parameters and made inline.
7082         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7083         (ipcp_redirect): Renamed to ipcp_need_redirect_p
7084         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
7085         the predicate condition directly
7086         (ipcp_propagate_stage): Added local variable args. Removed local
7087         variable callee.  (Both are mere code simplifications.)
7088         (ipcp_method_dont_insert_const): Renamed to
7089         ipcp_node_not_modifiable_p.
7090         (ipcp_node_not_modifiable_p): Made inline.
7091         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7092         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7093         (ipcp_print_all_lattices): Removed variable cvalue
7094         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7095         Updated comments.
7096
7097 2008-05-06  Olivier Hainque  <hainque@adacore.com>
7098
7099         * tree-sra.c (try_instantiate_multiple_fields): Early return
7100         if field has POINTER_TYPE.
7101
7102 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
7103
7104         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7105         by using 'q' specifier for instruction.
7106         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7107
7108 2008-05-06  Anatoly Sokolov <aesok@post.ru>
7109
7110         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7111         Change mode of zero_extract from QImode to HImode.
7112         (sign bit tests peepholes): (Ditto.).
7113
7114 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
7115
7116         * config/i386/mmx.md: Remove double backslashes from asm templates.
7117         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7118         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7119         to handle nonimmediate operands.
7120         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7121         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7122         to handle nonimmediate operands.
7123         (*mmx_<code>v2sf3_finite): New insn pattern.
7124         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7125         (mmx_<code>v2sf3): New expander.  Use
7126         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7127         (mmx_<plusminus_insn><mode>3): New expander.  Use
7128         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7129         (*mmx_<plusminus_insn><mode>3): New insn pattern.
7130         (mmx_add<mode>3): Removed.
7131         (mmx_ssadd<mode>3): Ditto.
7132         (mmx_usadd<mode>3): Ditto.
7133         (mmx_sub<mode>3): Ditto.
7134         (mmx_sssub<mode>3): Ditto.
7135         (mmx_ussub<mode>3): Ditto.
7136         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7137         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
7138         to handle nonimmediate operands.
7139         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7140         insn pattern.
7141         (mmx_smulv4hi3_highpart): New expander.  Use
7142         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7143         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7144         insn pattern.
7145         (mmx_umulv4hi3_highpart): New expander.  Use
7146         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7147         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7148         (mmx_<code>v4hi3): New expander.  Use
7149         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7150         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7151         (mmx_<code>v8qi3): New expander.  Use
7152         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7153         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7154         (mmx_<code><mode>3): New expander.  Use
7155         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7156
7157 2008-05-05  Jan Hubicka  <jh@suse.cz>
7158
7159         PR tree-optimization/36118
7160         * passes.c (pass_init_dump_file): Fix dump header.
7161
7162 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7163
7164         PR middle-end/36141
7165         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7166         VCE for function decls.
7167
7168 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
7169
7170         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7171
7172 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
7173
7174         * config/i386/i386.md (sat_plusminus): New.
7175         (plusminus_insn): Likewise.
7176         (plusminus_mnemonic): Likewise.
7177         (addsub): Removed.
7178         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7179         (*<addsub><mode>3_cc_overflow): Renamed to ...
7180         (*<plusminus_insn><mode>3_cc_overflow): This.
7181         (*<addsub>si3_zext_cc_overflow): Renamed to ...
7182         (*<plusminus_insn>si3_zext_cc_overflow): This.
7183
7184         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7185         (<plusminus_insn><mode>3): This.
7186         (*<addsub><mode>3): Renamed to ...
7187         (*<plusminus_insn><mode>3): This.
7188         (<sse>_vm<addsub><mode>3): Renamed to ...
7189         (<sse>_vm<plusminus_insn><mode>3): This.
7190         (sse3_h<addsub>v4sf3): Renamed to ...
7191         (sse3_h<plusminus_insn>v4sf3): This.
7192         (sse3_h<addsub>v2df3): Renamed to ...
7193         (sse3_h<plusminus_insn>v2df3): This.
7194         (<plusminus_insn><mode>3): New.
7195         (*<plusminus_insn><mode>3): Likewise.
7196         (sse2_<plusminus_insn><mode>3): Likewise.
7197         (add<mode>): Removed.
7198         (*add<mode>3): Likewise.
7199         (sse2_ssadd<mode>3): Likewise.
7200         (sse2_usadd<mode>3): Likewise.
7201         (sub<mode>3): Likewise.
7202         (*sub<mode>3): Likewise.
7203         (sse2_sssub<mode>3): Likewise.
7204         (sse2_ussub<mode>3): Likewise.
7205
7206 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
7207
7208         * gthr-single.h: Add in required interface elements as per gthr.h.
7209         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
7210         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
7211         Generalize UNUSED macro. 
7212         (__gthread_once): Add.
7213         (__gthread_key_create): Add.
7214         (__gthread_key_delete): Add.
7215         (__gthread_getspecific): Add.
7216         (__gthread_setspecific): Add.
7217         
7218 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
7219
7220         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
7221         the same size types for the indirect reference on the rhs, then
7222         create a VCE.
7223
7224 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
7225
7226         * config/i386/i386.md
7227         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
7228         one insn template instead of template series.
7229         (*xordi_1_rex64): Ditto.
7230         (*xordi_2_rex64): Ditto.
7231
7232 2008-05-05  Ira Rosen  <irar@il.ibm.com>
7233
7234         PR tree-optimization/36119
7235         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7236         in case of SLP.
7237
7238 2008-06-04  Jan Hubicka  <jh@suse.cz>
7239
7240         tree-optimization/36100
7241         * tree-pass.h (pass_O0_always_inline): Declare.
7242         * ipa-inline.c (inline_transform): Remove dead code.
7243         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7244         pass_O0_always_inline): New.
7245         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7246
7247 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
7248
7249         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7250         mnemonic in this_param move for TARGET_64BIT.
7251
7252 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
7253
7254         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7255         (*strmovsi_rex_1): Ditto.
7256         (*strsetsi_1): Ditto.
7257         (*strsetsi_rex_1): Ditto.
7258
7259         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7260         adddicc expanders using SWI mode iterator.
7261
7262 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7263
7264         PR target/36121
7265         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7266         argument handling.
7267
7268 2008-05-04  David S. Miller  <davem@davemloft.net>
7269
7270         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7271         (sparc*-*-linux*): Use linux.h in tm_file.
7272         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7273         compiler defaulting to 32-bit.
7274         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7275         no longer needed.
7276         * config/sparc/linux.h: Remove definitions now obtained
7277         properly from linux.h
7278         * config/sparc/linux64.h: Likewise.
7279         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7280         don't want this setting for 32-bit builds in a biarch compiler.
7281         * doc/install.texi: Add sparc-linux to list of targets
7282         supporting --enable-targets=all.
7283
7284 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
7285
7286         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7287
7288 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
7289
7290         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7291         after V4SI_FTYPE_V8HI.
7292         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7293         case V4SI_FTYPE_V2DF.
7294
7295 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
7296
7297         * doc/invoke.texi (max-flow-memory-locations): Removed.
7298         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7299         
7300 2008-05-03  Richard Guenther  <rguenther@suse.de>
7301
7302         PR middle-end/34973
7303         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7304
7305 2008-05-02  David S. Miller  <davem@davemloft.net>
7306
7307         * config.gcc (need_64bit_hwint): Document libcpp dependency.
7308
7309 2008-05-02  Simon Baldwin <simonb@google.com>
7310
7311         PR bootstrap/36108
7312         * c-common.h (warn_array_subscript_range): Removed.
7313         * c-common.c (warn_array_subscript_range): Ditto.
7314         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7315         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7316
7317 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7318
7319         * config/i386/i386.c (ix86_special_builtin_type): New.
7320         (bdesc_special_args): Likewise.
7321         (ix86_expand_special_args_builtin): Likewise.
7322         (ix86_init_mmx_sse_builtins): Updated.
7323         (ix86_expand_builtin): Updated.
7324         (ix86_expand_store_builtin): Removed.
7325         (ix86_expand_unop_builtin): Likewise.
7326
7327         * config/i386/mm3dnow.h (__v2sf): Moved to ...
7328         * config/i386/mmintrin.h (__v2sf): Here.
7329
7330         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7331         const __v2sf.
7332         (_mm_loadl_pi): Likewise.
7333         (_mm_storeh_pi): Replace __v2si with __v2sf.
7334         (_mm_storel_pi): Likewise.
7335
7336         * doc/extend.texi: Correct __builtin_ia32_loadhps,
7337         __builtin_ia32_loadlps, __builtin_ia32_storehps,
7338         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7339         __builtin_ia32_loadlpd.
7340
7341 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7342
7343         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7344         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7345         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
7346         (ix86_init_mmx_sse_builtins): Updated.
7347         (ix86_expand_args_builtin): Likewise.
7348         (ix86_expand_builtin): Likewise.
7349         (ix86_expand_unop1_builtin): Renamed to ...
7350         (ix86_expand_unop_vec_merge_builtin): This.
7351
7352 2008-05-01  Jan Hubicka  <jh@suse.cz>
7353
7354         PR bootstrap/36100
7355         * ipa-inline.c (inline_generate_summary): Make static.
7356         (inline_transform): Do not call inlining at -O0; make static.
7357         * passes.c (execute_todo): Add sanity check.
7358         (execute_one_ipa_transform_pass): Execute proper flags.
7359
7360 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7361
7362         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7363         (DECL_NONADDRESSABLE_P): Likewise.
7364         * alias.c (record_component_aliases): Fix comment.
7365
7366 2008-05-01  Simon Baldwin <simonb@google.com>
7367
7368         * c-common.h (warn_array_subscript_range): New function.
7369         * c-common.c (warn_array_subscript_range): Ditto.
7370         * tree-vrp.c (check_array_ref): Corrected code to agree with
7371         comment, ignoring only arrays of size 0 or size 1.
7372         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7373
7374 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7375
7376         * config/i386/i386.c (ix86_builtin_type): Replace
7377         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7378         (bdesc_args): Updated.
7379         (ix86_init_mmx_sse_builtins): Likewise.
7380         (ix86_expand_args_builtin): Likewise.
7381
7382         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7383         with __v1di.
7384
7385         * doc/extend.texi: Correct __builtin_ia32_palignr.
7386
7387 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7388
7389         PR target/36095
7390         * config/i386/i386.c (bdesc_crc32): Removed.
7391         (ix86_expand_crc32): Likewise.
7392         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7393         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7394         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
7395         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7396         UINT_FTYPE_UINT_UCHAR.
7397         (bdesc_args): Updated. Add crc32 builtins.
7398         (ix86_init_mmx_sse_builtins): Updated.
7399         (ix86_expand_args_builtin): Updated to support subreg.
7400
7401         * doc/extend.texi: Correct __builtin_ia32_crc32di.
7402
7403 2008-05-01  Jan Hubicka  <jh@suse.cz>
7404
7405         * tree-pass.h (opt_pass): Add IPA_PASS.
7406         (varpool_node, cgraph_node): Forward declare.
7407         (ipa_opt_pass): Define.
7408         (pass_ipa_inline): Turn into ipa_opt_pass.
7409         (pass_apply_inline): Remove.
7410         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7411         (apply_inline): Turn into ....
7412         (inline_transform): ... this one.
7413         (inline_generate_summary): New function.
7414         (pass_apply_inline): Remove.
7415         * function.h (ipa_opt_pass): Forward declare structure; typedef;
7416         vector.
7417         (struct function): Add ipa_transforms_to_apply.
7418         * passes.c (register_one_dump_file): Work on IPA_PASS.
7419         (init_optimization_passes): Remove pass_inline_parameters and
7420         pass_apply_inline.
7421         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7422         (execute_one_pass) ... here; apply transforms when possible.
7423         (add_ipa_transform_pass, execute_ipa_summary_asses,
7424         execute_one_ipa_transform_pass): New.
7425         (execute_ipa_pass_list): Update for IPA_PASS type.
7426
7427 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7428
7429         * config/i386/i386.c (ix86_builtin_type): Add
7430         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7431         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7432         (bdesc_args): Add SSE4a builtins.
7433         (ix86_init_mmx_sse_builtins): Updated.
7434         (ix86_expand_args_builtin): Likewise.
7435         (ix86_expand_builtin): Likewise.
7436
7437 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7438
7439         * config/i386/i386.c (ix86_builtin_type): Add
7440         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7441         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7442         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7443         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7444         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7445         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7446         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7447         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7448         and DI_FTYPE_DI_DI_INT.
7449         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7450         (ix86_init_mmx_sse_builtins): Updated.
7451         (ix86_expand_args_builtin): Likewise.
7452         (ix86_expand_builtin): Likewise.
7453         (ix86_expand_binop_imm_builtin): Removed.
7454
7455         * doc/extend.texi: Correct __builtin_ia32_palignr128.
7456
7457 2008-04-30  Richard Guenther  <rguenther@suse.de>
7458
7459         PR tree-optimization/32921
7460         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7461
7462 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7463
7464         * config/arm/arm.c (arm_unwind_emit): Use
7465         crtl->all_throwers_are_sibcalls instead of
7466         cfun->all_throwers_are_sibcalls.
7467         (arm_output_fn_unwind): Likewise.
7468         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7469         instead of cfun->uses_pic_offset_table.
7470         (frv_expand_prologue): Likewise.
7471         (frv_frame_pointer_required): Likewise.
7472         (frv_expand_fdpic_call): Likewise.
7473         (frv_emit_movsi): Likewise.
7474         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7475         cfun->returns_pcc_struct instead of
7476         current_function_returns_pcc_struct.
7477         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7478         instead of cfun->calls_eh_return.
7479         (m32c_pushm_popm): Likewise.
7480         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7481         "extern" declaration.
7482
7483 2008-04-30  Richard Guenther  <rguenther@suse.de>
7484
7485         PR tree-optimization/21636
7486         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7487         constant address.
7488         (evaluate_stmt): Print the likely value.
7489         (ccp_visit_stmt): Avoid excessive vertical spacing.
7490
7491 2008-04-30  Rafael Espindola  <espindola@google.com>
7492
7493         * builtins.c (fold_call_expr): Return realret.
7494         * tree-ssa-threadedge.c
7495         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7496         __builtin_object_size.
7497
7498 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
7499
7500         * gcc.c (wrapper_string): New variable.
7501         (insert_wrapper): New function.
7502         (execute): New option -wrapper.
7503         * doc/invoke.texi (Overall Options): New driver option -wrapper.
7504
7505 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
7506
7507         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7508         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7509         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7510         from...
7511         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
7512         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7513         config/rs6000/e500crtres64gprctr.asm,
7514         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7515         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7516         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7517         config/rs6000/e500crtsav64gprctr.asm,
7518         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7519         config/rs6000/e500crtsavg64gprctr.asm: New files.
7520         * config/rs6000/t-ppccomm: Add build rules for new files.
7521         (LIB2FUNCS_STATIC_EXTRA): Add new files.
7522         * config/rs6000/t-netbsd: Add build rules for new files.
7523         (LIB2FUNCS_STATIC_EXTRA): New variable.
7524         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7525         (CRTSAVRES_DEFAULT_SPEC): Likewise.
7526         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7527
7528 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
7529
7530         * config/i386/i386.c (ix86_builtin_type): Add
7531         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7532         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7533         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7534         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7535         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7536         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7537         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7538         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7539         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7540         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7541         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7542         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7543         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7544         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7545         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7546         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7547         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7548         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7549         V1DI_FTYPE_V2SI_V2SI.
7550         (bdesc_2arg): Moved to ...
7551         (bdesc_args): Here.
7552         (ix86_init_mmx_sse_builtins): Updated.
7553         (ix86_expand_args_builtin): Updated.  Take a pointer
7554         to const struct builtin_description.  Handle comparison
7555         builtin functions.
7556         (ix86_expand_sse_compare): Take a new argument for swapping operands.
7557         (ix86_expand_builtin): Updated.
7558
7559         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7560         (ssse3_pmaddubsw128): This.
7561         (ssse3_pmaddubswv4hi3): Renamed to ...
7562         (ssse3_pmaddubsw): This.
7563
7564         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7565         (__builtin_ia32_packssdw128): Likewise.
7566         (__builtin_ia32_packuswb128): Likewise.
7567         (__builtin_ia32_pmaddubsw): Likewise.
7568         (__builtin_ia32_pmaddubsw128): Likewise.
7569
7570 2008-04-30  Richard Guenther  <rguenther@suse.de>
7571
7572         PR tree-optimization/14847
7573         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7574         (recognize_bits_test): Use it.
7575         (recognize_single_bit_test): Likewise.
7576
7577 2008-04-30  Martin Jambor  <mjambor@suse.cz>
7578
7579         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7580         instead of setting number of formal parameters to zero.
7581         (ipcp_init_stage): Do not set the number of actual parameters to zero 
7582         either.
7583         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7584         which are called with variable number of arguments.
7585         (ipcp_insert_stage): Explicitely skipping all nodes which are
7586         called with variable number of arguments.
7587         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
7588         number of parameters.
7589
7590         * ipa-prop.h (struct ipa_node_params): Added flag
7591         called_with_var_arguments
7592         (ipa_set_param_count): Added.  Changed sole setter to use it.
7593         (ipa_get_param_count): Added.  All readers of param_count
7594         converted to use it instead.
7595         (ipa_set_called_with_variable_arg): Added.
7596         (ipa_is_called_with_var_arguments): Added.
7597         (ipa_get_ith_param): Added.  All readers of param_decls converted
7598         to use it instead.
7599         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
7600         changed to use it. 
7601         (ipa_get_cs_argument_count): Added, all readers of argument_count
7602         changed to cal it.
7603         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
7604         to use it.
7605         
7606         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7607         (struct ipcp_lattice): Renamed cval_type to type
7608         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7609
7610         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7611         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7612         (ipcp_insert_stage): Changed the type of variable cvalue to tree
7613         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7614         (build_const_val): Changed the type of parameter cvalue to tree
7615         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7616         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7617         
7618         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
7619         constant 
7620
7621         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7622         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7623         (ipa_add_method): Renamed to ipa_push_func_to_list
7624         (ipa_remove_method): Renamed to ipa_pop_func_from_list
7625         (ipa_callsite_param_count): Removed.
7626         (ipa_callsite_param_count_set): Removed.
7627         (ipa_callsite_param): Removed.
7628         (ipa_callsite_callee): Removed.
7629         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7630         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7631         (ipa_method_formal_count): Removed.
7632         (ipa_method_formal_count_set): Removed.
7633         (ipa_method_get_tree): Removed.
7634         (ipa_method_tree_map_create): Removed.
7635         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7636         (ipa_create_param_decls_array): Creates the array itself
7637         (ipa_create_param_decls_array): Temporary variable info instead of 
7638         a few dereferences.
7639         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7640         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7641         (get_type): Removed.
7642         (ipa_jf_get_info_type): Removed.
7643         (ipa_node_create): Renamed to ipa_create_node_params
7644         (ipa_free): Renamed to ipa_free_all_node_params
7645         (ipa_nodes_create): Renamed to ipa_create_all_node_params
7646         (ipa_edges_create): Renamed to ipa_create_all_edge_args
7647         (ipa_edges_free): Renamed to ipa_free_all_edge_args
7648         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7649         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
7650         ipa_free_all_edge_args
7651         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7652         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7653         (ipa_create_methodlist_node): Removed.
7654         (ipa_methodlist_method): Removed.
7655         (ipa_methodlist_method_set): Removed.
7656         (ipa_methodlist_next_method): Removed.
7657         (ipa_methodlist_next_method_set): Removed.
7658         (ipa_method_is_modified): Removed.
7659         (ipa_method_modify_create): Removed.
7660         (ipa_method_modify_init): Temporary variable info instead of a few 
7661         dereferences.
7662         (ipa_detect_param_modifications): Temporary variable info instead of 
7663         a few dereferences.
7664         (ipa_compute_jump_functions): Temporary variable info instead of 
7665         a few dereferences.
7666         (ipa_method_modify_set): Removed.
7667         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7668         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
7669         than craph_node as the first parameter.
7670         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7671         (ipa_method_modify_init): Removed.
7672         (ipa_compute_jump_functions): Added a temp variable instead of 
7673         repeatadly dereferencing the cgraph_edge.aux pointer
7674         (ipa_callsite_param_set_type): Removed.
7675         (ipa_compute_jump_functions): i renamed to index and moved to 
7676         an inner block
7677         (ipa_callsite_param_set_info_type_formal): Removed.
7678         (ipa_callsite_param_set_info_type): Removed.
7679         (ipa_callsite_param_map_create): Removed.
7680         (ipa_callsite_tree): Removed.
7681         (ipa_callsite_caller): Removed.
7682         (ipa_pop_func_from_list): return_method removed to return_func
7683
7684         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7685         prefixed all values with IPA_. Changed all users.
7686         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
7687         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
7688         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
7689         (union parameter_info): Renamed to jump_func_value.
7690         (union jump_func_value): Renamed value to constant
7691         (struct ipa_jump_func): Renamed info_type to value
7692         (struct ipa_node): Renamed to ipa_node_params
7693         (struct ipa_node_params): Renamed ipa_arg_num to param_count
7694         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7695         (struct ipa_node_params): Renamed ipa_mod to modified_flags
7696         (struct ipa_edge): Renamed to ipa_edge_args
7697         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7698         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7699         (struct ipa_methodlist): Renamed to ipa_func_list
7700         (struct ipa_func_list): method_p renamed to node, next_method
7701         renamed to next
7702         (ipa_methodlist_p): Removed, switched all users to struct pointer
7703         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7704
7705 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
7706
7707         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7708         (rs6000_emit_epilogue): Use backchain to restore only when we
7709         have a large frame.  Make use of frame pointer to restore if we
7710         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7711
7712 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
7713
7714         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7715         Add mode to zero_extract.
7716         (sign bit tests peepholes): (Ditto.).
7717
7718 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7719
7720         * config/i386/i386.c (ix86_builtins): Replace Prescott New
7721         Instructions in comments with SSE3.
7722         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
7723         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7724         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7725         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7726         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7727         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7728         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7729         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7730         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7731         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7732         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7733         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7734         (bdesc_sse_args): Renamed to ...
7735         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7736         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7737         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7738         IX86_BUILTIN_FABSQ.
7739         (bdesc_1arg): Moved to ...
7740         (bdesc_args): Here.
7741         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
7742         Instructions in comments with SSE3.
7743         (ix86_expand_sse_operands_builtin): Renamed to ...
7744         (ix86_expand_args_builtin): This.  Updated.
7745         (ix86_expand_unop1_builtin): Update comments.
7746         (ix86_expand_builtin): Updated.
7747
7748 2008-04-29  Richard Guenther  <rguenther@suse.de>
7749
7750         PR tree-optimization/36078
7751         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7752         Update virtual SSA form after cleaning up the CFG.
7753
7754 2008-04-29  Richard Guenther  <rguenther@suse.de>
7755
7756         PR middle-end/15255
7757         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7758
7759 2008-04-29  Richard Guenther  <rguenther@suse.de>
7760
7761         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7762         (compute_may_aliases): Do not call finalize_ref_all_pointers.
7763         (compute_flow_insensitive_aliasing): Do not treat
7764         PTR_IS_REF_ALL pointers special.
7765         (get_smt_for): Likewise.
7766         (may_alias_p): Re-structure.
7767         (is_escape_site): A ref-all pointer conversion is not an escape site.
7768         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7769         PTR_IS_REF_ALL pointers special.
7770         * tree-ssa-structalias.h (struct alias_info): Remove
7771         ref_all_symbol_mem_tag field.
7772         (PTR_IS_REF_ALL): Remove.
7773
7774 2008-04-29  Richard Guenther  <rguenther@suse.de>
7775
7776         PR middle-end/36077
7777         * fold-const.c (extract_muldiv_1): In combining division constants
7778         make sure to never overflow.
7779
7780 2008-04-29  Nick Clifton  <nickc@redhat.com>
7781
7782         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7783
7784 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7785
7786         PR bootstrap/35169
7787         * optc-gen.awk: Work around HP-UX/IA awk bug.
7788
7789 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
7790
7791         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7792         2008-04-25 commit.
7793
7794 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7795
7796         PR target/36073
7797         * config/i386/i386.md
7798         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7799         Change operand 1 predicate to nonimmediate_operand.
7800
7801 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
7802
7803         PR debug/36060
7804         * dwarf2out.c (struct die_struct): Mark as chain_circular through
7805         die_sub field.
7806         * gengtype.c (walk_type, write_func_for_structure): Handle
7807         chain_circular.
7808         * doc/gty.texi: Document chain_circular.
7809
7810 2008-04-28  Richard Guenther  <rguenther@suse.de>
7811
7812         PR tree-optimization/36066
7813         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7814         SCEV and loop.
7815
7816 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7817
7818         PR target/36064
7819         * config/i386/i386.md
7820         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7821         Use match_scratch instead of match_operand for operands 3 and 4.
7822
7823 2008-04-27  Richard Guenther  <rguenther@suse.de>
7824
7825         PR tree-optimization/18754
7826         PR tree-optimization/34223
7827         * tree-pass.h (pass_complete_unrolli): Declare.
7828         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7829         loop size before and after unconditionally of UL_NO_GROWTH in effect.
7830         Rewrite loop into loop closed SSA form if it is not already.
7831         (tree_unroll_loops_completely): Re-structure to iterate over
7832         innermost loops with intermediate CFG cleanups.
7833         Unroll outermost loops only if requested or the code does not grow
7834         doing so.
7835         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7836         loops are available.
7837         (tree_vectorize): Instead do so here.
7838         (tree_complete_unroll): Also unroll outermost loops.
7839         (tree_complete_unroll_inner): New function.
7840         (gate_tree_complete_unroll_inner): Likewise.
7841         (pass_complete_unrolli): New pass.
7842         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7843         uses outside of the loop.
7844         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7845         form if it is available.  
7846         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7847         * passes.c (init_optimization_passes): Schedule complete inner
7848         loop unrolling pass before the first CCP pass after final inlining.
7849
7850 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
7851
7852         * targhooks.h (default_emutls_var_fields,
7853         default_emutls_var_init): Declare.
7854         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7855         * target.h (struct gcc_target): Add struct emutls member.
7856         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7857         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7858         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7859         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7860         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7861         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7862         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7863         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7864         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7865         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7866         emit debug information.
7867         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7868         * varasm.c: Include targhooks.h.
7869         (emutls_object_section, emutls_tmpl_section): New.
7870         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7871         (EMUTLS_SEPARATOR): New.
7872         (prefix_name): New.
7873         (get_emutls_object_name): New.
7874         (default_emutls_var_fields): New, broken out of ...
7875         (get_emutls_object_type): ... here.  Adjust to use target hooks.
7876         (get_emutls_init_templ_addr): Adjust to use target hooks.
7877         (emutls_decl): Adjust to use target hooks.
7878         (emutls_finish): Likewise.
7879         (default_emutls_var_init): New, broken out of ...
7880         (assemble_variable): ... here.  Adjust to use target hooks.
7881         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7882         SECCAT_EMUTLS_TMPL.
7883         * c-common.c (handle_section_attribute): Prevent overriding
7884         sections for emulated tls with special sections.
7885         * config/i386/i386.c (x86_64_elf_select_section): Add
7886         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7887         (x86_64_elf_unique_section): Likewise.
7888         * config/vxworks.c: Include tree.h.
7889         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7890         (vxworks_override_options): Set TLS scheme.
7891         * doc/tm.texi (Emulated TLS): New node.
7892
7893 2008-04-26  Simon Baldwin <simonb@google.com>
7894
7895         PR c/35652
7896         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7897         with propagated string constants.
7898
7899 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
7900
7901         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7902         constraint for operand 2 when operand 0 is memory operand.
7903         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7904         operand 0 is memory operand.
7905         (fix_trunc<mode>_i387_with_temp): Ditto.
7906         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7907         operand 2 when operand 1 is memory operand.
7908         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7909         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7910         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7911         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7912         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7913         operands 2,3 and 4 when operand 1 is memory operand.
7914         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7915         is memory operand.
7916         (fistdi2_floor_with_temp): Ditto.
7917         (fist<mode>2_floor_with_temp): Ditto.
7918         (fistdi2_ceil_with_temp): Ditto.
7919         (fist<mode>2_ceil_with_temp): Ditto.
7920         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7921
7922 2008-04-26  David Daney  <ddaney@avtrex.com>
7923
7924         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7925         unspec_volitile.
7926         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7927         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7928         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7929         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7930         (compare_and_swap_12): New insn.
7931         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7932         * config/mips/mips.c (mips_force_binary): New function.
7933         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7934         (mips_expand_compare_and_swap_12): New function.
7935         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7936
7937 2008-04-25  Jan Hubicka  <jh@suse.cz>
7938
7939         PR testsuite/35843
7940         * cfgexpand.c (pass_expand): Turn into RTL pass.
7941         * passes.c (execute_one_pass): Do pass typechecking after execution.
7942         * tree-pass.h (pass_expand): Turn into RTL pass.
7943
7944         * function.h (struct rtl_data): Move here fields
7945         accesses_prior_frames, calls_eh_return, saves_all_registers,
7946         has_nonlocal_goto, has_asm_statement, is_thunk,
7947         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7948         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7949         arg_pointer_save_area_init from struct function; turn into bool.
7950         (struct function): Move
7951         calls_eh_return, saves_all_registers, has_nonlocal_goto,
7952         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7953         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7954         tail_call_emit, arg_pointer_save_area_init
7955         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
7956         (current_function_returns_struct, current_function_returns_pcc_struct,
7957         current_function_calls_setjmp, current_function_calls_alloca,
7958         current_function_accesses_prior_frames,
7959         current_function_calls_eh_return, current_function_is_thunk,
7960         current_function_stdarg, current_function_profile,
7961         current_function_limit_stack, current_function_uses_pic_offset_table,
7962         current_function_uses_const_pool, current_function_has_nonlocal_label,
7963         current_function_saves_all_registers,
7964         current_function_has_nonlocal_goto,
7965         current_function_has_asm_statement): Remove accesor macros.
7966         * ra-conflict.c (global_conflicts): Update.
7967         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7968         (suitable_for_tail_call_opt_p): Update.
7969         * builtins.c (expand_builtin_return_addr): Update.
7970         (expand_builtin_setjmp_setup): Update.
7971         (expand_builtin_nonlocal_goto): Update.
7972         * final.c (final_start_function): Update.
7973         (profile_function): Update.
7974         (leaf_function_p): Update.
7975         (only_leaf_regs_used): Update.
7976         * df-scan.c (df_get_exit_block_use_set): Update.
7977         * dojump.c (clear_pending_stack_adjust): Update.
7978         * tree-stdarg.c (gate_optimize_stdarg): Update.
7979         * gimple-low.c (lower_function_body): Update.
7980         * global.c (compute_regsets): Update.
7981         (global_alloc): Update.
7982         * dwarf2out.c (dwarf2out_begin_prologue): Update.
7983         * expr.c (expand_assignment): Update.
7984         * dse.c (dse_step0): Update.
7985         (dse_step1): Update.
7986         * c-decl.c (store_parm_decls): Update.
7987         * local-alloc.c (combine_regs): Update.
7988         (find_free_reg): Update.
7989         * function.c (assign_parms_augmented_arg_list): Update.
7990         (assign_parm_find_data_types): Update.
7991         (assign_parms): Update.
7992         (allocate_struct_function): Update.
7993         (expand_function_start): Update.
7994         (expand_function_end): Update.
7995         (get_arg_pointer_save_area): Update.
7996         (thread_prologue_and_epilogue_insns): Update.
7997         (rest_of_match_asm_constraints): Update.
7998         * stor-layout.c (variable_size): Update.
7999         * gcse.c (gcse_main): Update.
8000         (bypass_jumps): Update.
8001         * gimplify.c (gimplify_function_tree): Update.
8002         * calls.c (emit_call_1): Update.
8003         (expand_call): Update.
8004         * bt-load.c (compute_defs_uses_and_gen): Update.
8005         * except.c (sjlj_assign_call_site_values): Update.
8006         (sjlj_emit_function_enter): Update.
8007         (can_throw_external): Update.
8008         (set_nothrow_function_flags): Update.
8009         (expand_builtin_unwind_init): Update.
8010         (expand_eh_return): Update.
8011         (convert_to_eh_region_ranges): Update.
8012         (output_function_exception_table): Update.
8013         * emit-rtl.c (gen_tmp_stack_mem): Update.
8014         * cfgexpand.c (expand_used_vars): Update.
8015         (tree_expand_cfg): Update.
8016         * cfgcleanup.c (rest_of_handle_jump): Update.
8017         * explow.c (allocate_dynamic_stack_space): Update.
8018         * varasm.c (assemble_start_function): Update.
8019         (force_const_mem): Update.
8020         (mark_constant_pool): Update.
8021         * tree-optimize.c (tree_rest_of_compilation): Update.
8022         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
8023         * tree-cfg.c (notice_special_calls): Update.
8024         (is_ctrl_altering_stmt): Update.
8025         (tree_can_make_abnormal_goto): Update.
8026         (tree_purge_dead_abnormal_call_edges): Update.
8027         * config/alpha/predicates.md: Update.
8028         * config/alpha/alpha.c (alpha_sa_mask): Update.
8029         (alpha_sa_size): Update.
8030         (alpha_does_function_need_gp): Update.
8031         (alpha_expand_prologue): Update.
8032         (alpha_start_function): Update.
8033         (alpha_output_function_end_prologue): Update.
8034         (alpha_expand_epilogue): Update.
8035         * config/frv/frv.c (frv_stack_info): Update.
8036         (frv_expand_epilogue): Update.
8037         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
8038         (s390_register_info): Update.
8039         (s390_frame_info): Update.
8040         (s390_init_frame_layout): Update.
8041         (s390_can_eliminate): Update.
8042         (save_gprs): Update.
8043         * config/spu/spu.c (spu_split_immediate): Update.
8044         (need_to_save_reg): Update.
8045         (spu_expand_prologue): Update.
8046         (spu_expand_epilogue): Update.
8047         * config/sparc/sparc.md: Update.
8048         * config/sparc/sparc.c (eligible_for_return_delay): Update.
8049         (sparc_tls_got): Update.
8050         (legitimize_pic_address): Update.
8051         (sparc_emit_call_insn): Update.
8052         (sparc_expand_prologue): Update.
8053         (output_return): Update.
8054         (print_operand): Update.
8055         (sparc_function_ok_for_sibcall): Update.
8056         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8057         * config/m32r/m32r.md: Update.
8058         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8059         (m32r_compute_frame_size): Update.
8060         (m32r_expand_prologue): Update.
8061         (m32r_expand_epilogue): Update.
8062         (m32r_legitimize_pic_address): Update.
8063         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8064         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8065         * config/i386/i386.c (ix86_frame_pointer_required): Update.
8066         (gen_push): Update.
8067         (ix86_save_reg): Update.
8068         (ix86_compute_frame_layout): Update.
8069         (ix86_expand_prologue): Update.
8070         (ix86_expand_epilogue): Update.
8071         * config/sh/sh.c (output_stack_adjust): Update.
8072         (calc_live_regs): Update.
8073         (sh5_schedule_saves): Update.
8074         (sh_expand_prologue): Update.
8075         (sh_expand_epilogue): Update.
8076         (sh_setup_incoming_varargs): Update.
8077         (sh_allocate_initial_value): Update.
8078         (sh_get_pr_initial_val): Update.
8079         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8080         * config/sh/sh.md (label:): Update.
8081         * config/avr/avr.c (out_movhi_mr_r): Update.
8082         * config/crx/crx.h (enum): Update.
8083         * config/xtensa/xtensa.h (along): Update.
8084         * config/stormy16/stormy16.c Update.
8085         (xstormy16_compute_stack_layout): Update.
8086         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8087         (fr30_expand_prologue): Update.
8088         * config/cris/cris.c (cris_conditional_register_usage): Update.
8089         (cris_reg_saved_in_regsave_area): Update.
8090         (cris_initial_frame_pointer_offset): Update.
8091         (cris_simple_epilogue): Update.
8092         (cris_expand_prologue): Update.
8093         (cris_expand_epilogue): Update.
8094         (cris_expand_pic_call_address): Update.
8095         (cris_asm_output_symbol_ref): Update.
8096         (cris_asm_output_label_ref): Update.
8097         * config/cris/cris.md Update.
8098         * config/iq2000/iq2000.c (compute_frame_size): Update.
8099         (iq2000_expand_epilogue): Update.
8100         * config/mt/mt.h (save_direction): Update.
8101         * config/mn10300/mn10300.c (mn10300_function_value): Update.
8102         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8103         (ia64_secondary_reload_class): Update.
8104         * config/m68k/m68k.c (m68k_save_reg): Update.
8105         (m68k_expand_prologue): Update.
8106         (m68k_expand_epilogue): Update.
8107         (legitimize_pic_address): Update.
8108         * config/rs6000/rs6000.c (rs6000_got_register): Update.
8109         (first_reg_to_save): Update.
8110         (first_altivec_reg_to_save): Update.
8111         (compute_vrsave_mask): Update.
8112         (compute_save_world_info): Update.
8113         (rs6000_stack_info): Update.
8114         (spe_func_has_64bit_regs_p): Update.
8115         (rs6000_ra_ever_killed): Update.
8116         (rs6000_emit_eh_reg_restore): Update.
8117         (rs6000_emit_allocate_stack): Update.
8118         (rs6000_emit_prologue): Update.
8119         (rs6000_emit_epilogue): Update.
8120         (rs6000_output_function_epilogue): Update.
8121         (output_profile_hook): Update.
8122         (rs6000_elf_declare_function_name): Update.
8123         * config/rs6000/rs6000.h (rs6000_args): Update.
8124         * config/rs6000/rs6000.md: Update.
8125         * config/mcore/mcore.c (mcore_expand_prolog): Update.
8126         * config/arc/arc.c (arc_output_function_epilogue): Update.
8127         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8128         * config/darwin.c (machopic_function_base_name): Update.
8129         * config/score/score3.c (score3_compute_frame_size): Update.
8130         (rpush): Update.
8131         (rpop): Update.
8132         (score3_epilogue): Update.
8133         * config/score/score7.c (score7_compute_frame_size): Update.
8134         (score7_prologue): Update.
8135         (score7_epilogue): Update.
8136         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8137         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8138         * config/arm/arm.c (use_return_insn): Update.
8139         (require_pic_register): Update.
8140         (arm_load_pic_register): Update.
8141         (arm_compute_save_reg0_reg12_mask): Update.
8142         (arm_compute_save_reg_mask): Update.
8143         (thumb1_compute_save_reg_mask): Update.
8144         (output_return_instruction): Update.
8145         (arm_output_function_prologue): Update.
8146         (arm_output_epilogue): Update.
8147         (arm_get_frame_offsets): Update.
8148         (arm_expand_prologue): Update.
8149         (thumb_pushpop): Update.
8150         (thumb_exit): Update.
8151         (thumb1_expand_prologue): Update.
8152         (thumb1_expand_epilogue): Update.
8153         (arm_unwind_emit): Update.
8154         (arm_output_fn_unwind): Update.
8155         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8156         * config/arm/arm.md: Update.
8157         * config/pa/pa.md: Update.
8158         * config/pa/pa.c (legitimize_pic_address): Update.
8159         (compute_frame_size): Update.
8160         (hppa_expand_prologue): Update.
8161         (hppa_expand_epilogue): Update.
8162         (borx_reg_operand): Update.
8163         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8164         (HARD_REGNO_RENAME_OK): Update.
8165         * config/mips/mips.c (mips_global_pointer): Update.
8166         (mips_save_reg_p): Update.
8167         (mips_compute_frame_info): Update.
8168         (mips_frame_pointer_required): Update.
8169         (mips_expand_prologue): Update.
8170         (mips_expand_epilogue): Update.
8171         (mips_can_use_return_insn): Update.
8172         (mips_reorg_process_insns): Update.
8173         * config/v850/v850.c (compute_register_save_size): Update.
8174         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8175         * config/mmix/mmix.c (along): Update.
8176         (mmix_expand_epilogue): Update.
8177         * config/bfin/bfin.c (legitimize_pic_address): Update.
8178         (must_save_p): Update.
8179         (stack_frame_needed_p): Update.
8180         (add_to_reg): Update.
8181         (bfin_expand_prologue): Update.
8182         * stmt.c (expand_asm_operands): Update.
8183         * reload1.c (reload): Update.
8184         (init_elim_table): Update.
8185
8186 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
8187         
8188         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8189         
8190 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8191
8192         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8193         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
8194         (mov<mode>): Removed.
8195         (*movv4sf_internal): Likewise.
8196         (*movv2df_internal): Likewise.
8197
8198 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
8199
8200         * config.gcc (crx-*-elf): Remove deprecation.
8201
8202 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
8203
8204         * config/i386/cygming-crtend.c (register_frame_ctor): Register
8205         __gcc_deregister_frame with atexit.
8206         (deregister_frame_dtor): Remove.
8207
8208 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
8209             Nathan Sidwell  <nathan@codesourcery.com>
8210
8211         * config/rs6000/rs6000.opt (mspe): Remove Var property.
8212         (misel): Likewise.
8213         * config/rs6000/rs6000.h (rs6000_spe): Declare.
8214         (rs6000_isel): Likewise.
8215         * config/rs6000/rs6000.c (rs6000_spe): New variable.
8216         (rs6000_isel): New variable.
8217         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
8218
8219 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8220
8221         PR c++/35758
8222         * c-common.c (handle_vector_size_attribute): Call
8223         lang_hooks.types.reconstruct_complex_type instead of
8224         reconstruct_complex_type.
8225         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
8226         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
8227         * langhooks.h (struct lang_hooks_for_types): Add
8228         reconstruct_complex_type hook.
8229         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
8230         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8231
8232 2008-04-24  Richard Guenther  <rguenther@suse.de>
8233
8234         * c-common.h (check_builtin_function_arguments): Declare.
8235         * c-common.c (validate_nargs): New function.
8236         (check_builtin_function_arguments): Likewise.
8237         * c-typeck.c (build_function_call): Call
8238         check_builtin_function_arguments.
8239         * builtins.c (fold_builtin_classify): Remove error reporting code.
8240         (fold_builtin_unordered_cmp): Likewise.
8241         (fold_builtin_1): Likewise.
8242         (fold_builtin_n): Likewise.
8243
8244 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8245
8246         PR tree-optimization/36008
8247         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8248         the original op1, rather than delta by step.
8249
8250 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
8251             Sebastian Pop  <sebastian.pop@amd.com>
8252
8253         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8254         eliminate_local_variables_stmt, eliminate_local_variables,
8255         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8256         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8257         of code delimited by two edges in the CFG.
8258         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8259         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8260         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
8261         the case of parallelisation of reductions.
8262         (expr_invariant_in_region_p): New.
8263
8264         * tree-flow.h (gather_blocks_in_sese_region): Declared.
8265         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8266
8267 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8268             Richard Guenther  <rguenther@suse.de>
8269
8270         PR tree-optimization/36034
8271         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8272         incapable of dealing with loads with gaps.
8273
8274 2008-04-24  Rafael Espindola  <espindola@google.com>
8275
8276         * tree-flow.h (vrp_evaluate_conditional): Change signature.
8277         * tree-ssa-propagate.c (fold_predicate_in): Update call to
8278         vrp_evaluate_conditional.
8279         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8280         (vrp_evaluate_conditional): Split the cond argument.
8281         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8282         (simplify_stmt_for_jump_threading): Update call to
8283         vrp_evaluate_conditional.
8284
8285 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8286
8287         PR tree-optimization/35982
8288         * tree-vect-analyze.c (vect_check_interleaving): Check that the
8289         interleaved data-refs are of the same type.
8290
8291 2008-04-24  Danny Smith  <dannysmith@users.net>
8292
8293         * c-format.c (check_format_info_main): Use strncmp rather than a
8294         magic prefix to handle multichar length specs.
8295         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8296         Don't prefix "I64" and "I32" with '\0'.
8297
8298 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8299
8300         PR target/36015
8301         * config/i386/i386.c (init_cumulative_args): Don't pass anything
8302         in registers for -m32 only if stdarg_p (fntype).
8303
8304 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
8305
8306         PR rtl-optimization/36006
8307         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8308         temp to op0 in order to avoid invalid rtx sharing.
8309
8310 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
8311
8312         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
8313         check TREE_INVARIANT.
8314         * tree-gimple.c (is_gimple_address): New.
8315         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8316         * tree-gimple.h (is_gimple_address): New.
8317         * tree.h (decl_address_invariant_p): New.
8318         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8319         (build_string): Likewise.
8320         (decl_address_invariant_p): New, from is_gimple_invariant_address.
8321         (tree_invariant_p_1): Likewise.
8322         (save_expr): Use it.
8323         (tree_invariant_p): New.
8324         (skip_simple_arithmetic): Use it.
8325         (stabilize_reference_1): Use it.
8326         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8327         simplify.
8328         (build1_stat): Drop code to compute TREE_INVARIANT.
8329         (build2_stat): Drop code to compute TREE_INVARIANT.
8330         (build3_stat): Drop code to compute TREE_INVARIANT.
8331         (build4_stat): Drop code to compute TREE_INVARIANT.
8332         (build5_stat): Drop code to compute TREE_INVARIANT.
8333         (build7_stat): Drop code to compute TREE_INVARIANT.
8334         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8335         * tree.h (struct tree_base): Remove invariant_flag.
8336         (TREE_INVARIANT): Remove.
8337         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8338         (fold_builtin_expect): Check TREE_CONSTANT.
8339         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8340         * c-tree.h (c_expr_to_decl): Drop third parameter.
8341         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8342         (build_c_cast): Don't set TREE_INVARIANT.
8343         (pop_init_level): Don't set TREE_INVARIANT.
8344         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8345         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8346         TREE_CONSTANT.
8347         (gimplify_init_constructor): Don't set TREE_INVARIANT.
8348         (gimplify_addr_expr): Adjust comment.
8349         * tree-mudflap.c (mf_build_string):
8350         * print-tree.c (print_node): Don't print TREE_INVARIANT.
8351         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8352         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8353         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8354         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8355         * langhooks.h (struct lang_hooks): Drop third parameter from
8356         expr_to_decl.
8357
8358 2008-04-23  Richard Guenther  <rguenther@suse.de>
8359
8360         PR tree-optimization/27799
8361         PR tree-optimization/32921
8362         PR tree-optimization/32624
8363         * tree-ssa-structalias.c (merge_smts_into): Only merge the
8364         SMTs aliases and the tag itself into the solution.
8365         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8366         merge the points-to solution back into the SMT aliases.
8367         (may_alias_p): Use alias_set_subset_of instead of
8368         aliases_conflict_p.  A pointer which points to
8369         memory with alias set zero may access any variable.
8370
8371 2008-04-23  Richard Guenther  <rguenther@suse.de>
8372
8373         * alias.c (alias_set_subset_of): Correctly handle asking
8374         if zero is a subset of an alias set with zero child.
8375         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8376         (compute_flow_insensitive_aliasing): Correctly walk all
8377         pointers.  Do not unnecessarily union sets.
8378
8379 2008-04-23  Richard Guenther  <rguenther@suse.de>
8380
8381         PR middle-end/36021
8382         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8383
8384 2008-04-22  Tomas Bily  <tbily@suse.cz>
8385
8386         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8387         unreachable case.
8388         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8389         NON_LVALUE_EXPR.
8390         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8391         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8392         * tree-inline.c (estimate_num_insns_1): Likewise.
8393         * varasm.c (const_hash_1, compare_constant, copy_constant)
8394         (compute_reloc_for_constant, output_addressed_constants): Likewise.
8395         * emit-rtl.c (component_ref_for_mem_expr)
8396         (set_mem_attributes_minus_bitpos): Likewise.
8397         * expr.c (highest_pow2_factor, expand_expr_real_1, )
8398         (is_aligning_offset): Likewise.
8399         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8400         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8401         * dojump.c (do_jump): Likewise.
8402         * builtins.c (get_pointer_alignment, get_memory_rtx)
8403         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8404         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8405
8406 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
8407
8408         PR rtl-optimization/36017
8409         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8410         expanding the library call.
8411
8412 2008-04-22  Ian Lance Taylor  <iant@google.com>
8413
8414         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8415         than size_in_bytes.
8416
8417 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
8418
8419         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8420         of LR/CTR moves for Power6.
8421
8422 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8423
8424         PR middle-end/36003
8425         * passes.c (init_optimization_passes): Remove
8426         pass_fast_rtl_byte_dce.
8427         
8428 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
8429
8430         PR target/29096
8431         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8432         builtin functions to generate faster code.
8433         (_mm_cvtpu16_ps): Ditto.
8434         (_mm_cvtpi32x2_ps): Ditto.
8435
8436 2008-04-22  Nick Clifton  <nickc@redhat.com>
8437
8438         * common.opt (ftree-loop-distribution): Add Optimization
8439         attribute.
8440
8441         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8442         (frv_expand_builtin_va_start): Likewise.
8443
8444         * config/arm/arm.c (thumb_find_work_register): Fix location of
8445         argument register count.
8446
8447 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8448
8449         Support scheduling for ColdFire V1 and V3 microarchitecture.
8450         Improve scheduling of multiplication instructions.
8451
8452         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
8453         (mac): New instruction attribute.
8454         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8455         (m68k_sched_mac): New variable.
8456         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8457         Handle cfv1 and cfv3.
8458         (max_insn_size): New static variable.
8459         (struct _sched_ib): New type.
8460         (sched_ib): New static variable.
8461         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8462         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
8463         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8464         Update.
8465         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8466         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
8467         new variables.  Update.
8468         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8469         Add modeling of cfv3 instruction buffer.  Update.
8470         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8471         * config/m68k/m68k.h (TUNE_CFV3): New macro.
8472         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8473         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8474         a particular reservation applies to.
8475         (type2): Reorganize attribute values.  Rename alu to alu_reg,
8476         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
8477         to mul_l and mul_w.
8478         (cf_ib_*): Simplify description of instruction buffer.
8479         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8480         (cf_mem): Split into cf_mem1 and cf_mem2.
8481         (cf_v2_move_??): Rename to cfv12_alu_??.
8482         (cf_v2_move_l_??): Rename to cfv12_omove_??.
8483         (cf_v2_mul_??): Remove reservations.
8484         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8485         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8486         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8487         appropriate place.
8488         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8489         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8490         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8491         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8492         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8493         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8494         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8495         expansions of the above reservations for instructions of sizes
8496         1, 2 and 3 words.
8497
8498 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8499
8500         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8501
8502 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
8503
8504         * coverage.c: Include tree-pass.h.
8505         (coverage_counter_alloc): Print da_file_name to the dump file.
8506
8507 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
8508
8509         * sbitmap.c (sbitmap_range_empty_p): New function.
8510         * sbitmap.h (sbitmap_range_empty_p): New function.
8511         * bitmap.h: Now includes obstack.h.
8512
8513 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
8514             Kenneth Zadeck  <zadeck@naturalbridge.com>
8515
8516         * dbgcnt.def (ra_byte_scan): Added.
8517         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8518         when the last hit happens for a counter.  
8519         * timevar.def (TV_DF_BYTE_LR): New variable.
8520         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8521         * passes.c (pass_fast_rtl_byte_dce): New pass.
8522         * fwprop.c (update_df): Added mode to call df_ref_create.
8523         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8524         DF_REF_EXTRACT_OFFSET.
8525         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
8526         DF_BYTE_LR_OUT, df_byte_lr): New macro.
8527         (df_mm): New enum.
8528         (df_ref_extract): Added mode field.
8529         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8530         DF_REF_EXTRACT_OFFSET.
8531         (DF_REF_EXTRACT_MODE): New macro.
8532         (df_byte_lr_bb_info): New structure.
8533         (df_print_byte_regset, df_compute_accessed_bytes, 
8534         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8535         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8536         df_byte_lr_simulate_uses,
8537         df_byte_lr_simulate_artificial_refs_at_top,
8538         df_byte_lr_simulate_artificial_refs_at_end,
8539         df_compute_accessed_bytes): New function.
8540         (df_ref_create): Add parameter.
8541         (df_byte_lr_get_bb_info): New inline function.
8542         * df-scan.c (df_ref_record, df_uses_record,
8543         df_ref_create_structure): Added mode parameter.
8544         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
8545         df_defs_record, df_uses_record, df_get_conditional_uses,
8546         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
8547         df_entry_block_defs_collect, df_exit_block_uses_collect):
8548         Added mode parameter to calls to df_ref_record, df_uses_record,
8549         df_ref_create_structure.
8550         (df_ref_equal_p, df_ref_compare): Added test for modes.
8551         (df_ref_create_structure): Added code to set mode.  Renamed
8552         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8553         DF_REF_EXTRACT_OFFSET.
8554         * df-core.c (df_print_byte_regset): New function.
8555         * df-byte-scan.c: New file.
8556         * df-problems.c (df_rd_transfer_function): Removed unnecessary
8557         calls to BITMAP_FREE.  
8558         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8559         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8560         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
8561         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
8562         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8563         df_byte_lr_local_compute, df_byte_lr_init,
8564         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
8565         df_byte_lr_transfer_function, df_byte_lr_free, 
8566         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8567         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
8568         df_byte_lr_simulate_uses,
8569         df_byte_lr_simulate_artificial_refs_at_top,
8570         df_byte_lr_simulate_artificial_refs_at_end): New function.
8571         * dce.c (byte_dce_process_block): New function.
8572         (dce_process_block): au is now passed in rather than computed
8573         locally.  Changed loops that look at artificial defs to not look
8574         for conditional or partial ones, because there never are any.  
8575         (fast_dce): Now is able to drive byte_dce_process_block or 
8576         dce_process_block depending on the kind of dce being done.
8577         (rest_of_handle_fast_dce): Add parameter to fast_dce.
8578         (rest_of_handle_fast_byte_dce): New function.
8579         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8580         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8581
8582 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
8583
8584         PR fortran/35019
8585         * gcc.h: Added fortran options that take arguments to
8586         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8587         macros.
8588
8589 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8590
8591         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8592         scalarization if on the LHS and not a full access.
8593
8594 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8595
8596         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8597
8598 2008-04-18  Rafael Espindola  <espindola@google.com>
8599
8600         * tree-vrp.c (find_case_label_index): Fix the binary search.
8601         (find_case_label_range): New.
8602         (vrp_visit_switch_stmt): Use find_case_label_range.
8603         (simplify_switch_using_ranges): Use find_case_label_range.
8604
8605 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8606
8607         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8608         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8609
8610 2008-04-18  Tom Tromey  <tromey@redhat.com>
8611
8612         PR libcpp/15500:
8613         * doc/cpp.texi (Implementation-defined behavior): Mention
8614         -finput-charset.
8615
8616 2008-04-18  Ian Lance Taylor  <iant@google.com>
8617
8618         * fold-const.c (pointer_may_wrap_p): New static function.
8619         (fold_comparison): Add another test for pointer overflow.  Use
8620         pointer_may_wrap_p to disable some false positives.
8621
8622 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
8623           
8624         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8625         (fname_as_string): Match updated cpp_interpret_string prototype.
8626         (fix_string_type): Support char16_t* and char32_t*.
8627         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8628         derivative) nodes.  Register as builtin if C++0x.
8629         (c_parse_error): Support CPP_CHAR{16,32}.
8630         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
8631         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8632         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8633         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8634         CTI_CHAR32_ARRAY_TYPE>: New elements.
8635         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8636         char32_type_node, signed_char32_type_node, char16_array_type_node,
8637         char32_array_type_node): New defines.
8638         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8639         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8640         (lex_string): Support CPP_STRING{16,32}, match updated
8641         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8642         (lex_charconst): Support CPP_CHAR{16,32}.
8643         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8644         and CPP_STRING{16,32}.
8645
8646 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
8647
8648         PR bootstrap/35457
8649         * aclocal.m4: Regenerate.
8650         * configure: Regenerate.
8651
8652 2008-04-18  Jan Hubicka  <jh@suse.cz>
8653
8654         * except.c (dw2_size_of_call_site_table,
8655         sjlj_size_of_call_site_table): Use vector API for call_site_record.
8656
8657         * cgraphbuild.c (build_cgraph_edges): Update.
8658         * tree-pass.h: Update comment.
8659         * final.c (leaf_function_p): Update.
8660         (leaf_renumber_regs): Update.
8661         (rest_of_clean_state): Update.
8662         * omp-low.c (expand_omp_parallel): Update.
8663         * ipa-reference.c (analyze_function): Update.
8664         * reorg.c (find_end_label): Update.
8665         (optimize_skip): Update.
8666         (fill_simple_delay_slots): Update.
8667         (fill_simple_delay_slots): Update.
8668         (make_return_insns): Update.
8669         (dbr_schedule): Update.
8670         * gimple-low.c (record_vars_into): Update.
8671         * cfgbuild.c (make_edges): Update.
8672         * function.c (assign_stack_local): Update.
8673         (assign_parm_adjust_stack_rtl): Update.
8674         (locate_and_pad_parm): Update.
8675         (allocate_struct_function): Do not initialize stack_alignment_needed
8676         and preferred_stack_boundary here.
8677         (stack_protect_prologue): Update.
8678         (stack_protect_epilogue): Update.
8679         (expand_function_start): Initialize stack_alignment_needed,
8680         preferred_stack_boundary and max_jumptable_ents.
8681         (expand_function_end): Update.
8682         (free_after_compilation): Do not NULLify epilogue_delay_list.
8683         * function.h (struct rtl_data): Add stack_protect_guard,
8684         stack_alignment_needed,
8685         preferred_stack_boundary, epilogue_delay_list.
8686         (struct function): Remove value_histograms, stack_alignment_needed,
8687         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8688         last_label_uid,
8689         unexpanded_var_list, stack_protect_guard.
8690         (current_function_epilogue_delay_list): Remove.
8691         * ipa-type-escape.c (analyze_function): Update.
8692         * gimplify.c (pop_gimplify_context): Update comment.
8693         * calls.c (expand_call): Update.
8694         (emit_library_call_value_1): Update.
8695         * except.c (set_nothrow_function_flags): Update.
8696         * cfgexpand.c (get_decl_align_unit): Update.
8697         (create_stack_guard): Update.
8698         (estimated_stack_frame_size): Update.
8699         (expand_used_vars): Update.
8700         (tree_expand_cfg): Free histogram earliers, init expansion variables.
8701         * explow.c (allocate_dynamic_stack_space): Update.
8702         * tree-ssa-live.c (remove_unused_locals): Update.
8703         * varasm.c (mark_constant_pool): Update.
8704         * tree-inline.c (remap_decls): Update.
8705         (initialize_cfun): Update.
8706         (declare_return_variable): Update.
8707         (inline_forbidden_p): Update.
8708         (expand_call_inline): Update.
8709         (declare_inline_vars): Update.
8710         (tree_function_versioning): Update.
8711         * tree-flow.h (value_histograms): New.
8712         (VALUE_HISTOGRAMS): New macro.
8713         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8714         last_label_uid.
8715         * tree-cfg.c (set_bb_for_stmt): Update.
8716         (replace_by_duplicate_decl): Update.
8717         (move_block_to_fn): Update.
8718         (new_label_mapper): Update.
8719         (dump_function_to_file): Update.
8720         * ipa-struct-reorg.c (build_data_structure): Update.
8721         * cfgrtl.c (print_rtl_with_bb): Update.
8722         * reload1.c (reload): Update.
8723         (reload): Update.
8724         * config/i386/i386.c (setup_incoming_varargs_64,
8725         ix86_compute_frame_layout): Update.
8726         * config/arc/arc.c (arc_output_function_epilogue): Update.
8727
8728 2008-04-18  Marius Strobl <marius@FreeBSD.org>
8729
8730         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8731         for FreeBSD as well.
8732         * gthr-posix95.h: Likewise.
8733
8734 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
8735
8736         PR rtl-optimization/35838
8737         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8738         out the byte offset of the first subreg.
8739
8740 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
8741
8742         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8743         to split_ti instead of three separate calls with single member arrays.
8744         (subti3 splitter): Ditto.
8745         (adddi3 splitter): Ditto with split_di.
8746         (subdi3 splitter): Ditto.
8747         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8748         two separate calls with single member arrays.  Swap match_dup
8749         operands 1 and 2 to better fit into the array.
8750         (negdi2 splitter): Ditto with split_di.
8751         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
8752         two separate calls with single member arrays.  Swap match_dup operands
8753         6 and 7 to better fit into the array.
8754
8755 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8756
8757         * config/i386/i386.c (sse_builtin_type): New.
8758         (bdesc_sse_args): Likewise.
8759         (bdesc_sse_3arg): Removed.
8760         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8761         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8762         IX86_BUILTIN_ROUNDPS.
8763         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
8764         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
8765         IX86_BUILTIN_ROUNDPS.
8766         (ix86_expand_sse_4_operands_builtin): Removed.
8767         (ix86_expand_sse_operands_builtin): New.
8768         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8769         and CODE_FOR_sse4_1_roundps.
8770         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8771         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
8772
8773 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
8774
8775         PR target/35907
8776         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8777         regs before frame pop when needed.  If use_backchain_to_restore_sp
8778         then load backchain into a temp reg to restore vr and vrsave.  Add
8779         code to restore vr after frame pop if possible.
8780
8781 2008-04-17  Richard Guenther  <rguenther@suse.de>
8782
8783         * tree-vn.c (expressions_equal_p): Do not check type
8784         equality or compatibility before calling operand_equal_p.
8785         * fold-const.c (operand_equal_p): Check equivalence of
8786         integer constants before bailing out due to signedness or
8787         precision differences.
8788         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8789         spurious differences in type qualification.  Ignore types
8790         for COMPONENT_REFs at all.
8791
8792 2008-04-17  Christian Bruel  <christian.bruel@st.com>
8793
8794         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8795         msw_skip comparison.
8796         
8797 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
8798
8799         PR c/35739
8800         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8801         reg type.
8802
8803         PR tree-optimization/35899
8804         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8805         rather than TREE_OPERAND.
8806
8807 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
8808
8809         PR target/35944
8810         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8811         temporary registers.  Change operand predicate to general_operand.
8812         (remainderxf3): Ditto.
8813
8814 2008-04-16  Richard Guenther  <rguenther@suse.de>
8815
8816         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8817         * tree-affine.c (aff_combination_expand): Look through some
8818         conversions.
8819
8820 2008-04-15  Doug Kwan  <dougkwan@google.com>
8821
8822         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8823         for hex printing.
8824         * tree-pretty-print.c (dump_generic_node): Ditto.
8825         * final.c (output_addr_const): Ditto.
8826         * dwarf2out.c (output_cfi): Ditto.
8827         * c-pretty-print.c (pp_c_integer_constant): Ditto.
8828         * print-rtl.c (print_rtx): Ditto.
8829         * print-tree.c (print_node_brief, print_node): Ditto.
8830         * c-common.c (match_case_to_enum_1): Ditto.
8831         * sched-vis.c (print_value): Ditto.
8832         * config/i386/i386.c (print_operand): Cast to long unsigned int
8833         for hex printing.
8834
8835 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
8836         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
8837         MS Windows VirtualProtect function.
8838
8839 2008-04-15  Jan Hubicka  <jh@suse.cz>
8840
8841         * gengtype.c (write_root): Param_is argument is OK.
8842         * expr.c (expand_expr_real_1): Update call of get_exception_*.
8843         * function.h: Include varray.h
8844         (rtl_eh): New stucture based on except.c one.
8845         (call_site_record): New forward declaration and vector type.
8846         * calls.c (emit_call_1): Do not call
8847         note_current_region_may_contain_throw.
8848         * except.c (eh_status): Remove cur_region, try_region since they are
8849         unused.
8850         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8851         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8852         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
8853         Remove call_site_data_used, call_site_data_size.
8854         Turn call_site_record into vector in function.h.
8855         (note_current_region_may_contain_throw): Remove.
8856         (get_exception_pointer, get_exception_filter): Do not take struct
8857         function argument; update.
8858         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8859         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8860         build_post_landing_pads, dw2_build_landing_pads,
8861         sjlj_assign_call_site_values, sjlj_mark_call_sites,
8862         sjlj_emit_function_enter, sjlj_emit_function_enter, 
8863         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8864         sjlj_build_landing_pads, finish_eh_generation,
8865         remove_exception_handler_label, remove_eh_handler,
8866         maybe_remove_eh_handler, add_reachable_handler,
8867         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8868         add_action_record, collect_one_action_chain, add_call_site,
8869         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8870         sjlj_output_call_site_table, output_function_exception_table,
8871         * except.h (note_current_region_may_contain_throw): Remove
8872         (get_exception_pointer, get_exception_filter): Do not take struct
8873         function argument.
8874         * Makefile.in (GTFILES): Put varargs before struct function.
8875
8876 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8877
8878         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8879         punt for STRING_CST.
8880         (get_constraint_for): Deal with STRING_CST here instead.
8881
8882 2008-04-15  Richard Guenther  <rguenther@suse.de>
8883
8884         * tree-ssa-propagate.c (substitute_and_fold): Substitute
8885         statements in a basic-block with a backward walk.  Do not
8886         substitute into dead statements but instead remove those.
8887
8888 2008-04-15  Richard Guenther  <rguenther@suse.de>
8889
8890         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8891         to zero, thus disable creation of SFTs.
8892
8893 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8894
8895         * tree-predcom.c (suitable_reference_p): Return false if the
8896         reference can throw.
8897
8898 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
8899
8900         PR c/35751
8901         * c-decl.c (finish_decl): If extern or static var has variable
8902         size, set TREE_TYPE (decl) to error_mark_node.
8903
8904 2008-04-15  Rafael Espindola  <espindola@google.com>
8905
8906         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8907         variable arg1.
8908
8909 2008-04-15  Richard Guenther  <rguenther@suse.de>
8910
8911         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8912         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8913         (visit_reference_op_load): Do walk vuse-vdef chains on
8914         vn_reference_lookup.
8915         (visit_reference_op_store): But do not here.
8916         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8917         vn_reference_lookup.
8918         (vn_lookup_with_vuses): But do so here.
8919
8920 2008-04-14  Ian Lance Taylor  <iant@google.com>
8921
8922         * fold-const.c (fold_overflow_warning): Remove assertion.
8923
8924 2008-04-15  Ben Elliston  <bje@au.ibm.com>
8925
8926         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8927         temp1 local variables.
8928
8929 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
8930
8931         PR target/35661
8932         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8933         ".text.unlikely" section as executable.
8934
8935 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
8936
8937         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8938         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8939         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8940         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8941         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8942         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8943         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8944
8945 2008-04-14  Ian Lance Taylor  <iant@google.com>
8946
8947         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8948         * fold-const.c (fold_comparison): If appropriate, test
8949         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8950         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8951         reassociating a pointer type.
8952         * doc/invoke.texi (Optimize Options): Document that
8953         -fstrict-overflow applies to pointer wraparound.
8954
8955 2008-04-13  Jan Hubicka  <jh@suse.cz>
8956
8957         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8958
8959 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
8960
8961         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8962         we are going to "save the world".
8963
8964 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
8965
8966         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8967         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8968         operand 0 constraint, not "=".
8969
8970 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
8971
8972         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8973
8974 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8975
8976         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8977         of size of positions_needed * CHAR_BIT.
8978
8979 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8980
8981         PR middle-end/35897
8982         * dse.c (store_info): Change positions_needed to unsigned
8983         HOST_WIDE_INT.
8984         (lowpart_bitmask): New.
8985         (record_store): Cast to unsigned HOST_WIDE_INT for
8986         positions_needed.  Assert width <= size of positions_needed *
8987         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
8988         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
8989         lowpart_bitmask to set mask.
8990
8991 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8992
8993         * config/bfin/constraints.md: New file.
8994         * config/bfin/bfin.md: Include it.
8995         (adddi3): Use satisfies_constraint functions instead of the old macros.
8996         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8997         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8998         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8999         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
9000         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
9001         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
9002         EXTRA_CONSTRAINT): Delete.
9003         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
9004         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
9005         of the old macros.
9006         * config/bfin/bfin.c: Include "tm-constrs.h".
9007         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
9008         Use satisfies_constraint functions instead of the old macros.
9009         * doc/md.texi (Blackfin Constraints): Update file name reference.
9010
9011 2008-04-11  Richard Guenther  <rguenther@suse.de>
9012
9013         PR tree-optimization/35869
9014         * tree-vrp.c (execute_vrp): Move switch statement update after
9015         jump threading.  Schedule another cfg cleanup run.
9016
9017 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
9018
9019         PR c/35744
9020         * attribs.c (decl_attributes): Return early on errorneous node.
9021
9022 2008-04-10  Oleg Ryjkov  <olegr@google.com>
9023
9024         * tree.h (struct tree_base): Added a new flag default_def_flag.
9025         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
9026
9027 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
9028
9029         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
9030
9031 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9032
9033         PR target/35768
9034         * pa.md: Define mode iterator P.  Define mode attribute dwc.
9035         (dcacheflush): Update pattern to use iterator P and attribute dwc.
9036         (icacheflush): Likewise.
9037         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
9038         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
9039
9040 2008-04-11  Ben Elliston  <bje@au.ibm.com>
9041
9042         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
9043
9044 2008-04-10  Rafael Espindola  <espindola@google.com>
9045
9046         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
9047         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
9048         (extract_range_from_expr): The same.
9049
9050 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
9051
9052         * config/mips/mips.md (GPR2): New mode iterator.
9053         (seq): Add comment.
9054         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9055         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9056         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9057         Rewrite these to take two modes, the mode of comparison and the
9058         mode of the destination.
9059         * config/mips/mips.c (mips_expand_scc): Instead of having
9060         paradoxical subreg as destination, expand "narrowing" scc if mode
9061         of comparison is SI and target is requested in DI mode.
9062         (mips_emit_int_order_test): Update comment.  Make mode of
9063         comparison match CMP0 rather than TARGET.  When creating inverse
9064         target use mode of TARGET.
9065
9066 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
9067
9068         * gcov-dump.c (tag_summary): Only print summaries for the first
9069         GCOV_COUNTERS_SUMMABLE counters.
9070
9071 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
9072
9073         * config/i386/i386.md (absneg): New code iterator.
9074         (absnegprefix): New code attribute.
9075         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9076         patterns using absneg code iterator.
9077         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9078         using absneg code iterator.
9079         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9080         *neg<mode>2 patterns using absneg code iterator.
9081         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9082         *negextendsfdf2 patterns using absneg code iterator.
9083         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9084         *negextendsfxf2 patterns using absneg code iterator.
9085         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9086         *negextendsfdf2 patterns using absneg code iterator.
9087         * config/i386/sse.md (<code><mode>2): Macroize expander from
9088         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
9089
9090 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
9091
9092         * config/s390/s390.h: Remove the remains of the recent search
9093         & replace action of current_function_outgoing_args_size.
9094
9095 2008-04-10  Ira Rosen  <irar@il.ibm.com>
9096
9097         PR tree-optimization/35821
9098         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9099         NEW_STMT_LIST is not NULL.
9100
9101 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
9102
9103         PR libstdc++/35597
9104         * toplev.c (process_options): Remove -ffunction-sections debugging
9105         warning.
9106
9107 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
9108
9109         PR middle-end/PR28690
9110         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9111         than gen_rtx_fmt_ee to perform more canonicalizations.
9112
9113 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9114
9115         PR driver/35665
9116         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9117
9118 2008-04-09  Richard Guenther  <rguenther@suse.de>
9119
9120         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9121         (dump_function_to_file): Dump function arguments with types.
9122
9123 2008-04-08  Richard Guenther  <rguenther@suse.de>
9124
9125         * fold-const.c (fold_widened_comparison): Do not allow
9126         sign-changes that change the result.
9127
9128 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
9129
9130         PR target/35839
9131         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9132         kinds of indirect references.
9133
9134 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
9135
9136         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9137         GNU Fortran language string.
9138
9139 2008-04-08  Rafael Espindola  <espindola@google.com>
9140
9141         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9142         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9143         * tree.h (tree_call_nonnegative_warnv_p): New.
9144
9145 2008-04-08  Jan Hubicka  <jh@suse.cz>
9146
9147         * function.c (free_after_compilation): Clear out regno_reg_rtx
9148         pointer.
9149
9150 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
9151
9152         Revert
9153         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9154
9155         PR middle-end/PR28690
9156         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9157         same precedence as REG_POINTER and MEM_POINTER operands.
9158
9159 2008-04-08  Richard Guenther  <rguenther@suse.de>
9160
9161         PR middle-end/35834
9162         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9163         for adding index to base.
9164
9165 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
9166
9167         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9168         (MINGW_ENABLE_EXECUTE_STACK): New.
9169         (IN_LIBGCC2): For libgcc include windows.h file for
9170         function declarations.
9171
9172 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
9173
9174         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9175         and tem2 if tem1 is not a REG or MULT.
9176
9177 2008-04-08  Jan Hubicka  <jh@suse.cz>
9178
9179         * function.h (incomming_args): Break out of struct function.
9180         (function_subsections): Break out of struct function.
9181         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9182         return_rtx and hard_reg_initial_vals from struct function.
9183         Kill inl_max_label_num.
9184         (current_function_pops_args, current_function_args_info,
9185         current_function_args_size, current_function_args_size,
9186         current_function_pretend_args_size,
9187         current_function_outgoing_args_size,
9188         current_function_internal_arg_pointer, current_function_return_rtx):
9189         Kill compatibility accestor macros.
9190         * builtins.c (expand_builtin_apply_args_1): Update.
9191         (expand_builtin_next_arg): Update.
9192         * df-scan.c (df_get_call_refs): Update.
9193         * dbxout.c (dbxout_function_end): Update.
9194         * dwarf2out.c (dwarf2out_switch_text_section): Update.
9195         (output_line_info): Update.
9196         (secname_for_decl): Update.
9197         (dwarf2out_var_location): Update.
9198         * function.c (free_after_compilation): Update.
9199         (assign_parm_find_stack_rtl): Update.
9200         (assign_parms): Update.
9201         (expand_dummy_function_end): Update.
9202         (expand_function_end): Update.
9203         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
9204         (expand_call): Update.
9205         (emit_library_call_value_1): Update.
9206         (store_one_arg): Update.
9207         * varasm.c (initialize_cold_section_name): Update.
9208         (unlikely_text_section): Update.
9209         (unlikely_text_section_p): Update.
9210         (assemble_start_function): Update.
9211         (assemble_end_function): Update.
9212         (default_section_type_flags): Update.
9213         (switch_to_section): Update.
9214         * integrate.c (set_decl_abstract_flags): Update.
9215         (get_hard_reg_initial_val): Update.
9216         (has_hard_reg_initial_val): Update.
9217         (allocate_initial_values): Update.
9218         * resource.c (init_resource_info): Update.
9219         * config/alpha/alpha.c (NUM_ARGS): Update.
9220         (direct_return): Update.
9221         (alpha_va_start): Update.
9222         (alpha_sa_size): Update.
9223         (alpha_initial_elimination_offset): Update.
9224         (alpha_expand_prologue): Update.
9225         (alpha_start_function): Update.
9226         (alpha_expand_epilogue): Update.
9227         (unicosmk_initial_elimination_offset):
9228         * config/alpha/alpha.md (call expander): Update.
9229         * config/s390/s390.c (s390_register_info): Update.
9230         (s390_register_info): Update.
9231         (s390_frame_info): Update.
9232         (s390_initial_elimination_offset): Update.
9233         (s390_build_builtin_va_list): Update.
9234         (s390_va_start): Update.
9235         * config/spu/spu.c (direct_return): Update.
9236         (spu_expand_prologue): Update.
9237         (spu_initial_elimination_offset): Update.
9238         (spu_build_builtin_va_list): Update.
9239         (spu_va_start): Update.
9240         * config/sparc/sparc.c (sparc_init_modes): Update.
9241         (sparc_compute_frame_size): Update.
9242         (function_value): Update.
9243         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9244         * config/i386/i386.md (return expander): Update.
9245         * config/i386/i386.c (ix86_va_start): Update.
9246         (ix86_can_use_return_insn_p): Update.
9247         (ix86_compute_frame_layout): Update.
9248         (ix86_expand_epilogue): Update.
9249         * config/sh/sh.c (output_stack_adjust): Update.
9250         (calc_live_regs): Update.
9251         (sh_expand_prologue): Update.
9252         (sh_builtin_saveregs): Update.
9253         (sh_va_start): Update.
9254         (initial_elimination_offset): Update.
9255         (sh_allocate_initial_value): Update.
9256         (sh_function_ok_for_sibcall): Update.
9257         (sh_get_pr_initial_val): Update.
9258         * config/sh/sh.md (return expander): Update.
9259         * config/avr/avr.c (frame_pointer_required_p): UPdate.
9260         * config/crx/crx.c (crx_compute_frame): UPdate.
9261         (crx_initial_elimination_offset): UPdate.
9262         * config/xtensa/xtensa.c (compute_frame_size): Update
9263         (xtensa_builtin_saveregs): Update.
9264         (xtensa_va_start): Update.
9265         (order_regs_for_local_alloc): Update.
9266         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9267         (xstormy16_expand_builtin_va_start): Update.
9268         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9269         * config/m68hc11/m68hc11.md (return expanders): Update.
9270         * config/m68hc11/m68hc11.c (expand_prologue): Update.
9271         (expand_epilogue): Update.
9272         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9273         (cris_simple_epilogue): Update.
9274         (cris_expand_prologue): Update.
9275         (cris_expand_epilogue): Update.
9276         * config/iq2000/iq2000.c (iq2000_va_start): Update.
9277         (compute_frame_size): Update.
9278         * config/mt/mt.c (mt_compute_frame_size): Update.
9279         * config/mn10300/mn10300.c (expand_prologue): Update.
9280         (expand_epilogue): Update.
9281         (initial_offset): Update.
9282         (mn10300_builtin_saveregs):
9283         * config/mn10300/mn10300.md (return expander): Update.
9284         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9285         (ia64_initial_elimination_offset): Update.
9286         (ia64_initial_elimination_offset): Update.
9287         (ia64_expand_prologue): Update.
9288         * config/m68k/m68k.md (return expander): Update.
9289         * config/rs6000/rs6000.c (rs6000_va_start): Update.
9290         (rs6000_stack_info): Update.
9291         * config/mcore/mcore.c (layout_mcore_frame): Update.
9292         (mcore_expand_prolog): Update.
9293         * config/arc/arc.c (arc_compute_frame_size): Update.
9294         * config/score/score3.c (score3_compute_frame_size): Update.
9295         * config/score/score7.c (score7_compute_frame_size): Update.
9296         * config/arm/arm.c (use_return_insn): Update.
9297         (thumb_find_work_register): Update.
9298         (arm_compute_save_reg_mask): Update.
9299         (arm_output_function_prologue): Update.
9300         (arm_output_epilogue): Update.
9301         (arm_size_return_regs): Update.
9302         (arm_get_frame_offsets): Update.
9303         (arm_expand_prologue): Update.
9304         (thumb_exit): Update.
9305         (thumb_unexpanded_epilogue): Update.
9306         (thumb1_output_function_prologue): Update.
9307         * config/pa/pa.md (return expander): Update.
9308         * config/pa/pa.c (compute_frame_size): Update.
9309         (hppa_builtin_saveregs): Update.
9310         * config/mips/mips.c (mips_va_start): Update.
9311         (mips16_build_function_stub): Update.
9312         (mips_compute_frame_info): Update.
9313         (mips_restore_gp): Update.
9314         (mips_output_function_prologue): Update.
9315         (mips_expand_prologue): Update.
9316         * config/v850/v850.c (compute_frame_size): Update.
9317         (expand_prologue): * config/mmix/mmix.c (along): update.
9318         (mmix_initial_elimination_offset): update.
9319         (mmix_reorg): update.
9320         (mmix_use_simple_return): update.
9321         (mmix_expand_prologue): update.
9322         (mmix_expand_epilogue): Update.
9323         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9324         (emit_link_insn): Update.
9325
9326 2008-04-08  Anatoly Sokolov <aesok@post.ru>
9327
9328         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
9329         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
9330         instructions.
9331         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
9332         atmega103 device.
9333
9334 2008-04-07  Jan Hubicka  <jh@suse.cz>
9335
9336         * function.h (rtl): Rename to x_rtl.
9337         (crtl): New define.
9338         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9339         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9340         used_temp_slots avail_temp_slots, temp_slot_level,
9341         nonlocal_goto_handler_labels): Update accesstors.
9342         (rtl): New global variable.
9343         (struct function): Move some fileds to rtl_data.
9344         (get_arg_pointer_save_area): Update prototype.
9345         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9346         get_arg_pointer_save_area.
9347         * expr.c (init_expr): Update
9348         * function.c (get_frame_size): Update
9349         (assign_stack_local): Update
9350         (expand_function_end): Update.
9351         (get_art_pointer_save_area): Update
9352         * function.h 
9353         * emit-rtl.c (rtl): Declare.
9354         (regno_reg_rtx): Declare.
9355         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9356         Update.
9357         (gen_reg_rtx): Update.
9358         * varasm.c (n_deferred_constatns): Update accestor.
9359         (init_varasm_status): Do not allocate varasm_status.
9360         (force_const_mem, get_pool_size, output_constant_pool): Update.
9361         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9362         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9363         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9364         * sparc/sparc.h (INIT_EXPANDERS): Update.
9365         * ia64/ia64.h (INIT_EXPANDERS): Update.
9366
9367 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
9368
9369         * reload.c (push_secondary_reload): Add missing break to for loop.
9370
9371 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9372
9373         PR middle-end/PR28690
9374         * rtlanal.c: Update copyright years.
9375         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9376         as REG_POINTER and MEM_POINTER operands.
9377         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9378         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9379         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9380         * gcse.c: Update copyright years.
9381         (pre_delete): Call gen_reg_rtx_and_attrs.
9382         (hoist_code): Likewise.
9383         (build_store_vectors): Likewise.
9384         (delete_store): Likewise.
9385         * loop-invariant.c (move_invariant_reg): Likewise.
9386         Update copyright years.
9387
9388 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
9389
9390         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9391         control string instead of quoted.
9392
9393 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9394
9395         * doc/rtl.texi: Rewrite of subreg section.
9396
9397 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
9398
9399         PR/35842
9400         * config/i386/i386.c (legitimize_pic_address): Add treating
9401         of dllimport SYM_REF's.
9402         (legitimize_dllimport_symbol): Add prototype.
9403
9404 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9405
9406         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
9407         reference in constructor with non self-referential type.
9408
9409 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9410
9411         Removal of Return with Depressed Stack Pointer support
9412         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9413         (ECF_SP_DEPRESSED): Likewise.
9414         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9415         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9416         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9417         (expand_call): Do not test ECF_SP_DEPRESSED.
9418         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9419         * function.c (keep_stack_depressed): Delete.
9420         (handle_epilogue_set): Likewise.
9421         (update_epilogue_consts): Likewise.
9422         (emit_equiv_load): Likewise.
9423         (thread_prologue_and_epilogue_insns): Remove support for Return with
9424         Depressed Stack Pointer.
9425         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9426
9427 2008-04-06  Richard Guenther  <rguenther@suse.de>
9428
9429         PR tree-optimization/35400
9430         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9431         information from SSA_NAMEs.
9432
9433 2008-04-06  Anatoly Sokolov <aesok@post.ru>
9434
9435         * config/avr/avr.h (avr_mega_p): Remove declaration.
9436         (AVR_MEGA): Remove macro.
9437         * config/avr/avr.c (avr_mega_p): Remove variable.
9438         (avr_override_options): Remove inicializion of avr_mega_p.
9439         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9440         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9441         (avr_jump_mode): (Ditto.).
9442         (avr_output_progmem_section_asm_op): (Ditto.).
9443         (avr_asm_init_sections): (Ditto.).
9444         (avr_asm_init_sections): (Ditto.).
9445         (avr_rtx_costs): (Ditto.).
9446         * config/avr/avr.md: (Ditto.).
9447         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
9448         '__AVR_MEGA__'.
9449
9450 2008-04-06  Richard Guenther  <rguenther@suse.de>
9451
9452         PR tree-optimization/35842
9453         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9454         is_gimple_invariant_address.
9455
9456 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9457
9458         * gcc.c (default_compilers): Sync Fortran extensions list with
9459         that in fortran/lang-specs.h.
9460         * doc/invoke.texi: Likewise.
9461         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9462         * dwarf2out.c (gen_compile_unit_die): Likewise.
9463
9464 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
9465
9466         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9467
9468 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
9469
9470         PR target/12329
9471         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9472         attribute is used for nested functions.
9473
9474 2008-04-05  Jan Hubicka  <jh@suse.cz>
9475
9476         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9477
9478         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9479         letter argument.
9480         (dump_files): Update.
9481         (enable_rtl_dump_file): Do not accept letter argument.
9482         * tree-pass.h (dump_file_info): Remove letter argument.
9483         * toplev.c (decode_d_option): Update -da handling.
9484         * toplev.h (enable_rtl_dump_file): Update prototype.
9485         * passes.c (register_one_dump_file): Do not accept IPA argument; work
9486         it out based on pass type.
9487         (register_dump_files_1): Likewise.
9488         (init_optimization_passes): Update register_one_dump_file calls.
9489         (execute_one_pass): Sanity check that IPA passes are called at IPA
9490         level and RTL passes at RTL level.
9491         (execute_pass_list): IPA pass can not be after or subpass of
9492         GIMPLE/RTL pass.
9493         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9494         disallov RTL subpasses of IPA subpasses.
9495
9496 2008-04-05  Ben Elliston  <bje@au.ibm.com>
9497
9498         * tree-cfg.c (need_fake_edge_p): Return false for calls to
9499         builtins that return exactly once and do not throw. Cache call to
9500         call_expr_flags.
9501
9502 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9503
9504         PR rtl-optimization/34916
9505         PR middle-end/35519
9506         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9507         between instruction pairs.
9508
9509 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
9510
9511         * doc/invoke.texi: Document -mbitops for SH.
9512         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9513         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9514         * config/sh/sh.c (print_operand): Add %t operand code.
9515         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9516         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9517         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9518         (extendqihi2): Likewise.
9519         (movqi_i): Likewise.
9520         (insv): Use bset, bclr and bst instructions for SH2A if possible.
9521         (extv): Use bld instruction for SH2A if possible.
9522         (extzv): Likewise.
9523         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9524         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9525         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9526         (bset.b, bclr.b): Define peepholes.
9527         * config/sh/sh.opt (mbitops): New option.
9528
9529 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
9530
9531         PR target/35620
9532         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9533         and view convert expression.
9534
9535 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9536
9537         PR target/35364
9538         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9539
9540 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
9541
9542         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9543
9544         * config/i386/cpuid.h (bit_AES): New.
9545         (bit_PCLMUL): Likewise.
9546
9547         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9548         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
9549         SSE2 if AES or PCLMUL is enabled.
9550         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9551         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9552         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9553         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9554         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9555         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9556         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9557         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9558         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9559         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9560         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9561         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9562         __builtin_ia32_aeskeygenassist128 and
9563         __builtin_ia32_pclmulqdq128.
9564         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9565         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9566         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
9567
9568         * config/i386/i386.h (TARGET_AES): New.
9569         (TARGET_PCLMUL): Likewise.
9570         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9571
9572         * config/i386/i386.md (UNSPEC_AESENC): New.
9573         (UNSPEC_AESENCLAST): Likewise.
9574         (UNSPEC_AESDEC): Likewise.
9575         (UNSPEC_AESDECLAST): Likewise.
9576         (UNSPEC_AESIMC): Likewise.
9577         (UNSPEC_AESKEYGENASSIST): Likewise.
9578         (UNSPEC_PCLMUL): Likewise.
9579
9580         * config/i386/i386.opt (maes): New.
9581         (mpclmul): Likewise.
9582
9583         * config/i386/sse.md (aesenc): New pattern.
9584         (aesenclast): Likewise.
9585         (aesdec): Likewise.
9586         (aesdeclast): Likewise.
9587         (aesimc): Likewise.
9588         (aeskeygenassist): Likewise.
9589         (pclmulqdq): Likewise.
9590
9591         * config/i386/wmmintrin.h: New.
9592
9593         * doc/extend.texi: Document AES and PCLMUL built-in function.
9594
9595         * doc/invoke.texi: Document -maes and -mpclmul.
9596
9597 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
9598
9599         * function.c (free_after_parsing): Replace with
9600         cxx_push_function_context from C++ front-end.
9601         (allocate_struct_function): Don't call langhook.
9602         * langhooks.h (struct lang_hooks_for_functions): Delete.
9603         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9604         member "function".
9605         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9606         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9607         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9608         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9609         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9610         remove LANG_HOOKS_FUNCTION_INITIALIZER.
9611         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9612
9613         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9614         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9615         
9616 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9617
9618         PR c/35440
9619         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9620         for all types.
9621
9622 2008-04-04  Richard Guenther  <rguenther@suse.de>
9623
9624         PR middle-end/35823
9625         * fold-const.c (optimize_minmax_comparison): Use the correct
9626         type for the constant in the simplified comparison.
9627
9628 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
9629
9630         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9631         Pass L2 size as "--param l2-cache-size" to the compiler.
9632         (decode_l2_cache): New function to decode L2 cache parameters using
9633         0x8000006 extended cpuid function.
9634         (detect_caches_amd): Determine parameters of L2 cache using
9635         decode_l2_caches function.
9636         (decode_caches_intel): Decode L2 cache parameters.
9637         (detect_caches_intel): Determine L2 cache parameters using
9638         decode_caches_intel and decode_l2_caches functions.
9639
9640 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
9641
9642         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9643         secondary input reload for subword loads from the constant pool.
9644
9645 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
9646
9647         PR target/35713
9648         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9649           constants of the appropriate size for runtime calculations.
9650
9651         PR c/35712
9652         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9653           decimal-float literal constant zero.
9654
9655 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
9656
9657         PR c/35738
9658         * c-parser.c (c_parser_omp_atomic): Call
9659         default_function_array_conversion on the RHS.
9660
9661         PR middle-end/35818
9662         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9663         call is_variable_sized if decl has incomplete type.
9664
9665 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
9666
9667         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9668
9669 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
9670
9671         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9672         iterators.
9673         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9674         (sgt<u>): Merge sgt and sgtu into new expander.
9675         (sgt, sgtu): Remove expanders.
9676         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9677         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9678         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9679         *sgtu_<mode>_mips16 into new pattern.
9680         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9681         (sge<u>): Merge sge and sgeu into new expander.
9682         (sge, sgeu): Remove expanders.
9683         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9684         new pattern.
9685         (*sge_<mode>, second *sge_<mode>): Remove patterns.
9686         (slt<u>): Merge slt and sltu into new expander.
9687         (slt, sltu): Remove expanders.
9688         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9689         (*slt_<mode>, *sltu_<mode>): Remove patterns.
9690         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9691         *sltu_<mode>_mips16 into new pattern.
9692         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9693         (sle<u>): Merge sle and sleu into new expander.
9694         (sle, sleu): Remove expanders.
9695         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9696         (*sle_<mode>, *sleu_<mode>): Remove patterns.
9697         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9698         *sleu_<mode>_mips16 into new pattern.
9699         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9700
9701 2008-04-03  Jan Hubicka  <jh@suse.cz>
9702
9703         PR tree-optimization/35795
9704         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9705         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9706         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9707         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9708         * score/score3.c (score3_output_mi_thunk): Likewise.
9709         * score/score7.c (score7_output_mi_thunk): Likewise.
9710         * mips/mips.c (mips_output_mi_thunk): Likewise.
9711
9712 2008-04-03  Richard Guenther  <rguenther@suse.de>
9713
9714         * tree-vrp.c (extract_range_from_unary_expr): Handle all
9715         conversions.  Simplify code.
9716
9717 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9718
9719         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9720
9721 2008-04-03  Tom Tromey  <tromey@redhat.com>
9722             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9723
9724         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9725         * config/bfin/t-bfin-linux (generated_files): Add
9726         linux-sysroot-suffix.h.
9727         * doc/install.texi (Prerequisites): Require make 3.80.
9728         * doc/sourcebuild.texi (Front End Directory): Document new
9729         variable.
9730         * Makefile.in (generated_files): New variable.
9731         (ALL_HOST_OBJS): New variable.
9732         ($(ALL_HOST_OBJS)): New target.
9733
9734 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9735
9736         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9737         (remap_block): Call id->transform_lang_insert_block instead
9738         of langhook.
9739         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9740         Set id.transform_lang_insert_block to NULL.
9741         (clone_body): Move to cp/optimize.c
9742         * tree-inline.h (struct copy_body_data): Change
9743         transform_lang_insert_block to function pointer.
9744         (copy_generic_body, copy_decl_no_change): Export.
9745         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9746         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9747         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9748
9749         * c-tree.h (insert_block): Kill.
9750         * c-decl.c (insert_block): Kill.
9751
9752 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9753
9754         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9755         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9756         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9757         argument.
9758         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9759         argument, call {push,pop}_function_context from here.
9760         * c-parser.c: Use c_{push,pop}_function_context.
9761
9762         * function.c (push_function_context_to): Move meat ...
9763         (push_function_context): ... here.  Simplify.
9764         * function.c (pop_function_context_from): Move meat ...
9765         (pop_function_context): ... here.  Simplify.
9766         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9767         leave_nested).
9768         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9769         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9770         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9771         * tree.h (push_function_context_to, pop_function_context_from): Remove.
9772
9773 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9774
9775         * expmed.c (extract_force_align_mem_bit_field): Remove.
9776
9777 2008-04-03  Richard Guenther  <rguenther@suse.de>
9778
9779         PR middle-end/35800
9780         * expr.h (try_casesi): Adjust prototype.
9781         * expr.c (try_casesi): Take fallback label as extra parameter.
9782         Use that for gen_casesi if default_label is NULL.
9783         * stmt.c (expand_case): Pass fallback label to try_casesi,
9784         make sure to fill gaps with a fallback label if default_label
9785         is not present.
9786
9787 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
9788
9789         PR target/35801
9790         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9791
9792 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9793
9794         * expmed.c (extract_split_bit_field): Remove if (0) code.
9795         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9796         (do_ds_constraint): Likewise.
9797
9798 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
9799
9800         * doc/cppopts.texi (-dU): Document.
9801         * c-common.h (flag_dump_macros): Update comment.
9802         * c-opts.c (handle_OPT_d): Handle -dU.
9803         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9804         dump_queued_macros, cb_used_define, cb_used_undef): New.
9805         (init_pp_output): Handle -dU.
9806         (cb_line_change): Call dump_queued_macros.
9807         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9808
9809 2008-04-02  Anatoly Sokolov <aesok@post.ru>
9810
9811         * config/avr/predicates.md (io_address_operand): New predicate. 
9812         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9813         * config/avr/avr.c (avr_io_address_p): Remove function.
9814         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
9815         'avr_io_address_p' function.
9816         (out_movhi_r_mr): (Ditto.).
9817         (out_movqi_mr_r): (Ditto.).
9818         (out_movhi_mr_r): (Ditto.).
9819         (avr_address_cost): (Ditto.).
9820
9821 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
9822
9823         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9824         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9825         in 32bit mode when XMM registers are available to avoid store
9826         forwarding stalls.
9827         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9828         corresponding post-reload splitters.
9829
9830 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9831
9832         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9833         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
9834         __builtin_ia32_roundss.
9835         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9836         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9837         __builtin_ia32_roundss.
9838         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9839         IX86_BUILTIN_SHUFPD here.
9840
9841 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9842
9843         * config/i386/i386.md (plogic): New.
9844         (plogicprefix): Likewise.
9845
9846         * config/i386/mmx.md (mmx_<code><mode>3): New.
9847         (mmx_and<mode>3): Removed.
9848         (mmx_ior<mode>3): Likewise.
9849         (mmx_xor<mode>3): Likewise.
9850
9851         * config/i386/sse.md (<code><mode>3): New.
9852         (*<code><mode>3): Likewise.
9853         (*<code><mode>3): Likewise.
9854         (<code><mode>3): Likewise.
9855         (*sse_<code><mode>3): Likewise.
9856         (*sse2_<code><mode>3): Likewise.
9857         (<code>tf3): Likewise.
9858         (*<code>tf3): Likewise.
9859         (and<mode>3): Likewise.
9860         (*and<mode>3): Likewise.
9861         (ior<mode>3): Removed.
9862         (*ior<mode>3): Likewise.
9863         (xor<mode>3): Likewise.
9864         (*xor<mode>3): Likewise.
9865         (*and<mode>3): Likewise.
9866         (*ior<mode>3): Likewise.
9867         (*xor<mode>3): Likewise.
9868         (and<mode>3): Likewise.
9869         (*sse_and<mode>3): Likewise.
9870         (*sse2_and<mode>3): Likewise.
9871         (andtf3): Likewise.
9872         (*andtf3): Likewise.
9873         (ior<mode>3): Likewise.
9874         (*sse_ior<mode>3): Likewise.
9875         (*sse2_ior<mode>3): Likewise.
9876         (iortf3): Likewise.
9877         (*iortf3): Likewise.
9878         (xor<mode>3): Likewise.
9879         (*sse_xor<mode>3): Likewise.
9880         (*sse2_xor<mode>3): Likewise.
9881         (xortf3): Likewise.
9882         (*xortf3): Likewise.
9883
9884 2008-04-02  Richard Guenther  <rguenther@suse.de>
9885
9886         PR tree-optimization/14495
9887         PR tree-optimization/34793
9888         * tree-vrp.c (struct switch_update): New structure.
9889         (to_remove_edges, to_update_switch_stmts): New VECs.
9890         (simplify_switch_using_ranges): New function.  Remove not taken
9891         case labels and edges.
9892         (simplify_stmt_using_ranges): Call it.
9893         (identify_jump_threads): Mark edges we have queued for removal
9894         so we don't thread them.
9895         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9896         case label vector.
9897         * tree-cfg.c (group_case_labels): Deal with missing default label.
9898         (tree_verify_flow_info): Allow missing default label.
9899         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9900         (emit_case_nodes): Likewise.
9901         (expand_case): Do not rely on the default label to be present.
9902         * expr.c (try_casesi): Deal with NULL default_label.
9903         (do_tablejump): Likewise.
9904
9905 2008-04-02  Richard Guenther  <rguenther@suse.de>
9906
9907         PR tree-optimization/14495
9908         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9909         SWITCH_EXPR here ...
9910         (vrp_visit_switch_stmt): ... but here (new function).
9911         (find_case_label_index): New helper function.
9912         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9913
9914 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9915
9916         * fwprop.c: Fix ISO-C99ism.
9917
9918 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9919
9920         PR bootstrap/35752
9921         * Makefile.in (objdir): Set it here.
9922         * configure.ac: Not here.  Find dynamic linker characteristics.
9923         * exec-tool.in: Use them.
9924         * aclocal.m4: Regenerate.
9925         * configure: Regenerate.
9926
9927 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9928
9929         * expr.c (expand_var): Delete it.
9930         * expr.h (expand_var): Delete prototype.
9931         * function.c (expand_function_start): Use expand_decl instead.
9932         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9933         langhook.
9934
9935 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
9936
9937         PR rtl-optimization/35542
9938         * fwprop.c (forward_propagate_and_simplify): Replace
9939         loc_reg_mentioned_in_p with reg_mentioned_p.
9940
9941 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9942
9943         PR rtl-optimization/35281
9944         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9945         (propagate_rtx_1): Handle PR_HANDLE_MEM.
9946         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9947         (varying_mem_p): Move above propagate_rtx.
9948         (all_uses_available_at): Do not check MEMs.
9949
9950 2008-04-02  Rafael Espindola  <espindola@google.com>
9951
9952         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9953         (register_edge_assert_for_2): Split the cond argument.
9954         (register_edge_assert_for_1): Adjust for the change in
9955         register_edge_assert_for_2.
9956         (register_edge_assert_for): Split the cond argument.
9957         (find_switch_asserts): Adjust for the change in
9958         register_edge_assert_for.
9959
9960 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
9961
9962         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9963         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9964         offsets for 64-bit mingw.
9965         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9966         abi for x86_64-pc-mingw.
9967
9968 2008-04-02  Richard Guenther  <rguenther@suse.de>
9969
9970         * tree-vrp.c (extract_range_from_assert): Make sure to not
9971         produce range min/max with TREE_OVERFOW set.
9972         If merging a anti-range and a range keep the anti-range if
9973         the range covers all values of the type.
9974         (register_edge_assert_for_2): Only allow sign-changing
9975         conversions in detecting canonical range checks.  Also
9976         register an assert for the unsigned name if useful.
9977
9978         PR tree-optimization/35787
9979         * tree-vrp.c (vrp_val_max): New function.
9980         (vrp_val_min): Likewise.
9981         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9982         (vrp_val_is_min): Likewise.
9983         (supports_overflow_infinity): Use vrp_val_{min,max}.
9984         (negative_overflow_infinity): Likewise.
9985         (positive_overflow_infinity): Likewise.
9986         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9987         (is_positive_overflow_infinity): Likewise.
9988         (is_overflow_infinity): Likewise.
9989         (avoid_overflow_infinity): Use vrp_val_{min,max} and
9990         vrp_val_is_{min,max}.
9991         (set_and_canonicalize_value_range): Canonicalize anti-ranges
9992         to ranges if possible.  Avoid empty ranges.
9993
9994 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9995
9996         PR middle-end/35705
9997         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9998         the expression is a function address.
9999
10000 2008-04-01  George Helffrich  <george@gcc.gnu.org>
10001
10002         PR fortran/35154, fortran/23057
10003         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
10004         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
10005         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
10006         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
10007         in common.
10008         (dbxout_syms): Check for COMMON-based symbol and wrap in
10009         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
10010         in bracket for efficiency.
10011
10012         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
10013         using DW_TAG_common_block + member offset.
10014         (add_pubname_string): New function.
10015         (dw_expand_expr): New function to find block name and offset for
10016         COMMON var.
10017         (common_check): New function to check whether symbol in Fortran COMMON.
10018         (gen_variable_die): If COMMON, use DW_TAG_common_block.
10019
10020 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
10021
10022         PR c/35436
10023         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
10024
10025 2008-04-02  Ben Elliston  <bje@au.ibm.com>
10026
10027         * config/v850/v850.md (casesi): Remove if (0) code.
10028         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10029         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10030
10031 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
10032
10033         * config/i386/i386.md (rex64suffix): New mode attribute.
10034         (floathi<mode>2): Disable expander for SSE math.
10035         (*floathi<mode>2_1): New insn insn_and_split pattern.
10036         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
10037         corresponding post-reload splitters.
10038         (*floathi<mode>2_i387): New macroized insn pattern.
10039         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
10040         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
10041         insn_and_split pattern.
10042         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
10043         New macroized instruction patterns and corresponding post-reload
10044         splitters.
10045         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
10046         and corresponding post-reload splitters.
10047         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
10048         New macroized instruction patterns.
10049         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
10050         macroized instruction patterns and corresponding post-reload splitters.
10051         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
10052         corresponding post-reload splitters.
10053         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
10054         New macroized instruction patterns.
10055         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10056         corresponding post-reload splitters.
10057         (*floatsi<mode>2_i387): New macroized instruction patterns.
10058
10059 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
10060
10061         * config/i386/i386.md (smaxmin): New.
10062         (umaxmin): Likewise.
10063         (maxminiprefix): Likewise.
10064         (maxminfprefix): Likewise.
10065         (<code><mode>3): Likewise.
10066         (smin<mode>3): Removed.
10067         (smax<mode>3): Likewise.
10068
10069         * config/i386/mmx.md (mmx_<code>v2sf3): New.
10070         (mmx_<code>v4hi3): Likewise.
10071         (mmx_<code>v8qi3): Likewise.
10072         (mmx_smaxv2sf3): Removed.
10073         (mmx_sminv2sf3): Likewise.
10074         (mmx_umaxv8qi3): Likewise.
10075         (mmx_smaxv4hi3): Likewise.
10076         (mmx_uminv8qi3): Likewise.
10077         (mmx_sminv4hi3): Likewise.
10078
10079         * config/i386/sse.md (<addsub><mode>3): New.
10080         (*<addsub><mode>3): Likewise.
10081         (<sse>_vm<addsub><mode>3): Likewise.
10082         (<maxmin><mode>3): Likewise.
10083         (*<maxmin><mode>3_finite): Likewise.
10084         (*<maxmin><mode>3): Likewise.
10085         (<sse>_vm<maxmin><mode>3): Likewise.
10086         (sse3_h<addsub>v4sf3): Likewise.
10087         (sse3_h<addsub>v2df3): Likewise.
10088         (<maxmin>v16qi3): Likewise.
10089         (*<maxmin>v16qi3): Likewise.
10090         (<maxmin>v8hi3): Likewise.
10091         (*<maxmin>v8hi3): Likewise.
10092         (*sse4_1_<maxmin><mode>3): Likewise.
10093         (*sse4_1_<maxmin><mode>3): Likewise.
10094         (add<mode>3): Removed.
10095         (*add<mode>3): Likewise.
10096         (<sse>_vmadd<mode>3): Likewise.
10097         (sub<mode>3): Likewise.
10098         (*sub<mode>3): Likewise.
10099         (<sse>_vmsub<mode>3): Likewise.
10100         (smin<mode>3): Likewise.
10101         (*smin<mode>3_finite): Likewise.
10102         (*smin<mode>3): Likewise.
10103         (<sse>_vmsmin<mode>3): Likewise.
10104         (smax<mode>3): Likewise.
10105         (*smax<mode>3_finite): Likewise.
10106         (*smax<mode>3): Likewise.
10107         (<sse>_vmsmax<mode>3): Likewise.
10108         (sse3_haddv4sf3): Likewise.
10109         (sse3_haddv2df3): Likewise.
10110         (sse3_hsubv4sf3): Likewise.
10111         (sse3_hsubv2df3): Likewise.
10112         (umaxv16qi3): Likewise.
10113         (*umaxv16qi3): Likewise.
10114         (smaxv8hi3): Likewise.
10115         (*smaxv8hi3): Likewise.
10116         (*sse4_1_smax<mode>3): Likewise.
10117         (*sse4_1_umax<mode>3): Likewise.
10118         (uminv16qi3): Likewise.
10119         (*uminv16qi3): Likewise.
10120         (sminv8hi3): Likewise.
10121         (*sminv8hi3): Likewise.
10122         (*sse4_1_smin<mode>3): Likewise.
10123         (*sse4_1_umin<mode>3): Likewise.
10124
10125 2008-04-01  Rafael Espindola  <espindola@google.com>
10126
10127         * tree-cfg.c (verify_expr): remove in_phi.
10128         (verify_stmt): Don't call walk_tree with verify_expr. Use
10129         is_gimple_min_invariant instead of is_gimple_val.
10130
10131 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
10132
10133         * doc/include/gpl_v3.texi: Update for manpage generation.
10134         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10135         gpl.texi.
10136         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10137         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10138         gpl_v3.texi instead of gpl.texi.
10139         (gpl.pod): New.
10140
10141 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
10142
10143         PR pch/13675
10144         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10145
10146 2008-04-01  Rafael Espindola  <espindola@google.com>
10147
10148         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10149         (extract_code_and_val_from_cond): Use
10150         extract_code_and_val_from_cond_with_ops.
10151
10152 2008-04-01  Jan Hubicka  <jh@suse.cz>
10153
10154         * function.c (free_after_compilation): Free epilogue_delay_list.
10155         (prepare_function_start): Assert that previous compilation was freed.
10156
10157 2008-04-01  Jan Hubicka  <jh@suse.cz>
10158             Jim Wilson  <wilson@tuliptree.org>
10159             Andreas Tobler <andreast@gcc.gnu.org>
10160
10161         PR middle-end/35781
10162         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10163         rtl.emit instead cfun->emit.
10164         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10165         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10166
10167 2008-04-01  Ben Elliston  <bje@au.ibm.com>
10168
10169         * doc/c-tree.texi (Function Basics): Fix grammatical error.
10170
10171 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
10172
10173         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10174         New options
10175         (fprofile-use): Add var flag_profile_use
10176         * coverage.c (coverage_begin_output): Do not open a gcno file for
10177         output only if -ftest-coverage is set.
10178         Do not add getpwd() to gcda file path.
10179         (build_gcov_info): Check the new flag
10180         flag_profile_datafile_relative_path.
10181         (coverage_init): Use profile_data_prefix.
10182         Read profile counter only if flag_profile_use is set.
10183         * opts.c (common_handle_option): New option fprofile-use=,
10184         fprofile-dir=, fprofile-generate=.
10185         * toplev.c (profile_data_prefix): New variable definition.
10186         * toplev.h (profile_data_prefix): New declaration.
10187         * doc/invoke.tex (Option Summary, Optimization Options):
10188         Add new options.
10189
10190 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
10191
10192         * varasm.c (output_constant_pool_1): In LABEL_REF check,
10193         use tmp consistently.
10194
10195         PR target/35695
10196         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
10197         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10198         UNSPEC_FR_RECIP_APPROX_RES.
10199         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
10200
10201 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
10202
10203         PR c/35750
10204         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
10205
10206 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10207
10208         PR middle-end/30186
10209         * fold-const.c (fold_indirect_ref_1): Support accessing non first
10210         element of the vector via a pointer.
10211
10212 2008-03-31  Ian Lance Taylor  <iant@google.com>
10213
10214         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
10215
10216 2008-03-31  Jan Hubicka  <jh@suse.cz>
10217
10218         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10219         get_arg_pointer_save_area.
10220         * expr.c (init_expr): Just clear out rtl.expr.
10221         * function.c (free_after_compilation): Clear out whole RTL structure.
10222         (get_func_frame_size): Merge into ...
10223         (get_frame_size): ... this one.
10224         (assign_stack_local_1): Merge into ...
10225         (assign_stack_local): ... this one.
10226         (expand_function_end): Update call of get_arg_pointer_save_area.
10227         (get_art_pointer_save_area): Remove cfun argument.
10228         * function.h (emit_status): regno_pointer_align does not need length
10229         attribute. Move x_regno_reg_rtx to ...
10230         (regno_reg_rtx): ... new global array.
10231         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10232         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10233         apply_args_value, forced_labels, stack_pointer_delta):
10234         Update accestors.
10235         (struct varasm_status): Move here from varasm.c
10236         (struct rtl_data): New. Move here some fields from struct function.
10237         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10238         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10239         used_temp_slots avail_temp_slots, temp_slot_level,
10240         nonlocal_goto_handler_labels): Update accesstors.
10241         (rtl): New global variable.
10242         (struct function): Move some fileds to rtl_data.
10243         (get_arg_pointer_save_area): Update prototype.
10244         * emit-rtl.c (rtl): Declare.
10245         (regno_reg_rtx): Declare.
10246         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10247         Update.
10248         (gen_reg_rtx): Update.
10249         (init_virtual_regs): Do not tate emit_status argument.
10250         (init_emit): Do not allocate emit.
10251         * varasm.c (varasm_statuc): Move to function.h.
10252         (n_deferred_constatns): Update accestor.
10253         (init_varasm_status): Do not allocate varasm_status.
10254         (force_const_mem, get_pool_size, output_constant_pool): Update.
10255         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10256         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10257
10258 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
10259
10260         PR rtl-optimization/35729
10261         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10262         references.
10263
10264 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10265
10266         PR target/32000
10267         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10268         load/store if memory is unaligned.
10269         (*movti_rex64): Likewise.
10270
10271         * config/i386/predicates.md (misaligned_operand): New.
10272
10273 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
10274
10275         PR tree-opt/35431
10276         * tree-ssa-phiopt.c (conditional_replacement): Return early for
10277         complex types.
10278
10279 2008-03-31  Jan Beulich  <jbeulich@novell.com>
10280
10281         * config/ia64/constraints.md: Add 'j' constraint.
10282         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10283         (movdi_internal): Likewise.
10284
10285 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
10286
10287         PR c/35748
10288         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10289
10290 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10291
10292         PR target/35757
10293         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10294         proper error message for the third argument on blendpd and
10295         blendps.
10296
10297         * config/i386/sse.md (blendbits): New.
10298         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10299
10300 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10301
10302         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10303
10304 2008-03-30  Richard Guenther  <rguenther@suse.de>
10305
10306         PR middle-end/31023
10307         * fold-const.c (fold_sign_changed_comparison): Do leave
10308         conversions to base-types alone.
10309
10310 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10311
10312         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10313         the link register if one altivec register is be saved.
10314
10315 2008-03-30  Ben Elliston  <bje@au.ibm.com>
10316
10317         * final.c (final_scan_insn): Remove if (0) code.
10318
10319 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
10320
10321         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10322
10323 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10324
10325         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10326         of V4SFmode to ix86_binary_operator_ok.
10327
10328 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
10329
10330         * config/i386/i386.c (override_options): Initialize
10331         ix86_veclib_handler to ix86_veclibabi_svml when
10332         -mveclibabi=svml is used.
10333         (ix86_veclibabi_svml): New function for SVML ABI style
10334         vectorization support.
10335         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10336
10337 2008-03-28  Rafael Espindola  <espindola@google.com>
10338
10339         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10340         (tree_binary_nonnegative_warnv_p): Make it public.
10341         (tree_single_nonnegative_warnv_p): Make it public.
10342         (tree_invalid_nonnegative_warnv_p): Make it public.
10343         (tree_unary_nonzero_warnv_p): Make it public.
10344         (tree_binary_nonzero_warnv_p): Make it public
10345         (tree_single_nonzero_warnv_p): Make it public.
10346         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10347         (extract_range_from_binary_expr): Split the expr argument.
10348         (extract_range_from_unary_expr): Split the expr argument.
10349         (extract_range_from_comparison): Split the expr argument.
10350         (extract_range_from_expr): Use the new aux functions.
10351         (vrp_evaluate_conditional_warnv): Use
10352         vrp_evaluate_conditional_warnv_with_ops.
10353         * tree.h (tree_unary_nonzero_warnv_p): Declare.
10354         (tree_binary_nonzero_warnv_p): Declare.
10355         (tree_single_nonzero_warnv_p): Declare.
10356         (tree_expr_nonzero_warnv_p): Declare.
10357         (tree_unary_nonnegative_warnv_p): Declare.
10358         (tree_binary_nonnegative_warnv_p): Declare.
10359         (tree_single_nonnegative_warnv_p): Declare.
10360         (tree_invalid_nonnegative_warnv_p): Declare.
10361
10362 2008-03-28  Richard Guenther  <rguenther@suse.de>
10363
10364         PR tree-optimization/30317
10365         PR tree-optimization/30911
10366         PR tree-optimization/34793
10367         * tree-vrp.c (set_and_canonicalize_value_range): New function.
10368         (struct assert_locus_d): New member EXPR.
10369         (register_new_assert_for): Add EXPR parameter to support
10370         ASSERT_EXPR <name, expr OP limit>.
10371         (register_edge_assert_for_1): Adjust callers.
10372         (find_assert_locations): Likewise.
10373         (process_assert_insertions_for): Build condition from expression.
10374         (extract_range_from_assert): Handle ASSERT_EXPRs
10375         of the form ASSERT_EXPR <name, expr OP limit>.
10376         (register_edge_assert_for_2): New helper registering
10377         asserts for comparisons.  Recognize range tests of the form
10378         (unsigned)i - CST1 OP CST2.
10379         (register_edge_assert_for_1): Use it.
10380         (register_edge_assert_for): Likewise.
10381         (needs_overflow_infinity): Integer sub-types
10382         do not need overflow infinities.
10383         (vrp_val_is_max): The extreme values of integer sub-types
10384         are those of the base type.
10385         (vrp_val_is_min): Likewise.
10386         * tree.def (ASSERT_EXPR): Document extra allowed conditional
10387         expressions.
10388
10389 2008-03-28  Nick Clifton  <nickc@redhat.com>
10390
10391         PR target/31110
10392         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10393         Return GENERAL_REGS for stack adjustment reloads.
10394
10395 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10396
10397         PR target/31334
10398         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10399         const_vector when all the vectors are constant.
10400
10401 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
10402
10403         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10404         comparisons.
10405         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10406         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10407         (scc_sf): New.
10408         (s<code>_sf): Use new scc_sf attribute for opcode names.
10409
10410 2008-03-27  Tom Tromey  <tromey@redhat.com>
10411
10412         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10413         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10414         config/spu/t-spu-elf, config/i386/t-interix,
10415         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10416         config/i386/x-darwin, config/i386/x-mingw32,
10417         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10418         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10419         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10420         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10421         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10422         config/rs6000/x-darwin, config/rs6000/t-rs6000,
10423         config/score/t-score-elf, config/arm/t-strongarm-pe,
10424         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10425         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10426         Revert automatic dependency patch.
10427
10428 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10429
10430         PR target/35657
10431         * config/i386/i386.c (ix86_function_arg_boundary): Align
10432         decimal floating point to its natural boundary.
10433
10434 2008-03-27  Richard Guenther  <rguenther@suse.de>
10435
10436         PR middle-end/35716
10437         * fold-const.c (fold_comparison): Restrict distinct decl
10438         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
10439         solely rely on operand_equal_p.
10440
10441 2008-03-27  Richard Guenther  <rguenther@suse.de>
10442
10443         PR c/32511
10444         * c-common.c (handle_weak_attribute): Reject combination of
10445         weak and inline.
10446
10447 2008-03-27  Richard Guenther  <rguenther@suse.de>
10448
10449         PR tree-optimization/32810
10450         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10451         conversions from DECL_INITIAL.
10452         (fold_const_aggregate_ref): Likewise from constructor elements.
10453
10454 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
10455
10456         * tree-affine.h (aff_combination_expand): Declare.
10457         (get_inner_reference_aff): Likewise.
10458         * tree-affine.c (aff_combination_expand): Split out from
10459         tree_to_aff_combination_expand.
10460         (get_inner_reference_aff): New function.
10461         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10462         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10463         (struct lim_aux_data): sm_done field removed.
10464         (mem_ref_loc_p, mem_ref_locs_p): New types.
10465         (struct mem_ref): Added id, stored, accesses_in_loop,
10466         indep_loop, dep_loop, indep_ref, dep_ref fields.
10467         Removed is_stored, locs and next fields.
10468         (memory_accesses): New variable.
10469         (movement_possibility): Do not allow moving statements
10470         that store to memory.
10471         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10472         New functions.
10473         (determine_max_movement): For statements with memory references,
10474         find the outermost loop in that the reference is independent.
10475         (move_computations_stmt): Mark the virtual operands for renaming.
10476         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10477         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10478         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10479         add_vop_ref_mapping, create_vop_ref_mapping_loop,
10480         create_vop_ref_mapping, analyze_memory_references,
10481         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10482         get_all_locs_in_loop, ref_always_accessed_p,
10483         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10484         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10485         store_motion_loop, store_motion): New functions.
10486         (struct vop_to_refs_elt): New type.
10487         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10488         memref_hash, memref_eq, hoist_memory_references): Rewritten.
10489         (schedule_sm): Replaced by...
10490         (execute_sm): ... this.
10491         (determine_lsm_ref, hoist_memory_references,
10492         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10493         find_more_ref_vops, free_mem_ref, free_mem_refs,
10494         determine_lsm_loop, determine_lsm): Removed.
10495         (tree_ssa_lim_finalize): Free data structures used by store motion.
10496         (tree_ssa_lim): Call analyze_memory_references.  Use
10497         store_motion instead of determine_lsm.
10498
10499 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10500
10501         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10502         rename tmake_file to m68hc11/t-m68hc11.
10503         (mcore): Set inhibit_libc to true.
10504         * config.host (alpha*-dec-*vms*): Set extra_programs.
10505         (interix3*): Don't use host_xmake_file.
10506         * configure.ac: Let config.gcc override inhibit_libc.
10507         * configure: Regenerate.
10508
10509         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10510         * config/t-openbsd-thread: Remove commented out lines.
10511         
10512         * config/x-interix: Remove.
10513
10514         * config/m68hc11/t-m68hc11-gas: Rename to...
10515         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
10516
10517         * config/mcore/t-mcore: Remove T_CFLAGS.
10518         * config/mcore/t-mcore-pe: Likewise.
10519
10520 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10521
10522         * configure.ac: Replace custom __GNU_SOURCE test with
10523         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
10524         * aclocal.m4: Regenerate.
10525         * configure: Regenerate.
10526         * config.in: Regenerate.
10527
10528 2008-03-27  Richard Guenther  <rguenther@suse.de>
10529
10530         * fold-const.c (target.h): Include.
10531         (fold_comparison): Fold comparison of addresses of decls
10532         that bind locally or of constants.  Consolidate address folding code.
10533         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10534         results from fold_binary_to_constant.
10535         (compare_values_warnv): Likewise.
10536
10537 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
10538
10539         PR middle-end/35429
10540         * fold-const.c (fold_truthop): Check for integeral types when folding
10541         a == 0 && b == 0 and a != 0 || b != 0 .
10542
10543 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10544
10545         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10546
10547 2008-03-26  Andreas Schwab  <schwab@suse.de>
10548
10549         * doc/invoke.texi: Fix use of @item vs. @itemx.
10550
10551 2008-03-26  Tom Tromey  <tromey@redhat.com>
10552
10553         * Makefile.in (build/gensupport.o, build/print-rtl.o,
10554         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10555         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10556         build/gencodes.o, build/genconditions.o, build/genconfig.o,
10557         build/genconstants.o, build/genemit.o, build/genextract.o,
10558         build/genflags.o, build/genmddeps.o, build/genopinit.o,
10559         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10560         options.h.
10561
10562 2008-03-26  Richard Guenther  <rguenther@suse.de>
10563
10564         Revert
10565         2008-03-26  Richard Guenther  <rguenther@suse.de>
10566
10567         * fold-const.c (target.h): Include.
10568         (fold_comparison): Fold comparison of addresses of two decls
10569         that bind locally.  Consolidate address folding code.
10570
10571 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10572
10573         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10574         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10575         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10576         dconstsqrt2, dconstthird, dconste and/or dconst10.
10577         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10578         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10579         dconstsqrt2, dconste): Delete.
10580         (init_emit_once): Likewise.  Simplify initializing dconstm1.
10581         Constify variable.
10582         * real.c (get_real_const): New.
10583         * real.h (dconst3, dconst10, dconstm2, dconstthird,
10584         dconstsqrt2, dconste): Delete.
10585         (real_value_const, get_real_const): New.
10586
10587 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10588
10589         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10590
10591         * config/i386/i386.c (ix86_function_arg_boundary): Check
10592         BIGGEST_ALIGNMENT instead of 128.
10593         (setup_incoming_varargs_64): Likewise.
10594
10595 2008-03-26  Tom Tromey  <tromey@redhat.com>
10596
10597         * Makefile.in (DEPFILES): Add missing '/'.
10598
10599 2008-03-26  Richard Guenther  <rguenther@suse.de>
10600
10601         * fold-const.c (target.h): Include.
10602         (fold_comparison): Fold comparison of addresses of two decls
10603         that bind locally.  Consolidate address folding code.
10604
10605 2008-03-26  Nick Clifton  <nickc@redhat.com>
10606
10607         PR target/31232
10608         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10609         not allow INT+INT as a legitimate addressing mode.
10610
10611 2008-03-26  Richard Guenther  <rguenther@suse.de>
10612
10613         * tree-flow.h (widen_bitfield): Remove declaration.
10614         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10615         (widen_bitfield): Remove function.
10616         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10617         code.
10618
10619 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10620
10621         PR target/31558
10622         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10623         error_mark_node's.
10624
10625 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10626
10627         PR rtl-optimization/35232
10628         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10629         (forget_old_reloads_1, forget_marked_reloads): Don't clear
10630         reg_reloaded_call_part_clobbered here.
10631         (reload_regs_reach_end_p): New function.
10632         (reload_reg_rtx_for_input): New variable.
10633         (reload_reg_rtx_for_output): Likewise.
10634         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10635         when reassigning a pseudo register.  Load reloadreg from 
10636         reload_reg_rtx_for_input, moving the mode and register
10637         calculation to...
10638         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
10639         instead of the original when deciding whether an input reload
10640         would be a no-op or whether an output reload can be deleted.
10641         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10642         when setting up new_spill_reg_store.  Load it from
10643         reload_reg_rtx_for_output, moving the mode and register
10644         calculation to...
10645         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
10646         instead of the original when deciding whether an output reload
10647         would be a no-op.  Do the same when modifying insn notes.
10648         Use rtx_equal_p instead of == to compare the registers.
10649         (inherit_piecemeal_p): Take a mode and two register numbers
10650         as argument.
10651         (emit_reload_insns): Clear new_spill_reg_store for every hard
10652         register in the reload register.  Remove spill registers
10653         from reg_reloaded_valid before considering whether to record
10654         inheritance information for them.  Use reload_reg_rtx_for_output
10655         instead of reg_rtx when recording output reloads.  Use
10656         reload_reg_rtx_for_input instead of reg_rtx when recording
10657         input reloads.  Set or clear reg_reloaded_call_part_clobbered
10658         at the same time as setting reg_reloaded_valid.
10659         (delete_output_reload): Add a new_reload_reg parameter and use it
10660         instead of rld[j].reg_rtx.
10661         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10662         calls accordingly.
10663
10664 2008-03-25  Tom Tromey  <tromey@redhat.com>
10665
10666         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10667         (build/genattr.o): Likewise.
10668         (build/genattrtab.o): Likewise.
10669         (build/gencodes.o): Likewise.
10670         (build/genconfig.o): Likewise.
10671         (build/genconstants.o): Likewise.
10672         (build/genemit.o): Likewise.
10673         (build/genextract.o): Likewise.
10674         (build/genflags.o): Likewise.
10675
10676 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
10677         
10678         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10679         instead of size_int for integer types.
10680         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
10681         to match type of MINUS_EXPR.
10682         
10683 2008-03-25  Tom Tromey  <tromey@redhat.com>
10684
10685         * configure: Rebuilt.
10686         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10687         Makefile.
10688
10689 2008-03-25  Tom Tromey  <tromey@redhat.com>
10690
10691         * config/x-solaris (host-solaris.o): Update.
10692         * config/x-linux (host-linux.o): Update.
10693         * config/x-hpux (host-hpux.o): Update.
10694         * config/x-darwin (host-darwin.o): Update.
10695         * config/v850/t-v850e (v850-c.o): Update.
10696         * config/v850/t-v850 (v850-c.o): Update.
10697         * config/t-vxworks (vxworks.o): Update.
10698         * config/t-sol2 (sol2-c.o, sol2.o): Update.
10699         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10700         * config/spu/t-spu-elf (spu-c.o): Update.
10701         (spu.o): Remove.
10702         * config/sh/t-symbian (sh-c.o): Update.
10703         (symbian.o): Update.
10704         * config/sh/t-sh (sh-c.o): Update.
10705         * config/score/t-score-elf (score7.o, score3.o): Update.
10706         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10707         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10708         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10709         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10710         (rs6000.o): Remove.
10711         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10712         * config/m32c/t-m32c (m32c-pragma.o): Update.
10713         * config/ia64/t-ia64 (ia64-c.o): Update.
10714         * config/i386/x-mingw32 (host-mingw32.o): Update.
10715         * config/i386/x-i386 (driver-i386.o): Update.
10716         * config/i386/x-darwin (host-i386-darwin.o): Update.
10717         * config/i386/x-cygwin (host-cygwin.o): Update.
10718         * config/i386/t-nwld (nwld.o): Update.
10719         * config/i386/t-netware (netware.o): Update.
10720         * config/i386/t-interix (winnt.o): Update.
10721         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10722         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10723         msformat-c.o): Update.
10724         * config/bfin/t-bfin-linux (generated_files): Add
10725         linux-sysroot-suffix.h.
10726         * config/arm/t-wince-pe (pe.o): Update.
10727         * config/arm/t-strongarm-pe (pe.o): Update.
10728         * config/arm/t-pe (pe.o): Update.
10729         * config/arm/t-arm (arm-c.o): Update.
10730         * doc/install.texi (Prerequisites): Require make 3.80.
10731         * Makefile.in: Remove .o targets.
10732         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10733         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10734         (simple_generated_h, simple_generated_c): Move earlier.
10735         (generated_files): New variable.
10736         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10737         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10738         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10739         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10740         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10741         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10742         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10743         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10744         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10745         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10746         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10747         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10748         (.c.o): Remove.
10749         (COMPILE.base, COMPILE): New variables.
10750         (%.o): New pattern rule.
10751         (ALL_HOST_OBJS): New variable.
10752         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10753         (dummy-checksum.o, cc1-checksum.o): Remove.
10754         (DRIVER_SHLIB): New variable.
10755         (DRIVER_DEFINES): Use it.
10756         (gencondmd.c): Move out of build/.
10757         (s-conditions): Update.
10758         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10759         (ALL_BUILD_OBJS): Likewise.
10760         (build/%.o): Use BUILDCOMPILE.
10761         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10762         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10763         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10764         build/gencheck.o, build/gencodes.o, build/genconditions.o,
10765         build/genconfig.o, build/genconstants.o, build/genemit.o,
10766         build/genextract.o, build/genflags.o, build/genmddeps.o,
10767         build/genopinit.o, build/genoutput.o, build/genpeep.o,
10768         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10769         build/gen-protos.o, build/scan.o, build/fix-header.o,
10770         build/scan-decls.o): Simplify.
10771         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10772         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10773         prefix.o, toplev.o): Reduce to variable setting.
10774         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
10775         ($(out_object_file), gcc-options.o): New targets.
10776         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
10777         * configure: Rebuilt.
10778         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10779         * doc/sourcebuild.texi (Front End Directory): Document new variable.
10780
10781 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
10782
10783         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10784         complain when we hit an error, return ERROR_MARK_NODE.
10785
10786 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10787
10788         * config/sh/constraints.md (Pso, Psz): New constraints.
10789         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10790         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10791
10792 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10793
10794         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10795         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10796
10797 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10798
10799         * config/sh/sh.md (prefetch): Add condition for SH2A target.
10800         (prefetch_sh2a): New.   
10801
10802 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10803             Naveen.H.S  <naveen.hs@kpitcummins.com>
10804
10805         * config/sh/constraints.md (I28): New constraint.
10806         * config/sh/sh.c (broken_move): Add support for movi20s.
10807         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10808
10809 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
10810             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10811             Naveen.H.S  <naveen.hs@kpitcummins.com>
10812
10813         * config/sh/sh.c (SH_ATTRIBUTES): Define.
10814         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10815         (print_operand): Handle resbank in %@ operand code.
10816         (sh_encode_section_info): New.
10817         (push_regs): Add conditions for resbank.
10818         (sh_expand_epilogue): Likewise.
10819         (sh_insert_attributes): Likewise.
10820         (sh_attribute_table): Likewise.
10821         (sh_handle_resbank_handler_attribute): New.
10822         (sh2a_handle_function_vector_handler_attribute): New.
10823         (sh2a_is_function_vector_call): New.
10824         (sh2a_get_function_vector_number): New.
10825         (sh2a_function_vector_p): New.
10826         (sh_cfun_resbank_handler_p): New.
10827         * config/sh/sh.md (calli): Emit jsr/n if possible.
10828         (calli_tbr_rel): New.
10829         (calli_pcrel): Emit jsr/n if possible.
10830         (return_i): Emit rts/n if possible.
10831         (call_valuei_tbr_rel): New.
10832         (call_valuei_pcrel): Add condition for SH2A target.
10833         (call_value): Likewise.
10834         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10835         (sh2a_get_function_vector_number): Likewise.
10836         (sh2a_is_function_vector_call): Likewise.
10837         * doc/extend.texi: Document TBR relative addressing of SH2A.
10838         (resbank): Add description for SH2A.
10839
10840 2008-03-24  Richard Guenther  <rguenther@suse.de>
10841
10842         PR c/22371
10843         * gimplify.c (gimplify_modify_expr): For frontend type-correct
10844         pointer assignments change conversions according to middle-end rules.
10845         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10846         * configure.ac: Include type checking in yes.
10847         * configure: Regenerate.
10848
10849 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10850
10851         * diagnostic.c (diagnostic_count_diagnostic): Delete.
10852         (diagnostic_report_diagnostic): Update. Handle ICEs here.
10853         
10854 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10855
10856         * gthr-vxworks.h (UNUSED): Define.
10857
10858 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10859
10860         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10861
10862 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
10863
10864         * doc/extend.texi (Function Attributes): Add missing comma in the
10865         example of the "alloc_size" attribute.
10866         
10867 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
10868
10869         Revert:
10870         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10871
10872         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10873         32bit host.
10874
10875         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10876
10877         PR target/35496
10878         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10879         of the underlying type of a MS bitfield layout to the natural
10880         alignment of the type.
10881
10882         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10883
10884         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10885         to their natural alignment to avoid store forwarding stalls.
10886
10887 2008-03-22  Richard Guenther  <rguenther@suse.de>
10888
10889         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10890         For PHI nodes verify the address is invariant.
10891         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10892         (get_symbol_constant_value): Use is_gimple_min_invariant.
10893         (maybe_fold_stmt_indirect): Likewise.
10894
10895 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10896
10897         PR rtl-optimization/33927
10898         * Makefile.in (dse.o): Depend on $(TM_P_H).
10899         * expr.h (extract_low_bits): Declare.
10900         * expmed.c (extract_low_bits): New function.
10901         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10902         * dse.c: Include tm_p.h.
10903         (find_shift_sequence): Remove the read_reg argument and return the
10904         read value.  Emit the instructions instead of returning them.
10905         Iterate on new_mode rather than calculating it each time.
10906         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
10907         source to NEW_MODE and extract_low_bits to convert the shifted
10908         value to READ_MODE.
10909         (replace_read): Allow the load and store to have different mode
10910         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
10911         or extraction instructions before trying the replacement.  Update
10912         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10913
10914 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10915
10916         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10917         to their natural alignment to avoid store forwarding stalls.
10918
10919 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10920
10921         PR target/27946
10922         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10923         encouraging but not allowing gprs for input;
10924         change the input constraint to !f#r.
10925         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10926         gprs for output;
10927         change the output constraint to !f#r.
10928
10929 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
10930
10931         PR target/13958
10932         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10933         corresponding post-reload splitters.
10934         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10935         when x87 FP math is selected.
10936         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10937         New function prototype.
10938         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10939         unreachable function to ease macroization of insn patterns.
10940
10941 2008-03-21  Martin Jambor  <mjambor@suse.cz>
10942
10943         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10944         reference dumps if ddr is NULL or dependence is unknown.
10945
10946 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10947
10948         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10949         unsigned extension into account.
10950         (ATOMIC_COMPARE_AND_SWAP): Likewise.
10951         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10952         Do computations on a scratch register.
10953
10954 2008-03-21  Richard Guenther  <rguenther@suse.de>
10955
10956         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10957         Use is_gimple_min_invariant instead of TREE_INVARIANT.
10958         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10959         * tree-ssa-dom.c (record_equality): Likewise.
10960         * tree-inline.c (copy_body_r): Likewise.
10961         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10962         TREE_INVARIANT.
10963
10964 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10965
10966         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10967         as 'delete_unused' argument.
10968
10969 2008-03-20  Richard Guenther  <rguenther@suse.de>
10970
10971         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10972         special casing of constant qualifiers.
10973         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10974         care about them in general.
10975         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10976         regardless of their type.
10977         (fold_stmt_r): Forcefully fold *& if we end up with that.
10978
10979 2008-03-20  Paul Brook  <paul@codesourcery.com>
10980
10981         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10982         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10983         linker flags.
10984         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10985         definition.
10986         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10987         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10988
10989 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
10990
10991         * common.opt (Wmudflap): New option.
10992         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10993         (mx_register_decls): Likewise.
10994         (mudflap_finish_file): Likewise.
10995         * doc/invoke.texi: Document -Wno-mudflap.
10996
10997 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
10998
10999         * c-format.c (replace_format_name_to_system_name): New.
11000         (cmp_attribs): New.
11001         (convert_format_name_to_system_name): New.
11002         (decode_format_attr): Add use of convert_format_name_to_system_name.
11003         (format_types_orig): Add gnu_ prefix to names.
11004         (check_format_info_main): Special treating of \0 escaped names for
11005         supporting multi-character format specifiers as I32, I64.
11006         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
11007         (gnu_target_overrides_format_attributes): New.
11008         * c-format.h: Add structure target_ovr_attr to hold
11009         system specific formatter names.
11010         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
11011         msformat-c.o file to c_target_objs and cxx_target_objs.
11012         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11013         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
11014         (TARGET_N_FORMAT_TYPES): New.
11015         * config/i386/msformat-c.c: New.
11016         * config/i386/t-cygming: Add build rule for msformat-c.o.
11017         * doc/extend.texi: Add new format names gnu_* and ms_* and
11018         further details.
11019         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11020
11021 2008-03-20  Ira Rosen  <irar@il.ibm.com>
11022
11023         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
11024         optimizations turned on under -O3.
11025         (ftree-vectorize): Add that the flag is turned on with -O3.
11026
11027 2008-03-20  Ben Elliston  <bje@au.ibm.com>
11028
11029         * regmove.c (try_auto_increment): Fix spelling error in comment.
11030         * final.c (final_scan_insn): Likewise.
11031
11032 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
11033
11034         PR target/14552
11035         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
11036         allocator preferences for "y" and "r" class registers.
11037         ("*mov<mode>_internal"): Ditto.
11038         ("*movv2sf_internal_rex64"): Ditto.
11039         ("*movv2sf_internal"): Ditto.
11040
11041 2008-03-19  Michael Matz  <matz@suse.de>
11042
11043         PR middle-end/35616
11044         * calls.c (expand_call): Check overlap of arguments with call
11045         address for sibcalls.
11046
11047 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
11048
11049         PR target/35496
11050         * stor-layout.c (update_alignment_for_field): Set minimum alignment
11051         of the underlying type of a MS bitfield layout to the natural
11052         alignment of the type.
11053
11054 2008-03-19  Jan Hubicka  <jh@suse.cz>
11055
11056         PR other/35094
11057         * toplev.c (decode_d_option): Handle all CPP flags.
11058         * tree-vrp.c: Update tree_pass descriptors.
11059         * regrename.c: Update tree_pass descriptors.
11060         * fwprop.c: Update tree_pass descriptors.
11061         * doc/invoke.texi: Remove documentation of dropped -d? flags.
11062         * tree-into-ssa.c: Update tree_pass descriptors.
11063         * tree-dump.c: Update tree_pass descriptors.
11064         * tree-complex.c: Update tree_pass descriptors.
11065         * tree-dump.h: Update tree_pass descriptors.
11066         * see.c: Update tree_pass descriptors.
11067         * cgraphbuild.c: Update tree_pass descriptors.
11068         * tracer.c: Update tree_pass descriptors.
11069         * tree-loop-distribution.c: Update tree_pass descriptors.
11070         * cgraph.c: Update tree_pass descriptors.
11071         * postreload-gcse.c: Update tree_pass descriptors.
11072         * postreload.c: Update tree_pass descriptors.
11073         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11074         * tree-tailcall.c: Update tree_pass descriptors.
11075         * tree-pass.h (tree_opt_pass): Rename to ...
11076         (opt_pass) ... this one; add "type" field and remove letter field.
11077         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11078         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11079         all_lowering_passes): Update declaration.
11080         * ipa-cp.c: Update tree_pass descriptors.
11081         * final.c: Update tree_pass descriptors.
11082         * omp-low.c: Update tree_pass descriptors.
11083         * tree-ssa-dse.c: Update tree_pass descriptors.
11084         * ipa-reference.c: Update tree_pass descriptors.
11085         * tree-ssa-uncprop.c: Update tree_pass descriptors.
11086         * auto-inc-dec.c: Update tree_pass descriptors.
11087         * reorg.c: Update tree_pass descriptors.
11088         * cgraphunit.c: Update tree_pass descriptors.
11089         * tree-ssa-copyrename.c: Update tree_pass descriptors.
11090         * tree-ssa-ccp.c: Update tree_pass descriptors.
11091         * df-core.c: Update tree_pass descriptors.
11092         * mode-switching.c: Update tree_pass descriptors.
11093         * tree-nomudflap.c: Update tree_pass descriptors.
11094         * modulo-sched.c: Update tree_pass descriptors.
11095         * ipa-pure-const.c: Update tree_pass descriptors.
11096         * cse.c: Update tree_pass descriptors.
11097         * web.c: Update tree_pass descriptors.
11098         * tree-stdarg.c: Update tree_pass descriptors.
11099         * tree-ssa-math-opts.c: Update tree_pass descriptors.
11100         * tree-ssa-dom.c: Update tree_pass descriptors.
11101         * tree-nrv.c: Update tree_pass descriptors.
11102         * tree-ssa-alias.c: Update tree_pass descriptors.
11103         * loop-init.c: Update tree_pass descriptors.
11104         * gimple-low.c: Update tree_pass descriptors.
11105         * ipa-inline.c: Update tree_pass descriptors.
11106         * tree-ssa-sink.c: Update tree_pass descriptors.
11107         * global.c: Update tree_pass descriptors.
11108         * ifcvt.c: Update tree_pass descriptors.
11109         * jump.c: Update tree_pass descriptors.
11110         * predict.c: Update tree_pass descriptors.
11111         * tree-ssa-loop.c: Update tree_pass descriptors.
11112         * recog.c: Update tree_pass descriptors.
11113         * dse.c: Update tree_pass descriptors.
11114         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11115         * tree-eh.c: Update tree_pass descriptors.
11116         * regmove.c: Update tree_pass descriptors.
11117         * local-alloc.c
11118         * function.c: Update tree_pass descriptors.
11119         * tree-vectorizer.c: Update tree_pass descriptors.
11120         * gcse.c: Update tree_pass descriptors.
11121         * ipa-type-escape.c: Update tree_pass descriptors.
11122         * tree-if-conv.c: Update tree_pass descriptors.
11123         * init-regs.c: Update tree_pass descriptors.
11124         * ipa.c: Update tree_pass descriptors.
11125         * tree-ssa-phiopt.c: Update tree_pass descriptors.
11126         * rtl-factoring.c: Update tree_pass descriptors.
11127         * lower-subreg.c: Update tree_pass descriptors.
11128         * bt-load.c: Update tree_pass descriptors.
11129         * tree-dfa.c: Update tree_pass descriptors.
11130         * except.c: Update tree_pass descriptors.
11131         * emit-rtl.c: Update tree_pass descriptors.
11132         * cfgexpand.c: Update tree_pass descriptors.
11133         * tree-cfgcleanup.c: Update tree_pass descriptors.
11134         * cfgcleanup.c: Update tree_pass descriptors.
11135         * tree-ssa-pre.c: Update tree_pass descriptors.
11136         * tree-sra.c: Update tree_pass descriptors.
11137         * tree-mudflap.c: Update tree_pass descriptors.
11138         * tree-ssa-copy.c: Update tree_pass descriptors.
11139         * cfglayout.c: Update tree_pass descriptors.
11140         * tree-ssa-forwprop.c: Update tree_pass descriptors.
11141         * tree-ssa-dce.c: Update tree_pass descriptors.
11142         * tree-ssa.c: Update tree_pass descriptors.
11143         * regclass.c: Update tree_pass descriptors.
11144         * integrate.c: Update tree_pass descriptors.
11145         * tree-optimize.c: Update tree_pass descriptors.
11146         * tree-ssa-phiprop.c: Update tree_pass descriptors.
11147         * tree-object-size.c: Update tree_pass descriptors.
11148         * combine.c: Update tree_pass descriptors.
11149         * tree-outof-ssa.c: Update tree_pass descriptors.
11150         * bb-reorder.c: Update tree_pass descriptors.
11151         * stack-ptr-mod.c: Update tree_pass descriptors.
11152         * var-tracking.c: Update tree_pass descriptors.
11153         * tree-profile.c: Update tree_pass descriptors.
11154         * tree-vect-generic.c: Update tree_pass descriptors.
11155         * reg-stack.c: Update tree_pass descriptors.
11156         * sched-rgn.c: Update tree_pass descriptors.
11157         * tree-ssa-structalias.c: Update tree_pass descriptors.
11158         * tree-cfg.c: Update tree_pass descriptors.
11159         * passes.c (current_pass): Update declaration.
11160         (finish_optimization_passes): Update.
11161         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11162         (register_one_dump_file, register_dump_files_1, next_pass_1):
11163         Update arguments.
11164         (init_optimization_passes): Update handling of new types.
11165         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11166         * ipa-struct-reorg.c: Update tree_pass descriptors.
11167         * tree-ssa-reassoc.c: Update tree_pass descriptors.
11168         * combine-stack-adj.c: Update tree_pass descriptors.
11169         * cfgrtl.c: Update tree_pass descriptors.
11170         * dce.c: Update tree_pass descriptors.
11171         * tree-ssanames.c: Update tree_pass descriptors.
11172
11173 2008-03-19  Richard Guenther  <rguenther@suse.de>
11174
11175         PR middle-end/35609
11176         * tree-ssa.c (walk_data): New structure.
11177         (warn_uninitialized_var): If not always_executed warn with "maybe"
11178         instead of "is".
11179         (execute_early_warn_uninitialized): Compute post-dominators.
11180         Initialize always_executed before processing each basic block.
11181
11182 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
11183
11184         PR target/35504
11185         * config/i386/i386.c (x86_this_parameter): Calculate correct location
11186         of "this" pointer when "regparm = N" or "fastcall" is in effect.
11187
11188 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11189
11190         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11191
11192 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
11193
11194         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
11195         is true.
11196         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
11197         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
11198         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
11199         target after ignore has been set, and move there also the commputation
11200         of subtarget and original_target.
11201         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11202         (LANG_HOOKS_INITIALIZER): Remove it.
11203         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
11204
11205 2008-03-18  Richard Guenther  <rguenther@suse.de>
11206
11207         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
11208         found an expression with constants, note that in the VN for the lhs.
11209         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
11210         fold them to constants if possible.  Run cleanup_cfg if done so.
11211         (execute_pre): Return todo.
11212         (do_pre): Likewise.
11213         (execute_fre): Likewise.
11214         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
11215         of constants.
11216         (get_prop_source_stmt): Look through pointer conversions.
11217
11218 2008-03-18  Jan Hubicka  <jh@suse.cz>
11219
11220         * tree-pretty-print.c: Include predict.h.
11221         (dump_generic_node): Dump predictor.
11222         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
11223         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
11224         * gimple-low.c (lower_stmt): Likewise.
11225         * expr.c (expand_expr_real): Likewise.
11226         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
11227         them.
11228         (build_predict_expr, build_predict_expr): New.
11229         * predict.h (predictor_name, build_predict_expr): Update.
11230         * c-typeck.c (c_finish_bc_stmt): Add prediction.
11231         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11232         * predict.def (PRED_CONTINUE): Update hitrate.
11233         * tree.def (PREDICT_EXPR): Define.
11234         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11235         do not handle BIND_EXPR.
11236         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11237         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11238         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11239         operands.
11240
11241 2008-03-18  Michael Matz  <matz@suse.de>
11242
11243         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11244
11245 2008-03-18  Richard Guenther  <rguenther@suse.de>
11246
11247         * tree-gimple.h (is_gimple_invariant_address): Declare.
11248         (is_gimple_constant): Likewise.
11249         * tree-gimple.c (is_gimple_constant): New function.
11250         (is_gimple_invariant_address): Likewise.
11251         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11252         and is_gimple_invariant_address.
11253         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11254         previous change.
11255         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11256         an addressable base.
11257
11258 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11259
11260         PR middle-end/35611
11261         * gimplify.c (gimplify_expr): Gimplify second operand of
11262         OMP_ATOMIC_LOAD.
11263
11264 2008-03-17  Richard Guenther  <rguenther@suse.de>
11265
11266         PR tree-optimization/19637
11267         * fold-const.c (fold_unary): Remove restrictions of removing
11268         intermediate pointer-conversions (P2)(P1)P0.
11269         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11270         conversion to void pointer.
11271         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11272
11273 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
11274
11275         PR debug/31510
11276         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11277         emulated thread local variables.
11278
11279 2008-03-16  Richard Guenther  <rguenther@suse.de>
11280
11281         PR middle-end/35607
11282         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11283         expand TREE_INVARIANT operations that are not gimple invariant.
11284
11285 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
11286
11287         * doc/extend.texi (Alignment): Say that the ABI controls
11288         the __alignof__ for non-strict-alignment targets rather
11289         than being a recommendation.
11290
11291 2008-03-15  Paul Brook  <paul@codesourcery.com>
11292
11293         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11294         annotations.
11295         (arm_output_fn_unwind): Mark functions that can not be unwound.
11296
11297 2008-03-15  Paul Brook  <paul@codesourcery.com>
11298
11299         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11300         extension instructions.
11301
11302 2008-03-15  Richard Guenther  <rguenther@suse.de>
11303
11304         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11305         and fold constant aggregate refs.
11306         (fold_const_aggregate_ref): Handle string constants
11307         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
11308         (evaluate_stmt): Simplify now that ccp_fold folds constant
11309         aggregate refs.
11310
11311 2008-03-15  Paul Brook  <paul@codesourcery.com>
11312
11313         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11314         (extzv): Use gen_extzv_t2.
11315         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11316
11317 2008-03-15  Richard Guenther  <rguenther@suse.de>
11318
11319         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11320         (fold_const_aggregate_ref): Likewise.
11321         (get_value): Return NULL if we don't have any values.
11322         (ccp_finalize): Set const_val to NULL after freeing it.
11323         * tree-flow.h (get_symbol_constant_value): Declare.
11324         (fold_const_aggregate_ref): Likewise.
11325         * tree-ssa-sccvn.c (try_to_simplify): Use them.
11326
11327 2008-03-15  Richard Guenther  <rguenther@suse.de>
11328
11329         PR middle-end/35593
11330         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11331         to not produce negative array indices if not allowed.  Add
11332         parameter to indicate that.
11333         (maybe_fold_offset_to_component_ref): Allow negative array
11334         indices only for the first member of a structure.
11335         (maybe_fold_offset_to_reference): Allow negative array indices.
11336         (maybe_fold_stmt_addition): Likewise.
11337
11338 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
11339             Anatoly Sokolov <aesok@post.ru>
11340
11341         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11342         (avr_arch): Add ARCH_AVR6.
11343         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11344         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
11345         instead of fixed value 2.
11346         (print_operand_address): Use gs() asm specifier instead of pm().
11347         (avr_assemble_integer): (Ditto.).
11348         (avr_output_addr_vec_elt): (Ditto.).
11349         (print_operand): Handle "!" code.
11350         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
11351         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11352         (AVR_HAVE_EIJMP_EICALL): Define.
11353         (AVR_3_BYTE_PC): Redefine.
11354         (AVR_2_BYTE_PC): (Ditto.).
11355         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11356         (LINK_SPEC): Add atmega2560 and atmega2561.
11357         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
11358         (crtm2561.o).
11359         * config/avr/avr.md (call_insn): Use eicall instead of icall 
11360         for 3 byte PC devices.
11361         (call_value_insn): (Ditto.).
11362         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11363         (indirect_jump): Use only for for 2 byte PC devices.
11364         (*tablejump): (Ditto.).
11365         (*indirect_jump_avr6): Add insn.
11366         (*tablejump_rjmp): Don't use for 3 byte PC devices.
11367         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
11368         instead of ijmp for 3 byte PC devices.
11369         (__tablejump2__): (Ditto.).
11370         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11371         (MULITLIB_DIRNAMES): (Ditto.). 
11372         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11373
11374 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
11375
11376         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11377         "sse2_umulsidi3".  Use V1DI mode for operand 0.
11378         ("mmx_psadbw"): Use V1DI mode for operand 0.
11379         * config/i386/i386-modes.def (V1SI): New vector mode.
11380         * config/i386/i386.c (struct builtin_description)
11381         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11382         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11383         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11384         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11385         v1di_ftype_v8qi_v8qi type.
11386         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11387
11388         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11389         __builtin_ia32_pmuludq]: Fix the mode of return value.
11390
11391 2008-03-15  Richard Guenther  <rguenther@suse.de>
11392
11393         PR middle-end/35595
11394         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11395         being a PHI_NODE.
11396
11397 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
11398         
11399         * doc/invoke.texi (Option Summary, Xtensa Options): Document
11400         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11401         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11402         unless TARGET_SERIALIZE_VOLATILE is enabled.
11403         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11404         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11405         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11406
11407 2008-03-14  Richard Guenther  <rguenther@suse.de>
11408
11409         PR tree-optimization/34172
11410         * tree-flow.h (refs_may_alias_p): Declare.
11411         (get_single_def_stmt): Likewise.
11412         (get_single_def_stmt_from_phi): Likewise.
11413         (get_single_def_stmt_with_phi): Likewise.
11414         * tree-dfa.c (refs_may_alias_p): New function.
11415         (get_single_def_stmt): Likewise.
11416         (get_single_def_stmt_from_phi): Likewise.
11417         (get_single_def_stmt_with_phi): Likewise.
11418         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11419         (vn_reference_lookup_1): New helper function.
11420         (vn_reference_lookup): Walk the virtual use-def chain to
11421         continue searching for a match if the def does not alias the
11422         reference we are looking for.
11423
11424 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
11425
11426         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
11427         archive and Perzl.  Update The Written Word listing.
11428
11429 2008-03-14  Richard Guenther  <rguenther@suse.de>
11430
11431         PR tree-optimization/34043
11432         PR tree-optimization/33989
11433         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11434         when doing FRE.
11435         (bitmap_find_leader): Use extra argument to verify dominance
11436         relationship inside a basic-block.
11437         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11438         (find_leader_in_sets): Adjust.
11439         (create_component_ref_by_pieces): Take extra argument for
11440         dominance check, handle lookup failures.
11441         (find_or_generate_expression): Likewise.
11442         (create_expression_by_pieces): Likewise.
11443         (insert_into_preds_of_block): Adjust.
11444         (create_value_expr_from): If asked for, verify all operands
11445         are in the blocks AVAIL_OUT set.
11446         (make_values_for_stmt): Check for SSA_NAMEs that are life
11447         over an abnormal edge.
11448         (compute_avail): Remove such check.
11449         (do_SCCVN_insertion): New function.
11450         (eliminate): If we do not find a leader suitable for replacement
11451         insert a replacement expression from SCCVN if available.
11452         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11453         (struct vn_ssa_aux): Add needs_insertion flag.
11454         * tree-ssa-sccvn.c (may_insert): New global flag.
11455         (copy_reference_ops_from_ref): Value-number union member access
11456         based on its size, not type and member if insertion is allowed.
11457         (visit_reference_op_load): For a weak match from union type
11458         punning lookup a view-converted value and insert a SSA_NAME
11459         for that value if that is not found.
11460         (visit_use): Make dumps shorter.  Do not disallow value numbering
11461         SSA_NAMEs that are life over an abnormal edge to constants.
11462         (free_scc_vn): Release inserted SSA_NAMEs.
11463         (run_scc_vn): New flag to specify whether insertion is allowed.
11464         Process SSA_NAMEs in forward order.
11465         * tree-ssa-loop-im.c (for_each_index): Handle invariant
11466         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11467         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11468         pointer type to/from integral types that do not change the
11469         precision to regular conversions.
11470
11471 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11472
11473         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11474         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11475         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11476         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11477         input arguments and the mode of return value.  Built-in functions
11478         that operate on whole 64-bit MMX register now use V1DI mode.
11479
11480 2008-03-13  Alon Dayan  <alond@il.ibm.com>
11481             Olga Golovanevsky  <olga@il.ibm.com>
11482
11483         PR tree-optimization/35041
11484         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11485         to locate the right position in a statement.
11486
11487 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11488
11489         PR target/34000
11490         PR target/35553
11491         * config/i386/xmmintrin.h:  Change all static inline functions to
11492         extern inline and add __gnu_inline__ attribute.
11493         * config/i386/bmintrin.h: Ditto.
11494         * config/i386/smmintrin.h: Ditto.
11495         * config/i386/tmmintrin.h: Ditto.
11496         * config/i386/mmintrin-common.h: Ditto.
11497         * config/i386/ammintrin.h: Ditto.
11498         * config/i386/emmintrin.h: Ditto.
11499         * config/i386/pmmintrin.h: Ditto.
11500         * config/i386/mmintrin.h: Ditto.
11501         * config/i386/mm3dnow.h: Ditto.
11502
11503 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11504
11505         PR middle-end/35185
11506         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11507         (lower_omp_2): New function.
11508         (lower_omp_1, lower_omp): Rewritten.
11509
11510 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
11511
11512         PR 35054
11513         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11514         with the phrase "Microsoft Windows compilers".
11515         (Push/Pop Macro Pragmas): New subsection. Document
11516         #pragma push_macro and pragma pop_macro.
11517
11518 2008-03-12  Paul Brook  <paul@codesourcery.com>
11519
11520         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11521
11522 2008-03-12  Paul Brook  <paul@codesourcery.com>
11523
11524         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11525         (thumb2_alusi3_short): Exclude PLUS and MINUS.
11526         (thumb2_addsi_shortim): Rename ...
11527         (thumb2_addsi_short): ... to this.  Allow register operands.
11528         (thumb2_subsi_short): New pattern.
11529         (thumb2_one_cmplsi2_short,
11530         thumb2_negsi2_short): New patterns and peepholes.
11531
11532 2008-03-12  Paul Brook  <paul@codesourcery.com>
11533
11534         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11535
11536 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
11537
11538         * config/i386/i386.md (int_cond): New code iterator.
11539         (fp_cond): Ditto.
11540         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11541         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11542         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11543         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11544         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11545         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11546         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11547         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11548
11549 2008-03-12  Paul Brook  <paul@codesourcery.com>
11550
11551         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11552         instead of {arm,thumb}_compute_save_reg_mask.
11553         (output_return_instruction): Ditto.
11554         (thumb_unexpanded_epilogue): Ditto.
11555         (thumb1_expand_prologue): Ditto.
11556         (thumb1_output_function_prologue): Ditto.
11557         (arm_set_return_address): Ditto.
11558         (thumb_set_return_address): Ditto.
11559         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
11560         regs to achieve stack alignment.
11561         (thumb1_compute_save_reg_mask): Fix compiler warning.
11562         (arm_output_epilogue): Use offsets->saved_regs_mask.
11563         Adjust stack pointer by poping call clobered registers.
11564         (arm_expand_prologue): Use offsets->saved_regs_mask.
11565         Adjust stack pointer by pushing extra registers.
11566         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11567
11568 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
11569
11570         PR tree-opt/35422
11571         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11572         conversion to the operands of a multiplication.
11573
11574 2008-03-12  Richard Guenther  <rguenther@suse.de>
11575
11576         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11577         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11578         * timevar.def (TV_TREE_PHIPROP): Add.
11579         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11580         pass description.  Use TV_TREE_PHIPROP.
11581         * tree-ssa-forwprop.c: Remove phiprop code.
11582
11583 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11584
11585         PR middle-end/35549
11586         * omp-low.c (maybe_lookup_decl): Constify first argument.
11587         (use_pointer_for_field): Change last argument from bool to
11588         omp_context *.  Disallow shared copy-in/out in nested
11589         parallel if decl is shared in outer parallel too.
11590         (build_outer_var_ref, scan_sharing_clauses,
11591         lower_rec_input_clauses, lower_copyprivate_clauses,
11592         lower_send_clauses, lower_send_shared_vars): Adjust callers.
11593
11594 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
11595             Ira Rosen  <irar@il.ibm.com>
11596
11597         * tree-vectorizer.c (free_stmt_vec_info): New function.
11598         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11599         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11600         * tree-vectorizer.h (free_stmt_vec_info): Declare.
11601         * tree-vect-transform.c (vectorizable_conversion): Free
11602         vec_oprnds0 if it was allocated.
11603         (vect_permute_store_chain): Remove unused VECs.
11604         (vectorizable_store): Free VECs that are allocated in the..
11605         function.
11606         (vect_transform_strided_load, vectorizable_load): Likewise.
11607         (vect_remove_stores): Simplify the code.
11608         (vect_transform_loop): Move code to vect_remove_stores().
11609         Call vect_remove_stores() and free_stmt_vec_info().
11610
11611 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11612
11613         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11614         TARGET_HPUX.  Revise comment.
11615         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11616         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11617         Use sr4 variant of `be' instruction when not generating PIC code.
11618         (attr_length_call): Adjust for above change.
11619
11620 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11621
11622         * ipa-reference.c (static_execute): Remove module_statics_const and
11623         associated setting code.
11624
11625 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11626
11627         PR target/35540
11628         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11629         predicate for operand 1.
11630         (paritysi2_cmp): Use register_operand predicate for operand 2.
11631         Use earlyclobber modifier for operand 1.  Remove support for
11632         memory operands.
11633         (paritydi2_cmp): Use register_operand predicate for operand 3.
11634         Use earlyclobber modifier for operand 1.  Remove support for
11635         memory operands.
11636
11637 2008-03-11  Paul Brook  <paul@codesourcery.com>
11638             Vladimir Prus  <vladimir@codesourcery.com>
11639
11640         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11641         (arm_compute_save_reg0_reg12_mask): Always
11642         check if register 11 must be saved.  Always safe hard frame pointer
11643         when frame_pointer_needeed.
11644         (arm_compute_save_reg_mask): Save IP and PC
11645         only with apcs frames.
11646         (arm_output_epilogue): Adjust Thumb2 codepath to
11647         be also invoked and work for ARM non-apcs frames.
11648         (arm_expand_prologue): Don't bother saving IP
11649         for non-apcs frame, since it's not clobbered by
11650         prologue code.  Implement non-apcs frame
11651         layout.
11652
11653 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11654
11655         PR rtl-optimization/35281
11656         * expr.c (convert_move): Use a new pseudo for the intermediate
11657         from_mode->word_mode result.
11658
11659 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11660
11661         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11662         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11663         * toplev.c (compile_file): Don't call it.
11664
11665 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11666
11667         PR middle-end/35526
11668         * expr.c (store_expr): Call emit_block_move if the mode
11669         of "temp" RTX is BLKmode.
11670
11671 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11672             Richard Guenther  <rguenther@suse.de>
11673
11674         PR tree-optimization/31358
11675         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11676         the step with a NULL_TREE.
11677         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11678         to sizetype if type is a pointer type.
11679         (add_candidate_1): Don't convert the base and step to
11680         the generic type if the orginal type is a pointer type.
11681         (add_iv_value_candidates): Use sizetype for the step
11682         if type is a pointer type.
11683         (cand_value_at): Likewise.
11684         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11685         for pointer types.
11686         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11687         Don't convert the tem affine to the type.
11688         (add_elt_to_tree): Use sizetype for the step if a pointer.
11689         Use POINTER_PLUS_EXPR for pointers.
11690         (aff_combination_to_tree): Use sizetype for the step if a
11691         pointer.
11692
11693 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
11694
11695         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11696         Remove commutativity hint.
11697
11698 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
11699
11700         PR c/35438
11701         PR c/35439
11702         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11703         errorneous type.  Check that v is a VAR_DECL.
11704
11705         PR middle-end/35099
11706         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11707
11708 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11709
11710         PR tree-optimization/35494
11711         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11712         may be overriden at link and run time.
11713
11714 2008-03-10  Richard Guenther  <rguenther@suse.de>
11715
11716         PR tree-optimization/34677
11717         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11718         (poolify_tree): Likewise.
11719         (modify_expr_template): Likewise.
11720         (poolify_modify_stmt): Likewise.
11721         (insert_fake_stores): Handle all component-ref style stores
11722         in addition to INDIRECT_REF.  Also handle complex types.
11723         Do not poolify the inserted load.
11724         (realify_fake_stores): Do not rebuild the tree but only
11725         make it a SSA_NAME copy.
11726         (init_pre): Remove initialzation of modify_expr_template.
11727         Do not allocate modify_expr_node_pool.
11728         (fini_pre): Do not free modify_expr_node_pool.
11729
11730 2008-03-10  Paul Brook  <paul@codesourcery.com>
11731
11732         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11733         to avoid conflicts.
11734
11735 2008-03-10  Paul Brook  <paul@codesourcery.com>
11736             Mark Shinwell  <shinwell@codesourcery.com>
11737
11738         * config/arm/cortex-r4.md: New.
11739         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11740         insn attributes.
11741         * config/arm/arm.md: Include cortex-r4.md.
11742         (insn): Add smmls, sdiv and udiv values.
11743         (generic_sched): Don't use generic scheduling for Cortex-R4.
11744         (arm_issue_rate): New function.
11745         (TARGET_SCHED_ISSUE_RATE): Define.
11746
11747 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
11748
11749         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11750
11751 2008-03-10  Richard Guenther  <rguenther@suse.de>
11752
11753         * tree-ssa-pre.c (get_sccvn_value): Simplify.
11754         (compute_avail): Do not add stmt uses to AVAIL_OUT.
11755
11756 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
11757
11758         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11759         Set default to true.
11760
11761 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11762
11763         * c.opt (Wsynth): Deprecate.
11764         * doc/invoke.texi (Option Summary, Warning Options): Document
11765         -Wno-format-contains-nul.
11766
11767 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
11768
11769         PR target/35496
11770         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11771         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11772
11773 2008-03-09  Ira Rosen  <irar@il.ibm.com>
11774
11775         * config/rs6000/rs6000.c (builtin_description): Rename vector
11776         left shift operations.
11777         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11778         (altivec_vsl<VI_char>): Rename to ...
11779         (ashl<mode>3): ... new name.
11780         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11781         gen_ashlv4si3.
11782         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11783
11784 2008-03-08  Richard Guenther  <rguenther@suse.de>
11785
11786         * coverage.h (tree_coverage_counter_addr): Declare.
11787         * coverage.c (tree_coverage_counter_addr): New function.
11788         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11789         before using again.
11790         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11791         (tree_gen_one_value_profiler): Likewise.
11792         (tree_gen_ic_profiler): Likewise.
11793         (tree_gen_average_profiler): Likewise.
11794         (tree_gen_ior_profiler): Likewise.
11795
11796 2008-03-08  Richard Guenther  <rguenther@suse.de>
11797
11798         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11799         (vn_binary_op_insert): Likewise.
11800         (vn_unary_op_lookup): Likewise.
11801         (vn_unary_op_insert): Likewise.
11802         (vn_nary_op_lookup): Declare.
11803         (vn_nary_op_insert): Likewise.
11804         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11805         and binary hashes, use a single obstack for unary_op_pool
11806         and binary_op_pool.
11807         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11808         a single struct vn_nary_op_s.  Store tree code length and
11809         a variable number of operands.
11810         (struct vn_reference_op_struct): Remove unused op2.
11811         (vn_reference_op_eq): Do not compare op2.
11812         (vn_reference_op_compute_hash): Do not compute hash of op2.
11813         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11814         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11815         with vn_nary_op_compute_hash.
11816         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11817         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11818         vn_nary_op_lookup.
11819         (vn_unary_op_insert, vn_binary_op_insert): Replace with
11820         vn_nary_op_insert.
11821         (visit_unary_op): Call nary functions.
11822         (visit_binary_op): Likewise.
11823         (process_scc): Adjust for struct vn_tables_s changes.
11824         (allocate_vn_table): Likewise.
11825         (free_vn_table): Likewise.
11826         * tree-vn.c (vn_add): Call nary functions.
11827         (vn_lookup): Likewise.
11828
11829 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
11830
11831         PR target/35498
11832         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11833         wdst back after sync_compare_and_swapqhi_internal.
11834
11835 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
11836
11837         PR target/22152
11838         * config/i386/i386-modes.def (V1DI): New vector mode.
11839         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11840         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11841         (MMXMODE248): Ditto.
11842         (MMXMODE): Add V1DI mode.
11843         (mmxvecsize): Change DI mode to V1DI mode.
11844         ("mov<mode>): Use MMXMODEI8 mode iterator.
11845         ("*mov<mode>_internal_rex64"): Ditto.
11846         ("*mov<mode>_internal"): Ditto.
11847         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
11848         ("mmx_sub<mode>3"): Ditto.
11849         ("mmx_adddi3"): Remove insn pattern.
11850         ("mmx_subdi3"): Ditto.
11851         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11852         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11853         ("mmx_ashl<mode>3"): Ditto.
11854         ("mmx_lshrdi3"): Remove insn pattern.
11855         ("mmx_ashldi3"): Ditto.
11856         * config/i386/i386.c (classify_argument): Handle V1DImode.
11857         (function_arg_advance_32): Ditto.
11858         (function_arg_32): Ditto.
11859         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11860         mmx_addv1di3 insn pattern.
11861         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11862         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11863         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11864         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11865         Remove definitions of built-in functions.
11866         (V1DI_type_node): New node.
11867         (v1di_ftype_v1di_int): Ditto.
11868         (v1di_ftype_v1di_v1di): Ditto.
11869         (v2si_ftype_v2si_si): Ditto.
11870         (v4hi_ftype_v4hi_di): Remove node.
11871         (v2si_ftype_v2si_di): Ditto.
11872         (ix86_init_mmx_sse_builtins): Handle V1DImode.
11873         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11874         Redefine builtins using def_builtin_const with *_ftype_*_int node.
11875         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11876         Add new builtins using def_builtin_const.
11877         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11878         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11879         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11880         * config/i386/mmintrin.h (__v1di): New typedef.
11881         (_mm_add_si64): Cast arguments to __v1di type.
11882         (_mm_sub_si64): Ditto.
11883         (_mm_sll_pi16): Cast __count to __v4hi type.
11884         (_mm_sll_pi32): Cast __count to __v2si type.
11885         (_mm_sll_si64): Cast arguments to __v1di type.
11886         (_mm_srl_pi16): Cast __count to __v4hi type.
11887         (_mm_srl_pi32): Cast __count to __v2si type.
11888         (_mm_srl_si64): Cast arguments to __v1di type.
11889         (_mm_sra_pi16): Cast __count to __v4hi type.
11890         (_mm_sra_pi32): Cast __count to __v2si type.
11891         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11892         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11893         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11894         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11895         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11896         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11897         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11898         (_mm_srai_pi32): Use __builtin_ia32_psradi.
11899         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11900         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11901         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11902         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11903
11904 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
11905
11906         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11907
11908 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
11909
11910         PR target/35373
11911         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11912         reg+const addressing for Altivec modes.  Don't generate reg+reg
11913         addressing for TFmode or TDmode quantities.
11914
11915 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
11916
11917         * c-common.c (vector_types_convertible_p): Call langhook
11918         instead of comptypes.
11919
11920 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11921
11922         PR tree-opt/35402
11923         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11924         integral and scalar float variables which have a
11925         NULL DECL_INITIAL.
11926
11927 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
11928
11929         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11930         dwarf_register_span hook when emitting unwind information for
11931         register-to-memory saves.
11932         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11933         (rs6000_frame_related): Remove call to spe_synthesize_frame.
11934
11935 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11936
11937         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11938         for the same VAR_DECL.
11939
11940 2008-03-06  Tom Tromey  <tromey@redhat.com>
11941
11942         * treelang: Delete.
11943         * doc/standards.texi (Standards): Don't mention treelang.
11944         * doc/invoke.texi (Overall Options): Don't mention treelang.
11945         * doc/install.texi (Prerequisites): Don't mention bison or
11946         treelang.
11947         (Configuration): Don't mention treelang.
11948         (Building): Likewise.
11949         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11950
11951 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
11952
11953         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11954         word-extractions out of a multi-word object.
11955
11956 2008-03-06  Richard Guenther  <rguenther@suse.de>
11957
11958         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11959         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11960         result type and precision.
11961         * expr.c (get_inner_reference): Set unsignedp based on the result
11962         type of BIT_FIELD_REF.
11963         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11964         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11965         (try_instantiate_multiple_fields): Likewise.  Use the correct type
11966         for BIT_FIELD_REF.
11967         (sra_build_assignment): Likewise.
11968         (sra_build_elt_assignment): Likewise.
11969         (sra_explode_bitfield_assignment): Likewise.
11970         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11971         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11972         set BIT_FIELD_REF_UNSIGNED.
11973         (vectorizable_load): Likewise.
11974
11975 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11976
11977         * cse.c (cse_extended_basic_block): Invalidate artificial defs
11978         at bb start.
11979
11980 2008-03-06  Richard Guenther  <rguenther@suse.de>
11981
11982         * alias.c (struct alias_set_entry): Move has_zero_child field
11983         to pack with alias_set.
11984
11985 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11986
11987         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11988         32bit host.
11989
11990 2008-03-05  Ian Lance Taylor  <iant@google.com>
11991
11992         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11993
11994 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
11995
11996         * fwprop.c (update_df): Support width and offset parameters of
11997         df_ref_create.
11998         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11999         global_conflicts): Change DF_REF_EXTRACT to either
12000         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
12001         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12002         * df-scan.c (df_ref_record, df_defs_record,
12003         df_ref_create_structure, df_def_record_1, df_uses_record,
12004         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
12005         df_bb_refs_collect, df_entry_block_defs_collect,
12006         df_exit_block_uses_collect): Support new width and offset fields.
12007         (ref_extract_pool): New storage pool.
12008         (df_free_ref): New function.
12009         (df_reg_chain_unlink, df_free_collection_rec,
12010         df_sort_and_compress_refs): Call df_free_ref.
12011         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
12012         of df_ref_extract.
12013         (df_ref_create_structure): Allocate df_ref_extract if offset and
12014         width fields are used.
12015         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
12016         (df_uses_record): Get offset and width from ZERO_EXTRACT 
12017         and SIGN_EXTRACT.
12018         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
12019         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
12020         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12021         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
12022         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
12023         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12024         (df_ref_extract): New structure.
12025         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
12026         (df_ref_create): Add width and offset parameters.
12027         
12028 2008-03-05  Richard Guenther  <rguenther@suse.de>
12029
12030         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12031         Use ranges_overlap_p.
12032         (offset_overlaps_with_access): Rename
12033         to ranges_overlap_p and move ...
12034         * tree-flow-inline.h (ranges_overlap_p): ... here.
12035
12036         * tree.h (get_inner_reference, handled_component_p): Update
12037         comments.
12038
12039         * tree.h (record_component_aliases, get_alias_set,
12040         alias_sets_conflict_p, alias_sets_must_conflict_p,
12041         objects_must_conflict_p): Move declarations ...
12042         * alias.h (record_component_aliases, get_alias_set,
12043         alias_sets_conflict_p, alias_sets_must_conflict_p,
12044         objects_must_conflict_p): ... here.
12045         Include coretypes.h.
12046         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
12047
12048 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
12049
12050         * cfg.c: Include tree-flow.h.
12051         (remove_edge_raw): Call redirect_edge_var_map_clear.
12052         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
12053         * tree-flow-inline.h (redirect_edge_var_map_def): New.
12054         (redirect_edge_var_map_result): New.
12055         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12056         PENDING_STMT use with redirect_edge_var_map_*.
12057         * tree-ssa.c (edge_var_maps): New definition.
12058         (redirect_edge_var_map_add): New.
12059         (redirect_edge_var_map_clear): New.
12060         (redirect_edge_var_map_dup): New.
12061         (redirect_edge_var_map_vector): New.
12062         (redirect_edge_var_map_destroy): New.
12063         (ssa_redirect_edge): Replace PENDING_STMT use with
12064         redirect_edge_var_map_*.
12065         (flush_pending_stmts): Same.
12066         (delete_tree_ssa): Destroy edge var map.
12067         * tree-flow.h (struct _edge_var_map): New.
12068         Define edge_var_map vector type.
12069         Declare redirect_edge_var_map_* prototypes.
12070         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12071         * tree-cfg.c (reinstall_phi_args): Replace
12072         PENDING_STMT use with redirect_edge_var_map_*.
12073
12074 2008-03-05  Richard Guenther  <rguenther@suse.de>
12075
12076         PR tree-optimization/35472
12077         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12078         whose single use_stmt has a overlapping set of loaded and
12079         stored symbols as that use_stmt might be a noop assignment then.
12080
12081 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
12082
12083         * gthr-rtems.h: Implement __gthread_mutex_destroy.
12084
12085 2008-03-05  Richard Guenther  <rguenther@suse.de>
12086
12087         PR c++/35336
12088         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12089         should be constants.
12090         * tree-cfg.c (verify_expr): Verify it.
12091         * fold-const.c (fold_truthop): Remove code generating
12092         BIT_FIELD_REFs of structure bases.
12093         (fold_binary): Likewise.
12094         (fold_ternary): Position and size of BIT_FIELD_REFs are
12095         always host integers.
12096         (make_bit_field_ref): Remove.
12097         (optimize_bit_field_compare): Remove.
12098         (all_ones_mask_p): Remove.
12099
12100 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
12101
12102         PR gcc/33009
12103         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12104         (split_block_and_df_analyze): New. Split basic block and rebuild
12105         dataflow.
12106         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12107         SPLIT_BLOCK.
12108         (split_pattern_seq): Likewise.
12109         (erase_matching_seqs): Likewise.
12110         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12111
12112 2008-03-04  Geoff Keating  <geoffk@apple.com>
12113
12114         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12115         declaration and code.
12116         (tree_invalid_nonnegative_warnv_p): Likewise.
12117
12118 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
12119
12120         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12121         examples.  Truncate option-names then causing overfull hbox.
12122
12123 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12124
12125         PR target/35222
12126         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12127         on hpux10.
12128         * configure: Rebuilt.
12129
12130 2008-03-04  Rafael Espindola  <espindola@google.com>
12131
12132         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12133         (tree_unary_nonnegative_warnv_p): New.
12134         (tree_binary_nonnegative_warnv_p): New.
12135         (tree_single_nonnegative_warnv_p): New.
12136         (tree_invalid_nonnegative_warnv_p): New.
12137         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12138
12139 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12140
12141         PR 28322
12142         * opts.c (handle_option): Postpone 'unknown option' errors only for
12143         warning options.
12144
12145 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
12146
12147         PR target/35453
12148         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12149         (_SIDD_XXX): This.
12150
12151 2008-03-04  Rafael Espindola  <espindola@google.com>
12152
12153         * fold-const.c (tree_unary_nonzero_warnv_p): New.
12154         (tree_binary_nonzero_warnv_p): New.
12155         (tree_single_nonzero_warnv_p): New.
12156         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12157
12158 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
12159
12160         PR middle-end/35456
12161         * fold-const.c (fold_cond_expr_with_comparison): Prevent
12162         transformations for modes that have signed zeros.
12163         * ifcvt.c (noce_try_abs): Ditto.
12164
12165 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
12166
12167         * config/i386/i386.c (override_options): Force
12168         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12169
12170 2008-03-04  Jan Hubicka  <jh@suse.cz>
12171
12172         PR c++/35262
12173         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12174         in last commit.
12175
12176 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
12177
12178         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
12179         label to probe the stack.
12180
12181 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
12182
12183         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12184         (__gthr_win32_mutex_destroy): Declare.
12185         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12186         __gthr_win32_mutex_destroy.
12187         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
12188
12189 2008-03-03  Jan Hubicka  <jh@suse.cz>
12190
12191         PR c++/35262
12192         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12193         aggressive on inlining cold calls.
12194
12195 2008-03-03  Richard Guenther  <rguenther@suse.de>
12196
12197         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
12198         struct copies into the expression table.
12199         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
12200         (try_to_simplify): Likewise.
12201         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
12202         integral and pointer arguments which do not change the
12203         precision to NOP_EXPRs.
12204         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
12205         VIEW_CONVERT_EXPR case.
12206
12207 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
12208
12209         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
12210         defined in a loop at depth 0 is invariant.
12211         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12212         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
12213         be called at loop depth 0.
12214
12215 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
12216
12217         PR driver/35420
12218         * gcc.c (process_command): Update copyright notice dates.
12219         * gcov.c (print_version): Likewise.
12220         * gcov-dump.c (print_version): Likewise.
12221         * mips-tfile.c (main): Likewise.
12222         * mips-tdump.c (main): Likewise.
12223
12224 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12225
12226         PR 24924
12227         * c-common.c (flag_permissive): Delete.
12228         (constant_expression_warnings): Check flags first.
12229         (constant_expression_error): New.
12230         * c-common.h (flag_permissive): Delete.
12231         (constant_expression_error): Declare.
12232         * flags.h (flag_permissive): Declare. Update description.
12233         * diagnostic.c (pedwarn): Update.
12234         (permerror): New.
12235         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12236         (permissive_error_kind): New.
12237         * toplev.c (flag_permissive): Define. Update description.
12238         * toplev.h (permissive_error_kind): Declare.
12239         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12240         (pedwarn_c90): Use pedantic_warning_kind.
12241         * c-opts.c (c_common_post_options): flag_permissive does not affect
12242         flag_pedantic_errors.
12243
12244 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
12245
12246         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12247         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12248         __absvsi2, __absvDI2): Use unsigned arithmetic.
12249
12250 2008-03-02  Andi Kleen  <ak@suse.de>
12251             Richard Guenther  <rguenther@suse.de>
12252
12253         * struct-equiv.c: Remove file.
12254         * cfg_cleanup.c (condjump_equiv_p): Remove.
12255         * Makefile.in (OBJS-common): Remove struct-equiv.o.
12256         (struct-equiv.o): Remove rule.
12257         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12258         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
12259         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12260
12261 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12262
12263         * ifcvt.c (noce_process_if_block): Try to handle only the then
12264         block if the else block exists but isn't suitable.
12265
12266 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12267
12268         PR gcc/35063
12269         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12270         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12271         regression from previous patch.
12272
12273 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12274
12275         PR gcc/35063
12276         * gthr.h: Add __gthread_mutex_destroy as a function that must be
12277         implemented.
12278         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12279         * gthr-single.h (__gthread_mutex_destroy): Likewise.
12280         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12281         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12282         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12283         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12284         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12285         (__gthread_mutex_destroy_function): Rename to
12286         __gthread_mutex_destroy.
12287         * gthr-dce.h (__gthread_mutex_destroy): Call
12288         pthread_mutex_destroy.
12289         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12290         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12291         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12292
12293 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12294
12295         * df-scan.c (df_ref_chain_change_bb): Simplify.
12296         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
12297         set_block_for_insn if there's any change.
12298         * df.h ((df_insn_change_bb): Fix prototype.
12299         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12300         df_insn_change_bb, don't call set_block_for_insn.
12301         * emit-rtl.c (reorder_insns): Likewise.
12302         * haifa-sched.c (move_insn): Likewise.
12303
12304 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12305
12306         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12307
12308 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12309
12310         * tree-flow-inline.h (next_readonly_imm_use): Return
12311         NULL_USE_OPERAND_P after the end.
12312
12313 2008-03-01  Richard Guenther  <rguenther@suse.de>
12314
12315         PR tree-optimization/35411
12316         * tree-sra.c (sra_build_assignment): Split conversion to
12317         final type to a separate statement if we are not assigning
12318         to a register.
12319
12320 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12321
12322         * fold-const.c (fold_convertible_p): Correct the logic to follow
12323         that in fold_convert().
12324
12325 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
12326
12327         PR c++/35315
12328         * tree-inline.c (build_duplicate_type): When we make a
12329         duplicate type, make it unique in the canonical types system.
12330
12331 2008-02-29  Tom Tromey  <tromey@redhat.com>
12332
12333         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12334         input_file_stack_history, input_file_stack_restored): Remove.
12335         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12336         * input.h (struct file_stack): Remove.
12337         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12338         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12339         Likewise.
12340         * diagnostic.h (struct diagnostic_context) <last_module>: Change
12341         type.
12342         (diagnostic_last_module_changed): Add 'map' argument.
12343         (diagnostic_set_last_function): Likewise.
12344         * diagnostic.c (undiagnostic_report_current_module): Iterate using
12345         line map, not input_file_stack.
12346         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12347
12348 2008-02-29  Paul Brook  <paul@codesourcery.com>
12349
12350         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12351
12352 2008-02-29  Paul Brook  <paul@codesourcery.com>
12353
12354         * config/arm/ieee754-df.S (muldf3): Use RET macros.
12355
12356 2008-02-29  Richard Guenther  <rguenther@suse.de>
12357
12358         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12359         vn_lookup_or_add.
12360         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12361         value for comparing for a store match.
12362         (simplify_unary_expression): Do nothing for SSA_NAMEs.
12363         (try_to_simplify): Do not do a full-blown reference lookup.
12364
12365 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12366
12367         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12368         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12369
12370         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12371
12372 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
12373
12374         * tree-loop-linear.c (try_interchange_loops): Compare memory access
12375         strides against cache sizes.
12376
12377 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12378
12379         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12380         constant to fpul.
12381
12382 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
12383
12384         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12385         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12386         is smaller than the original promoted value.
12387         (simplify_subreg): If OP is a SUBREG, try to preserve its
12388         SUBREG_PROMOTED_VAR_P information.
12389
12390 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
12391
12392         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12393         (VN_INFO_GET): Allocate new objects on the obstack.
12394         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
12395         for rpo_numbers_temp, for consistency.
12396         (free_scc_vn): Free the obstack.
12397
12398 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
12399
12400         * doc/invoke.texi: Document -ftree-loop-distribution.
12401         * tree-loop-distribution.c: New.
12402         * tree-pass.h (pass_loop_distribution): New.
12403         * graphds.h (struct graph): Add htab_t indices.
12404         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12405         * tree-vectorizer.c (rename_variables_in_loop): Extern.
12406         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12407         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12408         * tree-data-ref.c (debug_data_dependence_relations): New.
12409         (dump_data_dependence_relation): Also print data references.
12410         (free_data_ref): Extern.
12411         (same_access_functions): Moved...
12412         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12413         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12414         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12415         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12416         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12417         (stmts_from_loop): Skip LABEL_EXPR.
12418         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12419         New.
12420         (build_rdg): Initialize rdg->indices htab.
12421         (free_rdg, stores_from_loop, ref_base_address,
12422         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12423         have_similar_memory_accesses_1, ref_base_address_1,
12424         remove_similar_memory_refs): New.
12425         * tree-data-ref.h: Depend on tree-chrec.h.
12426         (debug_data_dependence_relations, free_data_ref): Declared.
12427         (same_access_functions): ... here.
12428         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12429         New.
12430         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12431         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12432         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12433         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12434         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12435         rdg_vertex_for_stmt): Declared.
12436         (struct rdg_edge): Add level.
12437         (RDGE_LEVEL): New.
12438         (free_rdg, stores_from_loop, remove_similar_memory_refs,
12439         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12440         Declared.
12441         (rdg_has_similar_memory_accesses): New.
12442         * tree-vect-analyze.c: Remove unused static decls.
12443         * lambda.h (dependence_level): New.
12444         * common.opt (ftree-loop-distribution): New.
12445         * tree-flow.h (mark_virtual_ops_in_bb, 
12446         slpeel_tree_duplicate_loop_to_edge_cfg,
12447         rename_variables_in_loop): Declared.
12448         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12449         (OBJS-common): Add tree-loop-distribution.o.
12450         (tree-loop-distribution.o): New rule.
12451         * tree-cfg.c (mark_virtual_ops_in_bb): New.
12452         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12453         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12454
12455 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
12456
12457         PR target/33963
12458         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12459         other than structures and unions.
12460
12461 2008-02-28  Richard Guenther  <rguenther@suse.de>
12462
12463         Revert:
12464         2008-02-26  Richard Guenther  <rguenther@suse.de>
12465
12466         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12467         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12468         (lookup_decl_from_uid): Declare.
12469         (remove_decl_from_map): Likewise.
12470         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12471         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12472         (decl_for_uid_map): New global hashtable mapping DECL_UID
12473         to the decl tree.
12474         (init_ttree): Allocate it.
12475         (insert_decl_to_uid_decl_map): New helper function.
12476         (make_node_stat): Insert new decls into the map.
12477         (copy_node_stat): Likewise.
12478         (lookup_decl_from_uid): New function.
12479         (remove_decl_from_map): Likewise.
12480         (print_decl_for_uid_map_statistics): New helper.
12481         (dump_tree_statistics): Call it.
12482
12483         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12484         (referenced_var_iterator): Adjust.
12485         (FOR_EACH_REFERENCED_VAR): Adjust.
12486         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12487         (num_referenced_vars): Adjust.
12488         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12489         (first_referenced_var): Remove.
12490         (end_referenced_vars_p): Likewise.
12491         (next_referenced_var): Likewise.
12492         (referenced_var_iterator_set): New helper function.
12493         * tree-dfa.c (referenced_var_lookup): Adjust.
12494         (referenced_var_check_and_insert): Likewise.
12495         (remove_referenced_var): Likewise.
12496         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12497         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12498         (verify_call_clobbering): Likewise.
12499         (verify_memory_partitions): Likewise.
12500         (init_tree_ssa): Allocate bitmap instead of hashtable for
12501         referenced_vars.
12502         (delete_tree_ssa): Adjust.
12503         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12504         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12505         (compute_tag_properties): Likewise.
12506         (set_initial_properties): Likewise.
12507         (find_partition_for): Likewise.
12508         (update_reference_counts): Likewise.
12509         (dump_may_aliases_for): Likewise.
12510         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12511         (add_call_clobber_ops): Likewise.
12512         (add_call_read_ops): Likewise.
12513         (get_asm_expr_operands): Likewise.
12514         * tree-into-ssa.c (dump_decl_set): Likewise.
12515         (update_ssa): Likewise.
12516         * tree-sra.c (scan_function): Likewise.
12517         (decide_instantiations): Likewise.
12518         (scalarize_parms): Likewise.
12519         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12520         (dsa_named_for): Likewise.
12521         * tree-ssa-structalias.c (update_alias_info): Likewise.
12522         (merge_smts_into): Likewise.
12523
12524 2008-02-27  David Daney  <ddaney@avtrex.com>
12525
12526         PR target/34409
12527         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12528         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12529         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12530         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12531         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12532
12533 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
12534
12535         PR target/25477
12536         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12537         (BUILT_IN_NEXTTOWARD): Remove.
12538         (BUILT_IN_NEXTTOWARDF): Ditto.
12539         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12540         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
12541
12542 2008-02-27  Tom Tromey  <tromey@redhat.com>
12543
12544         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12545         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12546
12547 2008-02-27  Jan Beulich  <jbeulich@novell.com>
12548
12549         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12550         update the respective field on newdecl.
12551
12552 2008-02-27  Revital Eres  <eres@il.ibm.com>
12553
12554         PR rtl-optimization/34999
12555         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12556         crossing edges that ends with a call insn.
12557         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12558         call insn and clear the EDGE_CROSSING flag of the crossing edge
12559         when fixing fallthru edges.
12560
12561 2008-02-27  Richard Guenther  <rguenther@suse.de>
12562
12563         PR middle-end/35390
12564         * fold-const.c (fold_unary): Return the correct argument,
12565         converted to the result type.
12566
12567 2008-02-27  Richard Guenther  <rguenther@suse.de>
12568
12569         PR middle-end/34971
12570         * expr.c (expand_expr_real_1): Assert on rotates that operate
12571         on partial modes.
12572         * fold-const.c (fold_binary): Use the types precision, not the
12573         bitsize of the mode if folding rotate expressions.  Build rotates
12574         only for full modes.
12575
12576 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
12577
12578         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12579         and CPP_PRAGMA_EOL.
12580         * c-pragma.c (pragma_ns_name): New typedef.
12581         (registered_pp_pragmas): New variable.
12582         (c_pp_lookup_pragma): New function.
12583         (c_register_pragma_1): If flag_preprocess_only, do nothing
12584         for non-expanded pragmas, for expanded ones push pragma's
12585         namespace and name into registered_pp_pragmas vector.
12586         (c_invoke_pragma_handler): Register OpenMP pragmas even when
12587         flag_preprocess_only, don't register GCC pch_preprocess
12588         pragma if flag_preprocess_only.
12589         * c-opts.c (c_common_init): Call init_pragma even if
12590         flag_preprocess_only.
12591         * c-pragma.c (c_pp_lookup_pragma): New prototype.
12592         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12593         cpp_register_pragma if flag_preprocess_only.
12594
12595 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12596
12597         PR c/28800
12598         * c-parser.c (c_parser_translation_unit): Warn for empty
12599         translation unit, not empty source file.
12600
12601 2008-02-26  Paul Brook  <paul@codesourcery.com>
12602
12603         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12604         operand for Thumb-2.
12605         * config/arm/arm.h (reg_class): Add CORE_REGS.
12606         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12607         (BASE_REG_CLASS): Use CORE_REGS.
12608         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12609         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12610         (REGNO_OK_FOR_INDEX_P): Exclude SP.
12611         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
12612         ARM_REGNO_OK_FOR_INDEX_P.
12613         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12614         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12615         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12616         (ldm/stm peepholes): Ditto.
12617         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12618         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12619         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12620         * config/arm/constraints.md: Enable "k" constraint on ARM.
12621
12622 2008-02-27  Ben Elliston  <bje@au.ibm.com>
12623
12624         * config/rs6000/rs6000.c: Annotate cache line size field in all
12625         instances of struct processor_costs.
12626
12627 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
12628
12629         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12630         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12631         jump_bypass): New counters.
12632         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12633         * dce.c (gate_ud_dce): Same.
12634         (gate_fast_dce): Same.
12635         * dse.c (gate_dse1): New function.
12636         (gate_dse2): New function.
12637         (gate_dse): Merge results of new gate functions.
12638         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12639         (gate_handle_jump_bypass): Add dbg_cnt.
12640         (gate_handle_gcse): Add dbg_cnt.
12641         * ifcvt.c (gate_handle_if_conversion): Same.
12642         (gate_handle_if_after_combine): Same.
12643         (gate_handle_if_after_reload): Same.
12644         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12645
12646 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
12647
12648         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12649         line sizes.
12650         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12651
12652 2008-02-26  Jason Merrill  <jason@redhat.com>
12653
12654         PR c++/35315
12655         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
12656         alone if it's the naming decl for the type's main variant.
12657
12658 2008-02-26  Tom Tromey  <tromey@redhat.com>
12659
12660         * system.h (USE_MAPPED_LOCATION): Poison.
12661         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12662         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12663         (make_goto_expr_edges): Likewise.
12664         (remove_bb): Likewise.
12665         (execute_warn_function_return): Likewise.
12666         * basic-block.h (struct edge_def) <goto_locus>: Change type to
12667         location_t.
12668         * c-common.c (fname_decl): Remove old location code.
12669         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12670         location code.
12671         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12672         variant.
12673         (ASM_INPUT_SOURCE_LOCATION): Likewise.
12674         (gen_rtx_ASM_INPUT): Likewise.
12675         (gen_rtx_ASM_INPUT_loc): Likewise.
12676         (get_rtx_asm_OPERANDS): Remove.
12677         * cfglayout.c (insn_locators_alloc): Remove old location code.
12678         (set_curr_insn_source_location): Likewise.
12679         (curr_insn_locator): Likewise.
12680         * print-tree.c (print_node): Remove old location code.
12681         * tree-mudflap.c (mf_varname_tree): Remove old location code.
12682         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12683         * cfgexpand.c (expand_gimple_cond_expr): Don't use
12684         location_from_locus.
12685         (construct_exit_block): Remove old location code.
12686         * emit-rtl.c (force_next_line_note): Remove old location code.
12687         * profile.c (branch_prob): Remove old location code.
12688         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12689         LOC_LINE): Remove old-location variants.
12690         * langhooks.c (lhd_print_error_function): Remove old location
12691         code.
12692         * configure, config.in: Rebuilt.
12693         * configure.ac (--enable-mapped-location): Remove.
12694         * c-decl.c (c_init_decl_processing): Remove old location code.
12695         (finish_function): Likewise.
12696         * recog.c (decode_asm_operands): Remove old location code.
12697         * c-pch.c (c_common_read_pch): Remove old location code.
12698         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12699         variants.
12700         * gimple-low.c (lower_function_body): Remove old location code.
12701         * toplev.c (unknown_location): Remove.
12702         (push_srcloc): Remove old-location variant.
12703         (process_options): Remove old location code.
12704         (lang_dependent_init): Likewise.
12705         * input.h (UNKNOWN_LOCATION): Move definition.
12706         (location_t): Undeprecate.
12707         (source_locus): Remove.
12708         (location_from_locus): Remove.
12709         (struct location_s): Remove.
12710         Remove all old-location code.
12711         (input_line, input_filename): Remove.
12712         * final.c (final_scan_insn): Remove old location code.
12713         * diagnostic.c (diagnostic_build_prefix): Remove
12714         USE_MAPPED_LOCATION test.
12715         * tree.h (gimple_stmt) <locus>: Now a location_t.
12716         (tree_exp) <locus>: Likewise.
12717         (DECL_IS_BUILTIN): Remove old-location variant.
12718         (annotate_with_file_line, annotate_with_locus): Likewise.
12719         (expr_locus, set_expr_locus): Update.
12720         * tree.c (build1_stat): Remove old location code.
12721         (last_annotated_node): Remove.
12722         (annotate_with_file_line): Remove old-location variant.
12723         (annotate_with_locus): Likewise.
12724         (expr_location): Remove old location code.
12725         (set_expr_location): Likewise.
12726         (expr_has_location): Likewise.
12727         (expr_locus): Likewise.
12728         (set_expr_locus): Likewise.
12729         (expr_filename): Don't use location_from_locus.
12730         (expr_lineno): Likewise.
12731         * rtl-error.c (location_for_asm): Remove old location code.
12732         * c-lex.c (cb_line_change): Remove old location code.
12733         (fe_file_change): Likewise.
12734         (cb_def_pragma): Likewise.
12735         (c_lex_with_flags): Likewise.
12736         * gengtype.c (do_typedef): Don't special-case location types.
12737         (define_location_structures): Remove.
12738         (main): Don't call define_location_structures.
12739         * tree-pretty-print.c (dump_implicit_edges): Remove old location
12740         code.
12741
12742 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12743
12744         PR 26264
12745         * builtins.def (BUILT_IN_STDARG_START): Remove.
12746         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12747         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12748         * tree-inline.c (inline_forbidden_p_1): Likewise.
12749         
12750 2008-02-26  Richard Guenther  <rguenther@suse.de>
12751
12752         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12753         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12754         (lookup_decl_from_uid): Declare.
12755         (remove_decl_from_map): Likewise.
12756         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12757         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12758         (decl_for_uid_map): New global hashtable mapping DECL_UID
12759         to the decl tree.
12760         (init_ttree): Allocate it.
12761         (insert_decl_to_uid_decl_map): New helper function.
12762         (make_node_stat): Insert new decls into the map.
12763         (copy_node_stat): Likewise.
12764         (lookup_decl_from_uid): New function.
12765         (remove_decl_from_map): Likewise.
12766         (print_decl_for_uid_map_statistics): New helper.
12767         (dump_tree_statistics): Call it.
12768
12769         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12770         (referenced_var_iterator): Adjust.
12771         (FOR_EACH_REFERENCED_VAR): Adjust.
12772         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12773         (num_referenced_vars): Adjust.
12774         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12775         (first_referenced_var): Remove.
12776         (end_referenced_vars_p): Likewise.
12777         (next_referenced_var): Likewise.
12778         (referenced_var_iterator_set): New helper function.
12779         * tree-dfa.c (referenced_var_lookup): Adjust.
12780         (referenced_var_check_and_insert): Likewise.
12781         (remove_referenced_var): Likewise.
12782         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12783         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12784         (verify_call_clobbering): Likewise.
12785         (verify_memory_partitions): Likewise.
12786         (init_tree_ssa): Allocate bitmap instead of hashtable for
12787         referenced_vars.
12788         (delete_tree_ssa): Adjust.
12789         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12790         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12791         (compute_tag_properties): Likewise.
12792         (set_initial_properties): Likewise.
12793         (find_partition_for): Likewise.
12794         (update_reference_counts): Likewise.
12795         (dump_may_aliases_for): Likewise.
12796         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12797         (add_call_clobber_ops): Likewise.
12798         (add_call_read_ops): Likewise.
12799         (get_asm_expr_operands): Likewise.
12800         * tree-into-ssa.c (dump_decl_set): Likewise.
12801         (update_ssa): Likewise.
12802         * tree-sra.c (scan_function): Likewise.
12803         (decide_instantiations): Likewise.
12804         (scalarize_parms): Likewise.
12805         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12806         (dsa_named_for): Likewise.
12807         * tree-ssa-structalias.c (update_alias_info): Likewise.
12808         (merge_smts_into): Likewise.
12809
12810 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12811
12812         PR 34351
12813         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12814         * c-opts.c (c_common_handle_option): Wall enables
12815         Wvolatile-register-var.
12816         * common.opt: Move Wvolatile-register-var to...
12817         * c.opt: ...here.
12818         
12819 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12820
12821         * common.opt (Wlarger-than=): New.
12822         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12823         -Wlarger-than=.
12824         * opts.c (common_handle_option): Handle -Wlarger-than=.
12825         * optc-gen.awk: Likewise.
12826         * opth-gen.awk: Likewise.
12827         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12828         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12829         
12830 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12831
12832         * c-common.c (match_case_to_enum_1): Add appropriate
12833         OPT_W* parameter to warning.
12834         (c_do_switch_warnings): Likewise.
12835         * c-typeck.c (warning_init): Add one more parameter following
12836         'warning' function.
12837         (push_init_level): Update call to warning_init.
12838         (pop_init_level): Likewise.
12839         (add_pending_init): Likewise.
12840         (output_init_element: Likewise.
12841
12842 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12843
12844         PR 28322
12845         * toplev.c (toplev_main): If there are warnings or error, print
12846         errors for ignored options.
12847         * opts.c (ignored_options): New static variable.
12848         (postpone_unknown_option_error): New.
12849         (print_ignored_options): New.
12850         (handle_option): Postpone errors for unknown -Wno-* options.
12851         * opts.h (print_ignored_options): Declare.
12852         
12853 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12854
12855         * config/mips/mips.md (loadgp_blockage, blockage): Change type
12856         to "ghost".
12857
12858 2008-02-25  Richard Guenther  <rguenther@suse.de>
12859
12860         Revert:
12861         2008-02-25  Richard Guenther  <rguenther@suse.de>
12862
12863         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12864         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12865         (lookup_decl_from_uid): Declare.
12866         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12867         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12868         (decl_for_uid_map): New global hashtable mapping DECL_UID
12869         to the decl tree.
12870         (init_ttree): Allocate it.
12871         (insert_decl_to_uid_decl_map): New helper function.
12872         (make_node_stat): Insert new decls into the map.
12873         (copy_node_stat): Likewise.
12874         (lookup_decl_from_uid): New function.
12875         (print_decl_for_uid_map_statistics): New helper.
12876         (dump_tree_statistics): Call it.
12877
12878         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12879         (referenced_var_iterator): Adjust.
12880         (FOR_EACH_REFERENCED_VAR): Adjust.
12881         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12882         (num_referenced_vars): Adjust.
12883         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12884         (first_referenced_var): Remove.
12885         (end_referenced_vars_p): Likewise.
12886         (next_referenced_var): Likewise.
12887         (referenced_var_iterator_set): New helper function.
12888         * tree-dfa.c (referenced_var_lookup): Adjust.
12889         (referenced_var_check_and_insert): Likewise.
12890         (remove_referenced_var): Likewise.
12891         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12892         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12893         (verify_call_clobbering): Likewise.
12894         (verify_memory_partitions): Likewise.
12895         (init_tree_ssa): Allocate bitmap instead of hashtable for
12896         referenced_vars.
12897         (delete_tree_ssa): Adjust.
12898         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12899         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12900         (compute_tag_properties): Likewise.
12901         (set_initial_properties): Likewise.
12902         (find_partition_for): Likewise.
12903         (update_reference_counts): Likewise.
12904         (dump_may_aliases_for): Likewise.
12905         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12906         (add_call_clobber_ops): Likewise.
12907         (add_call_read_ops): Likewise.
12908         (get_asm_expr_operands): Likewise.
12909         * tree-into-ssa.c (dump_decl_set): Likewise.
12910         (update_ssa): Likewise.
12911         * tree-sra.c (scan_function): Likewise.
12912         (decide_instantiations): Likewise.
12913         (scalarize_parms): Likewise.
12914         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12915         (dsa_named_for): Likewise.
12916         * tree-ssa-structalias.c (update_alias_info): Likewise.
12917         (merge_smts_into): Likewise.
12918
12919 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12920
12921         PR fortran/29549
12922         * doc/invoke.texi (-fcx-limited-range): Document new option.
12923         * toplev.c (process_options): Handle -fcx-fortran-rules.
12924         * common.opt: Add documentation for -fcx-fortran-rules.
12925
12926 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12927
12928         PR c/35162
12929         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12930         actual behaviour and C99.
12931         
12932 2008-02-26  Ben Elliston  <bje@au.ibm.com>
12933
12934         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12935         (ASM_CPU_POWER6_SPEC): Likewise.
12936         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12937         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12938         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12939
12940 2008-02-25  Richard Guenther  <rguenther@suse.de>
12941
12942         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12943         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12944         (lookup_decl_from_uid): Declare.
12945         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12946         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12947         (decl_for_uid_map): New global hashtable mapping DECL_UID
12948         to the decl tree.
12949         (init_ttree): Allocate it.
12950         (insert_decl_to_uid_decl_map): New helper function.
12951         (make_node_stat): Insert new decls into the map.
12952         (copy_node_stat): Likewise.
12953         (lookup_decl_from_uid): New function.
12954         (print_decl_for_uid_map_statistics): New helper.
12955         (dump_tree_statistics): Call it.
12956
12957         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12958         (referenced_var_iterator): Adjust.
12959         (FOR_EACH_REFERENCED_VAR): Adjust.
12960         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12961         (num_referenced_vars): Adjust.
12962         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12963         (first_referenced_var): Remove.
12964         (end_referenced_vars_p): Likewise.
12965         (next_referenced_var): Likewise.
12966         (referenced_var_iterator_set): New helper function.
12967         * tree-dfa.c (referenced_var_lookup): Adjust.
12968         (referenced_var_check_and_insert): Likewise.
12969         (remove_referenced_var): Likewise.
12970         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12971         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12972         (verify_call_clobbering): Likewise.
12973         (verify_memory_partitions): Likewise.
12974         (init_tree_ssa): Allocate bitmap instead of hashtable for
12975         referenced_vars.
12976         (delete_tree_ssa): Adjust.
12977         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12978         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12979         (compute_tag_properties): Likewise.
12980         (set_initial_properties): Likewise.
12981         (find_partition_for): Likewise.
12982         (update_reference_counts): Likewise.
12983         (dump_may_aliases_for): Likewise.
12984         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12985         (add_call_clobber_ops): Likewise.
12986         (add_call_read_ops): Likewise.
12987         (get_asm_expr_operands): Likewise.
12988         * tree-into-ssa.c (dump_decl_set): Likewise.
12989         (update_ssa): Likewise.
12990         * tree-sra.c (scan_function): Likewise.
12991         (decide_instantiations): Likewise.
12992         (scalarize_parms): Likewise.
12993         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12994         (dsa_named_for): Likewise.
12995         * tree-ssa-structalias.c (update_alias_info): Likewise.
12996         (merge_smts_into): Likewise.
12997
12998 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
12999
13000         PR target/35258
13001         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
13002         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
13003         * alias.h (nonoverlapping_memrefs_p): Likewise.
13004
13005 2008-02-25  Jan Beulich  <jbeulich@novell.com>
13006
13007         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
13008         * config/i386/netware-libgcc.exp: Add __bswap?i2,
13009         __emultls_get_address, __emultls_register_common,
13010         __floatundi?f, and _Unwind_GetIPInfo.
13011         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
13012         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
13013         (gen_regparm_prefix): Likewise.
13014         (i386_nlm_encode_section_info): Sync with
13015         config/i386/winnt.c:i386_pe_encode_section_info().
13016         (i386_nlm_maybe_mangle_decl_assembler_name): New.
13017         i386_nlm_mangle_decl_assembler_name): New.
13018         (netware_override_options): New.
13019         * config/i386/netware.h (netware_override_options): Declare.
13020         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
13021         (i386_nlm_mangle_decl_assembler_name): Declare.
13022         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
13023
13024 2008-02-25  Ben Elliston  <bje@au.ibm.com>
13025
13026         PR other/32948
13027         * c-decl.c (grokdeclarator): Remove unused local variables
13028         `typedef_type' and `type_as_written'.
13029         * bb-reorder.c
13030         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
13031         unused local variable `has_hot_blocks'.
13032         (fix_crossing_conditional_branches): Remove unused local variable
13033         `prev_bb'.
13034         
13035 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
13036
13037         PR middle-end/19984
13038         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
13039         using DEF_C99_BUILTIN.
13040         (BUILT_IN_NANF): Ditto.
13041         (BUILT_IN_NANL): Ditto.
13042
13043 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
13044             Revital Eres  <eres@il.ibm.com>
13045
13046         * modulo-sched.c (calculate_must_precede_follow): Address TODO
13047         regarding the order of two dependent insns in the same row.
13048
13049 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
13050
13051         * stor-layout.c (layout_decl): Do not bump the alignment of a
13052         bit-field to more than byte alignment if it is packed.
13053
13054 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
13055
13056         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13057         e300c2 and e300c3.
13058
13059 2008-02-24  Diego Novillo  <dnovillo@google.com>
13060
13061         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13062
13063         PR 33738
13064         * tree-vrp.c (vrp_evaluate_conditional): With
13065         -Wtype-limits, emit a warning when comparing against a
13066         constant outside the natural range of OP0's type.
13067         * c.opt (Wtype-limits): Move ...
13068         * common.opt (Wtype-limits): ... here.
13069
13070 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
13071
13072         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13073         * config/rs6000/e300c2c3.md: New file.
13074         * config/rs6000/rs6000.c (processor_costs): Add new costs for
13075         e300c2 and e300c3.
13076         (rs6000_override_options): Add e300c2 and e300c3 cases to
13077         processor_target_table. Do not allow usage of Altivec or Spe
13078         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13079         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13080         * config/rs6000/rs6000.h (processor_type): Add
13081         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13082         (ASM_CPU_SPEC): Add e300c2 and e300c3.
13083         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13084         and ppce300c3. Include e300c2c3.md.
13085
13086 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
13087
13088         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13089         instead of TARGET_STRICT_ALIGN.
13090
13091 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
13092
13093         * explow.c (memory_address): Assert that the generated address is
13094         valid.
13095
13096 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13097
13098         PR target/25477
13099         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13100         * config/darwin-ppc-ldouble-patch.def: New file.
13101         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13102         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13103         SUBTARGET_INIT_BUILTINS if defined.
13104         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13105         New functions.
13106
13107 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13108
13109         PR rtl-opt/33512
13110         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13111         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13112
13113 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13114
13115         PR pch/35027
13116         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13117         file" warning condtional on -Winvalid-PCH.
13118
13119 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
13120
13121         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13122
13123 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
13124
13125         PR target/22076
13126         PR target/34256 
13127         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13128         prevent reload from using MMX registers.
13129         (*mov<mode>_internal): Ditto.
13130         (*movv2sf_internal_rex64): Ditto.
13131         (*movv2sf_internal): Ditto.
13132
13133 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13134
13135         PR documentation/31569
13136         * doc/install.texi2html: Use makeinfo --no-number-sections.
13137
13138 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13139
13140         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13141         ensure that we can address an entire entity > 8 bytes.  Don't
13142         generate reg+reg addressing for such data.
13143
13144 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13145
13146         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13147         strings when optimizing for size, unless the target cares about
13148         alignment.
13149
13150 2008-02-22  Tom Tromey  <tromey@redhat.com>
13151
13152         * regclass.c (current_pass): Remove declaration.
13153
13154 2008-02-22  Anatoly Sokolov <aesok@post.ru>
13155
13156         * config/avr/libgcc.S (__RAMPZ__): Define.
13157         (__do_copy_data): Add for devices with 128KB code memory.
13158
13159 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13160
13161         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13162         Use spe_abi.
13163         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13164
13165 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
13166
13167         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13168         GENNONACR_REGS.
13169
13170 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13171
13172         PR c/19999
13173         * c-typeck.c (build_binary_op): Warn about floating point
13174         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13175
13176 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
13177
13178         PR target/34526
13179         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13180         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13181         add vrsave.
13182         (rs6000_override_options): Set altivec_abi as default, not override,
13183         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13184         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13185         is used; use new member spe_abi.
13186         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13187         spe_abi and altivec_abi.
13188
13189 2008-02-22  Tomas Bily  <tbily@suse.cz>
13190
13191         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13192
13193 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13194
13195         PR bootstrap/35273
13196         * config.build (build_file_translate): Set to `CMD //c' only if
13197         it works.
13198         * Makefile.in (build_file_translate): Improve comment.
13199
13200 2008-02-21  Jan Hubicka  <jh@suse.cz>
13201
13202         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
13203         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
13204         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
13205
13206 2008-02-21  Michael Matz  <matz@suse.de>
13207
13208         PR target/35264
13209         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
13210
13211 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
13212
13213         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
13214         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
13215         as insn constraint.
13216         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
13217         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
13218         SSE_VEC_FLOAT_MODE_P as insn constraint.
13219         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
13220         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
13221         sse4a_movntdf using MODEF mode iterator.
13222         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
13223         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
13224         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
13225         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
13226         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
13227         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
13228         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
13229
13230 2008-02-21  Richard Guenther  <rguenther@suse.de>
13231
13232         * tree.def (PAREN_EXPR): New tree code.
13233         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13234         and PAREN_EXPR.
13235         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13236         * expr.c (expand_expr_real_1): Likewise.
13237         * tree-inline.c (estimate_num_insns_1): Likewise.
13238         * tree-complex.c (expand_complex_move): Likewise.
13239         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13240         as plain x.
13241
13242 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13243
13244         PR target/35225
13245         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13246
13247 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13248
13249         PR target/35190
13250         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13251
13252         * config/sh/sh.c (find_barrier): Don't go past
13253         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13254
13255 2008-02-20  DJ Delorie  <dj@redhat.com>
13256
13257         * config/h8300/h8300.md (insv): Force source operand to be a register.
13258
13259         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13260         as a jump, not as a plain insn.
13261         
13262 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
13263
13264         * doc/invoke.texi (Warning Options): Add new option
13265         -Wframe-larger-than=.
13266         (-Wframe-larger-than): Document.
13267
13268         * flags.h (warn_frame_larger_than, frame_larger_than_size):
13269         Add declarations for new option variables.
13270
13271         * final.c (final_start_function): Check the frame size
13272         before emission and issue a Wframe-larger-than warning.
13273
13274         * opts.c (warn_frame_larger_than, frame_larger_than_size):
13275         Add definitions for new option variables.
13276         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13277
13278         * common.opt (Wframe-larger-than=): New option.
13279
13280 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13281
13282         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13283         (<sse>_div<mode>3): Ditto.
13284         (<sse>_vmdiv<mode>3): Ditto.
13285         (<sse>_vmsqrt<mode>2): Ditto.
13286         (*smax<mode>3): Ditto.
13287         (sse5_frcz<mode>2): Ditto.
13288         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
13289         as insn constraint.
13290
13291 2008-02-20  Richard Guenther  <rguenther@suse.de>
13292
13293         PR middle-end/35265
13294         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13295         be happy with INTEGRAL_TYPE_P.
13296
13297 2008-02-20  Richard Guenther  <rguenther@suse.de>
13298
13299         * fold-const.c (split_tree): Associate floatig-point expressions
13300         if flag_associative_math is set.
13301
13302 2008-02-20  Richard Guenther  <rguenther@suse.de>
13303
13304         * tree.h (fold_real_zero_addition_p): Declare.
13305         * fold-const.c (fold_real_zero_addition_p): Export.
13306         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13307         floating-point operations with zero and one.
13308
13309 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
13310
13311         * doc/install.texi: Correct references to CFLAGS, replacing them
13312         with BOOT_CFLAGS.  Document flags used during bootstrap for
13313         target libraries.
13314                                 
13315 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13316
13317         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13318         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13319         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13320         insn constraint.
13321         (smin<mode>3): Ditto from similar patterns.
13322         (smax<mode>3): Ditto.
13323         (*ieee_smin<mode>3): Ditto.
13324         (*ieee_smax<mode>3): Ditto.
13325         * config/i386/sse.md (sse): New mode attribute.
13326         (mov<mode>): Macroize expander from movv4sf and movv2df using
13327         SSEMODEF2P mode iterator.
13328         (<sse>_movnt<mode>): Ditto from similar patterns. Use
13329         SSE_VEC_FLOAT_MODE_P as insn constraint.
13330         (storent<mode>): Ditto.
13331         (storent<mode>): Macroize expander from storentsf and storentdf using
13332         MODEF mode iterator.
13333         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13334         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13335         (abs<mode>2): Ditto from similar patterns.
13336         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13337         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13338         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13339         (<sse>_vmsqrt<mode>2): Ditto.
13340         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13341         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13342         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13343         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13344         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13345         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13346         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13347         insn constraint.
13348         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13349         iterator and SSE_FLOAT_MODE_P as insn constraint.
13350         (<sse>_ucomi): Ditto from similar patterns.
13351         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13352         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13353         SSE_VEC_FLOAT_MODE_P as insn constraint.
13354         (vcond<mode>): Ditto from similar patterns.
13355         (and<mode>3, *and<mode>3): Ditto.
13356         (<sse>_nand<mode>3): Ditto.
13357         (ior<mode>3, *ior<mode>3): Ditto.
13358         (xor<mode>3, *xor<mode>3): Ditto.
13359         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13360         iterator and SSE_FLOAT_MODE_P as insn constraint.
13361         (*nand<mode>3): Ditto from similar patterns.
13362         (*ior<mode>3): Ditto.
13363         (*xor<mode>3): Ditto.
13364
13365 2008-02-20  Ira Rosen  <irar@il.ibm.com>
13366
13367         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13368         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13369         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13370
13371 2008-02-19  Jan Hubicka  <jh@suse.cz>
13372
13373         * predict.c (tree_bb_level_predictions): Remove variable next
13374         mistakely introduced by previous commit.
13375
13376 2008-02-19  Jan Hubicka  <jh@suse.cz>
13377
13378         * predict.c (predict_paths_leading_to): Rewrite.
13379         (predict_paths_for_bb): New.
13380         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13381
13382 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13383
13384         PR bootstrap/35218
13385         * Makefile.in (build_file_translate): New.
13386         (gcc-vers.texi): Use it for translating $(abs_srcdir).
13387         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13388         * configure.ac (build_file_translate): Substitute it.
13389         * configure: Regenerate.
13390
13391 2008-02-19  Jan Hubicka  <jh@suse.cz>
13392
13393         PR rtl-optimization/34408
13394         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13395         invalid sharing.
13396
13397 2008-02-19  Jan Hubicka  <jh@suse.cz>
13398
13399         PR middle-end/28779
13400         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13401         call_expr.
13402
13403 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13404
13405         PR Ada/35186
13406         * config/i386/i386-modes.def: Revert the last DI alignment
13407         change until Ada people can look into it.
13408
13409 2008-02-19  Nick Clifton  <nickc@redhat.com>
13410
13411         * opts.c (print_specific_help): Fix typo in --help text.
13412
13413 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
13414
13415         PR target/35239
13416         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13417         32-bit inline asm without asm alternatives for host GCC < 3.0.
13418
13419 2008-02-19  Richard Guenther  <rguenther@suse.de>
13420
13421         PR tree-optimization/34989
13422         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13423         Allow propagation to INDIRECT_REF if we can simplify only.
13424
13425 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13426
13427         * c-common.c (warn_for_collisions_1): Use appropriate option when
13428         warning.
13429
13430 2008-02-19  Nick Clifton  <nickc@redhat.com>
13431
13432         PR other/31349
13433         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13434         (handle_options): Fix indentation.
13435         (print_filtered_help): If no language-specific options were
13436         displayed tell the user how to list all the options supported by
13437         the language's front-end.
13438         (print_specific_help): Fix indentation and remove duplicate line.
13439         (common_handle_option): Handle the -v option.
13440         For --help enable the display of undocumented options if the -v
13441         switch has been included on the command line.
13442         For --help= check for overlaps in the arguments between the option
13443         classes and the language names and issue a warning when they
13444         cannot be disambiguated.
13445         * c.opt (v): Pass on to the common option handler.
13446
13447 2008-02-19  Revital Eres  <eres@il.ibm.com> 
13448
13449         * modulo-sched.c (sms_schedule): Change dump message when
13450         create_ddg function fails.
13451         (try_scheduling_node_in_cycle): Rename row to cycle.
13452         (print_partial_schedule): Rename CYCLE to ROW.
13453
13454 2008-02-19  Christian Bruel  <christian.bruel@st.com>
13455             Zdenek Dvorak  <ook@ucw.cz>
13456
13457         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13458
13459 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13460
13461         PR target/33555
13462         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13463         (*x86_movdicc_0_m1_se): Ditto.
13464
13465 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13466
13467         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13468         (CMPtype): Define as __gcc_CMPtype.
13469         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13470         (CMPtype): Define as __gcc_CMPtype.
13471
13472 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
13473
13474         Support valgrind 3.3 for --enable-checking=valgrind.
13475         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13476         here.
13477         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13478         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13479         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13480         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13481         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13482         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13483         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13484         respectively.
13485         * ggc-zone.c: Similar.
13486         * ggc-page.c: Similar.
13487
13488 2008-02-19  Paul Brook  <paul@codesourcery.com>
13489
13490         PR target/35071
13491         * config/arm/ieee754-df.S: Fix do_it typo.
13492         * config/arm/ieee754-sf.S: Fix do_it typo.
13493
13494 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13495
13496         PR target/35189
13497         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13498         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13499         (OPTION_MASK_ISA_SSE_SET): Likewise.
13500         (OPTION_MASK_ISA_SSE2_SET): Likewise.
13501         (OPTION_MASK_ISA_SSE3_SET): Likewise.
13502         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13503         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13504         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13505         (OPTION_MASK_ISA_SSE4_SET): Likewise.
13506         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13507         (OPTION_MASK_ISA_SSE5_SET): Likewise.
13508         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13509         (OPTION_MASK_ISA_MMX_UNSET): Updated.
13510         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13511         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13512         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13513         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13514         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13515         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13516         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13517         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13518         (OPTION_MASK_ISA_SSE4): Removed.
13519         (ix86_handle_option): Turn on bits in ix86_isa_flags and
13520         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13521         (override_options): Don't turn on implied SSE/MMX bits in
13522         ix86_isa_flags.
13523
13524 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13525
13526         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13527         32bit host.
13528
13529 2008-02-18  Joey Ye  <joey.ye@intel.com>
13530
13531         PR middle-end/34921
13532         * tree-nested.c (insert_field_into_struct): Set type alignment
13533         to field alignment if the former is less than the latter.
13534
13535 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
13536
13537         * BASE-VER: Set to 4.4.0.
13538
13539 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13540
13541         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13542         * doc/cfg.texi: Likewise.
13543         * doc/extend.texi: Likewise.
13544         * doc/gty.texi: Likewise.
13545         * doc/invoke.texi: Likewise.
13546         * doc/loop.texi: Likewise.
13547         * doc/md.texi: Likewise.
13548         * doc/passes.texi: Likewise.
13549         * doc/rtl.texi: Likewise.
13550         * doc/sourcebuild.texi: Likewise.
13551         * doc/tm.texi: Likewise.
13552         * doc/tree-ssa.texi: Likewise.
13553
13554 2008-02-17  Richard Guenther  <rguenther@suse.de>
13555
13556         PR middle-end/35227
13557         * tree-complex.c (init_parameter_lattice_values): Handle parameters
13558         without default definition.
13559
13560 2008-02-17  Richard Guenther  <rguenther@suse.de>
13561
13562         PR tree-optimization/35231
13563         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13564         if A | B != 1.
13565
13566 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
13567
13568         Revert:
13569         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
13570         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13571         libgcc_cmp_return mode.
13572
13573 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13574
13575         PR c/28368
13576         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13577
13578 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
13579
13580         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13581         multilibs.
13582
13583 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13584
13585         * doc/c-tree.texi: Use `@.' where appropriate.
13586         * doc/extend.texi: Likewise.
13587         * doc/install.texi: Likewise.
13588         * doc/invoke.texi: Likewise.
13589         * doc/loop.texi: Likewise.
13590         * doc/makefile.texi: Likewise.
13591         * doc/md.texi: Likewise.
13592         * doc/passes.texi: Likewise.
13593         * doc/standards.texi: Likewise.
13594         * doc/tm.texi: Likewise.
13595
13596 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13597
13598         PR middle-end/35196
13599         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13600         in entry_bb.
13601         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13602         rather than in entry_bb.
13603
13604 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13605
13606         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13607         libgcc_cmp_return mode.
13608
13609 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13610
13611         PR middle-end/35130
13612         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13613         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13614
13615 2008-02-15  Richard Guenther  <rguenther@suse.de>
13616             Zdenek Dvorak  <ook@ucw.cz>
13617
13618         PR tree-optimization/35164
13619         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13620         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13621         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13622         Only propagate addresses which do not have abnormal SSA_NAMEs
13623         in their operands.
13624
13625 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
13626
13627         PR target/35088
13628         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13629
13630 2008-02-15  Jan Hubicka  <jh@suse.cz>
13631
13632         PR middle-end/35149
13633         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13634
13635 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13636
13637         PR middle-end/34621
13638         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13639         when calculating alignment_pad.
13640
13641 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13642
13643         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13644         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13645         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13646         and STACK_BOUNDARY define.
13647
13648 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
13649
13650         PR preprocessor/35061
13651         * c-pragma.c (handle_pragma_pop_macro): Check that
13652         pushed_macro_table has been allocated.
13653
13654 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13655
13656         PR middle-end/35136
13657         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13658         (force_gimple_operand): Likewise.
13659         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13660         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13661         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13662         (find_interesting_uses_address): Check addressability and alignment
13663         of the base expression only after substituting bases of IVs into it.
13664
13665 2008-02-14  Michael Matz  <matz@suse.de>
13666
13667         PR target/34930
13668         * function.c (instantiate_virtual_regs_in_insn): Reload address
13669         before falling back to reloading the whole operand.
13670
13671 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13672
13673         * config/s390/s390.c (s390_mainpool_start): Emit the pool
13674         before the first section switch note.
13675
13676 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13677
13678         * doc/bugreport.texi: Update copyright years.
13679         * doc/c-tree.texi: Likewise.
13680         * doc/cfg.texi: Likewise.
13681         * doc/cpp.texi: Likewise.
13682         * doc/cppinternals.texi: Likewise.
13683         * doc/fragments.texi: Likewise.
13684         * doc/frontends.texi: Likewise.
13685         * doc/gcc.texi: Likewise.
13686         * doc/gty.texi: Likewise.
13687         * doc/hostconfig.texi: Likewise.
13688         * doc/implement-c.texi: Likewise.
13689         * doc/libgcc.texi: Likewise.
13690         * doc/loop.texi: Likewise.
13691         * doc/makefile.texi: Likewise.
13692         * doc/options.texi: Likewise.
13693         * doc/passes.texi: Likewise.
13694         * doc/rtl.texi: Likewise.
13695         * doc/sourcebuild.texi: Likewise.
13696         * doc/standards.texi: Likewise.
13697         * doc/tree-ssa.texi: Likewise.
13698         * doc/trouble.texi: Likewise.
13699
13700         * doc/extend.texi: Use @: or add comma where appropriate.
13701         * doc/invoke.texi: Likewise.
13702         * doc/tm.texi: Likewise.
13703
13704 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
13705
13706         PR target/34393
13707         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13708         to a reg.
13709
13710 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
13711
13712         * doc/md.texi (clz, ctz): Add reference.
13713         * doc/rtl.texi (clz, ctz): Likewise.
13714
13715 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13716
13717         PR other/35148
13718         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13719         srcdir.
13720
13721 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
13722
13723         * config/s390/s390.c (struct constant_pool): New field
13724         emit_pool_after added.
13725         (s390_mainpool_start): Set the emit_pool_after flag according
13726         to the section switch notes.
13727         (s390_mainpool_finish): Consider emit_pool_after when emitting
13728         the literal pool at the end of the function.
13729         (s390_chunkify_start): Force literal pool splits at section
13730         switch notes.
13731
13732 2008-02-13  Michael Matz  <matz@suse.de>
13733
13734         PR debug/35065
13735         * var-tracking.c (clobber_variable_part): Correctly traverse the
13736         list.
13737
13738 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13739
13740         PR 29673
13741         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13742         Add -fdump-ipa-inline.
13743         * tree-dump.c (dump_files): Remove tree-inlined dump.
13744         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13745         
13746 2008-02-12  Richard Guenther  <rguenther@suse.de>
13747
13748         PR tree-optimization/35171
13749         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13750         default defs.
13751
13752 2008-02-12  Richard Guenther  <rguenther@suse.de>
13753
13754         PR middle-end/35163
13755         * fold-const.c (fold_widened_comparison): Use get_unwidened in
13756         value-preserving mode.  Disallow final truncation.
13757
13758 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13759
13760         PR middle-end/35136
13761         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13762         code from here to...
13763         (force_gimple_operand): ...here.
13764
13765 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
13766
13767         PR c++/35144
13768         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13769         non-compatible pointers.
13770         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13771         different FIELD_DECLs, try harder by comparing field offsets, sizes
13772         and types.
13773
13774         PR inline-asm/35160
13775         * function.c (match_asm_constraints_1): Don't replace the same input
13776         multiple times.
13777
13778 2008-02-12  Anatoly Sokolov <aesok@post.ru>
13779
13780         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13781         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13782         (expand_epilogue): Restore RAMPZ register.
13783         * config/avr/avr.md (RAMPZ_ADDR): New constant.
13784
13785 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
13786
13787         * config/i386/cygwin.asm: (__alloca): Correct calling
13788         convention and alignment.
13789         (__chkstk): Force 8 byte stack alignment.
13790
13791 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
13792             Richard Guenther  <rguenther@suse.de>
13793
13794         PR tree-optimization/33992
13795         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13796         the zero we compare against.
13797
13798 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
13799
13800         PR libfortran/35063
13801         * gthr-win32.h (__gthread_mutex_destroy_function): New function
13802         to CloseHandle after unlocking to prevent accumulation of handle
13803         count.
13804
13805 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13806
13807         PR middle_end/34150
13808         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13809         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
13810         and update LABEL_NUSES during and after reload.
13811
13812 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13813
13814         PR middle-end/34627
13815         * combine.c (simplify_if_then_else): Make sure the comparison is
13816         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13817
13818 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13819
13820         PR bootstrap/35051
13821         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13822         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13823         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13824         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13825         * tree.h (get_type_static_bounds): Likewise.
13826
13827 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13828
13829         * doc/invoke.texi (Option Summary, C++ Dialect Options)
13830         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13831         Make -Wfoo language annotations match what the compiler outputs.
13832
13833 2008-02-08  Sa Liu  <saliu@de.ibm.com>
13834
13835         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
13836         intrinsics spu_convts, spu_convtu, spu_convtf.
13837
13838 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
13839
13840         * doc/extend.texi (Function Attributes) <noinline>: Mention
13841         asm ("") as method to keep calls.
13842
13843 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13844
13845         PR other/32754
13846         * doc/options.texi (Options): Replace references to opts.sh with
13847         optc-gen.awk.
13848         * opts-common.c: Likewise.
13849         * optc-gen.awk: Likewise.
13850         
13851 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13852
13853         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13854
13855 2008-02-07  Richard Henderson  <rth@redhat.com>
13856
13857         PR rtl-opt/33410
13858         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13859         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
13860         funny mode.
13861
13862 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
13863
13864         PR tree-optimization/35085
13865         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13866         for operand entry oe2 in addition to operand entry oe3 in order to
13867         expose more opportunities for vectorizer sum reduction.
13868
13869 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13870
13871         PR other/35107
13872         * Makefile.in (LIBS): Remove $(GMPLIBS).
13873         (cc1-dummy, cc1): Add $(GMPLIBS).
13874
13875 2008-02-06  Jan Hubicka  <jh@suse.cz>
13876
13877         PR target/23322
13878         * i386.md (moddf_integer): Do not produce partial memory stalls for
13879         targets where it hurts.
13880
13881 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
13882
13883         PR target/35083
13884         * optabs.c (expand_float): Do not check for decimal modes when
13885         expanding unsigned integer through signed conversion.
13886
13887 2008-02-06  Nick Clifton  <nickc@redhat.com>
13888
13889         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13890         inside the clobber with a match_operand and duplicated operand
13891         number in the constraint.
13892         (ineqbranchsi): Delete redundant comment.
13893
13894 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
13895
13896         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
13897         builtin_define ("__USE_INIT_FINI__").
13898         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13899         -msx multilibs.
13900         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13901
13902 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13903
13904         PR documentation/30330
13905         * doc/invoke.texi (C++ Dialect Options)
13906         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13907         For each warning option -Wfoo that allows -Wno-foo, ensure both
13908         -Wfoo and -Wno-foo are listed in the option index.  Fix index
13909         entry of -Wswitch-default, index -Wnormalized= including the
13910         `=', and -Wlarger-than-@var{len} including @var{len}.
13911
13912 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13913
13914         * config/i386/i386.md (floatunssisf2): Use
13915         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13916         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13917         Macroize expander using MODEF mode iterator.
13918
13919 2008-02-05  Diego Novillo  <dnovillo@google.com>
13920
13921         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13922
13923         PR 33738
13924         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13925
13926 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13927
13928         PR other/35070
13929         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13930
13931 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
13932
13933         PR target/35084
13934         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13935         to indicate if a message should be generated.
13936         (init_cumulative_args): Updated.
13937         (function_value_32): Likewise.
13938
13939 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
13940
13941         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13942
13943 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13944
13945         PR target/35083
13946         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13947         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13948
13949 2008-02-04  Diego Novillo  <dnovillo@google.com>
13950
13951         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13952
13953         PR 33738
13954         * tree-vrp.c (vrp_evaluate_conditional): With
13955         -Wtype-limits, emit a warning when comparing against a
13956         constant outside the natural range of OP0's type.
13957
13958 2008-02-04  Richard Guenther  <rguenther@suse.de>
13959
13960         PR middle-end/33631
13961         * expr.c (count_type_elements): Give for unions instead of
13962         guessing.
13963
13964 2008-02-04  Richard Guenther  <rguenther@suse.de>
13965
13966         PR middle-end/35043
13967         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13968         to TYPE_DOMAINs base type instead of using bitsizetype here.
13969
13970 2008-02-03  Jason Merrill  <jason@redhat.com>
13971
13972         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13973
13974 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13975
13976         PR other/29972
13977         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13978         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13979         (RS/6000 and PowerPC Options): Fix typos and markup.
13980         * doc/passes.texi (Tree-SSA passes): Likewise.
13981
13982 2008-02-02  Michael Matz  <matz@suse.de>
13983
13984         PR target/35045
13985         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13986         from record_last_reg_set_info.
13987         (record_last_reg_set_info): Take an RTX argument, iterate over all
13988         constituent hardregs.
13989         (record_last_set_info, record_opr_changes): Change calls to
13990         new signature or to record_last_reg_set_info_regno.
13991
13992 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13993
13994         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13995
13996 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
13997
13998         PR rtl-optimization/34773
13999         * reg-notes.def (EQUAL): Mention significance of combination of
14000         REG_EQUAL and REG_RETVAL.
14001         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
14002         insn that has a REG_RETVAL.
14003
14004 2008-02-01  Roger Sayle  <roger@eyesopen.com>
14005
14006         PR bootstrap/33781
14007         * configure.ac (--enable-fixed-point): Disable unless explicitly
14008         requested on IRIX.
14009         * configure: Regenerate.
14010
14011 2008-02-01  Richard Guenther  <rguenther@suse.de>
14012
14013         PR other/35042
14014         * invoke.texi (-finline-limit): Remove no longer true parts
14015         of the documentation.  Note that there is no default value.
14016
14017 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
14018             Mark Mitchell  <mark@codesourcery.com>
14019             Ben Elliston  <bje@au.ibm.com>
14020
14021         PR c/29326
14022         * doc/extend.texi (Other Builtins): Document.
14023
14024 2008-01-31  Tom Browder <tom.browder@gmail.com>
14025
14026         * doc/c-tree.texi (Types): Fix grammar.
14027         (Expression trees): Ditto.
14028         * doc/passes.texi (Tree-SSA passes): Ditto.
14029         
14030         * doc/configterms.texi (Configure Terms): Fix typo.
14031         * doc/cpp.texi (Common Predefined Macros): Ditto.
14032         * doc/md.texi (Machine Constraints): Ditto.
14033         
14034         * doc/makefile.texi (Makefile): Add comma.
14035
14036 2008-01-31  Tom Browder  <tom.browder@gmail.com>
14037             Gerald Pfeifer  <gerald@pfeifer.com>
14038         
14039         * doc/sourcebuild.texi (Front End): Remove references to CVS
14040         and CVSROOT/modules.
14041         (Texinfo Manuals): Replace reference to CVS by one to SVN.
14042         (Back End): Remove reference to CVS.
14043
14044 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
14045
14046         PR target/34900
14047         * config/mips/mips.c (gen_load_const_gp): New function, taking a
14048         comment from...
14049         (mips16_gp_pseudo_reg): ...here.
14050         * config/mips/mips.md (load_const_gp): Replace with...
14051         (load_const_gp_<mode>): ...this :P-based insn.
14052
14053 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14054
14055         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14056         options. Minor fixes.
14057         (-std): Move reference to standards closer to where language
14058         standards are first mentioned.
14059         
14060 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
14061
14062         PR rtl-optimization/34995
14063         * reload.c (alternative_allows_const_pool_ref): Take an rtx
14064         parameter and return a bool.  If the rtx parameter is nonnull,
14065         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14066         (find_reloads): Update call accordingly.  Pass the new operand
14067         if it needed no address reloads, otherwise pass null.
14068
14069 2008-01-30  Richard Henderson  <rth@redhat.com>
14070
14071         PR c/34993
14072         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14073         for unbounded arrays.
14074
14075 2008-01-30  Silvius Rus  <rus@google.com>
14076
14077         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14078
14079 2008-01-30  Jan Hubicka  <jh@suse.cz>
14080
14081         PR target/34982
14082         * i386.c (init_cumulative_args): Use real function declaration when
14083         calling locally.
14084
14085 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14086
14087         PR rtl-optimization/34998
14088         * global.c (build_insn_chain): Treat non-subreg_lowpart
14089         SUBREGs of pseudos as clobbering all the words covered by the
14090         SUBREG, not just all the bytes.
14091         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
14092         original df_ref rather than an extract parameter.
14093         (global_conflicts): Update call accordingly.
14094
14095 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
14096
14097         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14098         the overflow check to make it easier to read.
14099         (__fixtfdi): Change the type of the ll member in union
14100         long_double to UDItype_x.
14101
14102 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
14103
14104         PR middle-end/34969
14105         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14106         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14107         * tree-inline.c (fold_marked_statements): Call
14108         cgraph_update_edges_for_call_stmt if folding a call statement.
14109         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14110         debug_generic_stmt calls, reset it back afterwards.
14111
14112         PR c/35017
14113         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14114         static decls.
14115         * c-typeck.c (build_external_ref): Don't pedwarn about
14116         static vars in current function's scope.
14117
14118 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
14119
14120         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14121
14122 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
14123
14124         PR c/35002
14125         * ipa-struct-reorg.c: Fix spelling.
14126         * params.def: Ditto.
14127
14128 2008-01-29  Richard Guenther  <rguenther@suse.de>
14129
14130         PR middle-end/35006
14131         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14132         field.
14133         * tree-inline.c (remap_type): Increment remapping_type_depth
14134         around remapping types.
14135         (copy_body_r): Only add referenced variables if they are referenced
14136         from code, not types.
14137
14138 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
14139
14140         PR c++/34055
14141         PR c++/34103
14142         PR c++/34219
14143         PR c++/34606
14144         PR c++/34753
14145         PR c++/34754
14146         PR c++/34755
14147         PR c++/34919
14148         PR c++/34961
14149         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14150         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14151
14152 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
14153
14154         PR target/34412
14155         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
14156         pointer for tiny stack.
14157
14158 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
14159
14160         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14161
14162 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
14163
14164         * config/vx-common.h: Fix typo in comment.
14165
14166 2008-01-28  Ian Lance Taylor  <iant@google.com>
14167
14168         PR c++/34862
14169         PR c++/33407
14170         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14171         coalesce pointers if they have different DECL_NO_TBAA_P values.
14172         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14173         between variables with different DECL_NO_TBAA_P values.
14174
14175 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
14176
14177         PR 31535
14178         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14179         are not legitimate small data references on SPE targets.
14180
14181 2008-01-28  David Daney  <ddaney@avtrex.com>
14182
14183         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14184
14185 2008-01-28  David Daney  <ddaney@avtrex.com>
14186
14187         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
14188
14189 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
14190
14191         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14192         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14193         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14194         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14195         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14196         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
14197         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
14198         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
14199
14200 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14201
14202         * basic-block.h (condjump_equiv_p): Fix comment.
14203
14204 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14205
14206         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
14207         print_generic_stmt_indented): Fix comment.
14208
14209 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14210
14211         * configure.ac (__stack_chk_fail): Add detecion for availability
14212         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
14213         * configure: Regenerate.
14214
14215 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
14216
14217         PR middle-end/34688
14218         * final.c (output_addr_const): Handle TRUNCATE.
14219
14220 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
14221
14222         PR target/34711
14223         * tree-ssa-loop-ivopts.c (comp_cost): New type.
14224         (zero_cost, infinite_cost): New constants.
14225         (struct cost_pair): Change type of cost to comp_cost.
14226         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
14227         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
14228         New functions.
14229         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
14230         split_address_cost, ptr_difference_cost, difference_cost,
14231         get_computation_cost_at, get_computation_cost,
14232         determine_use_iv_cost_generic, determine_use_iv_cost_address,
14233         determine_use_iv_cost_condition, determine_use_iv_costs,
14234         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14235         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14236         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14237         Change type of cost to comp_cost.
14238         (determine_iv_cost): Increase cost of non-original ivs, instead
14239         of decreasing the cost of original ones.
14240         (get_address_cost): Indicate the complexity of the addressing mode 
14241         in comp_cost.
14242         (try_add_cand_for): Prefer using ivs not specific to some object.
14243         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14244
14245 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
14246             Janis Johnson  <janis187@us.ibm.com>
14247
14248         PR target/34814
14249         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14250         (TARGET_INSTANTIATE_DECLS): Likewise.
14251         * target.h (expand_to_rtl_hook): New target hook.
14252         (instantiate_decls): Likewise.
14253         * function.c (instantiate_decl): Make non-static.  Rename to...
14254         (instantiate_decl_rtl): ... this.
14255         (instantiate_expr): Use instantiate_decl_rtl.
14256         (instantiate_decls_1): Likewise.
14257         (instantiate_decls): Likewise.
14258         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14259         * function.h (instantiate_decl_rtl): Add prototype.
14260         * cfgexpand.c (target.h): New include.
14261         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14262         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14263         (TARGET_INSTANTIATE_DECLS): Likewise.
14264         (TARGET_INITIALIZER): New target hooks added.
14265         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14266         New prototype.
14267         * config/rs6000/rs6000.c (tree-flow.h): New include.
14268         (machine_function): Add sdmode_stack_slot field.
14269         (rs6000_alloc_sdmode_stack_slot): New function.
14270         (rs6000_instantiate_decls): Likewise.
14271         (rs6000_secondary_memory_needed_rtx): Likewise.
14272         (rs6000_check_sdmode): Likewise.
14273         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14274         (TARGET_INSTANTIATE_DECLS): Likewise.
14275         (rs6000_hard_regno_mode_ok): Allow SDmode.
14276         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
14277         (rs6000_emit_move): Handle SDmode.
14278         (function_arg_advance): Likewise.
14279         (function_arg): Likewise.
14280         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
14281         SDmode var args for 32-bit compiles.
14282         (rs6000_secondary_reload_class): Handle SDmode.
14283         (rs6000_output_function_epilogue): Likewise.
14284         (rs6000_function_value): Simplify if statement.
14285         (rs6000_libcall_value): Likewise.
14286         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14287         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14288         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14289         (movsd_hardfloat): New define_insn.
14290         (movsd_softfloat): Likewise.
14291         (movsd_store): Likewise.
14292         (movsd_load): Likewise.
14293         (extendsddd2): Likewise.
14294         (extendsdtd2): Likewise.
14295         (truncddsd2): Likewise.
14296         (movdd_hardfloat64): Fixup comment.
14297         (UNSPEC_MOVSD_LOAD): New constant.
14298         (UNSPEC_MOVSD_STORE): Likewise.
14299
14300 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
14301
14302         PR c++/34965
14303         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14304         TRUTH_XOR_EXPR.
14305         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14306         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14307         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14308         and TRUTH_XOR_EXPR.
14309
14310 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
14311
14312         PR target/34794
14313         * config.gcc: Separate AIX 5.3 from AIX 6.1.
14314         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14315         __LONGDOUBLE128 too.
14316         * config/rs6000/aix61.h: New file.
14317
14318 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14319
14320         PR rtl-optimization/34959
14321         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14322         popcount and parity rtxes the same mode as their operand.
14323         Truncate or extend the result to the return value's mode
14324         if necessary.
14325
14326 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14327
14328         PR target/34981
14329         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14330         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14331         to GOT_VERSION_REGNUM.
14332         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14333         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14334         * config/mips/mips.c (mips_emit_call_insn): New function.
14335         (mips_call_tls_get_addr): Call mips_expand_call directly.
14336         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14337         emit_call_insn.
14338         (mips16_build_call_stub): Likewise.  Return the call insn or null.
14339         (mips_expand_call): Update the call to mips16_build_call_stub
14340         accordingly and a remove redundant condition.  Assert that MIPS16
14341         stubs do not use lazy binding.  Use mips_emit_call_insn and return
14342         the call insn.
14343         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14344         TARGET_USE_GOT.
14345         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14346         (mips_avoid_hazard): Remove hazard_set handling.
14347         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14348         (UNSPEC_RESTORE_GP): ...this.
14349         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14350         (FAKE_CALL_REGNO): Rename to...
14351         (GOT_VERSION_REGNUM): ...this.
14352         (type): Add "ghost" value.  Add an associated insn reservation.
14353         (hazard_set): Remove.
14354         (exception_receiver): Rename to...
14355         (restore_gp): ...this and update the unspec identifier accordingly.
14356         (exception_receiver, nonlocal_got_receiver): New expanders.
14357         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
14358         FAKE_CALL_REGNO.  Remove hazard_set attribute.
14359         (set_got_version, update_got_version): New patterns.
14360
14361 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
14362
14363         PR target/34970
14364         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14365
14366 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14367
14368         PR other/31955
14369         * doc/install.texi2html: Generate gcc-vers.texi.
14370
14371 2008-01-25  DJ Delorie  <dj@redhat.com>
14372
14373         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14374
14375 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14376
14377         * config/c4x: Remove directory.
14378         * config.gcc (crx-*, mt-*): Mark obsolete.
14379         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14380         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14381         sh-*-rtemscoff*): Remove cases.
14382         * defaults.h (C4X_FLOAT_FORMAT): Remove.
14383         * real.c (encode_c4x_single, decode_c4x_single,
14384         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14385         c4x_extended_format): Remove.
14386         * real.h (c4x_single_format, c4x_extended_format): Remove.
14387         * doc/extend.texi (interrupt, naked): Remove mention of attributes
14388         on C4x.
14389         (Pragmas): Remove comment about c4x pragmas.
14390         * doc/install.texi (c4x): Remove target-specific instructions.
14391         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14392         * doc/md.texi (Machine Constraints): Remove C4x documentation.
14393         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14394         refer to C4x source files as examples.
14395         (C4X_FLOAT_FORMAT): Remove documentation.
14396
14397 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14398
14399         * config/bfin/bfin.c (override_options): Reorder tests so that
14400         flag_pic gets enabled for -msep-data.
14401
14402 2008-01-25  Richard Guenther  <rguenther@suse.de>
14403
14404         PR middle-end/32244
14405         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14406         to its bitfield precision if required.
14407
14408 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14409
14410         PR middle-end/33880
14411         * tree-nested.c (walk_omp_for): New function.
14412         (convert_nonlocal_reference, convert_local_reference): Call
14413         walk_omp_for on OMP_FOR.
14414         (convert_call_expr): Call walk_body on OMP_FOR's
14415         OMP_FOR_PRE_INIT_BODY.
14416
14417 2008-01-25  Richard Guenther  <rguenther@suse.de>
14418
14419         PR tree-optimization/34966
14420         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14421         default defs and PHI_NODEs we have to insert after the
14422         defining statement.
14423
14424 2008-01-24  Nick Clifton  <nickc@redhat.com>
14425
14426         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14427         Provide a default definition.
14428         (LIBGCC2_UNITS_PER_WORD): Likewise.
14429
14430         * config/stormy16/stormy16.c: Include df.h for the prototype
14431         for df_regs_ever_live_p.
14432         (xstormy16_expand_builtin_va_start): Convert the stack offset
14433         into a component_ref and then use POINTER_PLUS_EXPR to add it
14434         to the incoming_virtual_args_rtx.
14435         (xstormy16_gimplify_va_arg_expr): Rename to
14436         xstormy16_gimplify_va_arg_expr.
14437         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14438         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14439         xstormy16_gimplify_va_arg_expr.
14440         Fix up some formatting issues.
14441
14442         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14443         Move to predicates.md.
14444         (xs_hi_general_operand): Likewise.
14445         (xs_hi_nonmemory_operand): Likewise.
14446         * config/stormy16/predicates.md:
14447         (xstormy16_carry_plus_operand): New predicate.
14448         (xs_hi_general_operand): New predicate.
14449         (xs_hi_nonmemory_operand): New predicate.
14450         * config/stormy16/stormy16-protos.h:
14451         (xstormy16_carry_plus_operand): Delete prototype.
14452         (xs_hi_general_operand): Likewise.
14453         (xs_hi_nonmemory_operand): Likewise.
14454
14455         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14456         modifiers as they are no longer needed and they can trigger
14457         reload spill failures.
14458
14459         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14460         with a match_operand in order to help reload.
14461
14462         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14463         constraint with 'e' for the 8th alternative as this version of
14464         the mov.w instruction only accepts the lower 8 registers.
14465
14466 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
14467
14468         PR target/34856
14469         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14470         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14471         vector elements.
14472
14473 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14474
14475         PR middle-end/33333
14476         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14477
14478 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14479
14480         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14481         New functions.
14482         (remove_structure): Update allocations list before removing structure.
14483         
14484 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14485
14486         * ipa-struct-reorg.c (is_safe_cond_expr, 
14487         create_new_stmts_for_cond_expr): Use integer_zerop function,
14488         that recognize not only zero-pointer, but zero-integer too.
14489
14490 2008-01-25  Ben Elliston  <bje@au.ibm.com>
14491
14492         PR other/22232
14493         * fixproto: Escape "." in sed expression that strips leading "./".
14494
14495 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14496
14497         PR driver/34904
14498         * gcc.c (SWITCH_OK): Removed.
14499         (SWITCH_LIVE): Changed to bit.
14500         (SWITCH_FALSE): Likewise.
14501         (SWITCH_IGNORE): Likewise.
14502         (switchstr): Change live_cond to unsigned int.
14503         (process_command): Replace SWITCH_OK with 0.
14504         (do_self_spec): Likewise.
14505         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14506         (give_switch): Likewise.
14507         (used_arg): Likewise.
14508         (do_spec_1): Set the SWITCH_IGNORE bit.
14509         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14510         bits.  Set the SWITCH_LIVE bit.
14511
14512 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14513
14514         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14515
14516 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14517
14518         PR tree-optimization/34472
14519         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14520         parameter to a "bool *" and set *DATA to false if there is
14521         an unsafe access.  Do not delete the structure here.
14522         (check_cond_exprs): Delete it here instead.
14523         (check_cond_exprs, exclude_cold_structs): Do not increase
14524         I when removing a structure.
14525
14526 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
14527
14528         PR target/34856
14529         * config/i386/i386.c (ix86_expand_vector_init): Consider only
14530         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14531
14532 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
14533
14534         PR middle-end/34934
14535         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14536         a fixed vector for stack.
14537
14538 2008-01-24  Ben Elliston  <bje@au.ibm.com>
14539
14540         PR c++/25701
14541         * doc/gcc.texi (Software development): Add a direntry for g++.
14542         
14543 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
14544
14545         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14546         stale and straggling -fforce-addr comments above.
14547
14548         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14549         define.
14550         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14551         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14552
14553 2008-01-23  Michael Matz  <matz@suse.de>
14554
14555         PR debug/34895
14556         * dwarf2out.c (force_type_die): Use modified_type_die instead of
14557         gen_type_die.
14558
14559 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14560
14561         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14562         malloc result type.
14563
14564 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14565
14566         * config/avr/avr.c (avr_current_arch): New variable.
14567         (avr_arch_types): Add 'avr31' and 'avr51' entries.
14568         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14569         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14570         (avr_override_options): Init 'avr_current_arch'. 
14571         (base_arch_s): Move from here...
14572         * config/avr/avr.h (base_arch_s): ... here. Add new members 
14573         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
14574         'mega' to 'have_jmp_call'.
14575         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
14576         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
14577         macros.
14578         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
14579         architectures.
14580         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
14581         MULTILIB_MATCHES): (Ditto.).
14582
14583 2008-01-23  Richard Guenther  <rguenther@suse.de>
14584
14585         PR middle-end/31529
14586         * cgraphunit.c (cgraph_reset_node): Always mark the node
14587         not reachable if it is not queued already.
14588
14589 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14590
14591         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14592         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14593         (cputype_selected): New static variable.
14594         (bfin_handle_option): Set it if -mcpu is used.
14595         (override_option): Select default set of workarounds if no cpu type
14596         selected on the command line.
14597         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14598
14599         From  Michael Frysinger  <michael.frysinger@analog.com>
14600         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14601         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14602
14603         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14604         for bf547, bf523, bf524, and bf526.
14605         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
14606         bf526.
14607         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14608         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14609         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14610         __ADSPBF547__ and __ADSPBF54x__ for bf547.
14611         * doc/invoke.texi (Blackfin Options): Document that
14612         -mcpu now accept bf547, bf523, bf524, and bf526.
14613
14614 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14615
14616         PR rtl-optimization/34628
14617         * combine.c (try_combine): Stop and undo after the first combination
14618         if an autoincrement side-effect on the first insn has effectively
14619         been lost.
14620
14621 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
14622
14623         PR target/34529
14624         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14625         Offset addresses are not valid for Altivec or paired float modes.
14626
14627 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
14628
14629         PR c++/34607
14630         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14631         if DECL_INITIAL (decl) is error_mark_node.
14632
14633         PR c++/34914
14634         * c-common.c (handle_vector_size_attribute): Only allow
14635         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
14636         the same way as pointer, array etc. types.
14637         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14638
14639         PR c++/34917
14640         * tree.c (build_type_attribute_qual_variant): Call
14641         build_qualified_type if attributes are equal, but quals are not.
14642
14643 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14644
14645         PR 32102
14646         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14647         * flags.h (warn_strict_aliasing): Remove.
14648         (warn_strict_overflow): Remove.
14649         * opts.c (warn_strict_aliasing): Remove.
14650         (warn_strict_overflow): Remove.
14651         * c-opts.c (c_common_handle_option): -Wall only sets
14652         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14653         (c_common_post_options): Give default values to -Wstrict-aliasing
14654         and -Wstrict-overflow if they are uninitialized.
14655         * common.opt (Wstrict-aliasing): Specify Var and Init.
14656         (Wstrict-overflow): Likewise.
14657
14658 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14659
14660         PR rtl-optimization/26854
14661         PR rtl-optimization/34400
14662         PR rtl-optimization/34884
14663         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14664         DF_RD->gen.
14665         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14666         (df_rd_bb_info.expanded_lr_out): Deleted
14667         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14668         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
14669         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14670         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14671         Removed code to allocate, initialize or free expanded_lr_out.
14672         (df_rd_bb_local_compute_process_def): Restructured to make more
14673         understandable.
14674         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14675         sets if the sets are being trimmed.
14676
14677 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14678
14679         PR bootstrap/32287
14680         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14681         (as_vers): Likewise.
14682         * configure: Regenerated.
14683
14684 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14685
14686         PR middle-end/33092
14687         * tree-pass.h (pass_build_alias): New pass.
14688         * tree-ssa-alias.c (gate_build_alias): New.
14689         (pass_build_alias): New.
14690         * passes.c (init_optimization_passes): Add pass_build_alias after
14691         pass_create_structure_vars.
14692
14693 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
14694
14695         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14696         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14697         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14698         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14699         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14700         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14701         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14702         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14703         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14704         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14705         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14706         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14707         * config/s390/s390.md (FP_ALL): New mode iterator.
14708         (_d): New mode attribute.
14709         ("*signbit<mode>2>"): Changed mode of first operand.
14710         ("isinf<mode>2"): Changed mode of first operand.
14711         ("*TDC_insn"): Adaptation for DFP modes.
14712
14713 2008-01-22  Ben Elliston  <bje@au.ibm.com>
14714
14715         * tree.c (check_qualified_type): Improve function description.
14716
14717 2008-01-21  Jason Merrill  <jason@redhat.com>
14718
14719         PR c++/34196
14720         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14721         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14722         if it is set.
14723
14724 2008-01-21  DJ Delorie  <dj@redhat.com>
14725
14726         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14727         return zero.
14728
14729 2008-01-21  Richard Guenther  <rguenther@suse.de>
14730
14731         PR middle-end/34856
14732         * tree-cfg.c (verify_expr): Allow all invariant expressions
14733         instead of just constant class ones as reference argument.
14734         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14735         like any other constant.
14736         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14737
14738 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14739
14740         * regmove.c (fixup_match_1): Update call crossed frequencies.
14741
14742 2008-01-21  Richard Guenther  <rguenther@suse.de>
14743
14744         PR c/34885
14745         * tree-inline.c (setup_one_parameter): Deal with mismatched
14746         types using a VIEW_CONVERT_EXPR.
14747
14748 2008-01-21  Alon Dayan  <alond@il.ibm.com>
14749             Olga Golovanevsky  <olga@il.ibm.com>
14750         
14751         PR tree-optimization/34701
14752         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14753         when the structure size is not a power of 2.
14754
14755 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14756
14757         * doc/install.texi: Add doc for --enable-checking=df.
14758         
14759 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14760
14761         PR rtl-optimization/34808
14762         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14763
14764 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14765
14766         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14767         input.
14768
14769 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
14770
14771         PR rtl-optimization/26854
14772         PR rtl-optimization/34400
14773         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14774         DF_RD->gen.
14775         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14776         (df_rd_bb_info.expanded_lr_out): New.
14777         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14778         * loop_iv.c (iv_analysis_loop_init): Ditto.
14779         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14780         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14781         Added code to allocate, initialize or free expanded_lr_out.
14782         (df_rd_bb_local_compute_process_def): Restructured to make
14783         more understandable.
14784         (df_rd_confluence_n): Add code to do nothing with fake edges and
14785         code to no apply invalidate_by_call sets if the sets are being trimmed.
14786         (df_lr_local_finalize): Renamed to df_lr_finalize.
14787         (df_live_local_finalize): Renamed to df_live_finalize.
14788
14789 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14790
14791         PR target/34831
14792         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14793         deciding whether to use reciprocal instructions.
14794
14795 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
14796
14797         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14798         dwarf2out_note_section_used if cold_text_section is NULL.
14799
14800 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
14801
14802         PR gcov-profile/34610
14803         * tree-cfg.c (make_edges): Mark both outgoing edges from
14804         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14805         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14806         from OMP_FOR and OMP_CONTINUE outgoing edges.
14807
14808         * tree-profile.c (tree_profiling): Return early if
14809         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
14810         at the end.
14811         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14812         from cfun to child_cfun.
14813         * function.h (struct function): Add after_tree_profile bit.
14814
14815 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14816
14817         * config/avr/avr.S (_exit): Disable interrupt.
14818
14819 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
14820             Steven Bosscher  <stevenb.gcc@gmail.com>
14821
14822         PR rtl-optimization/26854
14823         PR rtl-optimization/34400
14824         * df-problems.c (df_live_scratch): New scratch bitmap.
14825         (df_live_alloc): Allocate df_live_scratch when doing df_live.
14826         (df_live_reset): Clear the proper bitmaps.
14827         (df_live_bb_local_compute): Only process the artificial defs once
14828         since the order is not important.
14829         (df_live_init): Init the df_live sets only with the variables
14830         found live by df_lr.
14831         (df_live_transfer_function): Use the df_lr sets to prune the
14832         df_live sets as they are being computed.  
14833         (df_live_free): Free df_live_scratch.
14834
14835 2008-01-18  Ian Lance Taylor  <iant@google.com>
14836
14837         * common.opt: Add fmerge-debug-strings.
14838         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14839         flag_merge_debug_strings rather than flag_merge_constants.
14840         * doc/invoke.texi (Option Summary): Mention
14841         -fmerge-debug-strings.
14842         (Debugging Options): Document -fmerge-debug-strings.
14843
14844 2008-01-18  Ian Lance Taylor  <iant@google.com>
14845
14846         PR c++/33407
14847         * tree.h (DECL_IS_OPERATOR_NEW): Define.
14848         (struct tree_function_decl): Add new field operator_new_flag.
14849         * tree-inline.c (expand_call_inline): When inlining a call to
14850         operator new, force the return value to go into a variable, and
14851         set DECL_NO_TBAA_P on that variable.
14852         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14853
14854 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
14855
14856         PR debug/34484
14857         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14858         DWARF2_DEBUGGING_INFO.
14859         (dwarf2out_note_section_used): Ditto.  Add prototype.
14860         (have_multiple_function_sections, text_section_used,
14861         cold_text_section_used, *cold_text_sections): Move declarations
14862         before their uses.
14863
14864 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
14865
14866         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14867         field and add signal_ra.
14868         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14869         assignments to frame state pc.  Move end of stack check after
14870         MD_FALLBACK_FRAME_STATE_FOR.
14871         (uw_update_context_1): Use frame state signal_regs if set, instead
14872         of checking signal_frame flag.
14873         (uw_update_context): Use frame state signal_ra if set.
14874         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14875         * config/xtensa/linux-unwind.h: New file.
14876
14877 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
14878
14879         * modulo-sched.c (get_sched_window): Fix comment typo.
14880
14881 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
14882
14883         PR tree-optimization/34648
14884         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14885
14886 2008-01-17  Anatoly Sokolov <aesok@post.ru>
14887
14888         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14889         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14890
14891 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
14892
14893         PR rtl-optimization/34400
14894         * df-core.c (df_worklist_dataflow_overeager,
14895         df_worklist_dataflow_doublequeue): New functions.
14896         (df_worklist_dataflow): Two different worklist solvers.
14897         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14898         New param.
14899
14900 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14901
14902         PR testsuite/34821
14903         * doc/invoke.texi: Document the dependence on pthread for fopenmp
14904         and ftree-parallelize-loops.
14905
14906 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
14907
14908         PR rtl-optimization/34826
14909         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14910
14911 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14912
14913         * global.c (find_reg): Mark the eh regs as used if necessary.
14914         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14915         * ra.h (struct allocno): no_eh_reg field added.  Changed
14916         no_stack_reg type to bitfield.
14917
14918 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14919
14920         * tree.c (substitute_in_expr): Add missing 'break'.
14921
14922 2008-01-17  Richard Guenther  <rguenther@suse.de>
14923
14924         PR tree-optimization/34825
14925         * tree-ssa-math-opts.c (is_division_by): Do not recognize
14926         x / x as division to handle.
14927
14928 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14929
14930         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14931         "-pthread" is specified.
14932         * pa-hpux11.h (LIB_SPEC): Likewise.
14933
14934 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
14935             Peter Bergner  <bergner@vnet.ibm.com>
14936
14937         PR rtl-optimization/33796
14938         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14939
14940 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14941
14942         PR libgfortran/34699
14943         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14944         static links.
14945         * pa-hpux10.h (LINK_SPEC): Likewise.
14946         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14947
14948 2008-01-16  Richard Guenther  <rguenther@suse.de>
14949
14950         PR middle-end/32628
14951         * fold-const.c (fold_convert_const_int_from_int): Do not
14952         set overflow if that occured only because of a sign extension
14953         change when converting from/to a sizetype with the same
14954         precision and signedness.
14955
14956 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14957
14958         PR debug/34249
14959         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14960         location address to the correct place.  Update copyright year.
14961
14962 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14963
14964         * lambda-code.c (lambda_transform_legal_p): Handle the case of
14965         no dependences in the dependence_relations vector.
14966
14967 2008-01-16  Jan Hubicka  <jh@suse.cz>
14968
14969         PR rtl-optimization/31396
14970         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14971         * cfg.c (dump_reg_info): Print it.
14972         * regs.h (struct reg_info_t): add freq_calls_crossed.
14973         (REG_FREQ_CALLS_CROSSED): New macro.
14974         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14975         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14976         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14977         regmove_optimize): Update call crossed frequencies.
14978         * local-alloc.c (struct qty): Add freq_calls_crossed.
14979         (alloc_qty): Copute freq_calls_crossed.
14980         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14981         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14982         * ra.h (struct allocno): Add freq_calls_crossed.
14983
14984 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14985
14986         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14987         libgomp when compiling with ftree-parallelize-loops.
14988         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14989
14990 2008-01-16  Richard Guenther  <rguenther@suse.de>
14991
14992         PR tree-optimization/34769
14993         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14994         * tree.c (int_cst_value): Instead make this function more
14995         permissive in what it accepts as valid input.  Document this
14996         function always sign-extends the value.
14997
14998 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
14999             Richard Guenther  <rguenther@suse.de>
15000
15001         PR c/34668
15002         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
15003         (gimple_fold_indirect_ref_rhs): ... this.
15004         (gimple_fold_indirect_ref): New function with foldings
15005         that preserve lvalueness.
15006         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
15007         * tree-flow.h (gimple_fold_indirect_ref): Declare.
15008         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
15009         to fold an INDIRECT_REF, fall back to the old use of
15010         fold_indirect_ref_1.
15011
15012 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15013
15014         * tree-data-ref.c (subscript_dependence_tester_1): Call 
15015         free_conflict_function.
15016         (compute_self_dependence): Same.
15017
15018 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
15019
15020         PR debug/34249
15021         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
15022         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
15023         function global.
15024         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
15025         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
15026         for DWARF2_UNWIND_INFO targets.
15027
15028 2008-01-16  Richard Guenther  <rguenther@suse.de>
15029
15030         PR c/34768
15031         * c-typeck.c (common_pointer_type): Do not merge inconsistent
15032         type qualifiers for function types.
15033
15034 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
15035
15036         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
15037         loop_iterator li from previous commit.
15038
15039 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
15040
15041         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
15042
15043 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
15044
15045         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
15046         (parallelize_loops): Don't parallelize irreducible components.
15047
15048 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15049
15050         PR c++/24924
15051         * c-opts (c_common_post_options): Do not enable CPP
15052         flag_pedantic_errors by default.
15053         
15054 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
15055
15056         PR rtl-optimization/31944
15057         * cse.c (remove_pseudo_from_table): New function.
15058         (merge_equiv_classes): Use above function to remove pseudo-registers.
15059         (invalidate): Likewise.
15060
15061 2008-01-13  Richard Guenther  <rguenther@suse.de>
15062
15063         PR middle-end/34601
15064         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15065         instead of TYPE_MODE to deal with calls from expand_one_error_var.
15066
15067 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
15068
15069         * gcse.c (cprop_jump): Call validate_unshare_change instead of
15070         validate_change to unshare the source of the PC set.
15071
15072 2008-01-12  Jan Hubicka  <jh@suse.cz>
15073
15074         PR middle-end/32135
15075         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15076         references above array bounds.  This might trigger bounds checks for
15077         pointers to arrays.
15078
15079 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
15080
15081         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15082         new_replaceable_dependencies.
15083
15084 2008-01-12  Doug Kwan  <dougkwan@google.com>
15085
15086         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15087         instead of OPT_Wreturn_type in warning due to ignored return type
15088         qualifiers.
15089         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15090         options included in -Wextra.
15091         * c.opt: New option -Wignored_qualifiers.
15092         * doc/invoke.texi (Warning Options, -Wextra): Add new option
15093         -Wignore_qualifiers.
15094         (-Wignored-qualifiers): Document.
15095         (-Wreturn-type): Remove description of functionality now handled
15096         by -Wignored-qualifiers.
15097
15098 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
15099
15100         PR ada/33788
15101         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15102         NOP_EXPR if it is between integral types with the same precision.
15103
15104 2008-01-12  Jan Hubicka  <jh@suse.cz>
15105
15106         PR other/28023
15107         * invoke.texi (max-inline-recursive-depth): Fix default value.
15108
15109 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
15110
15111         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15112         correct type.
15113
15114 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
15115         
15116         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15117         
15118 2008-01-11  James E. Wilson  <wilson@specifix.com>
15119
15120         PR target/26015
15121         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15122
15123 2008-01-11  Anatoly Sokolov <aesok@post.ru>
15124
15125         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
15126         save/restore frame pointer register and don't use 'call-prologues' 
15127         optimization in function with "OS_task" attribute.
15128
15129 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
15130
15131         PR middle-end/31309
15132         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15133         when copying to memory.
15134
15135 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
15136
15137         PR rtl-optimization/30905
15138         * cfgcleanup.c: Include dce.h
15139         (crossjumps_occured): New global variable.
15140         (try_crossjump_bb): Exit loop after finding a fallthru edge.
15141         If something changed, set crossjumps_occured to true.
15142         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15143         Don't add/remove fake edges to exit here...
15144         (cleanup_cfg): ...but do it here, when crossjumping.
15145         Run a fast DCE when successful crossjumps occured in the latest
15146         iteration of try_optimize_cfg.
15147
15148 2008-01-11  Richard Guenther  <rguenther@suse.de>
15149
15150         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15151         (struct vn_unary_op_s): Likewise.
15152         (vn_reference_insert): Free old reference on hash collision.
15153
15154 2008-01-10  Raksit Ashok  <raksit@google.com>
15155
15156         PR rtl-optimization/27971
15157         * combine.c (find_split_point): Split PLUS expressions which are
15158         inside a MEM rtx, and whose first operand is complex.
15159
15160 2008-01-10  DJ Delorie  <dj@redhat.com>
15161
15162         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15163         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15164         (m32c_hard_regno_ok): Call the underlying function.
15165
15166 2008-01-10  Richard Guenther  <rguenther@suse.de>
15167
15168         PR middle-end/34683
15169         * tree-cfg.c (tree_merge_blocks): Do not go through the
15170         full-blown folding and stmt updating path if we just deal
15171         with virtual operands.
15172         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15173         test for abnormal SSA_NAMEs.
15174
15175 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
15176
15177         PR middle-end/34641
15178         * reload.c (push_reload): Add assertions.  All constants from
15179         reg_equiv_constant should have been used for replacing the respective
15180         pseudo earlier.
15181         (find_reloads_address): Invoke find_reloads_address_part for
15182         constant taken from the reg_equiv_constant array.
15183
15184 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
15185
15186         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15187         field (valnum) the first in the struct.  Replace bools with
15188         unit bit fields.
15189
15190 2008-01-10  Richard Guenther  <rguenther@suse.de>
15191
15192         PR tree-optimization/34651
15193         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
15194         types and ordering for masking and converting.
15195
15196 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
15197
15198         PR tree-optimization/34017
15199         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
15200         also for PHI_NODE expressions.
15201
15202 2008-01-09  Jan Hubicka  <jh@suse.cz>
15203
15204         PR tree-optimization/34708
15205         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
15206         based on number of case labels.
15207         (init_inline_once): Remove switch_cost.
15208         * tree-inline.h (eni_weights_d): Remove switch_cost.
15209
15210 2008-01-09  Richard Guenther  <rguenther@suse.de>
15211         Andrew Pinski  <andrew_pinski@playstation.sony.com>
15212
15213         PR middle-end/30132
15214         * gimplify.c (gimplify_cond_expr): Do not create an addressable
15215         temporary if an rvalue is ok or an lvalue is not required.
15216
15217 2008-01-09  Richard Guenther  <rguenther@suse.de>
15218
15219         PR middle-end/34458
15220         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
15221         adjust return type.
15222
15223 2008-01-09  Richard Guenther  <rguenther@suse.de>
15224
15225         PR middle-end/34679
15226         * tree.c (host_integerp): Check for sizetype only if the
15227         type is an integer type.
15228
15229 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
15230
15231         PR debug/26364
15232         * opts.c (decode_options): Disable inlining of functions called
15233         once if not in unit-at-a-time mode.
15234
15235 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
15236
15237         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15238
15239 2008-01-08  Richard Guenther  <rguenther@suse.de>
15240
15241         PR middle-end/31863
15242         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15243         out early if the result will be unused.
15244
15245 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15246
15247         PR target/34709
15248         Revert:
15249
15250         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15251         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15252         for TARGET_RECIP.       
15253         
15254 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
15255         
15256         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15257         for vectorization tuned.
15258         
15259 2008-01-08  Richard Guenther  <rguenther@suse.de>
15260
15261         PR tree-optimization/34683
15262         * tree-ssa-operands.c (operand_build_cmp): Export.
15263         * tree-ssa-operands.h (operand_build_cmp): Declare.
15264         * tree-vn.c (vuses_compare): Remove.
15265         (sort_vuses): Use operand_build_cmp.
15266         (sort_vuses_heap): Likewise.
15267         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15268         to re-use old VEC if available.  Do not sort already sorted VUSEs.
15269         (vdefs_to_vec): Do not sort already sorted VDEFs.
15270
15271 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
15272
15273         PR middle-end/34694
15274         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15275
15276 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15277
15278         PR target/34702
15279         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15280         limitations of reciprocal sequences on x86 targets.
15281
15282 2008-01-08  Richard Guenther  <rguenther@suse.de>
15283
15284         PR tree-optimization/34683
15285         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15286
15287 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
15288
15289         PR target/34622
15290         * config/darwin.c (darwin_mergeable_string_section): Don't use
15291         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15292
15293 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
15294
15295         PR target/34682
15296         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15297         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
15298         predicates of op0 and op1 to register_operand.
15299         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
15300         expander using X87MODEF mode iterator.  Change predicates of
15301         op0 and op1 to register_operand.
15302         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15303         corresponding patterns and macroize using MODEF macro.  Change
15304         predicates of op0 and op1 to register_operand and remove
15305         "m" constraint. Disparage "r" alternative with "!".
15306         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15307         macroize using X87MODEF macro.  Change predicates of op0 and op1
15308         to register_operand and remove "m" constraint.  Disparage "r"
15309         alternative with "!".
15310         (absneg splitter with memory operands): Remove.
15311         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15312         patterns and macroize using X87MODEF mode iterator.
15313         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15314         Change predicate of op1 to register_operand.
15315         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15316         for memory operands.
15317
15318 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
15319
15320         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15321
15322 2008-01-07  Richard Guenther  <rguenther@suse.de>
15323
15324         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15325         fields.
15326
15327 2008-01-07  Richard Guenther  <rguenther@suse.de>
15328
15329         PR tree-optimization/34683
15330         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15331         VOPs of the needed size to save memory.  Use VEC_quick_push
15332         to save compile-time.
15333         (vdefs_to_vec): Likewise.
15334
15335 2008-01-07  Sa Liu  <saliu@de.ibm.com>
15336
15337         * config/spu/spu.md (divdf3): Genetate inline code for double
15338         division.  The implementation doesn't handle INF or NAN, therefore it
15339         only applies when -ffinite-math-only is given.
15340
15341 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
15342
15343         PR libstdc++/34680
15344         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15345         * doc/cpp.texi ([Common Predefined Macros]): Document.
15346
15347 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
15348
15349         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15350         order to use commutative addition instead of subtraction.
15351
15352 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15353             Mircea Namolaru  <namolaru@il.ibm.com>
15354             Vladimir Yanovsky  <yanov@il.ibm.com>
15355             Revital Eres  <eres@il.ibm.com>
15356
15357         PR tree-optimization/34263
15358         * tree-outof-ssa.c (process_single_block_loop_latch,
15359         contains_tree_r): New functions.
15360         (analyze_edges_for_bb): Call process_single_block_loop_latch
15361         function to empty single-basic-block latch block if possible.
15362
15363 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15364
15365         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15366         for TARGET_RECIP.
15367         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15368
15369 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15370
15371         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15372
15373 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15374
15375         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15376
15377 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
15378
15379         PR tree-optimization/34618
15380         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15381         flag from T.
15382
15383 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15384
15385         PR target/34673
15386         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15387         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
15388         Update copyright year.
15389
15390         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15391         Update copyright year.
15392         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15393         using NR fixup.
15394
15395 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
15396
15397         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15398         edge does not point to current bb before changing need_assert.
15399
15400 2008-01-04  Richard Guenther  <rguenther@suse.de>
15401
15402         PR middle-end/34029
15403         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15404         for verifying purposes if they are is_gimple_min_invariant.
15405
15406 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
15407
15408         PR tree-optimization/34448
15409         PR tree-optimization/34465
15410         * gimplify.c (gimplify_init_constructor): Add new parameter
15411         notify_temp_creation.  Use it.
15412         (gimplify_modify_expr_rhs): Take volatiles into account when
15413         optimizing constructors.
15414         Do not optimize constructors if gimplify_init_constructor will dump to
15415         memory.
15416         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15417         * gcc.c-torture/compile/pr34448.c: New.
15418
15419 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
15420
15421         PR gcov-profile/34609
15422         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15423         return_slot if result is TREE_ADDRESSABLE.
15424
15425 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
15426
15427         * config/mips/mips.md (sqrt_condition): Tweak comment.
15428         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
15429
15430 2008-01-03  Tom Tromey  <tromey@redhat.com>
15431
15432         PR c/34457
15433         * c-common.c (c_type_hash): Handle VLAs.
15434
15435 2008-01-03  Jan Hubicka  <jh@suse.cz>
15436
15437         PR tree-optimization/31081
15438         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15439         0 when inlining and not inlining to first basic block.
15440         (remap_decl): When var is initialized to 0, don't set default_def.
15441         (expand_call_inline): Set entry_bb.
15442         * tree-inline.h (copy_body_data): Add entry_bb.
15443
15444 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15445
15446         PR c++/34619
15447         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15448         before returning.
15449
15450         PR tree-optimization/29484
15451         * tree-inline.c (inline_forbidden_p_2): New function.
15452         (inline_forbidden_p): Disallow inlining if some static var
15453         has an address of a local LABEL_DECL in its initializer.
15454         * doc/extend.texi (Labels as Values): Document &&foo behaviour
15455         vs. inlining.
15456
15457 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15458
15459         PR tree-optimization/34635
15460         * tree-data-ref.c (add_other_self_distances): Make sure that the
15461         evolution step is constant.
15462
15463 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15464
15465         PR middle-end/34608
15466         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15467
15468 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
15469
15470         * tree-sra.c (scalarize_init): Insert the generate_element_init
15471         statements after the generate_element_zero statements.
15472
15473 2008-01-02  Richard Guenther  <rguenther@suse.de>
15474
15475         PR middle-end/34093
15476         PR middle-end/31976
15477         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15478         for very large number of operands instead of ICEing.
15479
15480 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
15481
15482         PR target/34013
15483         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15484         while stack probing.
15485
15486 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
15487
15488         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15489         in C++0x mode.
15490
15491 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
15492
15493         PR libmudflap/26442
15494         * tree-mudflap.c (mx_register_decls): Guard warning by
15495         !DECL_ARTIFICIAL check.
15496
15497 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
15498
15499         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15500         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15501         sse5_perm<mode>): Fix constraints.