OSDN Git Service

2008-07-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-19  Richard Guenther  <rguenther@suse.de>
2
3         PR bootstrap/36864
4         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
5         * tree-ssa-sccvn.c (get_constant_value_id): New function.
6         * tree-ssa-pre.c (get_expr_value_id): For newly created
7         constant value-ids make sure to add the expression to its
8         expression-set.
9
10 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
11
12         PR middle-end/36877
13         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
14         return value of the builtin is ignored.
15
16 2008-07-19  Olivier Hainque  <hainque@adacore.com>
17
18         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
19         bits, a C conformant malloc implementation has to provide.
20         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
21
22 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
23
24         PR target/36780
25         PR target/36827
26         * reload.c (find_reloads_subreg_address): Only reload address if
27         reloaded == 0, not for reloaded != 1.
28
29         Revert:
30         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
31         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
32         (m32c_legitimate_address_p): Handle "++rii" addresses created by
33         m32c_legitimize_reload_address.
34
35         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
36         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
37         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
38
39 2008-07-19  Olivier Hainque  <hainque@adacore.com>
40
41         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
42         argument, saying whether nested array are to be collapsed
43         into a single array type DIE with multiple subscripts.
44         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
45         issues, centralize the nested array types collapsing control and
46         disable the transformation for Ada.
47         
48 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
49
50         PR target/36786
51         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
52         x86_64_shift_adj.
53         (x86_64_shift_adj_2): New expander.
54         (x86_64_shift_adj_3): Ditto.
55         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
56         to split TImode operands.
57         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
58         (ix86_split_lshr): Ditto.
59
60 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
61
62         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
63         and __CHAR32_TYPE__.
64         * c-typeck.c (digest_init): Support char16_t and char32_t.
65         (set_nonincremental_init_from_string): Idem.
66
67 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
68
69         PR middle-end/36859
70         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
71         PREFERRED_STACK_BOUNDARY.
72         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
73
74 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
75
76         PR middle-end/36858
77         * function.c (locate_and_pad_parm): Cap boundary earlier.
78
79 2008-07-17  Julian Brown  <julian@codesourcery.com>
80
81         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
82         no-op for targets which don't use DLLs.
83
84 2008-07-17  Martin Jambor  <mjambor@suse.cz>
85
86         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
87         that nodes are relevant by examining the node->analyzed flag.
88         (ipcp_init_stage): Check which nodes are relevant, assert that the
89         relevant ones are also required.
90         (ipcp_propagate_stage): Check on the side arrays are properly
91         allocated.
92         (ipcp_print_all_jump_functions): Make sure not to touch any node
93         that is not analyzed or an edge that does not have a corresponding
94         entry in the on-the-side vectors.
95         (ipcp_function_scale_print): Likewise.
96         (ipcp_update_callgraph): Check that the node is relevant.
97         (ipcp_insert_stage): Check that the node is relevant.  Check there is
98         an info for every node and edge.
99         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
100         (ipa_print_all_tree_maps): Likewise and a new variable info.
101         (ipa_print_all_params_modified): Likewise.
102         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
103
104 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
105
106         PR target/25343
107         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
108
109 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
110
111         PR rtl-optimization/36753
112         * fwprop.c (use_killed_between): Don't shortcut
113         single-definition global registers.
114
115 2008-07-16  Jan Hubicka  <jh@suse.cz>
116
117         * cgraph.h (varpool_empty_needed_queue): Declare.
118         * cgraphunit.c (output_in_order): Mark all variables as needed;
119         empty the queue.
120         * varpool.c (varpool_assemble_node): Update debug queue.
121         (varpool_assemble_pending_decls): Don't do it here.
122         (varpool_empty_needed_queue):  New function.
123
124 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
125
126         * recog.c (peephole2_optimize): Fix formatting.
127
128 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
129
130         * c-pch.c (get_ident): Avoid C++ keywords.
131         * combine-stack-adj.c (single_set_for_csa): Likewise.
132         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
133         output_asm_insn): Likewise.
134         * reload.c (push_secondary_reload, find_reusable_reload,
135         push_reload, combine_reloads, find_reloads,
136         debug_reload_to_stream): Likewise.
137         * reload.h (struct reload): Likewise.
138         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
139         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
140         emit_output_reload_insns): Likewise.
141         * targhooks.c (default_secondary_reload): Likewise.
142         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
143
144 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
145
146         * recog.c (validate_change_1, validate_change,
147         validate_unshare_change, validate_replace_rtx_1, struct
148         funny_match, constrain_operands, peephole2_optimize): Avoid C++
149         keywords.
150         * reload.c (push_secondary_reload, secondary_reload_class,
151         scratch_reload_class, find_valid_class, find_reusable_reload,
152         push_reload, find_dummy_reload, find_reloads_address_1,
153         find_reloads_address_part, find_equiv_reg): Likewise.
154         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
155         choose_reload_regs): Likewise.
156         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
157         Likewise.
158         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
159         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
160         * sched-rgn.c (concat_INSN_LIST): Likewise.
161         * stor-layout.c (mode_for_size, mode_for_size_tree,
162         smallest_mode_for_size): Likewise.
163
164 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
165
166         * cfg.c (dump_reg_info): Avoid C++ keywords.
167         * dwarf2asm.c (dw2_force_const_mem,
168         dw2_asm_output_encoded_addr_rtx): Likewise.
169         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
170         * expmed.c (expand_shift): Likewise.
171         * global.c (find_reg): Likewise.
172         * graph.c (draw_edge): Likewise.
173         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
174         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
175         widen_clz, widen_bswap, expand_parity, expand_unop,
176         emit_cmp_and_jump_insn_1): Likewise.
177         * postreload.c (reload_cse_simplify_operands): Likewise.
178         * ra.h (add_neighbor): Likewise.
179         * reg-stack.c (remove_regno_note, change_stack): Likewise.
180         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
181         record_reg_classes, copy_cost, record_address_regs,
182         invalid_mode_change_p): Likewise.
183         * regrename.c (regrename_optimize, scan_rtx_reg,
184         dump_def_use_chain, find_oldest_value_reg,
185         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
186
187 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
188
189         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
190         MASK_POWERPC64 for power4 in previous commit.
191
192 2008-07-16  Olivier Hainque  <hainque@adacore.com>
193
194         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
195         instead of bare conversion to cast const-ness away.
196
197 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
198
199         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
200         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
201         * config/xtensa/xtensa.c (xtensa_function_value): New function.
202         (TARGET_FUNCTION_VALUE): Define.
203
204 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
205
206         * config/rs6000/rs6000.c (processor_target_table): Add
207         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
208
209 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
210
211         PR target/36827
212         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
213         (m32c_legitimate_address_p): Handle "++rii" addresses created by
214         m32c_legitimize_reload_address.
215
216 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
217
218        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
219        DECL_IN_SYSTEM_HEADER in sync.
220
221 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
222
223         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
224         * tree-ssa-pre.c (pre_expr_eq): Ditto
225         (get_constant_for_value_id): Take a type as an argument.
226         (fully_constant_expression): Pass in type.
227         (find_or_generate_expression): Short circuit constant case.
228         (create_expression_by_pieces): Remove special casing of
229         pointer_plus.
230         (do_regular_insertion): Short circuit constant case.
231         (do_partial_partial_insertion): Ditto.
232
233 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
234
235         PR target/36782
236         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
237
238 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
239         
240         * config/xtensa/libgcc-xtensa.ver: New file.
241         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
242         
243 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
244
245         * df-problems.c (df_set_note): Avoid C++ keywords.
246         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
247         * dse.c (record_store, remove_useless_values): Likewise.
248         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
249         gen_reg_rtx_offset, operand_subword, change_address_1,
250         change_address, adjust_address_1, offset_address,
251         widen_memory_access, emit_copy_of_insn_after): Likewise.
252         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
253         * fwprop.c (should_replace_address, propagate_rtx_1,
254         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
255         Likewise.
256         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
257         gcse_emit_move_after, update_ld_motion_stores): Likewise.
258         * lcm.c (compute_insert_delete, pre_edge_lcm,
259         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
260         * lower-subreg.c (resolve_reg_notes): Likewise.
261         * mode-switching.c (optimize_mode_switching): Likewise.
262
263 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
264
265         * bt-load.c (add_btr_def, migrate_btr_def,
266         branch_target_load_optimize): Avoid C++ keywords.
267         * caller-save.c (insert_restore, insert_save, insert_one_insn):
268         Likewise.
269         * combine.c (subst, simplify_set, make_extraction,
270         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
271         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
272         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
273
274 2008-07-15  Richard Guenther  <rguenther@suse.de>
275
276         PR middle-end/36369
277         * c-common.c (strict_aliasing_warning): Do not warn for
278         TYPE_REF_CAN_ALIAS_ALL pointers.
279         (c_common_get_alias_set): may_alias types are not special.
280         * tree.c (build_pointer_type_for_mode): Look up the may_alias
281         attribute and set can_ref_all accordingly.
282         (build_reference_type_for_mode): Likewise.
283         * doc/extend.texi (may_alias): Clarify.
284
285 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
286
287         PR target/36780
288         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
289         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
290
291 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
292
293         PR target/31568
294         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
295         gcc_assert, instead call output_operand_lossage.
296
297 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
298
299         * builtins.c (std_canonical_va_list): Treat structure based
300         va_list types.
301
302 2008-07-15  Ben Elliston  <bje@au.ibm.com>
303
304         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
305
306 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
307
308         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
309         is set.
310
311 2008-07-14  Jan Hubicka  <jh@suse.cz>
312
313         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
314         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
315         fix predicates and constraints.
316         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
317         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
318
319 2008-07-14  Doug Kwan  <dougkwan@google.com>
320
321         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
322         additional option file arm/eabi.opt.
323         * config/arm/eabi.h (File): New configuration file for EABI targets.
324         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
325         SUBSUBTARGET_EXTRA_SPECS.
326         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
327         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
328         from STARTFILE_SPEC so that it can be referenced in an override.
329         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
330         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
331         can be referenced in an override.
332         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
333         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
334         so that it can be referenced in an override.
335         (LINK_SPEC): Use BPABI_LINK_SPEC.
336         * config/arm/eabi.opt (File): New.
337
338 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
339
340         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
341         (FIXED_VALUE_H): New variable.
342         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
343         input.h, fixed-value.h.
344         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
345         (BASIC_BLOCK_H): Use $(BITMAP_H).
346         (FUNCTION_H): Add varray.h.
347         (IPA_REFERENCE_H): Use $(BITMAP_H).
348         (CGRAPH_H): Add $(BASIC_BLOCK_H).
349         (DF_H): Use $(BITMAP_H).
350         (GGC_H): Add statistics.h.
351         (INSN_ADDR_H): New.
352         (INSN_ATTR_H): Use it.
353         (SYSTEM_H): Add safe-ctype.h, filenames.h.
354         (INPUT_H): New.
355         (SYMTAB_H): Add $(OBSTACK_H).
356         (CPP_INTERNAL_H): New.
357         (TREE_DUMP_H): Add tree-pass.h.
358         (TREE_FLOW_H): Use $(BITMAP_H)
359         (PRETTY_PRINT_H): Use $(INPUT_H).
360         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
361         (GSTAB_H): New.
362         (BITMAP_H): New.
363         (many object files): Fix lots of header dependencies throughout.
364
365 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
366
367         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
368         New macros.
369         (s-gtyp-input): Use them to write tmp-gi.list.
370         (echo_to_gi.list): Remove.
371
372 2008-07-14  Richard Guenther  <rguenther@suse.de>
373
374         * tree-ssa-sccvn.c (pre_info): Remove.
375         (switch_to_PRE_table): Likewise.
376         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
377         (set_hashtable_value_ids): Do not create value-ids for the
378         optimistic tables.
379         (run_scc_vn): Remove double test.  Remove bogus special-case
380         in value-number printing.
381         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
382         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
383         SSA_NAME_VALUE.
384         * tree-flow-inline.h (get_value_handle): Remove.
385         * tree-flow.h (get_value_handle): Remove.
386
387 2008-07-14  Martin Jambor  <mjambor@suse.cz>
388
389         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
390         in which we generate arithmetics is not a subrange.
391
392 2008-07-14  Martin Jambor  <mjambor@suse.cz>
393
394         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
395
396 2008-07-14  Richard Guenther  <rguenther@suse.de>
397
398         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
399
400 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
401
402         PR target/36745
403         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
404         reload for symbol refs moved to r0 with -fPIC.
405         (legitimize_pic_address): Use the target register as temporary
406         reg if possible.
407         (emit_symbolic_move): Adjust comment.
408         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
409         New expanders.
410
411 2008-07-14  Ben Elliston  <bje@au.ibm.com>
412
413         * c-common.h (C_CPP_HASHNODE): New macro.
414         * coretypes.h (struct cpp_token): Forward declare.
415         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
416         the context-sensitive keyword method.
417         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
418         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
419         expand_bool_pixel): New.
420         (altivec_categorize_keyword): New function.
421         (init_vector_keywords): New function.
422         (rs6000_macro_to_expand): Likewise.
423         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
424         compiling an ISO C dialect.
425
426 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
427
428         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
429         (create_expression_by_pieces): Fix typo.
430         (do_regular_insertion): Use debug counter here too.
431
432 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
433
434         PR target/35492.
435         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
436         CONST_OK_FOR_LETTER_P.  All port-local users changed.
437         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
438         implement Kp matching power-of-two.
439         (CONSTRAINT_LEN): Define to match.
440         * config/cris/cris.md: Replace all use of constraint K with Kc.
441         ("*btst*): Use Kp for operand 0 of last alternative.
442
443 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
444
445         PR testsuite/36440
446         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
447         and quad formats.
448
449 2008-07-13  Jan Hubicka  <jh@suse.cz>
450
451         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
452         to be mangled too.
453
454 2008-07-13  Richard Guenther  <rguenther@suse.de>
455
456         PR middle-end/36811
457         * langhooks.c (lhd_print_error_function): Deal with recursive
458         BLOCK trees.
459
460 2008-07-12  Jan Hubicka  <jh@suse.cz>
461
462         * cgraph.c (assembler_name_hash): New static var.
463         (hash_node_by_assembler_name, eq_assembler_name): New.
464         (cgraph_node_for_asm): Use hashtable.
465         (cgraph_remove_node): Maintain hashtable.
466         (change_decl_assembler_name): Sanity check that names are not changing
467         after aliasing was processed.
468         * cgraph.h (varpoon_node): Add next GGC marker.
469         * tree.c (decl_assembler_name_equal): Constify.
470         (decl_assembler_name_hash): New.
471         * tree.h (decl_assembler_name_equal): Constify.
472         (decl_assembler_name_hash): Update.
473
474 2008-07-12  David Daney  <ddaney@avtrex.com>
475
476         * config/mips/driver-native.c (host_detect_local_cpu): Handle
477         sb1 and r5000 cpus.
478
479 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
480
481         * doc/md.texi: Document the MIPS "v" constraint.
482         * config/mips/mips.h (reg_class): Revert last change.
483         (REG_CLASS_NAMES): Likewise.
484         (REG_CLASS_CONTENTS): Likewise.
485         * config/mips/mips.c (mips_regno_to_class): Likewise.
486         * config/mips/constraints.md (v): Likewise, but add documentation.
487         Add a comment to say that this constraint should not be used in
488         gcc code.
489
490 2008-07-11  DJ Delorie  <dj@redhat.com>
491
492         * config/h8300/h8300.md (length): Fix branch offset limit.
493
494 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
495
496         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
497         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
498         (avr_hard_regno_scratch_ok): New function.
499         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
500         * config/avr/avr.md (all peepholes that request a scratch register):
501         Remove avr_peep2_scratch_safe use.
502
503 2008-07-11  Tom Tromey  <tromey@redhat.com>
504             Ian Lance Taylor  <iant@google.com>
505
506         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
507         (struct c_common_resword): Define.
508         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
509         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
510         (c_common_reswords, num_c_common_reswords): Declare.
511         * c-common.c (c_common_reswords): New global const array.
512         (num_c_common_reswords): New const int.
513         * c-parser.c (struct resword, reswords): Don't define.
514         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
515         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
516         than reswords.  If warning about C++ keywords, give them a special
517         RID code.
518         (c_lex_one_token): Warn about C++ keywords.  Call
519         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
520         (c_parser_external_declaration): Look for RID_xxx rather than
521         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
522         (c_parser_statement_after_labels): Likewise.
523         (c_parser_objc_class_instance_variables): Likewise.
524         (c_parser_objc_class_declaration): Likewise.
525         (c_parser_objc_try_catch_statement): Likewise.
526         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
527         (declspecs_add_type): Likewise.
528
529 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
530
531         * ggc-page.c (alloc_page):
532         Substituting xmalloc, xcalloc with
533         XNEWVEC and XCNEWVAR macros which add the
534         needed casts.
535
536 2008-07-11  Richard Guenther  <rguenther@suse.de>
537
538         PR tree-optimization/36765
539         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
540         aliases from HEAP vars to SMTs.
541
542 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
543
544         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
545         * configure.ac (loose_warn): Move -Wc++-compat from here...
546         (strict_warn): ...to here.
547         * configure: Regenerate.
548
549 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
550
551         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
552         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
553         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
554         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
555         excluding more specific h8300-*-* and sh-*-* targets.
556
557 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
558
559         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
560         (eliminate): Ditto.
561         (execute_pre): Call loop_optimizer_finalize in early exit.
562
563 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
564
565         PR middle-end/36790
566         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
567         uids in the bitmap, not just VAR_DECL uids.
568
569         PR rtl-optimization/36419
570         * combine-stack-adj.c (adjust_frame_related_expr): New function.
571         (combine_stack_adjustments_for_block): Call it if needed.  Delete
572         correct insn.
573         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
574         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
575         prologue sp adjustment.
576
577 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
578
579         PR other/28322
580         * opts.c (print_ignored_options): Report postponed diagnostics for
581         unknown -Wno-* options as warnings, not errors.
582         (postpone_unknown_option_error): Renamed to...
583         (postpone_unknown_option_warning): ... this.
584
585 2008-07-09  Doug Kwan  <dougkwan@google.com>
586
587         Revert:
588         2008-07-08  Doug Kwan  <dougkwan@google.com>
589
590         * config/arm/arm.opt (mandroid): New option.
591         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
592         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
593         (CC1_SPEC): Same.
594         (CC1PLUS_SPEC): Same.
595         (LIB_SPEC): Same.
596         (STARTFILE_SPEC): Same.
597         (ENDFILE_SPEC): Same.
598         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
599         used.
600
601 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
602
603         PR target/35802
604         * config/mips/mips.h (reg_class): Remove V1_REG.
605         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
606         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
607         instead of V1_REGS.
608         (mips_get_tp): New function.
609         (mips_legitimize_tls_address): Use it.
610         * config/mips/constraints.md (v): Delete.
611         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
612         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
613         After reload, split into a move and ...
614         (*tls_get_tp_<mode>_split): ...this new instruction.
615
616 2008-07-09  David Daney  <ddaney@avtrex.com>
617
618         * config/mips/driver-native.c: Include coretypes.h and tm.h.
619
620 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
621
622         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
623         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
624         Add c argument.
625         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
626         htab_delete should be called.  Don't free c.
627         (lookup_tmp_var): Create temp_htab lazily.
628         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
629         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
630         callers.
631         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
632         lower_omp_ordered, lower_omp_critical, lower_omp_for,
633         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
634         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
635         * tree-sra.c (generate_element_init): Likewise.
636         * tree-mudflap.c (execute_mudflap_function_ops,
637         execute_mudflap_function_decls): Likewise.
638         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
639         * tree-gimple.h (struct gimplify_ctx): New type.
640         (push_gimplify_context): Adjust prototype.
641
642 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
643
644         * tree-ssa-pre.c (phi_translate_1): Update placement of
645         add_to_value calls.
646
647 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
648
649         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
650         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
651         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
652         * targhooks.c (default_hard_regno_scratch_ok): New function.
653         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
654         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
655         * recog.c:  Include "target.h".
656         (peep2_find_free_register): Add check for global regs. Add target
657         specific check.
658         * Makefile.in (recog.o): Depend on target.h.
659
660 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
661
662         * config/sh/sh.c (sh_canonical_va_list_type): New.
663         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
664
665 2008-07-09  Raksit Ashok <raksit@google.com>
666
667         * doc/invoke.texi (Option Summary): Mention new option
668         -Wdisallowed-function-list=...
669         (Warning Options): Document -Wdisallowed-function-list=...
670         * common.opt (Wdisallowed-function-list=): New flag.
671         * flags.h (warn_disallowed_functions): External definition of new
672         boolean warning flag.
673         (warn_if_disallowed_function_p): Declare new function.
674         * opts.c (warning_disallowed_functions): New static variable.
675         (warn_disallowed_functions): New boolean warning flag.
676         (warn_if_disallowed_function_p): New function.
677         (add_comma_separated_to_vector): Rename
678         add_instrument_functions_exclude_list to this.
679         (common_handle_option): Handle new option. Rename calls to
680         add_instrument_functions_exclude_list into calls to
681         add_comma_separated_to_vector.
682         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
683         based on flag warn_disallowed_functions.
684
685 2008-07-09  Christian Bruel  <christian.bruel@st.com>
686
687         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
688          instead of get_attr_length.
689
690 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
691
692         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
693         keywords.
694         * genemit.c (gen_insn): Likewise.
695         * gengtype.c (note_def_vec): Likewise.
696         * gengtype.h (note_def_vec): Likewise.
697         * genoutput.c (struct data, output_insn_data, process_template,
698         gen_expand, gen_split, note_constraint): Likewise.
699         * genrecog.c (new_decision, add_to_sequence, factor_tests,
700         make_insn_sequence): Likewise.
701         * gensupport.c (record_insn_name): Likewise.
702
703 2008-07-08  Doug Kwan  <dougkwan@google.com>
704
705         * config/arm/arm.opt (mandroid): New option.
706         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
707         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
708         (CC1_SPEC): Same.
709         (CC1PLUS_SPEC): Same.
710         (LIB_SPEC): Same.
711         (STARTFILE_SPEC): Same.
712         (ENDFILE_SPEC): Same.
713         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
714         used.
715
716 2008-07-08  Raksit Ashok  <raksit@google.com>
717
718         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
719         (set_storage_via_setmem): Fix expected_align parameter.
720         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
721         missing from the list.
722         * doc/md.texi (movmem): Explicitly state that expected alignment is
723         to be expressed in bytes.
724         (setmem): Explicitly state that expected alignment is to be expressed
725         in bytes.
726
727 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
728
729         * reload.c (find_reloads_subreg_address): Do not require validity
730         of address in original mode before reloading address.
731
732 2008-07-07  Tianwei Sheng  <tianweis@google.com>
733
734         * df-core.c (df_remove_problem): Adjust the access to avoid out of
735         bounds array access.
736
737 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
738
739         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
740
741 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
742         
743         Fix PR tree-optimization/23455
744         Fix PR tree-optimization/35286
745         Fix PR tree-optimization/35287
746         * Makefile.in (OBJS-common): Remove tree-vn.o.
747         (tree-vn.o): Remove.
748         * dbgcnt.def: Add treepre_insert debug counter.
749         * gcc/tree-flow.h (add_to_value): Updated for other changes.
750         (debug_value_expressions): Ditto.
751         (print_value_expressions): Ditto.
752         * tree-pretty-print.c (dump_generic_node): Updated for
753         VALUE_HANDLE removal.
754         * tree-ssa-dom.c (record_equality): Ditto.
755         (cprop_operand): Ditto.
756         (lookup_avail_expr): Ditto.
757         * tree-ssa-threadedge.c
758         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
759         (simplify_control_stmt_condition): Ditto.
760         * tree.c (tree_code_size): Ditto.
761         (tree_node_structure): Ditto.
762         (iterative_hash_expr): Ditto.
763         * tree.def: Ditto.
764         * tree.h (VALUE_HANDLE_ID): Ditto.
765         (VALUE_HANDLE_EXPR_SET): Ditto.
766         (struct tree_value_handle): Ditto.
767         (union tree_node): Ditto.
768         * treestruct.def: Ditto.
769         * tree-vn.c: Removed.
770         * tree-ssa-pre.c: Rewritten entirely.
771         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
772         (constant_value_ids): Ditto.
773         (vn_nary_op_t): Moved to header.
774         (vn_phi_t): Ditto.
775         (vn_reference_op_t): Ditto
776         (vn_reference_t): Ditto.
777         (next_value_id): New variable.
778         (VN_INFO): Add an assert.
779         (vn_constant_eq): New function.
780         (vn_constant_hash): Ditto.
781         (get_or_alloc_constant_value_id): Ditto.
782         (value_id_constant_p): Ditto.
783         (vn_reference_compute_hash): De-staticify.
784         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
785         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
786         (valueize_refs): Update opcode if it changes from ssa name to constant.
787         (vn_reference_lookup_1): Add new argument.
788         (vn_reference_lookup):  Ditto.
789         (vn_reference_lookup_pieces): New function.
790         (vn_reference_insert): Add return type. Modify to deal with value ids.
791         (vn_reference_insert_pieces):  New function.
792         (vn_nary_op_compute_hash): De-staticify.
793         (vn_nary_op_eq): Ditto.
794         (vn_nary_op_lookup_pieces): New function.
795         (vn_nary_op_lookup): Add new argument.  
796         (vn_nary_op_insert_pieces): New function.
797         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
798         (vn_phi_insert): Ditto.
799         (visit_unary_op): Update for callee changes.
800         (visit_binary_op): Ditto.
801         (visit_reference_op_load): Ditto.
802         (visit_reference_op_store): Ditto.
803         (init_scc_vn): Init next_value_id, constant_to_value_id and
804         constant_value_ids. 
805         (free_scc_vn): Free them.
806         (set_hashtable_value_ids): New function.
807         (run_scc_vn): Use it.
808         (get_max_value_id): New function.
809         (get_next_value_id): Ditto.
810         (expressions_equal_p): Moved from tree-vn.c
811         (sort_vuses): Ditto.
812         (sort_vuses_heap): Ditto.
813         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
814         above).
815         * tree.c (iterative_hash_hashval_t): Made non-static
816         * tree.h (iterative_hash_hashval_t): Declare it.
817         
818 2008-07-08  Martin Jambor  <mjambor@suse.cz>
819
820         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
821         instead of ipa_create_node_params.
822         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
823         ipa_check_create_edge_args, free them with
824         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
825
826         * ipa-prop.c: Include flags.h and tree-inline.h.
827         (ipa_node_params_vector): New variable.
828         (ipa_edge_args_vector): New variable.
829         (edge_removal_hook_holder): New variable.
830         (node_removal_hook_holder): New variable.
831         (edge_duplication_hook_holder): New variable.
832         (node_duplication_hook_holder): New variable.
833         (ipa_detect_param_modifications): Check for presence of modified flags.
834         (ipa_compute_jump_functions): Check for presence of jump functions.
835         (ipa_free_edge_args_substructures): New function.
836         (ipa_create_node_params): Removed.
837         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
838         (ipa_free_node_params_substructures): New function.
839         (ipa_free_all_node_params): Changed to deallocate the on-the-side
840         vector.
841         (ipa_edge_removal_hook): New function.
842         (ipa_node_removal_hook): New function.
843         (duplicate_array): New function.
844         (ipa_edge_duplication_hook): New function.
845         (ipa_node_duplication_hook): New function.
846         (ipa_register_cgraph_hooks): New function.
847         (ipa_unregister_cgraph_hooks): New function.
848         (free_all_ipa_structures_after_ipa_cp): New function.
849         
850         * ipa-prop.h: Include vec.h.
851         (ipa_node_params_t): New typedef with vector types for it.
852         (ipa_edge_args_t):  New typedef with vector types for it.
853         (IPA_NODE_REF): Changed to access an on-the-side vector.
854         (IPA_EDGE_REF): Changed to access an on-the-side vector.
855         (ipa_check_create_node_params): New function.
856         (ipa_check_create_edge_args): New function.
857         
858         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
859         all users.
860         
861 2008-07-07  Tom Tromey  <tromey@redhat.com>
862
863         * configure, config.in: Rebuilt.
864         * configure.ac: Don't check for scandir or alphasort.
865
866 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
867
868         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
869         types immediately after creating them.
870
871 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
872
873         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
874
875 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
876
877         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
878         dump_constraint_graph.
879         (dump_constraint_edge): New function.
880         (dump_constraint_graph): New function.
881         (debug_constraint_graph): New function.
882         (dump_constraint): Removed useless comparison.
883         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
884         (dump_constraint_graph): Declare.
885         (debug_constraint_graph): Declare.
886         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
887
888 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
889
890         * config/i386/i386.c (is_va_list_char_pointer): New.
891         (ix86_va_start): Replace compare with ms_va_list_type_node
892         by is_va_list_char_pointer.
893         (ix86_gimplify_va_arg): Likewise.
894
895 2008-07-07  Martin Jambor  <mjambor@suse.cz>
896
897         * cgraph.c (cgraph_edge_max_uid): New variable.
898         (struct cgraph_edge_hook_list): New type.
899         (struct cgraph_node_hook_list): New type.
900         (struct cgraph_2edge_hook_list): New type.
901         (struct cgraph_2node_hook_list): New type.
902         (first_cgraph_edge_removal_hook): New variable.
903         (first_cgraph_node_removal_hook): New variable.
904         (first_cgraph_edge_duplicated_hook): New variable.
905         (first_cgraph_node_duplicated_hook): New variable.
906         (cgraph_add_edge_removal_hook): New function.
907         (cgraph_remove_edge_removal_hook): New function.
908         (cgraph_call_edge_removal_hooks):  New function.
909         (cgraph_add_node_removal_hook):  New function.
910         (cgraph_remove_node_removal_hook):  New function.
911         (cgraph_call_node_removal_hooks):  New function.
912         (cgraph_add_edge_duplication_hook):  New function.
913         (cgraph_remove_edge_duplication_hook):  New function.
914         (cgraph_call_edge_duplication_hooks):  New function.
915         (cgraph_add_node_duplication_hook):  New function.
916         (cgraph_remove_node_duplication_hook):  New function.
917         (cgraph_call_node_duplication_hooks):  New function.
918         (cgraph_create_edge): Assign to edge uid.
919         (cgraph_remove_edge): Call edge removal hooks.
920         (cgraph_node_remove_callees): Call edge removal hooks.
921         (cgraph_node_remove_callers): Call edge removal hooks.
922         (cgraph_remove_node): Call node removal hooks.
923         (cgraph_clone_edge): Call edge duplication hooks.
924         (cgraph_clone_node): Call node duplication hooks.
925
926         * cgraph.h (cgraph_edge): New field uid.
927         (cgraph_edge_hook): New type.
928         (cgraph_node_hook): New type.
929         (cgraph_2edge_hook): New type.
930         (cgraph_2node_hook): New type.
931
932 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
933
934         * config.in: Regenerate.
935
936 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
937
938         * gcc.c (print_sysroot): New.
939         (option_map, display_help, process_command): Handle the
940         -print-sysroot option.
941         (main): Print the sysroot if requested.
942         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
943         
944 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
945
946         PR target/34780
947         * unwind-pe.h (size_of_encoded_value): add attribute unused.
948
949 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
950
951         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
952         (assign_parm_setup_block_p): Also check mode of entry_parm.
953
954 2008-07-07  Richard Guenther  <rguenther@suse.de>
955
956         * tree-ssa-structalias.h (set_used_smts): Remove.
957         * tree-ssa-structalias.c (used_smts): Likewise.
958         (set_used_smts): Likewise.
959         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
960         call to set_used_smts.
961
962 2008-07-07  Richard Guenther  <rguenther@suse.de>
963
964         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
965         (new_var_info): Set it to false.
966         (solution_set_add): Correctly handle pointers outside a var and
967         inside a field.
968         (type_safe): Treat variables with is_full_var properly.
969         (do_sd_constraint): Likewise.
970         (do_ds_constraint): Likewise.
971         (process_constraint): Remove zeroing offset for !use_field_sensitive.
972         (get_constraint_for_ptr_offset): New function.
973         (get_constraint_for_component_ref): For addresses at least include
974         the last field of the variable.  Handle is_full_vars properly.
975         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
976         (handle_ptr_arith): Remove.
977         (find_func_aliases): Simplify assignment handling.
978         (create_function_info_for): For parameter and result varinfos set
979         is_full_var flag.
980         (create_variable_info_for): Set is_full_var flag whenever we
981         just created a single varinfo for a decl.
982         (init_alias_vars): Initialize use_field_sensitive from
983         max-fields-for-field-sensitive parameter.
984
985 2008-07-07  Richard Guenther  <rguenther@suse.de>
986
987         PR tree-optimization/36713
988         * tree-flow-inline.h (is_call_used): New function.
989         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
990         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
991         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
992
993 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
994
995         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
996         
997 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
998
999         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1000
1001 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1002             Nathan Sidwell  <nathan@codesourcery.com>
1003
1004         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
1005         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1006         tmake_file.
1007         * config/m68k/t-linux: New.
1008         * doc/install.texi: Document m68k-*-linux is now multilibbed by
1009         default.
1010
1011 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1012
1013         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1014         * config/m68k/m68k-devices.def: Remove multilibs that only differ
1015         by MAC/EMAC.
1016
1017 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1018
1019         * gcc.c (execute): Fix -Wc++-compat warning.
1020
1021 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
1022
1023         PR target/36720
1024         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1025         constant for little endian.
1026
1027 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
1028
1029         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1030         mips_base_mips16 instead of TARGET_MIPS16.
1031         (mips_base_mips16): Declare.
1032         * config/mips/mips.c (mips_base_mips16): Make global.
1033         (was_mips16_p): Remove GTY marker.
1034         (was_mips16_pch_p): New variable.
1035         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1036         (mips_override_options): Force to non-MIPS16 mode initially.
1037         Do not complain about MIPS16 PIC incompatibilities here.
1038         Only allow -mgpopt if -mexplicit-relocs is in force for
1039         non-MIPS16 code.
1040
1041 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
1042
1043         * configure.ac: Check for caddr_t, define to char * if not defined.
1044         * configure: Regenerate.
1045         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1046         (mmap_gt_pch_use_address): Likewise.
1047         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1048
1049 2008-07-06  Richard Guenther  <rguenther@suse.de>
1050
1051         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1052         (new_var_info): Deal with it.
1053         (solution_set_add): Likewise.
1054         (bitpos_of_field): Make signed, fix.
1055         (struct fieldoff): Remove type and decl fields.  Make size field
1056         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
1057         flags.
1058         (fieldoff_compare): Deal with it.
1059         (push_fields_onto_fieldstack): Remove has_union argument, glob
1060         adjacent non-pointer fields together.
1061         (create_function_info_for): Do not set has_union.
1062         (create_variable_info_for): Simplify.
1063
1064 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
1065
1066         * config.gcc (extra_headers): Add cross-stdarg.h for target
1067         x86_64-*-* and i?86-*-*.
1068         * config/i386/cross-stdarg.h: New.
1069         * builtins.c (std_fn_abi_va_list): New.
1070         (std_canonical_va_list_type): New.
1071         (stabilize_va_list): Replace va_list_type_node use by
1072         mtarget.canonical_va_list_type.
1073         (gimplify_va_arg_expr): Likewise.
1074         (expand_builtin_va_copy): Replace va_list_type_node use by
1075         mtarget.fn_abi_va_list.
1076         * tree-sra.c (is_va_list_type): New helper.
1077         (decl_can_be_decomposed_p): Replace
1078         va_list_type_node use by is_va_list_type.
1079         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1080         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1081         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1082         * config/i386/i386-protos.h (ix86_get_valist_type): New.
1083         (ix86_enum_va_list): New.
1084         * config/i386/i386.c (sysv_va_list_type_node): New.
1085         (ms_va_list_type_node): New.
1086         (ix86_function_type_abi): Remove sorry.
1087         (ix86_build_builtin_va_list_abi): New.
1088         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1089         for 64-bit targets.
1090         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1091         (ix86_init_builtins_va_builtins_abi): New.
1092         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1093         for 64-bit targets.
1094         (ix86_handle_abi_attribute): New.
1095         (attribute_spec): Add sysv_abi and ms_abi.
1096         (ix86_fn_abi_va_list): New.
1097         (ix86_canonical_va_list_type): New.
1098         (ix86_enum_va_list): New.
1099         (TARGET_FN_ABI_VA_LIST): New.
1100         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1101         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1102         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1103         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1104         (TARGET_ENUM_VA_LIST): New.
1105         * expr.h (std_fn_abi_va_list): New.
1106         (std_canonical_va_list_type): New.
1107         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1108         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1109         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1110         TARGET_CANONICAL_VA_LIST_TYPE.
1111         * target.h (struct gcc_target): Add fn_abi_va_list hook
1112         and canonical_va_list_type hook.
1113
1114 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1115
1116         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1117         integral and pointer types.
1118
1119 2008-07-04  Roger Sayle  <roger@eyesopen.com>
1120
1121         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
1122         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1123
1124 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1125
1126         PR target/36684
1127         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
1128
1129 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
1130
1131         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1132         build_gimple_modify_stmt.
1133         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
1134         gimple operand.  Use fold_build* instead of build*.
1135
1136 2008-07-04  Richard Guenther  <rguenther@suse.de>
1137
1138         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1139         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1140         properly to compute the reachability set if we do field-sensitive PTA.
1141         * invoke.texi (max-fields-for-field-sensitive): Document default.
1142         * opts.c (decode_options): Set max-fields-for-field-sensitive to
1143         100 for optimize >= 2.
1144
1145 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1146
1147         * ggc-zone.c (lookup_page_table_if_allocated,
1148         set_page_table_entry, zone_find_object_size, alloc_small_page,
1149         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
1150         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
1151         -Wc++-compat and/or -Wcast-qual warnings.
1152
1153 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
1154
1155         PR target/36634
1156         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
1157         pic_offset_table_rtx to be marked as used here.
1158         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
1159         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
1160         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
1161         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
1162         !TARGET_SECURE_PLT.
1163
1164 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1165
1166         * alloc-pool.c (hash_descriptor, eq_descriptor,
1167         alloc_pool_descriptor): Fix -Wc++-compat warnings.
1168         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
1169         Likewise.
1170         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
1171         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
1172         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
1173         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
1174         Likewise.
1175
1176 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1177
1178         * tree-flow.h (loop_only_exit_p): Declare.
1179         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1180         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1181         the number of iterations if it is constant.  Otherwise, if this is the
1182         only possible exit of the loop, use the conservative estimate on the
1183         number of iterations of the entire loop if available.
1184
1185 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
1186
1187         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1188         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1189         Add synchronization functions.
1190         * config/sync.c: New file.
1191         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1192         (LIBGCC_SYNC_CFLAGS): Likewise.
1193
1194 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
1195
1196         PR target/36710
1197         * config/i386/i386.md (mode): Add TF to "mode" attribute.
1198         (*pushtf_sse): New insn pattern.
1199         (pushtf splitters): New splitters.
1200
1201 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
1202
1203         PR middle-end/35736
1204         * predict.c (build_predict_expr): Use void_type_node for the tree
1205         type, instead of NULL_TREE.
1206
1207 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1208
1209         * config/i386/i386.c (contains_aligned_value_p): Return true
1210         for TCmode.
1211         (ix86_data_alignment): Align TCmode to 128bits.
1212         (ix86_local_alignment): Likewise.
1213
1214 2008-07-03  Andrew Haley  <aph@redhat.com>
1215
1216         PR bootstrap/33304
1217         * vec.h (VEC_TA): New.
1218         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1219         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1220         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1221         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1222         (C_COMMON_FIXED_TYPES): Remove first arg.
1223         (C_COMMON_FIXED_MODE_TYPES): Likewise.
1224         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1225         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1226         not to use empty macro arguments.
1227
1228 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
1229
1230         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1231         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1232         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1233         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1234         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1235         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1236         config/ia64/crtn.asm, config/m68hc11/larith.asm,
1237         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1238         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1239         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1240         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1241         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1242         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1243         config/rs6000/e500crtres64gpr.asm,
1244         config/rs6000/e500crtres64gprctr.asm,
1245         config/rs6000/e500crtrest32gpr.asm,
1246         config/rs6000/e500crtrest64gpr.asm,
1247         config/rs6000/e500crtresx32gpr.asm,
1248         config/rs6000/e500crtresx64gpr.asm,
1249         config/rs6000/e500crtsav32gpr.asm,
1250         config/rs6000/e500crtsav64gpr.asm,
1251         config/rs6000/e500crtsav64gprctr.asm,
1252         config/rs6000/e500crtsavg32gpr.asm,
1253         config/rs6000/e500crtsavg64gpr.asm,
1254         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1255         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1256         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1257         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1258         config/sparc/sol2-cn.asm: Remove .file directives.
1259
1260 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
1261
1262         * resource.c (mark_referenced_resources): Look inside
1263         UNSPEC_VOLATILEs and ASM_INPUTs.
1264
1265 2008-07-02  Ian Lance Taylor  <iant@google.com>
1266
1267         * rtlanal.c (add_reg_note): New function.
1268         * rtl.h (add_reg_note): Declare.
1269         * auto-inc-dec.c (attempt_change): Use add_reg_note.
1270         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1271         * builtins.c (expand_builtin_longjmp): Likewise.
1272         (expand_builtin_nonlocal_goto): Likewise.
1273         * calls.c (emit_call_1, expand_call): Likewise.
1274         * cfgexpand.c (add_reg_br_prob_note): Likewise.
1275         * cfglayout.c (fixup_reorder_chain): Likewise.
1276         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1277         (commit_one_edge_insertion): Likewise.
1278         * combine.c (move_deaths, distribute_notes): Likewise.
1279         * df-problems.c (df_set_note): Likewise.
1280         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1281         (set_unique_reg_note): Likewise.
1282         (emit_copy_of_insn_after): Likewise.
1283         * expr.c (expand_expr_real): Likewise.
1284         * gcse.c (add_label_notes): Likewise.
1285         * haifa-sched.c (create_check_block_twin): Likewise.
1286         * jump.c (mark_jump_label_1): Likewise.
1287         * loop-doloop.c (add_test, doloop_modify): Likewise.
1288         * loop-unswitch.c (compare_and_jump_seq): Likewise.
1289         * lower-subreg.c (move_eh_region_note): Likewise.
1290         * optabs.c (emit_libcall_block): Likewise.
1291         * predict.c (predict_insn): Likewise.
1292         (combine_predictions_for_insn): Likewise.
1293         * recog.c (peephole2_optimize): Likewise.
1294         * regmove.c (try_auto_increment): Likewise.
1295         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1296         * reload.c (find_reloads): Likewise.
1297         * reload1.c (fixup_eh_region_note): Likewise.
1298         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1299         * reorg.c (delete_prior_computation): Likewise.
1300         (delete_computation, dbr_schedule): Likewise.
1301         * config/pa/pa.c (legitimize_pic_address): Likewise.
1302         * config/sh/sh.c (sh_reorg): Likewise.
1303
1304 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1305
1306         PR target/36669
1307         * config/libgcc-glibc.ver: Add %exclude.
1308         * config/m32r/libgcc-glibc.ver: Likwise.
1309         * config/s390/libgcc-glibc.ver: Likwise.
1310         * config/sh/libgcc-glibc.ver: Likwise.
1311         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1312
1313         * config/i386/libgcc-glibc.ver: New.
1314
1315         * config/i386/libgcc-x86_64-glibc.ver: Removed.
1316
1317 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1318
1319         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1320         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1321         i[34567]86-*-linux*, x86_64-*-linux*.  Add
1322         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1323         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1324         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
1325         i[34567]86-*-linux*, x86_64-*-linux*.
1326
1327         * libgcc-std.ver: Add empty GCC_4.4.0.
1328
1329         * mkmap-symver.awk: Support multiple versions per symbol.
1330
1331         * config/i386/i386.c (ix86_init_builtins): Always define
1332         __builtin_fabsq and __builtin_copysignq with fallbacks.
1333         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1334         and __builtin_copysignq if SSE2 isn't available.
1335
1336         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1337         (LIBGCC2_TF_CEXT): Likwise.
1338         (TF_SIZE): Likwise.
1339
1340         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1341
1342         * config/i386/sfp-machine.h: Moved to libgcc.
1343
1344         * config/i386/sfp-machine.h: New.
1345         * config/i386/t-linux: Likwise.
1346
1347         * config/i386/t-darwin: Remove softfp_wrap_start and
1348         softfp_wrap_end.
1349         * config/i386/t-darwin64: Likewise.
1350
1351         * config/i386/t-fprules-softfp64: Renamed to ...
1352         * config/i386/t-fprules-softfp: This.
1353
1354         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1355         and softfp_wrap_end.
1356
1357 2008-07-02  Jason Merrill  <jason@redhat.com>
1358
1359         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1360
1361         * tree.c (ctor_to_list): New fn.
1362         * tree.h: Declare it.
1363         (CONSTRUCTOR_ELT): New macro.
1364         (CONSTRUCTOR_NELTS): New macro.
1365
1366 2008-07-02  Richard Guenther  <rguenther@suse.de>
1367
1368         * tree-ssa-structalias.c (struct variable_info): Reorder
1369         to fill padding on 64bit hosts.  Make collapsed_to an int.
1370         (get_varinfo_fc): Deal with that.
1371         (new_var_info): Likewise.
1372         (collapse_rest_of_var): Likewise.
1373
1374 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
1375
1376         * doc/install.texi (--enable-java-home): Document.
1377         (--enable-aot-compile-rpm): Likewise.
1378         (--with-arch-directory): Likewise.
1379         (--with-os-directory): Likewise.
1380         (--with-origin-name): Likewise.
1381         (--with-arch-suffix): Likewise.
1382         (--with-jvm-root-dir): Likewise.
1383         (--with-jvm-jar-dir): Likewise.
1384         (--with-python-dir): Likewise.
1385
1386 2008-07-02  Richard Guenther  <rguenther@suse.de>
1387
1388         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1389         from decls explicitly.  Merge operand checking from tuples.
1390
1391 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1392
1393         * tree-switch-conversion.c: Included timevar.h which I forgot before.
1394         
1395 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1396
1397         * tree-switch-conversion.c: Included timevar.h
1398         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1399
1400         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1401
1402 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1403
1404         * tree-switch-conversion.c: Corrected various comments and
1405         whitespace issues
1406         (build_constructors): Fixed minor formatting mistakes.
1407
1408         * invoke.texi (Optimize Options): Corrected the
1409         switch-conversion-max-branch-ratio parameter.
1410
1411 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
1412
1413         * final.c (asm_insn_count): Return zero for an empty asm body.
1414
1415 2008-07-02  Richard Guenther  <rguenther@suse.de>
1416
1417         * bitmap.h (bitmap_set_bit): Return bool.
1418         (bitmap_clear_bit): Likewise.
1419         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
1420         write to the bitmap if it would.
1421         (bitmap_clear_bit): Likewise.
1422         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1423         bitmap_set_bit return value.
1424         (add_pred_graph_edge): Likewise.
1425         (add_graph_edge): Likewise.
1426         (do_sd_constraint): Likewise.
1427         (do_ds_constraint): Likewise.
1428
1429 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1430
1431         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1432         Fix -Wc++-compat and/or -Wcast-qual warnings.
1433         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1434         gen_regparm_prefix): Likewise.
1435         * vmsdbgout.c (write_modbeg, lookup_filename,
1436         vmsdbgout_source_line, vmsdbgout_init): Likewise.
1437
1438 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1439
1440         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1441         defaults.h definition apply.
1442
1443 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1444
1445         * function.c (assign_parm_remove_parallels): New.
1446         (assign_parm_setup_block_p): Do not return true for non-BLKmode
1447         PARALLELs.
1448         (assign_parm_setup_block): Do not handle them.
1449         (assign_parm_setup_reg, assign_parm_setup_stack): Call
1450         assign_parm_remove_parallels.
1451
1452 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1453
1454         * c-typeck.c (convert_for_assignment): Use
1455         vector_targets_convertible_p.
1456         * c-common.c (vector_targets_convertible_p): New.
1457         * c-common.h (vector_targets_convertible_p): New prototype.
1458         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1459         opaque_p_V2SI_type_node.
1460
1461 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
1462
1463         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1464         RFmode constants.
1465
1466 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
1467
1468         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1469         TFmode constants via two element DImode vector for hosts with
1470         HOST_BITS_PER_WIDE_INT < 64.
1471         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1472         also for HOST_BITS_PER_WIDE_INT < 64.
1473
1474 2008-07-01  Richard Guenther  <rguenther@suse.de>
1475
1476         PR tree-optimization/36666
1477         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1478         (get_constraint_exp_from_ssa_var): Split into ...
1479         (get_constraint_exp_for_temp): ... this ...
1480         (get_constraint_for_ssa_var): ... and that.
1481         Return constraint expressions for all touched sub-fields
1482         if the results address is not taken.
1483         (process_constraint): Remove assertion that aggregate
1484         assignments do not happen at this place.
1485         (get_constraint_for_component_ref): Add address_p argument.
1486         Return constraint expressions for all touched sub-fields
1487         if the results address is not taken.
1488         (do_deref): Use get_constraint_exp_for_temp.
1489         (get_constraint_for_1): Rename from ...
1490         (get_constraint_for): ... this.  Add the old function as wrapper.
1491         (do_structure_copy): Use get_constraint_for_1.
1492
1493 2008-07-01  Martin Jambor  <mjambor@suse.cz>
1494
1495         * Makefile.in (tree-switch-conversion.o): Add.
1496         (OBJS-common): Add tree-swtch-conversion.o.
1497         * passes.c (init_optimization_passes): Add pass_convert_switch.
1498         * tree-pass.h: (pass_convert_switch): Add.
1499         * tree-switch-conversion.c: New file.
1500         * gcc.dg/tree-ssa/cswtch.c: New testcase.
1501         * common.opt (ftree-cswtch): New option.
1502         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1503         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1504         * opts.c (decode_options): Set flag_tree_switch_conversion when
1505         optimization level is >= 2.
1506         * doc/invoke.texi (Optimize Options): Added description of
1507         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1508
1509 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1510
1511         * config/darwin-driver.c (darwin_default_min_version): Fix
1512         -Wc++-compat warnings.
1513
1514 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
1515
1516         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1517         of operand 0.
1518
1519 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1520
1521         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1522         
1523 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1524
1525         PR rtl-optimization/34744
1526         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1527         (df_scan_free_internal): Free data structures not
1528         allocated in storage pools.
1529         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1530         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1531         df_scan_free_mws_vec.
1532         * dse.c (dse_step6): Free offset_map_p and offset_map_n
1533         unconditionally.
1534
1535 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1536
1537         * config/i386/i386.c (contains_aligned_value_p): Return true
1538         for __float128.
1539         (ix86_function_arg_boundary): Return its natural boundary
1540         for __float128.
1541         (return_in_memory_32): Don't check TDmode.
1542         (ix86_split_to_parts): Support splitting into 4 parts and
1543         support TFmode for 32bit target.
1544         (ix86_split_long_move): Support splitting into 4 parts.
1545         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1546         for SSE2.
1547         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1548         (ix86_init_builtins): Here.
1549         (ix86_scalar_mode_supported_p): Always return true for TFmode.
1550         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1551         'q' and 'w', respectively. 
1552
1553         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1554         TARGET_64BIT.
1555         (movtf_internal): Likewise.
1556         (<code>tf2): Likewise.
1557         (*absnegtf2_sse): Likewise.
1558         (copysign<mode>3): Likewise.
1559         (copysign<mode>3_const): Likewise.
1560         (copysign<mode>3_var): Likewise.
1561         (define_split UNSPEC_COPYSIGN): Likewise.
1562         * config/i386/sse.md (*nandtf3): Likewise.
1563         (<code>tf3): Likewise.
1564         (*<code>tf3): Likewise.
1565
1566 2008-06-30  Joey Ye  <joey.ye@intel.com>
1567             H.J. Lu  <hongjiu.lu@intel.com>
1568
1569         * global.c (compute_regsets): Set frame_pointer_needed here.
1570         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1571
1572 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1573
1574         * doc/install.texi (specific): Expand Windows build notes.
1575
1576 2008-06-30  Ira Rosen  <irar@il.ibm.com>
1577
1578         PR tree-optimization/36648
1579         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1580         number of prolog iterations by step. Fix the comment.
1581
1582 2008-06-30  Richard Guenther  <rguenther@suse.de>
1583
1584         PR middle-end/36671
1585         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1586         handle calls from ECF_MALLOC functions.
1587         (handle_pure_call): ECF_MALLOC functions do not return
1588         call-used memory.
1589         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1590
1591 2008-06-29  Andreas Schwab  <schwab@suse.de>
1592
1593         * config/m68k/m68k.c (print_operand): Always print a float
1594         constant in hex.
1595         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1596         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1597         Remove macros.
1598
1599         * config/rs6000/x-linux64: Remove never used file.
1600
1601 2008-06-29  Richard Guenther  <rguenther@suse.de>
1602
1603         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1604         prototype.
1605         (struct alias_info): Move ...
1606         * tree-ssa-alias.c: ... here.
1607         (update_alias_info): Declare.
1608         (compute_may_aliases): Call it.
1609         (update_alias_info): New function.
1610         * tree-ssa-structalias.c (update_alias_info): Move ...
1611         * tree-ssa-alias.c (update_alias_info_1): ... here.
1612         * tree-ssa-structalias.c (process_constraint_1): Remove
1613         unused from_call argument.  Rename to ...
1614         (process_constraint): ... this.  Delete old wrapper.
1615         (make_constraint_to): Adjust callers.
1616         (handle_const_call): Likewise.
1617         (handle_pure_call): Likewise.
1618         (init_base_vars): Likewise.
1619         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
1620         (find_func_aliases): We don't need structure copies for
1621         complex types.
1622         (make_constraint_from_anything): Remove.
1623         (create_variable_info_for): For globals make constraints
1624         from escaped, not from anything.
1625         (compute_points_to_sets): Do not call update_alias_info.
1626         (ipa_pta_execute): Use make_constraint_from.
1627
1628 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1629
1630         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1631         (bitmap.o-warn, dominance.o-warn): New.
1632         * configure.ac (cxx_compat_warn): Delete.
1633         (loose_warn): Add -Wcast-qual and -Wc++-compat.
1634         * system.h: Remove #pragma diagnostic for -Wcast-qual and
1635         -Wc++-compat.
1636         * configure: Regenerate.
1637
1638         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1639         warnings.
1640
1641 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1642
1643         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1644         * df-scan.c (df_notes_rescan): Likewise.
1645         * ggc-page.c (set_page_table_entry): Likewise.
1646         * intl.c (gcc_gettext_width): Likewise.
1647         * varasm.c (get_unnamed_section, get_noswitch_section,
1648         get_section): Likewise.
1649
1650 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
1651
1652         * regrename.c (build_def_use): Don't copy RTX.
1653
1654 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
1655
1656         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1657         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
1658         punctuation.  Use @ref instead of @xref.
1659         (Function Names): Remove stray @display/@end display.
1660         (C++ Attributes): Use @ref instead of @xref.
1661         (Deprecated Features): Fix punctuation around @xref.
1662         (Backwards Compatibility): Likewise.
1663         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1664
1665 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
1666
1667         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1668         constants for E500 double.
1669
1670 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1671
1672         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1673         element type of const_vector.
1674
1675 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
1676
1677         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1678         Remove FLAGS_REG clobber from expander pattern.
1679         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1680         (anddi3, andsi3, andhi3, andqi3): Ditto.
1681         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1682         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1683         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1684         (ashlsi3, ashlhi3, ashlqi3): Ditto.
1685         (ashrsi3, ashrhi3, ashrqi3): Ditto.
1686         (lshrsi3, lshrhi3, lshrqi3): Ditto.
1687         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1688         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1689
1690 2008-06-28  Richard Guenther  <rguenther@suse.de>
1691
1692         * tree-ssa-structalias.c (callused_id, var_callused,
1693         callused_tree): Add.
1694         (handle_pure_call): New function.
1695         (find_func_aliases): Call it.
1696         (find_what_p_points_to): Handle the call-used set.
1697         (clobber_what_escaped): Likewise.
1698         (compute_call_used_vars): New function.
1699         (init_base_vars): Init the call-used variable.
1700         (do_sd_constraint): Do not propagate the solution from CALLUSED
1701         but use CALLUSED as a placeholder.
1702         (solve_graph): Likewise.
1703         * tree-flow-inline.h (gimple_call_used_vars): New function.
1704         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1705         (compute_call_used_vars): Declare.
1706         * tree-ssa-alias.c (set_initial_properties): Call
1707         compute_call_used_vars.
1708         (reset_alias_info): Clear call-used variables.
1709         (add_call_clobber_ops): Assert we are not called for const/pure
1710         functions.  Remove handling of them.
1711         (add_call_read_ops): Handle pure functions by adding the
1712         call-used set of variables as VUSEs.
1713         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1714         (delete_tree_ssa): Free it.
1715         * tree-dfa.c (remove_referenced_var): Clear the var from the
1716         call-used bitmap.
1717
1718 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
1719
1720         * tree.c (build_varargs_function_type_list): New.
1721         (build_function_type_list_1): New.
1722         (build_function_type_list): Use build_function_type_list_1.
1723         * tree.h (build_varargs_function_type_list): New.
1724
1725 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1726
1727         PR target/34856
1728         * config/spu/spu.c (spu_builtin_splats): Do not generate
1729         invalid CONST_VECTOR expressions.
1730         (spu_expand_vector_init): Likewise.
1731
1732 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
1733
1734         * optabs.c (libfunc_decls): New variable.
1735         (libfunc_decl_hash, libfunc_decl_eq): New functions.
1736         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1737         for the same function twice.
1738
1739 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
1740
1741         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1742         ix86_expand_binary_operator directly.
1743         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
1744         for operand 2.
1745         (*ashrti3_1): Ditto.
1746         (*lshrti3_1): Ditto.
1747         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1748         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1749         using only one splitter.  Conditionaly execute splitter before or
1750         after peephole2 pass.
1751         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1752         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
1753         Use only one alternative in asm template.
1754         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1755         in asm template.
1756         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1757         "J" operand constraint for operand 2.
1758         (*ashldi3_cconly_rex64): Ditto.
1759         (*ashrdi3_cmp_rex64): Ditto.
1760         (*ashrdi3_cconly_rex64): Ditto.
1761         (*lshrdi3_cmp_rex64): Ditto.
1762         (*lshrdi3_cconly_rex64): Ditto.
1763         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1764         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1765         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1766         gen_x86_shrd_1.
1767
1768 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1769
1770         * gimplify.c (omp_is_private): Don't return true if decl is not
1771         already private on #pragma omp for or #pragma omp parallel for.
1772
1773         PR debug/36617
1774         * tree-cfg.c (struct move_stmt_d): Replace block field with
1775         orig_block and new_block fields.
1776         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1777         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1778         (move_block_to_fn): Replace vars_map and new_label_map arguments
1779         with struct move_stmt_d pointer.
1780         (replace_block_vars_by_duplicates): New function.
1781         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
1782         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
1783         all subblocks of ORIG_BLOCK to the new function.  Call
1784         replace_block_vars_by_duplicates.
1785         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1786         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1787         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
1788         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1789         (expand_omp): Temporarily set input_location to the location of
1790         region's controlling stmt.
1791         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1792         BIND_EXPR, push ctx->block_vars and gimplification vars into
1793         the BIND_EXPR and its block's BLOCK_VARS instead of directly
1794         into dest function.
1795         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1796         there are any BLOCK_VARS.
1797         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1798         OMP_PARALLEL or OMP_TASK stmt.
1799         (lower_omp): Save and restore input_location around the lower_omp_1
1800         call.
1801
1802 2008-06-27  Richard Guenther  <rguenther@suse.de>
1803
1804         PR tree-optimization/36400
1805         PR tree-optimization/36373
1806         PR tree-optimization/36344
1807         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1808         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1809         (update_alias_info): Remove call clobbering code.
1810         (make_constraint_to): New helper function.
1811         (make_escape_constraint): Likewise.
1812         (handle_rhs_call): Use it on all pointer containing arguments.
1813         Also mark the static chain escaped.
1814         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1815         instead of ANYTHING.
1816         (make_constraint_from): New helper split out from ...
1817         (make_constraint_from_anything): ... here.
1818         (find_func_aliases): Add constraints for escape sites.
1819         (intra_create_variable_infos): Make constraints from NONLOCAL
1820         for parameters.
1821         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1822         as ANYTHING.
1823         (clobber_what_p_points_to): Remove.
1824         (clobber_what_escaped): New function.
1825         (init_base_vars): Init NONLOCAL and ESCAPED.
1826         (do_sd_constraint): Do not propagate the solution from ESCAPED
1827         but use ESCAPED as a placeholder.
1828         (solve_graph): Likewise.
1829         * tree-flow.h (clobber_what_p_points_to): Remove.
1830         (clobber_what_escaped): Declare.
1831         * tree-ssa-alias.c (set_initial_properties): Call it.
1832         Remove code clobbering escaped pointers.
1833
1834 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1835
1836         * function.c (allocate_struct_function): Only allocate a unique
1837         funcdef_no if the decl is nonzero.
1838
1839 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1840
1841         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1842         * config/mips/mips.c (mips_split_const_insns): New function.
1843         * config/mips/mips.md (move_type): New attribute.
1844         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
1845         (dword_mode): New attribute.
1846         (type): Avoid long line.  Map "move_type"s to "type"s,
1847         choosing "multi" for doubleword moves if appropriate.
1848         Swap MTC/MFC comments to match their declaration order.
1849         (extended_mips16): Default to "yes" if "move_type" is "sll0",
1850         "type" is "branch" or "jal" is "direct".
1851         (length): Handle "extended_mips16" first.  Make the default
1852         "0" for "ghost" instructions.  Set the length from "move_type".
1853         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1854         of "type", with "sll0" for the register alternative.  Remove the
1855         "extended_mips16" attribute.
1856         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1857         of "type", with "shift_shift" for the register alternative.
1858         Remove the "length" attribute.
1859         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1860         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1861         of "type", with "andi" for the register alternative.
1862         (*zero_extendqihi2): Likewise.
1863         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1864         of "andi" instead of a "type" of "arith".
1865         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1866         instead of "type".
1867         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1868         (mov_<store>r, *mov<mode>_ra): Likewise.
1869         (extendsidi2): Use "move_type" instead of "type", with "move"
1870         for the register alternative.
1871         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1872         of "type", with "signext" for the register alternative.
1873         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1874         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1875         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1876         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1877         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1878         (unnamed branch insn): Likewise.
1879         (*movdi_gp32_fp64): Fold into...
1880         (*movdi_32bit): ...here.
1881         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1882         (*movdf_hardfloat): ...this new pattern.
1883         (*movdf_softfloat): Remove redundant FPR alternatives.
1884         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1885         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1886         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
1887         the "move" attribute.
1888         (*movdi_32bit): Use "move_type" instead of "type" and remove the
1889         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
1890         and "store" for COP loads and stores.
1891         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1892         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1893         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1894         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1895         (*movtf_mips16, *movv2sf): Likewise.
1896         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1897         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1898         (mfhc1<mode>): Use "move_type" instead of "move".
1899         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1900         (loadgp_blockage): Remove the "length" attribute.
1901         (blockage, set_got_version, update_got_version): Likewise.
1902         (call_internal): Remove the "extended_mips16" attribute.
1903         (call_value_internal, call_value_multiple_internal): Likewise.
1904         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1905         instead of "move".
1906         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1907         the "length" attribute.
1908
1909 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1910
1911         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1912         -Wcast-qual warnings.
1913         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1914         handle_pragma_pop_macro): Likewise.
1915         * collect2.c (resolve_lib_name): Likewise.
1916         * config/arc/arc.c (arc_init): Likewise.
1917         * config/arm/arm.c (neon_builtin_compare,
1918         locate_neon_builtin_icode): Likewise.
1919         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1920         * config/bfin/bfin.c (bfin_init_machine_status,
1921         bfin_optimize_loop): Likewise.
1922         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1923         * config/cris/cris.c (cris_init_expanders): Likewise.
1924         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1925         * config/darwin.c (machopic_indirection_eq,
1926         machopic_indirection_name, machopic_output_indirection): Likewise.
1927         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1928         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1929         frv_optimize_membar): Likewise.
1930         * config/i386/cygwin.h (mingw_scan,
1931         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1932         * config/i386/cygwin1.c (mingw_scan): Likewise.
1933         * config/i386/i386.c (machopic_output_stub): Likewise.
1934         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1935         i386_pe_unique_section): Likewise.
1936         * config/ia64/ia64.c (ia64_init_machine_status,
1937         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1938         Likewise.
1939         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1940         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1941         * config/m68k/m68k.c (m68k_handle_option,
1942         m68k_sched_md_init_global): Likewise.
1943         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1944         mcore_unique_section): Likewise.
1945         * config/mips/mips.c (mips_block_move_straight,
1946         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1947         Likewise.
1948         * config/mmix/mmix.c (mmix_init_machine_status,
1949         mmix_encode_section_info): Likewise.
1950         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1951         * config/rs6000/rs6000.c (rs6000_init_machine_status,
1952         print_operand_address, output_toc, redefine_groups,
1953         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1954         * config/s390/s390.c (s390_init_machine_status): Likewise.
1955         * config/score/score.c (score_block_move_straight,
1956         score_block_move_loop_body): Likewise.
1957         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1958         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1959         * emit-rtl.c (find_auto_inc): Likewise.
1960         * gcc.c (translate_options, process_command): Likewise.
1961         * reorg.c (dbr_schedule): Likewise.
1962         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1963         * xcoffout.c (xcoffout_declare_function): Likewise.
1964
1965 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
1966
1967         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1968         ipa-pta working again.
1969
1970 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
1971
1972         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1973         genautomata.
1974
1975 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
1976
1977         * config.gcc (powerpc*-*-*): Add new core e500mc.
1978         * config/rs6000/e500mc.md: New file.
1979         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1980         e500mc.
1981         (rs6000_override_options): Add e500mc case to
1982         processor_target_table. Altivec and Spe options not allowed
1983         with e500mc. Add isel instruction to e500mc by
1984         default. Initialize rs6000_cost for e500mc.
1985         (rs6000_issue_rate): Set issue rate for e500mc.
1986         * config/rs6000/rs6000.h (processor_type): Add
1987         PROCESSOR_PPCE500MC.
1988         (ASM_CPU_SPEC): Add e500mc.
1989         Set TARGET_ISEL to rs6000_isel.
1990         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1991         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1992         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1993         Include e500mc.md.
1994         * doc/invoke.texi: Add e500mc to list of cpus.
1995
1996 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1997
1998         PR c/34867
1999         * c-lex.c (lex_charconst): Initialize unsignedp.
2000
2001 2008-06-27  Olivier Hainque  <hainque@adacore.com>
2002
2003         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2004         documented assumptions.
2005
2006 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2007
2008         * dwarf2out.c: Remove trailing white spaces.  Break long line
2009         in comments.
2010
2011 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
2012
2013         * libfuncs.h (LTI_synchronize): New libfunc_index.
2014         (synchronize_libfunc): Declare.
2015         * builtins.c (expand_builtin_synchronize): Consider using
2016         synchronize_libfunc before falling back on an asm blockage.
2017         * config/mips/mips.c: Include libfuncs.h
2018         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2019
2020 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
2021
2022         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2023         parameter.  Copy stack_reg to r11 where appropriate.
2024         (no_global_regs_above): Add gpr parameter.
2025         (rs6000_stack_info): Only add padding for SPE save area if we
2026         are saving SPE GPRs and CR.
2027         (saveres_routine_syms): New variable.
2028         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2029         Define.
2030         (rs6000_savres_routine_sym): New function.
2031         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2032         split out of...
2033         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
2034         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
2035         Tweak FPR out-of-line saving.
2036         (rs6000_make_savres_rtx): New function.
2037         (rs6000_use_multiple_p): New function.
2038         (rs6000_savres_strategy): New function.
2039         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
2040         out-of-line if appropriate.
2041         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2042         if we are optimizing for size.
2043         (GP_SAVE_INLINE): Define.
2044         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2045         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2046         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2047         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2048         (*save_fpregs_<mode>): Add use of r11.
2049         (*restore_gpregs_<mode>): New insn.
2050         (*return_and_restore_gpregs_<mode>): New insn.
2051         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2052         use r11.
2053         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2054         (*restore_gpregs_spe): New insn.
2055         (*return_and_restore_gpregs_spe): New insn.
2056         * config/rs6000/predicates.md (save_world_operation): Fix check.
2057
2058 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2059
2060         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2061         this point, so assert that.
2062
2063 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2064
2065         * cfganal.c: Include vec.h and vecprim.h.
2066         (compute_idf): Import from...
2067         * tree-into-ssa (compute_idf): ...here.
2068         * basic-block.h (compute_idf): Export.
2069
2070 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
2071
2072         * c-decl.c (merge_decls): Use !current_function_decl to check for
2073         extern declaration of C99 inline function being at file scope.
2074
2075 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
2076
2077         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2078
2079 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2080
2081         * alias.c (record_alias_subset, init_alias_analysis): Fix
2082         -Wc++-compat and/or -Wcast-qual warnings.
2083         * attribs.c (lookup_attribute_spec): Likewise.
2084         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2085         copy_bb, connect_traces,
2086         find_rarely_executed_basic_blocks_and_cr): Likewise.
2087         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2088         note_btr_set, migrate_btr_defs): Likewise.
2089         * builtins.c (result_vector, expand_builtin_memcpy,
2090         expand_builtin_mempcpy_args, expand_builtin_strncpy,
2091         builtin_memset_read_str, expand_builtin_printf,
2092         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2093         Likewise.
2094         * caller-save.c (mark_set_regs): Likewise.
2095         * calls.c (expand_call, emit_library_call_value_1): Likewise.
2096         * cgraph.c (cgraph_edge): Likewise.
2097         * combine.c (likely_spilled_retval_1): Likewise.
2098         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2099         htab_counts_entry_del, get_coverage_counts): Likewise.
2100         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2101         new_cselib_val): Likewise.
2102         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2103         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2104         Likewise.
2105         * df-core.c (df_compact_blocks): Likewise.
2106         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2107         * df-scan.c (df_grow_reg_info, df_ref_create,
2108         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2109         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2110         df_record_entry_block_defs, df_record_exit_block_uses,
2111         df_bb_verify): Likewise.
2112         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2113         DF_REF_EXTRACT_MODE_CONST): New.
2114         * dominance.c (get_immediate_dominator, get_dominated_by,
2115         nearest_common_dominator, root_of_dom_tree,
2116         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2117         -Wc++-compat and/or -Wcast-qual warnings.
2118         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2119         record_store, replace_read, check_mem_read_rtx, scan_insn,
2120         dse_step1, dse_record_singleton_alias_set): Likewise.
2121         * dwarf2asm.c (dw2_force_const_mem): Likewise.
2122
2123 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2124
2125         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2126         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2127         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2128         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2129         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2130         add_ranges_num, add_ranges_by_labels, file_info_cmp,
2131         file_name_acquire, output_file_names, add_const_value_attribute,
2132         premark_used_types_helper, file_table_eq, file_table_hash,
2133         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2134         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2135         -Wcast-qual warnings.
2136         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2137         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2138         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2139         gen_reg_rtx, start_sequence, init_emit): Likewise.
2140         * et-forest.c (et_new_occ, et_new_tree): Likewise.
2141         * except.c (init_eh_for_function, gen_eh_region,
2142         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
2143         arh_to_landing_pad, arh_to_label, add_action_record,
2144         add_call_site, switch_to_exception_section): Likewise.
2145         * expmed.c (synth_mult): Likewise.
2146         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
2147         store_expr): Likewise.
2148         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
2149         Likewise.
2150         * function.c (assign_stack_temp_for_type,
2151         allocate_struct_function, match_asm_constraints_1): Likewise.
2152         * gcov-io.c (gcov_allocate): Likewise.
2153         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
2154         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
2155         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
2156         record_one_set, insert_expr_in_table, insert_set_in_table,
2157         dump_hash_table, compute_hash_table_work, alloc_hash_table,
2158         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
2159         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
2160         -Wcast-qual warnings.
2161
2162 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2163
2164         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
2165         -Wcast-qual warnings.
2166         * gcc.c (process_command): Likewise.
2167         * genattrtab.c (oballoc): Use XOBNEW.
2168         (oballocvec): Define.
2169         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
2170         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
2171         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
2172         -Wc++-compat and/or -Wcast-qual warnings.
2173         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
2174         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
2175         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2176         gen_presence_absence_set, gen_automaton, gen_regexp_el,
2177         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2178         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2179         add_excls, process_presence_absence_names,
2180         process_presence_absence_patterns, add_presence_absence,
2181         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2182         get_free_state, add_arc, get_free_automata_list_el,
2183         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2184         transform_3, cache_presence, create_ainsns, create_automata,
2185         create_state_ainsn_table, dfa_insn_code_enlarge,
2186         output_trans_func, output_min_issue_delay_func,
2187         output_dead_lock_func, output_reset_func,
2188         output_get_cpu_unit_code_func, output_dfa_start_func,
2189         expand_automata): Likewise.
2190         * genextract.c (gen_insn): Likewise.
2191         * gengtype-lex.l: Likewise.
2192         * gengtype.c (read_input_list, adjust_field_type,
2193         process_gc_options): Likewise.
2194         * genoutput.c (note_constraint): Likewise.
2195         * genpreds.c (mangle, add_constraint): Likewise.
2196         * genrecog.c (process_define_predicate, new_decision,
2197         add_to_sequence): Likewise.
2198         * gensupport.c (record_insn_name): Likewise.
2199
2200 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2201
2202         * config/i386/driver-i386.c (detect_caches_amd,
2203         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2204         and/or -Wcast-qual warnings.
2205         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2206         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2207         gt_pch_save): Likewise.
2208         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2209         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2210         * global.c (compute_regsets): Likewise.
2211         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2212         finish_graph_dump_file): Likewise.
2213         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2214         unlink_bb_notes): Likewise.
2215         * integrate.c (get_hard_reg_initial_val): Likewise.
2216         * ipa-prop.c (ipa_push_func_to_list): Likewise.
2217         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2218         * local-alloc.c (update_equiv_regs): Likewise.
2219         * loop-invariant.c (check_invariant_table_size,
2220         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2221         Likewise.
2222         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2223         altered_reg_used, mark_altered): Likewise.
2224         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2225         insert_var_expansion_initialization,
2226         combine_var_copies_in_loop_exit, apply_opt_in_copies,
2227         release_var_copies): Likewise.
2228         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2229         analyze_matrix_decl, add_allocation_site, analyze_transpose,
2230         analyze_accesses_for_phi_node, check_var_notmodified_p,
2231         check_allocation_function, find_sites_in_func,
2232         record_all_accesses_in_func, transform_access_sites,
2233         transform_allocation_sites): Likewise.
2234         * omp-low.c (new_omp_region, create_omp_child_function_name,
2235         check_omp_nesting_restrictions, check_combined_parallel,
2236         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2237         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2238         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2239         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2240         Likewise.
2241         * opts-common.c (prune_options): Likewise.
2242         * opts.c (add_input_filename, print_filtered_help,
2243         get_option_state): Likewise.
2244         * params.c (add_params): Likewise.
2245         * passes.c (set_pass_for_id, next_pass_1,
2246         do_per_function_toporder, pass_fini_dump_file): Likewise.
2247         * postreload.c (reload_cse_simplify_operands): Likewise.
2248         * predict.c (tree_predicted_by_p, tree_predict_edge,
2249         clear_bb_predictions, combine_predictions_for_bb): Likewise.
2250
2251 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2252
2253         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2254         warnings.
2255         * recog.c (check_asm_operands, validate_change_1): Likewise.
2256         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2257         subst_asm_stack_regs): Likewise.
2258         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2259         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2260         * regmove.c (reg_is_remote_constant_p): Likewise.
2261         * regrename.c (regrename_optimize, scan_rtx_reg,
2262         kill_clobbered_value, kill_set_value, kill_autoinc_value):
2263         Likewise.
2264         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2265         regstat_compute_calls_crossed): Likewise.
2266         * reload1.c (init_reload, new_insn_chain,
2267         has_nonexceptional_receiver, reload, copy_reloads,
2268         calculate_needs_all_insns, init_elim_table): Likewise.
2269         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2270         * rtl.c (shallow_copy_rtx_stat): Likewise.
2271         * rtlanal.c (parms_set): Likewise.
2272         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2273         sbitmap_resize, sbitmap_vector_alloc): Likewise.
2274         * sched-ebb.c (earliest_block_with_similiar_load,
2275         add_deps_for_risky_insns): Likewise.
2276         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2277         schedule_region): Likewise.
2278         * see.c (eq_descriptor_pre_extension,
2279         hash_descriptor_pre_extension, hash_del_pre_extension,
2280         eq_descriptor_properties, hash_descriptor_properties,
2281         hash_del_properties, see_seek_pre_extension_expr,
2282         see_initialize_data_structures, see_print_register_properties,
2283         see_print_pre_extension_expr, see_delete_merged_def_extension,
2284         see_delete_unmerged_def_extension, see_emit_use_extension,
2285         see_pre_delete_extension, see_map_extension, see_commit_changes,
2286         see_analyze_merged_def_local_prop,
2287         see_analyze_merged_def_local_prop,
2288         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2289         see_set_prop_merged_def, see_set_prop_unmerged_def,
2290         see_set_prop_unmerged_use, see_print_one_extension,
2291         see_merge_one_use_extension, see_merge_one_def_extension,
2292         see_store_reference_and_extension, see_update_uses_relevancy,
2293         see_update_defs_relevancy): Likewise.
2294         * statistics.c (hash_statistics_hash, hash_statistics_eq,
2295         hash_statistics_free, curr_statistics_hash): Likewise.
2296         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2297         expand_asm_operands, expand_return, case_bit_test_cmp,
2298         expand_case): Likewise.
2299         * stor-layout.c (start_record_layout): Likewise.
2300         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2301         gt_pch_save_stringpool): Likewise.
2302         * tree-data-ref.c (hash_stmt_vertex_info,
2303         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2304         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2305
2306 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
2307
2308         PR target/36627
2309         * config/i386/i386.md : Change constraints of HImode and QImode
2310         immediate operands from "i" to "n".  Change SImode "ni" constraint to
2311         "i" and SImode "rmi" constraint to "g".  Remove all constraints
2312         from const0_operand and const1_operand predicated operands.
2313         (i): Change QImode and HImode attribute from "i" to "n".
2314         (*subqi_2): Change HImode operands to QImode.
2315         (*subqi_3): Ditto.
2316
2317 2008-06-25  Olivier Hainque  <hainque@adacore.com>
2318
2319         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2320         sed substitutions.
2321
2322 2008-06-25  Richard Guenther  <rguenther@suse.de>
2323
2324         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2325         not overflow the result type.
2326
2327 2008-06-25  Richard Guenther  <rguenther@suse.de>
2328
2329         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2330         (vn_lookup): Likewise.
2331
2332 2008-06-25  Richard Guenther  <rguenther@suse.de>
2333
2334         PR tree-optimization/35518
2335         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2336         * tree-sra.c (instantiate_element): Use fold_build3 to build
2337         BIT_FIELD_REFs.
2338         (try_instantiate_multiple_fields): Likewise.
2339
2340 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2341
2342         * config/rs6000/rs6000.md: Change all string instruction's clobber to
2343         be early clobbers.
2344
2345 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2346
2347         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2348         use_backchain_to_restore_sp to true
2349         if the offset of the link register save area would go over the 32k - 1
2350         offset limit of the load
2351         instructions.
2352
2353 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2354
2355         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2356         anchor for the type-punning blurb.  Cross-reference "Structures
2357         unions enumerations and bit-fields implementation".  Provide a
2358         cast-through-pointer example.  Make final sentence self-contained.
2359         * doc/implement-c.texi (Structures unions enumerations and
2360         bit-fields implementation): Cross-reference the type-punning blurb
2361         in the -fstrict-aliasing documentation.
2362
2363 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2364
2365         PR middle-end/36594
2366         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2367         the memory instead of the memory itself for the save area.
2368
2369 2008-06-24  Olivier Hainque  <hainque@adacore.com>
2370             Nicolas Roche  <roche@adacore.com>
2371
2372         * gengtype.c (srcdir_len): size_t instead of int.
2373         (get_file_realbasename): New function.  For F a filename, the real
2374         basename of F, with all the path components stripped.
2375         (get_file_srcdir_relative_path): New function.  For F a filename, the
2376         relative path to F from $(srcdir).
2377         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2378         get_file_realbasename.  Adjust the head comment.
2379         (get_prefix_langdir_index): New function. For F a filename, return the
2380         lang_dir_names[] relative index of the language directory that is
2381         a prefix in F.
2382         (get_file_langdir): For F a filename, return the name of the language
2383         directory where F is located.
2384         (get_file_gtfilename): New function. The gt- output file name for an
2385         input filename F.
2386         (get_output_file_with_visibility): Replace in-line computations with
2387         uses of get_file_gtfilename and get_prefix_langdir_index.
2388         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2389
2390 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
2391
2392         PR tree-optimization/36504
2393         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2394         references without base address.
2395
2396 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2397
2398         PR middle-end/36584
2399         * calls.c (expand_call): Increase alignment for recursive functions.
2400
2401 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
2402
2403         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2404         (TARGET_FUNCTION_VALUE): New define.
2405         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2406         * config/avr/avr.h (FUNCTION_VALUE): Remove.
2407
2408 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2409
2410         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2411         (fmod<mode>3): Ditto.
2412         (remainderxf3): Ditto.
2413         (remainder<mode>3): Ditto.
2414
2415 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
2416
2417         PR target/36533
2418         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2419         REG is a hard register.
2420
2421         PR tree-optimization/36508
2422         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2423         499, don't check it at all in release compilers.
2424
2425 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2426
2427         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2428         together with SSE_TARGET_MATH to disable insn pattern.
2429         (*fop_<MODEF:mode>_2_i387): Ditto.
2430         (*fop_<MODEF:mode>_3_i387): Ditto.
2431
2432 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
2433
2434         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2435         
2436 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2437
2438         PR middle-end/34906
2439         * gimplify.c (gimplify_asm_expr): Check the return code of
2440         parse_output_constraint call, set function return and is_inout
2441         value if it failed.
2442
2443 2008-06-22  Ian Lance Taylor  <iant@google.com>
2444
2445         * c-lex.c (narrowest_unsigned_type): Change itk to int.
2446         (narrowest_signed_type): Likewise.
2447         * c-typeck.c (c_common_type): Change local variable mclass to enum
2448         mode_class, twice.
2449         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2450         tcc_comparison, not the tree code itself.
2451         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2452         (c_expand_expr): Cast modifier to enum expand_modifier.
2453         * c-common.h (C_RID_CODE): Add casts.
2454         (C_SET_RID_CODE): Define.
2455         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2456         (c_lex_one_token): Add cast to avoid warning.
2457         (c_parser_objc_type_name): Rename local typename to type_name.
2458         (check_no_duplicate_clause): Change code parameter to enum
2459         omp_clause_code.
2460         (c_parser_omp_var_list_parens): Change kind parameter to enum
2461         omp_clause_code.
2462         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2463         c_parser_omp_list_var_parens.
2464         (c_parser_omp_threadprivate): Likewise.
2465         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2466         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2467         * c-format.c (NO_FMT): Define.
2468         (printf_length_specs): Use NO_FMT.
2469         (asm_fprintf_length_specs): Likewise.
2470         (gcc_diag_length_specs): Likewise.
2471         (scanf_length_specs): Likewise.
2472         (strfmon_length_specs): Likewise.
2473         (gcc_gfc_length_specs): Likewise.
2474         (printf_flag_specs): Change 0 to STD_C89.
2475         (asm_fprintf_flag_specs): Likewise.
2476         (gcc_diag_flag_specs): Likewise.
2477         (gcc_cxxdiag_flag_specs): Likewise.
2478         (scanf_flag_specs): Likewise.
2479         (strftime_flag_specs): Likewise.
2480         (strfmon_flag_specs): Likewise.
2481         (print_char_table): Likewise.
2482         (asm_fprintf_char_table): Likewise.
2483         (gcc_diag_char_table): Likewise.
2484         (gcc_tdiag_char_table): Likewise.
2485         (gcc_cdiag_char_table): Likewise.
2486         (gcc_cxxdiag_char_table): Likewise.
2487         (gcc_gfc_char_table): Likewise.
2488         (scan_char_table): Likewise.
2489         (time_char_table): Likewis.
2490         (monetary_char_table): Likewise.
2491         * c-format.h (BADLEN): Likewise.
2492
2493 2008-06-21  Ian Lance Taylor  <iant@google.com>
2494
2495         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2496         Define END_OF_BASE_TREE_CODES around inclusion.
2497         * tree.c (tree_code_type): New global array.
2498         (tree_code_length, tree_code_name): Likewise.
2499         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2500         $(lang_tree_files).
2501         (all-tree.def, s-alltree): New targets.
2502         (gencheck.h, s-gencheck): Remove.
2503         (tree.o): Depend upon all-tree.def.
2504         (build/gencheck.o): Remove gencheck.h dependency.
2505         (mostlyclean): Don't remove gencheck.h.
2506         * c-common.h (enum c_tree_code): Remove.
2507         * c-lang.c (tree_code_type): Remove.
2508         (tree_code_length, tree_code_name): Remove.
2509         * gencheck.c (tree_codes): Include all-tree.def, rather than
2510         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
2511         after it is used.
2512         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2513         than tree.def.
2514         * cp/cp-tree.h (enum cplus_tree_code): Remove.
2515         (operator_name_info): Size to MAX_TREE_CODES.
2516         (assignment_operator_name_info): Likewise.
2517         * cp/cp-lang.c (tree_code_type): Remove.
2518         (tree_code_length, tree_code_name): Remove.
2519         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2520         (assignment_operator_name_info): Likewise.
2521         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2522         MAX_TREE_CODES.
2523         * cp/mangle.c (write_expression): Likewise.
2524         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2525         * fortran/f95-lang.c (tree_code_type): Remove.
2526         (tree_code_length, tree_code_name): Remove.
2527         * java/java-tree.h (enum java_tree_code): Remove.
2528         * java/lang.c (tree_code_type): Remove.
2529         (tree_code_length, tree_code_name): Remove.
2530         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2531         * objc/objc-act.h (enum objc_tree_code): Remove.
2532         * objc/objc-lang.c (tree_code_type): Remove.
2533         (tree_code_length, tree_code_name): Remove.
2534         * objcp/objcp-lang.c (tree_code_type): Remove.
2535         (tree_code_length, tree_code_name): Remove.
2536         * ada/ada-tree.h (enum gnat_tree_code): Remove.
2537         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2538         * ada/misc.c (tree_code_type): Remove.
2539         (tree_code_length, tree_code_name): Remove.
2540
2541 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2542
2543         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2544         the grand_bitmap_obstack.
2545
2546 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2547
2548         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2549         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2550         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2551         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2552         move_stmt_r, new_label_mapper): Likewise.
2553         * tree-complex.c (cvc_lookup): Likewise.
2554         * tree-dfa.c (create_function_ann): Likewise.
2555         * tree-dump.c (dump_register): Likewise.
2556         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2557         find_phi_replacement_condition): Likewise.
2558         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2559         tree_function_versioning): Likewise.
2560         * tree-into-ssa.c (cmp_dfsnum): Likewise.
2561         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2562         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2563         get_nonlocal_debug_decl, convert_nonlocal_reference,
2564         convert_nonlocal_omp_clauses, get_local_debug_decl,
2565         convert_local_reference, convert_local_omp_clauses,
2566         convert_nl_goto_reference, convert_nl_goto_receiver,
2567         convert_tramp_reference, convert_call_expr): Likewise.
2568         * tree-outof-ssa.c (contains_tree_r): Likewise.
2569         * tree-parloops.c (reduction_phi, initialize_reductions,
2570         eliminate_local_variables_1, add_field_for_reduction,
2571         add_field_for_name, create_phi_for_local_result,
2572         create_call_for_reduction_1, create_loads_for_reductions,
2573         create_stores_for_reduction, create_loads_and_stores_for_name):
2574         Likewise.
2575         * tree-phinodes.c (allocate_phi_node): Likewise.
2576         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2577         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2578         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2579         * tree-ssa-coalesce.c (compare_pairs): Likewise.
2580         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2581         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2582         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2583         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
2584         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2585         vn_nary_op_insert): Likewise.
2586         * tree-ssa.c (redirect_edge_var_map_add,
2587         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2588         * tree-vectorizer.c (vectorize_loops): Likewise.
2589         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2590         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2591         tree_cons_stat, build1_stat, build_variant_type_copy,
2592         decl_init_priority_lookup, decl_fini_priority_lookup,
2593         decl_priority_info, decl_restrict_base_lookup,
2594         decl_restrict_base_insert, decl_debug_expr_lookup,
2595         decl_debug_expr_insert, decl_value_expr_lookup,
2596         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2597         type_hash_add, get_file_function_name, tree_check_failed,
2598         tree_not_check_failed, tree_range_check_failed,
2599         omp_clause_range_check_failed, build_omp_clause,
2600         build_vl_exp_stat): Likewise.
2601         * value-prof.c (gimple_histogram_value,
2602         gimple_duplicate_stmt_histograms): Likewise.
2603         * var-tracking.c (attrs_list_insert, attrs_list_copy,
2604         unshare_variable, variable_union_info_cmp_pos, variable_union,
2605         dataflow_set_different_1, dataflow_set_different_2,
2606         vt_find_locations, variable_was_changed, set_variable_part,
2607         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2608         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2609         section_entry_hash, object_block_entry_eq,
2610         object_block_entry_hash, create_block_symbol,
2611         initialize_cold_section_name, default_function_rodata_section,
2612         strip_reg_name, set_user_assembler_name, const_desc_eq,
2613         build_constant_desc, output_constant_def, lookup_constant_def,
2614         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2615         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2616         default_internal_label): Likewise.
2617         * varray.c (varray_init, varray_grow): Likewise.
2618         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2619
2620 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2621
2622         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2623         operators for "test" insn.  Macroize insn using SWI mode macro.
2624         (*jcc_fused_2): Ditto.
2625         (*jcc_fused_3): Macroize insn using SWI mode macro.
2626         (*jcc_fused_4): Ditto.
2627
2628 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
2629
2630         * tree-ssa-pre.c: Fix typo in comment.
2631         (init_antic, fini_antic): Add explicit funtions for
2632         initializing and deinitializing ANTIC and AVAIL sets.
2633         (create_expression_by_pieces): Fix typo in comment.
2634         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2635         (execute_pre): Eventually dump details about ANTIC_IN.
2636
2637 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2638
2639         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2640         * gcc.c (translate_options, init_spec, store_arg, read_specs,
2641         add_to_obstack, file_at_path, find_a_file, execute,
2642         add_preprocessor_option, add_assembler_option, add_linker_option,
2643         process_command, insert_wrapper, do_option_spec, do_self_spec,
2644         spec_path, do_spec_1, is_directory, main, used_arg,
2645         getenv_spec_function): Likewise.
2646         * tlink.c (symbol_hash_lookup, file_hash_lookup,
2647         demangled_hash_lookup, symbol_push, file_push, frob_extension):
2648         Likewise.
2649
2650 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2651
2652         * doc/rtl.texi: Updated subreg section.
2653
2654 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2655
2656         PR c++/36523
2657         * cgraphunit.c (cgraph_process_new_functions): Don't clear
2658         node->needed and node->reachable.
2659         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2660         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2661         (expand_task_call): Don't call expand_task_copyfn.
2662         (expand_task_copyfn): Renamed to...
2663         (finalize_task_copyfn): ... this.
2664
2665 2008-06-19  Jan Hubicka  <jh@suse.cz>
2666
2667         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2668         clobbering framepointer.
2669
2670 2008-06-19  Jan Hubicka  <jh@suse.cz>
2671
2672         * tree-optimize.c (execute_early_local_optimizations): Set
2673         cgraph_state only at first invocation.
2674
2675 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2676
2677         * system.h (-Wc++-compat): Activate as a warning, no an error.
2678
2679 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2680
2681         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2682         instead of "#" in insn asm template.
2683         (*jcc_fused_2): Ditto.
2684
2685 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2686
2687         * config/i386/i386.h (ix86_tune_indices)
2688         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2689         (TARGET_FUSE_CMP_AND_BRANCH): New define.
2690         * config/i386/i386.md (*jcc_fused_1): New insn pattern
2691         (*jcc_fused_2): Ditto.
2692         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2693         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2694         (print operand): Handle 'E' and 'e' code.
2695
2696 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
2697
2698         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2699         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2700         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2701
2702 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
2703
2704         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2705         node->decl.
2706         (cgraph_expand_function): Use local copy of decl.
2707         (cgraph_expand_all_functions): Remove redundant initialization of
2708         order_pos.
2709         (cgraph_optimize): Reword internal_error message.
2710
2711 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
2712
2713         * arm-protos.h (arm_return_in_memory): Remove public
2714         arm_return_in_memory() prototype.
2715         * arm.c (arm_return_in_memory): Add static prototype, add target
2716         hook macro, change definition and comments.
2717         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2718
2719 2008-06-19  Ben Elliston  <bje@au.ibm.com>
2720
2721         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2722         real.c: Remove references to IEEE 754R.
2723         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2724         * doc/libgcc.texi (Decimal float library routines): Likewise.
2725
2726 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2727
2728         * targhooks.h (struct gcc_target): New member unwind_word_mode.
2729         (default_unwind_word_mode): Add prototype.
2730         * targhooks.c (default_unwind_word_mode): New function.
2731         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2732         instead of word_mode.
2733         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2734         (TARGET_INITIALIZER): Use it.
2735
2736         * c-common.c (handle_mode_attribute): Support "unwind_word"
2737         mode attribute.
2738         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2739
2740         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2741         word_mode to access SjLj_Function_Context member "data".
2742         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
2743         conversion from targetm.eh_return_filter_mode () to
2744         targetm.unwind_word_mode () if they differ.
2745
2746         * builtin-types.def (BT_UNWINDWORD): New primitive type.
2747         (BT_FN_UNWINDWORD_PTR): New function type.
2748         (BT_FN_WORD_PTR): Remove.
2749         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2750         * except.c (expand_builtin_extend_pointer): Convert pointer to
2751         targetm.unwind_word_mode () instead of word_mode.
2752
2753         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2754         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2755         (spu_unwind_word_mode): New function.
2756         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2757         (TARGET_UNWIND_WORD_MODE): Define.
2758         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2759
2760 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2761
2762         * config/spu/spu.c (reg_align): Remove.
2763         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2764         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2765         (spu_split_store): Likewise.
2766
2767 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
2768
2769         * gcc/tree-vn.c: Fix typo in comment.
2770
2771 2008-06-18  Jan Hubicka  <jh@suse.cz>
2772
2773         * cgraphunit.c (cgraph_optimize): Output debug info when doing
2774         toplevel reorder too.
2775
2776 2008-06-18  Jan Hubicka  <jh@suse.cz>
2777
2778         * c-opts.c (c_common_post_options): PCH is not compatible with
2779         no-unit-at-a-time.
2780         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2781         -fno-toplevel-reorder by default now.
2782
2783 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2784
2785         PR documentation/30739
2786         * doc/install.texi (Prerequisites): Document dependency on awk.
2787
2788 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
2789             Ian Lance Taylor  <iant@google.com>
2790
2791         PR rtl-optimization/35604
2792         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2793         only want to change jump destinations, not eventual label comparisons.
2794
2795 2008-06-16  Jan Hubicka  <jh@suse.cz>
2796
2797         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2798         syntax errors.
2799         (cgraph_analyze_function): Likewise.
2800
2801 2008-06-16  Jan Hubicka  <jh@suse.cz>
2802
2803         * cgraph.h (cgraph_mark_if_needed): New function.
2804         * cgraphunit.c (cgraph_mark_if_needed): New function.
2805         * c-decl.c (duplicate_decl): Use it.
2806
2807 2008-06-16  Jan Hubicka  <jh@suse.cz>
2808
2809         * cgraph.c (cgraph_add_new_function): When in expansion state, do
2810         lowering.
2811
2812 2008-06-16  Jan Hubicka  <jh@suse.cz>
2813
2814         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2815
2816 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
2817             Kazu Hirata  <kazu@codesourcery.com>
2818             Maxim Kuvyrkov  <maxim@codesourcery.com
2819
2820         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2821         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2822         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2823         EXTRA_SPEC_FUNCTIONS.
2824         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2825         (DRIVER_SELF_SPECS): Adjust.
2826         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2827         * config/mips/st.h, config/mips/t-st: New.
2828         * config/mips/driver-native.c, config/mips/x-native: New.
2829         * doc/invoke.texi (MIPS): Document 'native' value for -march and
2830         -mtune options.
2831
2832 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2833
2834         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2835         from it.
2836         (ISA_HAS_FP_CONDMOVE): New macro.
2837         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2838         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2839         (ISA_HAS_NMADD3_NMSUB3): New macro.
2840         * config/mips/mips.c (mips_rtx_costs): Update.
2841         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2842         compiling for ST Loongson 2E/2F.
2843         (madd<mode>): Rename to madd4<mode>.  Update.
2844         (madd3<mode>): New pattern.
2845         (msub<mode>): Rename to msub4<mode>.  Update.
2846         (msub3<mode>): New pattern.
2847         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
2848         (nmadd3<mode>): New pattern.
2849         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
2850         (nmadd3<mode>_fastmath): New pattern.
2851         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
2852         (nmsub3<mode>): New pattern.
2853         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
2854         (nmsub3<mode>_fastmath): New pattern.
2855         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2856
2857 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2858
2859         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2860         (DF_REF_INSN_INFO): New.
2861         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2862         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2863         with a NULL DF_REF_INSN_INFO.
2864         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2865         DF_INSN_SET.
2866         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2867         DF_INSN_INFO_EQ_USES): New.
2868         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2869         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2870         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2871         * df-core.c: Update comment for above changes.
2872         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2873         DF_INSN_UID_* macros.
2874         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2875         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2876         insn rtx.  Update all callers.
2877         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2878         df_ref_create_structure, df_insn_refs_collect): Likewise.
2879         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2880         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2881         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2882         macros to access the insn refs.
2883         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2884         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2885         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2886         for accessing the refs.
2887         (try_fwprop_subst): Likewise.
2888         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2889         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2890         for accessing the refs.
2891         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2892         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2893         to look at the insn refs.
2894         (record_uses): Likewise.
2895         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2896         function anymore.
2897         (mark_artificial_uses): Don't mark_insn for artificial refs.
2898         (mark_reg_rependencies): Likewise.
2899
2900         * doc/rtl.texi: Remove documentation of ADDRESSOF.
2901
2902 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2903
2904         * configure: Regenerate.
2905
2906 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2907
2908         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2909         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2910         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2911
2912 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2913
2914         * config/avr/avr.c (avr_mcu_t): Add attiny167.
2915         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2916         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2917
2918 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2919
2920         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2921         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2922         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2923
2924 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2925
2926         * tree-ssa-sccvn.c: Fix format of comments.
2927
2928 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2929
2930         * cgraph.c: Remove unneeded forward declarations of eq_node()
2931         and hash_node().
2932
2933 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2934
2935         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2936         REG_RETVAL notes.
2937         (see_update_relevancy): Likewise.
2938         * fwprop.c (try_fwprop_subst): Likewise.
2939         * rtlanal.c (noop_move_p): Likewise.
2940         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2941         notes to non-existing libcall blocks.
2942         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
2943         Remove orig_set.
2944         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2945         (dead_libcall_p): Remove.
2946         (delete_trivially_dead_insns): Don't use it.
2947         * web.c (union_defs): Remove comment about keeping nops.
2948         * gcse.c (hash_scan_insn): Don't take libcall pointers.
2949         (compute_hash_table_work): Don't track libcall notes.
2950         (do_local_cprop): Don't take libcall pointers.  Don't update
2951         libcall notes.
2952         (adjust_libcall_notes): Deleted.
2953         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2954         ever have existed in the first place).
2955         (replace_store_insn): Don't try to remove libcall notes.
2956         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2957         (resolve_reg_notes): Don't call them.
2958         (resolve_simple_move): Likewise.
2959         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2960         Don't remove REG_RETVAL notes.
2961         * emit-rtl.c (try_split): Don't update libcall notes.
2962         (emit_copy_of_insn_after): Dito.
2963         * cselib.c (cselib_current_insn_in_libcall): Remove.
2964         (cselib_process_insn): Don't set/clear it.
2965         (new_elt_loc_list): Don't record it.
2966         (cselib_init): Don't initialize it.
2967         * cselib.c (struct elt_loc_list): Remove in_libcall field.
2968         * loop-invariant.c (find_invariant_insn): Don't look for libcall
2969         notes.
2970         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2971         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2972         (init_deps): Don't initialize it.
2973         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2974         * combine.c (delete_noop_moves): Don't update libcall notes.
2975         (can_combine_p): Remove now pointless #if 0 block.
2976         (try_combine): Remove another obsolete #if 0 block.
2977         (distribute_notes): Don't distribute libcall notes.
2978         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2979         * dce.c (libcall_dead_p): Remove.
2980         (delete_unmarked_insns): Don't handle libcall blocks.
2981         (preserve_libcall_for_dce): Remove.
2982         (prescan_insns_for_dce): Don't special-case libcall block insns.
2983         * reload1 (reload): Don't handle libcall notes. 
2984         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2985         documentation.
2986
2987 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2988
2989         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2990         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2991         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2992
2993 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2994
2995         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2996         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2997         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2998
2999 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3000
3001         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3002
3003 2008-06-16  Ira Rosen  <irar@il.ibm.com>
3004
3005         PR tree-optimization/36493
3006         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3007         the arguments list. Use VECTYPE to create vector pointer.
3008         (vectorizable_store): Fail if accesses through a pointer to vectype
3009         do not alias the original memory reference operands.
3010         Call vect_create_data_ref_ptr without the removed argument.
3011         (vectorizable_load): Likewise.
3012         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3013         removed argument.
3014
3015 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
3016
3017         PR target/36336
3018         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
3019         reg_equiv_constant.
3020
3021 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3022
3023         * config/mips/loongson2ef.md: New file.
3024         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3025         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3026         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3027         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3028         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3029         and loongson_2f.
3030         (loongson2ef.md): New include.
3031         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3032         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3033         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3034         (loongson_gt_<mode>, loongson_extract_halfword)
3035         (loongson_insert_halfword_0, loongson_insert_halfword_2)
3036         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3037         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3038         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3039         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3040         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3041         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3042         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3043         (vec_interleave_low<mode>): Define type attribute.
3044         * config/mips/mips.c (mips_ls2): New static variable.
3045         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3046         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3047         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3048         Implement target scheduling hooks.
3049         (mips_multipass_dfa_lookahead): Update to handle tuning for
3050         Loongson 2E/2F.
3051         (mips_sched_init): Initialize data for Loongson scheduling.
3052         (mips_ls2_variable_issue): New static function.
3053         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3054         Add sanity check.
3055         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3056         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3057         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3058         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3059         Handle ST Loongson 2E/2F cores.
3060         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3061
3062 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3063
3064         * omp-low.c (extract_omp_for_data): Fix comment typo.
3065         * c.opt: Fix typo.
3066
3067 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3068
3069         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3070         FIXME note about gcc/config.guess.
3071         * doc/options.texi (Option file format): Remove non-ASCII bytes.
3072         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3073         * doc/cppopts.texi: Likewise.
3074         * doc/extend.texi: Likewise.
3075         * doc/gcc.texi: Likewise.
3076         * doc/gccint.texi: Likewise.
3077         * doc/gcov.texi: Likewise.
3078         * doc/gty.texi: Likewise.
3079         * doc/hostconfig.texi: Likewise.
3080         * doc/install.texi: Likewise.
3081         * doc/invoke.texi: Likewise.
3082         * doc/loop.texi: Likewise.
3083         * doc/makefile.texi: Likewise.
3084         * doc/md.texi: Likewise.
3085         * doc/passes.texi: Likewise.
3086         * doc/tm.texi: Likewise.
3087         * doc/tree-ssa.texi: Likewise.
3088         * doc/trouble.texi: Likewise.
3089
3090 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
3091             Nathan Sidwell  <nathan@codesourcery.com>
3092             Maxim Kuvyrkov  <maxim@codesourcery.com>
3093             Richard Sandiford  <rdsandiford@googlemail.com>
3094         
3095         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3096         * config/mips/mips-protos.h (mips_expand_vector_init): New.
3097         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3098         builtins.
3099         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3100         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3101         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3102         V8QImode cases.
3103         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3104         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3105         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3106         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3107         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3108         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3109         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3110         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3111         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3112         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3113         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3114         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3115         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3116         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3117         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3118         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3119         (mips_builtins): Add Loongson builtins.
3120         (mips_loongson_2ef_bdesc): New.
3121         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3122         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3123         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3124         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3125         New.
3126         (mips_expand_vector_init): New.
3127         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3128         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3129         if appropriate.
3130         * config/mips/mips.md: Add unspec numbers for Loongson
3131         builtins.  Include loongson.md.
3132         (MOVE64): Include Loongson vector modes.
3133         (SPLITF): Include Loongson vector modes.
3134         (HALFMODE): Handle Loongson vector modes.
3135         * config/mips/loongson.md: New.
3136         * config/mips/loongson.h: New.
3137         * config.gcc: Add loongson.h header for mips*-*-* targets.
3138         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3139
3140 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
3141
3142         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
3143         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
3144         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
3145         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
3146         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
3147         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
3148         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
3149         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
3150         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
3151         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
3152         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
3153         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
3154         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
3155         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
3156         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
3157         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
3158         Remove use_fixproto=yes.
3159         (ia64*-*-hpux*): Remove comment about using fixproto.
3160         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
3161
3162 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3163
3164         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
3165         library rebuilds.
3166         * configure: Regenerate.
3167
3168 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3169
3170         PR middle-end/36520
3171         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
3172         before evaluating it.
3173
3174 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
3175
3176         PR c/36507
3177         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3178         nested inline functions.
3179         (start_decl, start_function): Don't invert DECL_EXTERNAL
3180         for nested inline functions.
3181
3182 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3183
3184         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3185         splits that must be made for correctness.
3186
3187 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3188
3189         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3190         (AVAIL_NON_MIPS16): Likewise.
3191         (mips_builtin_description): Replace target_flags with a predicate.
3192         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3193         (dspr2_32): New availability predicates.
3194         (MIPS_BUILTIN): New macro.
3195         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3196         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3197         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3198         Replace the TARGET_FLAGS parameters with AVAIL parameters.
3199         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3200         (mips_dsp_32only_bdesc): Merge into...
3201         (mips_builtins): ...this new array.
3202         (mips_bdesc_map, mips_bdesc_arrays): Delete.
3203         (mips_init_builtins): Update after above changes.
3204         (mips_expand_builtin_1): Merge into...
3205         (mips_expand_builtin): ...here and update after above changes.
3206
3207 2008-06-12  Paul Brook  <paul@codesourcery.com>
3208
3209         * longlong.h (__arm__): Define count_leading_zeros.
3210         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3211         (clzsi2, clzdi2): New functions.
3212         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3213         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3214         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3215         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3216         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3217         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3218         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3219         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3220         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3221         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3222
3223 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
3224
3225         * config/m68k/m68k.c (m68k_tune_flags): New.
3226         (override_options): Compute m68k_tune_flags.
3227         (MULL_COST, MULW_COST): Update for various variants of CFV2.
3228         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3229
3230 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3231
3232         PR middle-end/36506
3233         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3234
3235 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3236
3237         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3238         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3239
3240 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3241
3242         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3243         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3244
3245 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3246
3247         PR middle-end/36506
3248         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3249         reductions.
3250
3251 2008-06-12  Richard Guenther  <rguenther@suse.de>
3252
3253         PR tree-optimization/36345
3254         * tree-flow.h (struct ptr_info_def): Align escape_mask,
3255         add memory_tag_needed flag.
3256         (may_alias_p): Declare.
3257         * tree-ssa-alias.c (may_alias_p): Export.
3258         (set_initial_properties): Use memory_tag_needed flag.
3259         (update_reference_counts): Likewise.
3260         (reset_alias_info): Reset memory_tag_needed flag.
3261         (create_name_tags): Check memory_tag_needed flag.
3262         (dump_points_to_info_for): Dump it.
3263         * tree-ssa-structalias.c (struct variable_info): Remove
3264         directly_dereferenced flag.
3265         (new_var_info): Do not initialize it.
3266         (process_constraint_1): Do not set it.
3267         (update_alias_info): Set is_dereferenced flag.
3268         (set_uids_in_ptset): Use may_alias_p.
3269         (set_used_smts): Check memory_tag_needed flag.
3270         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
3271         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3272         memory_tag_needed flag.
3273         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3274         from broken design.
3275
3276 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
3277
3278         * config/i386/i386.c (ix86_compute_frame_layout): Disable
3279         red zone for w64 abi.
3280         (ix86_expand_prologue): Likewise.
3281         (ix86_force_to_memory): Likewise.
3282         (ix86_free_from_memory): Likewise.
3283
3284 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
3285
3286         PR target/36425
3287         * config/rs6000/rs6000.c (rs6000_override_options): Set
3288         rs6000_isel conditionally to the absence of comand line override.
3289         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3290         Remove duplicate rs6000_isel setting.
3291         * config/rs6000/eabispe.h: Ditto.
3292
3293 2008-06-11  Richard Guenther  <rguenther@suse.de>
3294
3295         * alias.c (get_alias_set): Use the element alias-set for arrays.
3296         (record_component_aliases): For arrays and vectors do nothing.
3297         * c-common.c (strict_aliasing_warning): Handle the cases
3298         of alias set zero explicitly.
3299         * Makefile.in (dfp.o-warn): Add -Wno-error.
3300
3301 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3302
3303         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3304         tune_32 tune_64.
3305         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3306         tune_32 tune_64 to supported_defaults.  Allow values not
3307         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3308         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
3309         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3310         with_cpu_64 to generic for 64-bit-supporting configurations, not
3311         with_cpu.  Remove FIXMEs.
3312         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3313         --with-arch-64, --with-tune-32, --with-tune-64): Document.
3314         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3315         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3316         arch_32 and arch_64.
3317
3318 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3319             Olivier Hainque  <hainque@adacore.com>
3320
3321         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3322         Use DECL_SIZE_UNIT to retrieve the size of the field.
3323
3324 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3325
3326         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3327         with function calls after declarations.  Lay out
3328         neon_float_type_node before further use.
3329
3330 2008-06-11  Richard Guenther  <rguenther@suse.de>
3331
3332         * tree-flow.h (may_point_to_global_var): Declare.
3333         * tree-ssa-alias.c (may_point_to_global_var): New function.
3334         * tree-ssa-sink.c (is_hidden_global_store): Use it.
3335
3336 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
3337
3338         * configure.ac: Teach that fido supports .debug_line.
3339         * configure: Regenerate.
3340
3341 2008-06-10  Tom Tromey  <tromey@redhat.com>
3342
3343         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3344         debug hook.
3345
3346 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3347
3348         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3349         (encode_decimal64, decode_decimal64, encode_decimal128,
3350         decode_decimal128): Reverse order of 32-bit parts of value if host
3351         and target endianness differ.
3352
3353 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
3354
3355         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3356         Avoid division by 0.
3357         (tree_mod_pow2_value_transform): Likewise.
3358         (tree_ic_transform): Likewise.
3359         (tree_stringops_transform): Likewise.
3360         (tree_mod_subtract_transform): Likewise.
3361         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3362         (copy_edges_for_bb): Likewise.
3363         (initialize_cfun): Likewise.
3364
3365 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3366
3367         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3368         nonmemory_operand. Add "N" operand constraint.
3369         (*btsi): Ditto.
3370         (*jcc_btdi_mask_rex64): New instruction and split pattern.
3371         (*jcc_btsi_mask): Ditto.
3372         (*jcc_btsi_mask_1): Ditto.
3373
3374 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3375
3376         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3377         TYPE_CANONICAL for copied element type.
3378
3379 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3380
3381         PR target/36473
3382         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3383         Add m_CORE2 and m_GENERIC.
3384         * config/i386/predicates.md (bt_comparison_operator): New predicate.
3385         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3386         (*btsi): Ditto.
3387         (*jcc_btdi_rex64): New instruction and split pattern.
3388         (*jcc_btsi): Ditto.
3389         (*jcc_btsi_1): Ditto.
3390         (*btsq): Fix Intel asm dialect operand order.
3391         (*btrq): Ditto.
3392         (*btcq): Ditto.
3393
3394 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3395
3396         PR middle-end/36447
3397         * simplify-rtx.c (simplify_subreg): Add check for shift count 
3398         greater than size.
3399
3400 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
3401
3402         * doc/md.texi: Synchronize with later constraints.md change.
3403         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3404         with a C implementation.
3405         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3406         MFLO handling.
3407         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3408         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3409         when moving to and from MD_REGNUM.
3410         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3411         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3412         Handle byte and halfword moves.
3413         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3414         separately.
3415         * config/mips/constraints.md (h): Turn into NO_REGS.
3416         (l, x): Update documentation.
3417         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3418         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3419         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3420         (HILO): New mode iterator.
3421         (MOVE128): Add TI.
3422         (any_div): New code iterator.
3423         (u): Extend code attribute to div and udiv.
3424         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3425         d_operand in the splitters.  Remove redundant CONST_INT checks.
3426         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3427         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3428         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
3429         accordingly, using normal moves instead of unspecs to move LO into
3430         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
3431         (<u>mulsidi3): Handle expansion in C code.
3432         (<u>mulsidi3_32bit_internal): Rename to...
3433         (<u>mulsidi3_32bit): ...this.
3434         (<u>mulsidi3_32bit_r4000): Fix insn separator.
3435         (*<u>mulsidi3_64bit): Rename to...
3436         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
3437         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
3438         to set LO and HI to the multiplication result.  Use a normal move
3439         for MFLO and an unspec for MFHI.
3440         (*<u>mulsidi3_64bit_parts): Replace with...
3441         (<u>mulsidi3_64bit_hilo): ...this new instruction.
3442         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3443         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3444         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
3445         instead of HI.  Split the instruction into a separate multiplication
3446         and MFHI if !TARGET_FIX_R4000.
3447         (<su>muldi3_highpart): Likewise.
3448         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3449         and the "=h" clobber.
3450         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3451         (<u>mulditi3): New expander.
3452         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3453         (madsi): Remove "=h" clobber.
3454         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3455         Force the modulus result to be a GPR and split the instruction into
3456         a division followed by an MFHI after reload.
3457         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3458         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
3459         the MIPS16 HIGH define_split.
3460         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3461         of acc<->gpr moves to "multi".
3462         (*movdi_64bit): Replace the single "x" alternative with
3463         alternatives for moving into and out of "a".
3464         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
3465         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3466         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3467         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
3468         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
3469         (movti): New expander.
3470         (*movti, *movti_mips16): New insns.
3471         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3472         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3473         (mthi<GPR:mode>_<HILO:mode>): Likewise.
3474         * config/mips/predicates.md (fpr_operand): Delete.
3475         (d_operand): New predicate.
3476
3477 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
3478
3479         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3480         failure on some Bourne shells.
3481         (x86_64-*-*): Ditto.
3482
3483 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
3484
3485         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3486
3487 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3488
3489         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3490         (sparc-sun-solaris2*): Likewise.
3491
3492 2008-06-09  Arnaud Charlet  <charlet@adacore.com
3493
3494         * doc/install.texi: Update requirements to build the Ada compiler.
3495
3496 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3497
3498         * df-scan.c (struct df_scan_problem_data): Remove the
3499         mw_link_pool alloc pool.
3500         (df_scan_free_internal): Don't free it.
3501         (df_scan_alloc): Don't allocate it.
3502         * df.h (struct df_link): Update comment.
3503
3504 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3505
3506         * except.h: Correct checks for when SJLJ exceptions must be used.
3507
3508 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3509
3510         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3511         default.
3512         
3513 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
3514
3515         PR tree-optimization/36218
3516         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3517         configure for the build system.
3518         (BUILD_LDFLAGS): Define.
3519         * configure: Regenerate.
3520         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3521
3522 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
3523
3524         PR target/36424
3525         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3526         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
3527         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
3528
3529 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
3530
3531         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3532
3533 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3534
3535         * config.gcc (Obsolete configurations): Remove list of
3536         configurations.
3537         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3538         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
3539         targets matched by those patterns.
3540         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3541         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3542         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3543         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3544         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3545         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3546         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3547         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3548         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3549         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3550         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3551         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3552         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3553         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3554         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3555         Make code for Solaris 7 and greater unconditional for Solaris.
3556         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3557         Remove --with-* handling.
3558         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3559         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3560         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3561         LINK_OS_WINDISS_SPEC): Remove.
3562         * config/rs6000/sysv4.opt (mwindiss): Remove.
3563         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3564         * configure: Regenerate.
3565         * doc/cpp.texi: Don't mention BeOS.
3566         * doc/extend.texi (interrupt): Don't mention MS1.
3567         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3568         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3569         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3570         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3571         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3572         Remove.
3573         * doc/invoke.texi (MT Options): Remove.
3574         (-mwindiss): Remove.
3575         (CRIS Options): Remove cris-axis-aout references.
3576         (HPPA Options): Don't mention hppa1.1-*-pro.
3577         * doc/md.texi: (MorphoTech family): Remove.
3578         * libgcc2.c: Don't handle UWIN.
3579         * config/alpha/t-unicosmk: Remove.
3580         * config/alpha/unicosmk.h: Remove.
3581         * config/arm/kaos-arm.h: Remove.
3582         * config/arm/kaos-strongarm.h: Remove.
3583         * config/arm/strongarm-coff.h: Remove.
3584         * config/arm/strongarm-elf.h: Remove.
3585         * config/arm/strongarm-pe.h: Remove.
3586         * config/arm/t-strongarm-pe: Remove.
3587         * config/arm/t-xscale-coff: Remove.
3588         * config/arm/t-xscale-elf: Remove.
3589         * config/arm/xscale-coff.h: Remove.
3590         * config/arm/xscale-elf.h: Remove.
3591         * config/chorus.h: Remove.
3592         * config/cris/aout.h: Remove.
3593         * config/cris/aout.opt: Remove.
3594         * config/cris/t-aout: Remove.
3595         * config/i386/beos-elf.h: Remove.
3596         * config/i386/kaos-i386.h: Remove.
3597         * config/i386/ptx4-i.h: Remove.
3598         * config/i386/sco5.h: Remove.
3599         * config/i386/sco5.opt: Remove.
3600         * config/i386/sysv4-cpp.h: Remove.
3601         * config/i386/sysv5.h: Remove.
3602         * config/i386/t-beos: Remove.
3603         * config/i386/t-sco5: Remove.
3604         * config/i386/t-uwin: Remove.
3605         * config/i386/uwin.asm: Remove.
3606         * config/i386/uwin.h: Remove.
3607         * config/kaos.h: Remove.
3608         * config/mips/windiss.h: Remove.
3609         * config/mt: Remove directory.
3610         * config/pa/pa-osf.h: Remove.
3611         * config/pa/pa-pro-end.h: Remove.
3612         * config/pa/t-pro: Remove.
3613         * config/ptx4.h: Remove.
3614         * config/rs6000/beos.h: Remove.
3615         * config/rs6000/kaos-ppc.h: Remove.
3616         * config/rs6000/t-beos: Remove.
3617         * config/rs6000/windiss.h: Remove.
3618         * config/sh/kaos-sh.h: Remove.
3619         * config/sol2-6.h: Remove.
3620         * config/sparc/sol26-sld.h: Remove.
3621         * config/sparc/sysv4-only.h: Remove.
3622         * config/vax/bsd.h: Remove.
3623         * config/vax/t-memfuncs: Remove.
3624         * config/vax/ultrix.h: Remove.
3625         * config/vax/vaxv.h: Remove.
3626         * config/windiss.h: Remove.
3627
3628 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
3629
3630         PR rtl-optimization/36438
3631         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3632         for vector shifts with constant scalar shift operands.
3633
3634 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
3635
3636         * doc/invoke.texi: Document -march=xlr.
3637         * config/mips/xlr.md: New file.
3638         * config/mips/mips.md: Include it.
3639         (cpu): Add "xlr".
3640         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3641         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3642         (mips_rtx_cost_data): Likewise.
3643
3644 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
3645
3646         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3647         PRE_INC and PRE_DEC cases.
3648
3649 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3650
3651         PR rtl-optimization/36419
3652         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3653         the emitting jump insn.
3654
3655         PR target/36362
3656         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3657         is not bool, boolify the whole *expr_p and convert to the desired type.
3658
3659 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3660
3661         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3662         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3663         Add omp_private_outer_ref hook, add another argument to
3664         omp_clause_default_ctor hook.
3665         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3666         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3667         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3668         hook_tree_tree_tree_tree_null.
3669         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3670         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3671         * hooks.c (hook_tree_tree_tree_tree_null): New function.
3672         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3673         * tree.def (OMP_TASK): New tree code.
3674         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3675         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3676         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3677         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3678         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3679         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3680         OMP_CLAUSE_COLLAPSE_EXPR): Define.
3681         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3682         (OMP_DIRECTIVE_P): Add OMP_TASK.
3683         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3684         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3685         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3686         and OMP_CLAUSE_UNTIED entries.
3687         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
3688         num_ops to 2.
3689         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3690         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3691         * tree-pretty-print.c (dump_omp_clause): Handle
3692         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3693         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3694         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3695         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
3696         warning about unsigned iterators.  Change decl/init/cond/incr
3697         arguments to TREE_VECs, check arguments for all collapsed loops.
3698         (c_finish_omp_taskwait): New function.
3699         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3700         ws_clauses.
3701         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
3702         default_function_array_conversion on init.  Add par_clauses argument.
3703         If decl is present in parallel's lastprivate clause, change it to
3704         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3705         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
3706         collapse count in clauses.
3707         (c_parser_omp_for, c_parser_omp_parallel): Adjust
3708         c_parser_omp_for_loop callers.
3709         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3710         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3711         (c_parser_omp_clause_name): Handle collapse and untied clauses.
3712         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3713         functions.
3714         (c_parser_omp_clause_schedule): Handle schedule(auto).
3715         Include correct location in the error message.
3716         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3717         and PRAGMA_OMP_CLAUSE_UNTIED.
3718         (OMP_TASK_CLAUSE_MASK): Define.
3719         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3720         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3721         * tree-nested.c (convert_nonlocal_omp_clauses,
3722         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3723         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3724         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3725         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3726         OMP_CLAUSE_DECL.
3727         (conver_nonlocal_reference, convert_local_reference,
3728         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
3729         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3730         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3731         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3732         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3733         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3734         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3735         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3736         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3737         OMP_CLAUSE_UNTIED.
3738         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3739         * c-common.h (c_finish_omp_taskwait): New prototype.
3740         * gimple-low.c (lower_stmt): Handle OMP_TASK.
3741         * tree-parloops.c (create_parallel_loop): Create 1 entry
3742         vectors for OMP_FOR_{INIT,COND,INCR}.
3743         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3744         (make_edges): Handle OMP_TASK.
3745         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3746         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3747         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3748         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3749         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3750         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3751         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3752         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3753         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3754         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3755         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3756         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3757         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3758         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3759         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3760         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3761         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3762         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3763         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3764         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3765         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3766         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3767         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3768         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3769         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3770         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3771         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
3772         original iterator is present in lastprivate clause or if
3773         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
3774         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3775         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3776         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3777         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3778         if it is set, lookup var in outer contexts too.  Handle
3779         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
3780         to be implicitly determined firstprivate for task regions.
3781         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3782         if it is set, lookup var in outer contexts too.  Set
3783         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3784         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3785         OMP_CLAUSE_UNTIED.  Take region_type as last argument
3786         instead of in_parallel and in_combined_parallel.
3787         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3788         Adjust callers.
3789         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3790         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
3791         (new_omp_context): Set default_kind to
3792         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3793         (omp_region_type): New enum.
3794         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3795         fields, add region_type.
3796         (new_omp_context): Take region_type as argument instead of is_parallel
3797         and is_combined_parallel.
3798         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3799         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3800         ctx->is_combined_parallel checks.
3801         (gimplify_omp_task): New function.
3802         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3803         OMP_CLAUSE_UNTIED.
3804         * omp-low.c (extract_omp_for_data): Use schedule(static)
3805         for schedule(auto).  Handle pointer and unsigned iterators.
3806         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
3807         Add loops argument.  Extract data for collapsed OMP_FOR loops.
3808         (expand_parallel_call): Assert sched_kind isn't auto,
3809         map runtime schedule to index 3.
3810         (struct omp_for_data_loop): New type.
3811         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3812         Add loop, loops, collapse and iter_type fields.
3813         (workshare_safe_to_combine_p): Disallow combined for if
3814         iter_type is unsigned long long.  Don't combine collapse > 1 loops
3815         unless all bounds and steps are constant.  Adjust extract_omp_for_data
3816         caller.
3817         (expand_omp_for_generic): Handle pointer, unsigned and long long
3818         iterators.  Handle collapsed OMP_FOR loops.  Adjust
3819         for struct omp_for_data changes.  If libgomp function doesn't return
3820         boolean_type_node, add comparison of the return value with 0.
3821         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3822         pointer, unsigned and long long iterators.  Adjust for struct
3823         omp_for_data changes.
3824         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3825         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
3826         unsigned long long.  Allocate loops array, pass it to
3827         extract_omp_for_data.  For collapse > 1 loops use always
3828         expand_omp_for_generic.
3829         (omp_context): Add sfield_map and srecord_type fields.
3830         (is_task_ctx, lookup_sfield): New functions.
3831         (use_pointer_for_field): Use is_task_ctx helper.  Change first
3832         argument's type from const_tree to tree.  Clarify comment.
3833         In OMP_TASK disallow copy-in/out sharing.
3834         (build_sender_ref): Call lookup_sfield instead of lookup_field.
3835         (install_var_field): Add mask argument.  Populate both record_type
3836         and srecord_type if needed.
3837         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3838         in srecord_type.
3839         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3840         and DECL_FIELD_OFFSET.
3841         (scan_sharing_clauses): Adjust install_var_field callers.  For
3842         firstprivate clauses on explicit tasks allocate the var by value in
3843         record_type unconditionally, rather than by reference.
3844         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3845         Use is_taskreg_ctx instead of is_parallel_ctx.
3846         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3847         (create_omp_child_function_name): Add task_copy argument, use
3848         *_omp_cpyfn* names if it is true.
3849         (create_omp_child_function): Add task_copy argument, if true create
3850         *_omp_cpyfn* helper function.
3851         (scan_omp_parallel): Adjust create_omp_child_function callers.
3852         Rename parallel_nesting_level to taskreg_nesting_level.
3853         (scan_omp_task): New function.
3854         (lower_rec_input_clauses): Don't run constructors for firstprivate
3855         explicit task vars which are initialized by *_omp_cpyfn*.  
3856         Pass outer var ref to omp_clause_default_ctor hook if
3857         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3858         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3859         OMP_CLAUSE_REDUCTION_INIT.
3860         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3861         avoid duplicate setting of fields.  Handle
3862         OMP_CLAUSE_PRIVATE_OUTER_REF.
3863         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
3864         copy-out if TREE_READONLY, only copy-in.
3865         (expand_task_copyfn): New function.
3866         (expand_task_call): New function.
3867         (struct omp_taskcopy_context): New type.
3868         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3869         New functions.
3870         (lower_omp_parallel): Rename to...
3871         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3872         Call create_task_copyfn if srecord_type is needed.  Adjust
3873         sender_decl type.
3874         (task_shared_vars): New variable.
3875         (check_omp_nesting_restrictions): Warn if work-sharing,
3876         barrier, master or ordered region is closely nested inside OMP_TASK.
3877         Add warnings for barrier if closely nested inside of work-sharing,
3878         ordered, or master region.
3879         (scan_omp_1): Call check_omp_nesting_restrictions even for
3880         GOMP_barrier calls.  Rename parallel_nesting_level to
3881         taskreg_nesting_level.  Handle OMP_TASK.
3882         (lower_lastprivate_clauses): Even if some lastprivate is found on a
3883         work-sharing construct, continue looking for them on parent parallel
3884         construct.
3885         (lower_omp_for_lastprivate): Add lastprivate clauses
3886         to the beginning of dlist rather than end.  Adjust for struct
3887         omp_for_data changes.
3888         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3889         not after it.  Handle collapsed OMP_FOR loops, adjust for
3890         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3891         (get_ws_args_for): Adjust extract_omp_for_data caller.
3892         (scan_omp_for): Handle collapsed OMP_FOR
3893         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3894         (lower_omp_single_simple): If libgomp function doesn't return
3895         boolean_type_node, add comparison of the return value with 0.
3896         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3897         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
3898         (parallel_nesting_level): Rename to...
3899         (taskreg_nesting_level): ... this.
3900         (is_taskreg_ctx): New function.
3901         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3902         of is_parallel_ctx.
3903         (execute_lower_omp): Rename parallel_nesting_level to
3904         taskreg_nesting_level.
3905         (expand_omp_parallel): Rename to...
3906         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3907         Call omp_task_call for OMP_TASK regions.
3908         (expand_omp): Adjust caller, handle OMP_TASK.
3909         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3910
3911         * bitmap.c (bitmap_default_obstack_depth): New variable.
3912         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3913         if argument is NULL and bitmap_default_obstack is already initialized.
3914         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3915         at the end.
3916         * matrix-reorg.c (matrix_reorg): Likewise.
3917
3918 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
3919
3920         * config/i386/i386.md (*indirect_jump): Macroize using P
3921         mode iterator.  Remove !TARGET_64BIT from insn constraints.
3922         (*tablejump_1): Ditto.
3923         (*indirect_jump_rex64): Remove insn pattern.
3924         (*tablejump_1_rex64): Ditto.
3925         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3926         and eh_return_si insn patterns.
3927
3928 2008-06-06  Richard Guenther  <rguenther@suse.de>
3929
3930         * tree-ssa-structalias.c (merge_smts_into): Remove.
3931         (find_what_p_points_to): Do not bother to compute the
3932         points-to set for pt_anything pointers.
3933         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3934         for pt_anything pointers is ok.
3935
3936 2008-06-06  Jan Hubicka  <jh@suse.cz>
3937
3938         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3939
3940 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3941
3942         * cgraph.c: Fix typos in comments.
3943         (cgraph_availability_names): Fix string typo.
3944         * fold-const.c: Fix typos in comments.
3945         (fold_binary): Fix typo in warning.
3946         * genautomata.c: Fix typos in comments.
3947         (check_presence_pattern_sets): Fix typo in local variable.
3948         (output_description): Fix typo in output.
3949         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3950         * hwint.h: Likewise.
3951         * matrix-reorg.c (check_allocation_function): Likewise.
3952         * omega.c (smooth_weird_equations): Likewise.
3953         * auto-inc-dec.c: Fix typos in comments.
3954         * bb-reorder.c: Likewise.
3955         * builtins.c: Likewise.
3956         * c-common.c: Likewise.
3957         * c-cppbuiltin.c: Likewise.
3958         * c-parser.c: Likewise.
3959         * c-pretty-print.c: Likewise.
3960         * cfgcleanup.c: Likewise.
3961         * cfgexpand.c: Likewise.
3962         * cfghooks.c: Likewise.
3963         * cfglayout.c: Likewise.
3964         * cfgloopmanip.c: Likewise.
3965         * cgraphunit.c: Likewise.
3966         * coverage.c: Likewise.
3967         * dbxout.c: Likewise.
3968         * df-byte-scan.c: Likewise.
3969         * df-core.c: Likewise.
3970         * df-problems.c: Likewise.
3971         * df-scan.c: Likewise.
3972         * dfp.c: Likewise.
3973         * dominance.c: Likewise.
3974         * domwalk.c: Likewise.
3975         * dse.c: Likewise.
3976         * dwarf2out.c: Likewise.
3977         * emit-rtl.c: Likewise.
3978         * et-forest.c: Likewise.
3979         * function.c: Likewise.
3980         * function.h: Likewise.
3981         * gcc.c: Likewise.
3982         * gcov-io.c: Likewise.
3983         * gcov.c: Likewise.
3984         * gcse.c: Likewise.
3985         * genattrtab.c: Likewise.
3986         * ggc-page.c: Likewise.
3987         * gimplify.c: Likewise.
3988         * gthr-lynx.h: Likewise.
3989         * haifa-sched.c: Likewise.
3990         * ipa-cp.c: Likewise.
3991         * ipa-inline.c: Likewise.
3992         * ipa-prop.h: Likewise.
3993         * ipa-pure-const.c: Likewise.
3994         * ipa-struct-reorg.c: Likewise.
3995         * ipa-struct-reorg.h: Likewise.
3996         * ipa-type-escape.c: Likewise.
3997         * ipa.c: Likewise.
3998         * loop-doloop.c: Likewise.
3999         * mips-tfile.c: Likewise.
4000         * mkmap-flat.awk: Likewise.
4001         * mkmap-symver.awk: Likewise.
4002         * modulo-sched.c: Likewise.
4003         * omp-low.c: Likewise.
4004         * optabs.c: Likewise.
4005         * optabs.h: Likewise.
4006         * opts.c: Likewise.
4007         * passes.c: Likewise.
4008         * postreload-gcse.c: Likewise.
4009         * postreload.c: Likewise.
4010         * predict.c: Likewise.
4011         * pretty-print.h: Likewise.
4012         * profile.c: Likewise.
4013         * protoize.c: Likewise.
4014         * ra-conflict.c: Likewise.
4015         * real.c: Likewise.
4016         * recog.c: Likewise.
4017         * regclass.c: Likewise.
4018         * regs.h: Likewise.
4019         * reload.c: Likewise.
4020         * rtl-error.c: Likewise.
4021         * rtlanal.c: Likewise.
4022         * scan.h: Likewise.
4023         * sched-rgn.c: Likewise.
4024         * see.c: Likewise.
4025         * stmt.c: Likewise.
4026         * target.h: Likewise.
4027         * tree-dfa.c: Likewise.
4028         * tree-eh.c: Likewise.
4029         * tree-flow-inline.h: Likewise.
4030         * tree-inline.c: Likewise.
4031         * tree-into-ssa.c: Likewise.
4032         * tree-loop-distribution.c: Likewise.
4033         * tree-nested.c: Likewise.
4034         * tree-parloops.c: Likewise.
4035         * tree-pass.h: Likewise.
4036         * tree-pretty-print.c: Likewise.
4037         * tree-profile.c: Likewise.
4038         * tree-scalar-evolution.c: Likewise.
4039         * tree-sra.c: Likewise.
4040         * tree-ssa-alias-warnings.c: Likewise.
4041         * tree-ssa-ccp.c: Likewise.
4042         * tree-ssa-coalesce.c: Likewise.
4043         * tree-ssa-dom.c: Likewise.
4044         * tree-ssa-dse.c: Likewise.
4045         * tree-ssa-forwprop.c: Likewise.
4046         * tree-ssa-live.c: Likewise.
4047         * tree-ssa-live.h: Likewise.
4048         * tree-ssa-loop-im.c: Likewise.
4049         * tree-ssa-loop-ivopts.c: Likewise.
4050         * tree-ssa-loop-niter.c: Likewise.
4051         * tree-ssa-loop-prefetch.c: Likewise.
4052         * tree-ssa-phiopt.c: Likewise.
4053         * tree-ssa-phiprop.c: Likewise.
4054         * tree-ssa-sccvn.c: Likewise.
4055         * tree-ssa-ter.c: Likewise.
4056         * tree-ssa-threadupdate.c: Likewise.
4057         * tree-ssa.c: Likewise.
4058         * tree-vect-analyze.c: Likewise.
4059         * tree-vect-transform.c: Likewise.
4060         * tree-vectorizer.c: Likewise.
4061         * tree-vn.c: Likewise.
4062         * tree-vrp.c: Likewise.
4063         * tree.c: Likewise.
4064         * tree.def: Likewise.
4065         * tree.h: Likewise.
4066         * unwind-dw2-fde.c: Likewise.
4067         * unwind.inc: Likewise.
4068         * value-prof.c: Likewise.
4069         * vmsdbgout.c: Likewise.
4070
4071 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
4072
4073         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4074         always place FP constants in the TOC for TARGET_POWERPC64.
4075         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4076
4077 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
4078
4079         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4080         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4081         enable for TARGET_E500_DOUBLE.
4082         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4083         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4084         floating-point modes like integer modes for E500 double.
4085         (rs6000_legitimate_offset_address_p): Likewise.
4086         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
4087         addressing for DDmode for E500 double.
4088         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4089         modes as using 64-bits of registers for E500 double.
4090         (spe_build_register_parallel): Do not handle DDmode or TDmode.
4091         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4092         specially for E500 double.
4093         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4094         TDmode for E500 double.
4095         (rs6000_gimplify_va_arg): Only handle SDmode in registers
4096         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4097         (rs6000_split_multireg_move): Do not handle TDmode specially for
4098         E500 double.
4099         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4100         using 64-bit registers for E500 double.
4101         (emit_frame_save): Do not handle DDmode specially for E500 double.
4102         (gen_frame_mem_offset): Likewise.
4103         (rs6000_function_value): Do not call spe_build_register_parallel
4104         for DDmode or TDmode.
4105         (rs6000_libcall_value): Likewise.
4106         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4107         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4108         for E500 double.
4109
4110 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4111
4112         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4113         in comments.
4114
4115 2008-06-04  Junjie Gu <jgu@tensilica.com>
4116
4117         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4118         comparison for frame pointers.
4119
4120 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
4121
4122         PR target/27386
4123         * config/avr/avr.h (PUSH_ROUNDING): Remove.
4124
4125 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
4126
4127         PR target/30243
4128         * builtins.c (expand_builtin_signbit): Don't take lowpart when
4129         register is already smaller or equal to required mode. 
4130
4131 2008-06-04  Xinliang David Li  <davidxl@google.com>
4132
4133         * tree-call-cdce.c: New file. 
4134         (cond_dead_built_in_calls): New static variable.
4135         (input_domain): New struct.
4136         (check_pow): New function.
4137         (check_builtin_call): Ditto.
4138         (check_target_format): Ditto.
4139         (is_call_dce_candidate): Ditto.
4140         (gen_one_condition): Ditto.
4141         (gen_conditions_for_domain): Ditto.
4142         (get_domain): Ditto.
4143         (gen_conditions_for_pow_cst_base): Ditto.
4144         (gen_conditions_for_pow_int_base): Ditto.
4145         (gen_conditions_for_pow): Ditto.
4146         (get_no_error_domain): Ditto.
4147         (gen_shrink_wrap_conditions): Ditto.
4148         (shrink_wrap_one_built_in_call): Ditto.
4149         (shink_wrap_conditional_dead_built_in_calls): Ditto.
4150         (tree_call_cdce): Ditto.
4151         (gate_call_cdce): Ditto.
4152         (pass_call_cdce): New gimple pass.
4153         * passes.c: (init_optimization_passes): New pass.
4154         * tree-pass.h: New pass declaration.
4155         * opts.c (decode_options): New flag setting.
4156         * common.opt: Add -ftree-builtin-call-dce flag.
4157         * Makefile.in: Add new source file.
4158         * tempvar.def: New tv_id.
4159         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
4160
4161 2008-06-04  Richard Guenther  <rguenther@suse.de>
4162
4163         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
4164         (is_call_clobbered): Always check var_ann->call_clobbered.
4165         (mark_call_clobbered): Always set var_ann->call_clobbered.
4166         (clear_call_clobbered): Always clear var_ann->call_clobbered.
4167         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
4168         (reset_alias_info): Clear call clobbering info on MTAGs and
4169         globals as well.
4170         (set_pt_anything): Set pt_global_mem.
4171         (create_tag_raw): Adjust comment.
4172         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
4173
4174 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
4175             Maxim Kuvyrkov  <maxim@codesourcery.com>
4176
4177         * config/m68k/m68k.opt (mxgot): New option.
4178         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4179         (m68k_output_addr_const_extra): New.
4180         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4181         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4182         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4183         * doc/invoke.texi (M680x0 Options): Document -mxgot.
4184
4185 2008-06-04  Richard Guenther  <rguenther@suse.de>
4186
4187         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4188         negative or non-representable offsets.
4189
4190 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4191
4192         * config/i386/i386.c (ix86_gen_leave): New.
4193         (ix86_gen_pop1): Likewise.
4194         (ix86_gen_add3): Likewise.
4195         (ix86_gen_sub3): Likewise.
4196         (ix86_gen_sub3_carry): Likewise.
4197         (ix86_gen_one_cmpl2): Likewise.
4198         (ix86_gen_monitor): Likewise.
4199         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4200         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4201         ix86_gen_one_cmpl2 and ix86_gen_monitor.
4202         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4203         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4204         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4205         (ix86_expand_epilogue): Updated.
4206         (print_operand): Handle integer register operand for 'z'.
4207         (ix86_expand_strlensi_unroll_1): Likewise.
4208         (ix86_expand_strlen): Likewise.
4209         (ix86_expand_builtin): Likewise.
4210         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4211         mov{q}/mov{l} and add{q}/add{l}.
4212
4213 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4214
4215         * config/i386/i386.md (P): New mode iterator.
4216         (SFmode push_operand splitter): Macroize DImode and SImode pushes
4217         using P mode iterator.
4218         (DFmode push_operand splitter): Ditto.
4219         (XFmode push_operand splitter): Ditto.
4220         (DFmode float_extend SFmode push_operand splitter): Ditto.
4221         (XFmode float_extend SFmode push_operand splitter): Do not generate
4222         SImode pushes for 64bit target.  Macroize Dimode and SImode
4223         pushes using P mode iterator.
4224         (XFmode float_extend DFmode push_operand splitter): Ditto.
4225
4226 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4227
4228         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4229         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4230         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4231         return type to int.
4232         (ix86_call_abi_override): Remove check for call_used_regs.
4233
4234 2008-06-03  Richard Guenther  <rguenther@suse.de>
4235
4236         * tree-ssa-structalias.c (find_func_aliases): Add constraints
4237         for the lhs of calls if the return type contains pointers.
4238
4239 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4240
4241         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4242         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4243         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4244         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4245         of cfun and DEFAULT_ABI to deceide abi mode.
4246         (DEFAULT_ABI): New.
4247         (REG_PARM_STACK_SPACE): Removed.
4248         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4249         (STACK_BOUNDARY): Use default target to deceide stack boundary.
4250         * config/i386/i386-protos.h (ix86_cfun_abi): New.
4251         (ix86_function_abi): Likewise.
4252         (ix86_function_type_abi): Likewise.
4253         (ix86_call_abi_override): Likewise.
4254         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4255         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4256         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4257         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4258         specific defines.
4259         (X86_64_REGPARM_MAX): New.
4260         (X86_64_SSE_REGPARM_MAX): New.
4261         (X64_REGPARM_MAX): New.
4262         (X64_SSE_REGPARM_MAX): New.
4263         (X86_32_REGPARM_MAX): New.
4264         (X86_32_SSE_REGPARM_MAX): New.
4265         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4266         (ix86_function_regparm): Handle user calling abi.
4267         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4268         by DEFAULT_ABI versus SYSV_ABI check.
4269         (ix86_reg_parm_stack_space): New.
4270         (ix86_function_type_abi): New.
4271         (ix86_call_abi_override): New.
4272         (ix86_function_abi): New.
4273         (ix86_cfun_abi): New.
4274         (init_cumulative_args): Call abi specific initialization.
4275         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4276         (function_arg_64): Extend SSE_REGPARM_MAX check.
4277         (function_arg (): Remove TARGET_64BIT_MS_ABI.
4278         (ix86_pass_by_reference): Likewise.
4279         (ix86_function_value_regno_p): Likewise.
4280         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4281         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4282         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4283         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4284         (setup_incoming_varargs_64): Adjust regparm for call abi.
4285         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4286         (ix86_va_start): Likewise.
4287         (ix86_gimplify_va_arg): Likewise.
4288         (ix86_expand_prologue): Likewise.
4289         (output_pic_addr_const): Likewise.
4290         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4291         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4292         (x86_output_mi_thunk): Likewise.
4293         (x86_function_profiler): Likewise.
4294         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4295         (SYSV_ABI, MS_ABI): New constants.
4296         (DEFAULT_ABI): New.
4297         (init_regs): Add prototype of function in regclass.c file.
4298         (OVERRIDE_ABI_FORMAT): New.
4299         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4300         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4301         (OUTGOING_REG_PARM_STACK_SPACE): New.
4302         (ix86_reg_parm_stack_space): New prototype.
4303         (CUMULATIVE_ARGS): Add call_abi member.
4304         (machine_function): Add call_abi member.
4305         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4306         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4307
4308 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
4309
4310         PR target/34879
4311         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4312         (avr_builtin_setjmp_frame_value): New function.
4313         * config/avr/avr.md (nonlocal_goto_receiver): Define.
4314         (nonlocal_goto): Define.
4315
4316 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
4317
4318         * config/mips/mips.c (mips_emit_loadgp): Return early if
4319         there is nothing do to, otherwise emit a blockage if
4320         !TARGET_EXPLICIT_RELOCS || crtl->profile.
4321         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4322
4323 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4324
4325         * configure.ac: Drop unneeded backslash ending up in config.in.
4326         * acinclude.m4: Likewise.
4327         * config.in: Regenerate.
4328
4329 2008-05-26  Jan Hubicka  <jh@suse.cz>
4330
4331         * predict.c (maybe_hot_frequency_p): Break out of...
4332         (maybe_hot_bb_p): ... here.
4333         (maybe_hot_edge_p): New.
4334         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4335         * basic-block.h (maybe_hot_edge_p): Declare.
4336
4337 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4338
4339         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4340         (*cmpfp_<mode>_cc): Ditto.
4341         (*fp_jcc_8<mode>_387): Ditto.
4342         (*fop_<MODEF:mode>_2_i387): Ditto.
4343         (*fop_<MODEF:mode>_3_i387): Ditto.
4344         (*fop_xf_2_i387): Ditto.
4345         (*fop_xf_3_i387): Ditto.
4346
4347 2008-06-02  Tomas Bily  <tbily@suse.cz>
4348
4349         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4350
4351 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4352
4353         * config/mips/mips.c (mips_valid_offset_p): New function.
4354         (mips_valid_lo_sum_p): Likewise.
4355         (mips_classify_address): Use them.
4356         (mips_force_address): New function.
4357         (mips_legitimize_address): Use it.
4358         * config/mips/mips.md (MOVE128): New mode iterator.
4359         (movtf): Require TARGET_64BIT.  Remove empty strings.
4360         (*movtf_internal): Rename to...
4361         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
4362         of "R" and use {,fp}{load,store} attributes instead of "multi".
4363         Use a separate define_split.
4364         (*movtf_mips16): New pattern.
4365
4366 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4367
4368         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4369         * config/mips/mips.c (mips_expand_before_return): New function.
4370         (mips_expand_epilogue): Call it.
4371         * config/mips/mips.md (return): Turn into a define_expand.
4372         (*return): New insn.
4373
4374 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4375
4376         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4377         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4378         functions.  Do not emit uses and clobbers of CONCATs; individually
4379         use and clobber their operands.
4380         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4381         gen_clobber, emit_use and gen_use.
4382         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4383         (expand_builtin_return): Likewise.
4384         * cfgbuild.c (count_basic_blocks): Likewise.
4385         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4386         * explow.c (emit_stack_restore): Likewise.
4387         * expmed.c (extract_bit_field_1): Likewise.
4388         * expr.c (convert_move, emit_move_complex_parts): Likewise.
4389         (emit_move_multi_word, store_constructor): Likewise.
4390         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4391         (thread_prologue_and_epilogue_insns): Likewise.
4392         * lower-subreg.c (resolve_simple_move): Likewise.
4393         * optabs.c (widen_operand, expand_binop): Likewise.
4394         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4395         * reload.c (find_reloads): Likewise.
4396         * reload1.c (eliminate_regs_in_insn): Likewise.
4397         * stmt.c (expand_nl_goto_receiver): Likewise.
4398         * config/alpha/alpha.md (builtin_longjmp): Likewise.
4399         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4400         * config/arm/arm.c (arm_load_pic_register): Likewise.
4401         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4402         * config/arm/arm.md (untyped_return): Likewise.
4403         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4404         * config/avr/avr.c (expand_prologue): Likewise.
4405         * config/bfin/bfin.c (do_unlink): Likewise.
4406         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4407         * config/cris/cris.c (cris_expand_prologue): Likewise.
4408         * config/darwin.c (machopic_indirect_data_reference): Likewise.
4409         (machopic_legitimize_pic_address): Likewise.
4410         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4411         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4412         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4413         (ix86_expand_convert_uns_didf_sse): Likewise.
4414         (ix86_expand_vector_init_general): Likewise.
4415         * config/ia64/ia64.md (eh_epilogue): Likewise.
4416         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4417         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4418         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4419         (config/iq2000/iq2000.c): Likewise.
4420         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4421         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4422         (builtin_longjmp): Likewise.
4423         * config/mn10300/mn10300.md (call, call_value): Likewise.
4424         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4425         * config/pdp11/pdp11.md (abshi2): Likewise.
4426         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4427         * config/s390/s390.c (s390_emit_prologue): Likewise.
4428         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4429         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4430         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4431         * config/sh/sh.c (prepare_move_operands): Likewise.
4432         (output_stack_adjust, sh_expand_epilogue): Likewise.
4433         (sh_set_return_address, sh_expand_t_scc): Likewise.
4434         * config/sparc/sparc.c (load_pic_register): Likewise.
4435         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4436         * config/spu/spu.c (spu_expand_epilogue): Likewise.
4437         * config/v850/v850.c (expand_epilogue): Likewise.
4438
4439 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
4440
4441         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4442         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4443         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4444         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
4445         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
4446         stack pointer register.
4447         (output_movhi): Remove code for interrupt specific writing to the 
4448         stack pointer register.
4449
4450 2008-05-31  Richard Guenther  <rguenther@suse.de>
4451
4452         PR tree-optimization/34244
4453         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4454         (tree_expr_nonzero_warnv_p): Likewise.
4455         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4456         ssa_name_nonnegative_p.
4457         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4458         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4459         not tree_expr_nonzero_warnv_p.
4460
4461         PR tree-optimization/36262
4462         Revert
4463         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
4464
4465         PR tree-optimization/34244
4466         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4467         (record_numbers_of_iterations): New function.
4468         (execute_vrp): Cache the numbers of iterations of loops.
4469         * tree-scalar-evolution.c (scev_reset_except_niters):
4470         New function.
4471         (scev_reset): Use scev_reset_except_niters.
4472         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4473
4474 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4475
4476         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4477         __WORKAROUND_RETS when appropriate.
4478
4479 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4480
4481         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4482         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4483         mode iterator.
4484         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4485         *fop_df_comm_sse insn patterns using MODEF mode iterator.
4486         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4487         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4488         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4489         *fop_df_1_mixed insn patterns using MODEF mode iterator.
4490         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4491         *fop_df_1_sse insn patterns using MODEF mode iterator.
4492         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4493         *fop_df_1_i387 insn patterns using MODEF mode iterator.
4494         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4495         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4496         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4497         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4498         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4499         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4500         (*fop_xf_4_i387): Use <MODE> for mode attribute.
4501         (*fop_xf_5_i387): Ditto.
4502         (*fop_xf_6_i387): Ditto.
4503
4504 2008-05-30  Richard Guenther  <rguenther@suse.de>
4505
4506         * builtins.c (build_string_literal): Avoid generating
4507         a non-gimple_val result.
4508
4509 2008-05-30  DJ Delorie  <dj@redhat.com>
4510
4511         * exec-tool.in: Use an environment variable (private) instead of a
4512         file (shared) as a semaphore, so as to not break parallel builds.
4513
4514 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4515
4516         * optabs.c (maybe_encapsulate_block): Remove.
4517         (emit_libcall_block): Adjust accordingly.
4518         * optabs.h (maybe_encapsulate_block): Remove prototype.
4519
4520         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4521         Don't use maybe_encapsulate_block.
4522
4523 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4524
4525         * config/rs6000/rs6000.c (rs6000_legitimize_address,
4526         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4527         rtx is a SYMBOL_REF before calling get_pool_constant.
4528
4529 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4530
4531         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4532
4533 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
4534
4535         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4536         rather than OS names to choose INO_T_EQ definition.
4537         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4538         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4539
4540 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
4541
4542         PR target/36348
4543         * config/darwin-f.c: New.
4544         * config/t-darwin: Added rule to build darwin-f.o.
4545         * config.gcc: Defined new variable, fortran_target_objs.
4546         (*-*-darwin*): Set fortran_target_objs.
4547         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4548         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4549         * configure: Regenerated.
4550
4551 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4552
4553         PR target/35771
4554         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4555         canonical type if needed.
4556
4557 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4558
4559         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4560
4561 2008-05-29  Richard Guenther  <rguenther@suse.de>
4562
4563         PR tree-optimization/36343
4564         PR tree-optimization/36346
4565         PR tree-optimization/36347
4566         * tree-flow.h (clobber_what_p_points_to): Declare.
4567         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4568         pointed-to variable is dereferenced is irrelevant to whether
4569         the pointer can access the pointed-to variable.
4570         (clobber_what_p_points_to): New function.
4571         * tree-ssa-alias.c (set_initial_properties): Use it.
4572         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4573         call clobber check for NMTs.
4574
4575 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4576         
4577         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4578         for printing gcov_type.
4579
4580 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4581
4582         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4583         and the eh region information.
4584         * value-prof.c (gimple_move_stmt_histograms): New function.
4585         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4586
4587 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
4588
4589         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4590
4591 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
4592
4593         * value-prof.c (tree_ic_transform): Print counts.
4594         * tree-profile.c (tree_gen_ic_func_profiler):
4595         Clear __gcov_indreict_call_callee variable to avoid misattribution
4596         of the profile.
4597
4598 2008-05-28  Rafael Espindola  <espindola@google.com>
4599
4600         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4601         invalid sharing.
4602
4603 2008-05-28  Richard Guenther  <rguenther@suse.de>
4604
4605         PR tree-optimization/36339
4606         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4607         and clobbering code out of the loop.
4608
4609 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4610
4611         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4612         letters defined.
4613
4614         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4615         s390_contiguous_bitmask_p, s390_symref_operand_p,
4616         s390_check_symref_alignment, s390_reload_larl_operand,
4617         s390_reload_symref_address): New functions.
4618         (s390_branch_condition_mnemonic): Support compare and branch
4619         instructions.
4620         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4621         and 'W' constraints.
4622         (s390_secondary_reload): Add secondary reloads for unaligned
4623         symbol refs or symbol refs to floating point or QI/TI mode
4624         integer values.
4625         (legitimate_address_p): Accept symbol references as addresses.
4626         (s390_expand_insv): Use rotate and insert selected bits
4627         instruction for insv when building for z10.
4628         (print_operand_address): Handle symbol ref addresses.
4629         (print_operand): Output modifier 'c' added for signed byte values.
4630         (s390_encode_section_info): Mark symbol refs with
4631         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4632
4633         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4634         (length attribute): RRF, RRR have 4 byte length.
4635         (FPALL, INTALL): New mode iterators added.
4636         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4637         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4638         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4639         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4640         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4641         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4642         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4643         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4644         instructions.
4645         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4646         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4647         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4648         reload<INTALL:mode><P:mode>_toreg_z10,
4649         reload<FPALL:mode><P:mode>_tomem_z10,
4650         reload<FPALL:mode><P:mode>_toreg_z10,
4651         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4652         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4653         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4654         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4655         definition.
4656         (movmem, clrmem, cmpmem): New splitters added.
4657
4658         * config/s390/predicates.md (larl_operand): Use
4659         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4660         SYMBOL_REF_ALIGN1_P.
4661         (s390_signed_integer_comparison,
4662         s390_unsigned_integer_comparison): New predicates.
4663
4664         * config/s390/s390-protos.h (s390_check_symref_alignment,
4665         s390_contiguous_bitmask_p, s390_reload_larl_operand,
4666         s390_reload_symref_address,
4667         s390_compare_and_branch_condition_mask): Prototypes added.
4668
4669         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4670         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4671         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4672
4673 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4674
4675         * config/s390/s390.c (z10_cost): New cost function for z10.
4676         (s390_handle_arch_option, override_options): Support -march=z10 switch.
4677         (s390_issue_rate): Adjust issue rate for z10.
4678         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4679         (processor_flags): Add PF_Z10.
4680         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4681         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4682         * gcc/config.gcc: Add z10.
4683
4684 2008-05-28  Richard Guenther  <rguenther@suse.de>
4685
4686         PR tree-optimization/36291
4687         * tree-flow. h (struct gimple_df): Remove var_anns member.
4688         * tree-flow-inline.h (gimple_var_anns): Remove.
4689         (var_ann): Simplify.
4690         * tree-dfa.c (create_var_ann): Simplify.
4691         (remove_referenced_var): Clear alias info from var_anns of globals.
4692         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4693         (delete_tree_ssa): Clear alias info from var_anns of globals.
4694         Do not free var_anns.
4695         (var_ann_eq): Remove.
4696         (var_ann_hash): Likewise.
4697
4698 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4699
4700         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4701         and loongson2f entries.
4702         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4703         * config/mips/mips.h (processor_type): Add Loongson-2E
4704         and Loongson-2F entries.
4705         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4706         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4707         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4708         * doc/invoke.texi (MIPS Options): Document loongson2e
4709         and loongson2f processor names.
4710
4711 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         PR target/35767
4714         PR target/35771
4715         * config/i386/i386.c (ix86_function_arg_boundary): Use
4716         alignment of canonical type.
4717         (ix86_expand_vector_move): Check unaligned memory access for
4718         all SSE modes.
4719
4720 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4721
4722         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4723         Moved to the front of file.
4724
4725 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
4726             H.J. Lu  <hongjiu.lu@intel.com>
4727
4728         * dwarf2out.c (current_fde): New.
4729         (add_cfi): Use it.
4730         (lookup_cfa:): Likewise.
4731         (dwarf2out_end_epilogue): Likewise.
4732         (dwarf2out_note_section_used): Likewise.
4733
4734 2008-05-27  Michael Matz  <matz@suse.de>
4735
4736         PR c++/27975
4737         * c.opt (Wenum-compare): New warning option.
4738         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
4739
4740 2008-05-27  Michael Matz  <matz@suse.de>
4741
4742         PR middle-end/36326
4743         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4744         non-BLKmode types.
4745         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4746         into memory as tail calls.
4747
4748 2008-05-27  Richard Guenther  <rguenther@suse.de>
4749
4750         PR tree-optimization/36339
4751         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4752         pointers cause all addressable variables to be call clobbered.
4753
4754 2008-05-27  Richard Guenther  <rguenther@suse.de>
4755
4756         PR tree-optimization/36245
4757         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4758
4759 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4760
4761         * config/s390/s390.md: Replace all occurences of the 'm'
4762         constraint with 'RT'.
4763
4764 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4765
4766         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4767         definitions added.
4768         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4769         "*movdi_64".
4770         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4771         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4772         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4773
4774 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4775
4776         * reload.c: (find_reloads): Skip alternatives according to the
4777         "enabled" attribute. Constify the constraint variable.
4778         * recog.c (get_attr_enabled): Add default implementation.
4779         (extract_insn): Set the alternative_enabled_p array
4780         in the recog_data struct.
4781         (preprocess_constraints, constrain_operands): Skip
4782         alternatives according to the "enabled" attribute
4783         * recog.h (struct recog_data): New field alternative_enabled_p.
4784         (skip_alternative): New inline function.
4785         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4786         (record_reg_classes): Skip alternative according to the
4787         "enabled" attribute.
4788
4789         * doc/md.texi: Add documention for the "enabled" attribute.
4790
4791 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4792
4793         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4794         * postreload.c (reload_cse_simplify_operands): Replace 'm'
4795         constraint with TARGET_MEM_CONSTRAINT.
4796         * recog.c (asm_operand_ok, preprocess_constraints,
4797         constrain_operands): Likewise.
4798         * regclass.c (record_reg_classes): Likewise.
4799         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4800         * reload1.c (maybe_fix_stack_asms): Likewise.
4801         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4802         * recog.h: Adjust comment.
4803         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4804         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4805         * doc/md.texi: Add a note to description of 'm' constraint.
4806         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4807
4808 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4809
4810         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4811         that the bitfield is of integral type before testing its precision.
4812
4813 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4814             Sa Liu  <saliu@de.ibm.com> 
4815
4816         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
4817         __modti3, __udivti3, __umodti3 and __udivmodti4.
4818         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4819         that implement TImode mul and div functions.
4820         * config/spu/multi3.c: New. Implement __multi3.
4821         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4822         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4823         functions on SPU.
4824
4825 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
4826
4827         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4828         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4829         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4830         tls_sysv_suffix): New mode and mode attribute iterators.
4831         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4832         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4833         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4834         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4835         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4836         iterators.
4837
4838 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4839
4840         PR tree-optimization/36329
4841         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4842         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4843         * cgraphbuild.c (initialize_inline_failed): Use the latter
4844         macro in lieu of the former.
4845         * ipa-inline.c (cgraph_mark_inline): Likewise.
4846         (cgraph_decide_inlining_of_small_function): Likewise.
4847         (cgraph_decide_inlining): Likewise.
4848         (cgraph_decide_inlining_incrementally): Likewise.
4849
4850 2008-05-26  Tristan Gingold  <gingold@adacore.com>
4851             Anatoly Sokolov  <aesok@post.ru>
4852
4853         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4854         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4855         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
4856         optimization for 'avr6' architecture.
4857
4858 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
4859
4860         PR target/34932
4861         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4862
4863 2008-05-26  Richard Guenther  <rguenther@suse.de>
4864
4865         * tree-ssa-sccvn.c (expr_has_constants): Declare.
4866         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4867
4868 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4869
4870         PR middle-end/36253
4871         * caller-save.c (insert_restore): Verify alignment of spill space.
4872         (insert_save): Likewise.
4873         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4874         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4875         (STACK_SLOT_ALIGNMENT): Likewise.
4876         * function.c (LOCAL_ALIGNMENT): Removed.
4877         (get_stack_local_alignment): New.
4878         (assign_stack_local): Use it.  Set alignment on stack slot.
4879         (assign_stack_temp_for_type): Use get_stack_local_alignment.
4880         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4881         (STACK_SLOT_ALIGNMENT): New.
4882         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4883         stack slot in XFmode.
4884
4885         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4886
4887 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
4888
4889         PR/36321
4890         * config/i386/i386.md (allocate_stack_worker_64): Make sure
4891         argument operand in rax isn't removed.
4892
4893 2008-05-26  Richard Guenther  <rguenther@suse.de>
4894
4895         PR middle-end/36300
4896         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4897         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
4898
4899 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4900
4901         PR bootstrap/36331
4902         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4903
4904 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
4905
4906         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4907         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4908
4909 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4910
4911         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4912         build a trampoline if we don't want one.
4913         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4914         return zero for nested functions if we don't want a trampoline.
4915
4916 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4917
4918         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4919
4920 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4921
4922         PR fortran/18428
4923         * c.opt: Removed undocumented option '-lang-fortran'.
4924         * c-common.h: Removed global variable 'lang_fortran'.
4925         * c-opts.c (c_common_handle_option): Removed code to handle
4926         option '-lang-fortran'. Updated includes.
4927         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4928         definition of '__GFORTRAN__'.
4929         (define__GNUC__): Reimplemented to use BASEVER and
4930         cpp_define_formatted.
4931         (builtin_define_with_value_n): Removed.
4932         * c-incpath.h: Renamed to ...
4933         * incpath.h: ... this.
4934         * c-incpath.c: Renamed to ...
4935         * incpath.c: ... this. Updated includes.
4936         * fix-header.c: Updated includes.
4937         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4938         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4939         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4940
4941 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4942
4943         * tree.h: Update the table of flags used on tree nodes.
4944         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4945         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4946         (FORCED_LABEL): Add access check.
4947         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4948         (ASM_INPUT_P): Likewise.
4949         (ASM_VOLATILE_P): Likewise.
4950         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4951         (OMP_SECTION_LAST): Access private_flag directly.
4952         (OMP_RETURN_NOWAIT): Likewise.
4953         (OMP_PARALLEL_COMBINED): Likewise.
4954         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4955         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4956         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4957         deprecated_flag directly.
4958
4959 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4960
4961         * final.c (frame_pointer_needed): Removed.
4962         * flags.h (frame_pointer_needed): Likewise.
4963
4964         * function.h (rtl_data): Add frame_pointer_needed.
4965         (frame_pointer_needed): New.
4966
4967 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
4968
4969         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4970
4971 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
4972
4973         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4974         SRC is a REG.
4975
4976 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
4977
4978         * c-common.c (strip_array_types): Move function to..
4979         * tree.c: ..here.
4980         (get_inner_array_type): Delete.
4981         * c-common.h (strip_array_types): Move declaration to..
4982         * tree.h: ..here.
4983         (get_inner_array_type): Delete.
4984         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4985         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4986         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4987         * config/pa/pa.c (emit_move_sequence): Likewise.
4988
4989 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4990
4991         * config/i386/i386.md (*sse_prologue_save_insn): Set length
4992         attribute to 34.
4993
4994 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
4995
4996         * function.c: Include target hook for nonlocal_goto frame value.
4997
4998 2008-05-24  Richard Guenther  <rguenther@suse.de>
4999
5000         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5001         variable can be only accessed through a pointer or a union.
5002
5003 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5004
5005         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5006         * doc/extend.texi: Likewise.
5007
5008 2008-05-23  DJ Delorie  <dj@redhat.com>
5009
5010         * config/m32c/jump.md (untyped_call): Add.
5011
5012         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5013         for A24 to PSImode.
5014         (m32c_address_cost): Detail costs for indirect offsets.
5015
5016 2008-05-23  Rafael Espindola  <espindola@google.com>
5017
5018         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5019         if a node is a SUBREG.
5020         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5021         is a SUBREG.
5022
5023 2008-05-23  Paul Brook  <paul@codesourcery.com>
5024             Carlos O'Donell  <carlos@codesourcery.com>
5025
5026         * doc/extend.texi: Clarify use of __attribute__((naked)).
5027         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5028         * target.h (gcc_target): Add allocate_stack_slots_for_args.
5029         * function.c (use_register_for_decl): Use
5030         targetm.calls.allocate_stack_slots_for_args.
5031         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5032         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5033         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5034
5035 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5036
5037         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5038
5039 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
5040
5041         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5042         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5043         is only rounded once.
5044
5045 2008-05-23  Richard Guenther  <rguenther@suse.de>
5046
5047         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5048
5049 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
5050             Jakub Jelinek  <jakub@redhat.com>
5051
5052         PR target/36079
5053         * configure.ac: Handle --enable-cld.
5054         * configure: Regenerated.
5055         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5056         * config/i386/i386.h (struct machine_function): Add needs_cld field.
5057         (ix86_current_function_needs_cld): New define.
5058         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5059         (cld): New isns pattern.
5060         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5061         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5062         * config/i386/i386.opt (mcld): New option.
5063         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5064         TARGET_CLD and ix86_current_function_needs_cld.
5065         (override_options): Use -mcld by default for 32-bit code if
5066         USE_IX86_CLD.
5067
5068         * doc/install.texi (Options specification): Document --enable-cld.
5069         * doc/invoke.texi (Machine Dependent Options)
5070         [i386 and x86-64 Options]: Add -mcld option.
5071         (Intel 386 and AMD x86-64 Options): Document -mcld option.
5072
5073 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
5074         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5075         (return_in_memory_64): Likewise.
5076         (return_in_memory_ms_64): Likewise.
5077
5078 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5079
5080         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5081         * builtins.c (fold_builtin_fpclassify): New.
5082         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5083         * builtins.def (BUILT_IN_FPCLASSIFY): New.
5084         * c-common.c (handle_type_generic_attribute): Adjust to accept
5085         fixed arguments before an elipsis.
5086         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5087         * doc/extend.texi: Document __builtin_fpclassify.
5088
5089 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
5090
5091         * omp-low.c (gate_expand_omp_ssa): Remove.
5092         (pass_expand_omp_ssa): Remove.
5093         (gate_expand_omp): Do not check for flag_openmp_ssa.
5094         * common.opt (-fopenmp-ssa): Remove.
5095         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5096
5097 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5098
5099         * config/sh/sh.opt (mfixed-range): New option.
5100         * config/sh/sh-protos.h (sh_fix_range): Declare.
5101         * config/sh/sh.c (sh_fix_range): New function.
5102         * config/sh/sh.h (sh_fixed_range_str): Declare.
5103         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5104         is not empty.
5105         * doc/invoke.texi (SH Options): Document -mfixed-range.
5106
5107 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
5108
5109         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5110         it before the redeclaration.
5111
5112 2008-05-22  Anatoly Sokolov <aesok@post.ru>
5113
5114         * config/avr/avr.c (get_sequence_length): Add new function.
5115         (expand_prologue, expand_epilogue): Remove duplicate code.
5116
5117 2008-05-22  Rafael Espindola  <espindola@google.com>
5118
5119         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5120         sharing.
5121
5122 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5123
5124         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5125         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5126
5127         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5128         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5129         (vect_update_misalignment_for_peel): Likewise.
5130         (vector_alignment_reachable_p): Likewise.
5131         * tree-vect-transform.c (vectorizable_load): Likewise.
5132         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5133         (get_vectype_for_scalar_type): Pass mode of scalar_type
5134         to UNITS_PER_SIMD_WORD.
5135
5136         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5137         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5138         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5139         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5140         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5141
5142 2008-05-22  Ira Rosen  <irar@il.ibm.com>
5143
5144         PR tree-optimization/36293
5145         * tree-vect-transform.c (vect_transform_strided_load): Don't check
5146         if the first load must be skipped because of a gap.
5147
5148 2008-05-22  Richard Guenther  <rguenther@suse.de>
5149
5150         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
5151         more cases of offset disambiguation that is possible if
5152         strict-aliasing rules apply.
5153         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
5154         for basic offset and type-based disambiguation.
5155
5156 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5157
5158         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
5159         ix86_expand_vector_set on V16QImode for SSE4.1.
5160
5161 2008-05-21  Tom Tromey  <tromey@redhat.com>
5162
5163         * c.opt (Wimport): Mark as undocumented.
5164         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
5165         -Wno-import.
5166         (Warning Options): Likewise.
5167         * doc/cppopts.texi: Don't mention -Wimport.
5168
5169 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
5170
5171         PR tree-optimization/36287
5172         PR tree-optimization/36286
5173         * lambda-code.c (build_access_matrix): Do not use the loop->num
5174         for computing the number of induction variables: use the loop depth
5175         instead.
5176
5177 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
5178
5179         PR/36280
5180         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5181         option -f(no-)leading-underscore.
5182
5183 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5184
5185         * config/i386/i386.c (ix86_expand_vector_init_general): Use
5186         GET_MODE_NUNITS (mode).
5187
5188 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
5189
5190         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5191         (-mmulhw): Add 464 to description.
5192         (-mdlmzb): Likewise.
5193         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5194         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5195         464fp entries.
5196         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5197         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5198         * config/rs6000/rs6000.md: Update comments for 464.
5199
5200 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
5201
5202         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5203
5204 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5205
5206         * config/i386/sse.md (vec_extractv4sf): Removed.
5207         (vec_extractv2df): Likewise.
5208         (vec_extractv2di): Likewise.
5209         (vec_extractv4si): Likewise.
5210         (vec_extractv8hi): Likewise.
5211         (vec_extractv16qi): Likewise.
5212         (vec_extract<mode>): New.
5213
5214 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5215
5216         * config/i386/sse.md (vec_setv4sf): Removed.
5217         (vec_setv2df): Likewise.
5218         (vec_setv2di): Likewise.
5219         (vec_setv4si): Likewise.
5220         (vec_setv8hi): Likewise.
5221         (vec_setv16qi): Likewise.
5222         (vec_set<mode>): New.
5223
5224 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5225
5226         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5227         goto for vec_concat and vec_interleave.
5228
5229 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5230
5231         * config/i386/sse.md (vec_initv4sf): Removed.
5232         (vec_initv2df): Likewise.
5233         (vec_initv2di): Likewise.
5234         (vec_initv4si): Likewise.
5235         (vec_initv8hi): Likewise.
5236         (vec_initv16qi): Likewise.
5237         (vec_init<mode>): New.
5238
5239 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
5240
5241         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5242
5243 2008-05-21  Tom Tromey  <tromey@redhat.com>
5244
5245         * ggc-zone.c (lookup_page_table_if_allocated): New function.
5246         (zone_find_object_offset): Likewise.
5247         (gt_ggc_m_S): Likewise.
5248         (highest_bit): Likewise.
5249         * ggc-page.c (gt_ggc_m_S): New function.
5250         * stringpool.c (string_stack): Remove.
5251         (init_stringpool): Update.
5252         (ggc_alloc_string): Use ggc_alloc.
5253         (maybe_delete_ident): New function.
5254         (ggc_purge_stringpool): Likewise.
5255         (gt_ggc_m_S): Remove.
5256         * ggc-common.c (ggc_protect_identifiers): New global.
5257         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
5258         ggc_protect_identifiers.
5259         * ggc.h (ggc_protect_identifiers): Declare.
5260         (gt_ggc_m_S): Update.
5261         (ggc_purge_stringpool): Declare.
5262         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5263         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5264         special case.
5265         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5266
5267 2008-05-21  David S. Miller  <davem@davemloft.net>
5268
5269         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5270         tmake_file.
5271
5272 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5273
5274         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5275         once finished.
5276
5277 2008-05-20  David Daney  <ddaney@avtrex.com>
5278
5279         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5280         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5281         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5282         UNSPEC_UPDATE_GOT_VERSION): Renumber.
5283         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5284         (atomic_hiqi_op): New define_code_iterator.
5285         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5286         mips_expand_compare_and_swap_12.
5287         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5288         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
5289         (sync_<optab><mode>, sync_old_<optab><mode>,
5290         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5291         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5292         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5293         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5294         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5295         (test_and_set_12): New insn.
5296         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5297         sync_new_<optab><mode>, sync_old_nand<mode>,
5298         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
5299         clobber to operand 0 for SI and DI mode insns.
5300         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5301         mips_gen_fn_4): New typedefs.
5302         (mips_gen_fn_ptrs): Define new union type.
5303         (mips_expand_compare_and_swap_12): Remove declaration.
5304         (mips_expand_atomic_qihi): Declare function.
5305         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5306         (mips_expand_atomic_qihi): ... this.  Use new generator function
5307         parameter.
5308         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5309         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5310         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5311         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5312         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5313         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5314         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5315         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5316         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5317         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5318         New macros.
5319
5320 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5321
5322         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5323         the missing break.
5324
5325 2008-05-20  Anatoly Sokolov <aesok@post.ru>
5326
5327         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5328         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5329         (avr_attribute_table): Add 'OS_main' function attribute.
5330         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5331         functions with 'OS_main' attribute.
5332
5333 2008-05-20  Richard Guenther  <rguenther@suse.de>
5334
5335         PR tree-optimization/35204
5336         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5337         helper, split out from ...
5338         (DFS): ... here.  Make the DFS walk non-recursive.
5339
5340 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
5341             Jan Sjodin  <jan.sjodin@amd.com>
5342
5343         PR tree-optimization/36181
5344         * tree-parloops.c (loop_has_vector_phi_nodes): New.
5345         (parallelize_loops): Don't parallelize when the loop has vector
5346         phi nodes.
5347
5348 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5349             Sebastian Pop  <sebastian.pop@amd.com>
5350
5351         * tree-loop-linear.c (gather_interchange_stats): Look in the access
5352         matrix, and never look at the tree representation of the memory
5353         accesses.
5354         (linear_transform_loops): Computes parameters and access matrices.
5355         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5356         when fails.
5357         (access_matrix_get_index_for_parameter): New.
5358         * tree-data-ref.h (struct access_matrix): New.
5359         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5360         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5361         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5362         am_vector_index_for_loop): New.
5363         (struct data_reference): Add field access_matrix.
5364         (DR_ACCESS_MATRIX): New.
5365         (compute_data_dependences_for_loop): Update declaration.
5366         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5367         * lambda.h (lambda_vector_vec_p): Declared.
5368         * lambda-code.c: Depend on pointer-set.h.
5369         (lambda_collect_parameters_from_af, lambda_collect_parameters,
5370         av_for_af_base, av_for_af, build_access_matrix,
5371         lambda_compute_access_matrices): New.
5372         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5373
5374 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
5375
5376         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5377         $SOURCEDIR/include.
5378
5379 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5380             Sebastian Pop  <sebastian.pop@amd.com>
5381
5382         PR tree-optimization/36206
5383         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5384         FOLD_CONVERSIONS.
5385         (instantiate_scev_1): Rename flags to fold_conversions.
5386         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5387         outeside instantiation_loop.
5388         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5389         (evolution_function_is_affine_or_constant_p): Removed.
5390         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5391         instantiate_scev.
5392         (analyze_siv_subscript): Pass in the loop nest number.
5393         Call evolution_function_is_affine_in_loop instead of 
5394         evolution_function_is_affine_p.
5395         (analyze_overlapping_iterations): Pass in the loop nest number.
5396
5397 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5398             Sebastian Pop  <sebastian.pop@amd.com>
5399
5400         PR tree-optimization/36206
5401         * tree-chrec.h (chrec_fold_op): New.
5402         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5403         and other trees.
5404
5405 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
5406
5407         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5408         (DIRS_EQ): New.
5409         (remove_duplicates): Do not set inode on non-inode systems.
5410         Use DIRS_EQ.
5411
5412 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5413
5414         * config.gcc (tm_file): Update comments about relative pathnames.
5415
5416 2008-05-20  Richard Guenther  <rguenther@suse.de>
5417
5418         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5419         * tree-ssa-sccvn.c (process_scc): Likewise.
5420         * tree-ssa-sink.c (execute_sink_code): Likewise.
5421         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5422         * tree-vrp.c (process_assert_insertions): Likewise.
5423         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5424         (perform_tree_ssa_dce): Likewise.
5425         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5426         (dump_dominator_optimization_stats): Likewise.
5427         * tree-vectorizer.c (vectorize_loops): Likewise.
5428
5429 2008-05-20  Richard Guenther  <rguenther@suse.de>
5430
5431         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5432
5433 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
5434
5435         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5436         (ix86_i386elf_return_in_memory): Likewise.
5437         (ix86_i386interix_return_in_memory): Likewise.
5438         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5439         (SUBTARGET_RETURN_IN_MEMORY): New.
5440         * config/i386/i386elf.h: Likewise.
5441         * config/i386/ptx4-i.h: Likewise.
5442         * config/i386/sol2-10.h: Likewise.
5443         * config/i386/sysv4.h: Likewise.
5444         * config/i386/vx-common.h: Likewise.
5445         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5446         * config/i386/i386.c (ix86_return_in_memory): Made static and
5447         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5448         (ix86_i386elf_return_in_memory): Removed.
5449         (ix86_i386interix_return_in_memory): Removed.
5450         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5451         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5452
5453 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
5454
5455         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5456
5457 2008-05-19  Xinliang David Li  <davidxl@google.com>
5458
5459         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
5460         * opts.c: Ditto.
5461         * common.opt: Ditto.
5462         * doc/invoke.texi: Ditto.
5463
5464 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5465
5466         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5467         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5468
5469 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5470
5471         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5472         sizes of operand array from 8/4 to 4/2.
5473         (ix86_expand_vector_init_general): Change size of operand array
5474         from 32 to 16.  Remove op0, op1 and half_mode.
5475
5476 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5477
5478         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5479         (ix86_expand_vector_init_interleave): Likewise.
5480         (ix86_expand_vector_init_general): Use them.  Assert
5481         word_mode == SImode when n_words == 4.
5482
5483 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
5484
5485         * config/i386/i386.c (ix86_secondary_reload): New static function.
5486         (TARGET_SECONDARY_RELOAD): New define.
5487         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5488         * config/i386/i386.md (reload_outqi): Remove.
5489
5490 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5491
5492         PR middle-end/35509
5493         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5494         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
5495         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5496         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5497         (fold_builtin_1): Likewise.
5498         * builtins.def (BUILT_IN_ISINF_SIGN): New.
5499         c-common.c (check_builtin_function_arguments): Handle
5500         BUILT_IN_ISINF_SIGN.
5501         * doc/extend.texi: Document __builtin_isinf_sign.
5502         * fold-const.c (operand_equal_p): Handle COND_EXPR.
5503
5504 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
5505
5506         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5507         EH cleanup at the end of the pass, search for those that have been
5508         turned into forwarder blocks and do the cleanup on their successor.
5509
5510 2008-05-18  Richard Guenther  <rguenther@suse.de>
5511
5512         * tree-cfg.c (verify_gimple_expr): Allow conversions from
5513         pointers to sizetype and vice versa.
5514
5515 2008-05-18 Xinliang David Li   <davidxl@google.com>
5516
5517         * gcc/tree-ssa-dce.c: Coding style fix.
5518         (check_pow): Documentation comment. 
5519         (check_log): Documenation comment. Coding style fix.
5520         (is_unnecessary_except_errno_call): Ditto.
5521         (gen_conditions_for_pow): Ditto.
5522         (gen_conditions_for_log): Ditto.
5523         (gen_shrink_wrap_conditions): Ditto.
5524         (shrink_wrap_one_built_in_calls): Ditto.
5525         * gcc/doc/invoke.texi: Better documentation string.
5526         * ChangeLog: Fix wrong change log entries from 
5527         May 17 checkin on function call DCE.
5528
5529 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5530
5531         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5532
5533 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
5534
5535         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5536         * df-problems.c (simulation routines): Fixed block comment to
5537         properly say how to add forwards scanning functions.
5538         
5539 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5540
5541         * tree-inline.c (setup_one_parameter): Remove dead code.
5542
5543 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5544
5545         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5546         a BIT_AND_EXPR only for an INTEGER_TYPE.
5547
5548 2008-05-17 Xinliang David Li   <davidxl@google.com>
5549
5550         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5551         (check_pow, check_log, is_unnecessary_except_errno_call): New 
5552         functions to check for eliminating math functions that are pure 
5553         except for setting errno.
5554         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5555         general condition expressions for shrink-wrapping pow/log calls.
5556         (gen_shrink_wrap_conditions): Ditto.
5557         (shrink_wrap_one_built_in_call): Ditto.
5558         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5559         (mark_operand_necessary): If debugging, output if OP is necessary.
5560         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5561         unnecessary.
5562         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5563         opt level >= 2.
5564         * gcc/common.opt: New user flag -ftree-builtin-dce.
5565         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5566
5567 2008-05-16  David S. Miller  <davem@davemloft.net>
5568
5569         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5570         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5571
5572 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
5573
5574         PR target/36246
5575         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5576
5577 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5578
5579         * ifcvt.c (dead_or_predicable): Rename
5580         df_simulate_one_insn_backwards to df_simulate_one_insn.
5581         * recog.c (peephole2_optimize): Ditto.
5582         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5583         Ditto.
5584         * df.h: Rename df_simulate_one_insn_backwards to
5585         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
5586         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5587         scanning of defs and uses.
5588         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5589         (df_simulate_one_insn_forwards): Removed.
5590
5591 2008-05-16  Doug Kwan  <dougkwan@google.com>
5592
5593         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5594         QNaN & SNaN.
5595         (real_from_string): Handle NaNs and Inf as approriate.
5596
5597 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5598
5599         * doc/gty.texi (Source Files Containing Type Information): Note
5600         that headers should appear first in the gtfiles list.
5601
5602 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5603
5604         * tree.def (COND_EXEC): Properly documented this code.
5605
5606 2008-05-16  Diego Novillo  <dnovillo@google.com>
5607
5608         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5609         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5610         the new field.
5611
5612 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5613
5614         * tree-ssa-dse (max_stmt_uid): Removed.
5615         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
5616         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5617         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5618         * function.h (cfun.last_stmt_uid): New field.
5619         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5620         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5621         New functions.
5622         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5623         (create_stmt_ann): Initialize the ann->uid field.
5624         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5625         with new calls.
5626         * tree-flow.h (renumber_gimple_stmt_uids): New function.
5627
5628 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5629
5630         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5631         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5632         (init_empty_tree_cfg): Call it.
5633
5634 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5635
5636         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
5637         Update all users.
5638
5639 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5640
5641         * doc/invoke.text (-fdump-tree-*-verbose): New option.
5642         * tree-dump.c (dump_options): New verbose option.
5643         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5644         Add verbose dump.
5645         * tree-pass.h (TDF_VERBOSE): New dump flag.
5646         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5647         (tree-flow.h): Added include.
5648         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
5649
5650 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
5651
5652         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5653
5654         From Jie Zhang  <jie.zhang@analog.com>
5655         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5656         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5657         mcpu=bf561-none and mcpu=bf561-0.2.
5658         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5659         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5660         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5661         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5662         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5663         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5664         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
5665         option.
5666         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5667         (cputype_selected): Remove.
5668         (bfin_handle_option): Don't use cputype_selected.
5669         (override_options): When no mcpu option, enable all workarounds.
5670         Don't use bfin_workarounds.
5671         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5672         processor type.
5673         (DEFAULT_CPU_TYPE): Don't define.
5674
5675 2008-05-16  Richard Guenther  <rguenther@suse.de>
5676
5677         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5678         on deletion of the last stmt.
5679
5680 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5681
5682         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5683         V8HImode for SSE2 and V16QImode for SSE4.1.
5684
5685 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
5686
5687         * cgraph.h (compute_inline_parameters): Made public.
5688         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5689         variable_generate_summary, function_write_summary,
5690         variable_write_summary, variable_read_summary.  Added generate_summary,
5691         write_summary, read_summary.
5692         * cgraphunit.c (cgraph_process_new_functions): Changed call from
5693         pass_ipa_inline.function_generate_summary, to
5694         compute_inline_parameters. 
5695         * ipa-inline.c (compute_inline_parameters): Made public and added
5696         node parameter.
5697         (compute_inline_parameters_for_current): New function.
5698         (pass_inline_param): Now calls compute_inline_parameters_for_current.
5699         (inline_generate_summary): Removed parameter and made to loop over
5700         all cgraph nodes.
5701         (pass_ipa_inline): Updated for new IPA_PASS structure.
5702         * passes.c (execute_ipa_summary_passes): Now is called once per
5703         pass rather than once per node*pass.
5704         
5705 2008-05-15  Anatoly Sokolov <aesok@post.ru>
5706
5707         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
5708         avr_have_mul_p, avr_asm_only_p): Remove variables.
5709         (avr_override_options): Remove initialization of removed variables.
5710         (avr_file_start):  Convert removed variables to fields of 
5711         'struct base_arch_s *avr_current_arch'. 
5712         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5713         (AVR_HAVE_MUL): (Ditto.).
5714         (AVR_HAVE_MOVW): (Ditto.).
5715         (AVR_HAVE_LPMX): (Ditto.). 
5716         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
5717         avr_asm_only_p): Remove declaration.
5718
5719 2008-05-15  Diego Novillo  <dnovillo@google.com>
5720
5721         * config/arm/arm.c (arm_return_in_memory): Fix return type.
5722         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5723
5724 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
5725
5726         PR middle-end/36194
5727         * combine.c (check_conversion): Rename back to check_promoted_subreg.
5728         Don't call record_truncated_value from here.
5729         (record_truncated_value): Turn it into a for_each_rtx callback.
5730         (record_truncated_values): New function.
5731         (combine_instructions): Call note_uses with record_truncated_values.
5732         Change name of check_conversion to check_promoted_subreg. 
5733
5734 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5735
5736         * doc/sourcebuild.texi: Document support for torture tests.
5737
5738 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5739
5740         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5741         to alternative 4 of operand 2.
5742
5743 2008-05-15  Richard Guenther  <rguenther@suse.de>
5744
5745         * tree-pass.h (current_pass): Declare.
5746         (get_pass_for_id): Likewise.
5747         * passes.c (passes_by_id, passes_by_id_size): New globals.
5748         (set_pass_for_id): New function.
5749         (get_pass_for_id): Likewise.
5750         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5751         (execute_function_todo): Flush per function statistics.
5752         * toplev.c (compile_file): Init statistics.
5753         (general_init): Do early statistics initialization.
5754         (finalize): Finish statistics.
5755         * statistics.h (statistics_early_init): Declare.
5756         (statistics_init): Likewise.
5757         (statistics_fini): Likewise.
5758         (statistics_fini_pass): Likewise.
5759         (statistics_counter_event): Likewise.
5760         (statistics_histogram_event): Likewise.
5761         * statistics.c: New file.
5762         * Makefile.in (OBJS-common): Add statistics.o.
5763         (statistics.o): Add dependencies.
5764         * doc/invoke.texi (-fdump-statistics): Document.
5765
5766         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5767         (insert): Likewise.
5768         (execute_pre): Use statistics_counter_event.
5769         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5770         (substitute_and_fold): Increment it.  Use statistics_counter_event.
5771
5772 2008-05-15  Diego Novillo  <dnovillo@google.com>
5773
5774         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5775
5776         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5777         * tree-ssa-alias.c (new_type_alias): Remove references to
5778         sub-variables from comment.
5779         * tree-ssa-operands.c (swap_tree_operands): Likewise.
5780
5781 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5782
5783         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5784         attribute to 1 only for insertps alternative.
5785
5786 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5787
5788         * config/bfin/bfin.md (loadbytes): New pattern.
5789         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5790         (bfin_init_builtins): Initialize it.
5791         (bdesc_1arg): Add it.
5792
5793 2008-05-15  Sa Liu  <saliu@de.ibm.com>
5794
5795         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5796         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5797         * testsuite/lib/target-supports.exp: Add
5798         check_effective_target_fortran_integer_16.
5799
5800 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5801
5802         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5803         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5804         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
5805         (TARGET_RETURN_IN_MEMORY): Define.
5806
5807 2008-05-15  Richard Guenther  <rguenther@suse.de>
5808
5809         PR middle-end/36244
5810         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5811         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5812         represent unmodifiable vars.
5813
5814 2008-05-15  Richard Guenther  <rguenther@suse.de>
5815
5816         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5817         INDIRECT_REF and TARGET_MEM_REF.
5818         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5819         TARGET_MEM_REF.
5820
5821 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5822             H.J. Lu  <hongjiu.lu@intel.com>
5823
5824         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5825         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5826         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
5827         insn alternatives.  Add missing alternatives.
5828         (*vec_concatv2di_rex64_sse4_1): Likewise.
5829         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5830         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5831         Require TARGET_SSE.
5832
5833 2008-05-15  Richard Guenther  <rguenther@suse.de>
5834
5835         PR tree-optimization/36009
5836         PR tree-optimization/36204
5837         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5838         (determine_invariantness_stmt): Record the loop a store is
5839         always executed in.
5840         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5841         dependency.
5842
5843 2008-05-15  Richard Guenther  <rguenther@suse.de>
5844
5845         PR tree-optimization/34330
5846         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5847         through the pointer will alias the SMT.
5848
5849 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
5850
5851         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5852
5853 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5854
5855         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5856
5857 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5858             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5859
5860         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5861         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5862         (vashl_optab): New optab for vector/vector shifts.
5863         (vashr_optab): Ditto.
5864         (vlshr_optab): Ditto.
5865         (vrotl_optab): Ditto.
5866         (vrotr_optab): Ditto.
5867         (optab_subtype): New enum for optab_for_tree_code call.
5868         (optab_for_tree_code): Add enum optab_subtype argument.
5869
5870         * optabs.c (optab_for_tree_code): Take an additional argument to
5871         distinguish between a vector shift by a scalar and vector shift by
5872         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
5873         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
5874         vector shift by a vector.
5875         (expand_widen_pattern_expr): Pass additional argument to
5876         optab_for_tree_code.
5877
5878         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5879         vrotl_optab, vrotr_optab.
5880
5881         * expr.c (expand_expr_real_1): Update calls to
5882         optab_for_tree_code to distinguish between vector shifted by a
5883         scalar and vector shifted by a vector.
5884         * tree-vectorizer.c (supportable_widening_operation): Ditto.
5885         (supportable_narrowing_operation): Ditto.
5886         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5887         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5888         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5889         (vect_create_epilog_for_reduction): Ditto.
5890         (vectorizable_reduction): Ditto.
5891         (vectorizable_operation): Ditto.
5892         (vect_strided_store_supported): Ditto.
5893         (vect_strided_load_supported): Ditto.
5894         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5895         * expmed.c (expand_shift): Ditto.
5896
5897         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5898         scalar type.
5899         (ashr@var{m}3): Ditto.
5900         (vashl@var{m}3): Document new vector/vector shift standard name.
5901         (vashr@var{m}3): Ditto.
5902         (vlshr@var{m}3): Ditto.
5903         (vrotl@var{m}3): Ditto.
5904         (vrotr@var{m}3): Ditto.
5905
5906         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5907         (PPERM_INVERT): Ditto.
5908         (PPERM_REVERSE): Ditto.
5909         (PPERM_REV_INV): Ditto.
5910         (PPERM_ZERO): Ditto.
5911         (PPERM_ONES): Ditto.
5912         (PPERM_SIGN): Ditto.
5913         (PPERM_INV_SIGN): Ditto.
5914         (PPERM_SRC1): Ditto.
5915         (PPERM_SRC2): Ditto.
5916
5917         * config/i386/sse.md (mulv2di3): Add SSE5 support.
5918         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5919         allows a memory operand to be the value being added, and split it
5920         to improve vectorization.
5921         (sse5_pmacsdqh_mem): Ditto.
5922         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5923         (sse5_mulv2div2di3_high): Ditto.
5924         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5925         (vec_pack_trunc_v4si): Ditto.
5926         (vec_pack_trunc_v2di): Ditto.
5927         (sse5_pcmov_<mode>): Remove code that tried to use use
5928         andps/andnps instead of pcmov.
5929         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5930         pmacsdqh instructions.
5931         (vec_widen_smult_lo_v4si): Ditto.
5932
5933         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5934         (PPERM_INVERT): Ditto.
5935         (PPERM_REVERSE): Ditto.
5936         (PPERM_REV_INV): Ditto.
5937         (PPERM_ZERO): Ditto.
5938         (PPERM_ONES): Ditto.
5939         (PPERM_SIGN): Ditto.
5940         (PPERM_INV_SIGN): Ditto.
5941         (PPERM_SRC1): Ditto.
5942         (PPERM_SRC2): Ditto.
5943         (ix86_expand_sse_movcc): Move the SSE5 test after the if
5944         true/false tests.
5945         (ix86_expand_int_vcond): If SSE5 generate all possible integer
5946         comparisons.
5947         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5948         says ignore whether the last reference is a memory operand.
5949
5950 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5951             Paolo Bonzini <bonzini at gnu dot org>
5952
5953         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5954         shift patterns.
5955
5956         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5957         (vlshr<mode>3): Rename from vlshr<mode>3.
5958         (vashr<mode>3): Rename from vashr<mode>3.
5959         (mulv4sf3): Change the names of vector shift patterns.
5960         (mulv4si3): Ditto.
5961         (negv4sf2): Ditt.
5962
5963         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5964         shift insns.
5965
5966         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5967         (SI_SHLHI): Ditto.
5968         (SI_SHL): Ditto.
5969         (SI_SHLI): Ditto.
5970         (SI_ROTH): Ditto.
5971         (SI_ROTHI): Ditto.
5972         (SI_ROT): Ditto.
5973         (SI_ROTI): Ditto.
5974         (SPU_RL_0): Ditto.
5975         (SPU_RL_1): Ditto.
5976         (SPU_RL_2): Ditto.
5977         (SPU_RL_3): Ditto.
5978         (SPU_RL_4): Ditto.
5979         (SPU_RL_5): Ditto.
5980         (SPU_RL_6): Ditto.
5981         (SPU_RL_7): Ditto.
5982         (SPU_SL_0): Ditto.
5983         (SPU_SL_1): Ditto.
5984         (SPU_SL_2): Ditto.
5985         (SPU_SL_3): Ditto.
5986         (SPU_SL_4): Ditto.
5987         (SPU_SL_5): Ditto.
5988         (SPU_SL_6): Ditto.
5989         (SPU_SL_7): Ditto.
5990
5991         * config/spu/spu.md (v): New iterator macro to add v for vector types.
5992         (floatunssidf2_internal): Change vector/vector shift names.
5993         (floatunsdidf2_internal): Ditto.
5994         (mulv8hi3): Ditto.
5995         (ashrdi3): Ditto.
5996         (ashrti3): Ditto.
5997         (cgt_df): Ditto.
5998         (cgt_v2df): Ditto.
5999         (dftsv): Ditto.
6000         (vashl<mode>3): Rename from ashl<mode>3.
6001         (vashr<mode>3): Rename from ashr<mode>3.
6002         (vlshr<mode>3): Rename from lshr<mode>3.
6003         (vrotl<mode>3): Rename from rotl<mode>3.
6004
6005 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6006
6007         PR target/36224
6008         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6009         multiply gives the wrong value when doing widening multiplies.
6010         (vec_widen_smult_lo_v4si): Ditto.
6011
6012 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
6013
6014         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6015         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6016         emit_library_call_value. 
6017         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6018         * tree.h (ECF_LIBCALL_BLOCK): Removed.
6019         * calls.c (initialize_argument_information, precompute_arguments, 
6020         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6021         (precompute_arguments): Removed flags parameter.
6022         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6023         
6024 2008-05-14  Richard Guenther  <rguenther@suse.de>
6025
6026         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6027         Make sure to register the store if the use is a PHI_NODE.
6028
6029 2008-05-14  Olivier Hainque  <hainque@adacore.com>
6030
6031         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6032         memory if the component is to be referenced in BLKmode according
6033         to get_inner_reference.
6034
6035 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
6036
6037         * calls.c (emit_library_call_value_1): Restore code clearing
6038         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6039
6040 2008-05-14  Olivier Hainque  <hainque@adacore.com>
6041             Nicolas Roche  <roche@adacore.com>
6042
6043         * configure.ac: Add support for a "gcc_subdir" variable in
6044         config-lang.in, to denote a subdirectory where the language/GCC
6045         integration files are to be found.
6046         * configure: Regenerate.
6047
6048 2008-05-14  Ira Rosen  <irar@il.ibm.com>
6049
6050         PR tree-optimization/36098
6051         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6052         value for the first load in the group in case of a gap.
6053         (vect_build_slp_tree): Check that there are no gaps in loads.
6054
6055 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
6056
6057         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6058         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6059         expand_copysign_bit, ): Change call to emit_no_conflict_block to
6060         emit_insn and remove unneeded code to construct extra args.
6061         (emit_no_conflict_block): Removed.
6062         * optabls.h: (emit_no_conflict_block): Removed.
6063         * cse.c (cse_extended_basic_block): Remove search for
6064         REG_NO_CONFLICT note.
6065         * global.c: Removed incorrect comment added in revision 117.
6066         * expr.c (convert_move): Change call to emit_no_conflict_block to
6067         emit_insn.
6068         * recog.c: Change comments so that they do not mention
6069         REG_NO_CONFLICT.
6070         * local_alloc.c (combine_regs): Removed last parameter.
6071         (no_conflict_p): Removed.
6072         (block_alloc): Removed note, no_conflict_combined_regno and set
6073         local vars. Removed all code to process REG_NO_CONFLICT blocks.
6074         (combine_regs): Removed already_dead and code to look for
6075         REG_NO_CONFLICT notes.
6076         * lower_subreg (remove_retval_note): Removed code to look for
6077         REG_NO_CONFLICT block.
6078         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6079         (resolve_clobber): Remove code to process libcalls that have
6080         REG_NO_CONFLICT notes.
6081         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6082         case.
6083         * combine.c (can_combine_p, distribute_notes):  Removed
6084         REG_NO_CONFLICT case.
6085         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6086         to emit_insns.
6087         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6088         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6089         Ditto.
6090         * reg-notes.def (NO_CONFLICT): Removed.
6091
6092 2008-05-14  David S. Miller  <davem@davemloft.net>
6093
6094         * config/sparc/sparc.c (sparc_profile_hook): If
6095         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6096         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6097         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6098
6099 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
6100
6101         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6102
6103 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
6104
6105         PR target/36222
6106         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6107         and op1 expansion before vector concat to have less live pseudos.
6108
6109 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6110
6111         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6112         ix86_expand_vector_set if supported.
6113
6114 2008-05-13  Diego Novillo  <dnovillo@google.com>
6115             Kenneth Zadeck  <zadeck@naturalbridge.com>
6116
6117         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6118
6119         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6120         phinodes_print_statistics, init_ssanames, fini_ssanames,
6121         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6122         release_ssa_name, release_defs, replace_ssa_name_symbol,
6123         ssanames_print_statistics): Move ...
6124         * tree-flow.h: ... here.
6125         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6126         Use FN instead of cfun.
6127         (make_ssa_name_fn): Rename from make_ssa_name.
6128         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6129         * tree-flow-inline.h (make_ssa_name): Move from
6130         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
6131         * omp-low.c (expand_omp_parallel):
6132         * tree-flow-inline.h (redirect_edge_var_map_result):
6133         * tree-ssa.c (init_tree_ssa): Add argument FN.
6134         Use it instead of cfun.  Update all users.
6135
6136 2008-05-13  Tom Tromey  <tromey@redhat.com>
6137
6138         PR preprocessor/22168:
6139         * doc/cpp.texi (Top): Update menu.
6140         (Alternatives to Wrapper #ifndef): New node.
6141         (Other Directives): Document deprecation.
6142         (Obsolete Features): Remove menu.
6143         (Assertions): Merge node into Obsolete Features.
6144         (Obsolete once-only headers): Move earlier; rename to Alternatives
6145         to Wrapper #ifndef.
6146         * doc/cppopts.texi: Update.
6147         * c.opt (Wdeprecated): Enable for C and ObjC.
6148         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
6149         (C++ Dialect Options): Move -Wno-deprecated from here to...
6150         (Warning Options): ... here.
6151
6152 2008-05-13  Richard Guenther  <rguenther@suse.de>
6153
6154         PR middle-end/36227
6155         * fold-const.c (fold_sign_changed_comparison): Do not allow
6156         changes in pointer-ness.
6157
6158 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6159
6160         PR target/24713
6161         * config/sh/sh.c (sh_expand_prologue): Don't clear
6162         RTX_FRAME_RELATED_P for push insns.
6163
6164 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
6165
6166         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
6167
6168 2008-05-12  Anatoly Sokolov <aesok@post.ru>
6169
6170         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
6171         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
6172         Use 'machine->is_leaf' instead of 'leaf_func_p'.
6173
6174 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
6175
6176         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6177         (*vec_concatv4sf_sse): This.
6178         (*sse2_concatv2si): Renamed to ...
6179         (*vec_concatv2si_sse2): This.
6180         (*sse1_concatv2si): Renamed to ...
6181         (*vec_concatv2si_sse): This.
6182         (*vec_concatv2di_rex): Renamed to ...
6183         (*vec_concatv2di_rex64): This.
6184         (*vec_concatv2si_sse4_1): New.
6185         (*vec_concatv2di_rex64_sse4_1): Likewise.
6186
6187 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
6188
6189         PR rtl-optimization/36111
6190         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6191         that was created for swappable operands.
6192
6193 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
6194
6195         PR ada/36001
6196         * Makefile.in: Substitute GNATMAKE and GNATBIND.
6197         * configure.ac: Add call to ACX_PROG_GNAT.
6198
6199 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
6200
6201         * optc-gen.awk: Fix comment typo.
6202
6203 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6204
6205         * pretty-print.c (pp_integer_with_precision): Use
6206         HOST_LONG_LONG_FORMAT.
6207
6208 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
6209
6210         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6211                 
6212 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6213
6214         * config/i386/i386.c (bdesc_ptest): Removed.
6215         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6216         (bdesc_args): Add __builtin_ia32_ptestz128,
6217         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6218         (ix86_init_mmx_sse_builtins): Updated.
6219         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6220         (ix86_expand_builtin): Updated.
6221
6222 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
6223
6224         * tree-cfg.c (valid_fixed_convert_types_p): New function.
6225         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6226
6227 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
6228
6229         * value-prof.c (interesting_stringop_to_profile): Do not
6230         return early for BUILT_IN_MEMPCPY.
6231
6232 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         * calls.c (expand_call): Don't use callgraph to increase
6235         preferred_stack_boundary.
6236
6237         * cgraph.h (cgraph_rtl_info): Use unsigned on
6238         preferred_incoming_stack_boundary.
6239
6240         * final.c (rest_of_clean_state): Use unsigned on
6241         preferred_stack_boundary.
6242
6243 2008-05-09  Tom Tromey  <tromey@redhat.com>
6244
6245         PR preprocessor/22231:
6246         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6247         proceeding.
6248
6249 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
6250
6251         PR tree-optimization/36129
6252         * tree-ssa-ccp.c: Include value-prof.h.
6253         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6254         built-in function was folded to a constant.
6255         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6256
6257 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
6258             Sebastian Pop  <sebastian.pop@amd.com>
6259
6260         * tree-scalar-evolution.c: Document instantiate_scev.
6261         (instantiate_parameters_1): Renamed instantiate_scev_1.
6262         Don't use the same loop for instantiation_loop and evolution_loop.
6263         (instantiate_scev): New.
6264         (instantiate_parameters): Moved...
6265         (resolve_mixers): Update call to instantiate_scev_1 to pass the
6266         same loop twice.  Maintains the semantics for this function.
6267         * tree-scalar-evolution.h (instantiate_scev): Declare.
6268         (instantiate_parameters): ...here.  Now static inline.
6269         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6270         instead of resolve_mixers.
6271
6272 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6273
6274         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6275
6276 2008-05-09  Tomas Bily  <tbily@suse.cz>
6277
6278         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6279         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6280         * tree-ssa-structalias.c (get_constraint_for): Likewise.
6281         * c-common.c (c_common_truthvalue_conversion): Likewise.
6282         * tree-object-size.c (compute_object_offset): Likewise.
6283         * tree-inline.c (estimate_num_insns_1): Likewise.
6284         * varasm.c (const_hash_1, compare_constant, copy_constant)
6285         (compute_reloc_for_constant, output_addressed_constants)
6286         (initializer_constant_valid_p): Likewise.
6287         * c-omp.c (check_omp_for_incr_expr): Likewise.
6288         * gimplify.c (gimplify_expr): Likewise.
6289         * c-typeck.c (c_finish_return): Likewise.
6290         * tree-vectorizer.c (supportable_widening_operation)
6291         (supportable_narrowing_operation): Likewise.
6292         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6293         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6294         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6295         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6296         (descr_info_loc): Likewise.
6297         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6298         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6299         (fold_unary): Likewise.
6300         * builtins.c (get_pointer_alignment): Likewise.
6301         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6302         (instantiate_parameters_1): Likewise.
6303         * tree.c (expr_align, stabilize_reference): Likewise.
6304         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6305         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6306         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6307         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6308         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6309         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6310         Likewise.
6311         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6312         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6313         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6314         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6315         (forward_propagate_comparison)
6316         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6317         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6318         * emit-rtl.c (component_ref_for_mem_expr)
6319         (set_mem_attributes_minus_bitpos): Likewise.
6320         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6321         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6322         Likewise.
6323         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6324         (build_function_call, pointer_diff, build_compound_expr)
6325         (c_finish_return): Likewise.
6326         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6327         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6328         Likewise.
6329         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6330         * expr.c (is_aligning_offset): Likewise.
6331         * tree-ssa-alias.c (is_escape_site): Likewise.
6332         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6333         (check_all_va_list_escapes): Likewise.
6334         * tree-ssa-loop-ivopts.c (determine_base_object)
6335         (determine_common_wider_type): Likewise.
6336         * dojump.c (do_jump): Likewise.
6337         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6338         * tree-gimple.c (is_gimple_cast): Likewise.
6339         * fold-const.c (decode_field_reference, )
6340         (fold_sign_changed_comparison, fold_unary, fold_comparison)
6341         (fold_binary): Likewise.
6342         * tree-ssa-alias-warnings.c (find_alias_site_helper)
6343         (already_warned_in_frontend_p): Likewise.
6344         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6345         * tree.c (really_constant_p, get_unwidened): Likewise.
6346         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6347         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6348         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6349         Likewise.
6350         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6351         CONVERT_EXPR_P.
6352         (CONVERT_EXPR_P): Define.
6353         (CASE_CONVERT): Define.
6354         
6355 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
6356
6357         PR middle-end/36117
6358         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6359         (delete_unmarked_insns): When deleting a call, call
6360         delete_unreachable_blocks.
6361         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6362         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6363
6364 2008-05-08  Richard Guenther  <rguenther@suse.de>
6365
6366         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6367         (-ftree-salias): Likewise.
6368         (salias-max-implicit-fields): Remove param documentation.
6369         (salias-max-array-elements): Likewise.
6370         * tree-pass.h (pass_create_structure_vars): Remove.
6371         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6372         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6373         * tree-ssa-alias.c (create_structure_vars): Remove.
6374         (gate_structure_vars): Likewise.
6375         (pass_create_structure_vars): Likewise.
6376         (gate_build_alias): Likewise.
6377         (pass_build_alias): Adjust to run always and dump the function.
6378         * common.opt (ftree-salias): Hide.
6379         * passes.c (init_optimization_passes): Remove
6380         pass_create_structure_vars, adjust comment.
6381         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6382         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6383         * opts.c (decode_options): Do not set flag_tree_salias.
6384         (common_handle_option): Add OPT_ftree_salias to the backward
6385         compatibility section.
6386
6387 2008-05-08  Richard Guenther  <rguenther@suse.de>
6388
6389         * tree-flow-inline.h (var_can_have_subvars): Move ...
6390         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6391         * tree-flow.h (var_can_have_subvars): Remove.
6392         (push_fields_onto_fieldstack): Remove.
6393         (sort_fieldstack): Likewise.
6394         (struct fieldoff): Move ...
6395         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
6396         alias_set and base_for_components fields.
6397         (sort_fieldstack): Make static.
6398         (push_fields_onto_fieldstack): Likewise.  Remove code that
6399         handles anything but RECORD_TYPEs.  Remove alias_set and
6400         base_for_components handling.
6401         (create_variable_info_for): Adjust.
6402
6403 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
6404
6405         * common.opt (Wframe-larger-than=): Shorten the help message
6406         to one line.
6407         * doc/invoke.texi (Wframe-larger-than=): Add more description.
6408
6409 2008-05-08  Rafael Espindola  <espindola@google.com>
6410
6411         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6412         trap.
6413         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6414         trap and that both operands are gimple values.
6415         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6416         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6417         is a fp operation.
6418
6419 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6420
6421         * read-rtl.c (join_c_conditions): Return the first string if the
6422         two strings are equal.
6423
6424 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6425
6426         * gensupport.h (pred_data): Add a "num_codes" field.
6427         (add_predicate_code): Declare.
6428         * gensupport.c (add_predicate_code): New function.
6429         (std_pred_table): Add an "allows_const_p" field.
6430         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6431         Remove the (incomplete) list of such codes from the codes field.
6432         (init_predicate_table): Use add_predicate_code.  Add all
6433         RTX_CONST_OBJs if allows_const_p is true.
6434         * genrecog.c (process_define_predicate): Use add_predicate_code.
6435
6436 2008-05-08  David Daney  <ddaney@avtrex.com>
6437             Richard Sandiford  <rsandifo@nildram.co.uk>
6438         
6439         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6440         special case of constant zero operands.
6441         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6442         old and new values.  Special case constant zero values.
6443         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6444         fails.
6445         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6446         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6447
6448 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
6449
6450         PR target/36090
6451         * simplify-rtx.c (simplify_plus_minus): Create CONST of
6452         similar RTX_CONST_OBJ before CONST_INT.
6453
6454 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
6455
6456         * stmt.c (expand_stack_restore): Change sa mode if needed.
6457
6458 2008-05-08  Richard Guenther  <rguenther@suse.de>
6459
6460         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6461         return type to bool.
6462         (ix86_sol10_return_in_memory): Likewise.
6463         (ix86_i386elf_return_in_memory): Likewise.
6464         (ix86_i386interix_return_in_memory): Likewise.
6465         * config/i386/i386.c (ix86_return_in_memory): Likewise.
6466         (ix86_sol10_return_in_memory): Likewise.
6467         (ix86_i386elf_return_in_memory): Likewise.
6468         (ix86_i386interix_return_in_memory): Likewise.
6469
6470 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6471
6472         PR bootstrap/36180
6473         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6474         fndecl argument.
6475         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6476         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6477         declared in front.
6478
6479 2008-05-08  Richard Guenther  <rguenther@suse.de>
6480
6481         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6482         * tree-data-ref.h (struct dr_alias): Remove subvars field.
6483         (DR_SUBVARS): Remove.
6484         * tree-dfa.c (dump_subvars_for): Remove.
6485         (debug_subvars_for): Likewise.
6486         (dump_variable): Do not dump subvars.
6487         (remove_referenced_var): Do not remove subvars.
6488         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6489         (lookup_subvars_for_var): Remove.
6490         (get_subvars_for_var): Likewise.
6491         (get_subvars_at): Likewise.
6492         (get_first_overlapping_subvar): Likewise.
6493         (overlap_subvar): Likewise.
6494         * tree-flow.h (subvar_t): Remove.
6495         (struct var_ann_d): Remove subvars field.
6496         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6497         argument.  Remove special handling of SFTs.
6498         (compute_tag_properties): Likewise.
6499         (set_initial_properties): Likewise.
6500         (compute_call_clobbered): Likewise.
6501         (count_mem_refs): Likewise.
6502         (compute_memory_partitions): Likewise.
6503         (compute_flow_insensitive_aliasing): Likewise.
6504         (setup_pointers_and_addressables): Likewise.
6505         (new_type_alias): Likewise.
6506         (struct used_part): Remove.
6507         (used_portions): Likewise.
6508         (struct used_part_map): Likewise.
6509         (used_part_map_eq): Likewise.
6510         (used_part_map_hash): Likewise.
6511         (free_used_part_map): Likewise.
6512         (up_lookup): Likewise.
6513         (up_insert): Likewise.
6514         (get_or_create_used_part_for): Likewise.
6515         (create_sft): Likewise.
6516         (create_overlap_variables_for): Likewise.
6517         (find_used_portions): Likewise.
6518         (create_structure_vars): Likewise.
6519         * tree.def (STRUCT_FIELD_TAG): Remove.
6520         * tree.h (MTAG_P): Adjust.
6521         (struct tree_memory_tag): Remove base_for_components and
6522         unpartitionable flags.
6523         (struct tree_struct_field_tag): Remove.
6524         (SFT_PARENT_VAR): Likewise.
6525         (SFT_OFFSET): Likewise.
6526         (SFT_SIZE): Likewise.
6527         (SFT_NONADDRESSABLE_P): Likewise.
6528         (SFT_ALIAS_SET): Likewise.
6529         (SFT_UNPARTITIONABLE_P): Likewise.
6530         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6531         (union tree_node): Remove sft field.
6532         * alias.c (get_alias_set): Remove special handling of SFTs.
6533         * print-tree.c (print_node): Remove handling of SFTs.
6534         * tree-dump.c (dequeue_and_dump): Likewise.
6535         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6536         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6537         * tree-predcom.c (set_alias_info): Do not set subvars.
6538         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6539         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6540         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6541         (add_vars_for_offset): Remove.
6542         (add_virtual_operand): Remove special handling of SFTs.
6543         (add_call_clobber_ops): Likewise.
6544         (add_call_read_ops): Likewise.
6545         (get_asm_expr_operands): Likewise.
6546         (get_modify_stmt_operands): Likewise.
6547         (get_expr_operands): Likewise.
6548         (add_to_addressable_set): Likewise.
6549         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6550         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6551         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6552         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6553         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6554         (tree_node_structure): Likewise.
6555         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6556         handling of SFTs.
6557         (find_what_p_points_to): Likewise.
6558
6559 2008-05-08  Sa Liu  <saliu@de.ibm.com>
6560
6561         * config/spu/spu.md: Fixed subti3 pattern.
6562
6563 2008-05-08  Richard Guenther  <rguenther@suse.de>
6564
6565         PR middle-end/36154
6566         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6567         sure to create a representative for trailing arrays for PTA.
6568
6569 2008-05-08  Richard Guenther  <rguenther@suse.de>
6570
6571         PR middle-end/36172
6572         * fold-const.c (operand_equal_p): Two objects which types
6573         differ in pointerness are not equal.
6574
6575 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6576
6577         * calls.c (compute_argument_block_size): Add argument tree fndecl.
6578         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6579         (emit_library_call_value_1): Add new variable fndecl initialized by
6580         NULL_TREE. It should be the decl type of orgfun, but this information
6581         seems not to be available here, so it uses the default calling abi.
6582         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6583         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6584         by TARGET_RETURN_IN_MEMORY.
6585         * config/i386/i386-interix.h: Likewise.
6586         * config/i386/i386.h: Likewise.
6587         * config/i386/i386elf.h: Likewise.
6588         * config/i386/ptx4-i.h: Likewise.
6589         * config/i386/sol2-10.h: Likewise.
6590         * config/i386/sysv4.h: Likewise.
6591         * config/i386/vx-common.h: Likewise.
6592         * config/cris/cris.h: Removed #if 0 clause.
6593         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6594         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6595         argument.
6596         (ix86_sol10_return_in_memory): Likewise.
6597         (ix86_i386elf_return_in_memory): New.
6598         (ix86_i386interix_return_in_memory): New.
6599         * config/mt/mt-protos.h (mt_return_in_memory): New.
6600         * config/mt/mt.c: Likewise.
6601         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6602         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
6603         * config/bfin/bfin.h: Likewise.
6604         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6605         argument.
6606         * config/bfin/bfin.c: Likewise.
6607         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6608         * config/alpha/unicosmk.h: Likewise.
6609         * config/i386/cygming.h: Likewise.
6610         * config/iq2000/iq2000.h: Likewise.
6611         * config/mips/mips.h: Likewise.
6612         * config/mn10300/mn10300.h: Likewise.
6613         * config/rs6000/rs6000.h: Likewise.
6614         * config/score/score.h: Likewise.
6615         * config/spu/spu.h: Likewise.
6616         * config/v850/v850.h: Likewise.
6617         * defaults.h: Likewise.
6618         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6619         * expr.c (emit_block_move): Adjust use of
6620         OUTGOING_REG_PARM_STACK_SPACE.
6621         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6622         OUTGOING_REG_PARM_STACK_SPACE.
6623         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6624
6625 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
6626
6627         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6628         on OMP_RETURN for OMP_FOR.
6629
6630         PR debug/35896
6631         * dwarf2out.c (dw_expand_expr, common_check): Removed.
6632         (fortran_common): New function.
6633         (gen_variable_die): Call fortran_common instead of common_check,
6634         adjust for it returning tree instead of rtx.  Formatting.
6635
6636 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6637
6638         PR rtl/7335
6639         PR rtl/33826
6640         * see.c (see_copy_insn): Copy new pure const attributes for new call.
6641         * c-decl.c (merge_decls): Ditto.
6642         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6643         to RTL_CONST_OR_PURE_CALL_P.
6644         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6645         Initialized DECL_LOOPING_CONST_PURE.
6646         (process_call_operands): Set tree_side_effects properly.
6647         * tree.h (TREE_READONLY_DECL_P): Removed.
6648         (DECL_IS_PURE): Renamed to DECL_PURE_P.
6649         (DECL_LOOPING_OR_CONST_P): New macro.
6650         (struct tree_function_decl): Added looping_const_or_pure_p.
6651         (ECF_*) Renumbered.
6652         (ECF_LOOPING_OR_CONST_P): New macro.
6653         * rtlanal.c (pure_const_p): Removed.
6654         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6655         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6656         to RTL_CONST_CALL_P.
6657         * ipa-pure-const.c (pure_const_state_e): Added looping field.
6658         (check_decl, check_tree, check_call, scan_function): Initialize
6659         looping.
6660         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6661         (static_execute): Set looping true for recursive functions.
6662         Undo setting state to IPA_NEITHER for recursive functions.
6663         * cse.c (cse_insn): 
6664         * ifcvt.c (noce_can_store_speculate_p): Changed
6665         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
6666         RTL_CONST_OR_PURE_CALL_P.
6667         * dse.c (scan_insn): Ditto.
6668         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6669         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6670         RTL_CONST_OR_PURE_CALL_P.
6671         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6672         pure_call_p to RTL_CONST_CALL_P.
6673         * gimplify.c (gimplify_call_expr): Clear side effects for
6674         non-looping pure and constant calls.
6675         * calls.c (emit_call_1): Set rtl flags from ecf flags.
6676         (flags_from_decl_or_type): Set ecf flags from decl flags.
6677         (initialize_argument_information): Turn off
6678         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6679         Change const to pure if callee_copies is true rather than just
6680         turning off const.
6681         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6682         way of marking pure calls.
6683         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6684         Remove hack that was supposed to fix pr7335 and remove old
6685         way of marking pure calls.
6686         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6687         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6688         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6689         RTL_CONST_OR_PURE_CALL_P.
6690         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6691         * loop-invariant.c (find_exits, find_invariant_bb): Changed
6692         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6693         * sched-deps.c (schedule_analyze): Ditto.
6694         * rtl.h (struct rtx_def): Use call field, unchanging field, and
6695         return_val field of calls to represent pure and const function info.
6696         (CONST_OR_PURE_CALL_P): Deleted macro.
6697         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6698         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6699         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6700         TREE_READONLY.
6701         * tree-optimize.c (execute_fixup_cfg): Added test for
6702         ECF_LOOPING_CONST_OR_PURE.
6703         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6704         DECL_PURE_P.
6705         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6706         effects for looping pure or const calls.
6707         (verify_gimple_expr): Added verification code. 
6708         * config/alpha/alpha.c (alpha_legitimize_address,
6709         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6710         RTL_CONST_CALL_P.
6711         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6712         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6713         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6714         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6715         RTL_CONST_OR_PURE_CALL_P.
6716         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6717         and const calls to be deleted.
6718
6719 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6720
6721         PR target/35714
6722         * config/i386/mmx.md (mmx_subv2sf3): New expander.
6723         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6724         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6725         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6726         to handle nonimmediate operands.
6727         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6728         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
6729         to handle nonimmediate operands.
6730         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6731         (mmx_pmulhrwv4hi3): New expander.  Use
6732         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6733         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6734         (sse2_umulv1siv1di3): New expander.  Use
6735         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6736         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6737         (mmx_eq<mode>3): New expander.  Use
6738         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6739         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6740         (mmx_uavgv8qi3): New expander.  Use
6741         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6742         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6743         (mmx_uavgv4hi3): New expander.  Use
6744         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6745
6746         * config/i386/sse.md
6747         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
6748         to handle nonimmediate operands.
6749         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
6750         to handle nonimmediate operands.
6751         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
6752         to handle nonimmediate operands.
6753         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
6754         to handle nonimmediate operands.
6755         (sse2_unpckhpd_exp): New expander.  Use
6756         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6757         (sse2_unpcklpd_exp): New expander.  Use
6758         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6759         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
6760         to handle nonimmediate operands.
6761         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
6762         to handle nonimmediate operands.
6763         (*sse2_<plusminus_insn><mode>3): Rename from
6764         sse2_<plusminus_insn><mode>3 insn pattern.
6765         (sse2_<plusminus_insn><mode>3): New expander.  Use
6766         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6767         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6768         (sse2_umulv2siv2di3): New expander.  Use
6769         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6770         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6771         (sse4_1_mulv2siv2di3): New expander.  Use
6772         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6773         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6774         (sse2_pmaddwd): New expander.  Use
6775         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6776         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6777         (sse2_eq<mode>3): New expander.  Use
6778         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6779         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6780         (sse4_1_eqv2di3): New expander.  Use
6781         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6782         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6783         (sse2_uavgv16qi3): New expander.  Use
6784         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6785         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6786         (sse2_uavgv16qi3): New expander.  Use
6787         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6788         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6789         (sse2_uavgv8hi3): New expander.  Use
6790         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6791         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6792         (ssse3_pmulhrswv8hi3): New expander.  Use
6793         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6794         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6795         (ssse3_pmulhrswv4hi3): New expander.  Use
6796         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6797
6798         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6799         (<sse>_vmmul<mode>3): Ditto.
6800         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6801         (divv2df3): Ditto.
6802         (ssse3_pmaddubsw128): Use register_operand for operand 1.
6803         (ssse3_pmaddubsw): Ditto.
6804
6805         * config/i386/i386.c (struct_builtin_description)
6806         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6807         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6808         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6809         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6810         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6811         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6812         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6813         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6814         (ix86_fixup_binary_operands): Assert that src1
6815         and src2 must have the same mode when swapped.
6816         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6817         and ix86_binary_operator_ok.  Do not force operands in registers
6818         when optimizing.
6819
6820 2008-05-07  Jan Hubicka  <jh@suse.cz>
6821
6822         * cgraph.c (dump_cgraph_node): Update.
6823         * cgraph.h (cgraph_local_info): Break out inline summary.
6824         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6825         hook.
6826         * ipa-inline (inline_summary): New accestor function.
6827         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6828         cgraph_decide_inlining, compute_inline_parameters): Update.
6829         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6830
6831 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
6832
6833         Cleanup ColdFire scheduling support and add V4 pipeline model.
6834
6835         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6836         (define_attr cpu): Add cfv4 value.
6837         (define_attr type, define_attr type1): Merge into a single 'type'
6838         attribute.  Update all uses.
6839         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6840         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
6841         Update all uses.
6842         (define_attr opx_mem, define_attr opy_mem): Remove.
6843         (define_attr op_mem): Clean up, update comment.
6844         (define_attr size): Use specific values instead of general int.
6845         (define_attr guess, define_attr split): Remove.  Update all uses.
6846         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6847         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6848         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6849         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6850         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6851         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6852         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6853         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6854         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6855         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6856         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6857         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6858         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6859         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6860         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6861         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6862         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6863         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6864         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6865         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6866         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6867         Update or set attributes.
6868         (stack_tie): New fake instruction.
6869
6870         * config/m68k/m68k.h (TUNE_CFV4): New macro.
6871         (m68k_sched_attr_size): Update declaration.
6872         (m68k_sched_attr_type2): Remove.
6873         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6874         Declare new bypass predicates.
6875
6876         * config/m68k/m68k.c (m68k_sched_issue_rate,
6877         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6878         implementations.
6879         (TARGET_SCHED_ISSUE_RATE,
6880         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6881         (override_options): Handle scheduling for ColdFire V4 core.
6882         (m68k_expand_prologue): Emit stack_tie.
6883         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6884         'OP_TYPE_FPN'.  Update all uses.
6885         (sched_guess_p): Remove.
6886         (sched_address_type): Handle symbolic addresses.
6887         (sched_get_operand): New static function.
6888         (sched_operand_type): Merge into sched_attr_op_type.
6889         (sched_attr_op_type): Handle FP registers, handle quick constants,
6890         update.
6891         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6892         (m68k_sched_attr_size): Update.  Move logic to ...
6893         (sched_get_attr_size_int): New static function.
6894         (sched_get_opxy_mem_type): New static function.
6895         (m68k_sched_attr_op_mem): Update.
6896         (m68k_sched_attr_type2): Remove.
6897         (sched_cfv4_bypass_data): New static variable.
6898         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6899         (m68k_sched_issue_rate): Implement scheduler hook.
6900         (struct _sched_ib: enabled_p): New field.
6901         (m68k_sched_variable_issue): Update.  Handle V4.
6902         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6903         sched_dump_class_func_t, sched_dump_split_class,
6904         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6905         sched_dump_dfa_class, m68k_sched_dump): Remove.
6906         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6907         hook.
6908         (m68k_sched_init_global): Remove statisctics dumping, introduce
6909         sanity check that all instructions have pipeline reservations.  Handle
6910         ColdFire V4 core.
6911         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6912         Handle ColdFire V4 core.
6913         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6914         New static functions.
6915         (m68k_sched_address_bypass_p): New bypass predicate.
6916         (sched_get_indexed_address_scale): New static function.
6917         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6918
6919         * cf.md: Update comments.
6920         (define_attr type2): Remove.  Use 'type' attribute instead.
6921         Update all uses.
6922         (cf_ib): Rename to cfv123_ib.  Update all uses.
6923         (cf_oep): Rename to cfv123_oep.  Update all uses.
6924         (cf_chr): Rename to cfv123_chr.  Update all uses.
6925         (cf_mem): Rename to cfv123_mem.  Update all uses.
6926         (cf_mac): Move to more appropriate place.
6927         (cfv123_guess): New automaton and cpu_unit.
6928         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6929         Update uses of 'size' attribute.  Handle before reload scheduling.
6930         (cfv123_guess): New dummy reservation for unhandled instructions.
6931         (cfv4_*): Pipeline description of ColdFire V4 core.
6932         (ignore): New reservation to handle 'ignore' type.
6933
6934 2008-05-07  Ian Lance Taylor  <iant@google.com>
6935
6936         PR middle-end/36013
6937         * gimplify.c (find_single_pointer_decl_1): Don't look through
6938         indirections.
6939         (find_single_pointer_decl): Adjust comments.
6940
6941 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
6942
6943         PR middle-end/36137
6944         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6945         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6946
6947         PR middle-end/36106
6948         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6949         integral type rather than floating point, then VIEW_CONVERT_EXPR
6950         to the floating point type.
6951
6952 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6953
6954         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6955         TFmode op0 to register.
6956
6957 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
6958
6959         * c-decl.c (grokdeclarator): Comment typo.
6960
6961 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
6962
6963         * tree-flow.h: Remove prototype for computed_goto_p.
6964         * tree-cfg.c (computed_goto_p): Make static.
6965
6966 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
6967
6968         PR target/35657
6969         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6970         (contains_aligned_value_p): This.  Handle _Decimal128.
6971         (ix86_function_arg_boundary): Only align _Decimal128 to its
6972         natural boundary and handle it properly.
6973
6974 2008-05-06  Martin Jambor  <mjambor@suse.cz>
6975
6976         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6977         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6978         (ipcp_method_set_orig_node): Removed.
6979         (ipcp_cval_get_cvalue_type): Removed.
6980         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6981         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6982         (ipcp_cval_set_cvalue_type): Removed.
6983         (ipcp_cval_get_cvalue): Removed.
6984         (ipcp_cval_set_cvalue): Removed.
6985         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6986         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6987         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6988         (ipcp_cval_meet): Renamed to ipa_lattice_meet
6989         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6990         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6991         (ipcp_get_ith_lattice): Changed parameters.
6992         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6993         (ipcp_lattice_from_jfunc): Changed parameters.
6994         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6995         (ipcp_method_cval_print): Added temporary variable info.
6996         (ipcp_redirect): Removed already unused local variable caller.
6997         (ipcp_redirect): New temporary variable orig_callee_info
6998         (ipcp_redirect): Removed newly unused local variable callee.
6999         (ipcp_redirect): Removed (a bit confusing) local variable type.
7000         (ipcp_insert_stage): Added local variable info.
7001         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
7002         renamed too
7003         (ipcp_formal_create): Removed.
7004         (ipcp_method_cval_set): Removed.
7005         (ipcp_propagate_stage): Renamed lattice variables.
7006         (ipcp_method_cval_set_cvalue_type): Removed.
7007         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7008         (ipcp_print_all_lattices): Changed printed strings to refer to 
7009         lattices rather than cvals.
7010         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7011         (ipcp_propagate_const): Changed formal parameters.
7012         (build_const_val): Changed formal parameters.
7013         (ipcp_insert_stage): Removed useless variable cvalue
7014         (build_const_val): Changed formal parameters.
7015         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7016         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7017         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7018         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7019         (ipcp_print_func_profile_counts): Changed string from "method" to 
7020         "function"
7021         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7022         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7023         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7024         (ipcp_structures_print): Renamed to ipcp_print_all_structures
7025         (ipcp_profile_print): Renamed to ipcp_print_profile_data
7026         (ipcp_lat_is_const): Changed parameters and made inline.
7027         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7028         (ipcp_redirect): Renamed to ipcp_need_redirect_p
7029         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
7030         the predicate condition directly
7031         (ipcp_propagate_stage): Added local variable args. Removed local
7032         variable callee.  (Both are mere code simplifications.)
7033         (ipcp_method_dont_insert_const): Renamed to
7034         ipcp_node_not_modifiable_p.
7035         (ipcp_node_not_modifiable_p): Made inline.
7036         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7037         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7038         (ipcp_print_all_lattices): Removed variable cvalue
7039         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7040         Updated comments.
7041
7042 2008-05-06  Olivier Hainque  <hainque@adacore.com>
7043
7044         * tree-sra.c (try_instantiate_multiple_fields): Early return
7045         if field has POINTER_TYPE.
7046
7047 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
7048
7049         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7050         by using 'q' specifier for instruction.
7051         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7052
7053 2008-05-06  Anatoly Sokolov <aesok@post.ru>
7054
7055         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7056         Change mode of zero_extract from QImode to HImode.
7057         (sign bit tests peepholes): (Ditto.).
7058
7059 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
7060
7061         * config/i386/mmx.md: Remove double backslashes from asm templates.
7062         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7063         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7064         to handle nonimmediate operands.
7065         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7066         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7067         to handle nonimmediate operands.
7068         (*mmx_<code>v2sf3_finite): New insn pattern.
7069         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7070         (mmx_<code>v2sf3): New expander.  Use
7071         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7072         (mmx_<plusminus_insn><mode>3): New expander.  Use
7073         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7074         (*mmx_<plusminus_insn><mode>3): New insn pattern.
7075         (mmx_add<mode>3): Removed.
7076         (mmx_ssadd<mode>3): Ditto.
7077         (mmx_usadd<mode>3): Ditto.
7078         (mmx_sub<mode>3): Ditto.
7079         (mmx_sssub<mode>3): Ditto.
7080         (mmx_ussub<mode>3): Ditto.
7081         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7082         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
7083         to handle nonimmediate operands.
7084         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7085         insn pattern.
7086         (mmx_smulv4hi3_highpart): New expander.  Use
7087         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7088         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7089         insn pattern.
7090         (mmx_umulv4hi3_highpart): New expander.  Use
7091         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7092         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7093         (mmx_<code>v4hi3): New expander.  Use
7094         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7095         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7096         (mmx_<code>v8qi3): New expander.  Use
7097         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7098         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7099         (mmx_<code><mode>3): New expander.  Use
7100         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7101
7102 2008-05-05  Jan Hubicka  <jh@suse.cz>
7103
7104         PR tree-optimization/36118
7105         * passes.c (pass_init_dump_file): Fix dump header.
7106
7107 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7108
7109         PR middle-end/36141
7110         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7111         VCE for function decls.
7112
7113 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
7114
7115         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7116
7117 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
7118
7119         * config/i386/i386.md (sat_plusminus): New.
7120         (plusminus_insn): Likewise.
7121         (plusminus_mnemonic): Likewise.
7122         (addsub): Removed.
7123         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7124         (*<addsub><mode>3_cc_overflow): Renamed to ...
7125         (*<plusminus_insn><mode>3_cc_overflow): This.
7126         (*<addsub>si3_zext_cc_overflow): Renamed to ...
7127         (*<plusminus_insn>si3_zext_cc_overflow): This.
7128
7129         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7130         (<plusminus_insn><mode>3): This.
7131         (*<addsub><mode>3): Renamed to ...
7132         (*<plusminus_insn><mode>3): This.
7133         (<sse>_vm<addsub><mode>3): Renamed to ...
7134         (<sse>_vm<plusminus_insn><mode>3): This.
7135         (sse3_h<addsub>v4sf3): Renamed to ...
7136         (sse3_h<plusminus_insn>v4sf3): This.
7137         (sse3_h<addsub>v2df3): Renamed to ...
7138         (sse3_h<plusminus_insn>v2df3): This.
7139         (<plusminus_insn><mode>3): New.
7140         (*<plusminus_insn><mode>3): Likewise.
7141         (sse2_<plusminus_insn><mode>3): Likewise.
7142         (add<mode>): Removed.
7143         (*add<mode>3): Likewise.
7144         (sse2_ssadd<mode>3): Likewise.
7145         (sse2_usadd<mode>3): Likewise.
7146         (sub<mode>3): Likewise.
7147         (*sub<mode>3): Likewise.
7148         (sse2_sssub<mode>3): Likewise.
7149         (sse2_ussub<mode>3): Likewise.
7150
7151 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
7152
7153         * gthr-single.h: Add in required interface elements as per gthr.h.
7154         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
7155         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
7156         Generalize UNUSED macro. 
7157         (__gthread_once): Add.
7158         (__gthread_key_create): Add.
7159         (__gthread_key_delete): Add.
7160         (__gthread_getspecific): Add.
7161         (__gthread_setspecific): Add.
7162         
7163 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
7164
7165         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
7166         the same size types for the indirect reference on the rhs, then
7167         create a VCE.
7168
7169 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
7170
7171         * config/i386/i386.md
7172         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
7173         one insn template instead of template series.
7174         (*xordi_1_rex64): Ditto.
7175         (*xordi_2_rex64): Ditto.
7176
7177 2008-05-05  Ira Rosen  <irar@il.ibm.com>
7178
7179         PR tree-optimization/36119
7180         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7181         in case of SLP.
7182
7183 2008-06-04  Jan Hubicka  <jh@suse.cz>
7184
7185         tree-optimization/36100
7186         * tree-pass.h (pass_O0_always_inline): Declare.
7187         * ipa-inline.c (inline_transform): Remove dead code.
7188         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7189         pass_O0_always_inline): New.
7190         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7191
7192 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
7193
7194         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7195         mnemonic in this_param move for TARGET_64BIT.
7196
7197 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
7198
7199         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7200         (*strmovsi_rex_1): Ditto.
7201         (*strsetsi_1): Ditto.
7202         (*strsetsi_rex_1): Ditto.
7203
7204         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7205         adddicc expanders using SWI mode iterator.
7206
7207 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7208
7209         PR target/36121
7210         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7211         argument handling.
7212
7213 2008-05-04  David S. Miller  <davem@davemloft.net>
7214
7215         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7216         (sparc*-*-linux*): Use linux.h in tm_file.
7217         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7218         compiler defaulting to 32-bit.
7219         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7220         no longer needed.
7221         * config/sparc/linux.h: Remove definitions now obtained
7222         properly from linux.h
7223         * config/sparc/linux64.h: Likewise.
7224         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7225         don't want this setting for 32-bit builds in a biarch compiler.
7226         * doc/install.texi: Add sparc-linux to list of targets
7227         supporting --enable-targets=all.
7228
7229 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
7230
7231         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7232
7233 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
7234
7235         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7236         after V4SI_FTYPE_V8HI.
7237         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7238         case V4SI_FTYPE_V2DF.
7239
7240 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
7241
7242         * doc/invoke.texi (max-flow-memory-locations): Removed.
7243         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7244         
7245 2008-05-03  Richard Guenther  <rguenther@suse.de>
7246
7247         PR middle-end/34973
7248         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7249
7250 2008-05-02  David S. Miller  <davem@davemloft.net>
7251
7252         * config.gcc (need_64bit_hwint): Document libcpp dependency.
7253
7254 2008-05-02  Simon Baldwin <simonb@google.com>
7255
7256         PR bootstrap/36108
7257         * c-common.h (warn_array_subscript_range): Removed.
7258         * c-common.c (warn_array_subscript_range): Ditto.
7259         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7260         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7261
7262 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7263
7264         * config/i386/i386.c (ix86_special_builtin_type): New.
7265         (bdesc_special_args): Likewise.
7266         (ix86_expand_special_args_builtin): Likewise.
7267         (ix86_init_mmx_sse_builtins): Updated.
7268         (ix86_expand_builtin): Updated.
7269         (ix86_expand_store_builtin): Removed.
7270         (ix86_expand_unop_builtin): Likewise.
7271
7272         * config/i386/mm3dnow.h (__v2sf): Moved to ...
7273         * config/i386/mmintrin.h (__v2sf): Here.
7274
7275         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7276         const __v2sf.
7277         (_mm_loadl_pi): Likewise.
7278         (_mm_storeh_pi): Replace __v2si with __v2sf.
7279         (_mm_storel_pi): Likewise.
7280
7281         * doc/extend.texi: Correct __builtin_ia32_loadhps,
7282         __builtin_ia32_loadlps, __builtin_ia32_storehps,
7283         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7284         __builtin_ia32_loadlpd.
7285
7286 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7287
7288         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7289         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7290         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
7291         (ix86_init_mmx_sse_builtins): Updated.
7292         (ix86_expand_args_builtin): Likewise.
7293         (ix86_expand_builtin): Likewise.
7294         (ix86_expand_unop1_builtin): Renamed to ...
7295         (ix86_expand_unop_vec_merge_builtin): This.
7296
7297 2008-05-01  Jan Hubicka  <jh@suse.cz>
7298
7299         PR bootstrap/36100
7300         * ipa-inline.c (inline_generate_summary): Make static.
7301         (inline_transform): Do not call inlining at -O0; make static.
7302         * passes.c (execute_todo): Add sanity check.
7303         (execute_one_ipa_transform_pass): Execute proper flags.
7304
7305 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7306
7307         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7308         (DECL_NONADDRESSABLE_P): Likewise.
7309         * alias.c (record_component_aliases): Fix comment.
7310
7311 2008-05-01  Simon Baldwin <simonb@google.com>
7312
7313         * c-common.h (warn_array_subscript_range): New function.
7314         * c-common.c (warn_array_subscript_range): Ditto.
7315         * tree-vrp.c (check_array_ref): Corrected code to agree with
7316         comment, ignoring only arrays of size 0 or size 1.
7317         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7318
7319 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7320
7321         * config/i386/i386.c (ix86_builtin_type): Replace
7322         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7323         (bdesc_args): Updated.
7324         (ix86_init_mmx_sse_builtins): Likewise.
7325         (ix86_expand_args_builtin): Likewise.
7326
7327         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7328         with __v1di.
7329
7330         * doc/extend.texi: Correct __builtin_ia32_palignr.
7331
7332 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7333
7334         PR target/36095
7335         * config/i386/i386.c (bdesc_crc32): Removed.
7336         (ix86_expand_crc32): Likewise.
7337         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7338         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7339         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
7340         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7341         UINT_FTYPE_UINT_UCHAR.
7342         (bdesc_args): Updated. Add crc32 builtins.
7343         (ix86_init_mmx_sse_builtins): Updated.
7344         (ix86_expand_args_builtin): Updated to support subreg.
7345
7346         * doc/extend.texi: Correct __builtin_ia32_crc32di.
7347
7348 2008-05-01  Jan Hubicka  <jh@suse.cz>
7349
7350         * tree-pass.h (opt_pass): Add IPA_PASS.
7351         (varpool_node, cgraph_node): Forward declare.
7352         (ipa_opt_pass): Define.
7353         (pass_ipa_inline): Turn into ipa_opt_pass.
7354         (pass_apply_inline): Remove.
7355         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7356         (apply_inline): Turn into ....
7357         (inline_transform): ... this one.
7358         (inline_generate_summary): New function.
7359         (pass_apply_inline): Remove.
7360         * function.h (ipa_opt_pass): Forward declare structure; typedef;
7361         vector.
7362         (struct function): Add ipa_transforms_to_apply.
7363         * passes.c (register_one_dump_file): Work on IPA_PASS.
7364         (init_optimization_passes): Remove pass_inline_parameters and
7365         pass_apply_inline.
7366         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7367         (execute_one_pass) ... here; apply transforms when possible.
7368         (add_ipa_transform_pass, execute_ipa_summary_asses,
7369         execute_one_ipa_transform_pass): New.
7370         (execute_ipa_pass_list): Update for IPA_PASS type.
7371
7372 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7373
7374         * config/i386/i386.c (ix86_builtin_type): Add
7375         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7376         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7377         (bdesc_args): Add SSE4a builtins.
7378         (ix86_init_mmx_sse_builtins): Updated.
7379         (ix86_expand_args_builtin): Likewise.
7380         (ix86_expand_builtin): Likewise.
7381
7382 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7383
7384         * config/i386/i386.c (ix86_builtin_type): Add
7385         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7386         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7387         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7388         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7389         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7390         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7391         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7392         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7393         and DI_FTYPE_DI_DI_INT.
7394         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7395         (ix86_init_mmx_sse_builtins): Updated.
7396         (ix86_expand_args_builtin): Likewise.
7397         (ix86_expand_builtin): Likewise.
7398         (ix86_expand_binop_imm_builtin): Removed.
7399
7400         * doc/extend.texi: Correct __builtin_ia32_palignr128.
7401
7402 2008-04-30  Richard Guenther  <rguenther@suse.de>
7403
7404         PR tree-optimization/32921
7405         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7406
7407 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7408
7409         * config/arm/arm.c (arm_unwind_emit): Use
7410         crtl->all_throwers_are_sibcalls instead of
7411         cfun->all_throwers_are_sibcalls.
7412         (arm_output_fn_unwind): Likewise.
7413         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7414         instead of cfun->uses_pic_offset_table.
7415         (frv_expand_prologue): Likewise.
7416         (frv_frame_pointer_required): Likewise.
7417         (frv_expand_fdpic_call): Likewise.
7418         (frv_emit_movsi): Likewise.
7419         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7420         cfun->returns_pcc_struct instead of
7421         current_function_returns_pcc_struct.
7422         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7423         instead of cfun->calls_eh_return.
7424         (m32c_pushm_popm): Likewise.
7425         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7426         "extern" declaration.
7427
7428 2008-04-30  Richard Guenther  <rguenther@suse.de>
7429
7430         PR tree-optimization/21636
7431         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7432         constant address.
7433         (evaluate_stmt): Print the likely value.
7434         (ccp_visit_stmt): Avoid excessive vertical spacing.
7435
7436 2008-04-30  Rafael Espindola  <espindola@google.com>
7437
7438         * builtins.c (fold_call_expr): Return realret.
7439         * tree-ssa-threadedge.c
7440         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7441         __builtin_object_size.
7442
7443 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
7444
7445         * gcc.c (wrapper_string): New variable.
7446         (insert_wrapper): New function.
7447         (execute): New option -wrapper.
7448         * doc/invoke.texi (Overall Options): New driver option -wrapper.
7449
7450 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
7451
7452         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7453         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7454         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7455         from...
7456         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
7457         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7458         config/rs6000/e500crtres64gprctr.asm,
7459         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7460         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7461         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7462         config/rs6000/e500crtsav64gprctr.asm,
7463         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7464         config/rs6000/e500crtsavg64gprctr.asm: New files.
7465         * config/rs6000/t-ppccomm: Add build rules for new files.
7466         (LIB2FUNCS_STATIC_EXTRA): Add new files.
7467         * config/rs6000/t-netbsd: Add build rules for new files.
7468         (LIB2FUNCS_STATIC_EXTRA): New variable.
7469         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7470         (CRTSAVRES_DEFAULT_SPEC): Likewise.
7471         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7472
7473 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
7474
7475         * config/i386/i386.c (ix86_builtin_type): Add
7476         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7477         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7478         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7479         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7480         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7481         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7482         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7483         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7484         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7485         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7486         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7487         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7488         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7489         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7490         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7491         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7492         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7493         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7494         V1DI_FTYPE_V2SI_V2SI.
7495         (bdesc_2arg): Moved to ...
7496         (bdesc_args): Here.
7497         (ix86_init_mmx_sse_builtins): Updated.
7498         (ix86_expand_args_builtin): Updated.  Take a pointer
7499         to const struct builtin_description.  Handle comparison
7500         builtin functions.
7501         (ix86_expand_sse_compare): Take a new argument for swapping operands.
7502         (ix86_expand_builtin): Updated.
7503
7504         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7505         (ssse3_pmaddubsw128): This.
7506         (ssse3_pmaddubswv4hi3): Renamed to ...
7507         (ssse3_pmaddubsw): This.
7508
7509         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7510         (__builtin_ia32_packssdw128): Likewise.
7511         (__builtin_ia32_packuswb128): Likewise.
7512         (__builtin_ia32_pmaddubsw): Likewise.
7513         (__builtin_ia32_pmaddubsw128): Likewise.
7514
7515 2008-04-30  Richard Guenther  <rguenther@suse.de>
7516
7517         PR tree-optimization/14847
7518         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7519         (recognize_bits_test): Use it.
7520         (recognize_single_bit_test): Likewise.
7521
7522 2008-04-30  Martin Jambor  <mjambor@suse.cz>
7523
7524         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7525         instead of setting number of formal parameters to zero.
7526         (ipcp_init_stage): Do not set the number of actual parameters to zero 
7527         either.
7528         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7529         which are called with variable number of arguments.
7530         (ipcp_insert_stage): Explicitely skipping all nodes which are
7531         called with variable number of arguments.
7532         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
7533         number of parameters.
7534
7535         * ipa-prop.h (struct ipa_node_params): Added flag
7536         called_with_var_arguments
7537         (ipa_set_param_count): Added.  Changed sole setter to use it.
7538         (ipa_get_param_count): Added.  All readers of param_count
7539         converted to use it instead.
7540         (ipa_set_called_with_variable_arg): Added.
7541         (ipa_is_called_with_var_arguments): Added.
7542         (ipa_get_ith_param): Added.  All readers of param_decls converted
7543         to use it instead.
7544         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
7545         changed to use it. 
7546         (ipa_get_cs_argument_count): Added, all readers of argument_count
7547         changed to cal it.
7548         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
7549         to use it.
7550         
7551         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7552         (struct ipcp_lattice): Renamed cval_type to type
7553         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7554
7555         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7556         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7557         (ipcp_insert_stage): Changed the type of variable cvalue to tree
7558         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7559         (build_const_val): Changed the type of parameter cvalue to tree
7560         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7561         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7562         
7563         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
7564         constant 
7565
7566         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7567         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7568         (ipa_add_method): Renamed to ipa_push_func_to_list
7569         (ipa_remove_method): Renamed to ipa_pop_func_from_list
7570         (ipa_callsite_param_count): Removed.
7571         (ipa_callsite_param_count_set): Removed.
7572         (ipa_callsite_param): Removed.
7573         (ipa_callsite_callee): Removed.
7574         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7575         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7576         (ipa_method_formal_count): Removed.
7577         (ipa_method_formal_count_set): Removed.
7578         (ipa_method_get_tree): Removed.
7579         (ipa_method_tree_map_create): Removed.
7580         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7581         (ipa_create_param_decls_array): Creates the array itself
7582         (ipa_create_param_decls_array): Temporary variable info instead of 
7583         a few dereferences.
7584         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7585         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7586         (get_type): Removed.
7587         (ipa_jf_get_info_type): Removed.
7588         (ipa_node_create): Renamed to ipa_create_node_params
7589         (ipa_free): Renamed to ipa_free_all_node_params
7590         (ipa_nodes_create): Renamed to ipa_create_all_node_params
7591         (ipa_edges_create): Renamed to ipa_create_all_edge_args
7592         (ipa_edges_free): Renamed to ipa_free_all_edge_args
7593         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7594         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
7595         ipa_free_all_edge_args
7596         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7597         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7598         (ipa_create_methodlist_node): Removed.
7599         (ipa_methodlist_method): Removed.
7600         (ipa_methodlist_method_set): Removed.
7601         (ipa_methodlist_next_method): Removed.
7602         (ipa_methodlist_next_method_set): Removed.
7603         (ipa_method_is_modified): Removed.
7604         (ipa_method_modify_create): Removed.
7605         (ipa_method_modify_init): Temporary variable info instead of a few 
7606         dereferences.
7607         (ipa_detect_param_modifications): Temporary variable info instead of 
7608         a few dereferences.
7609         (ipa_compute_jump_functions): Temporary variable info instead of 
7610         a few dereferences.
7611         (ipa_method_modify_set): Removed.
7612         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7613         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
7614         than craph_node as the first parameter.
7615         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7616         (ipa_method_modify_init): Removed.
7617         (ipa_compute_jump_functions): Added a temp variable instead of 
7618         repeatadly dereferencing the cgraph_edge.aux pointer
7619         (ipa_callsite_param_set_type): Removed.
7620         (ipa_compute_jump_functions): i renamed to index and moved to 
7621         an inner block
7622         (ipa_callsite_param_set_info_type_formal): Removed.
7623         (ipa_callsite_param_set_info_type): Removed.
7624         (ipa_callsite_param_map_create): Removed.
7625         (ipa_callsite_tree): Removed.
7626         (ipa_callsite_caller): Removed.
7627         (ipa_pop_func_from_list): return_method removed to return_func
7628
7629         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7630         prefixed all values with IPA_. Changed all users.
7631         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
7632         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
7633         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
7634         (union parameter_info): Renamed to jump_func_value.
7635         (union jump_func_value): Renamed value to constant
7636         (struct ipa_jump_func): Renamed info_type to value
7637         (struct ipa_node): Renamed to ipa_node_params
7638         (struct ipa_node_params): Renamed ipa_arg_num to param_count
7639         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7640         (struct ipa_node_params): Renamed ipa_mod to modified_flags
7641         (struct ipa_edge): Renamed to ipa_edge_args
7642         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7643         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7644         (struct ipa_methodlist): Renamed to ipa_func_list
7645         (struct ipa_func_list): method_p renamed to node, next_method
7646         renamed to next
7647         (ipa_methodlist_p): Removed, switched all users to struct pointer
7648         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7649
7650 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
7651
7652         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7653         (rs6000_emit_epilogue): Use backchain to restore only when we
7654         have a large frame.  Make use of frame pointer to restore if we
7655         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7656
7657 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
7658
7659         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7660         Add mode to zero_extract.
7661         (sign bit tests peepholes): (Ditto.).
7662
7663 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7664
7665         * config/i386/i386.c (ix86_builtins): Replace Prescott New
7666         Instructions in comments with SSE3.
7667         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
7668         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7669         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7670         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7671         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7672         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7673         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7674         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7675         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7676         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7677         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7678         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7679         (bdesc_sse_args): Renamed to ...
7680         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7681         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7682         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7683         IX86_BUILTIN_FABSQ.
7684         (bdesc_1arg): Moved to ...
7685         (bdesc_args): Here.
7686         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
7687         Instructions in comments with SSE3.
7688         (ix86_expand_sse_operands_builtin): Renamed to ...
7689         (ix86_expand_args_builtin): This.  Updated.
7690         (ix86_expand_unop1_builtin): Update comments.
7691         (ix86_expand_builtin): Updated.
7692
7693 2008-04-29  Richard Guenther  <rguenther@suse.de>
7694
7695         PR tree-optimization/36078
7696         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7697         Update virtual SSA form after cleaning up the CFG.
7698
7699 2008-04-29  Richard Guenther  <rguenther@suse.de>
7700
7701         PR middle-end/15255
7702         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7703
7704 2008-04-29  Richard Guenther  <rguenther@suse.de>
7705
7706         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7707         (compute_may_aliases): Do not call finalize_ref_all_pointers.
7708         (compute_flow_insensitive_aliasing): Do not treat
7709         PTR_IS_REF_ALL pointers special.
7710         (get_smt_for): Likewise.
7711         (may_alias_p): Re-structure.
7712         (is_escape_site): A ref-all pointer conversion is not an escape site.
7713         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7714         PTR_IS_REF_ALL pointers special.
7715         * tree-ssa-structalias.h (struct alias_info): Remove
7716         ref_all_symbol_mem_tag field.
7717         (PTR_IS_REF_ALL): Remove.
7718
7719 2008-04-29  Richard Guenther  <rguenther@suse.de>
7720
7721         PR middle-end/36077
7722         * fold-const.c (extract_muldiv_1): In combining division constants
7723         make sure to never overflow.
7724
7725 2008-04-29  Nick Clifton  <nickc@redhat.com>
7726
7727         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7728
7729 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7730
7731         PR bootstrap/35169
7732         * optc-gen.awk: Work around HP-UX/IA awk bug.
7733
7734 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
7735
7736         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7737         2008-04-25 commit.
7738
7739 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7740
7741         PR target/36073
7742         * config/i386/i386.md
7743         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7744         Change operand 1 predicate to nonimmediate_operand.
7745
7746 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
7747
7748         PR debug/36060
7749         * dwarf2out.c (struct die_struct): Mark as chain_circular through
7750         die_sub field.
7751         * gengtype.c (walk_type, write_func_for_structure): Handle
7752         chain_circular.
7753         * doc/gty.texi: Document chain_circular.
7754
7755 2008-04-28  Richard Guenther  <rguenther@suse.de>
7756
7757         PR tree-optimization/36066
7758         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7759         SCEV and loop.
7760
7761 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7762
7763         PR target/36064
7764         * config/i386/i386.md
7765         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7766         Use match_scratch instead of match_operand for operands 3 and 4.
7767
7768 2008-04-27  Richard Guenther  <rguenther@suse.de>
7769
7770         PR tree-optimization/18754
7771         PR tree-optimization/34223
7772         * tree-pass.h (pass_complete_unrolli): Declare.
7773         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7774         loop size before and after unconditionally of UL_NO_GROWTH in effect.
7775         Rewrite loop into loop closed SSA form if it is not already.
7776         (tree_unroll_loops_completely): Re-structure to iterate over
7777         innermost loops with intermediate CFG cleanups.
7778         Unroll outermost loops only if requested or the code does not grow
7779         doing so.
7780         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7781         loops are available.
7782         (tree_vectorize): Instead do so here.
7783         (tree_complete_unroll): Also unroll outermost loops.
7784         (tree_complete_unroll_inner): New function.
7785         (gate_tree_complete_unroll_inner): Likewise.
7786         (pass_complete_unrolli): New pass.
7787         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7788         uses outside of the loop.
7789         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7790         form if it is available.  
7791         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7792         * passes.c (init_optimization_passes): Schedule complete inner
7793         loop unrolling pass before the first CCP pass after final inlining.
7794
7795 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
7796
7797         * targhooks.h (default_emutls_var_fields,
7798         default_emutls_var_init): Declare.
7799         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7800         * target.h (struct gcc_target): Add struct emutls member.
7801         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7802         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7803         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7804         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7805         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7806         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7807         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7808         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7809         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7810         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7811         emit debug information.
7812         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7813         * varasm.c: Include targhooks.h.
7814         (emutls_object_section, emutls_tmpl_section): New.
7815         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7816         (EMUTLS_SEPARATOR): New.
7817         (prefix_name): New.
7818         (get_emutls_object_name): New.
7819         (default_emutls_var_fields): New, broken out of ...
7820         (get_emutls_object_type): ... here.  Adjust to use target hooks.
7821         (get_emutls_init_templ_addr): Adjust to use target hooks.
7822         (emutls_decl): Adjust to use target hooks.
7823         (emutls_finish): Likewise.
7824         (default_emutls_var_init): New, broken out of ...
7825         (assemble_variable): ... here.  Adjust to use target hooks.
7826         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7827         SECCAT_EMUTLS_TMPL.
7828         * c-common.c (handle_section_attribute): Prevent overriding
7829         sections for emulated tls with special sections.
7830         * config/i386/i386.c (x86_64_elf_select_section): Add
7831         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7832         (x86_64_elf_unique_section): Likewise.
7833         * config/vxworks.c: Include tree.h.
7834         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7835         (vxworks_override_options): Set TLS scheme.
7836         * doc/tm.texi (Emulated TLS): New node.
7837
7838 2008-04-26  Simon Baldwin <simonb@google.com>
7839
7840         PR c/35652
7841         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7842         with propagated string constants.
7843
7844 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
7845
7846         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7847         constraint for operand 2 when operand 0 is memory operand.
7848         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7849         operand 0 is memory operand.
7850         (fix_trunc<mode>_i387_with_temp): Ditto.
7851         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7852         operand 2 when operand 1 is memory operand.
7853         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7854         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7855         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7856         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7857         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7858         operands 2,3 and 4 when operand 1 is memory operand.
7859         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7860         is memory operand.
7861         (fistdi2_floor_with_temp): Ditto.
7862         (fist<mode>2_floor_with_temp): Ditto.
7863         (fistdi2_ceil_with_temp): Ditto.
7864         (fist<mode>2_ceil_with_temp): Ditto.
7865         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7866
7867 2008-04-26  David Daney  <ddaney@avtrex.com>
7868
7869         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7870         unspec_volitile.
7871         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7872         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7873         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7874         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7875         (compare_and_swap_12): New insn.
7876         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7877         * config/mips/mips.c (mips_force_binary): New function.
7878         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7879         (mips_expand_compare_and_swap_12): New function.
7880         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7881
7882 2008-04-25  Jan Hubicka  <jh@suse.cz>
7883
7884         PR testsuite/35843
7885         * cfgexpand.c (pass_expand): Turn into RTL pass.
7886         * passes.c (execute_one_pass): Do pass typechecking after execution.
7887         * tree-pass.h (pass_expand): Turn into RTL pass.
7888
7889         * function.h (struct rtl_data): Move here fields
7890         accesses_prior_frames, calls_eh_return, saves_all_registers,
7891         has_nonlocal_goto, has_asm_statement, is_thunk,
7892         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7893         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7894         arg_pointer_save_area_init from struct function; turn into bool.
7895         (struct function): Move
7896         calls_eh_return, saves_all_registers, has_nonlocal_goto,
7897         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7898         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7899         tail_call_emit, arg_pointer_save_area_init
7900         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
7901         (current_function_returns_struct, current_function_returns_pcc_struct,
7902         current_function_calls_setjmp, current_function_calls_alloca,
7903         current_function_accesses_prior_frames,
7904         current_function_calls_eh_return, current_function_is_thunk,
7905         current_function_stdarg, current_function_profile,
7906         current_function_limit_stack, current_function_uses_pic_offset_table,
7907         current_function_uses_const_pool, current_function_has_nonlocal_label,
7908         current_function_saves_all_registers,
7909         current_function_has_nonlocal_goto,
7910         current_function_has_asm_statement): Remove accesor macros.
7911         * ra-conflict.c (global_conflicts): Update.
7912         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7913         (suitable_for_tail_call_opt_p): Update.
7914         * builtins.c (expand_builtin_return_addr): Update.
7915         (expand_builtin_setjmp_setup): Update.
7916         (expand_builtin_nonlocal_goto): Update.
7917         * final.c (final_start_function): Update.
7918         (profile_function): Update.
7919         (leaf_function_p): Update.
7920         (only_leaf_regs_used): Update.
7921         * df-scan.c (df_get_exit_block_use_set): Update.
7922         * dojump.c (clear_pending_stack_adjust): Update.
7923         * tree-stdarg.c (gate_optimize_stdarg): Update.
7924         * gimple-low.c (lower_function_body): Update.
7925         * global.c (compute_regsets): Update.
7926         (global_alloc): Update.
7927         * dwarf2out.c (dwarf2out_begin_prologue): Update.
7928         * expr.c (expand_assignment): Update.
7929         * dse.c (dse_step0): Update.
7930         (dse_step1): Update.
7931         * c-decl.c (store_parm_decls): Update.
7932         * local-alloc.c (combine_regs): Update.
7933         (find_free_reg): Update.
7934         * function.c (assign_parms_augmented_arg_list): Update.
7935         (assign_parm_find_data_types): Update.
7936         (assign_parms): Update.
7937         (allocate_struct_function): Update.
7938         (expand_function_start): Update.
7939         (expand_function_end): Update.
7940         (get_arg_pointer_save_area): Update.
7941         (thread_prologue_and_epilogue_insns): Update.
7942         (rest_of_match_asm_constraints): Update.
7943         * stor-layout.c (variable_size): Update.
7944         * gcse.c (gcse_main): Update.
7945         (bypass_jumps): Update.
7946         * gimplify.c (gimplify_function_tree): Update.
7947         * calls.c (emit_call_1): Update.
7948         (expand_call): Update.
7949         * bt-load.c (compute_defs_uses_and_gen): Update.
7950         * except.c (sjlj_assign_call_site_values): Update.
7951         (sjlj_emit_function_enter): Update.
7952         (can_throw_external): Update.
7953         (set_nothrow_function_flags): Update.
7954         (expand_builtin_unwind_init): Update.
7955         (expand_eh_return): Update.
7956         (convert_to_eh_region_ranges): Update.
7957         (output_function_exception_table): Update.
7958         * emit-rtl.c (gen_tmp_stack_mem): Update.
7959         * cfgexpand.c (expand_used_vars): Update.
7960         (tree_expand_cfg): Update.
7961         * cfgcleanup.c (rest_of_handle_jump): Update.
7962         * explow.c (allocate_dynamic_stack_space): Update.
7963         * varasm.c (assemble_start_function): Update.
7964         (force_const_mem): Update.
7965         (mark_constant_pool): Update.
7966         * tree-optimize.c (tree_rest_of_compilation): Update.
7967         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7968         * tree-cfg.c (notice_special_calls): Update.
7969         (is_ctrl_altering_stmt): Update.
7970         (tree_can_make_abnormal_goto): Update.
7971         (tree_purge_dead_abnormal_call_edges): Update.
7972         * config/alpha/predicates.md: Update.
7973         * config/alpha/alpha.c (alpha_sa_mask): Update.
7974         (alpha_sa_size): Update.
7975         (alpha_does_function_need_gp): Update.
7976         (alpha_expand_prologue): Update.
7977         (alpha_start_function): Update.
7978         (alpha_output_function_end_prologue): Update.
7979         (alpha_expand_epilogue): Update.
7980         * config/frv/frv.c (frv_stack_info): Update.
7981         (frv_expand_epilogue): Update.
7982         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7983         (s390_register_info): Update.
7984         (s390_frame_info): Update.
7985         (s390_init_frame_layout): Update.
7986         (s390_can_eliminate): Update.
7987         (save_gprs): Update.
7988         * config/spu/spu.c (spu_split_immediate): Update.
7989         (need_to_save_reg): Update.
7990         (spu_expand_prologue): Update.
7991         (spu_expand_epilogue): Update.
7992         * config/sparc/sparc.md: Update.
7993         * config/sparc/sparc.c (eligible_for_return_delay): Update.
7994         (sparc_tls_got): Update.
7995         (legitimize_pic_address): Update.
7996         (sparc_emit_call_insn): Update.
7997         (sparc_expand_prologue): Update.
7998         (output_return): Update.
7999         (print_operand): Update.
8000         (sparc_function_ok_for_sibcall): Update.
8001         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8002         * config/m32r/m32r.md: Update.
8003         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8004         (m32r_compute_frame_size): Update.
8005         (m32r_expand_prologue): Update.
8006         (m32r_expand_epilogue): Update.
8007         (m32r_legitimize_pic_address): Update.
8008         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8009         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8010         * config/i386/i386.c (ix86_frame_pointer_required): Update.
8011         (gen_push): Update.
8012         (ix86_save_reg): Update.
8013         (ix86_compute_frame_layout): Update.
8014         (ix86_expand_prologue): Update.
8015         (ix86_expand_epilogue): Update.
8016         * config/sh/sh.c (output_stack_adjust): Update.
8017         (calc_live_regs): Update.
8018         (sh5_schedule_saves): Update.
8019         (sh_expand_prologue): Update.
8020         (sh_expand_epilogue): Update.
8021         (sh_setup_incoming_varargs): Update.
8022         (sh_allocate_initial_value): Update.
8023         (sh_get_pr_initial_val): Update.
8024         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8025         * config/sh/sh.md (label:): Update.
8026         * config/avr/avr.c (out_movhi_mr_r): Update.
8027         * config/crx/crx.h (enum): Update.
8028         * config/xtensa/xtensa.h (along): Update.
8029         * config/stormy16/stormy16.c Update.
8030         (xstormy16_compute_stack_layout): Update.
8031         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8032         (fr30_expand_prologue): Update.
8033         * config/cris/cris.c (cris_conditional_register_usage): Update.
8034         (cris_reg_saved_in_regsave_area): Update.
8035         (cris_initial_frame_pointer_offset): Update.
8036         (cris_simple_epilogue): Update.
8037         (cris_expand_prologue): Update.
8038         (cris_expand_epilogue): Update.
8039         (cris_expand_pic_call_address): Update.
8040         (cris_asm_output_symbol_ref): Update.
8041         (cris_asm_output_label_ref): Update.
8042         * config/cris/cris.md Update.
8043         * config/iq2000/iq2000.c (compute_frame_size): Update.
8044         (iq2000_expand_epilogue): Update.
8045         * config/mt/mt.h (save_direction): Update.
8046         * config/mn10300/mn10300.c (mn10300_function_value): Update.
8047         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8048         (ia64_secondary_reload_class): Update.
8049         * config/m68k/m68k.c (m68k_save_reg): Update.
8050         (m68k_expand_prologue): Update.
8051         (m68k_expand_epilogue): Update.
8052         (legitimize_pic_address): Update.
8053         * config/rs6000/rs6000.c (rs6000_got_register): Update.
8054         (first_reg_to_save): Update.
8055         (first_altivec_reg_to_save): Update.
8056         (compute_vrsave_mask): Update.
8057         (compute_save_world_info): Update.
8058         (rs6000_stack_info): Update.
8059         (spe_func_has_64bit_regs_p): Update.
8060         (rs6000_ra_ever_killed): Update.
8061         (rs6000_emit_eh_reg_restore): Update.
8062         (rs6000_emit_allocate_stack): Update.
8063         (rs6000_emit_prologue): Update.
8064         (rs6000_emit_epilogue): Update.
8065         (rs6000_output_function_epilogue): Update.
8066         (output_profile_hook): Update.
8067         (rs6000_elf_declare_function_name): Update.
8068         * config/rs6000/rs6000.h (rs6000_args): Update.
8069         * config/rs6000/rs6000.md: Update.
8070         * config/mcore/mcore.c (mcore_expand_prolog): Update.
8071         * config/arc/arc.c (arc_output_function_epilogue): Update.
8072         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8073         * config/darwin.c (machopic_function_base_name): Update.
8074         * config/score/score3.c (score3_compute_frame_size): Update.
8075         (rpush): Update.
8076         (rpop): Update.
8077         (score3_epilogue): Update.
8078         * config/score/score7.c (score7_compute_frame_size): Update.
8079         (score7_prologue): Update.
8080         (score7_epilogue): Update.
8081         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8082         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8083         * config/arm/arm.c (use_return_insn): Update.
8084         (require_pic_register): Update.
8085         (arm_load_pic_register): Update.
8086         (arm_compute_save_reg0_reg12_mask): Update.
8087         (arm_compute_save_reg_mask): Update.
8088         (thumb1_compute_save_reg_mask): Update.
8089         (output_return_instruction): Update.
8090         (arm_output_function_prologue): Update.
8091         (arm_output_epilogue): Update.
8092         (arm_get_frame_offsets): Update.
8093         (arm_expand_prologue): Update.
8094         (thumb_pushpop): Update.
8095         (thumb_exit): Update.
8096         (thumb1_expand_prologue): Update.
8097         (thumb1_expand_epilogue): Update.
8098         (arm_unwind_emit): Update.
8099         (arm_output_fn_unwind): Update.
8100         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8101         * config/arm/arm.md: Update.
8102         * config/pa/pa.md: Update.
8103         * config/pa/pa.c (legitimize_pic_address): Update.
8104         (compute_frame_size): Update.
8105         (hppa_expand_prologue): Update.
8106         (hppa_expand_epilogue): Update.
8107         (borx_reg_operand): Update.
8108         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8109         (HARD_REGNO_RENAME_OK): Update.
8110         * config/mips/mips.c (mips_global_pointer): Update.
8111         (mips_save_reg_p): Update.
8112         (mips_compute_frame_info): Update.
8113         (mips_frame_pointer_required): Update.
8114         (mips_expand_prologue): Update.
8115         (mips_expand_epilogue): Update.
8116         (mips_can_use_return_insn): Update.
8117         (mips_reorg_process_insns): Update.
8118         * config/v850/v850.c (compute_register_save_size): Update.
8119         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8120         * config/mmix/mmix.c (along): Update.
8121         (mmix_expand_epilogue): Update.
8122         * config/bfin/bfin.c (legitimize_pic_address): Update.
8123         (must_save_p): Update.
8124         (stack_frame_needed_p): Update.
8125         (add_to_reg): Update.
8126         (bfin_expand_prologue): Update.
8127         * stmt.c (expand_asm_operands): Update.
8128         * reload1.c (reload): Update.
8129         (init_elim_table): Update.
8130
8131 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
8132         
8133         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8134         
8135 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8136
8137         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8138         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
8139         (mov<mode>): Removed.
8140         (*movv4sf_internal): Likewise.
8141         (*movv2df_internal): Likewise.
8142
8143 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
8144
8145         * config.gcc (crx-*-elf): Remove deprecation.
8146
8147 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
8148
8149         * config/i386/cygming-crtend.c (register_frame_ctor): Register
8150         __gcc_deregister_frame with atexit.
8151         (deregister_frame_dtor): Remove.
8152
8153 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
8154             Nathan Sidwell  <nathan@codesourcery.com>
8155
8156         * config/rs6000/rs6000.opt (mspe): Remove Var property.
8157         (misel): Likewise.
8158         * config/rs6000/rs6000.h (rs6000_spe): Declare.
8159         (rs6000_isel): Likewise.
8160         * config/rs6000/rs6000.c (rs6000_spe): New variable.
8161         (rs6000_isel): New variable.
8162         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
8163
8164 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8165
8166         PR c++/35758
8167         * c-common.c (handle_vector_size_attribute): Call
8168         lang_hooks.types.reconstruct_complex_type instead of
8169         reconstruct_complex_type.
8170         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
8171         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
8172         * langhooks.h (struct lang_hooks_for_types): Add
8173         reconstruct_complex_type hook.
8174         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
8175         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8176
8177 2008-04-24  Richard Guenther  <rguenther@suse.de>
8178
8179         * c-common.h (check_builtin_function_arguments): Declare.
8180         * c-common.c (validate_nargs): New function.
8181         (check_builtin_function_arguments): Likewise.
8182         * c-typeck.c (build_function_call): Call
8183         check_builtin_function_arguments.
8184         * builtins.c (fold_builtin_classify): Remove error reporting code.
8185         (fold_builtin_unordered_cmp): Likewise.
8186         (fold_builtin_1): Likewise.
8187         (fold_builtin_n): Likewise.
8188
8189 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8190
8191         PR tree-optimization/36008
8192         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8193         the original op1, rather than delta by step.
8194
8195 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
8196             Sebastian Pop  <sebastian.pop@amd.com>
8197
8198         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8199         eliminate_local_variables_stmt, eliminate_local_variables,
8200         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8201         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8202         of code delimited by two edges in the CFG.
8203         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8204         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8205         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
8206         the case of parallelisation of reductions.
8207         (expr_invariant_in_region_p): New.
8208
8209         * tree-flow.h (gather_blocks_in_sese_region): Declared.
8210         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8211
8212 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8213             Richard Guenther  <rguenther@suse.de>
8214
8215         PR tree-optimization/36034
8216         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8217         incapable of dealing with loads with gaps.
8218
8219 2008-04-24  Rafael Espindola  <espindola@google.com>
8220
8221         * tree-flow.h (vrp_evaluate_conditional): Change signature.
8222         * tree-ssa-propagate.c (fold_predicate_in): Update call to
8223         vrp_evaluate_conditional.
8224         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8225         (vrp_evaluate_conditional): Split the cond argument.
8226         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8227         (simplify_stmt_for_jump_threading): Update call to
8228         vrp_evaluate_conditional.
8229
8230 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8231
8232         PR tree-optimization/35982
8233         * tree-vect-analyze.c (vect_check_interleaving): Check that the
8234         interleaved data-refs are of the same type.
8235
8236 2008-04-24  Danny Smith  <dannysmith@users.net>
8237
8238         * c-format.c (check_format_info_main): Use strncmp rather than a
8239         magic prefix to handle multichar length specs.
8240         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8241         Don't prefix "I64" and "I32" with '\0'.
8242
8243 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8244
8245         PR target/36015
8246         * config/i386/i386.c (init_cumulative_args): Don't pass anything
8247         in registers for -m32 only if stdarg_p (fntype).
8248
8249 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
8250
8251         PR rtl-optimization/36006
8252         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8253         temp to op0 in order to avoid invalid rtx sharing.
8254
8255 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
8256
8257         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
8258         check TREE_INVARIANT.
8259         * tree-gimple.c (is_gimple_address): New.
8260         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8261         * tree-gimple.h (is_gimple_address): New.
8262         * tree.h (decl_address_invariant_p): New.
8263         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8264         (build_string): Likewise.
8265         (decl_address_invariant_p): New, from is_gimple_invariant_address.
8266         (tree_invariant_p_1): Likewise.
8267         (save_expr): Use it.
8268         (tree_invariant_p): New.
8269         (skip_simple_arithmetic): Use it.
8270         (stabilize_reference_1): Use it.
8271         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8272         simplify.
8273         (build1_stat): Drop code to compute TREE_INVARIANT.
8274         (build2_stat): Drop code to compute TREE_INVARIANT.
8275         (build3_stat): Drop code to compute TREE_INVARIANT.
8276         (build4_stat): Drop code to compute TREE_INVARIANT.
8277         (build5_stat): Drop code to compute TREE_INVARIANT.
8278         (build7_stat): Drop code to compute TREE_INVARIANT.
8279         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8280         * tree.h (struct tree_base): Remove invariant_flag.
8281         (TREE_INVARIANT): Remove.
8282         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8283         (fold_builtin_expect): Check TREE_CONSTANT.
8284         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8285         * c-tree.h (c_expr_to_decl): Drop third parameter.
8286         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8287         (build_c_cast): Don't set TREE_INVARIANT.
8288         (pop_init_level): Don't set TREE_INVARIANT.
8289         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8290         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8291         TREE_CONSTANT.
8292         (gimplify_init_constructor): Don't set TREE_INVARIANT.
8293         (gimplify_addr_expr): Adjust comment.
8294         * tree-mudflap.c (mf_build_string):
8295         * print-tree.c (print_node): Don't print TREE_INVARIANT.
8296         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8297         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8298         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8299         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8300         * langhooks.h (struct lang_hooks): Drop third parameter from
8301         expr_to_decl.
8302
8303 2008-04-23  Richard Guenther  <rguenther@suse.de>
8304
8305         PR tree-optimization/27799
8306         PR tree-optimization/32921
8307         PR tree-optimization/32624
8308         * tree-ssa-structalias.c (merge_smts_into): Only merge the
8309         SMTs aliases and the tag itself into the solution.
8310         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8311         merge the points-to solution back into the SMT aliases.
8312         (may_alias_p): Use alias_set_subset_of instead of
8313         aliases_conflict_p.  A pointer which points to
8314         memory with alias set zero may access any variable.
8315
8316 2008-04-23  Richard Guenther  <rguenther@suse.de>
8317
8318         * alias.c (alias_set_subset_of): Correctly handle asking
8319         if zero is a subset of an alias set with zero child.
8320         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8321         (compute_flow_insensitive_aliasing): Correctly walk all
8322         pointers.  Do not unnecessarily union sets.
8323
8324 2008-04-23  Richard Guenther  <rguenther@suse.de>
8325
8326         PR middle-end/36021
8327         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8328
8329 2008-04-22  Tomas Bily  <tbily@suse.cz>
8330
8331         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8332         unreachable case.
8333         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8334         NON_LVALUE_EXPR.
8335         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8336         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8337         * tree-inline.c (estimate_num_insns_1): Likewise.
8338         * varasm.c (const_hash_1, compare_constant, copy_constant)
8339         (compute_reloc_for_constant, output_addressed_constants): Likewise.
8340         * emit-rtl.c (component_ref_for_mem_expr)
8341         (set_mem_attributes_minus_bitpos): Likewise.
8342         * expr.c (highest_pow2_factor, expand_expr_real_1, )
8343         (is_aligning_offset): Likewise.
8344         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8345         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8346         * dojump.c (do_jump): Likewise.
8347         * builtins.c (get_pointer_alignment, get_memory_rtx)
8348         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8349         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8350
8351 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
8352
8353         PR rtl-optimization/36017
8354         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8355         expanding the library call.
8356
8357 2008-04-22  Ian Lance Taylor  <iant@google.com>
8358
8359         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8360         than size_in_bytes.
8361
8362 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
8363
8364         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8365         of LR/CTR moves for Power6.
8366
8367 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8368
8369         PR middle-end/36003
8370         * passes.c (init_optimization_passes): Remove
8371         pass_fast_rtl_byte_dce.
8372         
8373 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
8374
8375         PR target/29096
8376         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8377         builtin functions to generate faster code.
8378         (_mm_cvtpu16_ps): Ditto.
8379         (_mm_cvtpi32x2_ps): Ditto.
8380
8381 2008-04-22  Nick Clifton  <nickc@redhat.com>
8382
8383         * common.opt (ftree-loop-distribution): Add Optimization
8384         attribute.
8385
8386         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8387         (frv_expand_builtin_va_start): Likewise.
8388
8389         * config/arm/arm.c (thumb_find_work_register): Fix location of
8390         argument register count.
8391
8392 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8393
8394         Support scheduling for ColdFire V1 and V3 microarchitecture.
8395         Improve scheduling of multiplication instructions.
8396
8397         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
8398         (mac): New instruction attribute.
8399         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8400         (m68k_sched_mac): New variable.
8401         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8402         Handle cfv1 and cfv3.
8403         (max_insn_size): New static variable.
8404         (struct _sched_ib): New type.
8405         (sched_ib): New static variable.
8406         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8407         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
8408         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8409         Update.
8410         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8411         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
8412         new variables.  Update.
8413         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8414         Add modeling of cfv3 instruction buffer.  Update.
8415         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8416         * config/m68k/m68k.h (TUNE_CFV3): New macro.
8417         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8418         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8419         a particular reservation applies to.
8420         (type2): Reorganize attribute values.  Rename alu to alu_reg,
8421         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
8422         to mul_l and mul_w.
8423         (cf_ib_*): Simplify description of instruction buffer.
8424         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8425         (cf_mem): Split into cf_mem1 and cf_mem2.
8426         (cf_v2_move_??): Rename to cfv12_alu_??.
8427         (cf_v2_move_l_??): Rename to cfv12_omove_??.
8428         (cf_v2_mul_??): Remove reservations.
8429         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8430         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8431         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8432         appropriate place.
8433         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8434         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8435         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8436         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8437         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8438         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8439         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8440         expansions of the above reservations for instructions of sizes
8441         1, 2 and 3 words.
8442
8443 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8444
8445         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8446
8447 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
8448
8449         * coverage.c: Include tree-pass.h.
8450         (coverage_counter_alloc): Print da_file_name to the dump file.
8451
8452 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
8453
8454         * sbitmap.c (sbitmap_range_empty_p): New function.
8455         * sbitmap.h (sbitmap_range_empty_p): New function.
8456         * bitmap.h: Now includes obstack.h.
8457
8458 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
8459             Kenneth Zadeck  <zadeck@naturalbridge.com>
8460
8461         * dbgcnt.def (ra_byte_scan): Added.
8462         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8463         when the last hit happens for a counter.  
8464         * timevar.def (TV_DF_BYTE_LR): New variable.
8465         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8466         * passes.c (pass_fast_rtl_byte_dce): New pass.
8467         * fwprop.c (update_df): Added mode to call df_ref_create.
8468         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8469         DF_REF_EXTRACT_OFFSET.
8470         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
8471         DF_BYTE_LR_OUT, df_byte_lr): New macro.
8472         (df_mm): New enum.
8473         (df_ref_extract): Added mode field.
8474         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8475         DF_REF_EXTRACT_OFFSET.
8476         (DF_REF_EXTRACT_MODE): New macro.
8477         (df_byte_lr_bb_info): New structure.
8478         (df_print_byte_regset, df_compute_accessed_bytes, 
8479         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8480         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8481         df_byte_lr_simulate_uses,
8482         df_byte_lr_simulate_artificial_refs_at_top,
8483         df_byte_lr_simulate_artificial_refs_at_end,
8484         df_compute_accessed_bytes): New function.
8485         (df_ref_create): Add parameter.
8486         (df_byte_lr_get_bb_info): New inline function.
8487         * df-scan.c (df_ref_record, df_uses_record,
8488         df_ref_create_structure): Added mode parameter.
8489         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
8490         df_defs_record, df_uses_record, df_get_conditional_uses,
8491         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
8492         df_entry_block_defs_collect, df_exit_block_uses_collect):
8493         Added mode parameter to calls to df_ref_record, df_uses_record,
8494         df_ref_create_structure.
8495         (df_ref_equal_p, df_ref_compare): Added test for modes.
8496         (df_ref_create_structure): Added code to set mode.  Renamed
8497         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8498         DF_REF_EXTRACT_OFFSET.
8499         * df-core.c (df_print_byte_regset): New function.
8500         * df-byte-scan.c: New file.
8501         * df-problems.c (df_rd_transfer_function): Removed unnecessary
8502         calls to BITMAP_FREE.  
8503         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8504         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8505         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
8506         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
8507         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8508         df_byte_lr_local_compute, df_byte_lr_init,
8509         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
8510         df_byte_lr_transfer_function, df_byte_lr_free, 
8511         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8512         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
8513         df_byte_lr_simulate_uses,
8514         df_byte_lr_simulate_artificial_refs_at_top,
8515         df_byte_lr_simulate_artificial_refs_at_end): New function.
8516         * dce.c (byte_dce_process_block): New function.
8517         (dce_process_block): au is now passed in rather than computed
8518         locally.  Changed loops that look at artificial defs to not look
8519         for conditional or partial ones, because there never are any.  
8520         (fast_dce): Now is able to drive byte_dce_process_block or 
8521         dce_process_block depending on the kind of dce being done.
8522         (rest_of_handle_fast_dce): Add parameter to fast_dce.
8523         (rest_of_handle_fast_byte_dce): New function.
8524         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8525         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8526
8527 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
8528
8529         PR fortran/35019
8530         * gcc.h: Added fortran options that take arguments to
8531         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8532         macros.
8533
8534 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8535
8536         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8537         scalarization if on the LHS and not a full access.
8538
8539 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8540
8541         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8542
8543 2008-04-18  Rafael Espindola  <espindola@google.com>
8544
8545         * tree-vrp.c (find_case_label_index): Fix the binary search.
8546         (find_case_label_range): New.
8547         (vrp_visit_switch_stmt): Use find_case_label_range.
8548         (simplify_switch_using_ranges): Use find_case_label_range.
8549
8550 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8551
8552         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8553         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8554
8555 2008-04-18  Tom Tromey  <tromey@redhat.com>
8556
8557         PR libcpp/15500:
8558         * doc/cpp.texi (Implementation-defined behavior): Mention
8559         -finput-charset.
8560
8561 2008-04-18  Ian Lance Taylor  <iant@google.com>
8562
8563         * fold-const.c (pointer_may_wrap_p): New static function.
8564         (fold_comparison): Add another test for pointer overflow.  Use
8565         pointer_may_wrap_p to disable some false positives.
8566
8567 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
8568           
8569         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8570         (fname_as_string): Match updated cpp_interpret_string prototype.
8571         (fix_string_type): Support char16_t* and char32_t*.
8572         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8573         derivative) nodes.  Register as builtin if C++0x.
8574         (c_parse_error): Support CPP_CHAR{16,32}.
8575         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
8576         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8577         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8578         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8579         CTI_CHAR32_ARRAY_TYPE>: New elements.
8580         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8581         char32_type_node, signed_char32_type_node, char16_array_type_node,
8582         char32_array_type_node): New defines.
8583         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8584         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8585         (lex_string): Support CPP_STRING{16,32}, match updated
8586         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8587         (lex_charconst): Support CPP_CHAR{16,32}.
8588         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8589         and CPP_STRING{16,32}.
8590
8591 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
8592
8593         PR bootstrap/35457
8594         * aclocal.m4: Regenerate.
8595         * configure: Regenerate.
8596
8597 2008-04-18  Jan Hubicka  <jh@suse.cz>
8598
8599         * except.c (dw2_size_of_call_site_table,
8600         sjlj_size_of_call_site_table): Use vector API for call_site_record.
8601
8602         * cgraphbuild.c (build_cgraph_edges): Update.
8603         * tree-pass.h: Update comment.
8604         * final.c (leaf_function_p): Update.
8605         (leaf_renumber_regs): Update.
8606         (rest_of_clean_state): Update.
8607         * omp-low.c (expand_omp_parallel): Update.
8608         * ipa-reference.c (analyze_function): Update.
8609         * reorg.c (find_end_label): Update.
8610         (optimize_skip): Update.
8611         (fill_simple_delay_slots): Update.
8612         (fill_simple_delay_slots): Update.
8613         (make_return_insns): Update.
8614         (dbr_schedule): Update.
8615         * gimple-low.c (record_vars_into): Update.
8616         * cfgbuild.c (make_edges): Update.
8617         * function.c (assign_stack_local): Update.
8618         (assign_parm_adjust_stack_rtl): Update.
8619         (locate_and_pad_parm): Update.
8620         (allocate_struct_function): Do not initialize stack_alignment_needed
8621         and preferred_stack_boundary here.
8622         (stack_protect_prologue): Update.
8623         (stack_protect_epilogue): Update.
8624         (expand_function_start): Initialize stack_alignment_needed,
8625         preferred_stack_boundary and max_jumptable_ents.
8626         (expand_function_end): Update.
8627         (free_after_compilation): Do not NULLify epilogue_delay_list.
8628         * function.h (struct rtl_data): Add stack_protect_guard,
8629         stack_alignment_needed,
8630         preferred_stack_boundary, epilogue_delay_list.
8631         (struct function): Remove value_histograms, stack_alignment_needed,
8632         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8633         last_label_uid,
8634         unexpanded_var_list, stack_protect_guard.
8635         (current_function_epilogue_delay_list): Remove.
8636         * ipa-type-escape.c (analyze_function): Update.
8637         * gimplify.c (pop_gimplify_context): Update comment.
8638         * calls.c (expand_call): Update.
8639         (emit_library_call_value_1): Update.
8640         * except.c (set_nothrow_function_flags): Update.
8641         * cfgexpand.c (get_decl_align_unit): Update.
8642         (create_stack_guard): Update.
8643         (estimated_stack_frame_size): Update.
8644         (expand_used_vars): Update.
8645         (tree_expand_cfg): Free histogram earliers, init expansion variables.
8646         * explow.c (allocate_dynamic_stack_space): Update.
8647         * tree-ssa-live.c (remove_unused_locals): Update.
8648         * varasm.c (mark_constant_pool): Update.
8649         * tree-inline.c (remap_decls): Update.
8650         (initialize_cfun): Update.
8651         (declare_return_variable): Update.
8652         (inline_forbidden_p): Update.
8653         (expand_call_inline): Update.
8654         (declare_inline_vars): Update.
8655         (tree_function_versioning): Update.
8656         * tree-flow.h (value_histograms): New.
8657         (VALUE_HISTOGRAMS): New macro.
8658         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8659         last_label_uid.
8660         * tree-cfg.c (set_bb_for_stmt): Update.
8661         (replace_by_duplicate_decl): Update.
8662         (move_block_to_fn): Update.
8663         (new_label_mapper): Update.
8664         (dump_function_to_file): Update.
8665         * ipa-struct-reorg.c (build_data_structure): Update.
8666         * cfgrtl.c (print_rtl_with_bb): Update.
8667         * reload1.c (reload): Update.
8668         (reload): Update.
8669         * config/i386/i386.c (setup_incoming_varargs_64,
8670         ix86_compute_frame_layout): Update.
8671         * config/arc/arc.c (arc_output_function_epilogue): Update.
8672
8673 2008-04-18  Marius Strobl <marius@FreeBSD.org>
8674
8675         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8676         for FreeBSD as well.
8677         * gthr-posix95.h: Likewise.
8678
8679 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
8680
8681         PR rtl-optimization/35838
8682         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8683         out the byte offset of the first subreg.
8684
8685 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
8686
8687         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8688         to split_ti instead of three separate calls with single member arrays.
8689         (subti3 splitter): Ditto.
8690         (adddi3 splitter): Ditto with split_di.
8691         (subdi3 splitter): Ditto.
8692         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8693         two separate calls with single member arrays.  Swap match_dup
8694         operands 1 and 2 to better fit into the array.
8695         (negdi2 splitter): Ditto with split_di.
8696         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
8697         two separate calls with single member arrays.  Swap match_dup operands
8698         6 and 7 to better fit into the array.
8699
8700 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8701
8702         * config/i386/i386.c (sse_builtin_type): New.
8703         (bdesc_sse_args): Likewise.
8704         (bdesc_sse_3arg): Removed.
8705         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8706         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8707         IX86_BUILTIN_ROUNDPS.
8708         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
8709         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
8710         IX86_BUILTIN_ROUNDPS.
8711         (ix86_expand_sse_4_operands_builtin): Removed.
8712         (ix86_expand_sse_operands_builtin): New.
8713         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8714         and CODE_FOR_sse4_1_roundps.
8715         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8716         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
8717
8718 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
8719
8720         PR target/35907
8721         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8722         regs before frame pop when needed.  If use_backchain_to_restore_sp
8723         then load backchain into a temp reg to restore vr and vrsave.  Add
8724         code to restore vr after frame pop if possible.
8725
8726 2008-04-17  Richard Guenther  <rguenther@suse.de>
8727
8728         * tree-vn.c (expressions_equal_p): Do not check type
8729         equality or compatibility before calling operand_equal_p.
8730         * fold-const.c (operand_equal_p): Check equivalence of
8731         integer constants before bailing out due to signedness or
8732         precision differences.
8733         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8734         spurious differences in type qualification.  Ignore types
8735         for COMPONENT_REFs at all.
8736
8737 2008-04-17  Christian Bruel  <christian.bruel@st.com>
8738
8739         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8740         msw_skip comparison.
8741         
8742 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
8743
8744         PR c/35739
8745         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8746         reg type.
8747
8748         PR tree-optimization/35899
8749         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8750         rather than TREE_OPERAND.
8751
8752 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
8753
8754         PR target/35944
8755         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8756         temporary registers.  Change operand predicate to general_operand.
8757         (remainderxf3): Ditto.
8758
8759 2008-04-16  Richard Guenther  <rguenther@suse.de>
8760
8761         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8762         * tree-affine.c (aff_combination_expand): Look through some
8763         conversions.
8764
8765 2008-04-15  Doug Kwan  <dougkwan@google.com>
8766
8767         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8768         for hex printing.
8769         * tree-pretty-print.c (dump_generic_node): Ditto.
8770         * final.c (output_addr_const): Ditto.
8771         * dwarf2out.c (output_cfi): Ditto.
8772         * c-pretty-print.c (pp_c_integer_constant): Ditto.
8773         * print-rtl.c (print_rtx): Ditto.
8774         * print-tree.c (print_node_brief, print_node): Ditto.
8775         * c-common.c (match_case_to_enum_1): Ditto.
8776         * sched-vis.c (print_value): Ditto.
8777         * config/i386/i386.c (print_operand): Cast to long unsigned int
8778         for hex printing.
8779
8780 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
8781         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
8782         MS Windows VirtualProtect function.
8783
8784 2008-04-15  Jan Hubicka  <jh@suse.cz>
8785
8786         * gengtype.c (write_root): Param_is argument is OK.
8787         * expr.c (expand_expr_real_1): Update call of get_exception_*.
8788         * function.h: Include varray.h
8789         (rtl_eh): New stucture based on except.c one.
8790         (call_site_record): New forward declaration and vector type.
8791         * calls.c (emit_call_1): Do not call
8792         note_current_region_may_contain_throw.
8793         * except.c (eh_status): Remove cur_region, try_region since they are
8794         unused.
8795         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8796         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8797         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
8798         Remove call_site_data_used, call_site_data_size.
8799         Turn call_site_record into vector in function.h.
8800         (note_current_region_may_contain_throw): Remove.
8801         (get_exception_pointer, get_exception_filter): Do not take struct
8802         function argument; update.
8803         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8804         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8805         build_post_landing_pads, dw2_build_landing_pads,
8806         sjlj_assign_call_site_values, sjlj_mark_call_sites,
8807         sjlj_emit_function_enter, sjlj_emit_function_enter, 
8808         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8809         sjlj_build_landing_pads, finish_eh_generation,
8810         remove_exception_handler_label, remove_eh_handler,
8811         maybe_remove_eh_handler, add_reachable_handler,
8812         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8813         add_action_record, collect_one_action_chain, add_call_site,
8814         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8815         sjlj_output_call_site_table, output_function_exception_table,
8816         * except.h (note_current_region_may_contain_throw): Remove
8817         (get_exception_pointer, get_exception_filter): Do not take struct
8818         function argument.
8819         * Makefile.in (GTFILES): Put varargs before struct function.
8820
8821 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8822
8823         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8824         punt for STRING_CST.
8825         (get_constraint_for): Deal with STRING_CST here instead.
8826
8827 2008-04-15  Richard Guenther  <rguenther@suse.de>
8828
8829         * tree-ssa-propagate.c (substitute_and_fold): Substitute
8830         statements in a basic-block with a backward walk.  Do not
8831         substitute into dead statements but instead remove those.
8832
8833 2008-04-15  Richard Guenther  <rguenther@suse.de>
8834
8835         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8836         to zero, thus disable creation of SFTs.
8837
8838 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8839
8840         * tree-predcom.c (suitable_reference_p): Return false if the
8841         reference can throw.
8842
8843 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
8844
8845         PR c/35751
8846         * c-decl.c (finish_decl): If extern or static var has variable
8847         size, set TREE_TYPE (decl) to error_mark_node.
8848
8849 2008-04-15  Rafael Espindola  <espindola@google.com>
8850
8851         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8852         variable arg1.
8853
8854 2008-04-15  Richard Guenther  <rguenther@suse.de>
8855
8856         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8857         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8858         (visit_reference_op_load): Do walk vuse-vdef chains on
8859         vn_reference_lookup.
8860         (visit_reference_op_store): But do not here.
8861         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8862         vn_reference_lookup.
8863         (vn_lookup_with_vuses): But do so here.
8864
8865 2008-04-14  Ian Lance Taylor  <iant@google.com>
8866
8867         * fold-const.c (fold_overflow_warning): Remove assertion.
8868
8869 2008-04-15  Ben Elliston  <bje@au.ibm.com>
8870
8871         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8872         temp1 local variables.
8873
8874 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
8875
8876         PR target/35661
8877         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8878         ".text.unlikely" section as executable.
8879
8880 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
8881
8882         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8883         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8884         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8885         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8886         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8887         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8888         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8889
8890 2008-04-14  Ian Lance Taylor  <iant@google.com>
8891
8892         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8893         * fold-const.c (fold_comparison): If appropriate, test
8894         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8895         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8896         reassociating a pointer type.
8897         * doc/invoke.texi (Optimize Options): Document that
8898         -fstrict-overflow applies to pointer wraparound.
8899
8900 2008-04-13  Jan Hubicka  <jh@suse.cz>
8901
8902         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8903
8904 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
8905
8906         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8907         we are going to "save the world".
8908
8909 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
8910
8911         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8912         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8913         operand 0 constraint, not "=".
8914
8915 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
8916
8917         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8918
8919 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8920
8921         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8922         of size of positions_needed * CHAR_BIT.
8923
8924 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8925
8926         PR middle-end/35897
8927         * dse.c (store_info): Change positions_needed to unsigned
8928         HOST_WIDE_INT.
8929         (lowpart_bitmask): New.
8930         (record_store): Cast to unsigned HOST_WIDE_INT for
8931         positions_needed.  Assert width <= size of positions_needed *
8932         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
8933         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
8934         lowpart_bitmask to set mask.
8935
8936 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8937
8938         * config/bfin/constraints.md: New file.
8939         * config/bfin/bfin.md: Include it.
8940         (adddi3): Use satisfies_constraint functions instead of the old macros.
8941         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8942         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8943         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8944         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8945         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8946         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8947         EXTRA_CONSTRAINT): Delete.
8948         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8949         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8950         of the old macros.
8951         * config/bfin/bfin.c: Include "tm-constrs.h".
8952         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8953         Use satisfies_constraint functions instead of the old macros.
8954         * doc/md.texi (Blackfin Constraints): Update file name reference.
8955
8956 2008-04-11  Richard Guenther  <rguenther@suse.de>
8957
8958         PR tree-optimization/35869
8959         * tree-vrp.c (execute_vrp): Move switch statement update after
8960         jump threading.  Schedule another cfg cleanup run.
8961
8962 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
8963
8964         PR c/35744
8965         * attribs.c (decl_attributes): Return early on errorneous node.
8966
8967 2008-04-10  Oleg Ryjkov  <olegr@google.com>
8968
8969         * tree.h (struct tree_base): Added a new flag default_def_flag.
8970         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8971
8972 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8973
8974         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8975
8976 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8977
8978         PR target/35768
8979         * pa.md: Define mode iterator P.  Define mode attribute dwc.
8980         (dcacheflush): Update pattern to use iterator P and attribute dwc.
8981         (icacheflush): Likewise.
8982         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8983         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8984
8985 2008-04-11  Ben Elliston  <bje@au.ibm.com>
8986
8987         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8988
8989 2008-04-10  Rafael Espindola  <espindola@google.com>
8990
8991         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8992         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8993         (extract_range_from_expr): The same.
8994
8995 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8996
8997         * config/mips/mips.md (GPR2): New mode iterator.
8998         (seq): Add comment.
8999         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9000         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9001         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9002         Rewrite these to take two modes, the mode of comparison and the
9003         mode of the destination.
9004         * config/mips/mips.c (mips_expand_scc): Instead of having
9005         paradoxical subreg as destination, expand "narrowing" scc if mode
9006         of comparison is SI and target is requested in DI mode.
9007         (mips_emit_int_order_test): Update comment.  Make mode of
9008         comparison match CMP0 rather than TARGET.  When creating inverse
9009         target use mode of TARGET.
9010
9011 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
9012
9013         * gcov-dump.c (tag_summary): Only print summaries for the first
9014         GCOV_COUNTERS_SUMMABLE counters.
9015
9016 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
9017
9018         * config/i386/i386.md (absneg): New code iterator.
9019         (absnegprefix): New code attribute.
9020         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9021         patterns using absneg code iterator.
9022         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9023         using absneg code iterator.
9024         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9025         *neg<mode>2 patterns using absneg code iterator.
9026         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9027         *negextendsfdf2 patterns using absneg code iterator.
9028         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9029         *negextendsfxf2 patterns using absneg code iterator.
9030         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9031         *negextendsfdf2 patterns using absneg code iterator.
9032         * config/i386/sse.md (<code><mode>2): Macroize expander from
9033         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
9034
9035 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
9036
9037         * config/s390/s390.h: Remove the remains of the recent search
9038         & replace action of current_function_outgoing_args_size.
9039
9040 2008-04-10  Ira Rosen  <irar@il.ibm.com>
9041
9042         PR tree-optimization/35821
9043         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9044         NEW_STMT_LIST is not NULL.
9045
9046 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
9047
9048         PR libstdc++/35597
9049         * toplev.c (process_options): Remove -ffunction-sections debugging
9050         warning.
9051
9052 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
9053
9054         PR middle-end/PR28690
9055         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9056         than gen_rtx_fmt_ee to perform more canonicalizations.
9057
9058 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9059
9060         PR driver/35665
9061         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9062
9063 2008-04-09  Richard Guenther  <rguenther@suse.de>
9064
9065         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9066         (dump_function_to_file): Dump function arguments with types.
9067
9068 2008-04-08  Richard Guenther  <rguenther@suse.de>
9069
9070         * fold-const.c (fold_widened_comparison): Do not allow
9071         sign-changes that change the result.
9072
9073 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
9074
9075         PR target/35839
9076         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9077         kinds of indirect references.
9078
9079 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
9080
9081         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9082         GNU Fortran language string.
9083
9084 2008-04-08  Rafael Espindola  <espindola@google.com>
9085
9086         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9087         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9088         * tree.h (tree_call_nonnegative_warnv_p): New.
9089
9090 2008-04-08  Jan Hubicka  <jh@suse.cz>
9091
9092         * function.c (free_after_compilation): Clear out regno_reg_rtx
9093         pointer.
9094
9095 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
9096
9097         Revert
9098         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9099
9100         PR middle-end/PR28690
9101         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9102         same precedence as REG_POINTER and MEM_POINTER operands.
9103
9104 2008-04-08  Richard Guenther  <rguenther@suse.de>
9105
9106         PR middle-end/35834
9107         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9108         for adding index to base.
9109
9110 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
9111
9112         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9113         (MINGW_ENABLE_EXECUTE_STACK): New.
9114         (IN_LIBGCC2): For libgcc include windows.h file for
9115         function declarations.
9116
9117 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
9118
9119         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9120         and tem2 if tem1 is not a REG or MULT.
9121
9122 2008-04-08  Jan Hubicka  <jh@suse.cz>
9123
9124         * function.h (incomming_args): Break out of struct function.
9125         (function_subsections): Break out of struct function.
9126         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9127         return_rtx and hard_reg_initial_vals from struct function.
9128         Kill inl_max_label_num.
9129         (current_function_pops_args, current_function_args_info,
9130         current_function_args_size, current_function_args_size,
9131         current_function_pretend_args_size,
9132         current_function_outgoing_args_size,
9133         current_function_internal_arg_pointer, current_function_return_rtx):
9134         Kill compatibility accestor macros.
9135         * builtins.c (expand_builtin_apply_args_1): Update.
9136         (expand_builtin_next_arg): Update.
9137         * df-scan.c (df_get_call_refs): Update.
9138         * dbxout.c (dbxout_function_end): Update.
9139         * dwarf2out.c (dwarf2out_switch_text_section): Update.
9140         (output_line_info): Update.
9141         (secname_for_decl): Update.
9142         (dwarf2out_var_location): Update.
9143         * function.c (free_after_compilation): Update.
9144         (assign_parm_find_stack_rtl): Update.
9145         (assign_parms): Update.
9146         (expand_dummy_function_end): Update.
9147         (expand_function_end): Update.
9148         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
9149         (expand_call): Update.
9150         (emit_library_call_value_1): Update.
9151         (store_one_arg): Update.
9152         * varasm.c (initialize_cold_section_name): Update.
9153         (unlikely_text_section): Update.
9154         (unlikely_text_section_p): Update.
9155         (assemble_start_function): Update.
9156         (assemble_end_function): Update.
9157         (default_section_type_flags): Update.
9158         (switch_to_section): Update.
9159         * integrate.c (set_decl_abstract_flags): Update.
9160         (get_hard_reg_initial_val): Update.
9161         (has_hard_reg_initial_val): Update.
9162         (allocate_initial_values): Update.
9163         * resource.c (init_resource_info): Update.
9164         * config/alpha/alpha.c (NUM_ARGS): Update.
9165         (direct_return): Update.
9166         (alpha_va_start): Update.
9167         (alpha_sa_size): Update.
9168         (alpha_initial_elimination_offset): Update.
9169         (alpha_expand_prologue): Update.
9170         (alpha_start_function): Update.
9171         (alpha_expand_epilogue): Update.
9172         (unicosmk_initial_elimination_offset):
9173         * config/alpha/alpha.md (call expander): Update.
9174         * config/s390/s390.c (s390_register_info): Update.
9175         (s390_register_info): Update.
9176         (s390_frame_info): Update.
9177         (s390_initial_elimination_offset): Update.
9178         (s390_build_builtin_va_list): Update.
9179         (s390_va_start): Update.
9180         * config/spu/spu.c (direct_return): Update.
9181         (spu_expand_prologue): Update.
9182         (spu_initial_elimination_offset): Update.
9183         (spu_build_builtin_va_list): Update.
9184         (spu_va_start): Update.
9185         * config/sparc/sparc.c (sparc_init_modes): Update.
9186         (sparc_compute_frame_size): Update.
9187         (function_value): Update.
9188         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9189         * config/i386/i386.md (return expander): Update.
9190         * config/i386/i386.c (ix86_va_start): Update.
9191         (ix86_can_use_return_insn_p): Update.
9192         (ix86_compute_frame_layout): Update.
9193         (ix86_expand_epilogue): Update.
9194         * config/sh/sh.c (output_stack_adjust): Update.
9195         (calc_live_regs): Update.
9196         (sh_expand_prologue): Update.
9197         (sh_builtin_saveregs): Update.
9198         (sh_va_start): Update.
9199         (initial_elimination_offset): Update.
9200         (sh_allocate_initial_value): Update.
9201         (sh_function_ok_for_sibcall): Update.
9202         (sh_get_pr_initial_val): Update.
9203         * config/sh/sh.md (return expander): Update.
9204         * config/avr/avr.c (frame_pointer_required_p): UPdate.
9205         * config/crx/crx.c (crx_compute_frame): UPdate.
9206         (crx_initial_elimination_offset): UPdate.
9207         * config/xtensa/xtensa.c (compute_frame_size): Update
9208         (xtensa_builtin_saveregs): Update.
9209         (xtensa_va_start): Update.
9210         (order_regs_for_local_alloc): Update.
9211         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9212         (xstormy16_expand_builtin_va_start): Update.
9213         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9214         * config/m68hc11/m68hc11.md (return expanders): Update.
9215         * config/m68hc11/m68hc11.c (expand_prologue): Update.
9216         (expand_epilogue): Update.
9217         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9218         (cris_simple_epilogue): Update.
9219         (cris_expand_prologue): Update.
9220         (cris_expand_epilogue): Update.
9221         * config/iq2000/iq2000.c (iq2000_va_start): Update.
9222         (compute_frame_size): Update.
9223         * config/mt/mt.c (mt_compute_frame_size): Update.
9224         * config/mn10300/mn10300.c (expand_prologue): Update.
9225         (expand_epilogue): Update.
9226         (initial_offset): Update.
9227         (mn10300_builtin_saveregs):
9228         * config/mn10300/mn10300.md (return expander): Update.
9229         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9230         (ia64_initial_elimination_offset): Update.
9231         (ia64_initial_elimination_offset): Update.
9232         (ia64_expand_prologue): Update.
9233         * config/m68k/m68k.md (return expander): Update.
9234         * config/rs6000/rs6000.c (rs6000_va_start): Update.
9235         (rs6000_stack_info): Update.
9236         * config/mcore/mcore.c (layout_mcore_frame): Update.
9237         (mcore_expand_prolog): Update.
9238         * config/arc/arc.c (arc_compute_frame_size): Update.
9239         * config/score/score3.c (score3_compute_frame_size): Update.
9240         * config/score/score7.c (score7_compute_frame_size): Update.
9241         * config/arm/arm.c (use_return_insn): Update.
9242         (thumb_find_work_register): Update.
9243         (arm_compute_save_reg_mask): Update.
9244         (arm_output_function_prologue): Update.
9245         (arm_output_epilogue): Update.
9246         (arm_size_return_regs): Update.
9247         (arm_get_frame_offsets): Update.
9248         (arm_expand_prologue): Update.
9249         (thumb_exit): Update.
9250         (thumb_unexpanded_epilogue): Update.
9251         (thumb1_output_function_prologue): Update.
9252         * config/pa/pa.md (return expander): Update.
9253         * config/pa/pa.c (compute_frame_size): Update.
9254         (hppa_builtin_saveregs): Update.
9255         * config/mips/mips.c (mips_va_start): Update.
9256         (mips16_build_function_stub): Update.
9257         (mips_compute_frame_info): Update.
9258         (mips_restore_gp): Update.
9259         (mips_output_function_prologue): Update.
9260         (mips_expand_prologue): Update.
9261         * config/v850/v850.c (compute_frame_size): Update.
9262         (expand_prologue): * config/mmix/mmix.c (along): update.
9263         (mmix_initial_elimination_offset): update.
9264         (mmix_reorg): update.
9265         (mmix_use_simple_return): update.
9266         (mmix_expand_prologue): update.
9267         (mmix_expand_epilogue): Update.
9268         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9269         (emit_link_insn): Update.
9270
9271 2008-04-08  Anatoly Sokolov <aesok@post.ru>
9272
9273         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
9274         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
9275         instructions.
9276         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
9277         atmega103 device.
9278
9279 2008-04-07  Jan Hubicka  <jh@suse.cz>
9280
9281         * function.h (rtl): Rename to x_rtl.
9282         (crtl): New define.
9283         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9284         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9285         used_temp_slots avail_temp_slots, temp_slot_level,
9286         nonlocal_goto_handler_labels): Update accesstors.
9287         (rtl): New global variable.
9288         (struct function): Move some fileds to rtl_data.
9289         (get_arg_pointer_save_area): Update prototype.
9290         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9291         get_arg_pointer_save_area.
9292         * expr.c (init_expr): Update
9293         * function.c (get_frame_size): Update
9294         (assign_stack_local): Update
9295         (expand_function_end): Update.
9296         (get_art_pointer_save_area): Update
9297         * function.h 
9298         * emit-rtl.c (rtl): Declare.
9299         (regno_reg_rtx): Declare.
9300         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9301         Update.
9302         (gen_reg_rtx): Update.
9303         * varasm.c (n_deferred_constatns): Update accestor.
9304         (init_varasm_status): Do not allocate varasm_status.
9305         (force_const_mem, get_pool_size, output_constant_pool): Update.
9306         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9307         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9308         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9309         * sparc/sparc.h (INIT_EXPANDERS): Update.
9310         * ia64/ia64.h (INIT_EXPANDERS): Update.
9311
9312 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
9313
9314         * reload.c (push_secondary_reload): Add missing break to for loop.
9315
9316 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9317
9318         PR middle-end/PR28690
9319         * rtlanal.c: Update copyright years.
9320         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9321         as REG_POINTER and MEM_POINTER operands.
9322         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9323         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9324         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9325         * gcse.c: Update copyright years.
9326         (pre_delete): Call gen_reg_rtx_and_attrs.
9327         (hoist_code): Likewise.
9328         (build_store_vectors): Likewise.
9329         (delete_store): Likewise.
9330         * loop-invariant.c (move_invariant_reg): Likewise.
9331         Update copyright years.
9332
9333 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
9334
9335         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9336         control string instead of quoted.
9337
9338 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9339
9340         * doc/rtl.texi: Rewrite of subreg section.
9341
9342 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
9343
9344         PR/35842
9345         * config/i386/i386.c (legitimize_pic_address): Add treating
9346         of dllimport SYM_REF's.
9347         (legitimize_dllimport_symbol): Add prototype.
9348
9349 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9350
9351         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
9352         reference in constructor with non self-referential type.
9353
9354 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9355
9356         Removal of Return with Depressed Stack Pointer support
9357         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9358         (ECF_SP_DEPRESSED): Likewise.
9359         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9360         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9361         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9362         (expand_call): Do not test ECF_SP_DEPRESSED.
9363         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9364         * function.c (keep_stack_depressed): Delete.
9365         (handle_epilogue_set): Likewise.
9366         (update_epilogue_consts): Likewise.
9367         (emit_equiv_load): Likewise.
9368         (thread_prologue_and_epilogue_insns): Remove support for Return with
9369         Depressed Stack Pointer.
9370         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9371
9372 2008-04-06  Richard Guenther  <rguenther@suse.de>
9373
9374         PR tree-optimization/35400
9375         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9376         information from SSA_NAMEs.
9377
9378 2008-04-06  Anatoly Sokolov <aesok@post.ru>
9379
9380         * config/avr/avr.h (avr_mega_p): Remove declaration.
9381         (AVR_MEGA): Remove macro.
9382         * config/avr/avr.c (avr_mega_p): Remove variable.
9383         (avr_override_options): Remove inicializion of avr_mega_p.
9384         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9385         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9386         (avr_jump_mode): (Ditto.).
9387         (avr_output_progmem_section_asm_op): (Ditto.).
9388         (avr_asm_init_sections): (Ditto.).
9389         (avr_asm_init_sections): (Ditto.).
9390         (avr_rtx_costs): (Ditto.).
9391         * config/avr/avr.md: (Ditto.).
9392         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
9393         '__AVR_MEGA__'.
9394
9395 2008-04-06  Richard Guenther  <rguenther@suse.de>
9396
9397         PR tree-optimization/35842
9398         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9399         is_gimple_invariant_address.
9400
9401 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9402
9403         * gcc.c (default_compilers): Sync Fortran extensions list with
9404         that in fortran/lang-specs.h.
9405         * doc/invoke.texi: Likewise.
9406         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9407         * dwarf2out.c (gen_compile_unit_die): Likewise.
9408
9409 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
9410
9411         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9412
9413 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
9414
9415         PR target/12329
9416         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9417         attribute is used for nested functions.
9418
9419 2008-04-05  Jan Hubicka  <jh@suse.cz>
9420
9421         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9422
9423         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9424         letter argument.
9425         (dump_files): Update.
9426         (enable_rtl_dump_file): Do not accept letter argument.
9427         * tree-pass.h (dump_file_info): Remove letter argument.
9428         * toplev.c (decode_d_option): Update -da handling.
9429         * toplev.h (enable_rtl_dump_file): Update prototype.
9430         * passes.c (register_one_dump_file): Do not accept IPA argument; work
9431         it out based on pass type.
9432         (register_dump_files_1): Likewise.
9433         (init_optimization_passes): Update register_one_dump_file calls.
9434         (execute_one_pass): Sanity check that IPA passes are called at IPA
9435         level and RTL passes at RTL level.
9436         (execute_pass_list): IPA pass can not be after or subpass of
9437         GIMPLE/RTL pass.
9438         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9439         disallov RTL subpasses of IPA subpasses.
9440
9441 2008-04-05  Ben Elliston  <bje@au.ibm.com>
9442
9443         * tree-cfg.c (need_fake_edge_p): Return false for calls to
9444         builtins that return exactly once and do not throw. Cache call to
9445         call_expr_flags.
9446
9447 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9448
9449         PR rtl-optimization/34916
9450         PR middle-end/35519
9451         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9452         between instruction pairs.
9453
9454 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
9455
9456         * doc/invoke.texi: Document -mbitops for SH.
9457         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9458         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9459         * config/sh/sh.c (print_operand): Add %t operand code.
9460         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9461         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9462         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9463         (extendqihi2): Likewise.
9464         (movqi_i): Likewise.
9465         (insv): Use bset, bclr and bst instructions for SH2A if possible.
9466         (extv): Use bld instruction for SH2A if possible.
9467         (extzv): Likewise.
9468         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9469         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9470         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9471         (bset.b, bclr.b): Define peepholes.
9472         * config/sh/sh.opt (mbitops): New option.
9473
9474 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
9475
9476         PR target/35620
9477         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9478         and view convert expression.
9479
9480 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9481
9482         PR target/35364
9483         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9484
9485 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
9486
9487         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9488
9489         * config/i386/cpuid.h (bit_AES): New.
9490         (bit_PCLMUL): Likewise.
9491
9492         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9493         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
9494         SSE2 if AES or PCLMUL is enabled.
9495         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9496         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9497         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9498         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9499         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9500         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9501         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9502         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9503         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9504         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9505         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9506         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9507         __builtin_ia32_aeskeygenassist128 and
9508         __builtin_ia32_pclmulqdq128.
9509         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9510         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9511         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
9512
9513         * config/i386/i386.h (TARGET_AES): New.
9514         (TARGET_PCLMUL): Likewise.
9515         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9516
9517         * config/i386/i386.md (UNSPEC_AESENC): New.
9518         (UNSPEC_AESENCLAST): Likewise.
9519         (UNSPEC_AESDEC): Likewise.
9520         (UNSPEC_AESDECLAST): Likewise.
9521         (UNSPEC_AESIMC): Likewise.
9522         (UNSPEC_AESKEYGENASSIST): Likewise.
9523         (UNSPEC_PCLMUL): Likewise.
9524
9525         * config/i386/i386.opt (maes): New.
9526         (mpclmul): Likewise.
9527
9528         * config/i386/sse.md (aesenc): New pattern.
9529         (aesenclast): Likewise.
9530         (aesdec): Likewise.
9531         (aesdeclast): Likewise.
9532         (aesimc): Likewise.
9533         (aeskeygenassist): Likewise.
9534         (pclmulqdq): Likewise.
9535
9536         * config/i386/wmmintrin.h: New.
9537
9538         * doc/extend.texi: Document AES and PCLMUL built-in function.
9539
9540         * doc/invoke.texi: Document -maes and -mpclmul.
9541
9542 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
9543
9544         * function.c (free_after_parsing): Replace with
9545         cxx_push_function_context from C++ front-end.
9546         (allocate_struct_function): Don't call langhook.
9547         * langhooks.h (struct lang_hooks_for_functions): Delete.
9548         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9549         member "function".
9550         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9551         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9552         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9553         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9554         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9555         remove LANG_HOOKS_FUNCTION_INITIALIZER.
9556         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9557
9558         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9559         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9560         
9561 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9562
9563         PR c/35440
9564         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9565         for all types.
9566
9567 2008-04-04  Richard Guenther  <rguenther@suse.de>
9568
9569         PR middle-end/35823
9570         * fold-const.c (optimize_minmax_comparison): Use the correct
9571         type for the constant in the simplified comparison.
9572
9573 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
9574
9575         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9576         Pass L2 size as "--param l2-cache-size" to the compiler.
9577         (decode_l2_cache): New function to decode L2 cache parameters using
9578         0x8000006 extended cpuid function.
9579         (detect_caches_amd): Determine parameters of L2 cache using
9580         decode_l2_caches function.
9581         (decode_caches_intel): Decode L2 cache parameters.
9582         (detect_caches_intel): Determine L2 cache parameters using
9583         decode_caches_intel and decode_l2_caches functions.
9584
9585 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
9586
9587         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9588         secondary input reload for subword loads from the constant pool.
9589
9590 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
9591
9592         PR target/35713
9593         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9594           constants of the appropriate size for runtime calculations.
9595
9596         PR c/35712
9597         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9598           decimal-float literal constant zero.
9599
9600 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
9601
9602         PR c/35738
9603         * c-parser.c (c_parser_omp_atomic): Call
9604         default_function_array_conversion on the RHS.
9605
9606         PR middle-end/35818
9607         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9608         call is_variable_sized if decl has incomplete type.
9609
9610 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
9611
9612         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9613
9614 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
9615
9616         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9617         iterators.
9618         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9619         (sgt<u>): Merge sgt and sgtu into new expander.
9620         (sgt, sgtu): Remove expanders.
9621         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9622         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9623         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9624         *sgtu_<mode>_mips16 into new pattern.
9625         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9626         (sge<u>): Merge sge and sgeu into new expander.
9627         (sge, sgeu): Remove expanders.
9628         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9629         new pattern.
9630         (*sge_<mode>, second *sge_<mode>): Remove patterns.
9631         (slt<u>): Merge slt and sltu into new expander.
9632         (slt, sltu): Remove expanders.
9633         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9634         (*slt_<mode>, *sltu_<mode>): Remove patterns.
9635         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9636         *sltu_<mode>_mips16 into new pattern.
9637         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9638         (sle<u>): Merge sle and sleu into new expander.
9639         (sle, sleu): Remove expanders.
9640         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9641         (*sle_<mode>, *sleu_<mode>): Remove patterns.
9642         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9643         *sleu_<mode>_mips16 into new pattern.
9644         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9645
9646 2008-04-03  Jan Hubicka  <jh@suse.cz>
9647
9648         PR tree-optimization/35795
9649         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9650         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9651         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9652         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9653         * score/score3.c (score3_output_mi_thunk): Likewise.
9654         * score/score7.c (score7_output_mi_thunk): Likewise.
9655         * mips/mips.c (mips_output_mi_thunk): Likewise.
9656
9657 2008-04-03  Richard Guenther  <rguenther@suse.de>
9658
9659         * tree-vrp.c (extract_range_from_unary_expr): Handle all
9660         conversions.  Simplify code.
9661
9662 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9663
9664         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9665
9666 2008-04-03  Tom Tromey  <tromey@redhat.com>
9667             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9668
9669         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9670         * config/bfin/t-bfin-linux (generated_files): Add
9671         linux-sysroot-suffix.h.
9672         * doc/install.texi (Prerequisites): Require make 3.80.
9673         * doc/sourcebuild.texi (Front End Directory): Document new
9674         variable.
9675         * Makefile.in (generated_files): New variable.
9676         (ALL_HOST_OBJS): New variable.
9677         ($(ALL_HOST_OBJS)): New target.
9678
9679 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9680
9681         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9682         (remap_block): Call id->transform_lang_insert_block instead
9683         of langhook.
9684         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9685         Set id.transform_lang_insert_block to NULL.
9686         (clone_body): Move to cp/optimize.c
9687         * tree-inline.h (struct copy_body_data): Change
9688         transform_lang_insert_block to function pointer.
9689         (copy_generic_body, copy_decl_no_change): Export.
9690         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9691         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9692         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9693
9694         * c-tree.h (insert_block): Kill.
9695         * c-decl.c (insert_block): Kill.
9696
9697 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9698
9699         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9700         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9701         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9702         argument.
9703         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9704         argument, call {push,pop}_function_context from here.
9705         * c-parser.c: Use c_{push,pop}_function_context.
9706
9707         * function.c (push_function_context_to): Move meat ...
9708         (push_function_context): ... here.  Simplify.
9709         * function.c (pop_function_context_from): Move meat ...
9710         (pop_function_context): ... here.  Simplify.
9711         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9712         leave_nested).
9713         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9714         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9715         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9716         * tree.h (push_function_context_to, pop_function_context_from): Remove.
9717
9718 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9719
9720         * expmed.c (extract_force_align_mem_bit_field): Remove.
9721
9722 2008-04-03  Richard Guenther  <rguenther@suse.de>
9723
9724         PR middle-end/35800
9725         * expr.h (try_casesi): Adjust prototype.
9726         * expr.c (try_casesi): Take fallback label as extra parameter.
9727         Use that for gen_casesi if default_label is NULL.
9728         * stmt.c (expand_case): Pass fallback label to try_casesi,
9729         make sure to fill gaps with a fallback label if default_label
9730         is not present.
9731
9732 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
9733
9734         PR target/35801
9735         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9736
9737 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9738
9739         * expmed.c (extract_split_bit_field): Remove if (0) code.
9740         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9741         (do_ds_constraint): Likewise.
9742
9743 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
9744
9745         * doc/cppopts.texi (-dU): Document.
9746         * c-common.h (flag_dump_macros): Update comment.
9747         * c-opts.c (handle_OPT_d): Handle -dU.
9748         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9749         dump_queued_macros, cb_used_define, cb_used_undef): New.
9750         (init_pp_output): Handle -dU.
9751         (cb_line_change): Call dump_queued_macros.
9752         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9753
9754 2008-04-02  Anatoly Sokolov <aesok@post.ru>
9755
9756         * config/avr/predicates.md (io_address_operand): New predicate. 
9757         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9758         * config/avr/avr.c (avr_io_address_p): Remove function.
9759         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
9760         'avr_io_address_p' function.
9761         (out_movhi_r_mr): (Ditto.).
9762         (out_movqi_mr_r): (Ditto.).
9763         (out_movhi_mr_r): (Ditto.).
9764         (avr_address_cost): (Ditto.).
9765
9766 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
9767
9768         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9769         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9770         in 32bit mode when XMM registers are available to avoid store
9771         forwarding stalls.
9772         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9773         corresponding post-reload splitters.
9774
9775 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9776
9777         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9778         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
9779         __builtin_ia32_roundss.
9780         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9781         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9782         __builtin_ia32_roundss.
9783         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9784         IX86_BUILTIN_SHUFPD here.
9785
9786 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9787
9788         * config/i386/i386.md (plogic): New.
9789         (plogicprefix): Likewise.
9790
9791         * config/i386/mmx.md (mmx_<code><mode>3): New.
9792         (mmx_and<mode>3): Removed.
9793         (mmx_ior<mode>3): Likewise.
9794         (mmx_xor<mode>3): Likewise.
9795
9796         * config/i386/sse.md (<code><mode>3): New.
9797         (*<code><mode>3): Likewise.
9798         (*<code><mode>3): Likewise.
9799         (<code><mode>3): Likewise.
9800         (*sse_<code><mode>3): Likewise.
9801         (*sse2_<code><mode>3): Likewise.
9802         (<code>tf3): Likewise.
9803         (*<code>tf3): Likewise.
9804         (and<mode>3): Likewise.
9805         (*and<mode>3): Likewise.
9806         (ior<mode>3): Removed.
9807         (*ior<mode>3): Likewise.
9808         (xor<mode>3): Likewise.
9809         (*xor<mode>3): Likewise.
9810         (*and<mode>3): Likewise.
9811         (*ior<mode>3): Likewise.
9812         (*xor<mode>3): Likewise.
9813         (and<mode>3): Likewise.
9814         (*sse_and<mode>3): Likewise.
9815         (*sse2_and<mode>3): Likewise.
9816         (andtf3): Likewise.
9817         (*andtf3): Likewise.
9818         (ior<mode>3): Likewise.
9819         (*sse_ior<mode>3): Likewise.
9820         (*sse2_ior<mode>3): Likewise.
9821         (iortf3): Likewise.
9822         (*iortf3): Likewise.
9823         (xor<mode>3): Likewise.
9824         (*sse_xor<mode>3): Likewise.
9825         (*sse2_xor<mode>3): Likewise.
9826         (xortf3): Likewise.
9827         (*xortf3): Likewise.
9828
9829 2008-04-02  Richard Guenther  <rguenther@suse.de>
9830
9831         PR tree-optimization/14495
9832         PR tree-optimization/34793
9833         * tree-vrp.c (struct switch_update): New structure.
9834         (to_remove_edges, to_update_switch_stmts): New VECs.
9835         (simplify_switch_using_ranges): New function.  Remove not taken
9836         case labels and edges.
9837         (simplify_stmt_using_ranges): Call it.
9838         (identify_jump_threads): Mark edges we have queued for removal
9839         so we don't thread them.
9840         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9841         case label vector.
9842         * tree-cfg.c (group_case_labels): Deal with missing default label.
9843         (tree_verify_flow_info): Allow missing default label.
9844         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9845         (emit_case_nodes): Likewise.
9846         (expand_case): Do not rely on the default label to be present.
9847         * expr.c (try_casesi): Deal with NULL default_label.
9848         (do_tablejump): Likewise.
9849
9850 2008-04-02  Richard Guenther  <rguenther@suse.de>
9851
9852         PR tree-optimization/14495
9853         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9854         SWITCH_EXPR here ...
9855         (vrp_visit_switch_stmt): ... but here (new function).
9856         (find_case_label_index): New helper function.
9857         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9858
9859 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9860
9861         * fwprop.c: Fix ISO-C99ism.
9862
9863 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9864
9865         PR bootstrap/35752
9866         * Makefile.in (objdir): Set it here.
9867         * configure.ac: Not here.  Find dynamic linker characteristics.
9868         * exec-tool.in: Use them.
9869         * aclocal.m4: Regenerate.
9870         * configure: Regenerate.
9871
9872 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9873
9874         * expr.c (expand_var): Delete it.
9875         * expr.h (expand_var): Delete prototype.
9876         * function.c (expand_function_start): Use expand_decl instead.
9877         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9878         langhook.
9879
9880 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
9881
9882         PR rtl-optimization/35542
9883         * fwprop.c (forward_propagate_and_simplify): Replace
9884         loc_reg_mentioned_in_p with reg_mentioned_p.
9885
9886 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9887
9888         PR rtl-optimization/35281
9889         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9890         (propagate_rtx_1): Handle PR_HANDLE_MEM.
9891         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9892         (varying_mem_p): Move above propagate_rtx.
9893         (all_uses_available_at): Do not check MEMs.
9894
9895 2008-04-02  Rafael Espindola  <espindola@google.com>
9896
9897         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9898         (register_edge_assert_for_2): Split the cond argument.
9899         (register_edge_assert_for_1): Adjust for the change in
9900         register_edge_assert_for_2.
9901         (register_edge_assert_for): Split the cond argument.
9902         (find_switch_asserts): Adjust for the change in
9903         register_edge_assert_for.
9904
9905 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
9906
9907         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9908         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9909         offsets for 64-bit mingw.
9910         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9911         abi for x86_64-pc-mingw.
9912
9913 2008-04-02  Richard Guenther  <rguenther@suse.de>
9914
9915         * tree-vrp.c (extract_range_from_assert): Make sure to not
9916         produce range min/max with TREE_OVERFOW set.
9917         If merging a anti-range and a range keep the anti-range if
9918         the range covers all values of the type.
9919         (register_edge_assert_for_2): Only allow sign-changing
9920         conversions in detecting canonical range checks.  Also
9921         register an assert for the unsigned name if useful.
9922
9923         PR tree-optimization/35787
9924         * tree-vrp.c (vrp_val_max): New function.
9925         (vrp_val_min): Likewise.
9926         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9927         (vrp_val_is_min): Likewise.
9928         (supports_overflow_infinity): Use vrp_val_{min,max}.
9929         (negative_overflow_infinity): Likewise.
9930         (positive_overflow_infinity): Likewise.
9931         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9932         (is_positive_overflow_infinity): Likewise.
9933         (is_overflow_infinity): Likewise.
9934         (avoid_overflow_infinity): Use vrp_val_{min,max} and
9935         vrp_val_is_{min,max}.
9936         (set_and_canonicalize_value_range): Canonicalize anti-ranges
9937         to ranges if possible.  Avoid empty ranges.
9938
9939 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9940
9941         PR middle-end/35705
9942         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9943         the expression is a function address.
9944
9945 2008-04-01  George Helffrich  <george@gcc.gnu.org>
9946
9947         PR fortran/35154, fortran/23057
9948         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9949         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9950         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9951         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9952         in common.
9953         (dbxout_syms): Check for COMMON-based symbol and wrap in
9954         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9955         in bracket for efficiency.
9956
9957         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9958         using DW_TAG_common_block + member offset.
9959         (add_pubname_string): New function.
9960         (dw_expand_expr): New function to find block name and offset for
9961         COMMON var.
9962         (common_check): New function to check whether symbol in Fortran COMMON.
9963         (gen_variable_die): If COMMON, use DW_TAG_common_block.
9964
9965 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
9966
9967         PR c/35436
9968         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9969
9970 2008-04-02  Ben Elliston  <bje@au.ibm.com>
9971
9972         * config/v850/v850.md (casesi): Remove if (0) code.
9973         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9974         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9975
9976 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
9977
9978         * config/i386/i386.md (rex64suffix): New mode attribute.
9979         (floathi<mode>2): Disable expander for SSE math.
9980         (*floathi<mode>2_1): New insn insn_and_split pattern.
9981         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9982         corresponding post-reload splitters.
9983         (*floathi<mode>2_i387): New macroized insn pattern.
9984         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9985         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9986         insn_and_split pattern.
9987         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9988         New macroized instruction patterns and corresponding post-reload
9989         splitters.
9990         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9991         and corresponding post-reload splitters.
9992         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9993         New macroized instruction patterns.
9994         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9995         macroized instruction patterns and corresponding post-reload splitters.
9996         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9997         corresponding post-reload splitters.
9998         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9999         New macroized instruction patterns.
10000         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10001         corresponding post-reload splitters.
10002         (*floatsi<mode>2_i387): New macroized instruction patterns.
10003
10004 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
10005
10006         * config/i386/i386.md (smaxmin): New.
10007         (umaxmin): Likewise.
10008         (maxminiprefix): Likewise.
10009         (maxminfprefix): Likewise.
10010         (<code><mode>3): Likewise.
10011         (smin<mode>3): Removed.
10012         (smax<mode>3): Likewise.
10013
10014         * config/i386/mmx.md (mmx_<code>v2sf3): New.
10015         (mmx_<code>v4hi3): Likewise.
10016         (mmx_<code>v8qi3): Likewise.
10017         (mmx_smaxv2sf3): Removed.
10018         (mmx_sminv2sf3): Likewise.
10019         (mmx_umaxv8qi3): Likewise.
10020         (mmx_smaxv4hi3): Likewise.
10021         (mmx_uminv8qi3): Likewise.
10022         (mmx_sminv4hi3): Likewise.
10023
10024         * config/i386/sse.md (<addsub><mode>3): New.
10025         (*<addsub><mode>3): Likewise.
10026         (<sse>_vm<addsub><mode>3): Likewise.
10027         (<maxmin><mode>3): Likewise.
10028         (*<maxmin><mode>3_finite): Likewise.
10029         (*<maxmin><mode>3): Likewise.
10030         (<sse>_vm<maxmin><mode>3): Likewise.
10031         (sse3_h<addsub>v4sf3): Likewise.
10032         (sse3_h<addsub>v2df3): Likewise.
10033         (<maxmin>v16qi3): Likewise.
10034         (*<maxmin>v16qi3): Likewise.
10035         (<maxmin>v8hi3): Likewise.
10036         (*<maxmin>v8hi3): Likewise.
10037         (*sse4_1_<maxmin><mode>3): Likewise.
10038         (*sse4_1_<maxmin><mode>3): Likewise.
10039         (add<mode>3): Removed.
10040         (*add<mode>3): Likewise.
10041         (<sse>_vmadd<mode>3): Likewise.
10042         (sub<mode>3): Likewise.
10043         (*sub<mode>3): Likewise.
10044         (<sse>_vmsub<mode>3): Likewise.
10045         (smin<mode>3): Likewise.
10046         (*smin<mode>3_finite): Likewise.
10047         (*smin<mode>3): Likewise.
10048         (<sse>_vmsmin<mode>3): Likewise.
10049         (smax<mode>3): Likewise.
10050         (*smax<mode>3_finite): Likewise.
10051         (*smax<mode>3): Likewise.
10052         (<sse>_vmsmax<mode>3): Likewise.
10053         (sse3_haddv4sf3): Likewise.
10054         (sse3_haddv2df3): Likewise.
10055         (sse3_hsubv4sf3): Likewise.
10056         (sse3_hsubv2df3): Likewise.
10057         (umaxv16qi3): Likewise.
10058         (*umaxv16qi3): Likewise.
10059         (smaxv8hi3): Likewise.
10060         (*smaxv8hi3): Likewise.
10061         (*sse4_1_smax<mode>3): Likewise.
10062         (*sse4_1_umax<mode>3): Likewise.
10063         (uminv16qi3): Likewise.
10064         (*uminv16qi3): Likewise.
10065         (sminv8hi3): Likewise.
10066         (*sminv8hi3): Likewise.
10067         (*sse4_1_smin<mode>3): Likewise.
10068         (*sse4_1_umin<mode>3): Likewise.
10069
10070 2008-04-01  Rafael Espindola  <espindola@google.com>
10071
10072         * tree-cfg.c (verify_expr): remove in_phi.
10073         (verify_stmt): Don't call walk_tree with verify_expr. Use
10074         is_gimple_min_invariant instead of is_gimple_val.
10075
10076 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
10077
10078         * doc/include/gpl_v3.texi: Update for manpage generation.
10079         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10080         gpl.texi.
10081         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10082         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10083         gpl_v3.texi instead of gpl.texi.
10084         (gpl.pod): New.
10085
10086 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
10087
10088         PR pch/13675
10089         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10090
10091 2008-04-01  Rafael Espindola  <espindola@google.com>
10092
10093         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10094         (extract_code_and_val_from_cond): Use
10095         extract_code_and_val_from_cond_with_ops.
10096
10097 2008-04-01  Jan Hubicka  <jh@suse.cz>
10098
10099         * function.c (free_after_compilation): Free epilogue_delay_list.
10100         (prepare_function_start): Assert that previous compilation was freed.
10101
10102 2008-04-01  Jan Hubicka  <jh@suse.cz>
10103             Jim Wilson  <wilson@tuliptree.org>
10104             Andreas Tobler <andreast@gcc.gnu.org>
10105
10106         PR middle-end/35781
10107         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10108         rtl.emit instead cfun->emit.
10109         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10110         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10111
10112 2008-04-01  Ben Elliston  <bje@au.ibm.com>
10113
10114         * doc/c-tree.texi (Function Basics): Fix grammatical error.
10115
10116 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
10117
10118         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10119         New options
10120         (fprofile-use): Add var flag_profile_use
10121         * coverage.c (coverage_begin_output): Do not open a gcno file for
10122         output only if -ftest-coverage is set.
10123         Do not add getpwd() to gcda file path.
10124         (build_gcov_info): Check the new flag
10125         flag_profile_datafile_relative_path.
10126         (coverage_init): Use profile_data_prefix.
10127         Read profile counter only if flag_profile_use is set.
10128         * opts.c (common_handle_option): New option fprofile-use=,
10129         fprofile-dir=, fprofile-generate=.
10130         * toplev.c (profile_data_prefix): New variable definition.
10131         * toplev.h (profile_data_prefix): New declaration.
10132         * doc/invoke.tex (Option Summary, Optimization Options):
10133         Add new options.
10134
10135 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
10136
10137         * varasm.c (output_constant_pool_1): In LABEL_REF check,
10138         use tmp consistently.
10139
10140         PR target/35695
10141         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
10142         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10143         UNSPEC_FR_RECIP_APPROX_RES.
10144         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
10145
10146 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
10147
10148         PR c/35750
10149         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
10150
10151 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10152
10153         PR middle-end/30186
10154         * fold-const.c (fold_indirect_ref_1): Support accessing non first
10155         element of the vector via a pointer.
10156
10157 2008-03-31  Ian Lance Taylor  <iant@google.com>
10158
10159         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
10160
10161 2008-03-31  Jan Hubicka  <jh@suse.cz>
10162
10163         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10164         get_arg_pointer_save_area.
10165         * expr.c (init_expr): Just clear out rtl.expr.
10166         * function.c (free_after_compilation): Clear out whole RTL structure.
10167         (get_func_frame_size): Merge into ...
10168         (get_frame_size): ... this one.
10169         (assign_stack_local_1): Merge into ...
10170         (assign_stack_local): ... this one.
10171         (expand_function_end): Update call of get_arg_pointer_save_area.
10172         (get_art_pointer_save_area): Remove cfun argument.
10173         * function.h (emit_status): regno_pointer_align does not need length
10174         attribute. Move x_regno_reg_rtx to ...
10175         (regno_reg_rtx): ... new global array.
10176         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10177         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10178         apply_args_value, forced_labels, stack_pointer_delta):
10179         Update accestors.
10180         (struct varasm_status): Move here from varasm.c
10181         (struct rtl_data): New. Move here some fields from struct function.
10182         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10183         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10184         used_temp_slots avail_temp_slots, temp_slot_level,
10185         nonlocal_goto_handler_labels): Update accesstors.
10186         (rtl): New global variable.
10187         (struct function): Move some fileds to rtl_data.
10188         (get_arg_pointer_save_area): Update prototype.
10189         * emit-rtl.c (rtl): Declare.
10190         (regno_reg_rtx): Declare.
10191         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10192         Update.
10193         (gen_reg_rtx): Update.
10194         (init_virtual_regs): Do not tate emit_status argument.
10195         (init_emit): Do not allocate emit.
10196         * varasm.c (varasm_statuc): Move to function.h.
10197         (n_deferred_constatns): Update accestor.
10198         (init_varasm_status): Do not allocate varasm_status.
10199         (force_const_mem, get_pool_size, output_constant_pool): Update.
10200         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10201         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10202
10203 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
10204
10205         PR rtl-optimization/35729
10206         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10207         references.
10208
10209 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10210
10211         PR target/32000
10212         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10213         load/store if memory is unaligned.
10214         (*movti_rex64): Likewise.
10215
10216         * config/i386/predicates.md (misaligned_operand): New.
10217
10218 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
10219
10220         PR tree-opt/35431
10221         * tree-ssa-phiopt.c (conditional_replacement): Return early for
10222         complex types.
10223
10224 2008-03-31  Jan Beulich  <jbeulich@novell.com>
10225
10226         * config/ia64/constraints.md: Add 'j' constraint.
10227         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10228         (movdi_internal): Likewise.
10229
10230 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
10231
10232         PR c/35748
10233         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10234
10235 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10236
10237         PR target/35757
10238         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10239         proper error message for the third argument on blendpd and
10240         blendps.
10241
10242         * config/i386/sse.md (blendbits): New.
10243         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10244
10245 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10246
10247         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10248
10249 2008-03-30  Richard Guenther  <rguenther@suse.de>
10250
10251         PR middle-end/31023
10252         * fold-const.c (fold_sign_changed_comparison): Do leave
10253         conversions to base-types alone.
10254
10255 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10256
10257         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10258         the link register if one altivec register is be saved.
10259
10260 2008-03-30  Ben Elliston  <bje@au.ibm.com>
10261
10262         * final.c (final_scan_insn): Remove if (0) code.
10263
10264 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
10265
10266         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10267
10268 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10269
10270         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10271         of V4SFmode to ix86_binary_operator_ok.
10272
10273 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
10274
10275         * config/i386/i386.c (override_options): Initialize
10276         ix86_veclib_handler to ix86_veclibabi_svml when
10277         -mveclibabi=svml is used.
10278         (ix86_veclibabi_svml): New function for SVML ABI style
10279         vectorization support.
10280         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10281
10282 2008-03-28  Rafael Espindola  <espindola@google.com>
10283
10284         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10285         (tree_binary_nonnegative_warnv_p): Make it public.
10286         (tree_single_nonnegative_warnv_p): Make it public.
10287         (tree_invalid_nonnegative_warnv_p): Make it public.
10288         (tree_unary_nonzero_warnv_p): Make it public.
10289         (tree_binary_nonzero_warnv_p): Make it public
10290         (tree_single_nonzero_warnv_p): Make it public.
10291         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10292         (extract_range_from_binary_expr): Split the expr argument.
10293         (extract_range_from_unary_expr): Split the expr argument.
10294         (extract_range_from_comparison): Split the expr argument.
10295         (extract_range_from_expr): Use the new aux functions.
10296         (vrp_evaluate_conditional_warnv): Use
10297         vrp_evaluate_conditional_warnv_with_ops.
10298         * tree.h (tree_unary_nonzero_warnv_p): Declare.
10299         (tree_binary_nonzero_warnv_p): Declare.
10300         (tree_single_nonzero_warnv_p): Declare.
10301         (tree_expr_nonzero_warnv_p): Declare.
10302         (tree_unary_nonnegative_warnv_p): Declare.
10303         (tree_binary_nonnegative_warnv_p): Declare.
10304         (tree_single_nonnegative_warnv_p): Declare.
10305         (tree_invalid_nonnegative_warnv_p): Declare.
10306
10307 2008-03-28  Richard Guenther  <rguenther@suse.de>
10308
10309         PR tree-optimization/30317
10310         PR tree-optimization/30911
10311         PR tree-optimization/34793
10312         * tree-vrp.c (set_and_canonicalize_value_range): New function.
10313         (struct assert_locus_d): New member EXPR.
10314         (register_new_assert_for): Add EXPR parameter to support
10315         ASSERT_EXPR <name, expr OP limit>.
10316         (register_edge_assert_for_1): Adjust callers.
10317         (find_assert_locations): Likewise.
10318         (process_assert_insertions_for): Build condition from expression.
10319         (extract_range_from_assert): Handle ASSERT_EXPRs
10320         of the form ASSERT_EXPR <name, expr OP limit>.
10321         (register_edge_assert_for_2): New helper registering
10322         asserts for comparisons.  Recognize range tests of the form
10323         (unsigned)i - CST1 OP CST2.
10324         (register_edge_assert_for_1): Use it.
10325         (register_edge_assert_for): Likewise.
10326         (needs_overflow_infinity): Integer sub-types
10327         do not need overflow infinities.
10328         (vrp_val_is_max): The extreme values of integer sub-types
10329         are those of the base type.
10330         (vrp_val_is_min): Likewise.
10331         * tree.def (ASSERT_EXPR): Document extra allowed conditional
10332         expressions.
10333
10334 2008-03-28  Nick Clifton  <nickc@redhat.com>
10335
10336         PR target/31110
10337         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10338         Return GENERAL_REGS for stack adjustment reloads.
10339
10340 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10341
10342         PR target/31334
10343         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10344         const_vector when all the vectors are constant.
10345
10346 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
10347
10348         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10349         comparisons.
10350         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10351         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10352         (scc_sf): New.
10353         (s<code>_sf): Use new scc_sf attribute for opcode names.
10354
10355 2008-03-27  Tom Tromey  <tromey@redhat.com>
10356
10357         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10358         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10359         config/spu/t-spu-elf, config/i386/t-interix,
10360         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10361         config/i386/x-darwin, config/i386/x-mingw32,
10362         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10363         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10364         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10365         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10366         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10367         config/rs6000/x-darwin, config/rs6000/t-rs6000,
10368         config/score/t-score-elf, config/arm/t-strongarm-pe,
10369         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10370         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10371         Revert automatic dependency patch.
10372
10373 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10374
10375         PR target/35657
10376         * config/i386/i386.c (ix86_function_arg_boundary): Align
10377         decimal floating point to its natural boundary.
10378
10379 2008-03-27  Richard Guenther  <rguenther@suse.de>
10380
10381         PR middle-end/35716
10382         * fold-const.c (fold_comparison): Restrict distinct decl
10383         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
10384         solely rely on operand_equal_p.
10385
10386 2008-03-27  Richard Guenther  <rguenther@suse.de>
10387
10388         PR c/32511
10389         * c-common.c (handle_weak_attribute): Reject combination of
10390         weak and inline.
10391
10392 2008-03-27  Richard Guenther  <rguenther@suse.de>
10393
10394         PR tree-optimization/32810
10395         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10396         conversions from DECL_INITIAL.
10397         (fold_const_aggregate_ref): Likewise from constructor elements.
10398
10399 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
10400
10401         * tree-affine.h (aff_combination_expand): Declare.
10402         (get_inner_reference_aff): Likewise.
10403         * tree-affine.c (aff_combination_expand): Split out from
10404         tree_to_aff_combination_expand.
10405         (get_inner_reference_aff): New function.
10406         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10407         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10408         (struct lim_aux_data): sm_done field removed.
10409         (mem_ref_loc_p, mem_ref_locs_p): New types.
10410         (struct mem_ref): Added id, stored, accesses_in_loop,
10411         indep_loop, dep_loop, indep_ref, dep_ref fields.
10412         Removed is_stored, locs and next fields.
10413         (memory_accesses): New variable.
10414         (movement_possibility): Do not allow moving statements
10415         that store to memory.
10416         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10417         New functions.
10418         (determine_max_movement): For statements with memory references,
10419         find the outermost loop in that the reference is independent.
10420         (move_computations_stmt): Mark the virtual operands for renaming.
10421         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10422         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10423         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10424         add_vop_ref_mapping, create_vop_ref_mapping_loop,
10425         create_vop_ref_mapping, analyze_memory_references,
10426         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10427         get_all_locs_in_loop, ref_always_accessed_p,
10428         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10429         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10430         store_motion_loop, store_motion): New functions.
10431         (struct vop_to_refs_elt): New type.
10432         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10433         memref_hash, memref_eq, hoist_memory_references): Rewritten.
10434         (schedule_sm): Replaced by...
10435         (execute_sm): ... this.
10436         (determine_lsm_ref, hoist_memory_references,
10437         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10438         find_more_ref_vops, free_mem_ref, free_mem_refs,
10439         determine_lsm_loop, determine_lsm): Removed.
10440         (tree_ssa_lim_finalize): Free data structures used by store motion.
10441         (tree_ssa_lim): Call analyze_memory_references.  Use
10442         store_motion instead of determine_lsm.
10443
10444 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10445
10446         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10447         rename tmake_file to m68hc11/t-m68hc11.
10448         (mcore): Set inhibit_libc to true.
10449         * config.host (alpha*-dec-*vms*): Set extra_programs.
10450         (interix3*): Don't use host_xmake_file.
10451         * configure.ac: Let config.gcc override inhibit_libc.
10452         * configure: Regenerate.
10453
10454         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10455         * config/t-openbsd-thread: Remove commented out lines.
10456         
10457         * config/x-interix: Remove.
10458
10459         * config/m68hc11/t-m68hc11-gas: Rename to...
10460         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
10461
10462         * config/mcore/t-mcore: Remove T_CFLAGS.
10463         * config/mcore/t-mcore-pe: Likewise.
10464
10465 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10466
10467         * configure.ac: Replace custom __GNU_SOURCE test with
10468         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
10469         * aclocal.m4: Regenerate.
10470         * configure: Regenerate.
10471         * config.in: Regenerate.
10472
10473 2008-03-27  Richard Guenther  <rguenther@suse.de>
10474
10475         * fold-const.c (target.h): Include.
10476         (fold_comparison): Fold comparison of addresses of decls
10477         that bind locally or of constants.  Consolidate address folding code.
10478         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10479         results from fold_binary_to_constant.
10480         (compare_values_warnv): Likewise.
10481
10482 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
10483
10484         PR middle-end/35429
10485         * fold-const.c (fold_truthop): Check for integeral types when folding
10486         a == 0 && b == 0 and a != 0 || b != 0 .
10487
10488 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10489
10490         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10491
10492 2008-03-26  Andreas Schwab  <schwab@suse.de>
10493
10494         * doc/invoke.texi: Fix use of @item vs. @itemx.
10495
10496 2008-03-26  Tom Tromey  <tromey@redhat.com>
10497
10498         * Makefile.in (build/gensupport.o, build/print-rtl.o,
10499         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10500         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10501         build/gencodes.o, build/genconditions.o, build/genconfig.o,
10502         build/genconstants.o, build/genemit.o, build/genextract.o,
10503         build/genflags.o, build/genmddeps.o, build/genopinit.o,
10504         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10505         options.h.
10506
10507 2008-03-26  Richard Guenther  <rguenther@suse.de>
10508
10509         Revert
10510         2008-03-26  Richard Guenther  <rguenther@suse.de>
10511
10512         * fold-const.c (target.h): Include.
10513         (fold_comparison): Fold comparison of addresses of two decls
10514         that bind locally.  Consolidate address folding code.
10515
10516 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10517
10518         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10519         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10520         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10521         dconstsqrt2, dconstthird, dconste and/or dconst10.
10522         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10523         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10524         dconstsqrt2, dconste): Delete.
10525         (init_emit_once): Likewise.  Simplify initializing dconstm1.
10526         Constify variable.
10527         * real.c (get_real_const): New.
10528         * real.h (dconst3, dconst10, dconstm2, dconstthird,
10529         dconstsqrt2, dconste): Delete.
10530         (real_value_const, get_real_const): New.
10531
10532 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10533
10534         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10535
10536         * config/i386/i386.c (ix86_function_arg_boundary): Check
10537         BIGGEST_ALIGNMENT instead of 128.
10538         (setup_incoming_varargs_64): Likewise.
10539
10540 2008-03-26  Tom Tromey  <tromey@redhat.com>
10541
10542         * Makefile.in (DEPFILES): Add missing '/'.
10543
10544 2008-03-26  Richard Guenther  <rguenther@suse.de>
10545
10546         * fold-const.c (target.h): Include.
10547         (fold_comparison): Fold comparison of addresses of two decls
10548         that bind locally.  Consolidate address folding code.
10549
10550 2008-03-26  Nick Clifton  <nickc@redhat.com>
10551
10552         PR target/31232
10553         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10554         not allow INT+INT as a legitimate addressing mode.
10555
10556 2008-03-26  Richard Guenther  <rguenther@suse.de>
10557
10558         * tree-flow.h (widen_bitfield): Remove declaration.
10559         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10560         (widen_bitfield): Remove function.
10561         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10562         code.
10563
10564 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10565
10566         PR target/31558
10567         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10568         error_mark_node's.
10569
10570 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10571
10572         PR rtl-optimization/35232
10573         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10574         (forget_old_reloads_1, forget_marked_reloads): Don't clear
10575         reg_reloaded_call_part_clobbered here.
10576         (reload_regs_reach_end_p): New function.
10577         (reload_reg_rtx_for_input): New variable.
10578         (reload_reg_rtx_for_output): Likewise.
10579         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10580         when reassigning a pseudo register.  Load reloadreg from 
10581         reload_reg_rtx_for_input, moving the mode and register
10582         calculation to...
10583         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
10584         instead of the original when deciding whether an input reload
10585         would be a no-op or whether an output reload can be deleted.
10586         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10587         when setting up new_spill_reg_store.  Load it from
10588         reload_reg_rtx_for_output, moving the mode and register
10589         calculation to...
10590         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
10591         instead of the original when deciding whether an output reload
10592         would be a no-op.  Do the same when modifying insn notes.
10593         Use rtx_equal_p instead of == to compare the registers.
10594         (inherit_piecemeal_p): Take a mode and two register numbers
10595         as argument.
10596         (emit_reload_insns): Clear new_spill_reg_store for every hard
10597         register in the reload register.  Remove spill registers
10598         from reg_reloaded_valid before considering whether to record
10599         inheritance information for them.  Use reload_reg_rtx_for_output
10600         instead of reg_rtx when recording output reloads.  Use
10601         reload_reg_rtx_for_input instead of reg_rtx when recording
10602         input reloads.  Set or clear reg_reloaded_call_part_clobbered
10603         at the same time as setting reg_reloaded_valid.
10604         (delete_output_reload): Add a new_reload_reg parameter and use it
10605         instead of rld[j].reg_rtx.
10606         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10607         calls accordingly.
10608
10609 2008-03-25  Tom Tromey  <tromey@redhat.com>
10610
10611         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10612         (build/genattr.o): Likewise.
10613         (build/genattrtab.o): Likewise.
10614         (build/gencodes.o): Likewise.
10615         (build/genconfig.o): Likewise.
10616         (build/genconstants.o): Likewise.
10617         (build/genemit.o): Likewise.
10618         (build/genextract.o): Likewise.
10619         (build/genflags.o): Likewise.
10620
10621 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
10622         
10623         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10624         instead of size_int for integer types.
10625         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
10626         to match type of MINUS_EXPR.
10627         
10628 2008-03-25  Tom Tromey  <tromey@redhat.com>
10629
10630         * configure: Rebuilt.
10631         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10632         Makefile.
10633
10634 2008-03-25  Tom Tromey  <tromey@redhat.com>
10635
10636         * config/x-solaris (host-solaris.o): Update.
10637         * config/x-linux (host-linux.o): Update.
10638         * config/x-hpux (host-hpux.o): Update.
10639         * config/x-darwin (host-darwin.o): Update.
10640         * config/v850/t-v850e (v850-c.o): Update.
10641         * config/v850/t-v850 (v850-c.o): Update.
10642         * config/t-vxworks (vxworks.o): Update.
10643         * config/t-sol2 (sol2-c.o, sol2.o): Update.
10644         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10645         * config/spu/t-spu-elf (spu-c.o): Update.
10646         (spu.o): Remove.
10647         * config/sh/t-symbian (sh-c.o): Update.
10648         (symbian.o): Update.
10649         * config/sh/t-sh (sh-c.o): Update.
10650         * config/score/t-score-elf (score7.o, score3.o): Update.
10651         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10652         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10653         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10654         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10655         (rs6000.o): Remove.
10656         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10657         * config/m32c/t-m32c (m32c-pragma.o): Update.
10658         * config/ia64/t-ia64 (ia64-c.o): Update.
10659         * config/i386/x-mingw32 (host-mingw32.o): Update.
10660         * config/i386/x-i386 (driver-i386.o): Update.
10661         * config/i386/x-darwin (host-i386-darwin.o): Update.
10662         * config/i386/x-cygwin (host-cygwin.o): Update.
10663         * config/i386/t-nwld (nwld.o): Update.
10664         * config/i386/t-netware (netware.o): Update.
10665         * config/i386/t-interix (winnt.o): Update.
10666         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10667         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10668         msformat-c.o): Update.
10669         * config/bfin/t-bfin-linux (generated_files): Add
10670         linux-sysroot-suffix.h.
10671         * config/arm/t-wince-pe (pe.o): Update.
10672         * config/arm/t-strongarm-pe (pe.o): Update.
10673         * config/arm/t-pe (pe.o): Update.
10674         * config/arm/t-arm (arm-c.o): Update.
10675         * doc/install.texi (Prerequisites): Require make 3.80.
10676         * Makefile.in: Remove .o targets.
10677         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10678         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10679         (simple_generated_h, simple_generated_c): Move earlier.
10680         (generated_files): New variable.
10681         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10682         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10683         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10684         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10685         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10686         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10687         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10688         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10689         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10690         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10691         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10692         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10693         (.c.o): Remove.
10694         (COMPILE.base, COMPILE): New variables.
10695         (%.o): New pattern rule.
10696         (ALL_HOST_OBJS): New variable.
10697         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10698         (dummy-checksum.o, cc1-checksum.o): Remove.
10699         (DRIVER_SHLIB): New variable.
10700         (DRIVER_DEFINES): Use it.
10701         (gencondmd.c): Move out of build/.
10702         (s-conditions): Update.
10703         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10704         (ALL_BUILD_OBJS): Likewise.
10705         (build/%.o): Use BUILDCOMPILE.
10706         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10707         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10708         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10709         build/gencheck.o, build/gencodes.o, build/genconditions.o,
10710         build/genconfig.o, build/genconstants.o, build/genemit.o,
10711         build/genextract.o, build/genflags.o, build/genmddeps.o,
10712         build/genopinit.o, build/genoutput.o, build/genpeep.o,
10713         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10714         build/gen-protos.o, build/scan.o, build/fix-header.o,
10715         build/scan-decls.o): Simplify.
10716         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10717         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10718         prefix.o, toplev.o): Reduce to variable setting.
10719         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
10720         ($(out_object_file), gcc-options.o): New targets.
10721         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
10722         * configure: Rebuilt.
10723         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10724         * doc/sourcebuild.texi (Front End Directory): Document new variable.
10725
10726 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
10727
10728         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10729         complain when we hit an error, return ERROR_MARK_NODE.
10730
10731 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10732
10733         * config/sh/constraints.md (Pso, Psz): New constraints.
10734         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10735         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10736
10737 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10738
10739         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10740         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10741
10742 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10743
10744         * config/sh/sh.md (prefetch): Add condition for SH2A target.
10745         (prefetch_sh2a): New.   
10746
10747 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10748             Naveen.H.S  <naveen.hs@kpitcummins.com>
10749
10750         * config/sh/constraints.md (I28): New constraint.
10751         * config/sh/sh.c (broken_move): Add support for movi20s.
10752         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10753
10754 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
10755             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10756             Naveen.H.S  <naveen.hs@kpitcummins.com>
10757
10758         * config/sh/sh.c (SH_ATTRIBUTES): Define.
10759         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10760         (print_operand): Handle resbank in %@ operand code.
10761         (sh_encode_section_info): New.
10762         (push_regs): Add conditions for resbank.
10763         (sh_expand_epilogue): Likewise.
10764         (sh_insert_attributes): Likewise.
10765         (sh_attribute_table): Likewise.
10766         (sh_handle_resbank_handler_attribute): New.
10767         (sh2a_handle_function_vector_handler_attribute): New.
10768         (sh2a_is_function_vector_call): New.
10769         (sh2a_get_function_vector_number): New.
10770         (sh2a_function_vector_p): New.
10771         (sh_cfun_resbank_handler_p): New.
10772         * config/sh/sh.md (calli): Emit jsr/n if possible.
10773         (calli_tbr_rel): New.
10774         (calli_pcrel): Emit jsr/n if possible.
10775         (return_i): Emit rts/n if possible.
10776         (call_valuei_tbr_rel): New.
10777         (call_valuei_pcrel): Add condition for SH2A target.
10778         (call_value): Likewise.
10779         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10780         (sh2a_get_function_vector_number): Likewise.
10781         (sh2a_is_function_vector_call): Likewise.
10782         * doc/extend.texi: Document TBR relative addressing of SH2A.
10783         (resbank): Add description for SH2A.
10784
10785 2008-03-24  Richard Guenther  <rguenther@suse.de>
10786
10787         PR c/22371
10788         * gimplify.c (gimplify_modify_expr): For frontend type-correct
10789         pointer assignments change conversions according to middle-end rules.
10790         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10791         * configure.ac: Include type checking in yes.
10792         * configure: Regenerate.
10793
10794 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10795
10796         * diagnostic.c (diagnostic_count_diagnostic): Delete.
10797         (diagnostic_report_diagnostic): Update. Handle ICEs here.
10798         
10799 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10800
10801         * gthr-vxworks.h (UNUSED): Define.
10802
10803 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10804
10805         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10806
10807 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
10808
10809         * doc/extend.texi (Function Attributes): Add missing comma in the
10810         example of the "alloc_size" attribute.
10811         
10812 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
10813
10814         Revert:
10815         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10816
10817         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10818         32bit host.
10819
10820         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10821
10822         PR target/35496
10823         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10824         of the underlying type of a MS bitfield layout to the natural
10825         alignment of the type.
10826
10827         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10828
10829         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10830         to their natural alignment to avoid store forwarding stalls.
10831
10832 2008-03-22  Richard Guenther  <rguenther@suse.de>
10833
10834         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10835         For PHI nodes verify the address is invariant.
10836         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10837         (get_symbol_constant_value): Use is_gimple_min_invariant.
10838         (maybe_fold_stmt_indirect): Likewise.
10839
10840 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10841
10842         PR rtl-optimization/33927
10843         * Makefile.in (dse.o): Depend on $(TM_P_H).
10844         * expr.h (extract_low_bits): Declare.
10845         * expmed.c (extract_low_bits): New function.
10846         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10847         * dse.c: Include tm_p.h.
10848         (find_shift_sequence): Remove the read_reg argument and return the
10849         read value.  Emit the instructions instead of returning them.
10850         Iterate on new_mode rather than calculating it each time.
10851         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
10852         source to NEW_MODE and extract_low_bits to convert the shifted
10853         value to READ_MODE.
10854         (replace_read): Allow the load and store to have different mode
10855         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
10856         or extraction instructions before trying the replacement.  Update
10857         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10858
10859 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10860
10861         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10862         to their natural alignment to avoid store forwarding stalls.
10863
10864 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10865
10866         PR target/27946
10867         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10868         encouraging but not allowing gprs for input;
10869         change the input constraint to !f#r.
10870         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10871         gprs for output;
10872         change the output constraint to !f#r.
10873
10874 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
10875
10876         PR target/13958
10877         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10878         corresponding post-reload splitters.
10879         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10880         when x87 FP math is selected.
10881         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10882         New function prototype.
10883         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10884         unreachable function to ease macroization of insn patterns.
10885
10886 2008-03-21  Martin Jambor  <mjambor@suse.cz>
10887
10888         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10889         reference dumps if ddr is NULL or dependence is unknown.
10890
10891 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10892
10893         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10894         unsigned extension into account.
10895         (ATOMIC_COMPARE_AND_SWAP): Likewise.
10896         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10897         Do computations on a scratch register.
10898
10899 2008-03-21  Richard Guenther  <rguenther@suse.de>
10900
10901         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10902         Use is_gimple_min_invariant instead of TREE_INVARIANT.
10903         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10904         * tree-ssa-dom.c (record_equality): Likewise.
10905         * tree-inline.c (copy_body_r): Likewise.
10906         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10907         TREE_INVARIANT.
10908
10909 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10910
10911         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10912         as 'delete_unused' argument.
10913
10914 2008-03-20  Richard Guenther  <rguenther@suse.de>
10915
10916         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10917         special casing of constant qualifiers.
10918         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10919         care about them in general.
10920         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10921         regardless of their type.
10922         (fold_stmt_r): Forcefully fold *& if we end up with that.
10923
10924 2008-03-20  Paul Brook  <paul@codesourcery.com>
10925
10926         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10927         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10928         linker flags.
10929         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10930         definition.
10931         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10932         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10933
10934 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
10935
10936         * common.opt (Wmudflap): New option.
10937         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10938         (mx_register_decls): Likewise.
10939         (mudflap_finish_file): Likewise.
10940         * doc/invoke.texi: Document -Wno-mudflap.
10941
10942 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
10943
10944         * c-format.c (replace_format_name_to_system_name): New.
10945         (cmp_attribs): New.
10946         (convert_format_name_to_system_name): New.
10947         (decode_format_attr): Add use of convert_format_name_to_system_name.
10948         (format_types_orig): Add gnu_ prefix to names.
10949         (check_format_info_main): Special treating of \0 escaped names for
10950         supporting multi-character format specifiers as I32, I64.
10951         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10952         (gnu_target_overrides_format_attributes): New.
10953         * c-format.h: Add structure target_ovr_attr to hold
10954         system specific formatter names.
10955         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10956         msformat-c.o file to c_target_objs and cxx_target_objs.
10957         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10958         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10959         (TARGET_N_FORMAT_TYPES): New.
10960         * config/i386/msformat-c.c: New.
10961         * config/i386/t-cygming: Add build rule for msformat-c.o.
10962         * doc/extend.texi: Add new format names gnu_* and ms_* and
10963         further details.
10964         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10965
10966 2008-03-20  Ira Rosen  <irar@il.ibm.com>
10967
10968         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10969         optimizations turned on under -O3.
10970         (ftree-vectorize): Add that the flag is turned on with -O3.
10971
10972 2008-03-20  Ben Elliston  <bje@au.ibm.com>
10973
10974         * regmove.c (try_auto_increment): Fix spelling error in comment.
10975         * final.c (final_scan_insn): Likewise.
10976
10977 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
10978
10979         PR target/14552
10980         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10981         allocator preferences for "y" and "r" class registers.
10982         ("*mov<mode>_internal"): Ditto.
10983         ("*movv2sf_internal_rex64"): Ditto.
10984         ("*movv2sf_internal"): Ditto.
10985
10986 2008-03-19  Michael Matz  <matz@suse.de>
10987
10988         PR middle-end/35616
10989         * calls.c (expand_call): Check overlap of arguments with call
10990         address for sibcalls.
10991
10992 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10993
10994         PR target/35496
10995         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10996         of the underlying type of a MS bitfield layout to the natural
10997         alignment of the type.
10998
10999 2008-03-19  Jan Hubicka  <jh@suse.cz>
11000
11001         PR other/35094
11002         * toplev.c (decode_d_option): Handle all CPP flags.
11003         * tree-vrp.c: Update tree_pass descriptors.
11004         * regrename.c: Update tree_pass descriptors.
11005         * fwprop.c: Update tree_pass descriptors.
11006         * doc/invoke.texi: Remove documentation of dropped -d? flags.
11007         * tree-into-ssa.c: Update tree_pass descriptors.
11008         * tree-dump.c: Update tree_pass descriptors.
11009         * tree-complex.c: Update tree_pass descriptors.
11010         * tree-dump.h: Update tree_pass descriptors.
11011         * see.c: Update tree_pass descriptors.
11012         * cgraphbuild.c: Update tree_pass descriptors.
11013         * tracer.c: Update tree_pass descriptors.
11014         * tree-loop-distribution.c: Update tree_pass descriptors.
11015         * cgraph.c: Update tree_pass descriptors.
11016         * postreload-gcse.c: Update tree_pass descriptors.
11017         * postreload.c: Update tree_pass descriptors.
11018         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11019         * tree-tailcall.c: Update tree_pass descriptors.
11020         * tree-pass.h (tree_opt_pass): Rename to ...
11021         (opt_pass) ... this one; add "type" field and remove letter field.
11022         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11023         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11024         all_lowering_passes): Update declaration.
11025         * ipa-cp.c: Update tree_pass descriptors.
11026         * final.c: Update tree_pass descriptors.
11027         * omp-low.c: Update tree_pass descriptors.
11028         * tree-ssa-dse.c: Update tree_pass descriptors.
11029         * ipa-reference.c: Update tree_pass descriptors.
11030         * tree-ssa-uncprop.c: Update tree_pass descriptors.
11031         * auto-inc-dec.c: Update tree_pass descriptors.
11032         * reorg.c: Update tree_pass descriptors.
11033         * cgraphunit.c: Update tree_pass descriptors.
11034         * tree-ssa-copyrename.c: Update tree_pass descriptors.
11035         * tree-ssa-ccp.c: Update tree_pass descriptors.
11036         * df-core.c: Update tree_pass descriptors.
11037         * mode-switching.c: Update tree_pass descriptors.
11038         * tree-nomudflap.c: Update tree_pass descriptors.
11039         * modulo-sched.c: Update tree_pass descriptors.
11040         * ipa-pure-const.c: Update tree_pass descriptors.
11041         * cse.c: Update tree_pass descriptors.
11042         * web.c: Update tree_pass descriptors.
11043         * tree-stdarg.c: Update tree_pass descriptors.
11044         * tree-ssa-math-opts.c: Update tree_pass descriptors.
11045         * tree-ssa-dom.c: Update tree_pass descriptors.
11046         * tree-nrv.c: Update tree_pass descriptors.
11047         * tree-ssa-alias.c: Update tree_pass descriptors.
11048         * loop-init.c: Update tree_pass descriptors.
11049         * gimple-low.c: Update tree_pass descriptors.
11050         * ipa-inline.c: Update tree_pass descriptors.
11051         * tree-ssa-sink.c: Update tree_pass descriptors.
11052         * global.c: Update tree_pass descriptors.
11053         * ifcvt.c: Update tree_pass descriptors.
11054         * jump.c: Update tree_pass descriptors.
11055         * predict.c: Update tree_pass descriptors.
11056         * tree-ssa-loop.c: Update tree_pass descriptors.
11057         * recog.c: Update tree_pass descriptors.
11058         * dse.c: Update tree_pass descriptors.
11059         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11060         * tree-eh.c: Update tree_pass descriptors.
11061         * regmove.c: Update tree_pass descriptors.
11062         * local-alloc.c
11063         * function.c: Update tree_pass descriptors.
11064         * tree-vectorizer.c: Update tree_pass descriptors.
11065         * gcse.c: Update tree_pass descriptors.
11066         * ipa-type-escape.c: Update tree_pass descriptors.
11067         * tree-if-conv.c: Update tree_pass descriptors.
11068         * init-regs.c: Update tree_pass descriptors.
11069         * ipa.c: Update tree_pass descriptors.
11070         * tree-ssa-phiopt.c: Update tree_pass descriptors.
11071         * rtl-factoring.c: Update tree_pass descriptors.
11072         * lower-subreg.c: Update tree_pass descriptors.
11073         * bt-load.c: Update tree_pass descriptors.
11074         * tree-dfa.c: Update tree_pass descriptors.
11075         * except.c: Update tree_pass descriptors.
11076         * emit-rtl.c: Update tree_pass descriptors.
11077         * cfgexpand.c: Update tree_pass descriptors.
11078         * tree-cfgcleanup.c: Update tree_pass descriptors.
11079         * cfgcleanup.c: Update tree_pass descriptors.
11080         * tree-ssa-pre.c: Update tree_pass descriptors.
11081         * tree-sra.c: Update tree_pass descriptors.
11082         * tree-mudflap.c: Update tree_pass descriptors.
11083         * tree-ssa-copy.c: Update tree_pass descriptors.
11084         * cfglayout.c: Update tree_pass descriptors.
11085         * tree-ssa-forwprop.c: Update tree_pass descriptors.
11086         * tree-ssa-dce.c: Update tree_pass descriptors.
11087         * tree-ssa.c: Update tree_pass descriptors.
11088         * regclass.c: Update tree_pass descriptors.
11089         * integrate.c: Update tree_pass descriptors.
11090         * tree-optimize.c: Update tree_pass descriptors.
11091         * tree-ssa-phiprop.c: Update tree_pass descriptors.
11092         * tree-object-size.c: Update tree_pass descriptors.
11093         * combine.c: Update tree_pass descriptors.
11094         * tree-outof-ssa.c: Update tree_pass descriptors.
11095         * bb-reorder.c: Update tree_pass descriptors.
11096         * stack-ptr-mod.c: Update tree_pass descriptors.
11097         * var-tracking.c: Update tree_pass descriptors.
11098         * tree-profile.c: Update tree_pass descriptors.
11099         * tree-vect-generic.c: Update tree_pass descriptors.
11100         * reg-stack.c: Update tree_pass descriptors.
11101         * sched-rgn.c: Update tree_pass descriptors.
11102         * tree-ssa-structalias.c: Update tree_pass descriptors.
11103         * tree-cfg.c: Update tree_pass descriptors.
11104         * passes.c (current_pass): Update declaration.
11105         (finish_optimization_passes): Update.
11106         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11107         (register_one_dump_file, register_dump_files_1, next_pass_1):
11108         Update arguments.
11109         (init_optimization_passes): Update handling of new types.
11110         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11111         * ipa-struct-reorg.c: Update tree_pass descriptors.
11112         * tree-ssa-reassoc.c: Update tree_pass descriptors.
11113         * combine-stack-adj.c: Update tree_pass descriptors.
11114         * cfgrtl.c: Update tree_pass descriptors.
11115         * dce.c: Update tree_pass descriptors.
11116         * tree-ssanames.c: Update tree_pass descriptors.
11117
11118 2008-03-19  Richard Guenther  <rguenther@suse.de>
11119
11120         PR middle-end/35609
11121         * tree-ssa.c (walk_data): New structure.
11122         (warn_uninitialized_var): If not always_executed warn with "maybe"
11123         instead of "is".
11124         (execute_early_warn_uninitialized): Compute post-dominators.
11125         Initialize always_executed before processing each basic block.
11126
11127 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
11128
11129         PR target/35504
11130         * config/i386/i386.c (x86_this_parameter): Calculate correct location
11131         of "this" pointer when "regparm = N" or "fastcall" is in effect.
11132
11133 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11134
11135         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11136
11137 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
11138
11139         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
11140         is true.
11141         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
11142         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
11143         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
11144         target after ignore has been set, and move there also the commputation
11145         of subtarget and original_target.
11146         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11147         (LANG_HOOKS_INITIALIZER): Remove it.
11148         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
11149
11150 2008-03-18  Richard Guenther  <rguenther@suse.de>
11151
11152         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
11153         found an expression with constants, note that in the VN for the lhs.
11154         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
11155         fold them to constants if possible.  Run cleanup_cfg if done so.
11156         (execute_pre): Return todo.
11157         (do_pre): Likewise.
11158         (execute_fre): Likewise.
11159         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
11160         of constants.
11161         (get_prop_source_stmt): Look through pointer conversions.
11162
11163 2008-03-18  Jan Hubicka  <jh@suse.cz>
11164
11165         * tree-pretty-print.c: Include predict.h.
11166         (dump_generic_node): Dump predictor.
11167         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
11168         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
11169         * gimple-low.c (lower_stmt): Likewise.
11170         * expr.c (expand_expr_real): Likewise.
11171         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
11172         them.
11173         (build_predict_expr, build_predict_expr): New.
11174         * predict.h (predictor_name, build_predict_expr): Update.
11175         * c-typeck.c (c_finish_bc_stmt): Add prediction.
11176         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11177         * predict.def (PRED_CONTINUE): Update hitrate.
11178         * tree.def (PREDICT_EXPR): Define.
11179         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11180         do not handle BIND_EXPR.
11181         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11182         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11183         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11184         operands.
11185
11186 2008-03-18  Michael Matz  <matz@suse.de>
11187
11188         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11189
11190 2008-03-18  Richard Guenther  <rguenther@suse.de>
11191
11192         * tree-gimple.h (is_gimple_invariant_address): Declare.
11193         (is_gimple_constant): Likewise.
11194         * tree-gimple.c (is_gimple_constant): New function.
11195         (is_gimple_invariant_address): Likewise.
11196         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11197         and is_gimple_invariant_address.
11198         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11199         previous change.
11200         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11201         an addressable base.
11202
11203 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11204
11205         PR middle-end/35611
11206         * gimplify.c (gimplify_expr): Gimplify second operand of
11207         OMP_ATOMIC_LOAD.
11208
11209 2008-03-17  Richard Guenther  <rguenther@suse.de>
11210
11211         PR tree-optimization/19637
11212         * fold-const.c (fold_unary): Remove restrictions of removing
11213         intermediate pointer-conversions (P2)(P1)P0.
11214         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11215         conversion to void pointer.
11216         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11217
11218 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
11219
11220         PR debug/31510
11221         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11222         emulated thread local variables.
11223
11224 2008-03-16  Richard Guenther  <rguenther@suse.de>
11225
11226         PR middle-end/35607
11227         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11228         expand TREE_INVARIANT operations that are not gimple invariant.
11229
11230 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
11231
11232         * doc/extend.texi (Alignment): Say that the ABI controls
11233         the __alignof__ for non-strict-alignment targets rather
11234         than being a recommendation.
11235
11236 2008-03-15  Paul Brook  <paul@codesourcery.com>
11237
11238         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11239         annotations.
11240         (arm_output_fn_unwind): Mark functions that can not be unwound.
11241
11242 2008-03-15  Paul Brook  <paul@codesourcery.com>
11243
11244         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11245         extension instructions.
11246
11247 2008-03-15  Richard Guenther  <rguenther@suse.de>
11248
11249         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11250         and fold constant aggregate refs.
11251         (fold_const_aggregate_ref): Handle string constants
11252         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
11253         (evaluate_stmt): Simplify now that ccp_fold folds constant
11254         aggregate refs.
11255
11256 2008-03-15  Paul Brook  <paul@codesourcery.com>
11257
11258         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11259         (extzv): Use gen_extzv_t2.
11260         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11261
11262 2008-03-15  Richard Guenther  <rguenther@suse.de>
11263
11264         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11265         (fold_const_aggregate_ref): Likewise.
11266         (get_value): Return NULL if we don't have any values.
11267         (ccp_finalize): Set const_val to NULL after freeing it.
11268         * tree-flow.h (get_symbol_constant_value): Declare.
11269         (fold_const_aggregate_ref): Likewise.
11270         * tree-ssa-sccvn.c (try_to_simplify): Use them.
11271
11272 2008-03-15  Richard Guenther  <rguenther@suse.de>
11273
11274         PR middle-end/35593
11275         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11276         to not produce negative array indices if not allowed.  Add
11277         parameter to indicate that.
11278         (maybe_fold_offset_to_component_ref): Allow negative array
11279         indices only for the first member of a structure.
11280         (maybe_fold_offset_to_reference): Allow negative array indices.
11281         (maybe_fold_stmt_addition): Likewise.
11282
11283 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
11284             Anatoly Sokolov <aesok@post.ru>
11285
11286         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11287         (avr_arch): Add ARCH_AVR6.
11288         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11289         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
11290         instead of fixed value 2.
11291         (print_operand_address): Use gs() asm specifier instead of pm().
11292         (avr_assemble_integer): (Ditto.).
11293         (avr_output_addr_vec_elt): (Ditto.).
11294         (print_operand): Handle "!" code.
11295         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
11296         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11297         (AVR_HAVE_EIJMP_EICALL): Define.
11298         (AVR_3_BYTE_PC): Redefine.
11299         (AVR_2_BYTE_PC): (Ditto.).
11300         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11301         (LINK_SPEC): Add atmega2560 and atmega2561.
11302         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
11303         (crtm2561.o).
11304         * config/avr/avr.md (call_insn): Use eicall instead of icall 
11305         for 3 byte PC devices.
11306         (call_value_insn): (Ditto.).
11307         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11308         (indirect_jump): Use only for for 2 byte PC devices.
11309         (*tablejump): (Ditto.).
11310         (*indirect_jump_avr6): Add insn.
11311         (*tablejump_rjmp): Don't use for 3 byte PC devices.
11312         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
11313         instead of ijmp for 3 byte PC devices.
11314         (__tablejump2__): (Ditto.).
11315         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11316         (MULITLIB_DIRNAMES): (Ditto.). 
11317         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11318
11319 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
11320
11321         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11322         "sse2_umulsidi3".  Use V1DI mode for operand 0.
11323         ("mmx_psadbw"): Use V1DI mode for operand 0.
11324         * config/i386/i386-modes.def (V1SI): New vector mode.
11325         * config/i386/i386.c (struct builtin_description)
11326         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11327         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11328         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11329         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11330         v1di_ftype_v8qi_v8qi type.
11331         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11332
11333         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11334         __builtin_ia32_pmuludq]: Fix the mode of return value.
11335
11336 2008-03-15  Richard Guenther  <rguenther@suse.de>
11337
11338         PR middle-end/35595
11339         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11340         being a PHI_NODE.
11341
11342 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
11343         
11344         * doc/invoke.texi (Option Summary, Xtensa Options): Document
11345         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11346         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11347         unless TARGET_SERIALIZE_VOLATILE is enabled.
11348         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11349         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11350         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11351
11352 2008-03-14  Richard Guenther  <rguenther@suse.de>
11353
11354         PR tree-optimization/34172
11355         * tree-flow.h (refs_may_alias_p): Declare.
11356         (get_single_def_stmt): Likewise.
11357         (get_single_def_stmt_from_phi): Likewise.
11358         (get_single_def_stmt_with_phi): Likewise.
11359         * tree-dfa.c (refs_may_alias_p): New function.
11360         (get_single_def_stmt): Likewise.
11361         (get_single_def_stmt_from_phi): Likewise.
11362         (get_single_def_stmt_with_phi): Likewise.
11363         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11364         (vn_reference_lookup_1): New helper function.
11365         (vn_reference_lookup): Walk the virtual use-def chain to
11366         continue searching for a match if the def does not alias the
11367         reference we are looking for.
11368
11369 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
11370
11371         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
11372         archive and Perzl.  Update The Written Word listing.
11373
11374 2008-03-14  Richard Guenther  <rguenther@suse.de>
11375
11376         PR tree-optimization/34043
11377         PR tree-optimization/33989
11378         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11379         when doing FRE.
11380         (bitmap_find_leader): Use extra argument to verify dominance
11381         relationship inside a basic-block.
11382         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11383         (find_leader_in_sets): Adjust.
11384         (create_component_ref_by_pieces): Take extra argument for
11385         dominance check, handle lookup failures.
11386         (find_or_generate_expression): Likewise.
11387         (create_expression_by_pieces): Likewise.
11388         (insert_into_preds_of_block): Adjust.
11389         (create_value_expr_from): If asked for, verify all operands
11390         are in the blocks AVAIL_OUT set.
11391         (make_values_for_stmt): Check for SSA_NAMEs that are life
11392         over an abnormal edge.
11393         (compute_avail): Remove such check.
11394         (do_SCCVN_insertion): New function.
11395         (eliminate): If we do not find a leader suitable for replacement
11396         insert a replacement expression from SCCVN if available.
11397         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11398         (struct vn_ssa_aux): Add needs_insertion flag.
11399         * tree-ssa-sccvn.c (may_insert): New global flag.
11400         (copy_reference_ops_from_ref): Value-number union member access
11401         based on its size, not type and member if insertion is allowed.
11402         (visit_reference_op_load): For a weak match from union type
11403         punning lookup a view-converted value and insert a SSA_NAME
11404         for that value if that is not found.
11405         (visit_use): Make dumps shorter.  Do not disallow value numbering
11406         SSA_NAMEs that are life over an abnormal edge to constants.
11407         (free_scc_vn): Release inserted SSA_NAMEs.
11408         (run_scc_vn): New flag to specify whether insertion is allowed.
11409         Process SSA_NAMEs in forward order.
11410         * tree-ssa-loop-im.c (for_each_index): Handle invariant
11411         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11412         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11413         pointer type to/from integral types that do not change the
11414         precision to regular conversions.
11415
11416 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11417
11418         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11419         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11420         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11421         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11422         input arguments and the mode of return value.  Built-in functions
11423         that operate on whole 64-bit MMX register now use V1DI mode.
11424
11425 2008-03-13  Alon Dayan  <alond@il.ibm.com>
11426             Olga Golovanevsky  <olga@il.ibm.com>
11427
11428         PR tree-optimization/35041
11429         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11430         to locate the right position in a statement.
11431
11432 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11433
11434         PR target/34000
11435         PR target/35553
11436         * config/i386/xmmintrin.h:  Change all static inline functions to
11437         extern inline and add __gnu_inline__ attribute.
11438         * config/i386/bmintrin.h: Ditto.
11439         * config/i386/smmintrin.h: Ditto.
11440         * config/i386/tmmintrin.h: Ditto.
11441         * config/i386/mmintrin-common.h: Ditto.
11442         * config/i386/ammintrin.h: Ditto.
11443         * config/i386/emmintrin.h: Ditto.
11444         * config/i386/pmmintrin.h: Ditto.
11445         * config/i386/mmintrin.h: Ditto.
11446         * config/i386/mm3dnow.h: Ditto.
11447
11448 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11449
11450         PR middle-end/35185
11451         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11452         (lower_omp_2): New function.
11453         (lower_omp_1, lower_omp): Rewritten.
11454
11455 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
11456
11457         PR 35054
11458         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11459         with the phrase "Microsoft Windows compilers".
11460         (Push/Pop Macro Pragmas): New subsection. Document
11461         #pragma push_macro and pragma pop_macro.
11462
11463 2008-03-12  Paul Brook  <paul@codesourcery.com>
11464
11465         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11466
11467 2008-03-12  Paul Brook  <paul@codesourcery.com>
11468
11469         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11470         (thumb2_alusi3_short): Exclude PLUS and MINUS.
11471         (thumb2_addsi_shortim): Rename ...
11472         (thumb2_addsi_short): ... to this.  Allow register operands.
11473         (thumb2_subsi_short): New pattern.
11474         (thumb2_one_cmplsi2_short,
11475         thumb2_negsi2_short): New patterns and peepholes.
11476
11477 2008-03-12  Paul Brook  <paul@codesourcery.com>
11478
11479         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11480
11481 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
11482
11483         * config/i386/i386.md (int_cond): New code iterator.
11484         (fp_cond): Ditto.
11485         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11486         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11487         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11488         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11489         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11490         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11491         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11492         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11493
11494 2008-03-12  Paul Brook  <paul@codesourcery.com>
11495
11496         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11497         instead of {arm,thumb}_compute_save_reg_mask.
11498         (output_return_instruction): Ditto.
11499         (thumb_unexpanded_epilogue): Ditto.
11500         (thumb1_expand_prologue): Ditto.
11501         (thumb1_output_function_prologue): Ditto.
11502         (arm_set_return_address): Ditto.
11503         (thumb_set_return_address): Ditto.
11504         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
11505         regs to achieve stack alignment.
11506         (thumb1_compute_save_reg_mask): Fix compiler warning.
11507         (arm_output_epilogue): Use offsets->saved_regs_mask.
11508         Adjust stack pointer by poping call clobered registers.
11509         (arm_expand_prologue): Use offsets->saved_regs_mask.
11510         Adjust stack pointer by pushing extra registers.
11511         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11512
11513 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
11514
11515         PR tree-opt/35422
11516         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11517         conversion to the operands of a multiplication.
11518
11519 2008-03-12  Richard Guenther  <rguenther@suse.de>
11520
11521         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11522         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11523         * timevar.def (TV_TREE_PHIPROP): Add.
11524         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11525         pass description.  Use TV_TREE_PHIPROP.
11526         * tree-ssa-forwprop.c: Remove phiprop code.
11527
11528 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11529
11530         PR middle-end/35549
11531         * omp-low.c (maybe_lookup_decl): Constify first argument.
11532         (use_pointer_for_field): Change last argument from bool to
11533         omp_context *.  Disallow shared copy-in/out in nested
11534         parallel if decl is shared in outer parallel too.
11535         (build_outer_var_ref, scan_sharing_clauses,
11536         lower_rec_input_clauses, lower_copyprivate_clauses,
11537         lower_send_clauses, lower_send_shared_vars): Adjust callers.
11538
11539 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
11540             Ira Rosen  <irar@il.ibm.com>
11541
11542         * tree-vectorizer.c (free_stmt_vec_info): New function.
11543         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11544         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11545         * tree-vectorizer.h (free_stmt_vec_info): Declare.
11546         * tree-vect-transform.c (vectorizable_conversion): Free
11547         vec_oprnds0 if it was allocated.
11548         (vect_permute_store_chain): Remove unused VECs.
11549         (vectorizable_store): Free VECs that are allocated in the..
11550         function.
11551         (vect_transform_strided_load, vectorizable_load): Likewise.
11552         (vect_remove_stores): Simplify the code.
11553         (vect_transform_loop): Move code to vect_remove_stores().
11554         Call vect_remove_stores() and free_stmt_vec_info().
11555
11556 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11557
11558         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11559         TARGET_HPUX.  Revise comment.
11560         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11561         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11562         Use sr4 variant of `be' instruction when not generating PIC code.
11563         (attr_length_call): Adjust for above change.
11564
11565 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11566
11567         * ipa-reference.c (static_execute): Remove module_statics_const and
11568         associated setting code.
11569
11570 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11571
11572         PR target/35540
11573         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11574         predicate for operand 1.
11575         (paritysi2_cmp): Use register_operand predicate for operand 2.
11576         Use earlyclobber modifier for operand 1.  Remove support for
11577         memory operands.
11578         (paritydi2_cmp): Use register_operand predicate for operand 3.
11579         Use earlyclobber modifier for operand 1.  Remove support for
11580         memory operands.
11581
11582 2008-03-11  Paul Brook  <paul@codesourcery.com>
11583             Vladimir Prus  <vladimir@codesourcery.com>
11584
11585         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11586         (arm_compute_save_reg0_reg12_mask): Always
11587         check if register 11 must be saved.  Always safe hard frame pointer
11588         when frame_pointer_needeed.
11589         (arm_compute_save_reg_mask): Save IP and PC
11590         only with apcs frames.
11591         (arm_output_epilogue): Adjust Thumb2 codepath to
11592         be also invoked and work for ARM non-apcs frames.
11593         (arm_expand_prologue): Don't bother saving IP
11594         for non-apcs frame, since it's not clobbered by
11595         prologue code.  Implement non-apcs frame
11596         layout.
11597
11598 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11599
11600         PR rtl-optimization/35281
11601         * expr.c (convert_move): Use a new pseudo for the intermediate
11602         from_mode->word_mode result.
11603
11604 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11605
11606         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11607         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11608         * toplev.c (compile_file): Don't call it.
11609
11610 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11611
11612         PR middle-end/35526
11613         * expr.c (store_expr): Call emit_block_move if the mode
11614         of "temp" RTX is BLKmode.
11615
11616 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11617             Richard Guenther  <rguenther@suse.de>
11618
11619         PR tree-optimization/31358
11620         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11621         the step with a NULL_TREE.
11622         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11623         to sizetype if type is a pointer type.
11624         (add_candidate_1): Don't convert the base and step to
11625         the generic type if the orginal type is a pointer type.
11626         (add_iv_value_candidates): Use sizetype for the step
11627         if type is a pointer type.
11628         (cand_value_at): Likewise.
11629         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11630         for pointer types.
11631         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11632         Don't convert the tem affine to the type.
11633         (add_elt_to_tree): Use sizetype for the step if a pointer.
11634         Use POINTER_PLUS_EXPR for pointers.
11635         (aff_combination_to_tree): Use sizetype for the step if a
11636         pointer.
11637
11638 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
11639
11640         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11641         Remove commutativity hint.
11642
11643 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
11644
11645         PR c/35438
11646         PR c/35439
11647         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11648         errorneous type.  Check that v is a VAR_DECL.
11649
11650         PR middle-end/35099
11651         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11652
11653 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11654
11655         PR tree-optimization/35494
11656         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11657         may be overriden at link and run time.
11658
11659 2008-03-10  Richard Guenther  <rguenther@suse.de>
11660
11661         PR tree-optimization/34677
11662         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11663         (poolify_tree): Likewise.
11664         (modify_expr_template): Likewise.
11665         (poolify_modify_stmt): Likewise.
11666         (insert_fake_stores): Handle all component-ref style stores
11667         in addition to INDIRECT_REF.  Also handle complex types.
11668         Do not poolify the inserted load.
11669         (realify_fake_stores): Do not rebuild the tree but only
11670         make it a SSA_NAME copy.
11671         (init_pre): Remove initialzation of modify_expr_template.
11672         Do not allocate modify_expr_node_pool.
11673         (fini_pre): Do not free modify_expr_node_pool.
11674
11675 2008-03-10  Paul Brook  <paul@codesourcery.com>
11676
11677         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11678         to avoid conflicts.
11679
11680 2008-03-10  Paul Brook  <paul@codesourcery.com>
11681             Mark Shinwell  <shinwell@codesourcery.com>
11682
11683         * config/arm/cortex-r4.md: New.
11684         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11685         insn attributes.
11686         * config/arm/arm.md: Include cortex-r4.md.
11687         (insn): Add smmls, sdiv and udiv values.
11688         (generic_sched): Don't use generic scheduling for Cortex-R4.
11689         (arm_issue_rate): New function.
11690         (TARGET_SCHED_ISSUE_RATE): Define.
11691
11692 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
11693
11694         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11695
11696 2008-03-10  Richard Guenther  <rguenther@suse.de>
11697
11698         * tree-ssa-pre.c (get_sccvn_value): Simplify.
11699         (compute_avail): Do not add stmt uses to AVAIL_OUT.
11700
11701 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
11702
11703         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11704         Set default to true.
11705
11706 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11707
11708         * c.opt (Wsynth): Deprecate.
11709         * doc/invoke.texi (Option Summary, Warning Options): Document
11710         -Wno-format-contains-nul.
11711
11712 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
11713
11714         PR target/35496
11715         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11716         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11717
11718 2008-03-09  Ira Rosen  <irar@il.ibm.com>
11719
11720         * config/rs6000/rs6000.c (builtin_description): Rename vector
11721         left shift operations.
11722         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11723         (altivec_vsl<VI_char>): Rename to ...
11724         (ashl<mode>3): ... new name.
11725         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11726         gen_ashlv4si3.
11727         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11728
11729 2008-03-08  Richard Guenther  <rguenther@suse.de>
11730
11731         * coverage.h (tree_coverage_counter_addr): Declare.
11732         * coverage.c (tree_coverage_counter_addr): New function.
11733         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11734         before using again.
11735         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11736         (tree_gen_one_value_profiler): Likewise.
11737         (tree_gen_ic_profiler): Likewise.
11738         (tree_gen_average_profiler): Likewise.
11739         (tree_gen_ior_profiler): Likewise.
11740
11741 2008-03-08  Richard Guenther  <rguenther@suse.de>
11742
11743         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11744         (vn_binary_op_insert): Likewise.
11745         (vn_unary_op_lookup): Likewise.
11746         (vn_unary_op_insert): Likewise.
11747         (vn_nary_op_lookup): Declare.
11748         (vn_nary_op_insert): Likewise.
11749         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11750         and binary hashes, use a single obstack for unary_op_pool
11751         and binary_op_pool.
11752         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11753         a single struct vn_nary_op_s.  Store tree code length and
11754         a variable number of operands.
11755         (struct vn_reference_op_struct): Remove unused op2.
11756         (vn_reference_op_eq): Do not compare op2.
11757         (vn_reference_op_compute_hash): Do not compute hash of op2.
11758         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11759         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11760         with vn_nary_op_compute_hash.
11761         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11762         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11763         vn_nary_op_lookup.
11764         (vn_unary_op_insert, vn_binary_op_insert): Replace with
11765         vn_nary_op_insert.
11766         (visit_unary_op): Call nary functions.
11767         (visit_binary_op): Likewise.
11768         (process_scc): Adjust for struct vn_tables_s changes.
11769         (allocate_vn_table): Likewise.
11770         (free_vn_table): Likewise.
11771         * tree-vn.c (vn_add): Call nary functions.
11772         (vn_lookup): Likewise.
11773
11774 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
11775
11776         PR target/35498
11777         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11778         wdst back after sync_compare_and_swapqhi_internal.
11779
11780 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
11781
11782         PR target/22152
11783         * config/i386/i386-modes.def (V1DI): New vector mode.
11784         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11785         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11786         (MMXMODE248): Ditto.
11787         (MMXMODE): Add V1DI mode.
11788         (mmxvecsize): Change DI mode to V1DI mode.
11789         ("mov<mode>): Use MMXMODEI8 mode iterator.
11790         ("*mov<mode>_internal_rex64"): Ditto.
11791         ("*mov<mode>_internal"): Ditto.
11792         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
11793         ("mmx_sub<mode>3"): Ditto.
11794         ("mmx_adddi3"): Remove insn pattern.
11795         ("mmx_subdi3"): Ditto.
11796         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11797         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11798         ("mmx_ashl<mode>3"): Ditto.
11799         ("mmx_lshrdi3"): Remove insn pattern.
11800         ("mmx_ashldi3"): Ditto.
11801         * config/i386/i386.c (classify_argument): Handle V1DImode.
11802         (function_arg_advance_32): Ditto.
11803         (function_arg_32): Ditto.
11804         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11805         mmx_addv1di3 insn pattern.
11806         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11807         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11808         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11809         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11810         Remove definitions of built-in functions.
11811         (V1DI_type_node): New node.
11812         (v1di_ftype_v1di_int): Ditto.
11813         (v1di_ftype_v1di_v1di): Ditto.
11814         (v2si_ftype_v2si_si): Ditto.
11815         (v4hi_ftype_v4hi_di): Remove node.
11816         (v2si_ftype_v2si_di): Ditto.
11817         (ix86_init_mmx_sse_builtins): Handle V1DImode.
11818         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11819         Redefine builtins using def_builtin_const with *_ftype_*_int node.
11820         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11821         Add new builtins using def_builtin_const.
11822         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11823         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11824         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11825         * config/i386/mmintrin.h (__v1di): New typedef.
11826         (_mm_add_si64): Cast arguments to __v1di type.
11827         (_mm_sub_si64): Ditto.
11828         (_mm_sll_pi16): Cast __count to __v4hi type.
11829         (_mm_sll_pi32): Cast __count to __v2si type.
11830         (_mm_sll_si64): Cast arguments to __v1di type.
11831         (_mm_srl_pi16): Cast __count to __v4hi type.
11832         (_mm_srl_pi32): Cast __count to __v2si type.
11833         (_mm_srl_si64): Cast arguments to __v1di type.
11834         (_mm_sra_pi16): Cast __count to __v4hi type.
11835         (_mm_sra_pi32): Cast __count to __v2si type.
11836         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11837         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11838         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11839         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11840         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11841         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11842         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11843         (_mm_srai_pi32): Use __builtin_ia32_psradi.
11844         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11845         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11846         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11847         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11848
11849 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
11850
11851         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11852
11853 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
11854
11855         PR target/35373
11856         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11857         reg+const addressing for Altivec modes.  Don't generate reg+reg
11858         addressing for TFmode or TDmode quantities.
11859
11860 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
11861
11862         * c-common.c (vector_types_convertible_p): Call langhook
11863         instead of comptypes.
11864
11865 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11866
11867         PR tree-opt/35402
11868         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11869         integral and scalar float variables which have a
11870         NULL DECL_INITIAL.
11871
11872 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
11873
11874         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11875         dwarf_register_span hook when emitting unwind information for
11876         register-to-memory saves.
11877         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11878         (rs6000_frame_related): Remove call to spe_synthesize_frame.
11879
11880 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11881
11882         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11883         for the same VAR_DECL.
11884
11885 2008-03-06  Tom Tromey  <tromey@redhat.com>
11886
11887         * treelang: Delete.
11888         * doc/standards.texi (Standards): Don't mention treelang.
11889         * doc/invoke.texi (Overall Options): Don't mention treelang.
11890         * doc/install.texi (Prerequisites): Don't mention bison or
11891         treelang.
11892         (Configuration): Don't mention treelang.
11893         (Building): Likewise.
11894         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11895
11896 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
11897
11898         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11899         word-extractions out of a multi-word object.
11900
11901 2008-03-06  Richard Guenther  <rguenther@suse.de>
11902
11903         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11904         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11905         result type and precision.
11906         * expr.c (get_inner_reference): Set unsignedp based on the result
11907         type of BIT_FIELD_REF.
11908         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11909         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11910         (try_instantiate_multiple_fields): Likewise.  Use the correct type
11911         for BIT_FIELD_REF.
11912         (sra_build_assignment): Likewise.
11913         (sra_build_elt_assignment): Likewise.
11914         (sra_explode_bitfield_assignment): Likewise.
11915         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11916         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11917         set BIT_FIELD_REF_UNSIGNED.
11918         (vectorizable_load): Likewise.
11919
11920 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11921
11922         * cse.c (cse_extended_basic_block): Invalidate artificial defs
11923         at bb start.
11924
11925 2008-03-06  Richard Guenther  <rguenther@suse.de>
11926
11927         * alias.c (struct alias_set_entry): Move has_zero_child field
11928         to pack with alias_set.
11929
11930 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11931
11932         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11933         32bit host.
11934
11935 2008-03-05  Ian Lance Taylor  <iant@google.com>
11936
11937         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11938
11939 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
11940
11941         * fwprop.c (update_df): Support width and offset parameters of
11942         df_ref_create.
11943         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11944         global_conflicts): Change DF_REF_EXTRACT to either
11945         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11946         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11947         * df-scan.c (df_ref_record, df_defs_record,
11948         df_ref_create_structure, df_def_record_1, df_uses_record,
11949         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11950         df_bb_refs_collect, df_entry_block_defs_collect,
11951         df_exit_block_uses_collect): Support new width and offset fields.
11952         (ref_extract_pool): New storage pool.
11953         (df_free_ref): New function.
11954         (df_reg_chain_unlink, df_free_collection_rec,
11955         df_sort_and_compress_refs): Call df_free_ref.
11956         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11957         of df_ref_extract.
11958         (df_ref_create_structure): Allocate df_ref_extract if offset and
11959         width fields are used.
11960         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11961         (df_uses_record): Get offset and width from ZERO_EXTRACT 
11962         and SIGN_EXTRACT.
11963         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11964         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11965         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11966         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11967         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11968         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11969         (df_ref_extract): New structure.
11970         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11971         (df_ref_create): Add width and offset parameters.
11972         
11973 2008-03-05  Richard Guenther  <rguenther@suse.de>
11974
11975         * tree-ssa-structalias.c (get_constraint_for_component_ref):
11976         Use ranges_overlap_p.
11977         (offset_overlaps_with_access): Rename
11978         to ranges_overlap_p and move ...
11979         * tree-flow-inline.h (ranges_overlap_p): ... here.
11980
11981         * tree.h (get_inner_reference, handled_component_p): Update
11982         comments.
11983
11984         * tree.h (record_component_aliases, get_alias_set,
11985         alias_sets_conflict_p, alias_sets_must_conflict_p,
11986         objects_must_conflict_p): Move declarations ...
11987         * alias.h (record_component_aliases, get_alias_set,
11988         alias_sets_conflict_p, alias_sets_must_conflict_p,
11989         objects_must_conflict_p): ... here.
11990         Include coretypes.h.
11991         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11992
11993 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
11994
11995         * cfg.c: Include tree-flow.h.
11996         (remove_edge_raw): Call redirect_edge_var_map_clear.
11997         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11998         * tree-flow-inline.h (redirect_edge_var_map_def): New.
11999         (redirect_edge_var_map_result): New.
12000         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12001         PENDING_STMT use with redirect_edge_var_map_*.
12002         * tree-ssa.c (edge_var_maps): New definition.
12003         (redirect_edge_var_map_add): New.
12004         (redirect_edge_var_map_clear): New.
12005         (redirect_edge_var_map_dup): New.
12006         (redirect_edge_var_map_vector): New.
12007         (redirect_edge_var_map_destroy): New.
12008         (ssa_redirect_edge): Replace PENDING_STMT use with
12009         redirect_edge_var_map_*.
12010         (flush_pending_stmts): Same.
12011         (delete_tree_ssa): Destroy edge var map.
12012         * tree-flow.h (struct _edge_var_map): New.
12013         Define edge_var_map vector type.
12014         Declare redirect_edge_var_map_* prototypes.
12015         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12016         * tree-cfg.c (reinstall_phi_args): Replace
12017         PENDING_STMT use with redirect_edge_var_map_*.
12018
12019 2008-03-05  Richard Guenther  <rguenther@suse.de>
12020
12021         PR tree-optimization/35472
12022         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12023         whose single use_stmt has a overlapping set of loaded and
12024         stored symbols as that use_stmt might be a noop assignment then.
12025
12026 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
12027
12028         * gthr-rtems.h: Implement __gthread_mutex_destroy.
12029
12030 2008-03-05  Richard Guenther  <rguenther@suse.de>
12031
12032         PR c++/35336
12033         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12034         should be constants.
12035         * tree-cfg.c (verify_expr): Verify it.
12036         * fold-const.c (fold_truthop): Remove code generating
12037         BIT_FIELD_REFs of structure bases.
12038         (fold_binary): Likewise.
12039         (fold_ternary): Position and size of BIT_FIELD_REFs are
12040         always host integers.
12041         (make_bit_field_ref): Remove.
12042         (optimize_bit_field_compare): Remove.
12043         (all_ones_mask_p): Remove.
12044
12045 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
12046
12047         PR gcc/33009
12048         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12049         (split_block_and_df_analyze): New. Split basic block and rebuild
12050         dataflow.
12051         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12052         SPLIT_BLOCK.
12053         (split_pattern_seq): Likewise.
12054         (erase_matching_seqs): Likewise.
12055         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12056
12057 2008-03-04  Geoff Keating  <geoffk@apple.com>
12058
12059         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12060         declaration and code.
12061         (tree_invalid_nonnegative_warnv_p): Likewise.
12062
12063 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
12064
12065         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12066         examples.  Truncate option-names then causing overfull hbox.
12067
12068 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12069
12070         PR target/35222
12071         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12072         on hpux10.
12073         * configure: Rebuilt.
12074
12075 2008-03-04  Rafael Espindola  <espindola@google.com>
12076
12077         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12078         (tree_unary_nonnegative_warnv_p): New.
12079         (tree_binary_nonnegative_warnv_p): New.
12080         (tree_single_nonnegative_warnv_p): New.
12081         (tree_invalid_nonnegative_warnv_p): New.
12082         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12083
12084 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12085
12086         PR 28322
12087         * opts.c (handle_option): Postpone 'unknown option' errors only for
12088         warning options.
12089
12090 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
12091
12092         PR target/35453
12093         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12094         (_SIDD_XXX): This.
12095
12096 2008-03-04  Rafael Espindola  <espindola@google.com>
12097
12098         * fold-const.c (tree_unary_nonzero_warnv_p): New.
12099         (tree_binary_nonzero_warnv_p): New.
12100         (tree_single_nonzero_warnv_p): New.
12101         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12102
12103 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
12104
12105         PR middle-end/35456
12106         * fold-const.c (fold_cond_expr_with_comparison): Prevent
12107         transformations for modes that have signed zeros.
12108         * ifcvt.c (noce_try_abs): Ditto.
12109
12110 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
12111
12112         * config/i386/i386.c (override_options): Force
12113         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12114
12115 2008-03-04  Jan Hubicka  <jh@suse.cz>
12116
12117         PR c++/35262
12118         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12119         in last commit.
12120
12121 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
12122
12123         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
12124         label to probe the stack.
12125
12126 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
12127
12128         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12129         (__gthr_win32_mutex_destroy): Declare.
12130         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12131         __gthr_win32_mutex_destroy.
12132         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
12133
12134 2008-03-03  Jan Hubicka  <jh@suse.cz>
12135
12136         PR c++/35262
12137         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12138         aggressive on inlining cold calls.
12139
12140 2008-03-03  Richard Guenther  <rguenther@suse.de>
12141
12142         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
12143         struct copies into the expression table.
12144         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
12145         (try_to_simplify): Likewise.
12146         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
12147         integral and pointer arguments which do not change the
12148         precision to NOP_EXPRs.
12149         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
12150         VIEW_CONVERT_EXPR case.
12151
12152 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
12153
12154         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
12155         defined in a loop at depth 0 is invariant.
12156         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12157         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
12158         be called at loop depth 0.
12159
12160 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
12161
12162         PR driver/35420
12163         * gcc.c (process_command): Update copyright notice dates.
12164         * gcov.c (print_version): Likewise.
12165         * gcov-dump.c (print_version): Likewise.
12166         * mips-tfile.c (main): Likewise.
12167         * mips-tdump.c (main): Likewise.
12168
12169 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12170
12171         PR 24924
12172         * c-common.c (flag_permissive): Delete.
12173         (constant_expression_warnings): Check flags first.
12174         (constant_expression_error): New.
12175         * c-common.h (flag_permissive): Delete.
12176         (constant_expression_error): Declare.
12177         * flags.h (flag_permissive): Declare. Update description.
12178         * diagnostic.c (pedwarn): Update.
12179         (permerror): New.
12180         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12181         (permissive_error_kind): New.
12182         * toplev.c (flag_permissive): Define. Update description.
12183         * toplev.h (permissive_error_kind): Declare.
12184         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12185         (pedwarn_c90): Use pedantic_warning_kind.
12186         * c-opts.c (c_common_post_options): flag_permissive does not affect
12187         flag_pedantic_errors.
12188
12189 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
12190
12191         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12192         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12193         __absvsi2, __absvDI2): Use unsigned arithmetic.
12194
12195 2008-03-02  Andi Kleen  <ak@suse.de>
12196             Richard Guenther  <rguenther@suse.de>
12197
12198         * struct-equiv.c: Remove file.
12199         * cfg_cleanup.c (condjump_equiv_p): Remove.
12200         * Makefile.in (OBJS-common): Remove struct-equiv.o.
12201         (struct-equiv.o): Remove rule.
12202         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12203         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
12204         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12205
12206 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12207
12208         * ifcvt.c (noce_process_if_block): Try to handle only the then
12209         block if the else block exists but isn't suitable.
12210
12211 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12212
12213         PR gcc/35063
12214         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12215         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12216         regression from previous patch.
12217
12218 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12219
12220         PR gcc/35063
12221         * gthr.h: Add __gthread_mutex_destroy as a function that must be
12222         implemented.
12223         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12224         * gthr-single.h (__gthread_mutex_destroy): Likewise.
12225         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12226         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12227         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12228         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12229         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12230         (__gthread_mutex_destroy_function): Rename to
12231         __gthread_mutex_destroy.
12232         * gthr-dce.h (__gthread_mutex_destroy): Call
12233         pthread_mutex_destroy.
12234         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12235         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12236         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12237
12238 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12239
12240         * df-scan.c (df_ref_chain_change_bb): Simplify.
12241         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
12242         set_block_for_insn if there's any change.
12243         * df.h ((df_insn_change_bb): Fix prototype.
12244         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12245         df_insn_change_bb, don't call set_block_for_insn.
12246         * emit-rtl.c (reorder_insns): Likewise.
12247         * haifa-sched.c (move_insn): Likewise.
12248
12249 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12250
12251         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12252
12253 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12254
12255         * tree-flow-inline.h (next_readonly_imm_use): Return
12256         NULL_USE_OPERAND_P after the end.
12257
12258 2008-03-01  Richard Guenther  <rguenther@suse.de>
12259
12260         PR tree-optimization/35411
12261         * tree-sra.c (sra_build_assignment): Split conversion to
12262         final type to a separate statement if we are not assigning
12263         to a register.
12264
12265 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12266
12267         * fold-const.c (fold_convertible_p): Correct the logic to follow
12268         that in fold_convert().
12269
12270 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
12271
12272         PR c++/35315
12273         * tree-inline.c (build_duplicate_type): When we make a
12274         duplicate type, make it unique in the canonical types system.
12275
12276 2008-02-29  Tom Tromey  <tromey@redhat.com>
12277
12278         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12279         input_file_stack_history, input_file_stack_restored): Remove.
12280         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12281         * input.h (struct file_stack): Remove.
12282         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12283         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12284         Likewise.
12285         * diagnostic.h (struct diagnostic_context) <last_module>: Change
12286         type.
12287         (diagnostic_last_module_changed): Add 'map' argument.
12288         (diagnostic_set_last_function): Likewise.
12289         * diagnostic.c (undiagnostic_report_current_module): Iterate using
12290         line map, not input_file_stack.
12291         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12292
12293 2008-02-29  Paul Brook  <paul@codesourcery.com>
12294
12295         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12296
12297 2008-02-29  Paul Brook  <paul@codesourcery.com>
12298
12299         * config/arm/ieee754-df.S (muldf3): Use RET macros.
12300
12301 2008-02-29  Richard Guenther  <rguenther@suse.de>
12302
12303         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12304         vn_lookup_or_add.
12305         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12306         value for comparing for a store match.
12307         (simplify_unary_expression): Do nothing for SSA_NAMEs.
12308         (try_to_simplify): Do not do a full-blown reference lookup.
12309
12310 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12311
12312         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12313         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12314
12315         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12316
12317 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
12318
12319         * tree-loop-linear.c (try_interchange_loops): Compare memory access
12320         strides against cache sizes.
12321
12322 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12323
12324         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12325         constant to fpul.
12326
12327 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
12328
12329         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12330         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12331         is smaller than the original promoted value.
12332         (simplify_subreg): If OP is a SUBREG, try to preserve its
12333         SUBREG_PROMOTED_VAR_P information.
12334
12335 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
12336
12337         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12338         (VN_INFO_GET): Allocate new objects on the obstack.
12339         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
12340         for rpo_numbers_temp, for consistency.
12341         (free_scc_vn): Free the obstack.
12342
12343 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
12344
12345         * doc/invoke.texi: Document -ftree-loop-distribution.
12346         * tree-loop-distribution.c: New.
12347         * tree-pass.h (pass_loop_distribution): New.
12348         * graphds.h (struct graph): Add htab_t indices.
12349         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12350         * tree-vectorizer.c (rename_variables_in_loop): Extern.
12351         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12352         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12353         * tree-data-ref.c (debug_data_dependence_relations): New.
12354         (dump_data_dependence_relation): Also print data references.
12355         (free_data_ref): Extern.
12356         (same_access_functions): Moved...
12357         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12358         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12359         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12360         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12361         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12362         (stmts_from_loop): Skip LABEL_EXPR.
12363         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12364         New.
12365         (build_rdg): Initialize rdg->indices htab.
12366         (free_rdg, stores_from_loop, ref_base_address,
12367         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12368         have_similar_memory_accesses_1, ref_base_address_1,
12369         remove_similar_memory_refs): New.
12370         * tree-data-ref.h: Depend on tree-chrec.h.
12371         (debug_data_dependence_relations, free_data_ref): Declared.
12372         (same_access_functions): ... here.
12373         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12374         New.
12375         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12376         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12377         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12378         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12379         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12380         rdg_vertex_for_stmt): Declared.
12381         (struct rdg_edge): Add level.
12382         (RDGE_LEVEL): New.
12383         (free_rdg, stores_from_loop, remove_similar_memory_refs,
12384         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12385         Declared.
12386         (rdg_has_similar_memory_accesses): New.
12387         * tree-vect-analyze.c: Remove unused static decls.
12388         * lambda.h (dependence_level): New.
12389         * common.opt (ftree-loop-distribution): New.
12390         * tree-flow.h (mark_virtual_ops_in_bb, 
12391         slpeel_tree_duplicate_loop_to_edge_cfg,
12392         rename_variables_in_loop): Declared.
12393         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12394         (OBJS-common): Add tree-loop-distribution.o.
12395         (tree-loop-distribution.o): New rule.
12396         * tree-cfg.c (mark_virtual_ops_in_bb): New.
12397         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12398         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12399
12400 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
12401
12402         PR target/33963
12403         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12404         other than structures and unions.
12405
12406 2008-02-28  Richard Guenther  <rguenther@suse.de>
12407
12408         Revert:
12409         2008-02-26  Richard Guenther  <rguenther@suse.de>
12410
12411         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12412         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12413         (lookup_decl_from_uid): Declare.
12414         (remove_decl_from_map): Likewise.
12415         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12416         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12417         (decl_for_uid_map): New global hashtable mapping DECL_UID
12418         to the decl tree.
12419         (init_ttree): Allocate it.
12420         (insert_decl_to_uid_decl_map): New helper function.
12421         (make_node_stat): Insert new decls into the map.
12422         (copy_node_stat): Likewise.
12423         (lookup_decl_from_uid): New function.
12424         (remove_decl_from_map): Likewise.
12425         (print_decl_for_uid_map_statistics): New helper.
12426         (dump_tree_statistics): Call it.
12427
12428         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12429         (referenced_var_iterator): Adjust.
12430         (FOR_EACH_REFERENCED_VAR): Adjust.
12431         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12432         (num_referenced_vars): Adjust.
12433         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12434         (first_referenced_var): Remove.
12435         (end_referenced_vars_p): Likewise.
12436         (next_referenced_var): Likewise.
12437         (referenced_var_iterator_set): New helper function.
12438         * tree-dfa.c (referenced_var_lookup): Adjust.
12439         (referenced_var_check_and_insert): Likewise.
12440         (remove_referenced_var): Likewise.
12441         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12442         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12443         (verify_call_clobbering): Likewise.
12444         (verify_memory_partitions): Likewise.
12445         (init_tree_ssa): Allocate bitmap instead of hashtable for
12446         referenced_vars.
12447         (delete_tree_ssa): Adjust.
12448         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12449         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12450         (compute_tag_properties): Likewise.
12451         (set_initial_properties): Likewise.
12452         (find_partition_for): Likewise.
12453         (update_reference_counts): Likewise.
12454         (dump_may_aliases_for): Likewise.
12455         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12456         (add_call_clobber_ops): Likewise.
12457         (add_call_read_ops): Likewise.
12458         (get_asm_expr_operands): Likewise.
12459         * tree-into-ssa.c (dump_decl_set): Likewise.
12460         (update_ssa): Likewise.
12461         * tree-sra.c (scan_function): Likewise.
12462         (decide_instantiations): Likewise.
12463         (scalarize_parms): Likewise.
12464         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12465         (dsa_named_for): Likewise.
12466         * tree-ssa-structalias.c (update_alias_info): Likewise.
12467         (merge_smts_into): Likewise.
12468
12469 2008-02-27  David Daney  <ddaney@avtrex.com>
12470
12471         PR target/34409
12472         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12473         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12474         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12475         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12476         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12477
12478 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
12479
12480         PR target/25477
12481         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12482         (BUILT_IN_NEXTTOWARD): Remove.
12483         (BUILT_IN_NEXTTOWARDF): Ditto.
12484         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12485         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
12486
12487 2008-02-27  Tom Tromey  <tromey@redhat.com>
12488
12489         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12490         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12491
12492 2008-02-27  Jan Beulich  <jbeulich@novell.com>
12493
12494         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12495         update the respective field on newdecl.
12496
12497 2008-02-27  Revital Eres  <eres@il.ibm.com>
12498
12499         PR rtl-optimization/34999
12500         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12501         crossing edges that ends with a call insn.
12502         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12503         call insn and clear the EDGE_CROSSING flag of the crossing edge
12504         when fixing fallthru edges.
12505
12506 2008-02-27  Richard Guenther  <rguenther@suse.de>
12507
12508         PR middle-end/35390
12509         * fold-const.c (fold_unary): Return the correct argument,
12510         converted to the result type.
12511
12512 2008-02-27  Richard Guenther  <rguenther@suse.de>
12513
12514         PR middle-end/34971
12515         * expr.c (expand_expr_real_1): Assert on rotates that operate
12516         on partial modes.
12517         * fold-const.c (fold_binary): Use the types precision, not the
12518         bitsize of the mode if folding rotate expressions.  Build rotates
12519         only for full modes.
12520
12521 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
12522
12523         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12524         and CPP_PRAGMA_EOL.
12525         * c-pragma.c (pragma_ns_name): New typedef.
12526         (registered_pp_pragmas): New variable.
12527         (c_pp_lookup_pragma): New function.
12528         (c_register_pragma_1): If flag_preprocess_only, do nothing
12529         for non-expanded pragmas, for expanded ones push pragma's
12530         namespace and name into registered_pp_pragmas vector.
12531         (c_invoke_pragma_handler): Register OpenMP pragmas even when
12532         flag_preprocess_only, don't register GCC pch_preprocess
12533         pragma if flag_preprocess_only.
12534         * c-opts.c (c_common_init): Call init_pragma even if
12535         flag_preprocess_only.
12536         * c-pragma.c (c_pp_lookup_pragma): New prototype.
12537         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12538         cpp_register_pragma if flag_preprocess_only.
12539
12540 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12541
12542         PR c/28800
12543         * c-parser.c (c_parser_translation_unit): Warn for empty
12544         translation unit, not empty source file.
12545
12546 2008-02-26  Paul Brook  <paul@codesourcery.com>
12547
12548         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12549         operand for Thumb-2.
12550         * config/arm/arm.h (reg_class): Add CORE_REGS.
12551         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12552         (BASE_REG_CLASS): Use CORE_REGS.
12553         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12554         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12555         (REGNO_OK_FOR_INDEX_P): Exclude SP.
12556         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
12557         ARM_REGNO_OK_FOR_INDEX_P.
12558         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12559         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12560         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12561         (ldm/stm peepholes): Ditto.
12562         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12563         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12564         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12565         * config/arm/constraints.md: Enable "k" constraint on ARM.
12566
12567 2008-02-27  Ben Elliston  <bje@au.ibm.com>
12568
12569         * config/rs6000/rs6000.c: Annotate cache line size field in all
12570         instances of struct processor_costs.
12571
12572 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
12573
12574         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12575         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12576         jump_bypass): New counters.
12577         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12578         * dce.c (gate_ud_dce): Same.
12579         (gate_fast_dce): Same.
12580         * dse.c (gate_dse1): New function.
12581         (gate_dse2): New function.
12582         (gate_dse): Merge results of new gate functions.
12583         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12584         (gate_handle_jump_bypass): Add dbg_cnt.
12585         (gate_handle_gcse): Add dbg_cnt.
12586         * ifcvt.c (gate_handle_if_conversion): Same.
12587         (gate_handle_if_after_combine): Same.
12588         (gate_handle_if_after_reload): Same.
12589         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12590
12591 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
12592
12593         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12594         line sizes.
12595         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12596
12597 2008-02-26  Jason Merrill  <jason@redhat.com>
12598
12599         PR c++/35315
12600         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
12601         alone if it's the naming decl for the type's main variant.
12602
12603 2008-02-26  Tom Tromey  <tromey@redhat.com>
12604
12605         * system.h (USE_MAPPED_LOCATION): Poison.
12606         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12607         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12608         (make_goto_expr_edges): Likewise.
12609         (remove_bb): Likewise.
12610         (execute_warn_function_return): Likewise.
12611         * basic-block.h (struct edge_def) <goto_locus>: Change type to
12612         location_t.
12613         * c-common.c (fname_decl): Remove old location code.
12614         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12615         location code.
12616         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12617         variant.
12618         (ASM_INPUT_SOURCE_LOCATION): Likewise.
12619         (gen_rtx_ASM_INPUT): Likewise.
12620         (gen_rtx_ASM_INPUT_loc): Likewise.
12621         (get_rtx_asm_OPERANDS): Remove.
12622         * cfglayout.c (insn_locators_alloc): Remove old location code.
12623         (set_curr_insn_source_location): Likewise.
12624         (curr_insn_locator): Likewise.
12625         * print-tree.c (print_node): Remove old location code.
12626         * tree-mudflap.c (mf_varname_tree): Remove old location code.
12627         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12628         * cfgexpand.c (expand_gimple_cond_expr): Don't use
12629         location_from_locus.
12630         (construct_exit_block): Remove old location code.
12631         * emit-rtl.c (force_next_line_note): Remove old location code.
12632         * profile.c (branch_prob): Remove old location code.
12633         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12634         LOC_LINE): Remove old-location variants.
12635         * langhooks.c (lhd_print_error_function): Remove old location
12636         code.
12637         * configure, config.in: Rebuilt.
12638         * configure.ac (--enable-mapped-location): Remove.
12639         * c-decl.c (c_init_decl_processing): Remove old location code.
12640         (finish_function): Likewise.
12641         * recog.c (decode_asm_operands): Remove old location code.
12642         * c-pch.c (c_common_read_pch): Remove old location code.
12643         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12644         variants.
12645         * gimple-low.c (lower_function_body): Remove old location code.
12646         * toplev.c (unknown_location): Remove.
12647         (push_srcloc): Remove old-location variant.
12648         (process_options): Remove old location code.
12649         (lang_dependent_init): Likewise.
12650         * input.h (UNKNOWN_LOCATION): Move definition.
12651         (location_t): Undeprecate.
12652         (source_locus): Remove.
12653         (location_from_locus): Remove.
12654         (struct location_s): Remove.
12655         Remove all old-location code.
12656         (input_line, input_filename): Remove.
12657         * final.c (final_scan_insn): Remove old location code.
12658         * diagnostic.c (diagnostic_build_prefix): Remove
12659         USE_MAPPED_LOCATION test.
12660         * tree.h (gimple_stmt) <locus>: Now a location_t.
12661         (tree_exp) <locus>: Likewise.
12662         (DECL_IS_BUILTIN): Remove old-location variant.
12663         (annotate_with_file_line, annotate_with_locus): Likewise.
12664         (expr_locus, set_expr_locus): Update.
12665         * tree.c (build1_stat): Remove old location code.
12666         (last_annotated_node): Remove.
12667         (annotate_with_file_line): Remove old-location variant.
12668         (annotate_with_locus): Likewise.
12669         (expr_location): Remove old location code.
12670         (set_expr_location): Likewise.
12671         (expr_has_location): Likewise.
12672         (expr_locus): Likewise.
12673         (set_expr_locus): Likewise.
12674         (expr_filename): Don't use location_from_locus.
12675         (expr_lineno): Likewise.
12676         * rtl-error.c (location_for_asm): Remove old location code.
12677         * c-lex.c (cb_line_change): Remove old location code.
12678         (fe_file_change): Likewise.
12679         (cb_def_pragma): Likewise.
12680         (c_lex_with_flags): Likewise.
12681         * gengtype.c (do_typedef): Don't special-case location types.
12682         (define_location_structures): Remove.
12683         (main): Don't call define_location_structures.
12684         * tree-pretty-print.c (dump_implicit_edges): Remove old location
12685         code.
12686
12687 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12688
12689         PR 26264
12690         * builtins.def (BUILT_IN_STDARG_START): Remove.
12691         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12692         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12693         * tree-inline.c (inline_forbidden_p_1): Likewise.
12694         
12695 2008-02-26  Richard Guenther  <rguenther@suse.de>
12696
12697         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12698         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12699         (lookup_decl_from_uid): Declare.
12700         (remove_decl_from_map): Likewise.
12701         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12702         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12703         (decl_for_uid_map): New global hashtable mapping DECL_UID
12704         to the decl tree.
12705         (init_ttree): Allocate it.
12706         (insert_decl_to_uid_decl_map): New helper function.
12707         (make_node_stat): Insert new decls into the map.
12708         (copy_node_stat): Likewise.
12709         (lookup_decl_from_uid): New function.
12710         (remove_decl_from_map): Likewise.
12711         (print_decl_for_uid_map_statistics): New helper.
12712         (dump_tree_statistics): Call it.
12713
12714         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12715         (referenced_var_iterator): Adjust.
12716         (FOR_EACH_REFERENCED_VAR): Adjust.
12717         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12718         (num_referenced_vars): Adjust.
12719         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12720         (first_referenced_var): Remove.
12721         (end_referenced_vars_p): Likewise.
12722         (next_referenced_var): Likewise.
12723         (referenced_var_iterator_set): New helper function.
12724         * tree-dfa.c (referenced_var_lookup): Adjust.
12725         (referenced_var_check_and_insert): Likewise.
12726         (remove_referenced_var): Likewise.
12727         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12728         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12729         (verify_call_clobbering): Likewise.
12730         (verify_memory_partitions): Likewise.
12731         (init_tree_ssa): Allocate bitmap instead of hashtable for
12732         referenced_vars.
12733         (delete_tree_ssa): Adjust.
12734         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12735         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12736         (compute_tag_properties): Likewise.
12737         (set_initial_properties): Likewise.
12738         (find_partition_for): Likewise.
12739         (update_reference_counts): Likewise.
12740         (dump_may_aliases_for): Likewise.
12741         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12742         (add_call_clobber_ops): Likewise.
12743         (add_call_read_ops): Likewise.
12744         (get_asm_expr_operands): Likewise.
12745         * tree-into-ssa.c (dump_decl_set): Likewise.
12746         (update_ssa): Likewise.
12747         * tree-sra.c (scan_function): Likewise.
12748         (decide_instantiations): Likewise.
12749         (scalarize_parms): Likewise.
12750         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12751         (dsa_named_for): Likewise.
12752         * tree-ssa-structalias.c (update_alias_info): Likewise.
12753         (merge_smts_into): Likewise.
12754
12755 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12756
12757         PR 34351
12758         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12759         * c-opts.c (c_common_handle_option): Wall enables
12760         Wvolatile-register-var.
12761         * common.opt: Move Wvolatile-register-var to...
12762         * c.opt: ...here.
12763         
12764 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12765
12766         * common.opt (Wlarger-than=): New.
12767         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12768         -Wlarger-than=.
12769         * opts.c (common_handle_option): Handle -Wlarger-than=.
12770         * optc-gen.awk: Likewise.
12771         * opth-gen.awk: Likewise.
12772         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12773         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12774         
12775 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12776
12777         * c-common.c (match_case_to_enum_1): Add appropriate
12778         OPT_W* parameter to warning.
12779         (c_do_switch_warnings): Likewise.
12780         * c-typeck.c (warning_init): Add one more parameter following
12781         'warning' function.
12782         (push_init_level): Update call to warning_init.
12783         (pop_init_level): Likewise.
12784         (add_pending_init): Likewise.
12785         (output_init_element: Likewise.
12786
12787 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12788
12789         PR 28322
12790         * toplev.c (toplev_main): If there are warnings or error, print
12791         errors for ignored options.
12792         * opts.c (ignored_options): New static variable.
12793         (postpone_unknown_option_error): New.
12794         (print_ignored_options): New.
12795         (handle_option): Postpone errors for unknown -Wno-* options.
12796         * opts.h (print_ignored_options): Declare.
12797         
12798 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12799
12800         * config/mips/mips.md (loadgp_blockage, blockage): Change type
12801         to "ghost".
12802
12803 2008-02-25  Richard Guenther  <rguenther@suse.de>
12804
12805         Revert:
12806         2008-02-25  Richard Guenther  <rguenther@suse.de>
12807
12808         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12809         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12810         (lookup_decl_from_uid): Declare.
12811         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12812         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12813         (decl_for_uid_map): New global hashtable mapping DECL_UID
12814         to the decl tree.
12815         (init_ttree): Allocate it.
12816         (insert_decl_to_uid_decl_map): New helper function.
12817         (make_node_stat): Insert new decls into the map.
12818         (copy_node_stat): Likewise.
12819         (lookup_decl_from_uid): New function.
12820         (print_decl_for_uid_map_statistics): New helper.
12821         (dump_tree_statistics): Call it.
12822
12823         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12824         (referenced_var_iterator): Adjust.
12825         (FOR_EACH_REFERENCED_VAR): Adjust.
12826         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12827         (num_referenced_vars): Adjust.
12828         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12829         (first_referenced_var): Remove.
12830         (end_referenced_vars_p): Likewise.
12831         (next_referenced_var): Likewise.
12832         (referenced_var_iterator_set): New helper function.
12833         * tree-dfa.c (referenced_var_lookup): Adjust.
12834         (referenced_var_check_and_insert): Likewise.
12835         (remove_referenced_var): Likewise.
12836         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12837         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12838         (verify_call_clobbering): Likewise.
12839         (verify_memory_partitions): Likewise.
12840         (init_tree_ssa): Allocate bitmap instead of hashtable for
12841         referenced_vars.
12842         (delete_tree_ssa): Adjust.
12843         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12844         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12845         (compute_tag_properties): Likewise.
12846         (set_initial_properties): Likewise.
12847         (find_partition_for): Likewise.
12848         (update_reference_counts): Likewise.
12849         (dump_may_aliases_for): Likewise.
12850         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12851         (add_call_clobber_ops): Likewise.
12852         (add_call_read_ops): Likewise.
12853         (get_asm_expr_operands): Likewise.
12854         * tree-into-ssa.c (dump_decl_set): Likewise.
12855         (update_ssa): Likewise.
12856         * tree-sra.c (scan_function): Likewise.
12857         (decide_instantiations): Likewise.
12858         (scalarize_parms): Likewise.
12859         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12860         (dsa_named_for): Likewise.
12861         * tree-ssa-structalias.c (update_alias_info): Likewise.
12862         (merge_smts_into): Likewise.
12863
12864 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12865
12866         PR fortran/29549
12867         * doc/invoke.texi (-fcx-limited-range): Document new option.
12868         * toplev.c (process_options): Handle -fcx-fortran-rules.
12869         * common.opt: Add documentation for -fcx-fortran-rules.
12870
12871 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12872
12873         PR c/35162
12874         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12875         actual behaviour and C99.
12876         
12877 2008-02-26  Ben Elliston  <bje@au.ibm.com>
12878
12879         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12880         (ASM_CPU_POWER6_SPEC): Likewise.
12881         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12882         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12883         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12884
12885 2008-02-25  Richard Guenther  <rguenther@suse.de>
12886
12887         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12888         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12889         (lookup_decl_from_uid): Declare.
12890         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12891         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12892         (decl_for_uid_map): New global hashtable mapping DECL_UID
12893         to the decl tree.
12894         (init_ttree): Allocate it.
12895         (insert_decl_to_uid_decl_map): New helper function.
12896         (make_node_stat): Insert new decls into the map.
12897         (copy_node_stat): Likewise.
12898         (lookup_decl_from_uid): New function.
12899         (print_decl_for_uid_map_statistics): New helper.
12900         (dump_tree_statistics): Call it.
12901
12902         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12903         (referenced_var_iterator): Adjust.
12904         (FOR_EACH_REFERENCED_VAR): Adjust.
12905         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12906         (num_referenced_vars): Adjust.
12907         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12908         (first_referenced_var): Remove.
12909         (end_referenced_vars_p): Likewise.
12910         (next_referenced_var): Likewise.
12911         (referenced_var_iterator_set): New helper function.
12912         * tree-dfa.c (referenced_var_lookup): Adjust.
12913         (referenced_var_check_and_insert): Likewise.
12914         (remove_referenced_var): Likewise.
12915         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12916         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12917         (verify_call_clobbering): Likewise.
12918         (verify_memory_partitions): Likewise.
12919         (init_tree_ssa): Allocate bitmap instead of hashtable for
12920         referenced_vars.
12921         (delete_tree_ssa): Adjust.
12922         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12923         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12924         (compute_tag_properties): Likewise.
12925         (set_initial_properties): Likewise.
12926         (find_partition_for): Likewise.
12927         (update_reference_counts): Likewise.
12928         (dump_may_aliases_for): Likewise.
12929         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12930         (add_call_clobber_ops): Likewise.
12931         (add_call_read_ops): Likewise.
12932         (get_asm_expr_operands): Likewise.
12933         * tree-into-ssa.c (dump_decl_set): Likewise.
12934         (update_ssa): Likewise.
12935         * tree-sra.c (scan_function): Likewise.
12936         (decide_instantiations): Likewise.
12937         (scalarize_parms): Likewise.
12938         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12939         (dsa_named_for): Likewise.
12940         * tree-ssa-structalias.c (update_alias_info): Likewise.
12941         (merge_smts_into): Likewise.
12942
12943 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
12944
12945         PR target/35258
12946         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12947         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12948         * alias.h (nonoverlapping_memrefs_p): Likewise.
12949
12950 2008-02-25  Jan Beulich  <jbeulich@novell.com>
12951
12952         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12953         * config/i386/netware-libgcc.exp: Add __bswap?i2,
12954         __emultls_get_address, __emultls_register_common,
12955         __floatundi?f, and _Unwind_GetIPInfo.
12956         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12957         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12958         (gen_regparm_prefix): Likewise.
12959         (i386_nlm_encode_section_info): Sync with
12960         config/i386/winnt.c:i386_pe_encode_section_info().
12961         (i386_nlm_maybe_mangle_decl_assembler_name): New.
12962         i386_nlm_mangle_decl_assembler_name): New.
12963         (netware_override_options): New.
12964         * config/i386/netware.h (netware_override_options): Declare.
12965         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12966         (i386_nlm_mangle_decl_assembler_name): Declare.
12967         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12968
12969 2008-02-25  Ben Elliston  <bje@au.ibm.com>
12970
12971         PR other/32948
12972         * c-decl.c (grokdeclarator): Remove unused local variables
12973         `typedef_type' and `type_as_written'.
12974         * bb-reorder.c
12975         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12976         unused local variable `has_hot_blocks'.
12977         (fix_crossing_conditional_branches): Remove unused local variable
12978         `prev_bb'.
12979         
12980 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
12981
12982         PR middle-end/19984
12983         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12984         using DEF_C99_BUILTIN.
12985         (BUILT_IN_NANF): Ditto.
12986         (BUILT_IN_NANL): Ditto.
12987
12988 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
12989             Revital Eres  <eres@il.ibm.com>
12990
12991         * modulo-sched.c (calculate_must_precede_follow): Address TODO
12992         regarding the order of two dependent insns in the same row.
12993
12994 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12995
12996         * stor-layout.c (layout_decl): Do not bump the alignment of a
12997         bit-field to more than byte alignment if it is packed.
12998
12999 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
13000
13001         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13002         e300c2 and e300c3.
13003
13004 2008-02-24  Diego Novillo  <dnovillo@google.com>
13005
13006         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13007
13008         PR 33738
13009         * tree-vrp.c (vrp_evaluate_conditional): With
13010         -Wtype-limits, emit a warning when comparing against a
13011         constant outside the natural range of OP0's type.
13012         * c.opt (Wtype-limits): Move ...
13013         * common.opt (Wtype-limits): ... here.
13014
13015 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
13016
13017         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13018         * config/rs6000/e300c2c3.md: New file.
13019         * config/rs6000/rs6000.c (processor_costs): Add new costs for
13020         e300c2 and e300c3.
13021         (rs6000_override_options): Add e300c2 and e300c3 cases to
13022         processor_target_table. Do not allow usage of Altivec or Spe
13023         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13024         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13025         * config/rs6000/rs6000.h (processor_type): Add
13026         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13027         (ASM_CPU_SPEC): Add e300c2 and e300c3.
13028         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13029         and ppce300c3. Include e300c2c3.md.
13030
13031 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
13032
13033         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13034         instead of TARGET_STRICT_ALIGN.
13035
13036 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
13037
13038         * explow.c (memory_address): Assert that the generated address is
13039         valid.
13040
13041 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13042
13043         PR target/25477
13044         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13045         * config/darwin-ppc-ldouble-patch.def: New file.
13046         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13047         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13048         SUBTARGET_INIT_BUILTINS if defined.
13049         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13050         New functions.
13051
13052 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13053
13054         PR rtl-opt/33512
13055         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13056         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13057
13058 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13059
13060         PR pch/35027
13061         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13062         file" warning condtional on -Winvalid-PCH.
13063
13064 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
13065
13066         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13067
13068 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
13069
13070         PR target/22076
13071         PR target/34256 
13072         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13073         prevent reload from using MMX registers.
13074         (*mov<mode>_internal): Ditto.
13075         (*movv2sf_internal_rex64): Ditto.
13076         (*movv2sf_internal): Ditto.
13077
13078 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13079
13080         PR documentation/31569
13081         * doc/install.texi2html: Use makeinfo --no-number-sections.
13082
13083 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13084
13085         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13086         ensure that we can address an entire entity > 8 bytes.  Don't
13087         generate reg+reg addressing for such data.
13088
13089 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13090
13091         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13092         strings when optimizing for size, unless the target cares about
13093         alignment.
13094
13095 2008-02-22  Tom Tromey  <tromey@redhat.com>
13096
13097         * regclass.c (current_pass): Remove declaration.
13098
13099 2008-02-22  Anatoly Sokolov <aesok@post.ru>
13100
13101         * config/avr/libgcc.S (__RAMPZ__): Define.
13102         (__do_copy_data): Add for devices with 128KB code memory.
13103
13104 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13105
13106         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13107         Use spe_abi.
13108         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13109
13110 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
13111
13112         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13113         GENNONACR_REGS.
13114
13115 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13116
13117         PR c/19999
13118         * c-typeck.c (build_binary_op): Warn about floating point
13119         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13120
13121 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
13122
13123         PR target/34526
13124         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13125         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13126         add vrsave.
13127         (rs6000_override_options): Set altivec_abi as default, not override,
13128         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13129         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13130         is used; use new member spe_abi.
13131         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13132         spe_abi and altivec_abi.
13133
13134 2008-02-22  Tomas Bily  <tbily@suse.cz>
13135
13136         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13137
13138 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13139
13140         PR bootstrap/35273
13141         * config.build (build_file_translate): Set to `CMD //c' only if
13142         it works.
13143         * Makefile.in (build_file_translate): Improve comment.
13144
13145 2008-02-21  Jan Hubicka  <jh@suse.cz>
13146
13147         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
13148         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
13149         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
13150
13151 2008-02-21  Michael Matz  <matz@suse.de>
13152
13153         PR target/35264
13154         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
13155
13156 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
13157
13158         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
13159         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
13160         as insn constraint.
13161         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
13162         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
13163         SSE_VEC_FLOAT_MODE_P as insn constraint.
13164         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
13165         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
13166         sse4a_movntdf using MODEF mode iterator.
13167         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
13168         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
13169         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
13170         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
13171         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
13172         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
13173         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
13174
13175 2008-02-21  Richard Guenther  <rguenther@suse.de>
13176
13177         * tree.def (PAREN_EXPR): New tree code.
13178         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13179         and PAREN_EXPR.
13180         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13181         * expr.c (expand_expr_real_1): Likewise.
13182         * tree-inline.c (estimate_num_insns_1): Likewise.
13183         * tree-complex.c (expand_complex_move): Likewise.
13184         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13185         as plain x.
13186
13187 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13188
13189         PR target/35225
13190         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13191
13192 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13193
13194         PR target/35190
13195         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13196
13197         * config/sh/sh.c (find_barrier): Don't go past
13198         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13199
13200 2008-02-20  DJ Delorie  <dj@redhat.com>
13201
13202         * config/h8300/h8300.md (insv): Force source operand to be a register.
13203
13204         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13205         as a jump, not as a plain insn.
13206         
13207 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
13208
13209         * doc/invoke.texi (Warning Options): Add new option
13210         -Wframe-larger-than=.
13211         (-Wframe-larger-than): Document.
13212
13213         * flags.h (warn_frame_larger_than, frame_larger_than_size):
13214         Add declarations for new option variables.
13215
13216         * final.c (final_start_function): Check the frame size
13217         before emission and issue a Wframe-larger-than warning.
13218
13219         * opts.c (warn_frame_larger_than, frame_larger_than_size):
13220         Add definitions for new option variables.
13221         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13222
13223         * common.opt (Wframe-larger-than=): New option.
13224
13225 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13226
13227         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13228         (<sse>_div<mode>3): Ditto.
13229         (<sse>_vmdiv<mode>3): Ditto.
13230         (<sse>_vmsqrt<mode>2): Ditto.
13231         (*smax<mode>3): Ditto.
13232         (sse5_frcz<mode>2): Ditto.
13233         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
13234         as insn constraint.
13235
13236 2008-02-20  Richard Guenther  <rguenther@suse.de>
13237
13238         PR middle-end/35265
13239         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13240         be happy with INTEGRAL_TYPE_P.
13241
13242 2008-02-20  Richard Guenther  <rguenther@suse.de>
13243
13244         * fold-const.c (split_tree): Associate floatig-point expressions
13245         if flag_associative_math is set.
13246
13247 2008-02-20  Richard Guenther  <rguenther@suse.de>
13248
13249         * tree.h (fold_real_zero_addition_p): Declare.
13250         * fold-const.c (fold_real_zero_addition_p): Export.
13251         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13252         floating-point operations with zero and one.
13253
13254 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
13255
13256         * doc/install.texi: Correct references to CFLAGS, replacing them
13257         with BOOT_CFLAGS.  Document flags used during bootstrap for
13258         target libraries.
13259                                 
13260 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13261
13262         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13263         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13264         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13265         insn constraint.
13266         (smin<mode>3): Ditto from similar patterns.
13267         (smax<mode>3): Ditto.
13268         (*ieee_smin<mode>3): Ditto.
13269         (*ieee_smax<mode>3): Ditto.
13270         * config/i386/sse.md (sse): New mode attribute.
13271         (mov<mode>): Macroize expander from movv4sf and movv2df using
13272         SSEMODEF2P mode iterator.
13273         (<sse>_movnt<mode>): Ditto from similar patterns. Use
13274         SSE_VEC_FLOAT_MODE_P as insn constraint.
13275         (storent<mode>): Ditto.
13276         (storent<mode>): Macroize expander from storentsf and storentdf using
13277         MODEF mode iterator.
13278         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13279         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13280         (abs<mode>2): Ditto from similar patterns.
13281         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13282         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13283         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13284         (<sse>_vmsqrt<mode>2): Ditto.
13285         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13286         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13287         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13288         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13289         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13290         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13291         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13292         insn constraint.
13293         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13294         iterator and SSE_FLOAT_MODE_P as insn constraint.
13295         (<sse>_ucomi): Ditto from similar patterns.
13296         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13297         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13298         SSE_VEC_FLOAT_MODE_P as insn constraint.
13299         (vcond<mode>): Ditto from similar patterns.
13300         (and<mode>3, *and<mode>3): Ditto.
13301         (<sse>_nand<mode>3): Ditto.
13302         (ior<mode>3, *ior<mode>3): Ditto.
13303         (xor<mode>3, *xor<mode>3): Ditto.
13304         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13305         iterator and SSE_FLOAT_MODE_P as insn constraint.
13306         (*nand<mode>3): Ditto from similar patterns.
13307         (*ior<mode>3): Ditto.
13308         (*xor<mode>3): Ditto.
13309
13310 2008-02-20  Ira Rosen  <irar@il.ibm.com>
13311
13312         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13313         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13314         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13315
13316 2008-02-19  Jan Hubicka  <jh@suse.cz>
13317
13318         * predict.c (tree_bb_level_predictions): Remove variable next
13319         mistakely introduced by previous commit.
13320
13321 2008-02-19  Jan Hubicka  <jh@suse.cz>
13322
13323         * predict.c (predict_paths_leading_to): Rewrite.
13324         (predict_paths_for_bb): New.
13325         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13326
13327 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13328
13329         PR bootstrap/35218
13330         * Makefile.in (build_file_translate): New.
13331         (gcc-vers.texi): Use it for translating $(abs_srcdir).
13332         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13333         * configure.ac (build_file_translate): Substitute it.
13334         * configure: Regenerate.
13335
13336 2008-02-19  Jan Hubicka  <jh@suse.cz>
13337
13338         PR rtl-optimization/34408
13339         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13340         invalid sharing.
13341
13342 2008-02-19  Jan Hubicka  <jh@suse.cz>
13343
13344         PR middle-end/28779
13345         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13346         call_expr.
13347
13348 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13349
13350         PR Ada/35186
13351         * config/i386/i386-modes.def: Revert the last DI alignment
13352         change until Ada people can look into it.
13353
13354 2008-02-19  Nick Clifton  <nickc@redhat.com>
13355
13356         * opts.c (print_specific_help): Fix typo in --help text.
13357
13358 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
13359
13360         PR target/35239
13361         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13362         32-bit inline asm without asm alternatives for host GCC < 3.0.
13363
13364 2008-02-19  Richard Guenther  <rguenther@suse.de>
13365
13366         PR tree-optimization/34989
13367         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13368         Allow propagation to INDIRECT_REF if we can simplify only.
13369
13370 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13371
13372         * c-common.c (warn_for_collisions_1): Use appropriate option when
13373         warning.
13374
13375 2008-02-19  Nick Clifton  <nickc@redhat.com>
13376
13377         PR other/31349
13378         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13379         (handle_options): Fix indentation.
13380         (print_filtered_help): If no language-specific options were
13381         displayed tell the user how to list all the options supported by
13382         the language's front-end.
13383         (print_specific_help): Fix indentation and remove duplicate line.
13384         (common_handle_option): Handle the -v option.
13385         For --help enable the display of undocumented options if the -v
13386         switch has been included on the command line.
13387         For --help= check for overlaps in the arguments between the option
13388         classes and the language names and issue a warning when they
13389         cannot be disambiguated.
13390         * c.opt (v): Pass on to the common option handler.
13391
13392 2008-02-19  Revital Eres  <eres@il.ibm.com> 
13393
13394         * modulo-sched.c (sms_schedule): Change dump message when
13395         create_ddg function fails.
13396         (try_scheduling_node_in_cycle): Rename row to cycle.
13397         (print_partial_schedule): Rename CYCLE to ROW.
13398
13399 2008-02-19  Christian Bruel  <christian.bruel@st.com>
13400             Zdenek Dvorak  <ook@ucw.cz>
13401
13402         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13403
13404 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13405
13406         PR target/33555
13407         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13408         (*x86_movdicc_0_m1_se): Ditto.
13409
13410 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13411
13412         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13413         (CMPtype): Define as __gcc_CMPtype.
13414         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13415         (CMPtype): Define as __gcc_CMPtype.
13416
13417 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
13418
13419         Support valgrind 3.3 for --enable-checking=valgrind.
13420         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13421         here.
13422         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13423         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13424         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13425         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13426         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13427         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13428         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13429         respectively.
13430         * ggc-zone.c: Similar.
13431         * ggc-page.c: Similar.
13432
13433 2008-02-19  Paul Brook  <paul@codesourcery.com>
13434
13435         PR target/35071
13436         * config/arm/ieee754-df.S: Fix do_it typo.
13437         * config/arm/ieee754-sf.S: Fix do_it typo.
13438
13439 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13440
13441         PR target/35189
13442         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13443         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13444         (OPTION_MASK_ISA_SSE_SET): Likewise.
13445         (OPTION_MASK_ISA_SSE2_SET): Likewise.
13446         (OPTION_MASK_ISA_SSE3_SET): Likewise.
13447         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13448         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13449         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13450         (OPTION_MASK_ISA_SSE4_SET): Likewise.
13451         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13452         (OPTION_MASK_ISA_SSE5_SET): Likewise.
13453         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13454         (OPTION_MASK_ISA_MMX_UNSET): Updated.
13455         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13456         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13457         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13458         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13459         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13460         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13461         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13462         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13463         (OPTION_MASK_ISA_SSE4): Removed.
13464         (ix86_handle_option): Turn on bits in ix86_isa_flags and
13465         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13466         (override_options): Don't turn on implied SSE/MMX bits in
13467         ix86_isa_flags.
13468
13469 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13470
13471         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13472         32bit host.
13473
13474 2008-02-18  Joey Ye  <joey.ye@intel.com>
13475
13476         PR middle-end/34921
13477         * tree-nested.c (insert_field_into_struct): Set type alignment
13478         to field alignment if the former is less than the latter.
13479
13480 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
13481
13482         * BASE-VER: Set to 4.4.0.
13483
13484 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13485
13486         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13487         * doc/cfg.texi: Likewise.
13488         * doc/extend.texi: Likewise.
13489         * doc/gty.texi: Likewise.
13490         * doc/invoke.texi: Likewise.
13491         * doc/loop.texi: Likewise.
13492         * doc/md.texi: Likewise.
13493         * doc/passes.texi: Likewise.
13494         * doc/rtl.texi: Likewise.
13495         * doc/sourcebuild.texi: Likewise.
13496         * doc/tm.texi: Likewise.
13497         * doc/tree-ssa.texi: Likewise.
13498
13499 2008-02-17  Richard Guenther  <rguenther@suse.de>
13500
13501         PR middle-end/35227
13502         * tree-complex.c (init_parameter_lattice_values): Handle parameters
13503         without default definition.
13504
13505 2008-02-17  Richard Guenther  <rguenther@suse.de>
13506
13507         PR tree-optimization/35231
13508         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13509         if A | B != 1.
13510
13511 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
13512
13513         Revert:
13514         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
13515         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13516         libgcc_cmp_return mode.
13517
13518 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13519
13520         PR c/28368
13521         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13522
13523 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
13524
13525         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13526         multilibs.
13527
13528 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13529
13530         * doc/c-tree.texi: Use `@.' where appropriate.
13531         * doc/extend.texi: Likewise.
13532         * doc/install.texi: Likewise.
13533         * doc/invoke.texi: Likewise.
13534         * doc/loop.texi: Likewise.
13535         * doc/makefile.texi: Likewise.
13536         * doc/md.texi: Likewise.
13537         * doc/passes.texi: Likewise.
13538         * doc/standards.texi: Likewise.
13539         * doc/tm.texi: Likewise.
13540
13541 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13542
13543         PR middle-end/35196
13544         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13545         in entry_bb.
13546         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13547         rather than in entry_bb.
13548
13549 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13550
13551         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13552         libgcc_cmp_return mode.
13553
13554 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13555
13556         PR middle-end/35130
13557         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13558         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13559
13560 2008-02-15  Richard Guenther  <rguenther@suse.de>
13561             Zdenek Dvorak  <ook@ucw.cz>
13562
13563         PR tree-optimization/35164
13564         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13565         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13566         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13567         Only propagate addresses which do not have abnormal SSA_NAMEs
13568         in their operands.
13569
13570 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
13571
13572         PR target/35088
13573         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13574
13575 2008-02-15  Jan Hubicka  <jh@suse.cz>
13576
13577         PR middle-end/35149
13578         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13579
13580 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13581
13582         PR middle-end/34621
13583         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13584         when calculating alignment_pad.
13585
13586 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13587
13588         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13589         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13590         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13591         and STACK_BOUNDARY define.
13592
13593 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
13594
13595         PR preprocessor/35061
13596         * c-pragma.c (handle_pragma_pop_macro): Check that
13597         pushed_macro_table has been allocated.
13598
13599 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13600
13601         PR middle-end/35136
13602         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13603         (force_gimple_operand): Likewise.
13604         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13605         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13606         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13607         (find_interesting_uses_address): Check addressability and alignment
13608         of the base expression only after substituting bases of IVs into it.
13609
13610 2008-02-14  Michael Matz  <matz@suse.de>
13611
13612         PR target/34930
13613         * function.c (instantiate_virtual_regs_in_insn): Reload address
13614         before falling back to reloading the whole operand.
13615
13616 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13617
13618         * config/s390/s390.c (s390_mainpool_start): Emit the pool
13619         before the first section switch note.
13620
13621 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13622
13623         * doc/bugreport.texi: Update copyright years.
13624         * doc/c-tree.texi: Likewise.
13625         * doc/cfg.texi: Likewise.
13626         * doc/cpp.texi: Likewise.
13627         * doc/cppinternals.texi: Likewise.
13628         * doc/fragments.texi: Likewise.
13629         * doc/frontends.texi: Likewise.
13630         * doc/gcc.texi: Likewise.
13631         * doc/gty.texi: Likewise.
13632         * doc/hostconfig.texi: Likewise.
13633         * doc/implement-c.texi: Likewise.
13634         * doc/libgcc.texi: Likewise.
13635         * doc/loop.texi: Likewise.
13636         * doc/makefile.texi: Likewise.
13637         * doc/options.texi: Likewise.
13638         * doc/passes.texi: Likewise.
13639         * doc/rtl.texi: Likewise.
13640         * doc/sourcebuild.texi: Likewise.
13641         * doc/standards.texi: Likewise.
13642         * doc/tree-ssa.texi: Likewise.
13643         * doc/trouble.texi: Likewise.
13644
13645         * doc/extend.texi: Use @: or add comma where appropriate.
13646         * doc/invoke.texi: Likewise.
13647         * doc/tm.texi: Likewise.
13648
13649 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
13650
13651         PR target/34393
13652         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13653         to a reg.
13654
13655 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
13656
13657         * doc/md.texi (clz, ctz): Add reference.
13658         * doc/rtl.texi (clz, ctz): Likewise.
13659
13660 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13661
13662         PR other/35148
13663         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13664         srcdir.
13665
13666 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
13667
13668         * config/s390/s390.c (struct constant_pool): New field
13669         emit_pool_after added.
13670         (s390_mainpool_start): Set the emit_pool_after flag according
13671         to the section switch notes.
13672         (s390_mainpool_finish): Consider emit_pool_after when emitting
13673         the literal pool at the end of the function.
13674         (s390_chunkify_start): Force literal pool splits at section
13675         switch notes.
13676
13677 2008-02-13  Michael Matz  <matz@suse.de>
13678
13679         PR debug/35065
13680         * var-tracking.c (clobber_variable_part): Correctly traverse the
13681         list.
13682
13683 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13684
13685         PR 29673
13686         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13687         Add -fdump-ipa-inline.
13688         * tree-dump.c (dump_files): Remove tree-inlined dump.
13689         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13690         
13691 2008-02-12  Richard Guenther  <rguenther@suse.de>
13692
13693         PR tree-optimization/35171
13694         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13695         default defs.
13696
13697 2008-02-12  Richard Guenther  <rguenther@suse.de>
13698
13699         PR middle-end/35163
13700         * fold-const.c (fold_widened_comparison): Use get_unwidened in
13701         value-preserving mode.  Disallow final truncation.
13702
13703 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13704
13705         PR middle-end/35136
13706         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13707         code from here to...
13708         (force_gimple_operand): ...here.
13709
13710 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
13711
13712         PR c++/35144
13713         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13714         non-compatible pointers.
13715         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13716         different FIELD_DECLs, try harder by comparing field offsets, sizes
13717         and types.
13718
13719         PR inline-asm/35160
13720         * function.c (match_asm_constraints_1): Don't replace the same input
13721         multiple times.
13722
13723 2008-02-12  Anatoly Sokolov <aesok@post.ru>
13724
13725         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13726         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13727         (expand_epilogue): Restore RAMPZ register.
13728         * config/avr/avr.md (RAMPZ_ADDR): New constant.
13729
13730 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
13731
13732         * config/i386/cygwin.asm: (__alloca): Correct calling
13733         convention and alignment.
13734         (__chkstk): Force 8 byte stack alignment.
13735
13736 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
13737             Richard Guenther  <rguenther@suse.de>
13738
13739         PR tree-optimization/33992
13740         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13741         the zero we compare against.
13742
13743 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
13744
13745         PR libfortran/35063
13746         * gthr-win32.h (__gthread_mutex_destroy_function): New function
13747         to CloseHandle after unlocking to prevent accumulation of handle
13748         count.
13749
13750 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13751
13752         PR middle_end/34150
13753         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13754         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
13755         and update LABEL_NUSES during and after reload.
13756
13757 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13758
13759         PR middle-end/34627
13760         * combine.c (simplify_if_then_else): Make sure the comparison is
13761         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13762
13763 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13764
13765         PR bootstrap/35051
13766         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13767         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13768         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13769         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13770         * tree.h (get_type_static_bounds): Likewise.
13771
13772 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13773
13774         * doc/invoke.texi (Option Summary, C++ Dialect Options)
13775         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13776         Make -Wfoo language annotations match what the compiler outputs.
13777
13778 2008-02-08  Sa Liu  <saliu@de.ibm.com>
13779
13780         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
13781         intrinsics spu_convts, spu_convtu, spu_convtf.
13782
13783 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
13784
13785         * doc/extend.texi (Function Attributes) <noinline>: Mention
13786         asm ("") as method to keep calls.
13787
13788 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13789
13790         PR other/32754
13791         * doc/options.texi (Options): Replace references to opts.sh with
13792         optc-gen.awk.
13793         * opts-common.c: Likewise.
13794         * optc-gen.awk: Likewise.
13795         
13796 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13797
13798         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13799
13800 2008-02-07  Richard Henderson  <rth@redhat.com>
13801
13802         PR rtl-opt/33410
13803         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13804         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
13805         funny mode.
13806
13807 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
13808
13809         PR tree-optimization/35085
13810         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13811         for operand entry oe2 in addition to operand entry oe3 in order to
13812         expose more opportunities for vectorizer sum reduction.
13813
13814 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13815
13816         PR other/35107
13817         * Makefile.in (LIBS): Remove $(GMPLIBS).
13818         (cc1-dummy, cc1): Add $(GMPLIBS).
13819
13820 2008-02-06  Jan Hubicka  <jh@suse.cz>
13821
13822         PR target/23322
13823         * i386.md (moddf_integer): Do not produce partial memory stalls for
13824         targets where it hurts.
13825
13826 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
13827
13828         PR target/35083
13829         * optabs.c (expand_float): Do not check for decimal modes when
13830         expanding unsigned integer through signed conversion.
13831
13832 2008-02-06  Nick Clifton  <nickc@redhat.com>
13833
13834         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13835         inside the clobber with a match_operand and duplicated operand
13836         number in the constraint.
13837         (ineqbranchsi): Delete redundant comment.
13838
13839 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
13840
13841         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
13842         builtin_define ("__USE_INIT_FINI__").
13843         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13844         -msx multilibs.
13845         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13846
13847 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13848
13849         PR documentation/30330
13850         * doc/invoke.texi (C++ Dialect Options)
13851         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13852         For each warning option -Wfoo that allows -Wno-foo, ensure both
13853         -Wfoo and -Wno-foo are listed in the option index.  Fix index
13854         entry of -Wswitch-default, index -Wnormalized= including the
13855         `=', and -Wlarger-than-@var{len} including @var{len}.
13856
13857 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13858
13859         * config/i386/i386.md (floatunssisf2): Use
13860         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13861         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13862         Macroize expander using MODEF mode iterator.
13863
13864 2008-02-05  Diego Novillo  <dnovillo@google.com>
13865
13866         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13867
13868         PR 33738
13869         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13870
13871 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13872
13873         PR other/35070
13874         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13875
13876 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
13877
13878         PR target/35084
13879         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13880         to indicate if a message should be generated.
13881         (init_cumulative_args): Updated.
13882         (function_value_32): Likewise.
13883
13884 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
13885
13886         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13887
13888 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13889
13890         PR target/35083
13891         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13892         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13893
13894 2008-02-04  Diego Novillo  <dnovillo@google.com>
13895
13896         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13897
13898         PR 33738
13899         * tree-vrp.c (vrp_evaluate_conditional): With
13900         -Wtype-limits, emit a warning when comparing against a
13901         constant outside the natural range of OP0's type.
13902
13903 2008-02-04  Richard Guenther  <rguenther@suse.de>
13904
13905         PR middle-end/33631
13906         * expr.c (count_type_elements): Give for unions instead of
13907         guessing.
13908
13909 2008-02-04  Richard Guenther  <rguenther@suse.de>
13910
13911         PR middle-end/35043
13912         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13913         to TYPE_DOMAINs base type instead of using bitsizetype here.
13914
13915 2008-02-03  Jason Merrill  <jason@redhat.com>
13916
13917         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13918
13919 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13920
13921         PR other/29972
13922         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13923         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13924         (RS/6000 and PowerPC Options): Fix typos and markup.
13925         * doc/passes.texi (Tree-SSA passes): Likewise.
13926
13927 2008-02-02  Michael Matz  <matz@suse.de>
13928
13929         PR target/35045
13930         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13931         from record_last_reg_set_info.
13932         (record_last_reg_set_info): Take an RTX argument, iterate over all
13933         constituent hardregs.
13934         (record_last_set_info, record_opr_changes): Change calls to
13935         new signature or to record_last_reg_set_info_regno.
13936
13937 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13938
13939         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13940
13941 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
13942
13943         PR rtl-optimization/34773
13944         * reg-notes.def (EQUAL): Mention significance of combination of
13945         REG_EQUAL and REG_RETVAL.
13946         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13947         insn that has a REG_RETVAL.
13948
13949 2008-02-01  Roger Sayle  <roger@eyesopen.com>
13950
13951         PR bootstrap/33781
13952         * configure.ac (--enable-fixed-point): Disable unless explicitly
13953         requested on IRIX.
13954         * configure: Regenerate.
13955
13956 2008-02-01  Richard Guenther  <rguenther@suse.de>
13957
13958         PR other/35042
13959         * invoke.texi (-finline-limit): Remove no longer true parts
13960         of the documentation.  Note that there is no default value.
13961
13962 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
13963             Mark Mitchell  <mark@codesourcery.com>
13964             Ben Elliston  <bje@au.ibm.com>
13965
13966         PR c/29326
13967         * doc/extend.texi (Other Builtins): Document.
13968
13969 2008-01-31  Tom Browder <tom.browder@gmail.com>
13970
13971         * doc/c-tree.texi (Types): Fix grammar.
13972         (Expression trees): Ditto.
13973         * doc/passes.texi (Tree-SSA passes): Ditto.
13974         
13975         * doc/configterms.texi (Configure Terms): Fix typo.
13976         * doc/cpp.texi (Common Predefined Macros): Ditto.
13977         * doc/md.texi (Machine Constraints): Ditto.
13978         
13979         * doc/makefile.texi (Makefile): Add comma.
13980
13981 2008-01-31  Tom Browder  <tom.browder@gmail.com>
13982             Gerald Pfeifer  <gerald@pfeifer.com>
13983         
13984         * doc/sourcebuild.texi (Front End): Remove references to CVS
13985         and CVSROOT/modules.
13986         (Texinfo Manuals): Replace reference to CVS by one to SVN.
13987         (Back End): Remove reference to CVS.
13988
13989 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13990
13991         PR target/34900
13992         * config/mips/mips.c (gen_load_const_gp): New function, taking a
13993         comment from...
13994         (mips16_gp_pseudo_reg): ...here.
13995         * config/mips/mips.md (load_const_gp): Replace with...
13996         (load_const_gp_<mode>): ...this :P-based insn.
13997
13998 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13999
14000         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14001         options. Minor fixes.
14002         (-std): Move reference to standards closer to where language
14003         standards are first mentioned.
14004         
14005 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
14006
14007         PR rtl-optimization/34995
14008         * reload.c (alternative_allows_const_pool_ref): Take an rtx
14009         parameter and return a bool.  If the rtx parameter is nonnull,
14010         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14011         (find_reloads): Update call accordingly.  Pass the new operand
14012         if it needed no address reloads, otherwise pass null.
14013
14014 2008-01-30  Richard Henderson  <rth@redhat.com>
14015
14016         PR c/34993
14017         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14018         for unbounded arrays.
14019
14020 2008-01-30  Silvius Rus  <rus@google.com>
14021
14022         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14023
14024 2008-01-30  Jan Hubicka  <jh@suse.cz>
14025
14026         PR target/34982
14027         * i386.c (init_cumulative_args): Use real function declaration when
14028         calling locally.
14029
14030 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14031
14032         PR rtl-optimization/34998
14033         * global.c (build_insn_chain): Treat non-subreg_lowpart
14034         SUBREGs of pseudos as clobbering all the words covered by the
14035         SUBREG, not just all the bytes.
14036         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
14037         original df_ref rather than an extract parameter.
14038         (global_conflicts): Update call accordingly.
14039
14040 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
14041
14042         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14043         the overflow check to make it easier to read.
14044         (__fixtfdi): Change the type of the ll member in union
14045         long_double to UDItype_x.
14046
14047 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
14048
14049         PR middle-end/34969
14050         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14051         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14052         * tree-inline.c (fold_marked_statements): Call
14053         cgraph_update_edges_for_call_stmt if folding a call statement.
14054         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14055         debug_generic_stmt calls, reset it back afterwards.
14056
14057         PR c/35017
14058         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14059         static decls.
14060         * c-typeck.c (build_external_ref): Don't pedwarn about
14061         static vars in current function's scope.
14062
14063 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
14064
14065         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14066
14067 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
14068
14069         PR c/35002
14070         * ipa-struct-reorg.c: Fix spelling.
14071         * params.def: Ditto.
14072
14073 2008-01-29  Richard Guenther  <rguenther@suse.de>
14074
14075         PR middle-end/35006
14076         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14077         field.
14078         * tree-inline.c (remap_type): Increment remapping_type_depth
14079         around remapping types.
14080         (copy_body_r): Only add referenced variables if they are referenced
14081         from code, not types.
14082
14083 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
14084
14085         PR c++/34055
14086         PR c++/34103
14087         PR c++/34219
14088         PR c++/34606
14089         PR c++/34753
14090         PR c++/34754
14091         PR c++/34755
14092         PR c++/34919
14093         PR c++/34961
14094         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14095         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14096
14097 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
14098
14099         PR target/34412
14100         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
14101         pointer for tiny stack.
14102
14103 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
14104
14105         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14106
14107 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
14108
14109         * config/vx-common.h: Fix typo in comment.
14110
14111 2008-01-28  Ian Lance Taylor  <iant@google.com>
14112
14113         PR c++/34862
14114         PR c++/33407
14115         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14116         coalesce pointers if they have different DECL_NO_TBAA_P values.
14117         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14118         between variables with different DECL_NO_TBAA_P values.
14119
14120 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
14121
14122         PR 31535
14123         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14124         are not legitimate small data references on SPE targets.
14125
14126 2008-01-28  David Daney  <ddaney@avtrex.com>
14127
14128         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14129
14130 2008-01-28  David Daney  <ddaney@avtrex.com>
14131
14132         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
14133
14134 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
14135
14136         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14137         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14138         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14139         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14140         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14141         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
14142         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
14143         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
14144
14145 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14146
14147         * basic-block.h (condjump_equiv_p): Fix comment.
14148
14149 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14150
14151         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
14152         print_generic_stmt_indented): Fix comment.
14153
14154 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14155
14156         * configure.ac (__stack_chk_fail): Add detecion for availability
14157         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
14158         * configure: Regenerate.
14159
14160 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
14161
14162         PR middle-end/34688
14163         * final.c (output_addr_const): Handle TRUNCATE.
14164
14165 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
14166
14167         PR target/34711
14168         * tree-ssa-loop-ivopts.c (comp_cost): New type.
14169         (zero_cost, infinite_cost): New constants.
14170         (struct cost_pair): Change type of cost to comp_cost.
14171         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
14172         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
14173         New functions.
14174         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
14175         split_address_cost, ptr_difference_cost, difference_cost,
14176         get_computation_cost_at, get_computation_cost,
14177         determine_use_iv_cost_generic, determine_use_iv_cost_address,
14178         determine_use_iv_cost_condition, determine_use_iv_costs,
14179         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14180         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14181         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14182         Change type of cost to comp_cost.
14183         (determine_iv_cost): Increase cost of non-original ivs, instead
14184         of decreasing the cost of original ones.
14185         (get_address_cost): Indicate the complexity of the addressing mode 
14186         in comp_cost.
14187         (try_add_cand_for): Prefer using ivs not specific to some object.
14188         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14189
14190 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
14191             Janis Johnson  <janis187@us.ibm.com>
14192
14193         PR target/34814
14194         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14195         (TARGET_INSTANTIATE_DECLS): Likewise.
14196         * target.h (expand_to_rtl_hook): New target hook.
14197         (instantiate_decls): Likewise.
14198         * function.c (instantiate_decl): Make non-static.  Rename to...
14199         (instantiate_decl_rtl): ... this.
14200         (instantiate_expr): Use instantiate_decl_rtl.
14201         (instantiate_decls_1): Likewise.
14202         (instantiate_decls): Likewise.
14203         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14204         * function.h (instantiate_decl_rtl): Add prototype.
14205         * cfgexpand.c (target.h): New include.
14206         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14207         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14208         (TARGET_INSTANTIATE_DECLS): Likewise.
14209         (TARGET_INITIALIZER): New target hooks added.
14210         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14211         New prototype.
14212         * config/rs6000/rs6000.c (tree-flow.h): New include.
14213         (machine_function): Add sdmode_stack_slot field.
14214         (rs6000_alloc_sdmode_stack_slot): New function.
14215         (rs6000_instantiate_decls): Likewise.
14216         (rs6000_secondary_memory_needed_rtx): Likewise.
14217         (rs6000_check_sdmode): Likewise.
14218         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14219         (TARGET_INSTANTIATE_DECLS): Likewise.
14220         (rs6000_hard_regno_mode_ok): Allow SDmode.
14221         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
14222         (rs6000_emit_move): Handle SDmode.
14223         (function_arg_advance): Likewise.
14224         (function_arg): Likewise.
14225         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
14226         SDmode var args for 32-bit compiles.
14227         (rs6000_secondary_reload_class): Handle SDmode.
14228         (rs6000_output_function_epilogue): Likewise.
14229         (rs6000_function_value): Simplify if statement.
14230         (rs6000_libcall_value): Likewise.
14231         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14232         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14233         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14234         (movsd_hardfloat): New define_insn.
14235         (movsd_softfloat): Likewise.
14236         (movsd_store): Likewise.
14237         (movsd_load): Likewise.
14238         (extendsddd2): Likewise.
14239         (extendsdtd2): Likewise.
14240         (truncddsd2): Likewise.
14241         (movdd_hardfloat64): Fixup comment.
14242         (UNSPEC_MOVSD_LOAD): New constant.
14243         (UNSPEC_MOVSD_STORE): Likewise.
14244
14245 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
14246
14247         PR c++/34965
14248         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14249         TRUTH_XOR_EXPR.
14250         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14251         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14252         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14253         and TRUTH_XOR_EXPR.
14254
14255 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
14256
14257         PR target/34794
14258         * config.gcc: Separate AIX 5.3 from AIX 6.1.
14259         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14260         __LONGDOUBLE128 too.
14261         * config/rs6000/aix61.h: New file.
14262
14263 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14264
14265         PR rtl-optimization/34959
14266         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14267         popcount and parity rtxes the same mode as their operand.
14268         Truncate or extend the result to the return value's mode
14269         if necessary.
14270
14271 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14272
14273         PR target/34981
14274         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14275         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14276         to GOT_VERSION_REGNUM.
14277         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14278         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14279         * config/mips/mips.c (mips_emit_call_insn): New function.
14280         (mips_call_tls_get_addr): Call mips_expand_call directly.
14281         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14282         emit_call_insn.
14283         (mips16_build_call_stub): Likewise.  Return the call insn or null.
14284         (mips_expand_call): Update the call to mips16_build_call_stub
14285         accordingly and a remove redundant condition.  Assert that MIPS16
14286         stubs do not use lazy binding.  Use mips_emit_call_insn and return
14287         the call insn.
14288         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14289         TARGET_USE_GOT.
14290         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14291         (mips_avoid_hazard): Remove hazard_set handling.
14292         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14293         (UNSPEC_RESTORE_GP): ...this.
14294         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14295         (FAKE_CALL_REGNO): Rename to...
14296         (GOT_VERSION_REGNUM): ...this.
14297         (type): Add "ghost" value.  Add an associated insn reservation.
14298         (hazard_set): Remove.
14299         (exception_receiver): Rename to...
14300         (restore_gp): ...this and update the unspec identifier accordingly.
14301         (exception_receiver, nonlocal_got_receiver): New expanders.
14302         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
14303         FAKE_CALL_REGNO.  Remove hazard_set attribute.
14304         (set_got_version, update_got_version): New patterns.
14305
14306 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
14307
14308         PR target/34970
14309         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14310
14311 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14312
14313         PR other/31955
14314         * doc/install.texi2html: Generate gcc-vers.texi.
14315
14316 2008-01-25  DJ Delorie  <dj@redhat.com>
14317
14318         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14319
14320 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14321
14322         * config/c4x: Remove directory.
14323         * config.gcc (crx-*, mt-*): Mark obsolete.
14324         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14325         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14326         sh-*-rtemscoff*): Remove cases.
14327         * defaults.h (C4X_FLOAT_FORMAT): Remove.
14328         * real.c (encode_c4x_single, decode_c4x_single,
14329         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14330         c4x_extended_format): Remove.
14331         * real.h (c4x_single_format, c4x_extended_format): Remove.
14332         * doc/extend.texi (interrupt, naked): Remove mention of attributes
14333         on C4x.
14334         (Pragmas): Remove comment about c4x pragmas.
14335         * doc/install.texi (c4x): Remove target-specific instructions.
14336         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14337         * doc/md.texi (Machine Constraints): Remove C4x documentation.
14338         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14339         refer to C4x source files as examples.
14340         (C4X_FLOAT_FORMAT): Remove documentation.
14341
14342 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14343
14344         * config/bfin/bfin.c (override_options): Reorder tests so that
14345         flag_pic gets enabled for -msep-data.
14346
14347 2008-01-25  Richard Guenther  <rguenther@suse.de>
14348
14349         PR middle-end/32244
14350         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14351         to its bitfield precision if required.
14352
14353 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14354
14355         PR middle-end/33880
14356         * tree-nested.c (walk_omp_for): New function.
14357         (convert_nonlocal_reference, convert_local_reference): Call
14358         walk_omp_for on OMP_FOR.
14359         (convert_call_expr): Call walk_body on OMP_FOR's
14360         OMP_FOR_PRE_INIT_BODY.
14361
14362 2008-01-25  Richard Guenther  <rguenther@suse.de>
14363
14364         PR tree-optimization/34966
14365         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14366         default defs and PHI_NODEs we have to insert after the
14367         defining statement.
14368
14369 2008-01-24  Nick Clifton  <nickc@redhat.com>
14370
14371         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14372         Provide a default definition.
14373         (LIBGCC2_UNITS_PER_WORD): Likewise.
14374
14375         * config/stormy16/stormy16.c: Include df.h for the prototype
14376         for df_regs_ever_live_p.
14377         (xstormy16_expand_builtin_va_start): Convert the stack offset
14378         into a component_ref and then use POINTER_PLUS_EXPR to add it
14379         to the incoming_virtual_args_rtx.
14380         (xstormy16_gimplify_va_arg_expr): Rename to
14381         xstormy16_gimplify_va_arg_expr.
14382         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14383         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14384         xstormy16_gimplify_va_arg_expr.
14385         Fix up some formatting issues.
14386
14387         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14388         Move to predicates.md.
14389         (xs_hi_general_operand): Likewise.
14390         (xs_hi_nonmemory_operand): Likewise.
14391         * config/stormy16/predicates.md:
14392         (xstormy16_carry_plus_operand): New predicate.
14393         (xs_hi_general_operand): New predicate.
14394         (xs_hi_nonmemory_operand): New predicate.
14395         * config/stormy16/stormy16-protos.h:
14396         (xstormy16_carry_plus_operand): Delete prototype.
14397         (xs_hi_general_operand): Likewise.
14398         (xs_hi_nonmemory_operand): Likewise.
14399
14400         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14401         modifiers as they are no longer needed and they can trigger
14402         reload spill failures.
14403
14404         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14405         with a match_operand in order to help reload.
14406
14407         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14408         constraint with 'e' for the 8th alternative as this version of
14409         the mov.w instruction only accepts the lower 8 registers.
14410
14411 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
14412
14413         PR target/34856
14414         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14415         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14416         vector elements.
14417
14418 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14419
14420         PR middle-end/33333
14421         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14422
14423 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14424
14425         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14426         New functions.
14427         (remove_structure): Update allocations list before removing structure.
14428         
14429 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14430
14431         * ipa-struct-reorg.c (is_safe_cond_expr, 
14432         create_new_stmts_for_cond_expr): Use integer_zerop function,
14433         that recognize not only zero-pointer, but zero-integer too.
14434
14435 2008-01-25  Ben Elliston  <bje@au.ibm.com>
14436
14437         PR other/22232
14438         * fixproto: Escape "." in sed expression that strips leading "./".
14439
14440 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14441
14442         PR driver/34904
14443         * gcc.c (SWITCH_OK): Removed.
14444         (SWITCH_LIVE): Changed to bit.
14445         (SWITCH_FALSE): Likewise.
14446         (SWITCH_IGNORE): Likewise.
14447         (switchstr): Change live_cond to unsigned int.
14448         (process_command): Replace SWITCH_OK with 0.
14449         (do_self_spec): Likewise.
14450         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14451         (give_switch): Likewise.
14452         (used_arg): Likewise.
14453         (do_spec_1): Set the SWITCH_IGNORE bit.
14454         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14455         bits.  Set the SWITCH_LIVE bit.
14456
14457 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14458
14459         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14460
14461 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14462
14463         PR tree-optimization/34472
14464         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14465         parameter to a "bool *" and set *DATA to false if there is
14466         an unsafe access.  Do not delete the structure here.
14467         (check_cond_exprs): Delete it here instead.
14468         (check_cond_exprs, exclude_cold_structs): Do not increase
14469         I when removing a structure.
14470
14471 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
14472
14473         PR target/34856
14474         * config/i386/i386.c (ix86_expand_vector_init): Consider only
14475         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14476
14477 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
14478
14479         PR middle-end/34934
14480         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14481         a fixed vector for stack.
14482
14483 2008-01-24  Ben Elliston  <bje@au.ibm.com>
14484
14485         PR c++/25701
14486         * doc/gcc.texi (Software development): Add a direntry for g++.
14487         
14488 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
14489
14490         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14491         stale and straggling -fforce-addr comments above.
14492
14493         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14494         define.
14495         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14496         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14497
14498 2008-01-23  Michael Matz  <matz@suse.de>
14499
14500         PR debug/34895
14501         * dwarf2out.c (force_type_die): Use modified_type_die instead of
14502         gen_type_die.
14503
14504 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14505
14506         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14507         malloc result type.
14508
14509 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14510
14511         * config/avr/avr.c (avr_current_arch): New variable.
14512         (avr_arch_types): Add 'avr31' and 'avr51' entries.
14513         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14514         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14515         (avr_override_options): Init 'avr_current_arch'. 
14516         (base_arch_s): Move from here...
14517         * config/avr/avr.h (base_arch_s): ... here. Add new members 
14518         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
14519         'mega' to 'have_jmp_call'.
14520         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
14521         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
14522         macros.
14523         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
14524         architectures.
14525         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
14526         MULTILIB_MATCHES): (Ditto.).
14527
14528 2008-01-23  Richard Guenther  <rguenther@suse.de>
14529
14530         PR middle-end/31529
14531         * cgraphunit.c (cgraph_reset_node): Always mark the node
14532         not reachable if it is not queued already.
14533
14534 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14535
14536         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14537         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14538         (cputype_selected): New static variable.
14539         (bfin_handle_option): Set it if -mcpu is used.
14540         (override_option): Select default set of workarounds if no cpu type
14541         selected on the command line.
14542         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14543
14544         From  Michael Frysinger  <michael.frysinger@analog.com>
14545         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14546         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14547
14548         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14549         for bf547, bf523, bf524, and bf526.
14550         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
14551         bf526.
14552         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14553         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14554         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14555         __ADSPBF547__ and __ADSPBF54x__ for bf547.
14556         * doc/invoke.texi (Blackfin Options): Document that
14557         -mcpu now accept bf547, bf523, bf524, and bf526.
14558
14559 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14560
14561         PR rtl-optimization/34628
14562         * combine.c (try_combine): Stop and undo after the first combination
14563         if an autoincrement side-effect on the first insn has effectively
14564         been lost.
14565
14566 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
14567
14568         PR target/34529
14569         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14570         Offset addresses are not valid for Altivec or paired float modes.
14571
14572 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
14573
14574         PR c++/34607
14575         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14576         if DECL_INITIAL (decl) is error_mark_node.
14577
14578         PR c++/34914
14579         * c-common.c (handle_vector_size_attribute): Only allow
14580         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
14581         the same way as pointer, array etc. types.
14582         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14583
14584         PR c++/34917
14585         * tree.c (build_type_attribute_qual_variant): Call
14586         build_qualified_type if attributes are equal, but quals are not.
14587
14588 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14589
14590         PR 32102
14591         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14592         * flags.h (warn_strict_aliasing): Remove.
14593         (warn_strict_overflow): Remove.
14594         * opts.c (warn_strict_aliasing): Remove.
14595         (warn_strict_overflow): Remove.
14596         * c-opts.c (c_common_handle_option): -Wall only sets
14597         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14598         (c_common_post_options): Give default values to -Wstrict-aliasing
14599         and -Wstrict-overflow if they are uninitialized.
14600         * common.opt (Wstrict-aliasing): Specify Var and Init.
14601         (Wstrict-overflow): Likewise.
14602
14603 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14604
14605         PR rtl-optimization/26854
14606         PR rtl-optimization/34400
14607         PR rtl-optimization/34884
14608         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14609         DF_RD->gen.
14610         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14611         (df_rd_bb_info.expanded_lr_out): Deleted
14612         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14613         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
14614         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14615         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14616         Removed code to allocate, initialize or free expanded_lr_out.
14617         (df_rd_bb_local_compute_process_def): Restructured to make more
14618         understandable.
14619         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14620         sets if the sets are being trimmed.
14621
14622 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14623
14624         PR bootstrap/32287
14625         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14626         (as_vers): Likewise.
14627         * configure: Regenerated.
14628
14629 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14630
14631         PR middle-end/33092
14632         * tree-pass.h (pass_build_alias): New pass.
14633         * tree-ssa-alias.c (gate_build_alias): New.
14634         (pass_build_alias): New.
14635         * passes.c (init_optimization_passes): Add pass_build_alias after
14636         pass_create_structure_vars.
14637
14638 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
14639
14640         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14641         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14642         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14643         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14644         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14645         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14646         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14647         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14648         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14649         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14650         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14651         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14652         * config/s390/s390.md (FP_ALL): New mode iterator.
14653         (_d): New mode attribute.
14654         ("*signbit<mode>2>"): Changed mode of first operand.
14655         ("isinf<mode>2"): Changed mode of first operand.
14656         ("*TDC_insn"): Adaptation for DFP modes.
14657
14658 2008-01-22  Ben Elliston  <bje@au.ibm.com>
14659
14660         * tree.c (check_qualified_type): Improve function description.
14661
14662 2008-01-21  Jason Merrill  <jason@redhat.com>
14663
14664         PR c++/34196
14665         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14666         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14667         if it is set.
14668
14669 2008-01-21  DJ Delorie  <dj@redhat.com>
14670
14671         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14672         return zero.
14673
14674 2008-01-21  Richard Guenther  <rguenther@suse.de>
14675
14676         PR middle-end/34856
14677         * tree-cfg.c (verify_expr): Allow all invariant expressions
14678         instead of just constant class ones as reference argument.
14679         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14680         like any other constant.
14681         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14682
14683 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14684
14685         * regmove.c (fixup_match_1): Update call crossed frequencies.
14686
14687 2008-01-21  Richard Guenther  <rguenther@suse.de>
14688
14689         PR c/34885
14690         * tree-inline.c (setup_one_parameter): Deal with mismatched
14691         types using a VIEW_CONVERT_EXPR.
14692
14693 2008-01-21  Alon Dayan  <alond@il.ibm.com>
14694             Olga Golovanevsky  <olga@il.ibm.com>
14695         
14696         PR tree-optimization/34701
14697         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14698         when the structure size is not a power of 2.
14699
14700 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14701
14702         * doc/install.texi: Add doc for --enable-checking=df.
14703         
14704 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14705
14706         PR rtl-optimization/34808
14707         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14708
14709 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14710
14711         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14712         input.
14713
14714 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
14715
14716         PR rtl-optimization/26854
14717         PR rtl-optimization/34400
14718         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14719         DF_RD->gen.
14720         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14721         (df_rd_bb_info.expanded_lr_out): New.
14722         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14723         * loop_iv.c (iv_analysis_loop_init): Ditto.
14724         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14725         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14726         Added code to allocate, initialize or free expanded_lr_out.
14727         (df_rd_bb_local_compute_process_def): Restructured to make
14728         more understandable.
14729         (df_rd_confluence_n): Add code to do nothing with fake edges and
14730         code to no apply invalidate_by_call sets if the sets are being trimmed.
14731         (df_lr_local_finalize): Renamed to df_lr_finalize.
14732         (df_live_local_finalize): Renamed to df_live_finalize.
14733
14734 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14735
14736         PR target/34831
14737         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14738         deciding whether to use reciprocal instructions.
14739
14740 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
14741
14742         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14743         dwarf2out_note_section_used if cold_text_section is NULL.
14744
14745 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
14746
14747         PR gcov-profile/34610
14748         * tree-cfg.c (make_edges): Mark both outgoing edges from
14749         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14750         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14751         from OMP_FOR and OMP_CONTINUE outgoing edges.
14752
14753         * tree-profile.c (tree_profiling): Return early if
14754         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
14755         at the end.
14756         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14757         from cfun to child_cfun.
14758         * function.h (struct function): Add after_tree_profile bit.
14759
14760 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14761
14762         * config/avr/avr.S (_exit): Disable interrupt.
14763
14764 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
14765             Steven Bosscher  <stevenb.gcc@gmail.com>
14766
14767         PR rtl-optimization/26854
14768         PR rtl-optimization/34400
14769         * df-problems.c (df_live_scratch): New scratch bitmap.
14770         (df_live_alloc): Allocate df_live_scratch when doing df_live.
14771         (df_live_reset): Clear the proper bitmaps.
14772         (df_live_bb_local_compute): Only process the artificial defs once
14773         since the order is not important.
14774         (df_live_init): Init the df_live sets only with the variables
14775         found live by df_lr.
14776         (df_live_transfer_function): Use the df_lr sets to prune the
14777         df_live sets as they are being computed.  
14778         (df_live_free): Free df_live_scratch.
14779
14780 2008-01-18  Ian Lance Taylor  <iant@google.com>
14781
14782         * common.opt: Add fmerge-debug-strings.
14783         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14784         flag_merge_debug_strings rather than flag_merge_constants.
14785         * doc/invoke.texi (Option Summary): Mention
14786         -fmerge-debug-strings.
14787         (Debugging Options): Document -fmerge-debug-strings.
14788
14789 2008-01-18  Ian Lance Taylor  <iant@google.com>
14790
14791         PR c++/33407
14792         * tree.h (DECL_IS_OPERATOR_NEW): Define.
14793         (struct tree_function_decl): Add new field operator_new_flag.
14794         * tree-inline.c (expand_call_inline): When inlining a call to
14795         operator new, force the return value to go into a variable, and
14796         set DECL_NO_TBAA_P on that variable.
14797         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14798
14799 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
14800
14801         PR debug/34484
14802         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14803         DWARF2_DEBUGGING_INFO.
14804         (dwarf2out_note_section_used): Ditto.  Add prototype.
14805         (have_multiple_function_sections, text_section_used,
14806         cold_text_section_used, *cold_text_sections): Move declarations
14807         before their uses.
14808
14809 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
14810
14811         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14812         field and add signal_ra.
14813         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14814         assignments to frame state pc.  Move end of stack check after
14815         MD_FALLBACK_FRAME_STATE_FOR.
14816         (uw_update_context_1): Use frame state signal_regs if set, instead
14817         of checking signal_frame flag.
14818         (uw_update_context): Use frame state signal_ra if set.
14819         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14820         * config/xtensa/linux-unwind.h: New file.
14821
14822 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
14823
14824         * modulo-sched.c (get_sched_window): Fix comment typo.
14825
14826 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
14827
14828         PR tree-optimization/34648
14829         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14830
14831 2008-01-17  Anatoly Sokolov <aesok@post.ru>
14832
14833         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14834         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14835
14836 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
14837
14838         PR rtl-optimization/34400
14839         * df-core.c (df_worklist_dataflow_overeager,
14840         df_worklist_dataflow_doublequeue): New functions.
14841         (df_worklist_dataflow): Two different worklist solvers.
14842         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14843         New param.
14844
14845 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14846
14847         PR testsuite/34821
14848         * doc/invoke.texi: Document the dependence on pthread for fopenmp
14849         and ftree-parallelize-loops.
14850
14851 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
14852
14853         PR rtl-optimization/34826
14854         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14855
14856 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14857
14858         * global.c (find_reg): Mark the eh regs as used if necessary.
14859         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14860         * ra.h (struct allocno): no_eh_reg field added.  Changed
14861         no_stack_reg type to bitfield.
14862
14863 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14864
14865         * tree.c (substitute_in_expr): Add missing 'break'.
14866
14867 2008-01-17  Richard Guenther  <rguenther@suse.de>
14868
14869         PR tree-optimization/34825
14870         * tree-ssa-math-opts.c (is_division_by): Do not recognize
14871         x / x as division to handle.
14872
14873 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14874
14875         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14876         "-pthread" is specified.
14877         * pa-hpux11.h (LIB_SPEC): Likewise.
14878
14879 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
14880             Peter Bergner  <bergner@vnet.ibm.com>
14881
14882         PR rtl-optimization/33796
14883         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14884
14885 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14886
14887         PR libgfortran/34699
14888         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14889         static links.
14890         * pa-hpux10.h (LINK_SPEC): Likewise.
14891         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14892
14893 2008-01-16  Richard Guenther  <rguenther@suse.de>
14894
14895         PR middle-end/32628
14896         * fold-const.c (fold_convert_const_int_from_int): Do not
14897         set overflow if that occured only because of a sign extension
14898         change when converting from/to a sizetype with the same
14899         precision and signedness.
14900
14901 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14902
14903         PR debug/34249
14904         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14905         location address to the correct place.  Update copyright year.
14906
14907 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14908
14909         * lambda-code.c (lambda_transform_legal_p): Handle the case of
14910         no dependences in the dependence_relations vector.
14911
14912 2008-01-16  Jan Hubicka  <jh@suse.cz>
14913
14914         PR rtl-optimization/31396
14915         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14916         * cfg.c (dump_reg_info): Print it.
14917         * regs.h (struct reg_info_t): add freq_calls_crossed.
14918         (REG_FREQ_CALLS_CROSSED): New macro.
14919         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14920         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14921         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14922         regmove_optimize): Update call crossed frequencies.
14923         * local-alloc.c (struct qty): Add freq_calls_crossed.
14924         (alloc_qty): Copute freq_calls_crossed.
14925         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14926         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14927         * ra.h (struct allocno): Add freq_calls_crossed.
14928
14929 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14930
14931         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14932         libgomp when compiling with ftree-parallelize-loops.
14933         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14934
14935 2008-01-16  Richard Guenther  <rguenther@suse.de>
14936
14937         PR tree-optimization/34769
14938         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14939         * tree.c (int_cst_value): Instead make this function more
14940         permissive in what it accepts as valid input.  Document this
14941         function always sign-extends the value.
14942
14943 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
14944             Richard Guenther  <rguenther@suse.de>
14945
14946         PR c/34668
14947         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14948         (gimple_fold_indirect_ref_rhs): ... this.
14949         (gimple_fold_indirect_ref): New function with foldings
14950         that preserve lvalueness.
14951         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14952         * tree-flow.h (gimple_fold_indirect_ref): Declare.
14953         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14954         to fold an INDIRECT_REF, fall back to the old use of
14955         fold_indirect_ref_1.
14956
14957 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14958
14959         * tree-data-ref.c (subscript_dependence_tester_1): Call 
14960         free_conflict_function.
14961         (compute_self_dependence): Same.
14962
14963 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14964
14965         PR debug/34249
14966         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14967         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
14968         function global.
14969         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14970         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14971         for DWARF2_UNWIND_INFO targets.
14972
14973 2008-01-16  Richard Guenther  <rguenther@suse.de>
14974
14975         PR c/34768
14976         * c-typeck.c (common_pointer_type): Do not merge inconsistent
14977         type qualifiers for function types.
14978
14979 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14980
14981         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14982         loop_iterator li from previous commit.
14983
14984 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14985
14986         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14987
14988 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14989
14990         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14991         (parallelize_loops): Don't parallelize irreducible components.
14992
14993 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14994
14995         PR c++/24924
14996         * c-opts (c_common_post_options): Do not enable CPP
14997         flag_pedantic_errors by default.
14998         
14999 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
15000
15001         PR rtl-optimization/31944
15002         * cse.c (remove_pseudo_from_table): New function.
15003         (merge_equiv_classes): Use above function to remove pseudo-registers.
15004         (invalidate): Likewise.
15005
15006 2008-01-13  Richard Guenther  <rguenther@suse.de>
15007
15008         PR middle-end/34601
15009         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15010         instead of TYPE_MODE to deal with calls from expand_one_error_var.
15011
15012 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
15013
15014         * gcse.c (cprop_jump): Call validate_unshare_change instead of
15015         validate_change to unshare the source of the PC set.
15016
15017 2008-01-12  Jan Hubicka  <jh@suse.cz>
15018
15019         PR middle-end/32135
15020         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15021         references above array bounds.  This might trigger bounds checks for
15022         pointers to arrays.
15023
15024 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
15025
15026         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15027         new_replaceable_dependencies.
15028
15029 2008-01-12  Doug Kwan  <dougkwan@google.com>
15030
15031         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15032         instead of OPT_Wreturn_type in warning due to ignored return type
15033         qualifiers.
15034         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15035         options included in -Wextra.
15036         * c.opt: New option -Wignored_qualifiers.
15037         * doc/invoke.texi (Warning Options, -Wextra): Add new option
15038         -Wignore_qualifiers.
15039         (-Wignored-qualifiers): Document.
15040         (-Wreturn-type): Remove description of functionality now handled
15041         by -Wignored-qualifiers.
15042
15043 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
15044
15045         PR ada/33788
15046         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15047         NOP_EXPR if it is between integral types with the same precision.
15048
15049 2008-01-12  Jan Hubicka  <jh@suse.cz>
15050
15051         PR other/28023
15052         * invoke.texi (max-inline-recursive-depth): Fix default value.
15053
15054 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
15055
15056         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15057         correct type.
15058
15059 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
15060         
15061         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15062         
15063 2008-01-11  James E. Wilson  <wilson@specifix.com>
15064
15065         PR target/26015
15066         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15067
15068 2008-01-11  Anatoly Sokolov <aesok@post.ru>
15069
15070         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
15071         save/restore frame pointer register and don't use 'call-prologues' 
15072         optimization in function with "OS_task" attribute.
15073
15074 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
15075
15076         PR middle-end/31309
15077         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15078         when copying to memory.
15079
15080 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
15081
15082         PR rtl-optimization/30905
15083         * cfgcleanup.c: Include dce.h
15084         (crossjumps_occured): New global variable.
15085         (try_crossjump_bb): Exit loop after finding a fallthru edge.
15086         If something changed, set crossjumps_occured to true.
15087         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15088         Don't add/remove fake edges to exit here...
15089         (cleanup_cfg): ...but do it here, when crossjumping.
15090         Run a fast DCE when successful crossjumps occured in the latest
15091         iteration of try_optimize_cfg.
15092
15093 2008-01-11  Richard Guenther  <rguenther@suse.de>
15094
15095         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15096         (struct vn_unary_op_s): Likewise.
15097         (vn_reference_insert): Free old reference on hash collision.
15098
15099 2008-01-10  Raksit Ashok  <raksit@google.com>
15100
15101         PR rtl-optimization/27971
15102         * combine.c (find_split_point): Split PLUS expressions which are
15103         inside a MEM rtx, and whose first operand is complex.
15104
15105 2008-01-10  DJ Delorie  <dj@redhat.com>
15106
15107         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15108         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15109         (m32c_hard_regno_ok): Call the underlying function.
15110
15111 2008-01-10  Richard Guenther  <rguenther@suse.de>
15112
15113         PR middle-end/34683
15114         * tree-cfg.c (tree_merge_blocks): Do not go through the
15115         full-blown folding and stmt updating path if we just deal
15116         with virtual operands.
15117         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15118         test for abnormal SSA_NAMEs.
15119
15120 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
15121
15122         PR middle-end/34641
15123         * reload.c (push_reload): Add assertions.  All constants from
15124         reg_equiv_constant should have been used for replacing the respective
15125         pseudo earlier.
15126         (find_reloads_address): Invoke find_reloads_address_part for
15127         constant taken from the reg_equiv_constant array.
15128
15129 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
15130
15131         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15132         field (valnum) the first in the struct.  Replace bools with
15133         unit bit fields.
15134
15135 2008-01-10  Richard Guenther  <rguenther@suse.de>
15136
15137         PR tree-optimization/34651
15138         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
15139         types and ordering for masking and converting.
15140
15141 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
15142
15143         PR tree-optimization/34017
15144         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
15145         also for PHI_NODE expressions.
15146
15147 2008-01-09  Jan Hubicka  <jh@suse.cz>
15148
15149         PR tree-optimization/34708
15150         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
15151         based on number of case labels.
15152         (init_inline_once): Remove switch_cost.
15153         * tree-inline.h (eni_weights_d): Remove switch_cost.
15154
15155 2008-01-09  Richard Guenther  <rguenther@suse.de>
15156         Andrew Pinski  <andrew_pinski@playstation.sony.com>
15157
15158         PR middle-end/30132
15159         * gimplify.c (gimplify_cond_expr): Do not create an addressable
15160         temporary if an rvalue is ok or an lvalue is not required.
15161
15162 2008-01-09  Richard Guenther  <rguenther@suse.de>
15163
15164         PR middle-end/34458
15165         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
15166         adjust return type.
15167
15168 2008-01-09  Richard Guenther  <rguenther@suse.de>
15169
15170         PR middle-end/34679
15171         * tree.c (host_integerp): Check for sizetype only if the
15172         type is an integer type.
15173
15174 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
15175
15176         PR debug/26364
15177         * opts.c (decode_options): Disable inlining of functions called
15178         once if not in unit-at-a-time mode.
15179
15180 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
15181
15182         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15183
15184 2008-01-08  Richard Guenther  <rguenther@suse.de>
15185
15186         PR middle-end/31863
15187         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15188         out early if the result will be unused.
15189
15190 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15191
15192         PR target/34709
15193         Revert:
15194
15195         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15196         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15197         for TARGET_RECIP.       
15198         
15199 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
15200         
15201         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15202         for vectorization tuned.
15203         
15204 2008-01-08  Richard Guenther  <rguenther@suse.de>
15205
15206         PR tree-optimization/34683
15207         * tree-ssa-operands.c (operand_build_cmp): Export.
15208         * tree-ssa-operands.h (operand_build_cmp): Declare.
15209         * tree-vn.c (vuses_compare): Remove.
15210         (sort_vuses): Use operand_build_cmp.
15211         (sort_vuses_heap): Likewise.
15212         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15213         to re-use old VEC if available.  Do not sort already sorted VUSEs.
15214         (vdefs_to_vec): Do not sort already sorted VDEFs.
15215
15216 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
15217
15218         PR middle-end/34694
15219         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15220
15221 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15222
15223         PR target/34702
15224         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15225         limitations of reciprocal sequences on x86 targets.
15226
15227 2008-01-08  Richard Guenther  <rguenther@suse.de>
15228
15229         PR tree-optimization/34683
15230         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15231
15232 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
15233
15234         PR target/34622
15235         * config/darwin.c (darwin_mergeable_string_section): Don't use
15236         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15237
15238 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
15239
15240         PR target/34682
15241         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15242         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
15243         predicates of op0 and op1 to register_operand.
15244         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
15245         expander using X87MODEF mode iterator.  Change predicates of
15246         op0 and op1 to register_operand.
15247         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15248         corresponding patterns and macroize using MODEF macro.  Change
15249         predicates of op0 and op1 to register_operand and remove
15250         "m" constraint. Disparage "r" alternative with "!".
15251         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15252         macroize using X87MODEF macro.  Change predicates of op0 and op1
15253         to register_operand and remove "m" constraint.  Disparage "r"
15254         alternative with "!".
15255         (absneg splitter with memory operands): Remove.
15256         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15257         patterns and macroize using X87MODEF mode iterator.
15258         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15259         Change predicate of op1 to register_operand.
15260         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15261         for memory operands.
15262
15263 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
15264
15265         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15266
15267 2008-01-07  Richard Guenther  <rguenther@suse.de>
15268
15269         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15270         fields.
15271
15272 2008-01-07  Richard Guenther  <rguenther@suse.de>
15273
15274         PR tree-optimization/34683
15275         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15276         VOPs of the needed size to save memory.  Use VEC_quick_push
15277         to save compile-time.
15278         (vdefs_to_vec): Likewise.
15279
15280 2008-01-07  Sa Liu  <saliu@de.ibm.com>
15281
15282         * config/spu/spu.md (divdf3): Genetate inline code for double
15283         division.  The implementation doesn't handle INF or NAN, therefore it
15284         only applies when -ffinite-math-only is given.
15285
15286 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
15287
15288         PR libstdc++/34680
15289         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15290         * doc/cpp.texi ([Common Predefined Macros]): Document.
15291
15292 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
15293
15294         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15295         order to use commutative addition instead of subtraction.
15296
15297 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15298             Mircea Namolaru  <namolaru@il.ibm.com>
15299             Vladimir Yanovsky  <yanov@il.ibm.com>
15300             Revital Eres  <eres@il.ibm.com>
15301
15302         PR tree-optimization/34263
15303         * tree-outof-ssa.c (process_single_block_loop_latch,
15304         contains_tree_r): New functions.
15305         (analyze_edges_for_bb): Call process_single_block_loop_latch
15306         function to empty single-basic-block latch block if possible.
15307
15308 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15309
15310         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15311         for TARGET_RECIP.
15312         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15313
15314 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15315
15316         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15317
15318 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15319
15320         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15321
15322 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
15323
15324         PR tree-optimization/34618
15325         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15326         flag from T.
15327
15328 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15329
15330         PR target/34673
15331         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15332         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
15333         Update copyright year.
15334
15335         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15336         Update copyright year.
15337         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15338         using NR fixup.
15339
15340 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
15341
15342         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15343         edge does not point to current bb before changing need_assert.
15344
15345 2008-01-04  Richard Guenther  <rguenther@suse.de>
15346
15347         PR middle-end/34029
15348         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15349         for verifying purposes if they are is_gimple_min_invariant.
15350
15351 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
15352
15353         PR tree-optimization/34448
15354         PR tree-optimization/34465
15355         * gimplify.c (gimplify_init_constructor): Add new parameter
15356         notify_temp_creation.  Use it.
15357         (gimplify_modify_expr_rhs): Take volatiles into account when
15358         optimizing constructors.
15359         Do not optimize constructors if gimplify_init_constructor will dump to
15360         memory.
15361         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15362         * gcc.c-torture/compile/pr34448.c: New.
15363
15364 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
15365
15366         PR gcov-profile/34609
15367         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15368         return_slot if result is TREE_ADDRESSABLE.
15369
15370 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
15371
15372         * config/mips/mips.md (sqrt_condition): Tweak comment.
15373         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
15374
15375 2008-01-03  Tom Tromey  <tromey@redhat.com>
15376
15377         PR c/34457
15378         * c-common.c (c_type_hash): Handle VLAs.
15379
15380 2008-01-03  Jan Hubicka  <jh@suse.cz>
15381
15382         PR tree-optimization/31081
15383         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15384         0 when inlining and not inlining to first basic block.
15385         (remap_decl): When var is initialized to 0, don't set default_def.
15386         (expand_call_inline): Set entry_bb.
15387         * tree-inline.h (copy_body_data): Add entry_bb.
15388
15389 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15390
15391         PR c++/34619
15392         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15393         before returning.
15394
15395         PR tree-optimization/29484
15396         * tree-inline.c (inline_forbidden_p_2): New function.
15397         (inline_forbidden_p): Disallow inlining if some static var
15398         has an address of a local LABEL_DECL in its initializer.
15399         * doc/extend.texi (Labels as Values): Document &&foo behaviour
15400         vs. inlining.
15401
15402 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15403
15404         PR tree-optimization/34635
15405         * tree-data-ref.c (add_other_self_distances): Make sure that the
15406         evolution step is constant.
15407
15408 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15409
15410         PR middle-end/34608
15411         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15412
15413 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
15414
15415         * tree-sra.c (scalarize_init): Insert the generate_element_init
15416         statements after the generate_element_zero statements.
15417
15418 2008-01-02  Richard Guenther  <rguenther@suse.de>
15419
15420         PR middle-end/34093
15421         PR middle-end/31976
15422         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15423         for very large number of operands instead of ICEing.
15424
15425 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
15426
15427         PR target/34013
15428         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15429         while stack probing.
15430
15431 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
15432
15433         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15434         in C++0x mode.
15435
15436 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
15437
15438         PR libmudflap/26442
15439         * tree-mudflap.c (mx_register_decls): Guard warning by
15440         !DECL_ARTIFICIAL check.
15441
15442 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
15443
15444         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15445         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15446         sse5_perm<mode>): Fix constraints.