re PR middle-end/36753 (Forward propagation interacts badly with global register...
[official-gcc.git] / gcc / ChangeLog
blob7933b10d60cbeed043d09b92a97ea1746764c3e0
1 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
3         PR rtl-optimization/36753
4         * fwprop.c (use_killed_between): Don't shortcut
5         single-definition global registers.
7 2008-07-16  Jan Hubicka  <jh@suse.cz>
9         * cgraph.h (varpool_empty_needed_queue): Declare.
10         * cgraphunit.c (output_in_order): Mark all variables as needed;
11         empty the queue.
12         * varpool.c (varpool_assemble_node): Update debug queue.
13         (varpool_assemble_pending_decls): Don't do it here.
14         (varpool_empty_needed_queue):  New function.
16 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18         * recog.c (peephole2_optimize): Fix formatting.
20 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22         * c-pch.c (get_ident): Avoid C++ keywords.
23         * combine-stack-adj.c (single_set_for_csa): Likewise.
24         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
25         output_asm_insn): Likewise.
26         * reload.c (push_secondary_reload, find_reusable_reload,
27         push_reload, combine_reloads, find_reloads,
28         debug_reload_to_stream): Likewise.
29         * reload.h (struct reload): Likewise.
30         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
31         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
32         emit_output_reload_insns): Likewise.
33         * targhooks.c (default_secondary_reload): Likewise.
34         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
36 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38         * recog.c (validate_change_1, validate_change,
39         validate_unshare_change, validate_replace_rtx_1, struct
40         funny_match, constrain_operands, peephole2_optimize): Avoid C++
41         keywords.
42         * reload.c (push_secondary_reload, secondary_reload_class,
43         scratch_reload_class, find_valid_class, find_reusable_reload,
44         push_reload, find_dummy_reload, find_reloads_address_1,
45         find_reloads_address_part, find_equiv_reg): Likewise.
46         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
47         choose_reload_regs): Likewise.
48         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
49         Likewise.
50         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
51         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
52         * sched-rgn.c (concat_INSN_LIST): Likewise.
53         * stor-layout.c (mode_for_size, mode_for_size_tree,
54         smallest_mode_for_size): Likewise.
56 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
58         * cfg.c (dump_reg_info): Avoid C++ keywords.
59         * dwarf2asm.c (dw2_force_const_mem,
60         dw2_asm_output_encoded_addr_rtx): Likewise.
61         * except.c (gen_eh_region, add_action_record, output_ttype):
62         Likewise.
63         * expmed.c (expand_shift): Likewise.
64         * global.c (find_reg): Likewise.
65         * graph.c (draw_edge): Likewise.
66         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
67         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
68         widen_clz, widen_bswap, expand_parity, expand_unop,
69         emit_cmp_and_jump_insn_1): Likewise.
70         * postreload.c (reload_cse_simplify_operands): Likewise.
71         * ra.h (add_neighbor): Likewise.
72         * reg-stack.c (remove_regno_note, change_stack): Likewise.
73         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
74         record_reg_classes, copy_cost, record_address_regs,
75         invalid_mode_change_p): Likewise.
76         * regrename.c (regrename_optimize, scan_rtx_reg,
77         dump_def_use_chain, find_oldest_value_reg,
78         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
80 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
82         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
83         MASK_POWERPC64 for power4 in previous commit.
85 2008-07-16  Olivier Hainque  <hainque@adacore.com>
87         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
88         instead of bare conversion to cast const-ness away.
90 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
92         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
93         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
94         * config/xtensa/xtensa.c (xtensa_function_value): New function.
95         (TARGET_FUNCTION_VALUE): Define.
97 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
99         * config/rs6000/rs6000.c (processor_target_table): Add
100         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
102 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
104         PR target/36827
105         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
106         (m32c_legitimate_address_p): Handle "++rii" addresses created by
107         m32c_legitimize_reload_address.
109 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
111        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
112        DECL_IN_SYSTEM_HEADER in sync.
114 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
116         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
117         * tree-ssa-pre.c (pre_expr_eq): Ditto
118         (get_constant_for_value_id): Take a type as an argument.
119         (fully_constant_expression): Pass in type.
120         (find_or_generate_expression): Short circuit constant case.
121         (create_expression_by_pieces): Remove special casing of
122         pointer_plus.
123         (do_regular_insertion): Short circuit constant case.
124         (do_partial_partial_insertion): Ditto.
126 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
128         PR target/36782
129         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
131 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
132         
133         * config/xtensa/libgcc-xtensa.ver: New file.
134         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
135         
136 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
138         * df-problems.c (df_set_note): Avoid C++ keywords.
139         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
140         * dse.c (record_store, remove_useless_values): Likewise.
141         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
142         gen_reg_rtx_offset, operand_subword, change_address_1,
143         change_address, adjust_address_1, offset_address,
144         widen_memory_access, emit_copy_of_insn_after): Likewise.
145         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
146         * fwprop.c (should_replace_address, propagate_rtx_1,
147         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
148         Likewise.
149         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
150         gcse_emit_move_after, update_ld_motion_stores): Likewise.
151         * lcm.c (compute_insert_delete, pre_edge_lcm,
152         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
153         * lower-subreg.c (resolve_reg_notes): Likewise.
154         * mode-switching.c (optimize_mode_switching): Likewise.
156 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
158         * bt-load.c (add_btr_def, migrate_btr_def,
159         branch_target_load_optimize): Avoid C++ keywords.
160         * caller-save.c (insert_restore, insert_save, insert_one_insn):
161         Likewise.
162         * combine.c (subst, simplify_set, make_extraction,
163         make_compound_operation, known_cond, simplify_shift_const_1):
164         Likewise.
165         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
166         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1):
167         Likewise.
169 2008-07-15  Richard Guenther  <rguenther@suse.de>
171         PR middle-end/36369
172         * c-common.c (strict_aliasing_warning): Do not warn for
173         TYPE_REF_CAN_ALIAS_ALL pointers.
174         (c_common_get_alias_set): may_alias types are not special.
175         * tree.c (build_pointer_type_for_mode): Look up the may_alias
176         attribute and set can_ref_all accordingly.
177         (build_reference_type_for_mode): Likewise.
178         * doc/extend.texi (may_alias): Clarify.
180 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
182         PR target/36780
183         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
184         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
186 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
188         PR target/31568
189         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
190         gcc_assert, instead call output_operand_lossage.
192 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
194         * builtins.c (std_canonical_va_list): Treat structure based
195         va_list types.
197 2008-07-15  Ben Elliston  <bje@au.ibm.com>
199         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
201 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
203         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
204         is set.
206 2008-07-14  Jan Hubicka  <jh@suse.cz>
208         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
209         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
210         fix predicates and constraints.
211         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
212         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
214 2008-07-14  Doug Kwan  <dougkwan@google.com>
216         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
217         additional option file arm/eabi.opt.
218         * config/arm/eabi.h (File): New configuration file for EABI targets.
219         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
220         SUBSUBTARGET_EXTRA_SPECS.
221         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
222         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
223         from STARTFILE_SPEC so that it can be referenced in an override.
224         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
225         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
226         can be referenced in an override.
227         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
228         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
229         so that it can be referenced in an override.
230         (LINK_SPEC): Use BPABI_LINK_SPEC.
231         * config/arm/eabi.opt (File): New.
233 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
235         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
236         (FIXED_VALUE_H): New variable.
237         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
238         input.h, fixed-value.h.
239         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
240         (BASIC_BLOCK_H): Use $(BITMAP_H).
241         (FUNCTION_H): Add varray.h.
242         (IPA_REFERENCE_H): Use $(BITMAP_H).
243         (CGRAPH_H): Add $(BASIC_BLOCK_H).
244         (DF_H): Use $(BITMAP_H).
245         (GGC_H): Add statistics.h.
246         (INSN_ADDR_H): New.
247         (INSN_ATTR_H): Use it.
248         (SYSTEM_H): Add safe-ctype.h, filenames.h.
249         (INPUT_H): New.
250         (SYMTAB_H): Add $(OBSTACK_H).
251         (CPP_INTERNAL_H): New.
252         (TREE_DUMP_H): Add tree-pass.h.
253         (TREE_FLOW_H): Use $(BITMAP_H)
254         (PRETTY_PRINT_H): Use $(INPUT_H).
255         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
256         (GSTAB_H): New.
257         (BITMAP_H): New.
258         (many object files): Fix lots of header dependencies throughout.
260 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
262         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
263         New macros.
264         (s-gtyp-input): Use them to write tmp-gi.list.
265         (echo_to_gi.list): Remove.
267 2008-07-14  Richard Guenther  <rguenther@suse.de>
269         * tree-ssa-sccvn.c (pre_info): Remove.
270         (switch_to_PRE_table): Likewise.
271         (free_scc_vn): Do not clear SSA_NAME_VALUE.
272         Do not free pre_info.
273         (set_hashtable_value_ids): Do not create value-ids for the
274         optimistic tables.
275         (run_scc_vn): Remove double test.  Remove bogus special-case
276         in value-number printing.
277         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
278         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
279         SSA_NAME_VALUE.
280         * tree-flow-inline.h (get_value_handle): Remove.
281         * tree-flow.h (get_value_handle): Remove.
283 2008-07-14  Martin Jambor  <mjambor@suse.cz>
285         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
286         in which we generate arithmetics is not a subrange.
288 2008-07-14  Martin Jambor  <mjambor@suse.cz>
290         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
292 2008-07-14  Richard Guenther  <rguenther@suse.de>
294         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call
295         convert.
297 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
299         PR target/36745
300         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
301         reload for symbol refs moved to r0 with -fPIC.
302         (legitimize_pic_address): Use the target register as temporary
303         reg if possible.
304         (emit_symbolic_move): Adjust comment.
305         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
306         New expanders.
308 2008-07-14  Ben Elliston  <bje@au.ibm.com>
310         * c-common.h (C_CPP_HASHNODE): New macro.
311         * coretypes.h (struct cpp_token): Forward declare.
312         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
313         the context-sensitive keyword method.
314         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
315         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
316         expand_bool_pixel): New.
317         (altivec_categorize_keyword): New function.
318         (init_vector_keywords): New function.
319         (rs6000_macro_to_expand): Likewise.
320         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
321         compiling an ISO C dialect.
323 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
325         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert
326         calls.
327         (create_expression_by_pieces): Fix typo.
328         (do_regular_insertion): Use debug counter here too.
330 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
332         PR target/35492.
333         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
334         CONST_OK_FOR_LETTER_P.  All port-local users changed.
335         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
336         implement Kp matching power-of-two.
337         (CONSTRAINT_LEN): Define to match.
338         * config/cris/cris.md: Replace all use of constraint K with Kc.
339         ("*btst*): Use Kp for operand 0 of last alternative.
341 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
343         PR testsuite/36440
344         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
345         and quad formats.
347 2008-07-13  Jan Hubicka  <jh@suse.cz>
349         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
350         to be mangled too.
352 2008-07-13  Richard Guenther  <rguenther@suse.de>
354         PR middle-end/36811
355         * langhooks.c (lhd_print_error_function): Deal with recursive
356         BLOCK trees.
358 2008-07-12  Jan Hubicka  <jh@suse.cz>
360         * cgraph.c (assembler_name_hash): New static var.
361         (hash_node_by_assembler_name, eq_assembler_name): New.
362         (cgraph_node_for_asm): Use hashtable.
363         (cgraph_remove_node): Maintain hashtable.
364         (change_decl_assembler_name): Sanity check that names are not changing
365         after aliasing was processed.
366         * cgraph.h (varpoon_node): Add next GGC marker.
367         * tree.c (decl_assembler_name_equal): Constify.
368         (decl_assembler_name_hash): New.
369         * tree.h (decl_assembler_name_equal): Constify.
370         (decl_assembler_name_hash): Update.
372 2008-07-12  David Daney  <ddaney@avtrex.com>
374         * config/mips/driver-native.c (host_detect_local_cpu): Handle
375         sb1 and r5000 cpus.
377 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
379         * doc/md.texi: Document the MIPS "v" constraint.
380         * config/mips/mips.h (reg_class): Revert last change.
381         (REG_CLASS_NAMES): Likewise.
382         (REG_CLASS_CONTENTS): Likewise.
383         * config/mips/mips.c (mips_regno_to_class): Likewise.
384         * config/mips/constraints.md (v): Likewise, but add documentation.
385         Add a comment to say that this constraint should not be used in
386         gcc code.
388 2008-07-11  DJ Delorie  <dj@redhat.com>
390         * config/h8300/h8300.md (length): Fix branch offset limit.
392 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
394         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
395         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
396         (avr_hard_regno_scratch_ok): New function.
397         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
398         * config/avr/avr.md (all peepholes that request a scratch register):
399         Remove avr_peep2_scratch_safe use.
401 2008-07-11  Tom Tromey  <tromey@redhat.com>
402             Ian Lance Taylor  <iant@google.com>
404         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
405         (struct c_common_resword): Define.
406         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
407         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
408         (c_common_reswords, num_c_common_reswords): Declare.
409         * c-common.c (c_common_reswords): New global const array.
410         (num_c_common_reswords): New const int.
411         * c-parser.c (struct resword, reswords): Don't define.
412         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
413         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
414         than reswords.  If warning about C++ keywords, give them a special
415         RID code.
416         (c_lex_one_token): Warn about C++ keywords.  Call
417         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
418         (c_parser_external_declaration): Look for RID_xxx rather than
419         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
420         (c_parser_statement_after_labels): Likewise.
421         (c_parser_objc_class_instance_variables): Likewise.
422         (c_parser_objc_class_declaration): Likewise.
423         (c_parser_objc_try_catch_statement): Likewise.
424         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
425         (declspecs_add_type): Likewise.
427 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
429         * ggc-page.c (alloc_page):
430         Substituting xmalloc, xcalloc with
431         XNEWVEC and XCNEWVAR macros which add the
432         needed casts.
434 2008-07-11  Richard Guenther  <rguenther@suse.de>
436         PR tree-optimization/36765
437         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
438         aliases from HEAP vars to SMTs.
440 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
442         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
443         * configure.ac (loose_warn): Move -Wc++-compat from here...
444         (strict_warn): ...to here.
445         * configure: Regenerate.
447 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
449         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
450         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
451         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
452         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
453         excluding more specific h8300-*-* and sh-*-* targets.
455 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
457         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert
458         calls.
459         (eliminate): Ditto.
460         (execute_pre): Call loop_optimizer_finalize in early exit.
462 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
464         PR middle-end/36790
465         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
466         uids in the bitmap, not just VAR_DECL uids.
468         PR rtl-optimization/36419
469         * combine-stack-adj.c (adjust_frame_related_expr): New function.
470         (combine_stack_adjustments_for_block): Call it if needed.  Delete
471         correct insn.
472         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
473         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
474         prologue sp adjustment.
476 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
478         PR other/28322
479         * opts.c (print_ignored_options): Report postponed diagnostics for
480         unknown -Wno-* options as warnings, not errors.
481         (postpone_unknown_option_error): Renamed to...
482         (postpone_unknown_option_warning): ... this.
484 2008-07-09  Doug Kwan  <dougkwan@google.com>
486         Revert:
487         2008-07-08  Doug Kwan  <dougkwan@google.com>
489         * config/arm/arm.opt (mandroid): New option.
490         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
491         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
492         (CC1_SPEC): Same.
493         (CC1PLUS_SPEC): Same.
494         (LIB_SPEC): Same.
495         (STARTFILE_SPEC): Same.
496         (ENDFILE_SPEC): Same.
497         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
498         used.
500 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
502         PR target/35802
503         * config/mips/mips.h (reg_class): Remove V1_REG.
504         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
505         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
506         instead of V1_REGS.
507         (mips_get_tp): New function.
508         (mips_legitimize_tls_address): Use it.
509         * config/mips/constraints.md (v): Delete.
510         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
511         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
512         After reload, split into a move and ...
513         (*tls_get_tp_<mode>_split): ...this new instruction.
515 2008-07-09  David Daney  <ddaney@avtrex.com>
517         * config/mips/driver-native.c: Include coretypes.h and tm.h.
519 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
521         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
522         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
523         Add c argument.
524         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
525         htab_delete should be called.  Don't free c.
526         (lookup_tmp_var): Create temp_htab lazily.
527         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
528         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
529         callers.
530         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
531         lower_omp_ordered, lower_omp_critical, lower_omp_for,
532         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
533         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
534         * tree-sra.c (generate_element_init): Likewise.
535         * tree-mudflap.c (execute_mudflap_function_ops,
536         execute_mudflap_function_decls): Likewise.
537         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
538         * tree-gimple.h (struct gimplify_ctx): New type.
539         (push_gimplify_context): Adjust prototype.
541 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
543         * tree-ssa-pre.c (phi_translate_1): Update placement of
544         add_to_value calls.
546 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
548         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
549         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
550         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
551         * targhooks.c (default_hard_regno_scratch_ok): New function.
552         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
553         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
554         * recog.c:  Include "target.h".
555         (peep2_find_free_register): Add check for global regs. Add target
556         specific check.
557         * Makefile.in (recog.o): Depend on target.h.
559 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
561         * config/sh/sh.c (sh_canonical_va_list_type): New.
562         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
564 2008-07-09  Raksit Ashok <raksit@google.com>
566         * doc/invoke.texi (Option Summary): Mention new option
567         -Wdisallowed-function-list=...
568         (Warning Options): Document -Wdisallowed-function-list=...
569         * common.opt (Wdisallowed-function-list=): New flag.
570         * flags.h (warn_disallowed_functions): External definition of new
571         boolean warning flag.
572         (warn_if_disallowed_function_p): Declare new function.
573         * opts.c (warning_disallowed_functions): New static variable.
574         (warn_disallowed_functions): New boolean warning flag.
575         (warn_if_disallowed_function_p): New function.
576         (add_comma_separated_to_vector): Rename
577         add_instrument_functions_exclude_list to this.
578         (common_handle_option): Handle new option. Rename calls to
579         add_instrument_functions_exclude_list into calls to
580         add_comma_separated_to_vector.
581         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
582         based on flag warn_disallowed_functions.
584 2008-07-09  Christian Bruel  <christian.bruel@st.com>
586         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
587          instead of get_attr_length.
589 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
591         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
592         keywords.
593         * genemit.c (gen_insn): Likewise.
594         * gengtype.c (note_def_vec): Likewise.
595         * gengtype.h (note_def_vec): Likewise.
596         * genoutput.c (struct data, output_insn_data, process_template,
597         gen_expand, gen_split, note_constraint): Likewise.
598         * genrecog.c (new_decision, add_to_sequence, factor_tests,
599         make_insn_sequence): Likewise.
600         * gensupport.c (record_insn_name): Likewise.
602 2008-07-08  Doug Kwan  <dougkwan@google.com>
604         * config/arm/arm.opt (mandroid): New option.
605         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
606         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
607         (CC1_SPEC): Same.
608         (CC1PLUS_SPEC): Same.
609         (LIB_SPEC): Same.
610         (STARTFILE_SPEC): Same.
611         (ENDFILE_SPEC): Same.
612         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
613         used.
615 2008-07-08  Raksit Ashok  <raksit@google.com>
617         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
618         (set_storage_via_setmem): Fix expected_align parameter.
619         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
620         missing from the list.
621         * doc/md.texi (movmem): Explicitly state that expected alignment is
622         to be expressed in bytes.
623         (setmem): Explicitly state that expected alignment is to be expressed
624         in bytes.
626 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
628         * reload.c (find_reloads_subreg_address): Do not require validity
629         of address in original mode before reloading address.
631 2008-07-07  Tianwei Sheng  <tianweis@google.com>
633         * df-core.c (df_remove_problem): Adjust the access to avoid out of
634         bounds array access.
636 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
638         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
639         dst.
641 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
642         
643         Fix PR tree-optimization/23455
644         Fix PR tree-optimization/35286
645         Fix PR tree-optimization/35287
646         * Makefile.in (OBJS-common): Remove tree-vn.o.
647         tree-vn.o: Remove.
648         * dbgcnt.def: Add treepre_insert debug counter.
649         * gcc/tree-flow.h (add_to_value): Updated for other changes.
650         (debug_value_expressions): Ditto.
651         (print_value_expressions): Ditto.
652         * tree-pretty-print.c (dump_generic_node): Updated for
653         VALUE_HANDLE removal.
654         * tree-ssa-dom.c (record_equality): Ditto.
655         (cprop_operand): Ditto.
656         (lookup_avail_expr): Ditto.
657         * tree-ssa-threadedge.c
658         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
659         (simplify_control_stmt_condition): Ditto.
660         * tree.c (tree_code_size): Ditto.
661         (tree_node_structure): Ditto.
662         (iterative_hash_expr): Ditto.
663         * tree.def: Ditto.
664         * tree.h (VALUE_HANDLE_ID): Ditto.
665         (VALUE_HANDLE_EXPR_SET): Ditto.
666         (struct tree_value_handle): Ditto.
667         (union tree_node): Ditto.
668         * treestruct.def: Ditto.
669         * tree-vn.c: Removed.
670         * tree-ssa-pre.c: Rewritten entirely.
671         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
672         (constant_value_ids): Ditto.
673         (vn_nary_op_t): Moved to header.
674         (vn_phi_t): Ditto.
675         (vn_reference_op_t): Ditto
676         (vn_reference_t): Ditto.
677         (next_value_id): New variable.
678         (VN_INFO): Add an assert.
679         (vn_constant_eq): New function.
680         (vn_constant_hash): Ditto.
681         (get_or_alloc_constant_value_id): Ditto.
682         (value_id_constant_p): Ditto.
683         (vn_reference_compute_hash): De-staticify.
684         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
685         Disable some code with a FIXME.
686         Remove VALUE_HANDLE use.
687         (valueize_refs): Update opcode if it changes from ssa name to
688         constant.
689         (vn_reference_lookup_1): Add new argument.
690         (vn_reference_lookup):  Ditto.
691         (vn_reference_lookup_pieces): New function.
692         (vn_reference_insert): Add return type. Modify to deal with value
693         ids.
694         (vn_reference_insert_pieces):  New function.
695         (vn_nary_op_compute_hash): De-staticify.
696         (vn_nary_op_eq): Ditto.
697         (vn_nary_op_lookup_pieces): New function.
698         (vn_nary_op_lookup): Add new argument.  
699         (vn_nary_op_insert_pieces): New function.
700         (vn_nary_op_insert): Add return type. Modify to deal with value
701         ids.
702         (vn_phi_insert): Ditto.
703         (visit_unary_op): Update for callee changes.
704         (visit_binary_op): Ditto.
705         (visit_reference_op_load): Ditto.
706         (visit_reference_op_store): Ditto.
707         (init_scc_vn): Init next_value_id, constant_to_value_id and
708         constant_value_ids. 
709         (free_scc_vn): Free them.
710         (set_hashtable_value_ids): New function.
711         (run_scc_vn): Use it.
712         (get_max_value_id): New function.
713         (get_next_value_id): Ditto.
714         (expressions_equal_p): Moved from tree-vn.c
715         (sort_vuses): Ditto.
716         (sort_vuses_heap): Ditto.
717         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
718         above).
719         * tree.c (iterative_hash_hashval_t): Made non-static
720         * tree.h (iterative_hash_hashval_t): Declare it.
721         
722 2008-07-08  Martin Jambor  <mjambor@suse.cz>
724         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
725         instead of ipa_create_node_params.
726         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
727         ipa_check_create_edge_args, free them with
728         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
730         * ipa-prop.c: Include flags.h and tree-inline.h.
731         (ipa_node_params_vector): New variable.
732         (ipa_edge_args_vector): New variable.
733         (edge_removal_hook_holder): New variable.
734         (node_removal_hook_holder): New variable.
735         (edge_duplication_hook_holder): New variable.
736         (node_duplication_hook_holder): New variable.
737         (ipa_detect_param_modifications): Check for presence of modified flags.
738         (ipa_compute_jump_functions): Check for presence of jump functions.
739         (ipa_free_edge_args_substructures): New function.
740         (ipa_create_node_params): Removed.
741         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
742         (ipa_free_node_params_substructures): New function.
743         (ipa_free_all_node_params): Changed to deallocate the on-the-side
744         vector.
745         (ipa_edge_removal_hook): New function.
746         (ipa_node_removal_hook): New function.
747         (duplicate_array): New function.
748         (ipa_edge_duplication_hook): New function.
749         (ipa_node_duplication_hook): New function.
750         (ipa_register_cgraph_hooks): New function.
751         (ipa_unregister_cgraph_hooks): New function.
752         (free_all_ipa_structures_after_ipa_cp): New function.
753         
754         * ipa-prop.h: Include vec.h.
755         (ipa_node_params_t): New typedef with vector types for it.
756         (ipa_edge_args_t):  New typedef with vector types for it.
757         (IPA_NODE_REF): Changed to access an on-the-side vector.
758         (IPA_EDGE_REF): Changed to access an on-the-side vector.
759         (ipa_check_create_node_params): New function.
760         (ipa_check_create_edge_args): New function.
761         
762         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
763         all users.
764         
765 2008-07-07  Tom Tromey  <tromey@redhat.com>
767         * configure, config.in: Rebuilt.
768         * configure.ac: Don't check for scandir or alphasort.
770 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
772         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
773         types immediately after creating them.
775 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
777         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
779 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
781         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
782         dump_constraint_graph.
783         (dump_constraint_edge): New function.
784         (dump_constraint_graph): New function.
785         (debug_constraint_graph): New function.
786         (dump_constraint): Removed useless comparison.
787         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
788         (dump_constraint_graph): Declare.
789         (debug_constraint_graph): Declare.
790         * tree-dump.c (struct dump_option_value_info): Declare
791         TDF_GRAPH.
793 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
795         * config/i386/i386.c (is_va_list_char_pointer): New.
796         (ix86_va_start): Replace compare with ms_va_list_type_node
797         by is_va_list_char_pointer.
798         (ix86_gimplify_va_arg): Likewise.
800 2008-07-07  Martin Jambor  <mjambor@suse.cz>
802         * cgraph.c (cgraph_edge_max_uid): New variable.
803         (struct cgraph_edge_hook_list): New type.
804         (struct cgraph_node_hook_list): New type.
805         (struct cgraph_2edge_hook_list): New type.
806         (struct cgraph_2node_hook_list): New type.
807         (first_cgraph_edge_removal_hook): New variable.
808         (first_cgraph_node_removal_hook): New variable.
809         (first_cgraph_edge_duplicated_hook): New variable.
810         (first_cgraph_node_duplicated_hook): New variable.
811         (cgraph_add_edge_removal_hook): New function.
812         (cgraph_remove_edge_removal_hook): New function.
813         (cgraph_call_edge_removal_hooks):  New function.
814         (cgraph_add_node_removal_hook):  New function.
815         (cgraph_remove_node_removal_hook):  New function.
816         (cgraph_call_node_removal_hooks):  New function.
817         (cgraph_add_edge_duplication_hook):  New function.
818         (cgraph_remove_edge_duplication_hook):  New function.
819         (cgraph_call_edge_duplication_hooks):  New function.
820         (cgraph_add_node_duplication_hook):  New function.
821         (cgraph_remove_node_duplication_hook):  New function.
822         (cgraph_call_node_duplication_hooks):  New function.
823         (cgraph_create_edge): Assign to edge uid.
824         (cgraph_remove_edge): Call edge removal hooks.
825         (cgraph_node_remove_callees): Call edge removal hooks.
826         (cgraph_node_remove_callers): Call edge removal hooks.
827         (cgraph_remove_node): Call node removal hooks.
828         (cgraph_clone_edge): Call edge duplication hooks.
829         (cgraph_clone_node): Call node duplication hooks.
831         * cgraph.h (cgraph_edge): New field uid.
832         (cgraph_edge_hook): New type.
833         (cgraph_node_hook): New type.
834         (cgraph_2edge_hook): New type.
835         (cgraph_2node_hook): New type.
837 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
839         * config.in: Regenerate.
841 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
843         * gcc.c (print_sysroot): New.
844         (option_map, display_help, process_command): Handle the
845         -print-sysroot option.
846         (main): Print the sysroot if requested.
847         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
848         
849 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
851         PR target/34780
852         * unwind-pe.h (size_of_encoded_value): add attribute unused.
854 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
856         * function.c (assign_parm_remove_parallels): Check mode of
857         entry_parm.
858         (assign_parm_setup_block_p): Also check mode of entry_parm.
860 2008-07-07  Richard Guenther  <rguenther@suse.de>
862         * tree-ssa-structalias.h (set_used_smts): Remove.
863         * tree-ssa-structalias.c (used_smts): Likewise.
864         (set_used_smts): Likewise.
865         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
866         call to set_used_smts.
868 2008-07-07  Richard Guenther  <rguenther@suse.de>
870         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
871         (new_var_info): Set it to false.
872         (solution_set_add): Correctly handle pointers outside a var and
873         inside a field.
874         (type_safe): Treat variables with is_full_var properly.
875         (do_sd_constraint): Likewise.
876         (do_ds_constraint): Likewise.
877         (process_constraint): Remove zeroing offset for !use_field_sensitive.
878         (get_constraint_for_ptr_offset): New function.
879         (get_constraint_for_component_ref): For addresses at least include
880         the last field of the variable.  Handle is_full_vars properly.
881         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
882         (handle_ptr_arith): Remove.
883         (find_func_aliases): Simplify assignment handling.
884         (create_function_info_for): For parameter and result varinfos set
885         is_full_var flag.
886         (create_variable_info_for): Set is_full_var flag whenever we
887         just created a single varinfo for a decl.
888         (init_alias_vars): Initialize use_field_sensitive from
889         max-fields-for-field-sensitive parameter.
891 2008-07-07  Richard Guenther  <rguenther@suse.de>
893         PR tree-optimization/36713
894         * tree-flow-inline.h (is_call_used): New function.
895         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
896         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
897         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
899 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
901         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
902         
903 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
905         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
907 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
908             Nathan Sidwell  <nathan@codesourcery.com>
910         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
911         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
912         tmake_file.
913         * config/m68k/t-linux: New.
914         * doc/install.texi: Document m68k-*-linux is now multilibbed by
915         default.
917 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
919         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
920         * config/m68k/m68k-devices.def: Remove multilibs that only differ
921         by MAC/EMAC.
923 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
925         * gcc.c (execute): Fix -Wc++-compat warning.
927 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
929         PR target/36720
930         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
931         constant for little endian.
933 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
935         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
936         mips_base_mips16 instead of TARGET_MIPS16.
937         (mips_base_mips16): Declare.
938         * config/mips/mips.c (mips_base_mips16): Make global.
939         (was_mips16_p): Remove GTY marker.
940         (was_mips16_pch_p): New variable.
941         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
942         (mips_override_options): Force to non-MIPS16 mode initially.
943         Do not complain about MIPS16 PIC incompatibilities here.
944         Only allow -mgpopt if -mexplicit-relocs is in force for
945         non-MIPS16 code.
947 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
949         * configure.ac: Check for caddr_t, define to char * if not defined.
950         * configure: Regenerate.
951         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
952         (mmap_gt_pch_use_address): Likewise.
953         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
955 2008-07-06  Richard Guenther  <rguenther@suse.de>
957         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
958         (new_var_info): Deal with it.
959         (solution_set_add): Likewise.
960         (bitpos_of_field): Make signed, fix.
961         (struct fieldoff): Remove type and decl fields.  Make size field
962         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
963         flags.
964         (fieldoff_compare): Deal with it.
965         (push_fields_onto_fieldstack): Remove has_union argument, glob
966         adjacent non-pointer fields together.
967         (create_function_info_for): Do not set has_union.
968         (create_variable_info_for): Simplify.
970 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
972         * config.gcc (extra_headers): Add cross-stdarg.h for target
973         x86_64-*-* and i?86-*-*.
974         * config/i386/cross-stdarg.h: New.
975         * builtins.c (std_fn_abi_va_list): New.
976         (std_canonical_va_list_type): New.
977         (stabilize_va_list): Replace va_list_type_node use by
978         mtarget.canonical_va_list_type.
979         (gimplify_va_arg_expr): Likewise.
980         (expand_builtin_va_copy): Replace va_list_type_node use by
981         mtarget.fn_abi_va_list.
982         * tree-sra.c (is_va_list_type): New helper.
983         (decl_can_be_decomposed_p): Replace
984         va_list_type_node use by is_va_list_type.
985         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
986         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
987         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
988         * config/i386/i386-protos.h (ix86_get_valist_type): New.
989         (ix86_enum_va_list): New.
990         * config/i386/i386.c (sysv_va_list_type_node): New.
991         (ms_va_list_type_node): New.
992         (ix86_function_type_abi): Remove sorry.
993         (ix86_build_builtin_va_list_abi): New.
994         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
995         for 64-bit targets.
996         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
997         (ix86_init_builtins_va_builtins_abi): New.
998         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
999         for 64-bit targets.
1000         (ix86_handle_abi_attribute): New.
1001         (attribute_spec): Add sysv_abi and ms_abi.
1002         (ix86_fn_abi_va_list): New.
1003         (ix86_canonical_va_list_type): New.
1004         (ix86_enum_va_list): New.
1005         (TARGET_FN_ABI_VA_LIST): New.
1006         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1007         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1008         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1009         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1010         (TARGET_ENUM_VA_LIST): New.
1011         * expr.h (std_fn_abi_va_list): New.
1012         (std_canonical_va_list_type): New.
1013         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1014         (TARGET_CANONICAL_VA_LIST_TYPE): New.
1015         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1016         TARGET_CANONICAL_VA_LIST_TYPE.
1017         * target.h (struct gcc_target): Add fn_abi_va_list hook
1018         and canonical_va_list_type hook.
1020 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1022         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1023         integral and pointer types.
1025 2008-07-04  Roger Sayle  <roger@eyesopen.com>
1027         * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
1028         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1030 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1032         PR target/36684
1033         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
1034         for PIC.
1036 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
1038         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1039         build_gimple_modify_stmt.
1040         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
1041         gimple operand.  Use fold_build* instead of build*.
1043 2008-07-04  Richard Guenther  <rguenther@suse.de>
1045         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1046         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1047         properly to compute the reachability set if we do field-sensitive PTA.
1048         * invoke.texi (max-fields-for-field-sensitive): Document default.
1049         * opts.c (decode_options): Set max-fields-for-field-sensitive to
1050         100 for optimize >= 2.
1052 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1054         * ggc-zone.c (lookup_page_table_if_allocated,
1055         set_page_table_entry, zone_find_object_size, alloc_small_page,
1056         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
1057         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
1058         -Wc++-compat and/or -Wcast-qual warnings.
1060 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
1062         PR target/36634
1063         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
1064         pic_offset_table_rtx to be marked as used here.
1065         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
1066         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
1067         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
1068         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
1069         !TARGET_SECURE_PLT.
1071 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1073         * alloc-pool.c (hash_descriptor, eq_descriptor,
1074         alloc_pool_descriptor): Fix -Wc++-compat warnings.
1075         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
1076         Likewise.
1077         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
1078         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
1079         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
1080         Likewise.
1081         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
1082         Likewise.
1084 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1086         * tree-flow.h (loop_only_exit_p): Declare.
1087         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1088         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1089         the number of iterations if it is constant.  Otherwise, if this is the
1090         only possible exit of the loop, use the conservative estimate on the
1091         number of iterations of the entire loop if available.
1093 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
1095         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1096         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1097         Add synchronization functions.
1098         * config/sync.c: New file.
1099         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1100         (LIBGCC_SYNC_CFLAGS): Likewise.
1102 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
1104         PR target/36710
1105         * config/i386/i386.md (mode): Add TF to "mode" attribute.
1106         (*pushtf_sse): New insn pattern.
1107         (pushtf splitters): New splitters.
1109 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
1111         PR middle-end/35736
1112         * predict.c (build_predict_expr): Use void_type_node for the tree
1113         type, instead of NULL_TREE.
1115 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1117         * config/i386/i386.c (contains_aligned_value_p): Return true
1118         for TCmode.
1119         (ix86_data_alignment): Align TCmode to 128bits.
1120         (ix86_local_alignment): Likewise.
1122 2008-07-03  Andrew Haley  <aph@redhat.com>
1124         PR bootstrap/33304
1125         * vec.h (VEC_TA): New.
1126         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1127         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1128         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1129         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1130         (C_COMMON_FIXED_TYPES): Remove first arg.
1131         (C_COMMON_FIXED_MODE_TYPES): Likewise.
1132         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1133         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1134         not to use empty macro arguments.
1136 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
1138         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1139         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1140         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1141         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1142         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1143         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1144         config/ia64/crtn.asm, config/m68hc11/larith.asm,
1145         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1146         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1147         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1148         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1149         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1150         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1151         config/rs6000/e500crtres64gpr.asm,
1152         config/rs6000/e500crtres64gprctr.asm,
1153         config/rs6000/e500crtrest32gpr.asm,
1154         config/rs6000/e500crtrest64gpr.asm,
1155         config/rs6000/e500crtresx32gpr.asm,
1156         config/rs6000/e500crtresx64gpr.asm,
1157         config/rs6000/e500crtsav32gpr.asm,
1158         config/rs6000/e500crtsav64gpr.asm,
1159         config/rs6000/e500crtsav64gprctr.asm,
1160         config/rs6000/e500crtsavg32gpr.asm,
1161         config/rs6000/e500crtsavg64gpr.asm,
1162         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1163         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1164         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1165         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1166         config/sparc/sol2-cn.asm: Remove .file directives.
1168 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
1170         * resource.c (mark_referenced_resources): Look inside
1171         UNSPEC_VOLATILEs and ASM_INPUTs.
1173 2008-07-02  Ian Lance Taylor  <iant@google.com>
1175         * rtlanal.c (add_reg_note): New function.
1176         * rtl.h (add_reg_note): Declare.
1177         * auto-inc-dec.c (attempt_change): Use add_reg_note.
1178         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1179         * builtins.c (expand_builtin_longjmp): Likewise.
1180         (expand_builtin_nonlocal_goto): Likewise.
1181         * calls.c (emit_call_1, expand_call): Likewise.
1182         * cfgexpand.c (add_reg_br_prob_note): Likewise.
1183         * cfglayout.c (fixup_reorder_chain): Likewise.
1184         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1185         (commit_one_edge_insertion): Likewise.
1186         * combine.c (move_deaths, distribute_notes): Likewise.
1187         * df-problems.c (df_set_note): Likewise.
1188         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1189         (set_unique_reg_note): Likewise.
1190         (emit_copy_of_insn_after): Likewise.
1191         * expr.c (expand_expr_real): Likewise.
1192         * gcse.c (add_label_notes): Likewise.
1193         * haifa-sched.c (create_check_block_twin): Likewise.
1194         * jump.c (mark_jump_label_1): Likewise.
1195         * loop-doloop.c (add_test, doloop_modify): Likewise.
1196         * loop-unswitch.c (compare_and_jump_seq): Likewise.
1197         * lower-subreg.c (move_eh_region_note): Likewise.
1198         * optabs.c (emit_libcall_block): Likewise.
1199         * predict.c (predict_insn): Likewise.
1200         (combine_predictions_for_insn): Likewise.
1201         * recog.c (peephole2_optimize): Likewise.
1202         * regmove.c (try_auto_increment): Likewise.
1203         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1204         * reload.c (find_reloads): Likewise.
1205         * reload1.c (fixup_eh_region_note): Likewise.
1206         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1207         * reorg.c (delete_prior_computation): Likewise.
1208         (delete_computation, dbr_schedule): Likewise.
1209         * config/pa/pa.c (legitimize_pic_address): Likewise.
1210         * config/sh/sh.c (sh_reorg): Likewise.
1212 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1214         PR target/36669
1215         * config/libgcc-glibc.ver: Add %exclude.
1216         * config/m32r/libgcc-glibc.ver: Likwise.
1217         * config/s390/libgcc-glibc.ver: Likwise.
1218         * config/sh/libgcc-glibc.ver: Likwise.
1219         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1221         * config/i386/libgcc-glibc.ver: New.
1223         * config/i386/libgcc-x86_64-glibc.ver: Removed.
1225 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1227         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1228         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1229         i[34567]86-*-linux*, x86_64-*-linux*.  Add
1230         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1231         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1232         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
1233         i[34567]86-*-linux*, x86_64-*-linux*.
1235         * libgcc-std.ver: Add empty GCC_4.4.0.
1237         * mkmap-symver.awk: Support multiple versions per symbol.
1239         * config/i386/i386.c (ix86_init_builtins): Always define
1240         __builtin_fabsq and __builtin_copysignq with fallbacks.
1241         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1242         and __builtin_copysignq if SSE2 isn't available.
1244         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1245         (LIBGCC2_TF_CEXT): Likwise.
1246         (TF_SIZE): Likwise.
1248         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1250         * config/i386/sfp-machine.h: Moved to libgcc.
1252         * config/i386/sfp-machine.h: New.
1253         * config/i386/t-linux: Likwise.
1255         * config/i386/t-darwin: Remove softfp_wrap_start and
1256         softfp_wrap_end.
1257         * config/i386/t-darwin64: Likewise.
1259         * config/i386/t-fprules-softfp64: Renamed to ...
1260         * config/i386/t-fprules-softfp: This.
1262         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1263         and softfp_wrap_end.
1265 2008-07-02  Jason Merrill  <jason@redhat.com>
1267         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1269         * tree.c (ctor_to_list): New fn.
1270         * tree.h: Declare it.
1271         (CONSTRUCTOR_ELT): New macro.
1272         (CONSTRUCTOR_NELTS): New macro.
1274 2008-07-02  Richard Guenther  <rguenther@suse.de>
1276         * tree-ssa-structalias.c (struct variable_info): Reorder
1277         to fill padding on 64bit hosts.  Make collapsed_to an int.
1278         (get_varinfo_fc): Deal with that.
1279         (new_var_info): Likewise.
1280         (collapse_rest_of_var): Likewise.
1282 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
1284         * doc/install.texi (--enable-java-home): Document.
1285         (--enable-aot-compile-rpm): Likewise.
1286         (--with-arch-directory): Likewise.
1287         (--with-os-directory): Likewise.
1288         (--with-origin-name): Likewise.
1289         (--with-arch-suffix): Likewise.
1290         (--with-jvm-root-dir): Likewise.
1291         (--with-jvm-jar-dir): Likewise.
1292         (--with-python-dir): Likewise.
1294 2008-07-02  Richard Guenther  <rguenther@suse.de>
1296         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1297         from decls explicitly.  Merge operand checking from tuples.
1299 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1301         * tree-switch-conversion.c: Included timevar.h which I forgot before.
1302         
1303 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1305         * tree-switch-conversion.c: Included timevar.h
1306         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1308         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1310 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1312         * tree-switch-conversion.c: Corrected various comments and
1313         whitespace issues
1314         (build_constructors): Fixed minor formatting mistakes.
1316         * invoke.texi (Optimize Options): Corrected the
1317         switch-conversion-max-branch-ratio parameter.
1319 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
1321         * final.c (asm_insn_count): Return zero for an empty asm body.
1323 2008-07-02  Richard Guenther  <rguenther@suse.de>
1325         * bitmap.h (bitmap_set_bit): Return bool.
1326         (bitmap_clear_bit): Likewise.
1327         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
1328         write to the bitmap if it would.
1329         (bitmap_clear_bit): Likewise.
1330         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1331         bitmap_set_bit return value.
1332         (add_pred_graph_edge): Likewise.
1333         (add_graph_edge): Likewise.
1334         (do_sd_constraint): Likewise.
1335         (do_ds_constraint): Likewise.
1337 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1339         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1340         Fix -Wc++-compat and/or -Wcast-qual warnings.
1341         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1342         gen_regparm_prefix): Likewise.
1343         * vmsdbgout.c (write_modbeg, lookup_filename,
1344         vmsdbgout_source_line, vmsdbgout_init): Likewise.
1346 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1348         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1349         defaults.h definition apply.
1351 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1353         * function.c (assign_parm_remove_parallels): New.
1354         (assign_parm_setup_block_p): Do not return true for non-BLKmode
1355         PARALLELs.
1356         (assign_parm_setup_block): Do not handle them.
1357         (assign_parm_setup_reg, assign_parm_setup_stack): Call
1358         assign_parm_remove_parallels.
1360 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1362         * c-typeck.c (convert_for_assignment): Use
1363         vector_targets_convertible_p.
1364         * c-common.c (vector_targets_convertible_p): New.
1365         * c-common.h (vector_targets_convertible_p): New prototype.
1366         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1367         opaque_p_V2SI_type_node.
1369 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
1371         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1372         RFmode constants.
1374 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
1376         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1377         TFmode constants via two element DImode vector for hosts with
1378         HOST_BITS_PER_WIDE_INT < 64.
1379         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1380         also for HOST_BITS_PER_WIDE_INT < 64.
1382 2008-07-01  Richard Guenther  <rguenther@suse.de>
1384         PR tree-optimization/36666
1385         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1386         (get_constraint_exp_from_ssa_var): Split into ...
1387         (get_constraint_exp_for_temp): ... this ...
1388         (get_constraint_for_ssa_var): ... and that.
1389         Return constraint expressions for all touched sub-fields
1390         if the results address is not taken.
1391         (process_constraint): Remove assertion that aggregate
1392         assignments do not happen at this place.
1393         (get_constraint_for_component_ref): Add address_p argument.
1394         Return constraint expressions for all touched sub-fields
1395         if the results address is not taken.
1396         (do_deref): Use get_constraint_exp_for_temp.
1397         (get_constraint_for_1): Rename from ...
1398         (get_constraint_for): ... this.  Add the old function as wrapper.
1399         (do_structure_copy): Use get_constraint_for_1.
1401 2008-07-01  Martin Jambor  <mjambor@suse.cz>
1403         * Makefile.in (tree-switch-conversion.o): Add.
1404         (OBJS-common): Add tree-swtch-conversion.o.
1405         * passes.c (init_optimization_passes): Add pass_convert_switch.
1406         * tree-pass.h: (pass_convert_switch): Add.
1407         * tree-switch-conversion.c: New file.
1408         * gcc.dg/tree-ssa/cswtch.c: New testcase.
1409         * common.opt (ftree-cswtch): New option.
1410         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1411         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1412         * opts.c (decode_options): Set flag_tree_switch_conversion when
1413         optimization level is >= 2.
1414         * doc/invoke.texi (Optimize Options): Added description of
1415         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1417 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1419         * config/darwin-driver.c (darwin_default_min_version): Fix
1420         -Wc++-compat warnings.
1422 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
1424         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1425         of operand 0.
1427 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1429         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1430         
1431 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1433         PR rtl-optimization/34744
1434         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1435         (df_scan_free_internal): Free data structures not
1436         allocated in storage pools.
1437         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1438         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1439         df_scan_free_mws_vec.
1440         * dse.c (dse_step6): Free offset_map_p and offset_map_n
1441         unconditionally.
1443 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1445         * config/i386/i386.c (contains_aligned_value_p): Return true
1446         for __float128.
1447         (ix86_function_arg_boundary): Return its natural boundary
1448         for __float128.
1449         (return_in_memory_32): Don't check TDmode.
1450         (ix86_split_to_parts): Support splitting into 4 parts and
1451         support TFmode for 32bit target.
1452         (ix86_split_long_move): Support splitting into 4 parts.
1453         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1454         for SSE2.
1455         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1456         (ix86_init_builtins): Here.
1457         (ix86_scalar_mode_supported_p): Always return true for TFmode.
1458         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1459         'q' and 'w', respectively. 
1461         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1462         TARGET_64BIT.
1463         (movtf_internal): Likewise.
1464         (<code>tf2): Likewise.
1465         (*absnegtf2_sse): Likewise.
1466         (copysign<mode>3): Likewise.
1467         (copysign<mode>3_const): Likewise.
1468         (copysign<mode>3_var): Likewise.
1469         (define_split UNSPEC_COPYSIGN): Likewise.
1470         * config/i386/sse.md (*nandtf3): Likewise.
1471         (<code>tf3): Likewise.
1472         (*<code>tf3): Likewise.
1474 2008-06-30  Joey Ye  <joey.ye@intel.com>
1475             H.J. Lu  <hongjiu.lu@intel.com>
1477         * global.c (compute_regsets): Set frame_pointer_needed here.
1478         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1480 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1482         * doc/install.texi (specific): Expand Windows build notes.
1484 2008-06-30  Ira Rosen  <irar@il.ibm.com>
1486         PR tree-optimization/36648
1487         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1488         number of prolog iterations by step. Fix the comment.
1490 2008-06-30  Richard Guenther  <rguenther@suse.de>
1492         PR middle-end/36671
1493         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1494         handle calls from ECF_MALLOC functions.
1495         (handle_pure_call): ECF_MALLOC functions do not return
1496         call-used memory.
1497         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1499 2008-06-29  Andreas Schwab  <schwab@suse.de>
1501         * config/m68k/m68k.c (print_operand): Always print a float
1502         constant in hex.
1503         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1504         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1505         Remove macros.
1507         * config/rs6000/x-linux64: Remove never used file.
1509 2008-06-29  Richard Guenther  <rguenther@suse.de>
1511         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1512         prototype.
1513         (struct alias_info): Move ...
1514         * tree-ssa-alias.c: ... here.
1515         (update_alias_info): Declare.
1516         (compute_may_aliases): Call it.
1517         (update_alias_info): New function.
1518         * tree-ssa-structalias.c (update_alias_info): Move ...
1519         * tree-ssa-alias.c (update_alias_info_1): ... here.
1520         * tree-ssa-structalias.c (process_constraint_1): Remove
1521         unused from_call argument.  Rename to ...
1522         (process_constraint): ... this.  Delete old wrapper.
1523         (make_constraint_to): Adjust callers.
1524         (handle_const_call): Likewise.
1525         (handle_pure_call): Likewise.
1526         (init_base_vars): Likewise.
1527         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
1528         (find_func_aliases): We don't need structure copies for
1529         complex types.
1530         (make_constraint_from_anything): Remove.
1531         (create_variable_info_for): For globals make constraints
1532         from escaped, not from anything.
1533         (compute_points_to_sets): Do not call update_alias_info.
1534         (ipa_pta_execute): Use make_constraint_from.
1536 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1538         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1539         (bitmap.o-warn, dominance.o-warn): New.
1540         * configure.ac (cxx_compat_warn): Delete.
1541         (loose_warn): Add -Wcast-qual and -Wc++-compat.
1542         * system.h: Remove #pragma diagnostic for -Wcast-qual and
1543         -Wc++-compat.
1544         * configure: Regenerate.
1546         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1547         warnings.
1549 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1551         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1552         * df-scan.c (df_notes_rescan): Likewise.
1553         * ggc-page.c (set_page_table_entry): Likewise.
1554         * intl.c (gcc_gettext_width): Likewise.
1555         * varasm.c (get_unnamed_section, get_noswitch_section,
1556         get_section): Likewise.
1558 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
1560         * regrename.c (build_def_use): Don't copy RTX.
1562 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
1564         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1565         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
1566         punctuation.  Use @ref instead of @xref.
1567         (Function Names): Remove stray @display/@end display.
1568         (C++ Attributes): Use @ref instead of @xref.
1569         (Deprecated Features): Fix punctuation around @xref.
1570         (Backwards Compatibility): Likewise.
1571         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1573 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
1575         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1576         constants for E500 double.
1578 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1580         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1581         element type of const_vector.
1583 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
1585         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1586         Remove FLAGS_REG clobber from expander pattern.
1587         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1588         (anddi3, andsi3, andhi3, andqi3): Ditto.
1589         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1590         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1591         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1592         (ashlsi3, ashlhi3, ashlqi3): Ditto.
1593         (ashrsi3, ashrhi3, ashrqi3): Ditto.
1594         (lshrsi3, lshrhi3, lshrqi3): Ditto.
1595         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1596         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1598 2008-06-28  Richard Guenther  <rguenther@suse.de>
1600         * tree-ssa-structalias.c (callused_id, var_callused,
1601         callused_tree): Add.
1602         (handle_pure_call): New function.
1603         (find_func_aliases): Call it.
1604         (find_what_p_points_to): Handle the call-used set.
1605         (clobber_what_escaped): Likewise.
1606         (compute_call_used_vars): New function.
1607         (init_base_vars): Init the call-used variable.
1608         (do_sd_constraint): Do not propagate the solution from CALLUSED
1609         but use CALLUSED as a placeholder.
1610         (solve_graph): Likewise.
1611         * tree-flow-inline.h (gimple_call_used_vars): New function.
1612         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1613         (compute_call_used_vars): Declare.
1614         * tree-ssa-alias.c (set_initial_properties): Call
1615         compute_call_used_vars.
1616         (reset_alias_info): Clear call-used variables.
1617         (add_call_clobber_ops): Assert we are not called for const/pure
1618         functions.  Remove handling of them.
1619         (add_call_read_ops): Handle pure functions by adding the
1620         call-used set of variables as VUSEs.
1621         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1622         (delete_tree_ssa): Free it.
1623         * tree-dfa.c (remove_referenced_var): Clear the var from the
1624         call-used bitmap.
1626 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
1628         * tree.c (build_varargs_function_type_list): New.
1629         (build_function_type_list_1): New.
1630         (build_function_type_list): Use build_function_type_list_1.
1631         * tree.h (build_varargs_function_type_list): New.
1633 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1635         PR target/34856
1636         * config/spu/spu.c (spu_builtin_splats): Do not generate
1637         invalid CONST_VECTOR expressions.
1638         (spu_expand_vector_init): Likewise.
1640 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
1642         * optabs.c (libfunc_decls): New variable.
1643         (libfunc_decl_hash, libfunc_decl_eq): New functions.
1644         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1645         for the same function twice.
1647 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
1649         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1650         ix86_expand_binary_operator directly.
1651         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
1652         for operand 2.
1653         (*ashrti3_1): Ditto.
1654         (*lshrti3_1): Ditto.
1655         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1656         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1657         using only one splitter.  Conditionaly execute splitter before or
1658         after peephole2 pass.
1659         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1660         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
1661         Use only one alternative in asm template.
1662         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1663         in asm template.
1664         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1665         "J" operand constraint for operand 2.
1666         (*ashldi3_cconly_rex64): Ditto.
1667         (*ashrdi3_cmp_rex64): Ditto.
1668         (*ashrdi3_cconly_rex64): Ditto.
1669         (*lshrdi3_cmp_rex64): Ditto.
1670         (*lshrdi3_cconly_rex64): Ditto.
1671         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1672         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1673         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1674         gen_x86_shrd_1.
1676 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1678         * gimplify.c (omp_is_private): Don't return true if decl is not
1679         already private on #pragma omp for or #pragma omp parallel for.
1681         PR debug/36617
1682         * tree-cfg.c (struct move_stmt_d): Replace block field with
1683         orig_block and new_block fields.
1684         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1685         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1686         (move_block_to_fn): Replace vars_map and new_label_map arguments
1687         with struct move_stmt_d pointer.
1688         (replace_block_vars_by_duplicates): New function.
1689         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
1690         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
1691         all subblocks of ORIG_BLOCK to the new function.  Call
1692         replace_block_vars_by_duplicates.
1693         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1694         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1695         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
1696         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1697         (expand_omp): Temporarily set input_location to the location of
1698         region's controlling stmt.
1699         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1700         BIND_EXPR, push ctx->block_vars and gimplification vars into
1701         the BIND_EXPR and its block's BLOCK_VARS instead of directly
1702         into dest function.
1703         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1704         there are any BLOCK_VARS.
1705         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1706         OMP_PARALLEL or OMP_TASK stmt.
1707         (lower_omp): Save and restore input_location around the lower_omp_1
1708         call.
1710 2008-06-27  Richard Guenther  <rguenther@suse.de>
1712         PR tree-optimization/36400
1713         PR tree-optimization/36373
1714         PR tree-optimization/36344
1715         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1716         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1717         (update_alias_info): Remove call clobbering code.
1718         (make_constraint_to): New helper function.
1719         (make_escape_constraint): Likewise.
1720         (handle_rhs_call): Use it on all pointer containing arguments.
1721         Also mark the static chain escaped.
1722         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1723         instead of ANYTHING.
1724         (make_constraint_from): New helper split out from ...
1725         (make_constraint_from_anything): ... here.
1726         (find_func_aliases): Add constraints for escape sites.
1727         (intra_create_variable_infos): Make constraints from NONLOCAL
1728         for parameters.
1729         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1730         as ANYTHING.
1731         (clobber_what_p_points_to): Remove.
1732         (clobber_what_escaped): New function.
1733         (init_base_vars): Init NONLOCAL and ESCAPED.
1734         (do_sd_constraint): Do not propagate the solution from ESCAPED
1735         but use ESCAPED as a placeholder.
1736         (solve_graph): Likewise.
1737         * tree-flow.h (clobber_what_p_points_to): Remove.
1738         (clobber_what_escaped): Declare.
1739         * tree-ssa-alias.c (set_initial_properties): Call it.
1740         Remove code clobbering escaped pointers.
1742 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1744         * function.c (allocate_struct_function): Only allocate a unique
1745         funcdef_no if the decl is nonzero.
1747 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1749         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1750         * config/mips/mips.c (mips_split_const_insns): New function.
1751         * config/mips/mips.md (move_type): New attribute.
1752         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
1753         (dword_mode): New attribute.
1754         (type): Avoid long line.  Map "move_type"s to "type"s,
1755         choosing "multi" for doubleword moves if appropriate.
1756         Swap MTC/MFC comments to match their declaration order.
1757         (extended_mips16): Default to "yes" if "move_type" is "sll0",
1758         "type" is "branch" or "jal" is "direct".
1759         (length): Handle "extended_mips16" first.  Make the default
1760         "0" for "ghost" instructions.  Set the length from "move_type".
1761         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1762         of "type", with "sll0" for the register alternative.  Remove the
1763         "extended_mips16" attribute.
1764         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1765         of "type", with "shift_shift" for the register alternative.
1766         Remove the "length" attribute.
1767         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1768         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1769         of "type", with "andi" for the register alternative.
1770         (*zero_extendqihi2): Likewise.
1771         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1772         of "andi" instead of a "type" of "arith".
1773         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1774         instead of "type".
1775         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1776         (mov_<store>r, *mov<mode>_ra): Likewise.
1777         (extendsidi2): Use "move_type" instead of "type", with "move"
1778         for the register alternative.
1779         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1780         of "type", with "signext" for the register alternative.
1781         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1782         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1783         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1784         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1785         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1786         (unnamed branch insn): Likewise.
1787         (*movdi_gp32_fp64): Fold into...
1788         (*movdi_32bit): ...here.
1789         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1790         (*movdf_hardfloat): ...this new pattern.
1791         (*movdf_softfloat): Remove redundant FPR alternatives.
1792         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1793         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1794         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
1795         the "move" attribute.
1796         (*movdi_32bit): Use "move_type" instead of "type" and remove the
1797         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
1798         and "store" for COP loads and stores.
1799         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1800         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1801         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1802         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1803         (*movtf_mips16, *movv2sf): Likewise.
1804         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1805         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1806         (mfhc1<mode>): Use "move_type" instead of "move".
1807         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1808         (loadgp_blockage): Remove the "length" attribute.
1809         (blockage, set_got_version, update_got_version): Likewise.
1810         (call_internal): Remove the "extended_mips16" attribute.
1811         (call_value_internal, call_value_multiple_internal): Likewise.
1812         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1813         instead of "move".
1814         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1815         the "length" attribute.
1817 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1819         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1820         -Wcast-qual warnings.
1821         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1822         handle_pragma_pop_macro): Likewise.
1823         * collect2.c (resolve_lib_name): Likewise.
1824         * config/arc/arc.c (arc_init): Likewise.
1825         * config/arm/arm.c (neon_builtin_compare,
1826         locate_neon_builtin_icode): Likewise.
1827         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1828         * config/bfin/bfin.c (bfin_init_machine_status,
1829         bfin_optimize_loop): Likewise.
1830         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1831         * config/cris/cris.c (cris_init_expanders): Likewise.
1832         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1833         * config/darwin.c (machopic_indirection_eq,
1834         machopic_indirection_name, machopic_output_indirection): Likewise.
1835         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1836         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1837         frv_optimize_membar): Likewise.
1838         * config/i386/cygwin.h (mingw_scan,
1839         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1840         * config/i386/cygwin1.c (mingw_scan): Likewise.
1841         * config/i386/i386.c (machopic_output_stub): Likewise.
1842         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1843         i386_pe_unique_section): Likewise.
1844         * config/ia64/ia64.c (ia64_init_machine_status,
1845         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1846         Likewise.
1847         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1848         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1849         * config/m68k/m68k.c (m68k_handle_option,
1850         m68k_sched_md_init_global): Likewise.
1851         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1852         mcore_unique_section): Likewise.
1853         * config/mips/mips.c (mips_block_move_straight,
1854         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1855         Likewise.
1856         * config/mmix/mmix.c (mmix_init_machine_status,
1857         mmix_encode_section_info): Likewise.
1858         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1859         * config/rs6000/rs6000.c (rs6000_init_machine_status,
1860         print_operand_address, output_toc, redefine_groups,
1861         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1862         * config/s390/s390.c (s390_init_machine_status): Likewise.
1863         * config/score/score.c (score_block_move_straight,
1864         score_block_move_loop_body): Likewise.
1865         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1866         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1867         * emit-rtl.c (find_auto_inc): Likewise.
1868         * gcc.c (translate_options, process_command): Likewise.
1869         * reorg.c (dbr_schedule): Likewise.
1870         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1871         * xcoffout.c (xcoffout_declare_function): Likewise.
1873 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
1875         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1876         ipa-pta working again.
1878 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
1880         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1881         genautomata.
1883 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
1885         * config.gcc (powerpc*-*-*): Add new core e500mc.
1886         * config/rs6000/e500mc.md: New file.
1887         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1888         e500mc.
1889         (rs6000_override_options): Add e500mc case to
1890         processor_target_table. Altivec and Spe options not allowed
1891         with e500mc. Add isel instruction to e500mc by
1892         default. Initialize rs6000_cost for e500mc.
1893         (rs6000_issue_rate): Set issue rate for e500mc.
1894         * config/rs6000/rs6000.h (processor_type): Add
1895         PROCESSOR_PPCE500MC.
1896         (ASM_CPU_SPEC): Add e500mc.
1897         Set TARGET_ISEL to rs6000_isel.
1898         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1899         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1900         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1901         Include e500mc.md.
1902         * doc/invoke.texi: Add e500mc to list of cpus.
1904 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1906         PR c/34867
1907         * c-lex.c (lex_charconst): Initialize unsignedp.
1909 2008-06-27  Olivier Hainque  <hainque@adacore.com>
1911         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
1912         documented assumptions.
1914 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1916         * dwarf2out.c: Remove trailing white spaces.  Break long line
1917         in comments.
1919 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
1921         * libfuncs.h (LTI_synchronize): New libfunc_index.
1922         (synchronize_libfunc): Declare.
1923         * builtins.c (expand_builtin_synchronize): Consider using
1924         synchronize_libfunc before falling back on an asm blockage.
1925         * config/mips/mips.c: Include libfuncs.h
1926         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
1928 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
1930         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
1931         parameter.  Copy stack_reg to r11 where appropriate.
1932         (no_global_regs_above): Add gpr parameter.
1933         (rs6000_stack_info): Only add padding for SPE save area if we
1934         are saving SPE GPRs and CR.
1935         (saveres_routine_syms): New variable.
1936         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
1937         Define.
1938         (rs6000_savres_routine_sym): New function.
1939         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
1940         split out of...
1941         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
1942         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
1943         Tweak FPR out-of-line saving.
1944         (rs6000_make_savres_rtx): New function.
1945         (rs6000_use_multiple_p): New function.
1946         (rs6000_savres_strategy): New function.
1947         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
1948         out-of-line if appropriate.
1949         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
1950         if we are optimizing for size.
1951         (GP_SAVE_INLINE): Define.
1952         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
1953         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
1954         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
1955         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
1956         (*save_fpregs_<mode>): Add use of r11.
1957         (*restore_gpregs_<mode>): New insn.
1958         (*return_and_restore_gpregs_<mode>): New insn.
1959         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
1960         use r11.
1961         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
1962         (*restore_gpregs_spe): New insn.
1963         (*return_and_restore_gpregs_spe): New insn.
1964         * config/rs6000/predicates.md (save_world_operation): Fix check.
1966 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1968         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
1969         this point, so assert that.
1971 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1973         * cfganal.c: Include vec.h and vecprim.h.
1974         (compute_idf): Import from...
1975         * tree-into-ssa (compute_idf): ...here.
1976         * basic-block.h (compute_idf): Export.
1978 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
1980         * c-decl.c (merge_decls): Use !current_function_decl to check for
1981         extern declaration of C99 inline function being at file scope.
1983 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
1985         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
1987 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1989         * alias.c (record_alias_subset, init_alias_analysis): Fix
1990         -Wc++-compat and/or -Wcast-qual warnings.
1991         * attribs.c (lookup_attribute_spec): Likewise.
1992         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1993         copy_bb, connect_traces,
1994         find_rarely_executed_basic_blocks_and_cr): Likewise.
1995         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
1996         note_btr_set, migrate_btr_defs): Likewise.
1997         * builtins.c (result_vector, expand_builtin_memcpy,
1998         expand_builtin_mempcpy_args, expand_builtin_strncpy,
1999         builtin_memset_read_str, expand_builtin_printf,
2000         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2001         Likewise.
2002         * caller-save.c (mark_set_regs): Likewise.
2003         * calls.c (expand_call, emit_library_call_value_1): Likewise.
2004         * cgraph.c (cgraph_edge): Likewise.
2005         * combine.c (likely_spilled_retval_1): Likewise.
2006         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2007         htab_counts_entry_del, get_coverage_counts): Likewise.
2008         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2009         new_cselib_val): Likewise.
2010         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2011         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2012         Likewise.
2013         * df-core.c (df_compact_blocks): Likewise.
2014         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2015         * df-scan.c (df_grow_reg_info, df_ref_create,
2016         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2017         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2018         df_record_entry_block_defs, df_record_exit_block_uses,
2019         df_bb_verify): Likewise.
2020         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2021         DF_REF_EXTRACT_MODE_CONST): New.
2022         * dominance.c (get_immediate_dominator, get_dominated_by,
2023         nearest_common_dominator, root_of_dom_tree,
2024         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2025         -Wc++-compat and/or -Wcast-qual warnings.
2026         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2027         record_store, replace_read, check_mem_read_rtx, scan_insn,
2028         dse_step1, dse_record_singleton_alias_set): Likewise.
2029         * dwarf2asm.c (dw2_force_const_mem): Likewise.
2031 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2033         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2034         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2035         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2036         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2037         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2038         add_ranges_num, add_ranges_by_labels, file_info_cmp,
2039         file_name_acquire, output_file_names, add_const_value_attribute,
2040         premark_used_types_helper, file_table_eq, file_table_hash,
2041         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2042         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2043         -Wcast-qual warnings.
2044         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2045         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2046         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2047         gen_reg_rtx, start_sequence, init_emit): Likewise.
2048         * et-forest.c (et_new_occ, et_new_tree): Likewise.
2049         * except.c (init_eh_for_function, gen_eh_region,
2050         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
2051         arh_to_landing_pad, arh_to_label, add_action_record,
2052         add_call_site, switch_to_exception_section): Likewise.
2053         * expmed.c (synth_mult): Likewise.
2054         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
2055         store_expr): Likewise.
2056         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
2057         Likewise.
2058         * function.c (assign_stack_temp_for_type,
2059         allocate_struct_function, match_asm_constraints_1): Likewise.
2060         * gcov-io.c (gcov_allocate): Likewise.
2061         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
2062         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
2063         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
2064         record_one_set, insert_expr_in_table, insert_set_in_table,
2065         dump_hash_table, compute_hash_table_work, alloc_hash_table,
2066         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
2067         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
2068         -Wcast-qual warnings.
2070 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2072         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
2073         -Wcast-qual warnings.
2074         * gcc.c (process_command): Likewise.
2075         * genattrtab.c (oballoc): Use XOBNEW.
2076         (oballocvec): Define.
2077         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
2078         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
2079         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
2080         -Wc++-compat and/or -Wcast-qual warnings.
2081         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
2082         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
2083         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2084         gen_presence_absence_set, gen_automaton, gen_regexp_el,
2085         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2086         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2087         add_excls, process_presence_absence_names,
2088         process_presence_absence_patterns, add_presence_absence,
2089         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2090         get_free_state, add_arc, get_free_automata_list_el,
2091         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2092         transform_3, cache_presence, create_ainsns, create_automata,
2093         create_state_ainsn_table, dfa_insn_code_enlarge,
2094         output_trans_func, output_min_issue_delay_func,
2095         output_dead_lock_func, output_reset_func,
2096         output_get_cpu_unit_code_func, output_dfa_start_func,
2097         expand_automata): Likewise.
2098         * genextract.c (gen_insn): Likewise.
2099         * gengtype-lex.l: Likewise.
2100         * gengtype.c (read_input_list, adjust_field_type,
2101         process_gc_options): Likewise.
2102         * genoutput.c (note_constraint): Likewise.
2103         * genpreds.c (mangle, add_constraint): Likewise.
2104         * genrecog.c (process_define_predicate, new_decision,
2105         add_to_sequence): Likewise.
2106         * gensupport.c (record_insn_name): Likewise.
2108 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2110         * config/i386/driver-i386.c (detect_caches_amd,
2111         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2112         and/or -Wcast-qual warnings.
2113         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2114         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2115         gt_pch_save): Likewise.
2116         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2117         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2118         * global.c (compute_regsets): Likewise.
2119         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2120         finish_graph_dump_file): Likewise.
2121         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2122         unlink_bb_notes): Likewise.
2123         * integrate.c (get_hard_reg_initial_val): Likewise.
2124         * ipa-prop.c (ipa_push_func_to_list): Likewise.
2125         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2126         * local-alloc.c (update_equiv_regs): Likewise.
2127         * loop-invariant.c (check_invariant_table_size,
2128         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2129         Likewise.
2130         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2131         altered_reg_used, mark_altered): Likewise.
2132         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2133         insert_var_expansion_initialization,
2134         combine_var_copies_in_loop_exit, apply_opt_in_copies,
2135         release_var_copies): Likewise.
2136         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2137         analyze_matrix_decl, add_allocation_site, analyze_transpose,
2138         analyze_accesses_for_phi_node, check_var_notmodified_p,
2139         check_allocation_function, find_sites_in_func,
2140         record_all_accesses_in_func, transform_access_sites,
2141         transform_allocation_sites): Likewise.
2142         * omp-low.c (new_omp_region, create_omp_child_function_name,
2143         check_omp_nesting_restrictions, check_combined_parallel,
2144         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2145         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2146         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2147         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2148         Likewise.
2149         * opts-common.c (prune_options): Likewise.
2150         * opts.c (add_input_filename, print_filtered_help,
2151         get_option_state): Likewise.
2152         * params.c (add_params): Likewise.
2153         * passes.c (set_pass_for_id, next_pass_1,
2154         do_per_function_toporder, pass_fini_dump_file): Likewise.
2155         * postreload.c (reload_cse_simplify_operands): Likewise.
2156         * predict.c (tree_predicted_by_p, tree_predict_edge,
2157         clear_bb_predictions, combine_predictions_for_bb): Likewise.
2159 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2161         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2162         warnings.
2163         * recog.c (check_asm_operands, validate_change_1): Likewise.
2164         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2165         subst_asm_stack_regs): Likewise.
2166         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2167         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2168         * regmove.c (reg_is_remote_constant_p): Likewise.
2169         * regrename.c (regrename_optimize, scan_rtx_reg,
2170         kill_clobbered_value, kill_set_value, kill_autoinc_value):
2171         Likewise.
2172         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2173         regstat_compute_calls_crossed): Likewise.
2174         * reload1.c (init_reload, new_insn_chain,
2175         has_nonexceptional_receiver, reload, copy_reloads,
2176         calculate_needs_all_insns, init_elim_table): Likewise.
2177         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2178         * rtl.c (shallow_copy_rtx_stat): Likewise.
2179         * rtlanal.c (parms_set): Likewise.
2180         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2181         sbitmap_resize, sbitmap_vector_alloc): Likewise.
2182         * sched-ebb.c (earliest_block_with_similiar_load,
2183         add_deps_for_risky_insns): Likewise.
2184         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2185         schedule_region): Likewise.
2186         * see.c (eq_descriptor_pre_extension,
2187         hash_descriptor_pre_extension, hash_del_pre_extension,
2188         eq_descriptor_properties, hash_descriptor_properties,
2189         hash_del_properties, see_seek_pre_extension_expr,
2190         see_initialize_data_structures, see_print_register_properties,
2191         see_print_pre_extension_expr, see_delete_merged_def_extension,
2192         see_delete_unmerged_def_extension, see_emit_use_extension,
2193         see_pre_delete_extension, see_map_extension, see_commit_changes,
2194         see_analyze_merged_def_local_prop,
2195         see_analyze_merged_def_local_prop,
2196         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2197         see_set_prop_merged_def, see_set_prop_unmerged_def,
2198         see_set_prop_unmerged_use, see_print_one_extension,
2199         see_merge_one_use_extension, see_merge_one_def_extension,
2200         see_store_reference_and_extension, see_update_uses_relevancy,
2201         see_update_defs_relevancy): Likewise.
2202         * statistics.c (hash_statistics_hash, hash_statistics_eq,
2203         hash_statistics_free, curr_statistics_hash): Likewise.
2204         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2205         expand_asm_operands, expand_return, case_bit_test_cmp,
2206         expand_case): Likewise.
2207         * stor-layout.c (start_record_layout): Likewise.
2208         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2209         gt_pch_save_stringpool): Likewise.
2210         * tree-data-ref.c (hash_stmt_vertex_info,
2211         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2212         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2214 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
2216         PR target/36627
2217         * config/i386/i386.md : Change constraints of HImode and QImode
2218         immediate operands from "i" to "n".  Change SImode "ni" constraint to
2219         "i" and SImode "rmi" constraint to "g".  Remove all constraints
2220         from const0_operand and const1_operand predicated operands.
2221         (i): Change QImode and HImode attribute from "i" to "n".
2222         (*subqi_2): Change HImode operands to QImode.
2223         (*subqi_3): Ditto.
2225 2008-06-25  Olivier Hainque  <hainque@adacore.com>
2227         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2228         sed substitutions.
2230 2008-06-25  Richard Guenther  <rguenther@suse.de>
2232         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2233         not overflow the result type.
2235 2008-06-25  Richard Guenther  <rguenther@suse.de>
2237         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2238         (vn_lookup): Likewise.
2240 2008-06-25  Richard Guenther  <rguenther@suse.de>
2242         PR tree-optimization/35518
2243         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2244         * tree-sra.c (instantiate_element): Use fold_build3 to build
2245         BIT_FIELD_REFs.
2246         (try_instantiate_multiple_fields): Likewise.
2248 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2250         * config/rs6000/rs6000.md: Change all string instruction's clobber to
2251         be early clobbers.
2253 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2255         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2256         use_backchain_to_restore_sp to true
2257         if the offset of the link register save area would go over the 32k - 1
2258         offset limit of the load
2259         instructions.
2261 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2263         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2264         anchor for the type-punning blurb.  Cross-reference "Structures
2265         unions enumerations and bit-fields implementation".  Provide a
2266         cast-through-pointer example.  Make final sentence self-contained.
2267         * doc/implement-c.texi (Structures unions enumerations and
2268         bit-fields implementation): Cross-reference the type-punning blurb
2269         in the -fstrict-aliasing documentation.
2271 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2273         PR middle-end/36594
2274         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2275         the memory instead of the memory itself for the save area.
2277 2008-06-24  Olivier Hainque  <hainque@adacore.com>
2278             Nicolas Roche  <roche@adacore.com>
2280         * gengtype.c (srcdir_len): size_t instead of int.
2281         (get_file_realbasename): New function.  For F a filename, the real
2282         basename of F, with all the path components stripped.
2283         (get_file_srcdir_relative_path): New function.  For F a filename, the
2284         relative path to F from $(srcdir).
2285         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2286         get_file_realbasename.  Adjust the head comment.
2287         (get_prefix_langdir_index): New function. For F a filename, return the
2288         lang_dir_names[] relative index of the language directory that is
2289         a prefix in F.
2290         (get_file_langdir): For F a filename, return the name of the language
2291         directory where F is located.
2292         (get_file_gtfilename): New function. The gt- output file name for an
2293         input filename F.
2294         (get_output_file_with_visibility): Replace in-line computations with
2295         uses of get_file_gtfilename and get_prefix_langdir_index.
2296         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2298 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
2300         PR tree-optimization/36504
2301         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2302         references without base address.
2304 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2306         PR middle-end/36584
2307         * calls.c (expand_call): Increase alignment for recursive functions.
2309 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
2311         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2312         (TARGET_FUNCTION_VALUE): New define.
2313         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2314         * config/avr/avr.h (FUNCTION_VALUE): Remove.
2316 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2318         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2319         (fmod<mode>3): Ditto.
2320         (remainderxf3): Ditto.
2321         (remainder<mode>3): Ditto.
2323 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
2325         PR target/36533
2326         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2327         REG is a hard register.
2329         PR tree-optimization/36508
2330         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2331         499, don't check it at all in release compilers.
2333 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2335         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2336         together with SSE_TARGET_MATH to disable insn pattern.
2337         (*fop_<MODEF:mode>_2_i387): Ditto.
2338         (*fop_<MODEF:mode>_3_i387): Ditto.
2340 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
2342         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2343         
2344 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2346         PR middle-end/34906
2347         * gimplify.c (gimplify_asm_expr): Check the return code of
2348         parse_output_constraint call, set function return and is_inout
2349         value if it failed.
2351 2008-06-22  Ian Lance Taylor  <iant@google.com>
2353         * c-lex.c (narrowest_unsigned_type): Change itk to int.
2354         (narrowest_signed_type): Likewise.
2355         * c-typeck.c (c_common_type): Change local variable mclass to enum
2356         mode_class, twice.
2357         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2358         tcc_comparison, not the tree code itself.
2359         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2360         (c_expand_expr): Cast modifier to enum expand_modifier.
2361         * c-common.h (C_RID_CODE): Add casts.
2362         (C_SET_RID_CODE): Define.
2363         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2364         (c_lex_one_token): Add cast to avoid warning.
2365         (c_parser_objc_type_name): Rename local typename to type_name.
2366         (check_no_duplicate_clause): Change code parameter to enum
2367         omp_clause_code.
2368         (c_parser_omp_var_list_parens): Change kind parameter to enum
2369         omp_clause_code.
2370         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2371         c_parser_omp_list_var_parens.
2372         (c_parser_omp_threadprivate): Likewise.
2373         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2374         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2375         * c-format.c (NO_FMT): Define.
2376         (printf_length_specs): Use NO_FMT.
2377         (asm_fprintf_length_specs): Likewise.
2378         (gcc_diag_length_specs): Likewise.
2379         (scanf_length_specs): Likewise.
2380         (strfmon_length_specs): Likewise.
2381         (gcc_gfc_length_specs): Likewise.
2382         (printf_flag_specs): Change 0 to STD_C89.
2383         (asm_fprintf_flag_specs): Likewise.
2384         (gcc_diag_flag_specs): Likewise.
2385         (gcc_cxxdiag_flag_specs): Likewise.
2386         (scanf_flag_specs): Likewise.
2387         (strftime_flag_specs): Likewise.
2388         (strfmon_flag_specs): Likewise.
2389         (print_char_table): Likewise.
2390         (asm_fprintf_char_table): Likewise.
2391         (gcc_diag_char_table): Likewise.
2392         (gcc_tdiag_char_table): Likewise.
2393         (gcc_cdiag_char_table): Likewise.
2394         (gcc_cxxdiag_char_table): Likewise.
2395         (gcc_gfc_char_table): Likewise.
2396         (scan_char_table): Likewise.
2397         (time_char_table): Likewis.
2398         (monetary_char_table): Likewise.
2399         * c-format.h (BADLEN): Likewise.
2401 2008-06-21  Ian Lance Taylor  <iant@google.com>
2403         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2404         Define END_OF_BASE_TREE_CODES around inclusion.
2405         * tree.c (tree_code_type): New global array.
2406         (tree_code_length, tree_code_name): Likewise.
2407         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2408         $(lang_tree_files).
2409         (all-tree.def, s-alltree): New targets.
2410         (gencheck.h, s-gencheck): Remove.
2411         (tree.o): Depend upon all-tree.def.
2412         (build/gencheck.o): Remove gencheck.h dependency.
2413         (mostlyclean): Don't remove gencheck.h.
2414         * c-common.h (enum c_tree_code): Remove.
2415         * c-lang.c (tree_code_type): Remove.
2416         (tree_code_length, tree_code_name): Remove.
2417         * gencheck.c (tree_codes): Include all-tree.def, rather than
2418         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
2419         after it is used.
2420         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2421         than tree.def.
2422         * cp/cp-tree.h (enum cplus_tree_code): Remove.
2423         (operator_name_info): Size to MAX_TREE_CODES.
2424         (assignment_operator_name_info): Likewise.
2425         * cp/cp-lang.c (tree_code_type): Remove.
2426         (tree_code_length, tree_code_name): Remove.
2427         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2428         (assignment_operator_name_info): Likewise.
2429         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2430         MAX_TREE_CODES.
2431         * cp/mangle.c (write_expression): Likewise.
2432         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2433         * fortran/f95-lang.c (tree_code_type): Remove.
2434         (tree_code_length, tree_code_name): Remove.
2435         * java/java-tree.h (enum java_tree_code): Remove.
2436         * java/lang.c (tree_code_type): Remove.
2437         (tree_code_length, tree_code_name): Remove.
2438         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2439         * objc/objc-act.h (enum objc_tree_code): Remove.
2440         * objc/objc-lang.c (tree_code_type): Remove.
2441         (tree_code_length, tree_code_name): Remove.
2442         * objcp/objcp-lang.c (tree_code_type): Remove.
2443         (tree_code_length, tree_code_name): Remove.
2444         * ada/ada-tree.h (enum gnat_tree_code): Remove.
2445         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2446         * ada/misc.c (tree_code_type): Remove.
2447         (tree_code_length, tree_code_name): Remove.
2449 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2451         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2452         the grand_bitmap_obstack.
2454 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2456         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2457         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2458         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2459         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2460         move_stmt_r, new_label_mapper): Likewise.
2461         * tree-complex.c (cvc_lookup): Likewise.
2462         * tree-dfa.c (create_function_ann): Likewise.
2463         * tree-dump.c (dump_register): Likewise.
2464         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2465         find_phi_replacement_condition): Likewise.
2466         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2467         tree_function_versioning): Likewise.
2468         * tree-into-ssa.c (cmp_dfsnum): Likewise.
2469         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2470         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2471         get_nonlocal_debug_decl, convert_nonlocal_reference,
2472         convert_nonlocal_omp_clauses, get_local_debug_decl,
2473         convert_local_reference, convert_local_omp_clauses,
2474         convert_nl_goto_reference, convert_nl_goto_receiver,
2475         convert_tramp_reference, convert_call_expr): Likewise.
2476         * tree-outof-ssa.c (contains_tree_r): Likewise.
2477         * tree-parloops.c (reduction_phi, initialize_reductions,
2478         eliminate_local_variables_1, add_field_for_reduction,
2479         add_field_for_name, create_phi_for_local_result,
2480         create_call_for_reduction_1, create_loads_for_reductions,
2481         create_stores_for_reduction, create_loads_and_stores_for_name):
2482         Likewise.
2483         * tree-phinodes.c (allocate_phi_node): Likewise.
2484         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2485         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2486         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2487         * tree-ssa-coalesce.c (compare_pairs): Likewise.
2488         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2489         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2490         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2491         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
2492         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2493         vn_nary_op_insert): Likewise.
2494         * tree-ssa.c (redirect_edge_var_map_add,
2495         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2496         * tree-vectorizer.c (vectorize_loops): Likewise.
2497         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2498         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2499         tree_cons_stat, build1_stat, build_variant_type_copy,
2500         decl_init_priority_lookup, decl_fini_priority_lookup,
2501         decl_priority_info, decl_restrict_base_lookup,
2502         decl_restrict_base_insert, decl_debug_expr_lookup,
2503         decl_debug_expr_insert, decl_value_expr_lookup,
2504         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2505         type_hash_add, get_file_function_name, tree_check_failed,
2506         tree_not_check_failed, tree_range_check_failed,
2507         omp_clause_range_check_failed, build_omp_clause,
2508         build_vl_exp_stat): Likewise.
2509         * value-prof.c (gimple_histogram_value,
2510         gimple_duplicate_stmt_histograms): Likewise.
2511         * var-tracking.c (attrs_list_insert, attrs_list_copy,
2512         unshare_variable, variable_union_info_cmp_pos, variable_union,
2513         dataflow_set_different_1, dataflow_set_different_2,
2514         vt_find_locations, variable_was_changed, set_variable_part,
2515         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2516         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2517         section_entry_hash, object_block_entry_eq,
2518         object_block_entry_hash, create_block_symbol,
2519         initialize_cold_section_name, default_function_rodata_section,
2520         strip_reg_name, set_user_assembler_name, const_desc_eq,
2521         build_constant_desc, output_constant_def, lookup_constant_def,
2522         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2523         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2524         default_internal_label): Likewise.
2525         * varray.c (varray_init, varray_grow): Likewise.
2526         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2528 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2530         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2531         operators for "test" insn.  Macroize insn using SWI mode macro.
2532         (*jcc_fused_2): Ditto.
2533         (*jcc_fused_3): Macroize insn using SWI mode macro.
2534         (*jcc_fused_4): Ditto.
2536 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
2538         * tree-ssa-pre.c: Fix typo in comment.
2539         (init_antic, fini_antic): Add explicit funtions for
2540         initializing and deinitializing ANTIC and AVAIL sets.
2541         (create_expression_by_pieces): Fix typo in comment.
2542         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2543         (execute_pre): Eventually dump details about ANTIC_IN.
2545 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2547         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2548         * gcc.c (translate_options, init_spec, store_arg, read_specs,
2549         add_to_obstack, file_at_path, find_a_file, execute,
2550         add_preprocessor_option, add_assembler_option, add_linker_option,
2551         process_command, insert_wrapper, do_option_spec, do_self_spec,
2552         spec_path, do_spec_1, is_directory, main, used_arg,
2553         getenv_spec_function): Likewise.
2554         * tlink.c (symbol_hash_lookup, file_hash_lookup,
2555         demangled_hash_lookup, symbol_push, file_push, frob_extension):
2556         Likewise.
2558 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2560         * doc/rtl.texi: Updated subreg section.
2562 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2564         PR c++/36523
2565         * cgraphunit.c (cgraph_process_new_functions): Don't clear
2566         node->needed and node->reachable.
2567         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2568         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2569         (expand_task_call): Don't call expand_task_copyfn.
2570         (expand_task_copyfn): Renamed to...
2571         (finalize_task_copyfn): ... this.
2573 2008-06-19  Jan Hubicka  <jh@suse.cz>
2575         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2576         clobbering framepointer.
2578 2008-06-19  Jan Hubicka  <jh@suse.cz>
2580         * tree-optimize.c (execute_early_local_optimizations): Set
2581         cgraph_state only at first invocation.
2583 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2585         * system.h (-Wc++-compat): Activate as a warning, no an error.
2587 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2589         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2590         instead of "#" in insn asm template.
2591         (*jcc_fused_2): Ditto.
2593 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2595         * config/i386/i386.h (ix86_tune_indices)
2596         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2597         (TARGET_FUSE_CMP_AND_BRANCH): New define.
2598         * config/i386/i386.md (*jcc_fused_1): New insn pattern
2599         (*jcc_fused_2): Ditto.
2600         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2601         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2602         (print operand): Handle 'E' and 'e' code.
2604 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
2606         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2607         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2608         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2610 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
2612         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2613         node->decl.
2614         (cgraph_expand_function): Use local copy of decl.
2615         (cgraph_expand_all_functions): Remove redundant initialization of
2616         order_pos.
2617         (cgraph_optimize): Reword internal_error message.
2619 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
2621         * arm-protos.h (arm_return_in_memory): Remove public
2622         arm_return_in_memory() prototype.
2623         * arm.c (arm_return_in_memory): Add static prototype, add target
2624         hook macro, change definition and comments.
2625         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2627 2008-06-19  Ben Elliston  <bje@au.ibm.com>
2629         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2630         real.c: Remove references to IEEE 754R.
2631         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2632         * doc/libgcc.texi (Decimal float library routines): Likewise.
2634 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2636         * targhooks.h (struct gcc_target): New member unwind_word_mode.
2637         (default_unwind_word_mode): Add prototype.
2638         * targhooks.c (default_unwind_word_mode): New function.
2639         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2640         instead of word_mode.
2641         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2642         (TARGET_INITIALIZER): Use it.
2644         * c-common.c (handle_mode_attribute): Support "unwind_word"
2645         mode attribute.
2646         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2648         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2649         word_mode to access SjLj_Function_Context member "data".
2650         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
2651         conversion from targetm.eh_return_filter_mode () to
2652         targetm.unwind_word_mode () if they differ.
2654         * builtin-types.def (BT_UNWINDWORD): New primitive type.
2655         (BT_FN_UNWINDWORD_PTR): New function type.
2656         (BT_FN_WORD_PTR): Remove.
2657         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2658         * except.c (expand_builtin_extend_pointer): Convert pointer to
2659         targetm.unwind_word_mode () instead of word_mode.
2661         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2662         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2663         (spu_unwind_word_mode): New function.
2664         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2665         (TARGET_UNWIND_WORD_MODE): Define.
2666         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2668 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2670         * config/spu/spu.c (reg_align): Remove.
2671         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2672         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2673         (spu_split_store): Likewise.
2675 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
2677         * gcc/tree-vn.c: Fix typo in comment.
2679 2008-06-18  Jan Hubicka  <jh@suse.cz>
2681         * cgraphunit.c (cgraph_optimize): Output debug info when doing
2682         toplevel reorder too.
2684 2008-06-18  Jan Hubicka  <jh@suse.cz>
2686         * c-opts.c (c_common_post_options): PCH is not compatible with
2687         no-unit-at-a-time.
2688         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2689         -fno-toplevel-reorder by default now.
2691 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2693         PR documentation/30739
2694         * doc/install.texi (Prerequisites): Document dependency on awk.
2696 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
2697             Ian Lance Taylor  <iant@google.com>
2699         PR rtl-optimization/35604
2700         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2701         only want to change jump destinations, not eventual label comparisons.
2703 2008-06-16  Jan Hubicka  <jh@suse.cz>
2705         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2706         syntax errors.
2707         (cgraph_analyze_function): Likewise.
2709 2008-06-16  Jan Hubicka  <jh@suse.cz>
2711         * cgraph.h (cgraph_mark_if_needed): New function.
2712         * cgraphunit.c (cgraph_mark_if_needed): New function.
2713         * c-decl.c (duplicate_decl): Use it.
2715 2008-06-16  Jan Hubicka  <jh@suse.cz>
2717         * cgraph.c (cgraph_add_new_function): When in expansion state, do
2718         lowering.
2720 2008-06-16  Jan Hubicka  <jh@suse.cz>
2722         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2724 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
2725             Kazu Hirata  <kazu@codesourcery.com>
2726             Maxim Kuvyrkov  <maxim@codesourcery.com
2728         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2729         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2730         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2731         EXTRA_SPEC_FUNCTIONS.
2732         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2733         (DRIVER_SELF_SPECS): Adjust.
2734         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2735         * config/mips/st.h, config/mips/t-st: New.
2736         * config/mips/driver-native.c, config/mips/x-native: New.
2737         * doc/invoke.texi (MIPS): Document 'native' value for -march and
2738         -mtune options.
2740 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2742         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2743         from it.
2744         (ISA_HAS_FP_CONDMOVE): New macro.
2745         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2746         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2747         (ISA_HAS_NMADD3_NMSUB3): New macro.
2748         * config/mips/mips.c (mips_rtx_costs): Update.
2749         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2750         compiling for ST Loongson 2E/2F.
2751         (madd<mode>): Rename to madd4<mode>.  Update.
2752         (madd3<mode>): New pattern.
2753         (msub<mode>): Rename to msub4<mode>.  Update.
2754         (msub3<mode>): New pattern.
2755         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
2756         (nmadd3<mode>): New pattern.
2757         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
2758         (nmadd3<mode>_fastmath): New pattern.
2759         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
2760         (nmsub3<mode>): New pattern.
2761         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
2762         (nmsub3<mode>_fastmath): New pattern.
2763         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2765 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2767         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2768         (DF_REF_INSN_INFO): New.
2769         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2770         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2771         with a NULL DF_REF_INSN_INFO.
2772         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2773         DF_INSN_SET.
2774         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2775         DF_INSN_INFO_EQ_USES): New.
2776         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2777         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2778         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2779         * df-core.c: Update comment for above changes.
2780         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2781         DF_INSN_UID_* macros.
2782         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2783         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2784         insn rtx.  Update all callers.
2785         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2786         df_ref_create_structure, df_insn_refs_collect): Likewise.
2787         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2788         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2789         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2790         macros to access the insn refs.
2791         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2792         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2793         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2794         for accessing the refs.
2795         (try_fwprop_subst): Likewise.
2796         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2797         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2798         for accessing the refs.
2799         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2800         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2801         to look at the insn refs.
2802         (record_uses): Likewise.
2803         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2804         function anymore.
2805         (mark_artificial_uses): Don't mark_insn for artificial refs.
2806         (mark_reg_rependencies): Likewise.
2808         * doc/rtl.texi: Remove documentation of ADDRESSOF.
2810 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2812         * configure: Regenerate.
2814 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2816         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2817         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2818         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2820 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2822         * config/avr/avr.c (avr_mcu_t): Add attiny167.
2823         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2824         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2826 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2828         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2829         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2830         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2832 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2834         * tree-ssa-sccvn.c: Fix format of comments.
2836 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2838         * cgraph.c: Remove unneeded forward declarations of eq_node()
2839         and hash_node().
2841 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2843         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2844         REG_RETVAL notes.
2845         (see_update_relevancy): Likewise.
2846         * fwprop.c (try_fwprop_subst): Likewise.
2847         * rtlanal.c (noop_move_p): Likewise.
2848         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2849         notes to non-existing libcall blocks.
2850         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
2851         Remove orig_set.
2852         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2853         (dead_libcall_p): Remove.
2854         (delete_trivially_dead_insns): Don't use it.
2855         * web.c (union_defs): Remove comment about keeping nops.
2856         * gcse.c (hash_scan_insn): Don't take libcall pointers.
2857         (compute_hash_table_work): Don't track libcall notes.
2858         (do_local_cprop): Don't take libcall pointers.  Don't update
2859         libcall notes.
2860         (adjust_libcall_notes): Deleted.
2861         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2862         ever have existed in the first place).
2863         (replace_store_insn): Don't try to remove libcall notes.
2864         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2865         (resolve_reg_notes): Don't call them.
2866         (resolve_simple_move): Likewise.
2867         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2868         Don't remove REG_RETVAL notes.
2869         * emit-rtl.c (try_split): Don't update libcall notes.
2870         (emit_copy_of_insn_after): Dito.
2871         * cselib.c (cselib_current_insn_in_libcall): Remove.
2872         (cselib_process_insn): Don't set/clear it.
2873         (new_elt_loc_list): Don't record it.
2874         (cselib_init): Don't initialize it.
2875         * cselib.c (struct elt_loc_list): Remove in_libcall field.
2876         * loop-invariant.c (find_invariant_insn): Don't look for libcall
2877         notes.
2878         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2879         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2880         (init_deps): Don't initialize it.
2881         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2882         * combine.c (delete_noop_moves): Don't update libcall notes.
2883         (can_combine_p): Remove now pointless #if 0 block.
2884         (try_combine): Remove another obsolete #if 0 block.
2885         (distribute_notes): Don't distribute libcall notes.
2886         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2887         * dce.c (libcall_dead_p): Remove.
2888         (delete_unmarked_insns): Don't handle libcall blocks.
2889         (preserve_libcall_for_dce): Remove.
2890         (prescan_insns_for_dce): Don't special-case libcall block insns.
2891         * reload1 (reload): Don't handle libcall notes. 
2892         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2893         documentation.
2895 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2897         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2898         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2899         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2901 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2903         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2904         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2905         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2907 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2909         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
2911 2008-06-16  Ira Rosen  <irar@il.ibm.com>
2913         PR tree-optimization/36493
2914         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
2915         the arguments list. Use VECTYPE to create vector pointer.
2916         (vectorizable_store): Fail if accesses through a pointer to vectype
2917         do not alias the original memory reference operands.
2918         Call vect_create_data_ref_ptr without the removed argument.
2919         (vectorizable_load): Likewise.
2920         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
2921         removed argument.
2923 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
2925         PR target/36336
2926         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
2927         reg_equiv_constant.
2929 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2931         * config/mips/loongson2ef.md: New file.
2932         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2933         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2934         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2935         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
2936         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
2937         and loongson_2f.
2938         (loongson2ef.md): New include.
2939         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
2940         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
2941         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
2942         (loongson_gt_<mode>, loongson_extract_halfword)
2943         (loongson_insert_halfword_0, loongson_insert_halfword_2)
2944         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
2945         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
2946         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
2947         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
2948         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
2949         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
2950         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
2951         (vec_interleave_low<mode>): Define type attribute.
2952         * config/mips/mips.c (mips_ls2): New static variable.
2953         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
2954         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
2955         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
2956         Implement target scheduling hooks.
2957         (mips_multipass_dfa_lookahead): Update to handle tuning for
2958         Loongson 2E/2F.
2959         (mips_sched_init): Initialize data for Loongson scheduling.
2960         (mips_ls2_variable_issue): New static function.
2961         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
2962         Add sanity check.
2963         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
2964         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
2965         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
2966         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
2967         Handle ST Loongson 2E/2F cores.
2968         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
2970 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2972         * omp-low.c (extract_omp_for_data): Fix comment typo.
2973         * c.opt: Fix typo.
2975 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2977         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
2978         FIXME note about gcc/config.guess.
2979         * doc/options.texi (Option file format): Remove non-ASCII bytes.
2980         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
2981         * doc/cppopts.texi: Likewise.
2982         * doc/extend.texi: Likewise.
2983         * doc/gcc.texi: Likewise.
2984         * doc/gccint.texi: Likewise.
2985         * doc/gcov.texi: Likewise.
2986         * doc/gty.texi: Likewise.
2987         * doc/hostconfig.texi: Likewise.
2988         * doc/install.texi: Likewise.
2989         * doc/invoke.texi: Likewise.
2990         * doc/loop.texi: Likewise.
2991         * doc/makefile.texi: Likewise.
2992         * doc/md.texi: Likewise.
2993         * doc/passes.texi: Likewise.
2994         * doc/tm.texi: Likewise.
2995         * doc/tree-ssa.texi: Likewise.
2996         * doc/trouble.texi: Likewise.
2998 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
2999             Nathan Sidwell  <nathan@codesourcery.com>
3000             Maxim Kuvyrkov  <maxim@codesourcery.com>
3001             Richard Sandiford  <rdsandiford@googlemail.com>
3002         
3003         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3004         * config/mips/mips-protos.h (mips_expand_vector_init): New.
3005         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3006         builtins.
3007         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3008         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3009         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3010         V8QImode cases.
3011         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3012         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3013         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3014         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3015         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3016         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3017         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3018         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3019         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3020         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3021         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3022         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3023         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3024         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3025         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3026         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3027         (mips_builtins): Add Loongson builtins.
3028         (mips_loongson_2ef_bdesc): New.
3029         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3030         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3031         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3032         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3033         New.
3034         (mips_expand_vector_init): New.
3035         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3036         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3037         if appropriate.
3038         * config/mips/mips.md: Add unspec numbers for Loongson
3039         builtins.  Include loongson.md.
3040         (MOVE64): Include Loongson vector modes.
3041         (SPLITF): Include Loongson vector modes.
3042         (HALFMODE): Handle Loongson vector modes.
3043         * config/mips/loongson.md: New.
3044         * config/mips/loongson.h: New.
3045         * config.gcc: Add loongson.h header for mips*-*-* targets.
3046         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3048 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
3050         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
3051         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
3052         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
3053         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
3054         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
3055         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
3056         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
3057         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
3058         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
3059         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
3060         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
3061         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
3062         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
3063         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
3064         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
3065         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
3066         Remove use_fixproto=yes.
3067         (ia64*-*-hpux*): Remove comment about using fixproto.
3068         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
3070 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3072         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
3073         library rebuilds.
3074         * configure: Regenerate.
3076 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3078         PR middle-end/36520
3079         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
3080         before evaluating it.
3082 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
3084         PR c/36507
3085         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3086         nested inline functions.
3087         (start_decl, start_function): Don't invert DECL_EXTERNAL
3088         for nested inline functions.
3090 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3092         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3093         splits that must be made for correctness.
3095 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3097         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3098         (AVAIL_NON_MIPS16): Likewise.
3099         (mips_builtin_description): Replace target_flags with a predicate.
3100         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3101         (dspr2_32): New availability predicates.
3102         (MIPS_BUILTIN): New macro.
3103         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3104         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3105         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3106         Replace the TARGET_FLAGS parameters with AVAIL parameters.
3107         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3108         (mips_dsp_32only_bdesc): Merge into...
3109         (mips_builtins): ...this new array.
3110         (mips_bdesc_map, mips_bdesc_arrays): Delete.
3111         (mips_init_builtins): Update after above changes.
3112         (mips_expand_builtin_1): Merge into...
3113         (mips_expand_builtin): ...here and update after above changes.
3115 2008-06-12  Paul Brook  <paul@codesourcery.com>
3117         * longlong.h (__arm__): Define count_leading_zeros.
3118         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3119         (clzsi2, clzdi2): New functions.
3120         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3121         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3122         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3123         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3124         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3125         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3126         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3127         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3128         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3129         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3131 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
3133         * config/m68k/m68k.c (m68k_tune_flags): New.
3134         (override_options): Compute m68k_tune_flags.
3135         (MULL_COST, MULW_COST): Update for various variants of CFV2.
3136         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3138 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3140         PR middle-end/36506
3141         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3143 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3145         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3146         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3148 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3150         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3151         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3153 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3155         PR middle-end/36506
3156         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3157         reductions.
3159 2008-06-12  Richard Guenther  <rguenther@suse.de>
3161         PR tree-optimization/36345
3162         * tree-flow.h (struct ptr_info_def): Align escape_mask,
3163         add memory_tag_needed flag.
3164         (may_alias_p): Declare.
3165         * tree-ssa-alias.c (may_alias_p): Export.
3166         (set_initial_properties): Use memory_tag_needed flag.
3167         (update_reference_counts): Likewise.
3168         (reset_alias_info): Reset memory_tag_needed flag.
3169         (create_name_tags): Check memory_tag_needed flag.
3170         (dump_points_to_info_for): Dump it.
3171         * tree-ssa-structalias.c (struct variable_info): Remove
3172         directly_dereferenced flag.
3173         (new_var_info): Do not initialize it.
3174         (process_constraint_1): Do not set it.
3175         (update_alias_info): Set is_dereferenced flag.
3176         (set_uids_in_ptset): Use may_alias_p.
3177         (set_used_smts): Check memory_tag_needed flag.
3178         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
3179         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3180         memory_tag_needed flag.
3181         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3182         from broken design.
3184 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
3186         * config/i386/i386.c (ix86_compute_frame_layout): Disable
3187         red zone for w64 abi.
3188         (ix86_expand_prologue): Likewise.
3189         (ix86_force_to_memory): Likewise.
3190         (ix86_free_from_memory): Likewise.
3192 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
3194         PR target/36425
3195         * config/rs6000/rs6000.c (rs6000_override_options): Set
3196         rs6000_isel conditionally to the absence of comand line override.
3197         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3198         Remove duplicate rs6000_isel setting.
3199         * config/rs6000/eabispe.h: Ditto.
3201 2008-06-11  Richard Guenther  <rguenther@suse.de>
3203         * alias.c (get_alias_set): Use the element alias-set for arrays.
3204         (record_component_aliases): For arrays and vectors do nothing.
3205         * c-common.c (strict_aliasing_warning): Handle the cases
3206         of alias set zero explicitly.
3207         * Makefile.in (dfp.o-warn): Add -Wno-error.
3209 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3211         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3212         tune_32 tune_64.
3213         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3214         tune_32 tune_64 to supported_defaults.  Allow values not
3215         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3216         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
3217         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3218         with_cpu_64 to generic for 64-bit-supporting configurations, not
3219         with_cpu.  Remove FIXMEs.
3220         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3221         --with-arch-64, --with-tune-32, --with-tune-64): Document.
3222         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3223         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3224         arch_32 and arch_64.
3226 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3227             Olivier Hainque  <hainque@adacore.com>
3229         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3230         Use DECL_SIZE_UNIT to retrieve the size of the field.
3232 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3234         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3235         with function calls after declarations.  Lay out
3236         neon_float_type_node before further use.
3238 2008-06-11  Richard Guenther  <rguenther@suse.de>
3240         * tree-flow.h (may_point_to_global_var): Declare.
3241         * tree-ssa-alias.c (may_point_to_global_var): New function.
3242         * tree-ssa-sink.c (is_hidden_global_store): Use it.
3244 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
3246         * configure.ac: Teach that fido supports .debug_line.
3247         * configure: Regenerate.
3249 2008-06-10  Tom Tromey  <tromey@redhat.com>
3251         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3252         debug hook.
3254 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3256         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3257         (encode_decimal64, decode_decimal64, encode_decimal128,
3258         decode_decimal128): Reverse order of 32-bit parts of value if host
3259         and target endianness differ.
3261 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
3263         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3264         Avoid division by 0.
3265         (tree_mod_pow2_value_transform): Likewise.
3266         (tree_ic_transform): Likewise.
3267         (tree_stringops_transform): Likewise.
3268         (tree_mod_subtract_transform): Likewise.
3269         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3270         (copy_edges_for_bb): Likewise.
3271         (initialize_cfun): Likewise.
3273 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3275         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3276         nonmemory_operand. Add "N" operand constraint.
3277         (*btsi): Ditto.
3278         (*jcc_btdi_mask_rex64): New instruction and split pattern.
3279         (*jcc_btsi_mask): Ditto.
3280         (*jcc_btsi_mask_1): Ditto.
3282 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3284         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3285         TYPE_CANONICAL for copied element type.
3287 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3289         PR target/36473
3290         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3291         Add m_CORE2 and m_GENERIC.
3292         * config/i386/predicates.md (bt_comparison_operator): New predicate.
3293         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3294         (*btsi): Ditto.
3295         (*jcc_btdi_rex64): New instruction and split pattern.
3296         (*jcc_btsi): Ditto.
3297         (*jcc_btsi_1): Ditto.
3298         (*btsq): Fix Intel asm dialect operand order.
3299         (*btrq): Ditto.
3300         (*btcq): Ditto.
3302 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3304         PR middle-end/36447
3305         * simplify-rtx.c (simplify_subreg): Add check for shift count 
3306         greater than size.
3308 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
3310         * doc/md.texi: Synchronize with later constraints.md change.
3311         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3312         with a C implementation.
3313         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3314         MFLO handling.
3315         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3316         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3317         when moving to and from MD_REGNUM.
3318         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3319         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3320         Handle byte and halfword moves.
3321         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3322         separately.
3323         * config/mips/constraints.md (h): Turn into NO_REGS.
3324         (l, x): Update documentation.
3325         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3326         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3327         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3328         (HILO): New mode iterator.
3329         (MOVE128): Add TI.
3330         (any_div): New code iterator.
3331         (u): Extend code attribute to div and udiv.
3332         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3333         d_operand in the splitters.  Remove redundant CONST_INT checks.
3334         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3335         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3336         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
3337         accordingly, using normal moves instead of unspecs to move LO into
3338         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
3339         (<u>mulsidi3): Handle expansion in C code.
3340         (<u>mulsidi3_32bit_internal): Rename to...
3341         (<u>mulsidi3_32bit): ...this.
3342         (<u>mulsidi3_32bit_r4000): Fix insn separator.
3343         (*<u>mulsidi3_64bit): Rename to...
3344         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
3345         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
3346         to set LO and HI to the multiplication result.  Use a normal move
3347         for MFLO and an unspec for MFHI.
3348         (*<u>mulsidi3_64bit_parts): Replace with...
3349         (<u>mulsidi3_64bit_hilo): ...this new instruction.
3350         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3351         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3352         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
3353         instead of HI.  Split the instruction into a separate multiplication
3354         and MFHI if !TARGET_FIX_R4000.
3355         (<su>muldi3_highpart): Likewise.
3356         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3357         and the "=h" clobber.
3358         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3359         (<u>mulditi3): New expander.
3360         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3361         (madsi): Remove "=h" clobber.
3362         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3363         Force the modulus result to be a GPR and split the instruction into
3364         a division followed by an MFHI after reload.
3365         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3366         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
3367         the MIPS16 HIGH define_split.
3368         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3369         of acc<->gpr moves to "multi".
3370         (*movdi_64bit): Replace the single "x" alternative with
3371         alternatives for moving into and out of "a".
3372         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
3373         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3374         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3375         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
3376         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
3377         (movti): New expander.
3378         (*movti, *movti_mips16): New insns.
3379         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3380         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3381         (mthi<GPR:mode>_<HILO:mode>): Likewise.
3382         * config/mips/predicates.md (fpr_operand): Delete.
3383         (d_operand): New predicate.
3385 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
3387         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3388         failure on some Bourne shells.
3389         (x86_64-*-*): Ditto.
3391 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
3393         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3395 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3397         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3398         (sparc-sun-solaris2*): Likewise.
3400 2008-06-09  Arnaud Charlet  <charlet@adacore.com
3402         * doc/install.texi: Update requirements to build the Ada compiler.
3404 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3406         * df-scan.c (struct df_scan_problem_data): Remove the
3407         mw_link_pool alloc pool.
3408         (df_scan_free_internal): Don't free it.
3409         (df_scan_alloc): Don't allocate it.
3410         * df.h (struct df_link): Update comment.
3412 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3414         * except.h: Correct checks for when SJLJ exceptions must be used.
3416 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3418         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3419         default.
3420         
3421 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
3423         PR tree-optimization/36218
3424         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3425         configure for the build system.
3426         (BUILD_LDFLAGS): Define.
3427         * configure: Regenerate.
3428         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3430 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
3432         PR target/36424
3433         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3434         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
3435         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
3437 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
3439         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3441 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3443         * config.gcc (Obsolete configurations): Remove list of
3444         configurations.
3445         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3446         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
3447         targets matched by those patterns.
3448         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3449         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3450         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3451         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3452         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3453         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3454         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3455         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3456         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3457         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3458         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3459         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3460         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3461         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3462         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3463         Make code for Solaris 7 and greater unconditional for Solaris.
3464         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3465         Remove --with-* handling.
3466         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3467         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3468         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3469         LINK_OS_WINDISS_SPEC): Remove.
3470         * config/rs6000/sysv4.opt (mwindiss): Remove.
3471         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3472         * configure: Regenerate.
3473         * doc/cpp.texi: Don't mention BeOS.
3474         * doc/extend.texi (interrupt): Don't mention MS1.
3475         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3476         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3477         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3478         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3479         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3480         Remove.
3481         * doc/invoke.texi (MT Options): Remove.
3482         (-mwindiss): Remove.
3483         (CRIS Options): Remove cris-axis-aout references.
3484         (HPPA Options): Don't mention hppa1.1-*-pro.
3485         * doc/md.texi: (MorphoTech family): Remove.
3486         * libgcc2.c: Don't handle UWIN.
3487         * config/alpha/t-unicosmk: Remove.
3488         * config/alpha/unicosmk.h: Remove.
3489         * config/arm/kaos-arm.h: Remove.
3490         * config/arm/kaos-strongarm.h: Remove.
3491         * config/arm/strongarm-coff.h: Remove.
3492         * config/arm/strongarm-elf.h: Remove.
3493         * config/arm/strongarm-pe.h: Remove.
3494         * config/arm/t-strongarm-pe: Remove.
3495         * config/arm/t-xscale-coff: Remove.
3496         * config/arm/t-xscale-elf: Remove.
3497         * config/arm/xscale-coff.h: Remove.
3498         * config/arm/xscale-elf.h: Remove.
3499         * config/chorus.h: Remove.
3500         * config/cris/aout.h: Remove.
3501         * config/cris/aout.opt: Remove.
3502         * config/cris/t-aout: Remove.
3503         * config/i386/beos-elf.h: Remove.
3504         * config/i386/kaos-i386.h: Remove.
3505         * config/i386/ptx4-i.h: Remove.
3506         * config/i386/sco5.h: Remove.
3507         * config/i386/sco5.opt: Remove.
3508         * config/i386/sysv4-cpp.h: Remove.
3509         * config/i386/sysv5.h: Remove.
3510         * config/i386/t-beos: Remove.
3511         * config/i386/t-sco5: Remove.
3512         * config/i386/t-uwin: Remove.
3513         * config/i386/uwin.asm: Remove.
3514         * config/i386/uwin.h: Remove.
3515         * config/kaos.h: Remove.
3516         * config/mips/windiss.h: Remove.
3517         * config/mt: Remove directory.
3518         * config/pa/pa-osf.h: Remove.
3519         * config/pa/pa-pro-end.h: Remove.
3520         * config/pa/t-pro: Remove.
3521         * config/ptx4.h: Remove.
3522         * config/rs6000/beos.h: Remove.
3523         * config/rs6000/kaos-ppc.h: Remove.
3524         * config/rs6000/t-beos: Remove.
3525         * config/rs6000/windiss.h: Remove.
3526         * config/sh/kaos-sh.h: Remove.
3527         * config/sol2-6.h: Remove.
3528         * config/sparc/sol26-sld.h: Remove.
3529         * config/sparc/sysv4-only.h: Remove.
3530         * config/vax/bsd.h: Remove.
3531         * config/vax/t-memfuncs: Remove.
3532         * config/vax/ultrix.h: Remove.
3533         * config/vax/vaxv.h: Remove.
3534         * config/windiss.h: Remove.
3536 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
3538         PR rtl-optimization/36438
3539         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3540         for vector shifts with constant scalar shift operands.
3542 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
3544         * doc/invoke.texi: Document -march=xlr.
3545         * config/mips/xlr.md: New file.
3546         * config/mips/mips.md: Include it.
3547         (cpu): Add "xlr".
3548         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3549         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3550         (mips_rtx_cost_data): Likewise.
3552 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
3554         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3555         PRE_INC and PRE_DEC cases.
3557 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3559         PR rtl-optimization/36419
3560         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3561         the emitting jump insn.
3563         PR target/36362
3564         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3565         is not bool, boolify the whole *expr_p and convert to the desired type.
3567 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3569         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3570         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3571         Add omp_private_outer_ref hook, add another argument to
3572         omp_clause_default_ctor hook.
3573         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3574         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3575         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3576         hook_tree_tree_tree_tree_null.
3577         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3578         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3579         * hooks.c (hook_tree_tree_tree_tree_null): New function.
3580         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3581         * tree.def (OMP_TASK): New tree code.
3582         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3583         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3584         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3585         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3586         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3587         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3588         OMP_CLAUSE_COLLAPSE_EXPR): Define.
3589         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3590         (OMP_DIRECTIVE_P): Add OMP_TASK.
3591         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3592         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3593         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3594         and OMP_CLAUSE_UNTIED entries.
3595         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
3596         num_ops to 2.
3597         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3598         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3599         * tree-pretty-print.c (dump_omp_clause): Handle
3600         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3601         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3602         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3603         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
3604         warning about unsigned iterators.  Change decl/init/cond/incr
3605         arguments to TREE_VECs, check arguments for all collapsed loops.
3606         (c_finish_omp_taskwait): New function.
3607         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3608         ws_clauses.
3609         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
3610         default_function_array_conversion on init.  Add par_clauses argument.
3611         If decl is present in parallel's lastprivate clause, change it to
3612         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3613         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
3614         collapse count in clauses.
3615         (c_parser_omp_for, c_parser_omp_parallel): Adjust
3616         c_parser_omp_for_loop callers.
3617         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3618         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3619         (c_parser_omp_clause_name): Handle collapse and untied clauses.
3620         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3621         functions.
3622         (c_parser_omp_clause_schedule): Handle schedule(auto).
3623         Include correct location in the error message.
3624         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3625         and PRAGMA_OMP_CLAUSE_UNTIED.
3626         (OMP_TASK_CLAUSE_MASK): Define.
3627         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3628         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3629         * tree-nested.c (convert_nonlocal_omp_clauses,
3630         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3631         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3632         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3633         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3634         OMP_CLAUSE_DECL.
3635         (conver_nonlocal_reference, convert_local_reference,
3636         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
3637         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3638         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3639         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3640         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3641         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3642         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3643         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3644         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3645         OMP_CLAUSE_UNTIED.
3646         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3647         * c-common.h (c_finish_omp_taskwait): New prototype.
3648         * gimple-low.c (lower_stmt): Handle OMP_TASK.
3649         * tree-parloops.c (create_parallel_loop): Create 1 entry
3650         vectors for OMP_FOR_{INIT,COND,INCR}.
3651         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3652         (make_edges): Handle OMP_TASK.
3653         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3654         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3655         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3656         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3657         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3658         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3659         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3660         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3661         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3662         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3663         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3664         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3665         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3666         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3667         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3668         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3669         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3670         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3671         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3672         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3673         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3674         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3675         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3676         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3677         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3678         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3679         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
3680         original iterator is present in lastprivate clause or if
3681         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
3682         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3683         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3684         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3685         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3686         if it is set, lookup var in outer contexts too.  Handle
3687         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
3688         to be implicitly determined firstprivate for task regions.
3689         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3690         if it is set, lookup var in outer contexts too.  Set
3691         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3692         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3693         OMP_CLAUSE_UNTIED.  Take region_type as last argument
3694         instead of in_parallel and in_combined_parallel.
3695         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3696         Adjust callers.
3697         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3698         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
3699         (new_omp_context): Set default_kind to
3700         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3701         (omp_region_type): New enum.
3702         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3703         fields, add region_type.
3704         (new_omp_context): Take region_type as argument instead of is_parallel
3705         and is_combined_parallel.
3706         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3707         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3708         ctx->is_combined_parallel checks.
3709         (gimplify_omp_task): New function.
3710         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3711         OMP_CLAUSE_UNTIED.
3712         * omp-low.c (extract_omp_for_data): Use schedule(static)
3713         for schedule(auto).  Handle pointer and unsigned iterators.
3714         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
3715         Add loops argument.  Extract data for collapsed OMP_FOR loops.
3716         (expand_parallel_call): Assert sched_kind isn't auto,
3717         map runtime schedule to index 3.
3718         (struct omp_for_data_loop): New type.
3719         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3720         Add loop, loops, collapse and iter_type fields.
3721         (workshare_safe_to_combine_p): Disallow combined for if
3722         iter_type is unsigned long long.  Don't combine collapse > 1 loops
3723         unless all bounds and steps are constant.  Adjust extract_omp_for_data
3724         caller.
3725         (expand_omp_for_generic): Handle pointer, unsigned and long long
3726         iterators.  Handle collapsed OMP_FOR loops.  Adjust
3727         for struct omp_for_data changes.  If libgomp function doesn't return
3728         boolean_type_node, add comparison of the return value with 0.
3729         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3730         pointer, unsigned and long long iterators.  Adjust for struct
3731         omp_for_data changes.
3732         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3733         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
3734         unsigned long long.  Allocate loops array, pass it to
3735         extract_omp_for_data.  For collapse > 1 loops use always
3736         expand_omp_for_generic.
3737         (omp_context): Add sfield_map and srecord_type fields.
3738         (is_task_ctx, lookup_sfield): New functions.
3739         (use_pointer_for_field): Use is_task_ctx helper.  Change first
3740         argument's type from const_tree to tree.  Clarify comment.
3741         In OMP_TASK disallow copy-in/out sharing.
3742         (build_sender_ref): Call lookup_sfield instead of lookup_field.
3743         (install_var_field): Add mask argument.  Populate both record_type
3744         and srecord_type if needed.
3745         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3746         in srecord_type.
3747         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3748         and DECL_FIELD_OFFSET.
3749         (scan_sharing_clauses): Adjust install_var_field callers.  For
3750         firstprivate clauses on explicit tasks allocate the var by value in
3751         record_type unconditionally, rather than by reference.
3752         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3753         Use is_taskreg_ctx instead of is_parallel_ctx.
3754         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3755         (create_omp_child_function_name): Add task_copy argument, use
3756         *_omp_cpyfn* names if it is true.
3757         (create_omp_child_function): Add task_copy argument, if true create
3758         *_omp_cpyfn* helper function.
3759         (scan_omp_parallel): Adjust create_omp_child_function callers.
3760         Rename parallel_nesting_level to taskreg_nesting_level.
3761         (scan_omp_task): New function.
3762         (lower_rec_input_clauses): Don't run constructors for firstprivate
3763         explicit task vars which are initialized by *_omp_cpyfn*.  
3764         Pass outer var ref to omp_clause_default_ctor hook if
3765         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3766         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3767         OMP_CLAUSE_REDUCTION_INIT.
3768         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3769         avoid duplicate setting of fields.  Handle
3770         OMP_CLAUSE_PRIVATE_OUTER_REF.
3771         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
3772         copy-out if TREE_READONLY, only copy-in.
3773         (expand_task_copyfn): New function.
3774         (expand_task_call): New function.
3775         (struct omp_taskcopy_context): New type.
3776         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3777         New functions.
3778         (lower_omp_parallel): Rename to...
3779         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3780         Call create_task_copyfn if srecord_type is needed.  Adjust
3781         sender_decl type.
3782         (task_shared_vars): New variable.
3783         (check_omp_nesting_restrictions): Warn if work-sharing,
3784         barrier, master or ordered region is closely nested inside OMP_TASK.
3785         Add warnings for barrier if closely nested inside of work-sharing,
3786         ordered, or master region.
3787         (scan_omp_1): Call check_omp_nesting_restrictions even for
3788         GOMP_barrier calls.  Rename parallel_nesting_level to
3789         taskreg_nesting_level.  Handle OMP_TASK.
3790         (lower_lastprivate_clauses): Even if some lastprivate is found on a
3791         work-sharing construct, continue looking for them on parent parallel
3792         construct.
3793         (lower_omp_for_lastprivate): Add lastprivate clauses
3794         to the beginning of dlist rather than end.  Adjust for struct
3795         omp_for_data changes.
3796         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3797         not after it.  Handle collapsed OMP_FOR loops, adjust for
3798         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3799         (get_ws_args_for): Adjust extract_omp_for_data caller.
3800         (scan_omp_for): Handle collapsed OMP_FOR
3801         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3802         (lower_omp_single_simple): If libgomp function doesn't return
3803         boolean_type_node, add comparison of the return value with 0.
3804         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3805         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
3806         (parallel_nesting_level): Rename to...
3807         (taskreg_nesting_level): ... this.
3808         (is_taskreg_ctx): New function.
3809         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3810         of is_parallel_ctx.
3811         (execute_lower_omp): Rename parallel_nesting_level to
3812         taskreg_nesting_level.
3813         (expand_omp_parallel): Rename to...
3814         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3815         Call omp_task_call for OMP_TASK regions.
3816         (expand_omp): Adjust caller, handle OMP_TASK.
3817         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3819         * bitmap.c (bitmap_default_obstack_depth): New variable.
3820         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3821         if argument is NULL and bitmap_default_obstack is already initialized.
3822         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3823         at the end.
3824         * matrix-reorg.c (matrix_reorg): Likewise.
3826 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
3828         * config/i386/i386.md (*indirect_jump): Macroize using P
3829         mode iterator.  Remove !TARGET_64BIT from insn constraints.
3830         (*tablejump_1): Ditto.
3831         (*indirect_jump_rex64): Remove insn pattern.
3832         (*tablejump_1_rex64): Ditto.
3833         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3834         and eh_return_si insn patterns.
3836 2008-06-06  Richard Guenther  <rguenther@suse.de>
3838         * tree-ssa-structalias.c (merge_smts_into): Remove.
3839         (find_what_p_points_to): Do not bother to compute the
3840         points-to set for pt_anything pointers.
3841         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3842         for pt_anything pointers is ok.
3844 2008-06-06  Jan Hubicka  <jh@suse.cz>
3846         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3848 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3850         * cgraph.c: Fix typos in comments.
3851         (cgraph_availability_names): Fix string typo.
3852         * fold-const.c: Fix typos in comments.
3853         (fold_binary): Fix typo in warning.
3854         * genautomata.c: Fix typos in comments.
3855         (check_presence_pattern_sets): Fix typo in local variable.
3856         (output_description): Fix typo in output.
3857         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3858         * hwint.h: Likewise.
3859         * matrix-reorg.c (check_allocation_function): Likewise.
3860         * omega.c (smooth_weird_equations): Likewise.
3861         * auto-inc-dec.c: Fix typos in comments.
3862         * bb-reorder.c: Likewise.
3863         * builtins.c: Likewise.
3864         * c-common.c: Likewise.
3865         * c-cppbuiltin.c: Likewise.
3866         * c-parser.c: Likewise.
3867         * c-pretty-print.c: Likewise.
3868         * cfgcleanup.c: Likewise.
3869         * cfgexpand.c: Likewise.
3870         * cfghooks.c: Likewise.
3871         * cfglayout.c: Likewise.
3872         * cfgloopmanip.c: Likewise.
3873         * cgraphunit.c: Likewise.
3874         * coverage.c: Likewise.
3875         * dbxout.c: Likewise.
3876         * df-byte-scan.c: Likewise.
3877         * df-core.c: Likewise.
3878         * df-problems.c: Likewise.
3879         * df-scan.c: Likewise.
3880         * dfp.c: Likewise.
3881         * dominance.c: Likewise.
3882         * domwalk.c: Likewise.
3883         * dse.c: Likewise.
3884         * dwarf2out.c: Likewise.
3885         * emit-rtl.c: Likewise.
3886         * et-forest.c: Likewise.
3887         * function.c: Likewise.
3888         * function.h: Likewise.
3889         * gcc.c: Likewise.
3890         * gcov-io.c: Likewise.
3891         * gcov.c: Likewise.
3892         * gcse.c: Likewise.
3893         * genattrtab.c: Likewise.
3894         * ggc-page.c: Likewise.
3895         * gimplify.c: Likewise.
3896         * gthr-lynx.h: Likewise.
3897         * haifa-sched.c: Likewise.
3898         * ipa-cp.c: Likewise.
3899         * ipa-inline.c: Likewise.
3900         * ipa-prop.h: Likewise.
3901         * ipa-pure-const.c: Likewise.
3902         * ipa-struct-reorg.c: Likewise.
3903         * ipa-struct-reorg.h: Likewise.
3904         * ipa-type-escape.c: Likewise.
3905         * ipa.c: Likewise.
3906         * loop-doloop.c: Likewise.
3907         * mips-tfile.c: Likewise.
3908         * mkmap-flat.awk: Likewise.
3909         * mkmap-symver.awk: Likewise.
3910         * modulo-sched.c: Likewise.
3911         * omp-low.c: Likewise.
3912         * optabs.c: Likewise.
3913         * optabs.h: Likewise.
3914         * opts.c: Likewise.
3915         * passes.c: Likewise.
3916         * postreload-gcse.c: Likewise.
3917         * postreload.c: Likewise.
3918         * predict.c: Likewise.
3919         * pretty-print.h: Likewise.
3920         * profile.c: Likewise.
3921         * protoize.c: Likewise.
3922         * ra-conflict.c: Likewise.
3923         * real.c: Likewise.
3924         * recog.c: Likewise.
3925         * regclass.c: Likewise.
3926         * regs.h: Likewise.
3927         * reload.c: Likewise.
3928         * rtl-error.c: Likewise.
3929         * rtlanal.c: Likewise.
3930         * scan.h: Likewise.
3931         * sched-rgn.c: Likewise.
3932         * see.c: Likewise.
3933         * stmt.c: Likewise.
3934         * target.h: Likewise.
3935         * tree-dfa.c: Likewise.
3936         * tree-eh.c: Likewise.
3937         * tree-flow-inline.h: Likewise.
3938         * tree-inline.c: Likewise.
3939         * tree-into-ssa.c: Likewise.
3940         * tree-loop-distribution.c: Likewise.
3941         * tree-nested.c: Likewise.
3942         * tree-parloops.c: Likewise.
3943         * tree-pass.h: Likewise.
3944         * tree-pretty-print.c: Likewise.
3945         * tree-profile.c: Likewise.
3946         * tree-scalar-evolution.c: Likewise.
3947         * tree-sra.c: Likewise.
3948         * tree-ssa-alias-warnings.c: Likewise.
3949         * tree-ssa-ccp.c: Likewise.
3950         * tree-ssa-coalesce.c: Likewise.
3951         * tree-ssa-dom.c: Likewise.
3952         * tree-ssa-dse.c: Likewise.
3953         * tree-ssa-forwprop.c: Likewise.
3954         * tree-ssa-live.c: Likewise.
3955         * tree-ssa-live.h: Likewise.
3956         * tree-ssa-loop-im.c: Likewise.
3957         * tree-ssa-loop-ivopts.c: Likewise.
3958         * tree-ssa-loop-niter.c: Likewise.
3959         * tree-ssa-loop-prefetch.c: Likewise.
3960         * tree-ssa-phiopt.c: Likewise.
3961         * tree-ssa-phiprop.c: Likewise.
3962         * tree-ssa-sccvn.c: Likewise.
3963         * tree-ssa-ter.c: Likewise.
3964         * tree-ssa-threadupdate.c: Likewise.
3965         * tree-ssa.c: Likewise.
3966         * tree-vect-analyze.c: Likewise.
3967         * tree-vect-transform.c: Likewise.
3968         * tree-vectorizer.c: Likewise.
3969         * tree-vn.c: Likewise.
3970         * tree-vrp.c: Likewise.
3971         * tree.c: Likewise.
3972         * tree.def: Likewise.
3973         * tree.h: Likewise.
3974         * unwind-dw2-fde.c: Likewise.
3975         * unwind.inc: Likewise.
3976         * value-prof.c: Likewise.
3977         * vmsdbgout.c: Likewise.
3979 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
3981         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
3982         always place FP constants in the TOC for TARGET_POWERPC64.
3983         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
3985 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
3987         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
3988         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
3989         enable for TARGET_E500_DOUBLE.
3990         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
3991         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
3992         floating-point modes like integer modes for E500 double.
3993         (rs6000_legitimate_offset_address_p): Likewise.
3994         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
3995         addressing for DDmode for E500 double.
3996         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
3997         modes as using 64-bits of registers for E500 double.
3998         (spe_build_register_parallel): Do not handle DDmode or TDmode.
3999         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4000         specially for E500 double.
4001         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4002         TDmode for E500 double.
4003         (rs6000_gimplify_va_arg): Only handle SDmode in registers
4004         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4005         (rs6000_split_multireg_move): Do not handle TDmode specially for
4006         E500 double.
4007         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4008         using 64-bit registers for E500 double.
4009         (emit_frame_save): Do not handle DDmode specially for E500 double.
4010         (gen_frame_mem_offset): Likewise.
4011         (rs6000_function_value): Do not call spe_build_register_parallel
4012         for DDmode or TDmode.
4013         (rs6000_libcall_value): Likewise.
4014         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4015         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4016         for E500 double.
4018 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4020         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4021         in comments.
4023 2008-06-04  Junjie Gu <jgu@tensilica.com>
4025         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4026         comparison for frame pointers.
4028 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
4030         PR target/27386
4031         * config/avr/avr.h (PUSH_ROUNDING): Remove.
4033 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
4035         PR target/30243
4036         * builtins.c (expand_builtin_signbit): Don't take lowpart when
4037         register is already smaller or equal to required mode. 
4039 2008-06-04  Xinliang David Li  <davidxl@google.com>
4041         * tree-call-cdce.c: New file. 
4042         (cond_dead_built_in_calls): New static variable.
4043         (input_domain): New struct.
4044         (check_pow): New function.
4045         (check_builtin_call): Ditto.
4046         (check_target_format): Ditto.
4047         (is_call_dce_candidate): Ditto.
4048         (gen_one_condition): Ditto.
4049         (gen_conditions_for_domain): Ditto.
4050         (get_domain): Ditto.
4051         (gen_conditions_for_pow_cst_base): Ditto.
4052         (gen_conditions_for_pow_int_base): Ditto.
4053         (gen_conditions_for_pow): Ditto.
4054         (get_no_error_domain): Ditto.
4055         (gen_shrink_wrap_conditions): Ditto.
4056         (shrink_wrap_one_built_in_call): Ditto.
4057         (shink_wrap_conditional_dead_built_in_calls): Ditto.
4058         (tree_call_cdce): Ditto.
4059         (gate_call_cdce): Ditto.
4060         (pass_call_cdce): New gimple pass.
4061         * passes.c: (init_optimization_passes): New pass.
4062         * tree-pass.h: New pass declaration.
4063         * opts.c (decode_options): New flag setting.
4064         * common.opt: Add -ftree-builtin-call-dce flag.
4065         * Makefile.in: Add new source file.
4066         * tempvar.def: New tv_id.
4067         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
4069 2008-06-04  Richard Guenther  <rguenther@suse.de>
4071         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
4072         (is_call_clobbered): Always check var_ann->call_clobbered.
4073         (mark_call_clobbered): Always set var_ann->call_clobbered.
4074         (clear_call_clobbered): Always clear var_ann->call_clobbered.
4075         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
4076         (reset_alias_info): Clear call clobbering info on MTAGs and
4077         globals as well.
4078         (set_pt_anything): Set pt_global_mem.
4079         (create_tag_raw): Adjust comment.
4080         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
4082 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
4083             Maxim Kuvyrkov  <maxim@codesourcery.com>
4085         * config/m68k/m68k.opt (mxgot): New option.
4086         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4087         (m68k_output_addr_const_extra): New.
4088         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4089         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4090         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4091         * doc/invoke.texi (M680x0 Options): Document -mxgot.
4093 2008-06-04  Richard Guenther  <rguenther@suse.de>
4095         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4096         negative or non-representable offsets.
4098 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4100         * config/i386/i386.c (ix86_gen_leave): New.
4101         (ix86_gen_pop1): Likewise.
4102         (ix86_gen_add3): Likewise.
4103         (ix86_gen_sub3): Likewise.
4104         (ix86_gen_sub3_carry): Likewise.
4105         (ix86_gen_one_cmpl2): Likewise.
4106         (ix86_gen_monitor): Likewise.
4107         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4108         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4109         ix86_gen_one_cmpl2 and ix86_gen_monitor.
4110         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4111         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4112         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4113         (ix86_expand_epilogue): Updated.
4114         (print_operand): Handle integer register operand for 'z'.
4115         (ix86_expand_strlensi_unroll_1): Likewise.
4116         (ix86_expand_strlen): Likewise.
4117         (ix86_expand_builtin): Likewise.
4118         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4119         mov{q}/mov{l} and add{q}/add{l}.
4121 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4123         * config/i386/i386.md (P): New mode iterator.
4124         (SFmode push_operand splitter): Macroize DImode and SImode pushes
4125         using P mode iterator.
4126         (DFmode push_operand splitter): Ditto.
4127         (XFmode push_operand splitter): Ditto.
4128         (DFmode float_extend SFmode push_operand splitter): Ditto.
4129         (XFmode float_extend SFmode push_operand splitter): Do not generate
4130         SImode pushes for 64bit target.  Macroize Dimode and SImode
4131         pushes using P mode iterator.
4132         (XFmode float_extend DFmode push_operand splitter): Ditto.
4134 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4136         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4137         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4138         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4139         return type to int.
4140         (ix86_call_abi_override): Remove check for call_used_regs.
4142 2008-06-03  Richard Guenther  <rguenther@suse.de>
4144         * tree-ssa-structalias.c (find_func_aliases): Add constraints
4145         for the lhs of calls if the return type contains pointers.
4147 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4149         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4150         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4151         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4152         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4153         of cfun and DEFAULT_ABI to deceide abi mode.
4154         (DEFAULT_ABI): New.
4155         (REG_PARM_STACK_SPACE): Removed.
4156         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4157         (STACK_BOUNDARY): Use default target to deceide stack boundary.
4158         * config/i386/i386-protos.h (ix86_cfun_abi): New.
4159         (ix86_function_abi): Likewise.
4160         (ix86_function_type_abi): Likewise.
4161         (ix86_call_abi_override): Likewise.
4162         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4163         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4164         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4165         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4166         specific defines.
4167         (X86_64_REGPARM_MAX): New.
4168         (X86_64_SSE_REGPARM_MAX): New.
4169         (X64_REGPARM_MAX): New.
4170         (X64_SSE_REGPARM_MAX): New.
4171         (X86_32_REGPARM_MAX): New.
4172         (X86_32_SSE_REGPARM_MAX): New.
4173         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4174         (ix86_function_regparm): Handle user calling abi.
4175         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4176         by DEFAULT_ABI versus SYSV_ABI check.
4177         (ix86_reg_parm_stack_space): New.
4178         (ix86_function_type_abi): New.
4179         (ix86_call_abi_override): New.
4180         (ix86_function_abi): New.
4181         (ix86_cfun_abi): New.
4182         (init_cumulative_args): Call abi specific initialization.
4183         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4184         (function_arg_64): Extend SSE_REGPARM_MAX check.
4185         (function_arg (): Remove TARGET_64BIT_MS_ABI.
4186         (ix86_pass_by_reference): Likewise.
4187         (ix86_function_value_regno_p): Likewise.
4188         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4189         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4190         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4191         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4192         (setup_incoming_varargs_64): Adjust regparm for call abi.
4193         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4194         (ix86_va_start): Likewise.
4195         (ix86_gimplify_va_arg): Likewise.
4196         (ix86_expand_prologue): Likewise.
4197         (output_pic_addr_const): Likewise.
4198         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4199         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4200         (x86_output_mi_thunk): Likewise.
4201         (x86_function_profiler): Likewise.
4202         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4203         (SYSV_ABI, MS_ABI): New constants.
4204         (DEFAULT_ABI): New.
4205         (init_regs): Add prototype of function in regclass.c file.
4206         (OVERRIDE_ABI_FORMAT): New.
4207         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4208         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4209         (OUTGOING_REG_PARM_STACK_SPACE): New.
4210         (ix86_reg_parm_stack_space): New prototype.
4211         (CUMULATIVE_ARGS): Add call_abi member.
4212         (machine_function): Add call_abi member.
4213         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4214         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4216 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
4218         PR target/34879
4219         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4220         (avr_builtin_setjmp_frame_value): New function.
4221         * config/avr/avr.md (nonlocal_goto_receiver): Define.
4222         (nonlocal_goto): Define.
4224 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
4226         * config/mips/mips.c (mips_emit_loadgp): Return early if
4227         there is nothing do to, otherwise emit a blockage if
4228         !TARGET_EXPLICIT_RELOCS || crtl->profile.
4229         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4231 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4233         * configure.ac: Drop unneeded backslash ending up in config.in.
4234         * acinclude.m4: Likewise.
4235         * config.in: Regenerate.
4237 2008-05-26  Jan Hubicka  <jh@suse.cz>
4239         * predict.c (maybe_hot_frequency_p): Break out of...
4240         (maybe_hot_bb_p): ... here.
4241         (maybe_hot_edge_p): New.
4242         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4243         * basic-block.h (maybe_hot_edge_p): Declare.
4245 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4247         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4248         (*cmpfp_<mode>_cc): Ditto.
4249         (*fp_jcc_8<mode>_387): Ditto.
4250         (*fop_<MODEF:mode>_2_i387): Ditto.
4251         (*fop_<MODEF:mode>_3_i387): Ditto.
4252         (*fop_xf_2_i387): Ditto.
4253         (*fop_xf_3_i387): Ditto.
4255 2008-06-02  Tomas Bily  <tbily@suse.cz>
4257         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4259 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4261         * config/mips/mips.c (mips_valid_offset_p): New function.
4262         (mips_valid_lo_sum_p): Likewise.
4263         (mips_classify_address): Use them.
4264         (mips_force_address): New function.
4265         (mips_legitimize_address): Use it.
4266         * config/mips/mips.md (MOVE128): New mode iterator.
4267         (movtf): Require TARGET_64BIT.  Remove empty strings.
4268         (*movtf_internal): Rename to...
4269         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
4270         of "R" and use {,fp}{load,store} attributes instead of "multi".
4271         Use a separate define_split.
4272         (*movtf_mips16): New pattern.
4274 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4276         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4277         * config/mips/mips.c (mips_expand_before_return): New function.
4278         (mips_expand_epilogue): Call it.
4279         * config/mips/mips.md (return): Turn into a define_expand.
4280         (*return): New insn.
4282 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4284         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4285         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4286         functions.  Do not emit uses and clobbers of CONCATs; individually
4287         use and clobber their operands.
4288         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4289         gen_clobber, emit_use and gen_use.
4290         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4291         (expand_builtin_return): Likewise.
4292         * cfgbuild.c (count_basic_blocks): Likewise.
4293         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4294         * explow.c (emit_stack_restore): Likewise.
4295         * expmed.c (extract_bit_field_1): Likewise.
4296         * expr.c (convert_move, emit_move_complex_parts): Likewise.
4297         (emit_move_multi_word, store_constructor): Likewise.
4298         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4299         (thread_prologue_and_epilogue_insns): Likewise.
4300         * lower-subreg.c (resolve_simple_move): Likewise.
4301         * optabs.c (widen_operand, expand_binop): Likewise.
4302         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4303         * reload.c (find_reloads): Likewise.
4304         * reload1.c (eliminate_regs_in_insn): Likewise.
4305         * stmt.c (expand_nl_goto_receiver): Likewise.
4306         * config/alpha/alpha.md (builtin_longjmp): Likewise.
4307         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4308         * config/arm/arm.c (arm_load_pic_register): Likewise.
4309         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4310         * config/arm/arm.md (untyped_return): Likewise.
4311         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4312         * config/avr/avr.c (expand_prologue): Likewise.
4313         * config/bfin/bfin.c (do_unlink): Likewise.
4314         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4315         * config/cris/cris.c (cris_expand_prologue): Likewise.
4316         * config/darwin.c (machopic_indirect_data_reference): Likewise.
4317         (machopic_legitimize_pic_address): Likewise.
4318         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4319         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4320         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4321         (ix86_expand_convert_uns_didf_sse): Likewise.
4322         (ix86_expand_vector_init_general): Likewise.
4323         * config/ia64/ia64.md (eh_epilogue): Likewise.
4324         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4325         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4326         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4327         (config/iq2000/iq2000.c): Likewise.
4328         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4329         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4330         (builtin_longjmp): Likewise.
4331         * config/mn10300/mn10300.md (call, call_value): Likewise.
4332         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4333         * config/pdp11/pdp11.md (abshi2): Likewise.
4334         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4335         * config/s390/s390.c (s390_emit_prologue): Likewise.
4336         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4337         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4338         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4339         * config/sh/sh.c (prepare_move_operands): Likewise.
4340         (output_stack_adjust, sh_expand_epilogue): Likewise.
4341         (sh_set_return_address, sh_expand_t_scc): Likewise.
4342         * config/sparc/sparc.c (load_pic_register): Likewise.
4343         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4344         * config/spu/spu.c (spu_expand_epilogue): Likewise.
4345         * config/v850/v850.c (expand_epilogue): Likewise.
4347 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
4349         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4350         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4351         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4352         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
4353         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
4354         stack pointer register.
4355         (output_movhi): Remove code for interrupt specific writing to the 
4356         stack pointer register.
4358 2008-05-31  Richard Guenther  <rguenther@suse.de>
4360         PR tree-optimization/34244
4361         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4362         (tree_expr_nonzero_warnv_p): Likewise.
4363         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4364         ssa_name_nonnegative_p.
4365         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4366         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4367         not tree_expr_nonzero_warnv_p.
4369         PR tree-optimization/36262
4370         Revert
4371         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
4373         PR tree-optimization/34244
4374         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4375         (record_numbers_of_iterations): New function.
4376         (execute_vrp): Cache the numbers of iterations of loops.
4377         * tree-scalar-evolution.c (scev_reset_except_niters):
4378         New function.
4379         (scev_reset): Use scev_reset_except_niters.
4380         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4382 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4384         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4385         __WORKAROUND_RETS when appropriate.
4387 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4389         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4390         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4391         mode iterator.
4392         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4393         *fop_df_comm_sse insn patterns using MODEF mode iterator.
4394         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4395         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4396         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4397         *fop_df_1_mixed insn patterns using MODEF mode iterator.
4398         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4399         *fop_df_1_sse insn patterns using MODEF mode iterator.
4400         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4401         *fop_df_1_i387 insn patterns using MODEF mode iterator.
4402         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4403         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4404         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4405         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4406         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4407         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4408         (*fop_xf_4_i387): Use <MODE> for mode attribute.
4409         (*fop_xf_5_i387): Ditto.
4410         (*fop_xf_6_i387): Ditto.
4412 2008-05-30  Richard Guenther  <rguenther@suse.de>
4414         * builtins.c (build_string_literal): Avoid generating
4415         a non-gimple_val result.
4417 2008-05-30  DJ Delorie  <dj@redhat.com>
4419         * exec-tool.in: Use an environment variable (private) instead of a
4420         file (shared) as a semaphore, so as to not break parallel builds.
4422 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4424         * optabs.c (maybe_encapsulate_block): Remove.
4425         (emit_libcall_block): Adjust accordingly.
4426         * optabs.h (maybe_encapsulate_block): Remove prototype.
4428         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4429         Don't use maybe_encapsulate_block.
4431 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4433         * config/rs6000/rs6000.c (rs6000_legitimize_address,
4434         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4435         rtx is a SYMBOL_REF before calling get_pool_constant.
4437 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4439         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4441 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
4443         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4444         rather than OS names to choose INO_T_EQ definition.
4445         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4446         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4448 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
4450         PR target/36348
4451         * config/darwin-f.c: New.
4452         * config/t-darwin: Added rule to build darwin-f.o.
4453         * config.gcc: Defined new variable, fortran_target_objs.
4454         (*-*-darwin*): Set fortran_target_objs.
4455         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4456         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4457         * configure: Regenerated.
4459 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4461         PR target/35771
4462         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4463         canonical type if needed.
4465 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4467         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4469 2008-05-29  Richard Guenther  <rguenther@suse.de>
4471         PR tree-optimization/36343
4472         PR tree-optimization/36346
4473         PR tree-optimization/36347
4474         * tree-flow.h (clobber_what_p_points_to): Declare.
4475         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4476         pointed-to variable is dereferenced is irrelevant to whether
4477         the pointer can access the pointed-to variable.
4478         (clobber_what_p_points_to): New function.
4479         * tree-ssa-alias.c (set_initial_properties): Use it.
4480         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4481         call clobber check for NMTs.
4483 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4484         
4485         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4486         for printing gcov_type.
4488 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4490         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4491         and the eh region information.
4492         * value-prof.c (gimple_move_stmt_histograms): New function.
4493         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4495 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
4497         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4499 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
4501         * value-prof.c (tree_ic_transform): Print counts.
4502         * tree-profile.c (tree_gen_ic_func_profiler):
4503         Clear __gcov_indreict_call_callee variable to avoid misattribution
4504         of the profile.
4506 2008-05-28  Rafael Espindola  <espindola@google.com>
4508         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4509         invalid sharing.
4511 2008-05-28  Richard Guenther  <rguenther@suse.de>
4513         PR tree-optimization/36339
4514         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4515         and clobbering code out of the loop.
4517 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4519         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4520         letters defined.
4522         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4523         s390_contiguous_bitmask_p, s390_symref_operand_p,
4524         s390_check_symref_alignment, s390_reload_larl_operand,
4525         s390_reload_symref_address): New functions.
4526         (s390_branch_condition_mnemonic): Support compare and branch
4527         instructions.
4528         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4529         and 'W' constraints.
4530         (s390_secondary_reload): Add secondary reloads for unaligned
4531         symbol refs or symbol refs to floating point or QI/TI mode
4532         integer values.
4533         (legitimate_address_p): Accept symbol references as addresses.
4534         (s390_expand_insv): Use rotate and insert selected bits
4535         instruction for insv when building for z10.
4536         (print_operand_address): Handle symbol ref addresses.
4537         (print_operand): Output modifier 'c' added for signed byte values.
4538         (s390_encode_section_info): Mark symbol refs with
4539         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4541         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4542         (length attribute): RRF, RRR have 4 byte length.
4543         (FPALL, INTALL): New mode iterators added.
4544         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4545         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4546         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4547         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4548         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4549         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4550         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4551         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4552         instructions.
4553         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4554         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4555         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4556         reload<INTALL:mode><P:mode>_toreg_z10,
4557         reload<FPALL:mode><P:mode>_tomem_z10,
4558         reload<FPALL:mode><P:mode>_toreg_z10,
4559         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4560         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4561         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4562         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4563         definition.
4564         (movmem, clrmem, cmpmem): New splitters added.
4566         * config/s390/predicates.md (larl_operand): Use
4567         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4568         SYMBOL_REF_ALIGN1_P.
4569         (s390_signed_integer_comparison,
4570         s390_unsigned_integer_comparison): New predicates.
4572         * config/s390/s390-protos.h (s390_check_symref_alignment,
4573         s390_contiguous_bitmask_p, s390_reload_larl_operand,
4574         s390_reload_symref_address,
4575         s390_compare_and_branch_condition_mask): Prototypes added.
4577         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4578         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4579         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4581 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4583         * config/s390/s390.c (z10_cost): New cost function for z10.
4584         (s390_handle_arch_option, override_options): Support -march=z10 switch.
4585         (s390_issue_rate): Adjust issue rate for z10.
4586         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4587         (processor_flags): Add PF_Z10.
4588         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4589         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4590         * gcc/config.gcc: Add z10.
4592 2008-05-28  Richard Guenther  <rguenther@suse.de>
4594         PR tree-optimization/36291
4595         * tree-flow. h (struct gimple_df): Remove var_anns member.
4596         * tree-flow-inline.h (gimple_var_anns): Remove.
4597         (var_ann): Simplify.
4598         * tree-dfa.c (create_var_ann): Simplify.
4599         (remove_referenced_var): Clear alias info from var_anns of globals.
4600         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4601         (delete_tree_ssa): Clear alias info from var_anns of globals.
4602         Do not free var_anns.
4603         (var_ann_eq): Remove.
4604         (var_ann_hash): Likewise.
4606 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4608         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4609         and loongson2f entries.
4610         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4611         * config/mips/mips.h (processor_type): Add Loongson-2E
4612         and Loongson-2F entries.
4613         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4614         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4615         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4616         * doc/invoke.texi (MIPS Options): Document loongson2e
4617         and loongson2f processor names.
4619 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4621         PR target/35767
4622         PR target/35771
4623         * config/i386/i386.c (ix86_function_arg_boundary): Use
4624         alignment of canonical type.
4625         (ix86_expand_vector_move): Check unaligned memory access for
4626         all SSE modes.
4628 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4630         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4631         Moved to the front of file.
4633 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
4634             H.J. Lu  <hongjiu.lu@intel.com>
4636         * dwarf2out.c (current_fde): New.
4637         (add_cfi): Use it.
4638         (lookup_cfa:): Likewise.
4639         (dwarf2out_end_epilogue): Likewise.
4640         (dwarf2out_note_section_used): Likewise.
4642 2008-05-27  Michael Matz  <matz@suse.de>
4644         PR c++/27975
4645         * c.opt (Wenum-compare): New warning option.
4646         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
4648 2008-05-27  Michael Matz  <matz@suse.de>
4650         PR middle-end/36326
4651         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4652         non-BLKmode types.
4653         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4654         into memory as tail calls.
4656 2008-05-27  Richard Guenther  <rguenther@suse.de>
4658         PR tree-optimization/36339
4659         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4660         pointers cause all addressable variables to be call clobbered.
4662 2008-05-27  Richard Guenther  <rguenther@suse.de>
4664         PR tree-optimization/36245
4665         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4667 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4669         * config/s390/s390.md: Replace all occurences of the 'm'
4670         constraint with 'RT'.
4672 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4674         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4675         definitions added.
4676         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4677         "*movdi_64".
4678         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4679         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4680         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4682 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4684         * reload.c: (find_reloads): Skip alternatives according to the
4685         "enabled" attribute. Constify the constraint variable.
4686         * recog.c (get_attr_enabled): Add default implementation.
4687         (extract_insn): Set the alternative_enabled_p array
4688         in the recog_data struct.
4689         (preprocess_constraints, constrain_operands): Skip
4690         alternatives according to the "enabled" attribute
4691         * recog.h (struct recog_data): New field alternative_enabled_p.
4692         (skip_alternative): New inline function.
4693         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4694         (record_reg_classes): Skip alternative according to the
4695         "enabled" attribute.
4697         * doc/md.texi: Add documention for the "enabled" attribute.
4699 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4701         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4702         * postreload.c (reload_cse_simplify_operands): Replace 'm'
4703         constraint with TARGET_MEM_CONSTRAINT.
4704         * recog.c (asm_operand_ok, preprocess_constraints,
4705         constrain_operands): Likewise.
4706         * regclass.c (record_reg_classes): Likewise.
4707         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4708         * reload1.c (maybe_fix_stack_asms): Likewise.
4709         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4710         * recog.h: Adjust comment.
4711         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4712         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4713         * doc/md.texi: Add a note to description of 'm' constraint.
4714         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4716 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4718         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4719         that the bitfield is of integral type before testing its precision.
4721 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4722             Sa Liu  <saliu@de.ibm.com> 
4724         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
4725         __modti3, __udivti3, __umodti3 and __udivmodti4.
4726         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4727         that implement TImode mul and div functions.
4728         * config/spu/multi3.c: New. Implement __multi3.
4729         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4730         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4731         functions on SPU.
4733 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
4735         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4736         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4737         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4738         tls_sysv_suffix): New mode and mode attribute iterators.
4739         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4740         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4741         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4742         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4743         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4744         iterators.
4746 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4748         PR tree-optimization/36329
4749         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4750         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4751         * cgraphbuild.c (initialize_inline_failed): Use the latter
4752         macro in lieu of the former.
4753         * ipa-inline.c (cgraph_mark_inline): Likewise.
4754         (cgraph_decide_inlining_of_small_function): Likewise.
4755         (cgraph_decide_inlining): Likewise.
4756         (cgraph_decide_inlining_incrementally): Likewise.
4758 2008-05-26  Tristan Gingold  <gingold@adacore.com>
4759             Anatoly Sokolov  <aesok@post.ru>
4761         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4762         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4763         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
4764         optimization for 'avr6' architecture.
4766 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
4768         PR target/34932
4769         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4771 2008-05-26  Richard Guenther  <rguenther@suse.de>
4773         * tree-ssa-sccvn.c (expr_has_constants): Declare.
4774         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4776 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4778         PR middle-end/36253
4779         * caller-save.c (insert_restore): Verify alignment of spill space.
4780         (insert_save): Likewise.
4781         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4782         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4783         (STACK_SLOT_ALIGNMENT): Likewise.
4784         * function.c (LOCAL_ALIGNMENT): Removed.
4785         (get_stack_local_alignment): New.
4786         (assign_stack_local): Use it.  Set alignment on stack slot.
4787         (assign_stack_temp_for_type): Use get_stack_local_alignment.
4788         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4789         (STACK_SLOT_ALIGNMENT): New.
4790         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4791         stack slot in XFmode.
4793         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4795 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
4797         PR/36321
4798         * config/i386/i386.md (allocate_stack_worker_64): Make sure
4799         argument operand in rax isn't removed.
4801 2008-05-26  Richard Guenther  <rguenther@suse.de>
4803         PR middle-end/36300
4804         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4805         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
4807 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4809         PR bootstrap/36331
4810         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4812 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
4814         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4815         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4817 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4819         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4820         build a trampoline if we don't want one.
4821         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4822         return zero for nested functions if we don't want a trampoline.
4824 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4826         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4828 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4830         PR fortran/18428
4831         * c.opt: Removed undocumented option '-lang-fortran'.
4832         * c-common.h: Removed global variable 'lang_fortran'.
4833         * c-opts.c (c_common_handle_option): Removed code to handle
4834         option '-lang-fortran'. Updated includes.
4835         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4836         definition of '__GFORTRAN__'.
4837         (define__GNUC__): Reimplemented to use BASEVER and
4838         cpp_define_formatted.
4839         (builtin_define_with_value_n): Removed.
4840         * c-incpath.h: Renamed to ...
4841         * incpath.h: ... this.
4842         * c-incpath.c: Renamed to ...
4843         * incpath.c: ... this. Updated includes.
4844         * fix-header.c: Updated includes.
4845         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4846         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4847         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4849 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4851         * tree.h: Update the table of flags used on tree nodes.
4852         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4853         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4854         (FORCED_LABEL): Add access check.
4855         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4856         (ASM_INPUT_P): Likewise.
4857         (ASM_VOLATILE_P): Likewise.
4858         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4859         (OMP_SECTION_LAST): Access private_flag directly.
4860         (OMP_RETURN_NOWAIT): Likewise.
4861         (OMP_PARALLEL_COMBINED): Likewise.
4862         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4863         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4864         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4865         deprecated_flag directly.
4867 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4869         * final.c (frame_pointer_needed): Removed.
4870         * flags.h (frame_pointer_needed): Likewise.
4872         * function.h (rtl_data): Add frame_pointer_needed.
4873         (frame_pointer_needed): New.
4875 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
4877         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4879 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
4881         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4882         SRC is a REG.
4884 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
4886         * c-common.c (strip_array_types): Move function to..
4887         * tree.c: ..here.
4888         (get_inner_array_type): Delete.
4889         * c-common.h (strip_array_types): Move declaration to..
4890         * tree.h: ..here.
4891         (get_inner_array_type): Delete.
4892         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4893         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4894         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4895         * config/pa/pa.c (emit_move_sequence): Likewise.
4897 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4899         * config/i386/i386.md (*sse_prologue_save_insn): Set length
4900         attribute to 34.
4902 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
4904         * function.c: Include target hook for nonlocal_goto frame value.
4906 2008-05-24  Richard Guenther  <rguenther@suse.de>
4908         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
4909         variable can be only accessed through a pointer or a union.
4911 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4913         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
4914         * doc/extend.texi: Likewise.
4916 2008-05-23  DJ Delorie  <dj@redhat.com>
4918         * config/m32c/jump.md (untyped_call): Add.
4920         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
4921         for A24 to PSImode.
4922         (m32c_address_cost): Detail costs for indirect offsets.
4924 2008-05-23  Rafael Espindola  <espindola@google.com>
4926         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
4927         if a node is a SUBREG.
4928         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
4929         is a SUBREG.
4931 2008-05-23  Paul Brook  <paul@codesourcery.com>
4932             Carlos O'Donell  <carlos@codesourcery.com>
4934         * doc/extend.texi: Clarify use of __attribute__((naked)).
4935         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4936         * target.h (gcc_target): Add allocate_stack_slots_for_args.
4937         * function.c (use_register_for_decl): Use
4938         targetm.calls.allocate_stack_slots_for_args.
4939         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4940         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
4941         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4943 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4945         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
4947 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
4949         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
4950         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
4951         is only rounded once.
4953 2008-05-23  Richard Guenther  <rguenther@suse.de>
4955         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
4957 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
4958             Jakub Jelinek  <jakub@redhat.com>
4960         PR target/36079
4961         * configure.ac: Handle --enable-cld.
4962         * configure: Regenerated.
4963         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
4964         * config/i386/i386.h (struct machine_function): Add needs_cld field.
4965         (ix86_current_function_needs_cld): New define.
4966         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
4967         (cld): New isns pattern.
4968         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
4969         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
4970         * config/i386/i386.opt (mcld): New option.
4971         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
4972         TARGET_CLD and ix86_current_function_needs_cld.
4973         (override_options): Use -mcld by default for 32-bit code if
4974         USE_IX86_CLD.
4976         * doc/install.texi (Options specification): Document --enable-cld.
4977         * doc/invoke.texi (Machine Dependent Options)
4978         [i386 and x86-64 Options]: Add -mcld option.
4979         (Intel 386 and AMD x86-64 Options): Document -mcld option.
4981 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
4982         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
4983         (return_in_memory_64): Likewise.
4984         (return_in_memory_ms_64): Likewise.
4986 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4988         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
4989         * builtins.c (fold_builtin_fpclassify): New.
4990         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
4991         * builtins.def (BUILT_IN_FPCLASSIFY): New.
4992         * c-common.c (handle_type_generic_attribute): Adjust to accept
4993         fixed arguments before an elipsis.
4994         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
4995         * doc/extend.texi: Document __builtin_fpclassify.
4997 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
4999         * omp-low.c (gate_expand_omp_ssa): Remove.
5000         (pass_expand_omp_ssa): Remove.
5001         (gate_expand_omp): Do not check for flag_openmp_ssa.
5002         * common.opt (-fopenmp-ssa): Remove.
5003         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5005 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5007         * config/sh/sh.opt (mfixed-range): New option.
5008         * config/sh/sh-protos.h (sh_fix_range): Declare.
5009         * config/sh/sh.c (sh_fix_range): New function.
5010         * config/sh/sh.h (sh_fixed_range_str): Declare.
5011         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5012         is not empty.
5013         * doc/invoke.texi (SH Options): Document -mfixed-range.
5015 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
5017         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5018         it before the redeclaration.
5020 2008-05-22  Anatoly Sokolov <aesok@post.ru>
5022         * config/avr/avr.c (get_sequence_length): Add new function.
5023         (expand_prologue, expand_epilogue): Remove duplicate code.
5025 2008-05-22  Rafael Espindola  <espindola@google.com>
5027         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5028         sharing.
5030 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5032         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5033         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5035         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5036         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5037         (vect_update_misalignment_for_peel): Likewise.
5038         (vector_alignment_reachable_p): Likewise.
5039         * tree-vect-transform.c (vectorizable_load): Likewise.
5040         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5041         (get_vectype_for_scalar_type): Pass mode of scalar_type
5042         to UNITS_PER_SIMD_WORD.
5044         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5045         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5046         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5047         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5048         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5050 2008-05-22  Ira Rosen  <irar@il.ibm.com>
5052         PR tree-optimization/36293
5053         * tree-vect-transform.c (vect_transform_strided_load): Don't check
5054         if the first load must be skipped because of a gap.
5056 2008-05-22  Richard Guenther  <rguenther@suse.de>
5058         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
5059         more cases of offset disambiguation that is possible if
5060         strict-aliasing rules apply.
5061         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
5062         for basic offset and type-based disambiguation.
5064 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5066         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
5067         ix86_expand_vector_set on V16QImode for SSE4.1.
5069 2008-05-21  Tom Tromey  <tromey@redhat.com>
5071         * c.opt (Wimport): Mark as undocumented.
5072         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
5073         -Wno-import.
5074         (Warning Options): Likewise.
5075         * doc/cppopts.texi: Don't mention -Wimport.
5077 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
5079         PR tree-optimization/36287
5080         PR tree-optimization/36286
5081         * lambda-code.c (build_access_matrix): Do not use the loop->num
5082         for computing the number of induction variables: use the loop depth
5083         instead.
5085 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
5087         PR/36280
5088         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5089         option -f(no-)leading-underscore.
5091 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5093         * config/i386/i386.c (ix86_expand_vector_init_general): Use
5094         GET_MODE_NUNITS (mode).
5096 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
5098         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5099         (-mmulhw): Add 464 to description.
5100         (-mdlmzb): Likewise.
5101         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5102         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5103         464fp entries.
5104         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5105         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5106         * config/rs6000/rs6000.md: Update comments for 464.
5108 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
5110         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5112 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5114         * config/i386/sse.md (vec_extractv4sf): Removed.
5115         (vec_extractv2df): Likewise.
5116         (vec_extractv2di): Likewise.
5117         (vec_extractv4si): Likewise.
5118         (vec_extractv8hi): Likewise.
5119         (vec_extractv16qi): Likewise.
5120         (vec_extract<mode>): New.
5122 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5124         * config/i386/sse.md (vec_setv4sf): Removed.
5125         (vec_setv2df): Likewise.
5126         (vec_setv2di): Likewise.
5127         (vec_setv4si): Likewise.
5128         (vec_setv8hi): Likewise.
5129         (vec_setv16qi): Likewise.
5130         (vec_set<mode>): New.
5132 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5134         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5135         goto for vec_concat and vec_interleave.
5137 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5139         * config/i386/sse.md (vec_initv4sf): Removed.
5140         (vec_initv2df): Likewise.
5141         (vec_initv2di): Likewise.
5142         (vec_initv4si): Likewise.
5143         (vec_initv8hi): Likewise.
5144         (vec_initv16qi): Likewise.
5145         (vec_init<mode>): New.
5147 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
5149         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5151 2008-05-21  Tom Tromey  <tromey@redhat.com>
5153         * ggc-zone.c (lookup_page_table_if_allocated): New function.
5154         (zone_find_object_offset): Likewise.
5155         (gt_ggc_m_S): Likewise.
5156         (highest_bit): Likewise.
5157         * ggc-page.c (gt_ggc_m_S): New function.
5158         * stringpool.c (string_stack): Remove.
5159         (init_stringpool): Update.
5160         (ggc_alloc_string): Use ggc_alloc.
5161         (maybe_delete_ident): New function.
5162         (ggc_purge_stringpool): Likewise.
5163         (gt_ggc_m_S): Remove.
5164         * ggc-common.c (ggc_protect_identifiers): New global.
5165         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
5166         ggc_protect_identifiers.
5167         * ggc.h (ggc_protect_identifiers): Declare.
5168         (gt_ggc_m_S): Update.
5169         (ggc_purge_stringpool): Declare.
5170         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5171         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5172         special case.
5173         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5175 2008-05-21  David S. Miller  <davem@davemloft.net>
5177         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5178         tmake_file.
5180 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5182         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5183         once finished.
5185 2008-05-20  David Daney  <ddaney@avtrex.com>
5187         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5188         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5189         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5190         UNSPEC_UPDATE_GOT_VERSION): Renumber.
5191         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5192         (atomic_hiqi_op): New define_code_iterator.
5193         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5194         mips_expand_compare_and_swap_12.
5195         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5196         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
5197         (sync_<optab><mode>, sync_old_<optab><mode>,
5198         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5199         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5200         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5201         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5202         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5203         (test_and_set_12): New insn.
5204         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5205         sync_new_<optab><mode>, sync_old_nand<mode>,
5206         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
5207         clobber to operand 0 for SI and DI mode insns.
5208         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5209         mips_gen_fn_4): New typedefs.
5210         (mips_gen_fn_ptrs): Define new union type.
5211         (mips_expand_compare_and_swap_12): Remove declaration.
5212         (mips_expand_atomic_qihi): Declare function.
5213         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5214         (mips_expand_atomic_qihi): ... this.  Use new generator function
5215         parameter.
5216         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5217         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5218         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5219         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5220         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5221         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5222         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5223         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5224         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5225         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5226         New macros.
5228 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5230         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5231         the missing break.
5233 2008-05-20  Anatoly Sokolov <aesok@post.ru>
5235         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5236         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5237         (avr_attribute_table): Add 'OS_main' function attribute.
5238         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5239         functions with 'OS_main' attribute.
5241 2008-05-20  Richard Guenther  <rguenther@suse.de>
5243         PR tree-optimization/35204
5244         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5245         helper, split out from ...
5246         (DFS): ... here.  Make the DFS walk non-recursive.
5248 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
5249             Jan Sjodin  <jan.sjodin@amd.com>
5251         PR tree-optimization/36181
5252         * tree-parloops.c (loop_has_vector_phi_nodes): New.
5253         (parallelize_loops): Don't parallelize when the loop has vector
5254         phi nodes.
5256 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5257             Sebastian Pop  <sebastian.pop@amd.com>
5259         * tree-loop-linear.c (gather_interchange_stats): Look in the access
5260         matrix, and never look at the tree representation of the memory
5261         accesses.
5262         (linear_transform_loops): Computes parameters and access matrices.
5263         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5264         when fails.
5265         (access_matrix_get_index_for_parameter): New.
5266         * tree-data-ref.h (struct access_matrix): New.
5267         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5268         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5269         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5270         am_vector_index_for_loop): New.
5271         (struct data_reference): Add field access_matrix.
5272         (DR_ACCESS_MATRIX): New.
5273         (compute_data_dependences_for_loop): Update declaration.
5274         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5275         * lambda.h (lambda_vector_vec_p): Declared.
5276         * lambda-code.c: Depend on pointer-set.h.
5277         (lambda_collect_parameters_from_af, lambda_collect_parameters,
5278         av_for_af_base, av_for_af, build_access_matrix,
5279         lambda_compute_access_matrices): New.
5280         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5282 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
5284         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5285         $SOURCEDIR/include.
5287 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5288             Sebastian Pop  <sebastian.pop@amd.com>
5290         PR tree-optimization/36206
5291         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5292         FOLD_CONVERSIONS.
5293         (instantiate_scev_1): Rename flags to fold_conversions.
5294         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5295         outeside instantiation_loop.
5296         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5297         (evolution_function_is_affine_or_constant_p): Removed.
5298         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5299         instantiate_scev.
5300         (analyze_siv_subscript): Pass in the loop nest number.
5301         Call evolution_function_is_affine_in_loop instead of 
5302         evolution_function_is_affine_p.
5303         (analyze_overlapping_iterations): Pass in the loop nest number.
5305 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5306             Sebastian Pop  <sebastian.pop@amd.com>
5308         PR tree-optimization/36206
5309         * tree-chrec.h (chrec_fold_op): New.
5310         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5311         and other trees.
5313 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
5315         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5316         (DIRS_EQ): New.
5317         (remove_duplicates): Do not set inode on non-inode systems.
5318         Use DIRS_EQ.
5320 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5322         * config.gcc (tm_file): Update comments about relative pathnames.
5324 2008-05-20  Richard Guenther  <rguenther@suse.de>
5326         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5327         * tree-ssa-sccvn.c (process_scc): Likewise.
5328         * tree-ssa-sink.c (execute_sink_code): Likewise.
5329         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5330         * tree-vrp.c (process_assert_insertions): Likewise.
5331         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5332         (perform_tree_ssa_dce): Likewise.
5333         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5334         (dump_dominator_optimization_stats): Likewise.
5335         * tree-vectorizer.c (vectorize_loops): Likewise.
5337 2008-05-20  Richard Guenther  <rguenther@suse.de>
5339         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5341 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
5343         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5344         (ix86_i386elf_return_in_memory): Likewise.
5345         (ix86_i386interix_return_in_memory): Likewise.
5346         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5347         (SUBTARGET_RETURN_IN_MEMORY): New.
5348         * config/i386/i386elf.h: Likewise.
5349         * config/i386/ptx4-i.h: Likewise.
5350         * config/i386/sol2-10.h: Likewise.
5351         * config/i386/sysv4.h: Likewise.
5352         * config/i386/vx-common.h: Likewise.
5353         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5354         * config/i386/i386.c (ix86_return_in_memory): Made static and
5355         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5356         (ix86_i386elf_return_in_memory): Removed.
5357         (ix86_i386interix_return_in_memory): Removed.
5358         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5359         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5361 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
5363         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5365 2008-05-19  Xinliang David Li  <davidxl@google.com>
5367         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
5368         * opts.c: Ditto.
5369         * common.opt: Ditto.
5370         * doc/invoke.texi: Ditto.
5372 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5374         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5375         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5377 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5379         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5380         sizes of operand array from 8/4 to 4/2.
5381         (ix86_expand_vector_init_general): Change size of operand array
5382         from 32 to 16.  Remove op0, op1 and half_mode.
5384 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5386         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5387         (ix86_expand_vector_init_interleave): Likewise.
5388         (ix86_expand_vector_init_general): Use them.  Assert
5389         word_mode == SImode when n_words == 4.
5391 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
5393         * config/i386/i386.c (ix86_secondary_reload): New static function.
5394         (TARGET_SECONDARY_RELOAD): New define.
5395         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5396         * config/i386/i386.md (reload_outqi): Remove.
5398 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5400         PR middle-end/35509
5401         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5402         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
5403         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5404         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5405         (fold_builtin_1): Likewise.
5406         * builtins.def (BUILT_IN_ISINF_SIGN): New.
5407         c-common.c (check_builtin_function_arguments): Handle
5408         BUILT_IN_ISINF_SIGN.
5409         * doc/extend.texi: Document __builtin_isinf_sign.
5410         * fold-const.c (operand_equal_p): Handle COND_EXPR.
5412 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
5414         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5415         EH cleanup at the end of the pass, search for those that have been
5416         turned into forwarder blocks and do the cleanup on their successor.
5418 2008-05-18  Richard Guenther  <rguenther@suse.de>
5420         * tree-cfg.c (verify_gimple_expr): Allow conversions from
5421         pointers to sizetype and vice versa.
5423 2008-05-18 Xinliang David Li   <davidxl@google.com>
5425         * gcc/tree-ssa-dce.c: Coding style fix.
5426         (check_pow): Documentation comment. 
5427         (check_log): Documenation comment. Coding style fix.
5428         (is_unnecessary_except_errno_call): Ditto.
5429         (gen_conditions_for_pow): Ditto.
5430         (gen_conditions_for_log): Ditto.
5431         (gen_shrink_wrap_conditions): Ditto.
5432         (shrink_wrap_one_built_in_calls): Ditto.
5433         * gcc/doc/invoke.texi: Better documentation string.
5434         * ChangeLog: Fix wrong change log entries from 
5435         May 17 checkin on function call DCE.
5437 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5439         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5441 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
5443         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5444         * df-problems.c (simulation routines): Fixed block comment to
5445         properly say how to add forwards scanning functions.
5446         
5447 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5449         * tree-inline.c (setup_one_parameter): Remove dead code.
5451 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5453         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5454         a BIT_AND_EXPR only for an INTEGER_TYPE.
5456 2008-05-17 Xinliang David Li   <davidxl@google.com>
5458         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5459         (check_pow, check_log, is_unnecessary_except_errno_call): New 
5460         functions to check for eliminating math functions that are pure 
5461         except for setting errno.
5462         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5463         general condition expressions for shrink-wrapping pow/log calls.
5464         (gen_shrink_wrap_conditions): Ditto.
5465         (shrink_wrap_one_built_in_call): Ditto.
5466         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5467         (mark_operand_necessary): If debugging, output if OP is necessary.
5468         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5469         unnecessary.
5470         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5471         opt level >= 2.
5472         * gcc/common.opt: New user flag -ftree-builtin-dce.
5473         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5475 2008-05-16  David S. Miller  <davem@davemloft.net>
5477         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5478         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5480 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
5482         PR target/36246
5483         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5485 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5487         * ifcvt.c (dead_or_predicable): Rename
5488         df_simulate_one_insn_backwards to df_simulate_one_insn.
5489         * recog.c (peephole2_optimize): Ditto.
5490         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5491         Ditto.
5492         * df.h: Rename df_simulate_one_insn_backwards to
5493         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
5494         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5495         scanning of defs and uses.
5496         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5497         (df_simulate_one_insn_forwards): Removed.
5499 2008-05-16  Doug Kwan  <dougkwan@google.com>
5501         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5502         QNaN & SNaN.
5503         (real_from_string): Handle NaNs and Inf as approriate.
5505 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5507         * doc/gty.texi (Source Files Containing Type Information): Note
5508         that headers should appear first in the gtfiles list.
5510 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5512         * tree.def (COND_EXEC): Properly documented this code.
5514 2008-05-16  Diego Novillo  <dnovillo@google.com>
5516         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5517         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5518         the new field.
5520 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5522         * tree-ssa-dse (max_stmt_uid): Removed.
5523         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
5524         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5525         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5526         * function.h (cfun.last_stmt_uid): New field.
5527         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5528         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5529         New functions.
5530         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5531         (create_stmt_ann): Initialize the ann->uid field.
5532         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5533         with new calls.
5534         * tree-flow.h (renumber_gimple_stmt_uids): New function.
5536 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5538         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5539         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5540         (init_empty_tree_cfg): Call it.
5542 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5544         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
5545         Update all users.
5547 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5549         * doc/invoke.text (-fdump-tree-*-verbose): New option.
5550         * tree-dump.c (dump_options): New verbose option.
5551         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5552         Add verbose dump.
5553         * tree-pass.h (TDF_VERBOSE): New dump flag.
5554         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5555         (tree-flow.h): Added include.
5556         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
5558 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
5560         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5562         From Jie Zhang  <jie.zhang@analog.com>
5563         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5564         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5565         mcpu=bf561-none and mcpu=bf561-0.2.
5566         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5567         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5568         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5569         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5570         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5571         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5572         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
5573         option.
5574         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5575         (cputype_selected): Remove.
5576         (bfin_handle_option): Don't use cputype_selected.
5577         (override_options): When no mcpu option, enable all workarounds.
5578         Don't use bfin_workarounds.
5579         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5580         processor type.
5581         (DEFAULT_CPU_TYPE): Don't define.
5583 2008-05-16  Richard Guenther  <rguenther@suse.de>
5585         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5586         on deletion of the last stmt.
5588 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5590         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5591         V8HImode for SSE2 and V16QImode for SSE4.1.
5593 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
5595         * cgraph.h (compute_inline_parameters): Made public.
5596         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5597         variable_generate_summary, function_write_summary,
5598         variable_write_summary, variable_read_summary.  Added generate_summary,
5599         write_summary, read_summary.
5600         * cgraphunit.c (cgraph_process_new_functions): Changed call from
5601         pass_ipa_inline.function_generate_summary, to
5602         compute_inline_parameters. 
5603         * ipa-inline.c (compute_inline_parameters): Made public and added
5604         node parameter.
5605         (compute_inline_parameters_for_current): New function.
5606         (pass_inline_param): Now calls compute_inline_parameters_for_current.
5607         (inline_generate_summary): Removed parameter and made to loop over
5608         all cgraph nodes.
5609         (pass_ipa_inline): Updated for new IPA_PASS structure.
5610         * passes.c (execute_ipa_summary_passes): Now is called once per
5611         pass rather than once per node*pass.
5612         
5613 2008-05-15  Anatoly Sokolov <aesok@post.ru>
5615         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
5616         avr_have_mul_p, avr_asm_only_p): Remove variables.
5617         (avr_override_options): Remove initialization of removed variables.
5618         (avr_file_start):  Convert removed variables to fields of 
5619         'struct base_arch_s *avr_current_arch'. 
5620         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5621         (AVR_HAVE_MUL): (Ditto.).
5622         (AVR_HAVE_MOVW): (Ditto.).
5623         (AVR_HAVE_LPMX): (Ditto.). 
5624         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
5625         avr_asm_only_p): Remove declaration.
5627 2008-05-15  Diego Novillo  <dnovillo@google.com>
5629         * config/arm/arm.c (arm_return_in_memory): Fix return type.
5630         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5632 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
5634         PR middle-end/36194
5635         * combine.c (check_conversion): Rename back to check_promoted_subreg.
5636         Don't call record_truncated_value from here.
5637         (record_truncated_value): Turn it into a for_each_rtx callback.
5638         (record_truncated_values): New function.
5639         (combine_instructions): Call note_uses with record_truncated_values.
5640         Change name of check_conversion to check_promoted_subreg. 
5642 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5644         * doc/sourcebuild.texi: Document support for torture tests.
5646 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5648         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5649         to alternative 4 of operand 2.
5651 2008-05-15  Richard Guenther  <rguenther@suse.de>
5653         * tree-pass.h (current_pass): Declare.
5654         (get_pass_for_id): Likewise.
5655         * passes.c (passes_by_id, passes_by_id_size): New globals.
5656         (set_pass_for_id): New function.
5657         (get_pass_for_id): Likewise.
5658         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5659         (execute_function_todo): Flush per function statistics.
5660         * toplev.c (compile_file): Init statistics.
5661         (general_init): Do early statistics initialization.
5662         (finalize): Finish statistics.
5663         * statistics.h (statistics_early_init): Declare.
5664         (statistics_init): Likewise.
5665         (statistics_fini): Likewise.
5666         (statistics_fini_pass): Likewise.
5667         (statistics_counter_event): Likewise.
5668         (statistics_histogram_event): Likewise.
5669         * statistics.c: New file.
5670         * Makefile.in (OBJS-common): Add statistics.o.
5671         (statistics.o): Add dependencies.
5672         * doc/invoke.texi (-fdump-statistics): Document.
5674         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5675         (insert): Likewise.
5676         (execute_pre): Use statistics_counter_event.
5677         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5678         (substitute_and_fold): Increment it.  Use statistics_counter_event.
5680 2008-05-15  Diego Novillo  <dnovillo@google.com>
5682         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5684         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5685         * tree-ssa-alias.c (new_type_alias): Remove references to
5686         sub-variables from comment.
5687         * tree-ssa-operands.c (swap_tree_operands): Likewise.
5689 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5691         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5692         attribute to 1 only for insertps alternative.
5694 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5696         * config/bfin/bfin.md (loadbytes): New pattern.
5697         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5698         (bfin_init_builtins): Initialize it.
5699         (bdesc_1arg): Add it.
5701 2008-05-15  Sa Liu  <saliu@de.ibm.com>
5703         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5704         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5705         * testsuite/lib/target-supports.exp: Add
5706         check_effective_target_fortran_integer_16.
5708 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5710         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5711         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5712         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
5713         (TARGET_RETURN_IN_MEMORY): Define.
5715 2008-05-15  Richard Guenther  <rguenther@suse.de>
5717         PR middle-end/36244
5718         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5719         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5720         represent unmodifiable vars.
5722 2008-05-15  Richard Guenther  <rguenther@suse.de>
5724         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5725         INDIRECT_REF and TARGET_MEM_REF.
5726         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5727         TARGET_MEM_REF.
5729 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5730             H.J. Lu  <hongjiu.lu@intel.com>
5732         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5733         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5734         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
5735         insn alternatives.  Add missing alternatives.
5736         (*vec_concatv2di_rex64_sse4_1): Likewise.
5737         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5738         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5739         Require TARGET_SSE.
5741 2008-05-15  Richard Guenther  <rguenther@suse.de>
5743         PR tree-optimization/36009
5744         PR tree-optimization/36204
5745         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5746         (determine_invariantness_stmt): Record the loop a store is
5747         always executed in.
5748         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5749         dependency.
5751 2008-05-15  Richard Guenther  <rguenther@suse.de>
5753         PR tree-optimization/34330
5754         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5755         through the pointer will alias the SMT.
5757 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
5759         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5761 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5763         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5765 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5766             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5768         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5769         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5770         (vashl_optab): New optab for vector/vector shifts.
5771         (vashr_optab): Ditto.
5772         (vlshr_optab): Ditto.
5773         (vrotl_optab): Ditto.
5774         (vrotr_optab): Ditto.
5775         (optab_subtype): New enum for optab_for_tree_code call.
5776         (optab_for_tree_code): Add enum optab_subtype argument.
5778         * optabs.c (optab_for_tree_code): Take an additional argument to
5779         distinguish between a vector shift by a scalar and vector shift by
5780         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
5781         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
5782         vector shift by a vector.
5783         (expand_widen_pattern_expr): Pass additional argument to
5784         optab_for_tree_code.
5786         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5787         vrotl_optab, vrotr_optab.
5789         * expr.c (expand_expr_real_1): Update calls to
5790         optab_for_tree_code to distinguish between vector shifted by a
5791         scalar and vector shifted by a vector.
5792         * tree-vectorizer.c (supportable_widening_operation): Ditto.
5793         (supportable_narrowing_operation): Ditto.
5794         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5795         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5796         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5797         (vect_create_epilog_for_reduction): Ditto.
5798         (vectorizable_reduction): Ditto.
5799         (vectorizable_operation): Ditto.
5800         (vect_strided_store_supported): Ditto.
5801         (vect_strided_load_supported): Ditto.
5802         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5803         * expmed.c (expand_shift): Ditto.
5805         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5806         scalar type.
5807         (ashr@var{m}3): Ditto.
5808         (vashl@var{m}3): Document new vector/vector shift standard name.
5809         (vashr@var{m}3): Ditto.
5810         (vlshr@var{m}3): Ditto.
5811         (vrotl@var{m}3): Ditto.
5812         (vrotr@var{m}3): Ditto.
5814         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5815         (PPERM_INVERT): Ditto.
5816         (PPERM_REVERSE): Ditto.
5817         (PPERM_REV_INV): Ditto.
5818         (PPERM_ZERO): Ditto.
5819         (PPERM_ONES): Ditto.
5820         (PPERM_SIGN): Ditto.
5821         (PPERM_INV_SIGN): Ditto.
5822         (PPERM_SRC1): Ditto.
5823         (PPERM_SRC2): Ditto.
5825         * config/i386/sse.md (mulv2di3): Add SSE5 support.
5826         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5827         allows a memory operand to be the value being added, and split it
5828         to improve vectorization.
5829         (sse5_pmacsdqh_mem): Ditto.
5830         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5831         (sse5_mulv2div2di3_high): Ditto.
5832         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5833         (vec_pack_trunc_v4si): Ditto.
5834         (vec_pack_trunc_v2di): Ditto.
5835         (sse5_pcmov_<mode>): Remove code that tried to use use
5836         andps/andnps instead of pcmov.
5837         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5838         pmacsdqh instructions.
5839         (vec_widen_smult_lo_v4si): Ditto.
5841         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5842         (PPERM_INVERT): Ditto.
5843         (PPERM_REVERSE): Ditto.
5844         (PPERM_REV_INV): Ditto.
5845         (PPERM_ZERO): Ditto.
5846         (PPERM_ONES): Ditto.
5847         (PPERM_SIGN): Ditto.
5848         (PPERM_INV_SIGN): Ditto.
5849         (PPERM_SRC1): Ditto.
5850         (PPERM_SRC2): Ditto.
5851         (ix86_expand_sse_movcc): Move the SSE5 test after the if
5852         true/false tests.
5853         (ix86_expand_int_vcond): If SSE5 generate all possible integer
5854         comparisons.
5855         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5856         says ignore whether the last reference is a memory operand.
5858 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5859             Paolo Bonzini <bonzini at gnu dot org>
5861         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5862         shift patterns.
5864         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5865         (vlshr<mode>3): Rename from vlshr<mode>3.
5866         (vashr<mode>3): Rename from vashr<mode>3.
5867         (mulv4sf3): Change the names of vector shift patterns.
5868         (mulv4si3): Ditto.
5869         (negv4sf2): Ditt.
5871         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5872         shift insns.
5874         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5875         (SI_SHLHI): Ditto.
5876         (SI_SHL): Ditto.
5877         (SI_SHLI): Ditto.
5878         (SI_ROTH): Ditto.
5879         (SI_ROTHI): Ditto.
5880         (SI_ROT): Ditto.
5881         (SI_ROTI): Ditto.
5882         (SPU_RL_0): Ditto.
5883         (SPU_RL_1): Ditto.
5884         (SPU_RL_2): Ditto.
5885         (SPU_RL_3): Ditto.
5886         (SPU_RL_4): Ditto.
5887         (SPU_RL_5): Ditto.
5888         (SPU_RL_6): Ditto.
5889         (SPU_RL_7): Ditto.
5890         (SPU_SL_0): Ditto.
5891         (SPU_SL_1): Ditto.
5892         (SPU_SL_2): Ditto.
5893         (SPU_SL_3): Ditto.
5894         (SPU_SL_4): Ditto.
5895         (SPU_SL_5): Ditto.
5896         (SPU_SL_6): Ditto.
5897         (SPU_SL_7): Ditto.
5899         * config/spu/spu.md (v): New iterator macro to add v for vector types.
5900         (floatunssidf2_internal): Change vector/vector shift names.
5901         (floatunsdidf2_internal): Ditto.
5902         (mulv8hi3): Ditto.
5903         (ashrdi3): Ditto.
5904         (ashrti3): Ditto.
5905         (cgt_df): Ditto.
5906         (cgt_v2df): Ditto.
5907         (dftsv): Ditto.
5908         (vashl<mode>3): Rename from ashl<mode>3.
5909         (vashr<mode>3): Rename from ashr<mode>3.
5910         (vlshr<mode>3): Rename from lshr<mode>3.
5911         (vrotl<mode>3): Rename from rotl<mode>3.
5913 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5915         PR target/36224
5916         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
5917         multiply gives the wrong value when doing widening multiplies.
5918         (vec_widen_smult_lo_v4si): Ditto.
5920 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5922         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
5923         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
5924         emit_library_call_value. 
5925         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
5926         * tree.h (ECF_LIBCALL_BLOCK): Removed.
5927         * calls.c (initialize_argument_information, precompute_arguments, 
5928         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
5929         (precompute_arguments): Removed flags parameter.
5930         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
5931         
5932 2008-05-14  Richard Guenther  <rguenther@suse.de>
5934         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
5935         Make sure to register the store if the use is a PHI_NODE.
5937 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5939         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
5940         memory if the component is to be referenced in BLKmode according
5941         to get_inner_reference.
5943 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
5945         * calls.c (emit_library_call_value_1): Restore code clearing
5946         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
5948 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5949             Nicolas Roche  <roche@adacore.com>
5951         * configure.ac: Add support for a "gcc_subdir" variable in
5952         config-lang.in, to denote a subdirectory where the language/GCC
5953         integration files are to be found.
5954         * configure: Regenerate.
5956 2008-05-14  Ira Rosen  <irar@il.ibm.com>
5958         PR tree-optimization/36098
5959         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
5960         value for the first load in the group in case of a gap.
5961         (vect_build_slp_tree): Check that there are no gaps in loads.
5963 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5965         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
5966         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
5967         expand_copysign_bit, ): Change call to emit_no_conflict_block to
5968         emit_insn and remove unneeded code to construct extra args.
5969         (emit_no_conflict_block): Removed.
5970         * optabls.h: (emit_no_conflict_block): Removed.
5971         * cse.c (cse_extended_basic_block): Remove search for
5972         REG_NO_CONFLICT note.
5973         * global.c: Removed incorrect comment added in revision 117.
5974         * expr.c (convert_move): Change call to emit_no_conflict_block to
5975         emit_insn.
5976         * recog.c: Change comments so that they do not mention
5977         REG_NO_CONFLICT.
5978         * local_alloc.c (combine_regs): Removed last parameter.
5979         (no_conflict_p): Removed.
5980         (block_alloc): Removed note, no_conflict_combined_regno and set
5981         local vars. Removed all code to process REG_NO_CONFLICT blocks.
5982         (combine_regs): Removed already_dead and code to look for
5983         REG_NO_CONFLICT notes.
5984         * lower_subreg (remove_retval_note): Removed code to look for
5985         REG_NO_CONFLICT block.
5986         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
5987         (resolve_clobber): Remove code to process libcalls that have
5988         REG_NO_CONFLICT notes.
5989         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
5990         case.
5991         * combine.c (can_combine_p, distribute_notes):  Removed
5992         REG_NO_CONFLICT case.
5993         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
5994         to emit_insns.
5995         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
5996         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
5997         Ditto.
5998         * reg-notes.def (NO_CONFLICT): Removed.
6000 2008-05-14  David S. Miller  <davem@davemloft.net>
6002         * config/sparc/sparc.c (sparc_profile_hook): If
6003         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6004         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6005         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6007 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
6009         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6011 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
6013         PR target/36222
6014         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6015         and op1 expansion before vector concat to have less live pseudos.
6017 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6019         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6020         ix86_expand_vector_set if supported.
6022 2008-05-13  Diego Novillo  <dnovillo@google.com>
6023             Kenneth Zadeck  <zadeck@naturalbridge.com>
6025         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6027         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6028         phinodes_print_statistics, init_ssanames, fini_ssanames,
6029         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6030         release_ssa_name, release_defs, replace_ssa_name_symbol,
6031         ssanames_print_statistics): Move ...
6032         * tree-flow.h: ... here.
6033         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6034         Use FN instead of cfun.
6035         (make_ssa_name_fn): Rename from make_ssa_name.
6036         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6037         * tree-flow-inline.h (make_ssa_name): Move from
6038         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
6039         * omp-low.c (expand_omp_parallel):
6040         * tree-flow-inline.h (redirect_edge_var_map_result):
6041         * tree-ssa.c (init_tree_ssa): Add argument FN.
6042         Use it instead of cfun.  Update all users.
6044 2008-05-13  Tom Tromey  <tromey@redhat.com>
6046         PR preprocessor/22168:
6047         * doc/cpp.texi (Top): Update menu.
6048         (Alternatives to Wrapper #ifndef): New node.
6049         (Other Directives): Document deprecation.
6050         (Obsolete Features): Remove menu.
6051         (Assertions): Merge node into Obsolete Features.
6052         (Obsolete once-only headers): Move earlier; rename to Alternatives
6053         to Wrapper #ifndef.
6054         * doc/cppopts.texi: Update.
6055         * c.opt (Wdeprecated): Enable for C and ObjC.
6056         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
6057         (C++ Dialect Options): Move -Wno-deprecated from here to...
6058         (Warning Options): ... here.
6060 2008-05-13  Richard Guenther  <rguenther@suse.de>
6062         PR middle-end/36227
6063         * fold-const.c (fold_sign_changed_comparison): Do not allow
6064         changes in pointer-ness.
6066 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6068         PR target/24713
6069         * config/sh/sh.c (sh_expand_prologue): Don't clear
6070         RTX_FRAME_RELATED_P for push insns.
6072 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
6074         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
6076 2008-05-12  Anatoly Sokolov <aesok@post.ru>
6078         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
6079         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
6080         Use 'machine->is_leaf' instead of 'leaf_func_p'.
6082 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
6084         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6085         (*vec_concatv4sf_sse): This.
6086         (*sse2_concatv2si): Renamed to ...
6087         (*vec_concatv2si_sse2): This.
6088         (*sse1_concatv2si): Renamed to ...
6089         (*vec_concatv2si_sse): This.
6090         (*vec_concatv2di_rex): Renamed to ...
6091         (*vec_concatv2di_rex64): This.
6092         (*vec_concatv2si_sse4_1): New.
6093         (*vec_concatv2di_rex64_sse4_1): Likewise.
6095 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
6097         PR rtl-optimization/36111
6098         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6099         that was created for swappable operands.
6101 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
6103         PR ada/36001
6104         * Makefile.in: Substitute GNATMAKE and GNATBIND.
6105         * configure.ac: Add call to ACX_PROG_GNAT.
6107 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
6109         * optc-gen.awk: Fix comment typo.
6111 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6113         * pretty-print.c (pp_integer_with_precision): Use
6114         HOST_LONG_LONG_FORMAT.
6116 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
6118         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6119                 
6120 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6122         * config/i386/i386.c (bdesc_ptest): Removed.
6123         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6124         (bdesc_args): Add __builtin_ia32_ptestz128,
6125         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6126         (ix86_init_mmx_sse_builtins): Updated.
6127         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6128         (ix86_expand_builtin): Updated.
6130 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
6132         * tree-cfg.c (valid_fixed_convert_types_p): New function.
6133         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6135 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
6137         * value-prof.c (interesting_stringop_to_profile): Do not
6138         return early for BUILT_IN_MEMPCPY.
6140 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6142         * calls.c (expand_call): Don't use callgraph to increase
6143         preferred_stack_boundary.
6145         * cgraph.h (cgraph_rtl_info): Use unsigned on
6146         preferred_incoming_stack_boundary.
6148         * final.c (rest_of_clean_state): Use unsigned on
6149         preferred_stack_boundary.
6151 2008-05-09  Tom Tromey  <tromey@redhat.com>
6153         PR preprocessor/22231:
6154         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6155         proceeding.
6157 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
6159         PR tree-optimization/36129
6160         * tree-ssa-ccp.c: Include value-prof.h.
6161         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6162         built-in function was folded to a constant.
6163         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6165 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
6166             Sebastian Pop  <sebastian.pop@amd.com>
6168         * tree-scalar-evolution.c: Document instantiate_scev.
6169         (instantiate_parameters_1): Renamed instantiate_scev_1.
6170         Don't use the same loop for instantiation_loop and evolution_loop.
6171         (instantiate_scev): New.
6172         (instantiate_parameters): Moved...
6173         (resolve_mixers): Update call to instantiate_scev_1 to pass the
6174         same loop twice.  Maintains the semantics for this function.
6175         * tree-scalar-evolution.h (instantiate_scev): Declare.
6176         (instantiate_parameters): ...here.  Now static inline.
6177         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6178         instead of resolve_mixers.
6180 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6182         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6184 2008-05-09  Tomas Bily  <tbily@suse.cz>
6186         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6187         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6188         * tree-ssa-structalias.c (get_constraint_for): Likewise.
6189         * c-common.c (c_common_truthvalue_conversion): Likewise.
6190         * tree-object-size.c (compute_object_offset): Likewise.
6191         * tree-inline.c (estimate_num_insns_1): Likewise.
6192         * varasm.c (const_hash_1, compare_constant, copy_constant)
6193         (compute_reloc_for_constant, output_addressed_constants)
6194         (initializer_constant_valid_p): Likewise.
6195         * c-omp.c (check_omp_for_incr_expr): Likewise.
6196         * gimplify.c (gimplify_expr): Likewise.
6197         * c-typeck.c (c_finish_return): Likewise.
6198         * tree-vectorizer.c (supportable_widening_operation)
6199         (supportable_narrowing_operation): Likewise.
6200         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6201         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6202         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6203         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6204         (descr_info_loc): Likewise.
6205         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6206         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6207         (fold_unary): Likewise.
6208         * builtins.c (get_pointer_alignment): Likewise.
6209         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6210         (instantiate_parameters_1): Likewise.
6211         * tree.c (expr_align, stabilize_reference): Likewise.
6212         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6213         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6214         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6215         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6216         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6217         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6218         Likewise.
6219         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6220         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6221         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6222         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6223         (forward_propagate_comparison)
6224         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6225         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6226         * emit-rtl.c (component_ref_for_mem_expr)
6227         (set_mem_attributes_minus_bitpos): Likewise.
6228         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6229         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6230         Likewise.
6231         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6232         (build_function_call, pointer_diff, build_compound_expr)
6233         (c_finish_return): Likewise.
6234         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6235         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6236         Likewise.
6237         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6238         * expr.c (is_aligning_offset): Likewise.
6239         * tree-ssa-alias.c (is_escape_site): Likewise.
6240         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6241         (check_all_va_list_escapes): Likewise.
6242         * tree-ssa-loop-ivopts.c (determine_base_object)
6243         (determine_common_wider_type): Likewise.
6244         * dojump.c (do_jump): Likewise.
6245         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6246         * tree-gimple.c (is_gimple_cast): Likewise.
6247         * fold-const.c (decode_field_reference, )
6248         (fold_sign_changed_comparison, fold_unary, fold_comparison)
6249         (fold_binary): Likewise.
6250         * tree-ssa-alias-warnings.c (find_alias_site_helper)
6251         (already_warned_in_frontend_p): Likewise.
6252         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6253         * tree.c (really_constant_p, get_unwidened): Likewise.
6254         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6255         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6256         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6257         Likewise.
6258         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6259         CONVERT_EXPR_P.
6260         (CONVERT_EXPR_P): Define.
6261         (CASE_CONVERT): Define.
6262         
6263 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
6265         PR middle-end/36117
6266         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6267         (delete_unmarked_insns): When deleting a call, call
6268         delete_unreachable_blocks.
6269         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6270         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6272 2008-05-08  Richard Guenther  <rguenther@suse.de>
6274         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6275         (-ftree-salias): Likewise.
6276         (salias-max-implicit-fields): Remove param documentation.
6277         (salias-max-array-elements): Likewise.
6278         * tree-pass.h (pass_create_structure_vars): Remove.
6279         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6280         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6281         * tree-ssa-alias.c (create_structure_vars): Remove.
6282         (gate_structure_vars): Likewise.
6283         (pass_create_structure_vars): Likewise.
6284         (gate_build_alias): Likewise.
6285         (pass_build_alias): Adjust to run always and dump the function.
6286         * common.opt (ftree-salias): Hide.
6287         * passes.c (init_optimization_passes): Remove
6288         pass_create_structure_vars, adjust comment.
6289         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6290         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6291         * opts.c (decode_options): Do not set flag_tree_salias.
6292         (common_handle_option): Add OPT_ftree_salias to the backward
6293         compatibility section.
6295 2008-05-08  Richard Guenther  <rguenther@suse.de>
6297         * tree-flow-inline.h (var_can_have_subvars): Move ...
6298         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6299         * tree-flow.h (var_can_have_subvars): Remove.
6300         (push_fields_onto_fieldstack): Remove.
6301         (sort_fieldstack): Likewise.
6302         (struct fieldoff): Move ...
6303         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
6304         alias_set and base_for_components fields.
6305         (sort_fieldstack): Make static.
6306         (push_fields_onto_fieldstack): Likewise.  Remove code that
6307         handles anything but RECORD_TYPEs.  Remove alias_set and
6308         base_for_components handling.
6309         (create_variable_info_for): Adjust.
6311 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
6313         * common.opt (Wframe-larger-than=): Shorten the help message
6314         to one line.
6315         * doc/invoke.texi (Wframe-larger-than=): Add more description.
6317 2008-05-08  Rafael Espindola  <espindola@google.com>
6319         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6320         trap.
6321         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6322         trap and that both operands are gimple values.
6323         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6324         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6325         is a fp operation.
6327 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6329         * read-rtl.c (join_c_conditions): Return the first string if the
6330         two strings are equal.
6332 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6334         * gensupport.h (pred_data): Add a "num_codes" field.
6335         (add_predicate_code): Declare.
6336         * gensupport.c (add_predicate_code): New function.
6337         (std_pred_table): Add an "allows_const_p" field.
6338         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6339         Remove the (incomplete) list of such codes from the codes field.
6340         (init_predicate_table): Use add_predicate_code.  Add all
6341         RTX_CONST_OBJs if allows_const_p is true.
6342         * genrecog.c (process_define_predicate): Use add_predicate_code.
6344 2008-05-08  David Daney  <ddaney@avtrex.com>
6345             Richard Sandiford  <rsandifo@nildram.co.uk>
6346         
6347         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6348         special case of constant zero operands.
6349         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6350         old and new values.  Special case constant zero values.
6351         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6352         fails.
6353         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6354         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6356 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
6358         PR target/36090
6359         * simplify-rtx.c (simplify_plus_minus): Create CONST of
6360         similar RTX_CONST_OBJ before CONST_INT.
6362 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
6364         * stmt.c (expand_stack_restore): Change sa mode if needed.
6366 2008-05-08  Richard Guenther  <rguenther@suse.de>
6368         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6369         return type to bool.
6370         (ix86_sol10_return_in_memory): Likewise.
6371         (ix86_i386elf_return_in_memory): Likewise.
6372         (ix86_i386interix_return_in_memory): Likewise.
6373         * config/i386/i386.c (ix86_return_in_memory): Likewise.
6374         (ix86_sol10_return_in_memory): Likewise.
6375         (ix86_i386elf_return_in_memory): Likewise.
6376         (ix86_i386interix_return_in_memory): Likewise.
6378 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6380         PR bootstrap/36180
6381         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6382         fndecl argument.
6383         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6384         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6385         declared in front.
6387 2008-05-08  Richard Guenther  <rguenther@suse.de>
6389         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6390         * tree-data-ref.h (struct dr_alias): Remove subvars field.
6391         (DR_SUBVARS): Remove.
6392         * tree-dfa.c (dump_subvars_for): Remove.
6393         (debug_subvars_for): Likewise.
6394         (dump_variable): Do not dump subvars.
6395         (remove_referenced_var): Do not remove subvars.
6396         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6397         (lookup_subvars_for_var): Remove.
6398         (get_subvars_for_var): Likewise.
6399         (get_subvars_at): Likewise.
6400         (get_first_overlapping_subvar): Likewise.
6401         (overlap_subvar): Likewise.
6402         * tree-flow.h (subvar_t): Remove.
6403         (struct var_ann_d): Remove subvars field.
6404         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6405         argument.  Remove special handling of SFTs.
6406         (compute_tag_properties): Likewise.
6407         (set_initial_properties): Likewise.
6408         (compute_call_clobbered): Likewise.
6409         (count_mem_refs): Likewise.
6410         (compute_memory_partitions): Likewise.
6411         (compute_flow_insensitive_aliasing): Likewise.
6412         (setup_pointers_and_addressables): Likewise.
6413         (new_type_alias): Likewise.
6414         (struct used_part): Remove.
6415         (used_portions): Likewise.
6416         (struct used_part_map): Likewise.
6417         (used_part_map_eq): Likewise.
6418         (used_part_map_hash): Likewise.
6419         (free_used_part_map): Likewise.
6420         (up_lookup): Likewise.
6421         (up_insert): Likewise.
6422         (get_or_create_used_part_for): Likewise.
6423         (create_sft): Likewise.
6424         (create_overlap_variables_for): Likewise.
6425         (find_used_portions): Likewise.
6426         (create_structure_vars): Likewise.
6427         * tree.def (STRUCT_FIELD_TAG): Remove.
6428         * tree.h (MTAG_P): Adjust.
6429         (struct tree_memory_tag): Remove base_for_components and
6430         unpartitionable flags.
6431         (struct tree_struct_field_tag): Remove.
6432         (SFT_PARENT_VAR): Likewise.
6433         (SFT_OFFSET): Likewise.
6434         (SFT_SIZE): Likewise.
6435         (SFT_NONADDRESSABLE_P): Likewise.
6436         (SFT_ALIAS_SET): Likewise.
6437         (SFT_UNPARTITIONABLE_P): Likewise.
6438         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6439         (union tree_node): Remove sft field.
6440         * alias.c (get_alias_set): Remove special handling of SFTs.
6441         * print-tree.c (print_node): Remove handling of SFTs.
6442         * tree-dump.c (dequeue_and_dump): Likewise.
6443         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6444         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6445         * tree-predcom.c (set_alias_info): Do not set subvars.
6446         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6447         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6448         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6449         (add_vars_for_offset): Remove.
6450         (add_virtual_operand): Remove special handling of SFTs.
6451         (add_call_clobber_ops): Likewise.
6452         (add_call_read_ops): Likewise.
6453         (get_asm_expr_operands): Likewise.
6454         (get_modify_stmt_operands): Likewise.
6455         (get_expr_operands): Likewise.
6456         (add_to_addressable_set): Likewise.
6457         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6458         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6459         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6460         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6461         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6462         (tree_node_structure): Likewise.
6463         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6464         handling of SFTs.
6465         (find_what_p_points_to): Likewise.
6467 2008-05-08  Sa Liu  <saliu@de.ibm.com>
6469         * config/spu/spu.md: Fixed subti3 pattern.
6471 2008-05-08  Richard Guenther  <rguenther@suse.de>
6473         PR middle-end/36154
6474         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6475         sure to create a representative for trailing arrays for PTA.
6477 2008-05-08  Richard Guenther  <rguenther@suse.de>
6479         PR middle-end/36172
6480         * fold-const.c (operand_equal_p): Two objects which types
6481         differ in pointerness are not equal.
6483 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6485         * calls.c (compute_argument_block_size): Add argument tree fndecl.
6486         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6487         (emit_library_call_value_1): Add new variable fndecl initialized by
6488         NULL_TREE. It should be the decl type of orgfun, but this information
6489         seems not to be available here, so it uses the default calling abi.
6490         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6491         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6492         by TARGET_RETURN_IN_MEMORY.
6493         * config/i386/i386-interix.h: Likewise.
6494         * config/i386/i386.h: Likewise.
6495         * config/i386/i386elf.h: Likewise.
6496         * config/i386/ptx4-i.h: Likewise.
6497         * config/i386/sol2-10.h: Likewise.
6498         * config/i386/sysv4.h: Likewise.
6499         * config/i386/vx-common.h: Likewise.
6500         * config/cris/cris.h: Removed #if 0 clause.
6501         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6502         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6503         argument.
6504         (ix86_sol10_return_in_memory): Likewise.
6505         (ix86_i386elf_return_in_memory): New.
6506         (ix86_i386interix_return_in_memory): New.
6507         * config/mt/mt-protos.h (mt_return_in_memory): New.
6508         * config/mt/mt.c: Likewise.
6509         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6510         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
6511         * config/bfin/bfin.h: Likewise.
6512         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6513         argument.
6514         * config/bfin/bfin.c: Likewise.
6515         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6516         * config/alpha/unicosmk.h: Likewise.
6517         * config/i386/cygming.h: Likewise.
6518         * config/iq2000/iq2000.h: Likewise.
6519         * config/mips/mips.h: Likewise.
6520         * config/mn10300/mn10300.h: Likewise.
6521         * config/rs6000/rs6000.h: Likewise.
6522         * config/score/score.h: Likewise.
6523         * config/spu/spu.h: Likewise.
6524         * config/v850/v850.h: Likewise.
6525         * defaults.h: Likewise.
6526         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6527         * expr.c (emit_block_move): Adjust use of
6528         OUTGOING_REG_PARM_STACK_SPACE.
6529         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6530         OUTGOING_REG_PARM_STACK_SPACE.
6531         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6533 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
6535         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6536         on OMP_RETURN for OMP_FOR.
6538         PR debug/35896
6539         * dwarf2out.c (dw_expand_expr, common_check): Removed.
6540         (fortran_common): New function.
6541         (gen_variable_die): Call fortran_common instead of common_check,
6542         adjust for it returning tree instead of rtx.  Formatting.
6544 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6546         PR rtl/7335
6547         PR rtl/33826
6548         * see.c (see_copy_insn): Copy new pure const attributes for new call.
6549         * c-decl.c (merge_decls): Ditto.
6550         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6551         to RTL_CONST_OR_PURE_CALL_P.
6552         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6553         Initialized DECL_LOOPING_CONST_PURE.
6554         (process_call_operands): Set tree_side_effects properly.
6555         * tree.h (TREE_READONLY_DECL_P): Removed.
6556         (DECL_IS_PURE): Renamed to DECL_PURE_P.
6557         (DECL_LOOPING_OR_CONST_P): New macro.
6558         (struct tree_function_decl): Added looping_const_or_pure_p.
6559         (ECF_*) Renumbered.
6560         (ECF_LOOPING_OR_CONST_P): New macro.
6561         * rtlanal.c (pure_const_p): Removed.
6562         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6563         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6564         to RTL_CONST_CALL_P.
6565         * ipa-pure-const.c (pure_const_state_e): Added looping field.
6566         (check_decl, check_tree, check_call, scan_function): Initialize
6567         looping.
6568         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6569         (static_execute): Set looping true for recursive functions.
6570         Undo setting state to IPA_NEITHER for recursive functions.
6571         * cse.c (cse_insn): 
6572         * ifcvt.c (noce_can_store_speculate_p): Changed
6573         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
6574         RTL_CONST_OR_PURE_CALL_P.
6575         * dse.c (scan_insn): Ditto.
6576         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6577         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6578         RTL_CONST_OR_PURE_CALL_P.
6579         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6580         pure_call_p to RTL_CONST_CALL_P.
6581         * gimplify.c (gimplify_call_expr): Clear side effects for
6582         non-looping pure and constant calls.
6583         * calls.c (emit_call_1): Set rtl flags from ecf flags.
6584         (flags_from_decl_or_type): Set ecf flags from decl flags.
6585         (initialize_argument_information): Turn off
6586         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6587         Change const to pure if callee_copies is true rather than just
6588         turning off const.
6589         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6590         way of marking pure calls.
6591         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6592         Remove hack that was supposed to fix pr7335 and remove old
6593         way of marking pure calls.
6594         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6595         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6596         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6597         RTL_CONST_OR_PURE_CALL_P.
6598         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6599         * loop-invariant.c (find_exits, find_invariant_bb): Changed
6600         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6601         * sched-deps.c (schedule_analyze): Ditto.
6602         * rtl.h (struct rtx_def): Use call field, unchanging field, and
6603         return_val field of calls to represent pure and const function info.
6604         (CONST_OR_PURE_CALL_P): Deleted macro.
6605         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6606         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6607         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6608         TREE_READONLY.
6609         * tree-optimize.c (execute_fixup_cfg): Added test for
6610         ECF_LOOPING_CONST_OR_PURE.
6611         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6612         DECL_PURE_P.
6613         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6614         effects for looping pure or const calls.
6615         (verify_gimple_expr): Added verification code. 
6616         * config/alpha/alpha.c (alpha_legitimize_address,
6617         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6618         RTL_CONST_CALL_P.
6619         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6620         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6621         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6622         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6623         RTL_CONST_OR_PURE_CALL_P.
6624         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6625         and const calls to be deleted.
6627 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6629         PR target/35714
6630         * config/i386/mmx.md (mmx_subv2sf3): New expander.
6631         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6632         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6633         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6634         to handle nonimmediate operands.
6635         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6636         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
6637         to handle nonimmediate operands.
6638         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6639         (mmx_pmulhrwv4hi3): New expander.  Use
6640         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6641         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6642         (sse2_umulv1siv1di3): New expander.  Use
6643         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6644         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6645         (mmx_eq<mode>3): New expander.  Use
6646         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6647         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6648         (mmx_uavgv8qi3): New expander.  Use
6649         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6650         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6651         (mmx_uavgv4hi3): New expander.  Use
6652         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6654         * config/i386/sse.md
6655         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
6656         to handle nonimmediate operands.
6657         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
6658         to handle nonimmediate operands.
6659         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
6660         to handle nonimmediate operands.
6661         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
6662         to handle nonimmediate operands.
6663         (sse2_unpckhpd_exp): New expander.  Use
6664         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6665         (sse2_unpcklpd_exp): New expander.  Use
6666         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6667         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
6668         to handle nonimmediate operands.
6669         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
6670         to handle nonimmediate operands.
6671         (*sse2_<plusminus_insn><mode>3): Rename from
6672         sse2_<plusminus_insn><mode>3 insn pattern.
6673         (sse2_<plusminus_insn><mode>3): New expander.  Use
6674         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6675         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6676         (sse2_umulv2siv2di3): New expander.  Use
6677         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6678         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6679         (sse4_1_mulv2siv2di3): New expander.  Use
6680         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6681         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6682         (sse2_pmaddwd): New expander.  Use
6683         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6684         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6685         (sse2_eq<mode>3): New expander.  Use
6686         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6687         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6688         (sse4_1_eqv2di3): New expander.  Use
6689         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6690         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6691         (sse2_uavgv16qi3): New expander.  Use
6692         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6693         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6694         (sse2_uavgv16qi3): New expander.  Use
6695         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6696         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6697         (sse2_uavgv8hi3): New expander.  Use
6698         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6699         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6700         (ssse3_pmulhrswv8hi3): New expander.  Use
6701         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6702         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6703         (ssse3_pmulhrswv4hi3): New expander.  Use
6704         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6706         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6707         (<sse>_vmmul<mode>3): Ditto.
6708         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6709         (divv2df3): Ditto.
6710         (ssse3_pmaddubsw128): Use register_operand for operand 1.
6711         (ssse3_pmaddubsw): Ditto.
6713         * config/i386/i386.c (struct_builtin_description)
6714         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6715         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6716         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6717         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6718         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6719         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6720         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6721         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6722         (ix86_fixup_binary_operands): Assert that src1
6723         and src2 must have the same mode when swapped.
6724         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6725         and ix86_binary_operator_ok.  Do not force operands in registers
6726         when optimizing.
6728 2008-05-07  Jan Hubicka  <jh@suse.cz>
6730         * cgraph.c (dump_cgraph_node): Update.
6731         * cgraph.h (cgraph_local_info): Break out inline summary.
6732         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6733         hook.
6734         * ipa-inline (inline_summary): New accestor function.
6735         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6736         cgraph_decide_inlining, compute_inline_parameters): Update.
6737         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6739 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
6741         Cleanup ColdFire scheduling support and add V4 pipeline model.
6743         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6744         (define_attr cpu): Add cfv4 value.
6745         (define_attr type, define_attr type1): Merge into a single 'type'
6746         attribute.  Update all uses.
6747         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6748         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
6749         Update all uses.
6750         (define_attr opx_mem, define_attr opy_mem): Remove.
6751         (define_attr op_mem): Clean up, update comment.
6752         (define_attr size): Use specific values instead of general int.
6753         (define_attr guess, define_attr split): Remove.  Update all uses.
6754         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6755         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6756         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6757         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6758         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6759         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6760         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6761         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6762         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6763         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6764         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6765         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6766         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6767         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6768         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6769         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6770         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6771         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6772         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6773         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6774         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6775         Update or set attributes.
6776         (stack_tie): New fake instruction.
6778         * config/m68k/m68k.h (TUNE_CFV4): New macro.
6779         (m68k_sched_attr_size): Update declaration.
6780         (m68k_sched_attr_type2): Remove.
6781         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6782         Declare new bypass predicates.
6784         * config/m68k/m68k.c (m68k_sched_issue_rate,
6785         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6786         implementations.
6787         (TARGET_SCHED_ISSUE_RATE,
6788         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6789         (override_options): Handle scheduling for ColdFire V4 core.
6790         (m68k_expand_prologue): Emit stack_tie.
6791         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6792         'OP_TYPE_FPN'.  Update all uses.
6793         (sched_guess_p): Remove.
6794         (sched_address_type): Handle symbolic addresses.
6795         (sched_get_operand): New static function.
6796         (sched_operand_type): Merge into sched_attr_op_type.
6797         (sched_attr_op_type): Handle FP registers, handle quick constants,
6798         update.
6799         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6800         (m68k_sched_attr_size): Update.  Move logic to ...
6801         (sched_get_attr_size_int): New static function.
6802         (sched_get_opxy_mem_type): New static function.
6803         (m68k_sched_attr_op_mem): Update.
6804         (m68k_sched_attr_type2): Remove.
6805         (sched_cfv4_bypass_data): New static variable.
6806         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6807         (m68k_sched_issue_rate): Implement scheduler hook.
6808         (struct _sched_ib: enabled_p): New field.
6809         (m68k_sched_variable_issue): Update.  Handle V4.
6810         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6811         sched_dump_class_func_t, sched_dump_split_class,
6812         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6813         sched_dump_dfa_class, m68k_sched_dump): Remove.
6814         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6815         hook.
6816         (m68k_sched_init_global): Remove statisctics dumping, introduce
6817         sanity check that all instructions have pipeline reservations.  Handle
6818         ColdFire V4 core.
6819         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6820         Handle ColdFire V4 core.
6821         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6822         New static functions.
6823         (m68k_sched_address_bypass_p): New bypass predicate.
6824         (sched_get_indexed_address_scale): New static function.
6825         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6827         * cf.md: Update comments.
6828         (define_attr type2): Remove.  Use 'type' attribute instead.
6829         Update all uses.
6830         (cf_ib): Rename to cfv123_ib.  Update all uses.
6831         (cf_oep): Rename to cfv123_oep.  Update all uses.
6832         (cf_chr): Rename to cfv123_chr.  Update all uses.
6833         (cf_mem): Rename to cfv123_mem.  Update all uses.
6834         (cf_mac): Move to more appropriate place.
6835         (cfv123_guess): New automaton and cpu_unit.
6836         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6837         Update uses of 'size' attribute.  Handle before reload scheduling.
6838         (cfv123_guess): New dummy reservation for unhandled instructions.
6839         (cfv4_*): Pipeline description of ColdFire V4 core.
6840         (ignore): New reservation to handle 'ignore' type.
6842 2008-05-07  Ian Lance Taylor  <iant@google.com>
6844         PR middle-end/36013
6845         * gimplify.c (find_single_pointer_decl_1): Don't look through
6846         indirections.
6847         (find_single_pointer_decl): Adjust comments.
6849 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
6851         PR middle-end/36137
6852         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6853         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6855         PR middle-end/36106
6856         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6857         integral type rather than floating point, then VIEW_CONVERT_EXPR
6858         to the floating point type.
6860 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6862         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6863         TFmode op0 to register.
6865 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
6867         * c-decl.c (grokdeclarator): Comment typo.
6869 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
6871         * tree-flow.h: Remove prototype for computed_goto_p.
6872         * tree-cfg.c (computed_goto_p): Make static.
6874 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
6876         PR target/35657
6877         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6878         (contains_aligned_value_p): This.  Handle _Decimal128.
6879         (ix86_function_arg_boundary): Only align _Decimal128 to its
6880         natural boundary and handle it properly.
6882 2008-05-06  Martin Jambor  <mjambor@suse.cz>
6884         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6885         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6886         (ipcp_method_set_orig_node): Removed.
6887         (ipcp_cval_get_cvalue_type): Removed.
6888         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6889         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6890         (ipcp_cval_set_cvalue_type): Removed.
6891         (ipcp_cval_get_cvalue): Removed.
6892         (ipcp_cval_set_cvalue): Removed.
6893         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6894         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6895         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6896         (ipcp_cval_meet): Renamed to ipa_lattice_meet
6897         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6898         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6899         (ipcp_get_ith_lattice): Changed parameters.
6900         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6901         (ipcp_lattice_from_jfunc): Changed parameters.
6902         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6903         (ipcp_method_cval_print): Added temporary variable info.
6904         (ipcp_redirect): Removed already unused local variable caller.
6905         (ipcp_redirect): New temporary variable orig_callee_info
6906         (ipcp_redirect): Removed newly unused local variable callee.
6907         (ipcp_redirect): Removed (a bit confusing) local variable type.
6908         (ipcp_insert_stage): Added local variable info.
6909         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
6910         renamed too
6911         (ipcp_formal_create): Removed.
6912         (ipcp_method_cval_set): Removed.
6913         (ipcp_propagate_stage): Renamed lattice variables.
6914         (ipcp_method_cval_set_cvalue_type): Removed.
6915         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
6916         (ipcp_print_all_lattices): Changed printed strings to refer to 
6917         lattices rather than cvals.
6918         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
6919         (ipcp_propagate_const): Changed formal parameters.
6920         (build_const_val): Changed formal parameters.
6921         (ipcp_insert_stage): Removed useless variable cvalue
6922         (build_const_val): Changed formal parameters.
6923         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
6924         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
6925         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
6926         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
6927         (ipcp_print_func_profile_counts): Changed string from "method" to 
6928         "function"
6929         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
6930         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
6931         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
6932         (ipcp_structures_print): Renamed to ipcp_print_all_structures
6933         (ipcp_profile_print): Renamed to ipcp_print_profile_data
6934         (ipcp_lat_is_const): Changed parameters and made inline.
6935         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
6936         (ipcp_redirect): Renamed to ipcp_need_redirect_p
6937         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
6938         the predicate condition directly
6939         (ipcp_propagate_stage): Added local variable args. Removed local
6940         variable callee.  (Both are mere code simplifications.)
6941         (ipcp_method_dont_insert_const): Renamed to
6942         ipcp_node_not_modifiable_p.
6943         (ipcp_node_not_modifiable_p): Made inline.
6944         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
6945         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
6946         (ipcp_print_all_lattices): Removed variable cvalue
6947         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
6948         Updated comments.
6950 2008-05-06  Olivier Hainque  <hainque@adacore.com>
6952         * tree-sra.c (try_instantiate_multiple_fields): Early return
6953         if field has POINTER_TYPE.
6955 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
6957         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
6958         by using 'q' specifier for instruction.
6959         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
6961 2008-05-06  Anatoly Sokolov <aesok@post.ru>
6963         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6964         Change mode of zero_extract from QImode to HImode.
6965         (sign bit tests peepholes): (Ditto.).
6967 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
6969         * config/i386/mmx.md: Remove double backslashes from asm templates.
6970         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
6971         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6972         to handle nonimmediate operands.
6973         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
6974         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6975         to handle nonimmediate operands.
6976         (*mmx_<code>v2sf3_finite): New insn pattern.
6977         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
6978         (mmx_<code>v2sf3): New expander.  Use
6979         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6980         (mmx_<plusminus_insn><mode>3): New expander.  Use
6981         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6982         (*mmx_<plusminus_insn><mode>3): New insn pattern.
6983         (mmx_add<mode>3): Removed.
6984         (mmx_ssadd<mode>3): Ditto.
6985         (mmx_usadd<mode>3): Ditto.
6986         (mmx_sub<mode>3): Ditto.
6987         (mmx_sssub<mode>3): Ditto.
6988         (mmx_ussub<mode>3): Ditto.
6989         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
6990         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
6991         to handle nonimmediate operands.
6992         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
6993         insn pattern.
6994         (mmx_smulv4hi3_highpart): New expander.  Use
6995         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6996         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
6997         insn pattern.
6998         (mmx_umulv4hi3_highpart): New expander.  Use
6999         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7000         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7001         (mmx_<code>v4hi3): New expander.  Use
7002         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7003         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7004         (mmx_<code>v8qi3): New expander.  Use
7005         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7006         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7007         (mmx_<code><mode>3): New expander.  Use
7008         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7010 2008-05-05  Jan Hubicka  <jh@suse.cz>
7012         PR tree-optimization/36118
7013         * passes.c (pass_init_dump_file): Fix dump header.
7015 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7017         PR middle-end/36141
7018         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7019         VCE for function decls.
7021 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
7023         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7025 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
7027         * config/i386/i386.md (sat_plusminus): New.
7028         (plusminus_insn): Likewise.
7029         (plusminus_mnemonic): Likewise.
7030         (addsub): Removed.
7031         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7032         (*<addsub><mode>3_cc_overflow): Renamed to ...
7033         (*<plusminus_insn><mode>3_cc_overflow): This.
7034         (*<addsub>si3_zext_cc_overflow): Renamed to ...
7035         (*<plusminus_insn>si3_zext_cc_overflow): This.
7037         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7038         (<plusminus_insn><mode>3): This.
7039         (*<addsub><mode>3): Renamed to ...
7040         (*<plusminus_insn><mode>3): This.
7041         (<sse>_vm<addsub><mode>3): Renamed to ...
7042         (<sse>_vm<plusminus_insn><mode>3): This.
7043         (sse3_h<addsub>v4sf3): Renamed to ...
7044         (sse3_h<plusminus_insn>v4sf3): This.
7045         (sse3_h<addsub>v2df3): Renamed to ...
7046         (sse3_h<plusminus_insn>v2df3): This.
7047         (<plusminus_insn><mode>3): New.
7048         (*<plusminus_insn><mode>3): Likewise.
7049         (sse2_<plusminus_insn><mode>3): Likewise.
7050         (add<mode>): Removed.
7051         (*add<mode>3): Likewise.
7052         (sse2_ssadd<mode>3): Likewise.
7053         (sse2_usadd<mode>3): Likewise.
7054         (sub<mode>3): Likewise.
7055         (*sub<mode>3): Likewise.
7056         (sse2_sssub<mode>3): Likewise.
7057         (sse2_ussub<mode>3): Likewise.
7059 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
7061         * gthr-single.h: Add in required interface elements as per gthr.h.
7062         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
7063         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
7064         Generalize UNUSED macro. 
7065         (__gthread_once): Add.
7066         (__gthread_key_create): Add.
7067         (__gthread_key_delete): Add.
7068         (__gthread_getspecific): Add.
7069         (__gthread_setspecific): Add.
7070         
7071 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
7073         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
7074         the same size types for the indirect reference on the rhs, then
7075         create a VCE.
7077 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
7079         * config/i386/i386.md
7080         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
7081         one insn template instead of template series.
7082         (*xordi_1_rex64): Ditto.
7083         (*xordi_2_rex64): Ditto.
7085 2008-05-05  Ira Rosen  <irar@il.ibm.com>
7087         PR tree-optimization/36119
7088         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7089         in case of SLP.
7091 2008-06-04  Jan Hubicka  <jh@suse.cz>
7093         tree-optimization/36100
7094         * tree-pass.h (pass_O0_always_inline): Declare.
7095         * ipa-inline.c (inline_transform): Remove dead code.
7096         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7097         pass_O0_always_inline): New.
7098         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7100 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
7102         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7103         mnemonic in this_param move for TARGET_64BIT.
7105 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
7107         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7108         (*strmovsi_rex_1): Ditto.
7109         (*strsetsi_1): Ditto.
7110         (*strsetsi_rex_1): Ditto.
7112         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7113         adddicc expanders using SWI mode iterator.
7115 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7117         PR target/36121
7118         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7119         argument handling.
7121 2008-05-04  David S. Miller  <davem@davemloft.net>
7123         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7124         (sparc*-*-linux*): Use linux.h in tm_file.
7125         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7126         compiler defaulting to 32-bit.
7127         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7128         no longer needed.
7129         * config/sparc/linux.h: Remove definitions now obtained
7130         properly from linux.h
7131         * config/sparc/linux64.h: Likewise.
7132         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7133         don't want this setting for 32-bit builds in a biarch compiler.
7134         * doc/install.texi: Add sparc-linux to list of targets
7135         supporting --enable-targets=all.
7137 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
7139         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7141 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
7143         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7144         after V4SI_FTYPE_V8HI.
7145         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7146         case V4SI_FTYPE_V2DF.
7148 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
7150         * doc/invoke.texi (max-flow-memory-locations): Removed.
7151         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7152         
7153 2008-05-03  Richard Guenther  <rguenther@suse.de>
7155         PR middle-end/34973
7156         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7158 2008-05-02  David S. Miller  <davem@davemloft.net>
7160         * config.gcc (need_64bit_hwint): Document libcpp dependency.
7162 2008-05-02  Simon Baldwin <simonb@google.com>
7164         PR bootstrap/36108
7165         * c-common.h (warn_array_subscript_range): Removed.
7166         * c-common.c (warn_array_subscript_range): Ditto.
7167         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7168         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7170 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7172         * config/i386/i386.c (ix86_special_builtin_type): New.
7173         (bdesc_special_args): Likewise.
7174         (ix86_expand_special_args_builtin): Likewise.
7175         (ix86_init_mmx_sse_builtins): Updated.
7176         (ix86_expand_builtin): Updated.
7177         (ix86_expand_store_builtin): Removed.
7178         (ix86_expand_unop_builtin): Likewise.
7180         * config/i386/mm3dnow.h (__v2sf): Moved to ...
7181         * config/i386/mmintrin.h (__v2sf): Here.
7183         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7184         const __v2sf.
7185         (_mm_loadl_pi): Likewise.
7186         (_mm_storeh_pi): Replace __v2si with __v2sf.
7187         (_mm_storel_pi): Likewise.
7189         * doc/extend.texi: Correct __builtin_ia32_loadhps,
7190         __builtin_ia32_loadlps, __builtin_ia32_storehps,
7191         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7192         __builtin_ia32_loadlpd.
7194 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7196         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7197         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7198         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
7199         (ix86_init_mmx_sse_builtins): Updated.
7200         (ix86_expand_args_builtin): Likewise.
7201         (ix86_expand_builtin): Likewise.
7202         (ix86_expand_unop1_builtin): Renamed to ...
7203         (ix86_expand_unop_vec_merge_builtin): This.
7205 2008-05-01  Jan Hubicka  <jh@suse.cz>
7207         PR bootstrap/36100
7208         * ipa-inline.c (inline_generate_summary): Make static.
7209         (inline_transform): Do not call inlining at -O0; make static.
7210         * passes.c (execute_todo): Add sanity check.
7211         (execute_one_ipa_transform_pass): Execute proper flags.
7213 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7215         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7216         (DECL_NONADDRESSABLE_P): Likewise.
7217         * alias.c (record_component_aliases): Fix comment.
7219 2008-05-01  Simon Baldwin <simonb@google.com>
7221         * c-common.h (warn_array_subscript_range): New function.
7222         * c-common.c (warn_array_subscript_range): Ditto.
7223         * tree-vrp.c (check_array_ref): Corrected code to agree with
7224         comment, ignoring only arrays of size 0 or size 1.
7225         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7227 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7229         * config/i386/i386.c (ix86_builtin_type): Replace
7230         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7231         (bdesc_args): Updated.
7232         (ix86_init_mmx_sse_builtins): Likewise.
7233         (ix86_expand_args_builtin): Likewise.
7235         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7236         with __v1di.
7238         * doc/extend.texi: Correct __builtin_ia32_palignr.
7240 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7242         PR target/36095
7243         * config/i386/i386.c (bdesc_crc32): Removed.
7244         (ix86_expand_crc32): Likewise.
7245         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7246         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7247         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
7248         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7249         UINT_FTYPE_UINT_UCHAR.
7250         (bdesc_args): Updated. Add crc32 builtins.
7251         (ix86_init_mmx_sse_builtins): Updated.
7252         (ix86_expand_args_builtin): Updated to support subreg.
7254         * doc/extend.texi: Correct __builtin_ia32_crc32di.
7256 2008-05-01  Jan Hubicka  <jh@suse.cz>
7258         * tree-pass.h (opt_pass): Add IPA_PASS.
7259         (varpool_node, cgraph_node): Forward declare.
7260         (ipa_opt_pass): Define.
7261         (pass_ipa_inline): Turn into ipa_opt_pass.
7262         (pass_apply_inline): Remove.
7263         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7264         (apply_inline): Turn into ....
7265         (inline_transform): ... this one.
7266         (inline_generate_summary): New function.
7267         (pass_apply_inline): Remove.
7268         * function.h (ipa_opt_pass): Forward declare structure; typedef;
7269         vector.
7270         (struct function): Add ipa_transforms_to_apply.
7271         * passes.c (register_one_dump_file): Work on IPA_PASS.
7272         (init_optimization_passes): Remove pass_inline_parameters and
7273         pass_apply_inline.
7274         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7275         (execute_one_pass) ... here; apply transforms when possible.
7276         (add_ipa_transform_pass, execute_ipa_summary_asses,
7277         execute_one_ipa_transform_pass): New.
7278         (execute_ipa_pass_list): Update for IPA_PASS type.
7280 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7282         * config/i386/i386.c (ix86_builtin_type): Add
7283         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7284         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7285         (bdesc_args): Add SSE4a builtins.
7286         (ix86_init_mmx_sse_builtins): Updated.
7287         (ix86_expand_args_builtin): Likewise.
7288         (ix86_expand_builtin): Likewise.
7290 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7292         * config/i386/i386.c (ix86_builtin_type): Add
7293         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7294         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7295         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7296         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7297         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7298         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7299         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7300         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7301         and DI_FTYPE_DI_DI_INT.
7302         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7303         (ix86_init_mmx_sse_builtins): Updated.
7304         (ix86_expand_args_builtin): Likewise.
7305         (ix86_expand_builtin): Likewise.
7306         (ix86_expand_binop_imm_builtin): Removed.
7308         * doc/extend.texi: Correct __builtin_ia32_palignr128.
7310 2008-04-30  Richard Guenther  <rguenther@suse.de>
7312         PR tree-optimization/32921
7313         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7315 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7317         * config/arm/arm.c (arm_unwind_emit): Use
7318         crtl->all_throwers_are_sibcalls instead of
7319         cfun->all_throwers_are_sibcalls.
7320         (arm_output_fn_unwind): Likewise.
7321         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7322         instead of cfun->uses_pic_offset_table.
7323         (frv_expand_prologue): Likewise.
7324         (frv_frame_pointer_required): Likewise.
7325         (frv_expand_fdpic_call): Likewise.
7326         (frv_emit_movsi): Likewise.
7327         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7328         cfun->returns_pcc_struct instead of
7329         current_function_returns_pcc_struct.
7330         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7331         instead of cfun->calls_eh_return.
7332         (m32c_pushm_popm): Likewise.
7333         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7334         "extern" declaration.
7336 2008-04-30  Richard Guenther  <rguenther@suse.de>
7338         PR tree-optimization/21636
7339         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7340         constant address.
7341         (evaluate_stmt): Print the likely value.
7342         (ccp_visit_stmt): Avoid excessive vertical spacing.
7344 2008-04-30  Rafael Espindola  <espindola@google.com>
7346         * builtins.c (fold_call_expr): Return realret.
7347         * tree-ssa-threadedge.c
7348         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7349         __builtin_object_size.
7351 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
7353         * gcc.c (wrapper_string): New variable.
7354         (insert_wrapper): New function.
7355         (execute): New option -wrapper.
7356         * doc/invoke.texi (Overall Options): New driver option -wrapper.
7358 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
7360         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7361         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7362         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7363         from...
7364         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
7365         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7366         config/rs6000/e500crtres64gprctr.asm,
7367         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7368         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7369         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7370         config/rs6000/e500crtsav64gprctr.asm,
7371         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7372         config/rs6000/e500crtsavg64gprctr.asm: New files.
7373         * config/rs6000/t-ppccomm: Add build rules for new files.
7374         (LIB2FUNCS_STATIC_EXTRA): Add new files.
7375         * config/rs6000/t-netbsd: Add build rules for new files.
7376         (LIB2FUNCS_STATIC_EXTRA): New variable.
7377         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7378         (CRTSAVRES_DEFAULT_SPEC): Likewise.
7379         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7381 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
7383         * config/i386/i386.c (ix86_builtin_type): Add
7384         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7385         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7386         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7387         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7388         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7389         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7390         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7391         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7392         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7393         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7394         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7395         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7396         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7397         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7398         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7399         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7400         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7401         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7402         V1DI_FTYPE_V2SI_V2SI.
7403         (bdesc_2arg): Moved to ...
7404         (bdesc_args): Here.
7405         (ix86_init_mmx_sse_builtins): Updated.
7406         (ix86_expand_args_builtin): Updated.  Take a pointer
7407         to const struct builtin_description.  Handle comparison
7408         builtin functions.
7409         (ix86_expand_sse_compare): Take a new argument for swapping operands.
7410         (ix86_expand_builtin): Updated.
7412         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7413         (ssse3_pmaddubsw128): This.
7414         (ssse3_pmaddubswv4hi3): Renamed to ...
7415         (ssse3_pmaddubsw): This.
7417         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7418         (__builtin_ia32_packssdw128): Likewise.
7419         (__builtin_ia32_packuswb128): Likewise.
7420         (__builtin_ia32_pmaddubsw): Likewise.
7421         (__builtin_ia32_pmaddubsw128): Likewise.
7423 2008-04-30  Richard Guenther  <rguenther@suse.de>
7425         PR tree-optimization/14847
7426         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7427         (recognize_bits_test): Use it.
7428         (recognize_single_bit_test): Likewise.
7430 2008-04-30  Martin Jambor  <mjambor@suse.cz>
7432         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7433         instead of setting number of formal parameters to zero.
7434         (ipcp_init_stage): Do not set the number of actual parameters to zero 
7435         either.
7436         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7437         which are called with variable number of arguments.
7438         (ipcp_insert_stage): Explicitely skipping all nodes which are
7439         called with variable number of arguments.
7440         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
7441         number of parameters.
7443         * ipa-prop.h (struct ipa_node_params): Added flag
7444         called_with_var_arguments
7445         (ipa_set_param_count): Added.  Changed sole setter to use it.
7446         (ipa_get_param_count): Added.  All readers of param_count
7447         converted to use it instead.
7448         (ipa_set_called_with_variable_arg): Added.
7449         (ipa_is_called_with_var_arguments): Added.
7450         (ipa_get_ith_param): Added.  All readers of param_decls converted
7451         to use it instead.
7452         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
7453         changed to use it. 
7454         (ipa_get_cs_argument_count): Added, all readers of argument_count
7455         changed to cal it.
7456         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
7457         to use it.
7458         
7459         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7460         (struct ipcp_lattice): Renamed cval_type to type
7461         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7463         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7464         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7465         (ipcp_insert_stage): Changed the type of variable cvalue to tree
7466         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7467         (build_const_val): Changed the type of parameter cvalue to tree
7468         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7469         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7470         
7471         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
7472         constant 
7474         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7475         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7476         (ipa_add_method): Renamed to ipa_push_func_to_list
7477         (ipa_remove_method): Renamed to ipa_pop_func_from_list
7478         (ipa_callsite_param_count): Removed.
7479         (ipa_callsite_param_count_set): Removed.
7480         (ipa_callsite_param): Removed.
7481         (ipa_callsite_callee): Removed.
7482         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7483         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7484         (ipa_method_formal_count): Removed.
7485         (ipa_method_formal_count_set): Removed.
7486         (ipa_method_get_tree): Removed.
7487         (ipa_method_tree_map_create): Removed.
7488         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7489         (ipa_create_param_decls_array): Creates the array itself
7490         (ipa_create_param_decls_array): Temporary variable info instead of 
7491         a few dereferences.
7492         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7493         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7494         (get_type): Removed.
7495         (ipa_jf_get_info_type): Removed.
7496         (ipa_node_create): Renamed to ipa_create_node_params
7497         (ipa_free): Renamed to ipa_free_all_node_params
7498         (ipa_nodes_create): Renamed to ipa_create_all_node_params
7499         (ipa_edges_create): Renamed to ipa_create_all_edge_args
7500         (ipa_edges_free): Renamed to ipa_free_all_edge_args
7501         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7502         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
7503         ipa_free_all_edge_args
7504         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7505         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7506         (ipa_create_methodlist_node): Removed.
7507         (ipa_methodlist_method): Removed.
7508         (ipa_methodlist_method_set): Removed.
7509         (ipa_methodlist_next_method): Removed.
7510         (ipa_methodlist_next_method_set): Removed.
7511         (ipa_method_is_modified): Removed.
7512         (ipa_method_modify_create): Removed.
7513         (ipa_method_modify_init): Temporary variable info instead of a few 
7514         dereferences.
7515         (ipa_detect_param_modifications): Temporary variable info instead of 
7516         a few dereferences.
7517         (ipa_compute_jump_functions): Temporary variable info instead of 
7518         a few dereferences.
7519         (ipa_method_modify_set): Removed.
7520         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7521         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
7522         than craph_node as the first parameter.
7523         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7524         (ipa_method_modify_init): Removed.
7525         (ipa_compute_jump_functions): Added a temp variable instead of 
7526         repeatadly dereferencing the cgraph_edge.aux pointer
7527         (ipa_callsite_param_set_type): Removed.
7528         (ipa_compute_jump_functions): i renamed to index and moved to 
7529         an inner block
7530         (ipa_callsite_param_set_info_type_formal): Removed.
7531         (ipa_callsite_param_set_info_type): Removed.
7532         (ipa_callsite_param_map_create): Removed.
7533         (ipa_callsite_tree): Removed.
7534         (ipa_callsite_caller): Removed.
7535         (ipa_pop_func_from_list): return_method removed to return_func
7537         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7538         prefixed all values with IPA_. Changed all users.
7539         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
7540         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
7541         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
7542         (union parameter_info): Renamed to jump_func_value.
7543         (union jump_func_value): Renamed value to constant
7544         (struct ipa_jump_func): Renamed info_type to value
7545         (struct ipa_node): Renamed to ipa_node_params
7546         (struct ipa_node_params): Renamed ipa_arg_num to param_count
7547         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7548         (struct ipa_node_params): Renamed ipa_mod to modified_flags
7549         (struct ipa_edge): Renamed to ipa_edge_args
7550         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7551         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7552         (struct ipa_methodlist): Renamed to ipa_func_list
7553         (struct ipa_func_list): method_p renamed to node, next_method
7554         renamed to next
7555         (ipa_methodlist_p): Removed, switched all users to struct pointer
7556         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7558 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
7560         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7561         (rs6000_emit_epilogue): Use backchain to restore only when we
7562         have a large frame.  Make use of frame pointer to restore if we
7563         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7565 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
7567         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7568         Add mode to zero_extract.
7569         (sign bit tests peepholes): (Ditto.).
7571 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7573         * config/i386/i386.c (ix86_builtins): Replace Prescott New
7574         Instructions in comments with SSE3.
7575         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
7576         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7577         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7578         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7579         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7580         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7581         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7582         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7583         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7584         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7585         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7586         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7587         (bdesc_sse_args): Renamed to ...
7588         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7589         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7590         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7591         IX86_BUILTIN_FABSQ.
7592         (bdesc_1arg): Moved to ...
7593         (bdesc_args): Here.
7594         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
7595         Instructions in comments with SSE3.
7596         (ix86_expand_sse_operands_builtin): Renamed to ...
7597         (ix86_expand_args_builtin): This.  Updated.
7598         (ix86_expand_unop1_builtin): Update comments.
7599         (ix86_expand_builtin): Updated.
7601 2008-04-29  Richard Guenther  <rguenther@suse.de>
7603         PR tree-optimization/36078
7604         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7605         Update virtual SSA form after cleaning up the CFG.
7607 2008-04-29  Richard Guenther  <rguenther@suse.de>
7609         PR middle-end/15255
7610         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7612 2008-04-29  Richard Guenther  <rguenther@suse.de>
7614         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7615         (compute_may_aliases): Do not call finalize_ref_all_pointers.
7616         (compute_flow_insensitive_aliasing): Do not treat
7617         PTR_IS_REF_ALL pointers special.
7618         (get_smt_for): Likewise.
7619         (may_alias_p): Re-structure.
7620         (is_escape_site): A ref-all pointer conversion is not an escape site.
7621         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7622         PTR_IS_REF_ALL pointers special.
7623         * tree-ssa-structalias.h (struct alias_info): Remove
7624         ref_all_symbol_mem_tag field.
7625         (PTR_IS_REF_ALL): Remove.
7627 2008-04-29  Richard Guenther  <rguenther@suse.de>
7629         PR middle-end/36077
7630         * fold-const.c (extract_muldiv_1): In combining division constants
7631         make sure to never overflow.
7633 2008-04-29  Nick Clifton  <nickc@redhat.com>
7635         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7637 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7639         PR bootstrap/35169
7640         * optc-gen.awk: Work around HP-UX/IA awk bug.
7642 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
7644         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7645         2008-04-25 commit.
7647 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7649         PR target/36073
7650         * config/i386/i386.md
7651         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7652         Change operand 1 predicate to nonimmediate_operand.
7654 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
7656         PR debug/36060
7657         * dwarf2out.c (struct die_struct): Mark as chain_circular through
7658         die_sub field.
7659         * gengtype.c (walk_type, write_func_for_structure): Handle
7660         chain_circular.
7661         * doc/gty.texi: Document chain_circular.
7663 2008-04-28  Richard Guenther  <rguenther@suse.de>
7665         PR tree-optimization/36066
7666         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7667         SCEV and loop.
7669 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7671         PR target/36064
7672         * config/i386/i386.md
7673         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7674         Use match_scratch instead of match_operand for operands 3 and 4.
7676 2008-04-27  Richard Guenther  <rguenther@suse.de>
7678         PR tree-optimization/18754
7679         PR tree-optimization/34223
7680         * tree-pass.h (pass_complete_unrolli): Declare.
7681         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7682         loop size before and after unconditionally of UL_NO_GROWTH in effect.
7683         Rewrite loop into loop closed SSA form if it is not already.
7684         (tree_unroll_loops_completely): Re-structure to iterate over
7685         innermost loops with intermediate CFG cleanups.
7686         Unroll outermost loops only if requested or the code does not grow
7687         doing so.
7688         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7689         loops are available.
7690         (tree_vectorize): Instead do so here.
7691         (tree_complete_unroll): Also unroll outermost loops.
7692         (tree_complete_unroll_inner): New function.
7693         (gate_tree_complete_unroll_inner): Likewise.
7694         (pass_complete_unrolli): New pass.
7695         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7696         uses outside of the loop.
7697         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7698         form if it is available.  
7699         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7700         * passes.c (init_optimization_passes): Schedule complete inner
7701         loop unrolling pass before the first CCP pass after final inlining.
7703 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
7705         * targhooks.h (default_emutls_var_fields,
7706         default_emutls_var_init): Declare.
7707         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7708         * target.h (struct gcc_target): Add struct emutls member.
7709         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7710         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7711         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7712         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7713         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7714         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7715         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7716         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7717         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7718         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7719         emit debug information.
7720         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7721         * varasm.c: Include targhooks.h.
7722         (emutls_object_section, emutls_tmpl_section): New.
7723         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7724         (EMUTLS_SEPARATOR): New.
7725         (prefix_name): New.
7726         (get_emutls_object_name): New.
7727         (default_emutls_var_fields): New, broken out of ...
7728         (get_emutls_object_type): ... here.  Adjust to use target hooks.
7729         (get_emutls_init_templ_addr): Adjust to use target hooks.
7730         (emutls_decl): Adjust to use target hooks.
7731         (emutls_finish): Likewise.
7732         (default_emutls_var_init): New, broken out of ...
7733         (assemble_variable): ... here.  Adjust to use target hooks.
7734         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7735         SECCAT_EMUTLS_TMPL.
7736         * c-common.c (handle_section_attribute): Prevent overriding
7737         sections for emulated tls with special sections.
7738         * config/i386/i386.c (x86_64_elf_select_section): Add
7739         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7740         (x86_64_elf_unique_section): Likewise.
7741         * config/vxworks.c: Include tree.h.
7742         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7743         (vxworks_override_options): Set TLS scheme.
7744         * doc/tm.texi (Emulated TLS): New node.
7746 2008-04-26  Simon Baldwin <simonb@google.com>
7748         PR c/35652
7749         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7750         with propagated string constants.
7752 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
7754         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7755         constraint for operand 2 when operand 0 is memory operand.
7756         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7757         operand 0 is memory operand.
7758         (fix_trunc<mode>_i387_with_temp): Ditto.
7759         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7760         operand 2 when operand 1 is memory operand.
7761         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7762         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7763         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7764         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7765         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7766         operands 2,3 and 4 when operand 1 is memory operand.
7767         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7768         is memory operand.
7769         (fistdi2_floor_with_temp): Ditto.
7770         (fist<mode>2_floor_with_temp): Ditto.
7771         (fistdi2_ceil_with_temp): Ditto.
7772         (fist<mode>2_ceil_with_temp): Ditto.
7773         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7775 2008-04-26  David Daney  <ddaney@avtrex.com>
7777         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7778         unspec_volitile.
7779         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7780         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7781         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7782         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7783         (compare_and_swap_12): New insn.
7784         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7785         * config/mips/mips.c (mips_force_binary): New function.
7786         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7787         (mips_expand_compare_and_swap_12): New function.
7788         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7790 2008-04-25  Jan Hubicka  <jh@suse.cz>
7792         PR testsuite/35843
7793         * cfgexpand.c (pass_expand): Turn into RTL pass.
7794         * passes.c (execute_one_pass): Do pass typechecking after execution.
7795         * tree-pass.h (pass_expand): Turn into RTL pass.
7797         * function.h (struct rtl_data): Move here fields
7798         accesses_prior_frames, calls_eh_return, saves_all_registers,
7799         has_nonlocal_goto, has_asm_statement, is_thunk,
7800         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7801         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7802         arg_pointer_save_area_init from struct function; turn into bool.
7803         (struct function): Move
7804         calls_eh_return, saves_all_registers, has_nonlocal_goto,
7805         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7806         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7807         tail_call_emit, arg_pointer_save_area_init
7808         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
7809         (current_function_returns_struct, current_function_returns_pcc_struct,
7810         current_function_calls_setjmp, current_function_calls_alloca,
7811         current_function_accesses_prior_frames,
7812         current_function_calls_eh_return, current_function_is_thunk,
7813         current_function_stdarg, current_function_profile,
7814         current_function_limit_stack, current_function_uses_pic_offset_table,
7815         current_function_uses_const_pool, current_function_has_nonlocal_label,
7816         current_function_saves_all_registers,
7817         current_function_has_nonlocal_goto,
7818         current_function_has_asm_statement): Remove accesor macros.
7819         * ra-conflict.c (global_conflicts): Update.
7820         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7821         (suitable_for_tail_call_opt_p): Update.
7822         * builtins.c (expand_builtin_return_addr): Update.
7823         (expand_builtin_setjmp_setup): Update.
7824         (expand_builtin_nonlocal_goto): Update.
7825         * final.c (final_start_function): Update.
7826         (profile_function): Update.
7827         (leaf_function_p): Update.
7828         (only_leaf_regs_used): Update.
7829         * df-scan.c (df_get_exit_block_use_set): Update.
7830         * dojump.c (clear_pending_stack_adjust): Update.
7831         * tree-stdarg.c (gate_optimize_stdarg): Update.
7832         * gimple-low.c (lower_function_body): Update.
7833         * global.c (compute_regsets): Update.
7834         (global_alloc): Update.
7835         * dwarf2out.c (dwarf2out_begin_prologue): Update.
7836         * expr.c (expand_assignment): Update.
7837         * dse.c (dse_step0): Update.
7838         (dse_step1): Update.
7839         * c-decl.c (store_parm_decls): Update.
7840         * local-alloc.c (combine_regs): Update.
7841         (find_free_reg): Update.
7842         * function.c (assign_parms_augmented_arg_list): Update.
7843         (assign_parm_find_data_types): Update.
7844         (assign_parms): Update.
7845         (allocate_struct_function): Update.
7846         (expand_function_start): Update.
7847         (expand_function_end): Update.
7848         (get_arg_pointer_save_area): Update.
7849         (thread_prologue_and_epilogue_insns): Update.
7850         (rest_of_match_asm_constraints): Update.
7851         * stor-layout.c (variable_size): Update.
7852         * gcse.c (gcse_main): Update.
7853         (bypass_jumps): Update.
7854         * gimplify.c (gimplify_function_tree): Update.
7855         * calls.c (emit_call_1): Update.
7856         (expand_call): Update.
7857         * bt-load.c (compute_defs_uses_and_gen): Update.
7858         * except.c (sjlj_assign_call_site_values): Update.
7859         (sjlj_emit_function_enter): Update.
7860         (can_throw_external): Update.
7861         (set_nothrow_function_flags): Update.
7862         (expand_builtin_unwind_init): Update.
7863         (expand_eh_return): Update.
7864         (convert_to_eh_region_ranges): Update.
7865         (output_function_exception_table): Update.
7866         * emit-rtl.c (gen_tmp_stack_mem): Update.
7867         * cfgexpand.c (expand_used_vars): Update.
7868         (tree_expand_cfg): Update.
7869         * cfgcleanup.c (rest_of_handle_jump): Update.
7870         * explow.c (allocate_dynamic_stack_space): Update.
7871         * varasm.c (assemble_start_function): Update.
7872         (force_const_mem): Update.
7873         (mark_constant_pool): Update.
7874         * tree-optimize.c (tree_rest_of_compilation): Update.
7875         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7876         * tree-cfg.c (notice_special_calls): Update.
7877         (is_ctrl_altering_stmt): Update.
7878         (tree_can_make_abnormal_goto): Update.
7879         (tree_purge_dead_abnormal_call_edges): Update.
7880         * config/alpha/predicates.md: Update.
7881         * config/alpha/alpha.c (alpha_sa_mask): Update.
7882         (alpha_sa_size): Update.
7883         (alpha_does_function_need_gp): Update.
7884         (alpha_expand_prologue): Update.
7885         (alpha_start_function): Update.
7886         (alpha_output_function_end_prologue): Update.
7887         (alpha_expand_epilogue): Update.
7888         * config/frv/frv.c (frv_stack_info): Update.
7889         (frv_expand_epilogue): Update.
7890         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7891         (s390_register_info): Update.
7892         (s390_frame_info): Update.
7893         (s390_init_frame_layout): Update.
7894         (s390_can_eliminate): Update.
7895         (save_gprs): Update.
7896         * config/spu/spu.c (spu_split_immediate): Update.
7897         (need_to_save_reg): Update.
7898         (spu_expand_prologue): Update.
7899         (spu_expand_epilogue): Update.
7900         * config/sparc/sparc.md: Update.
7901         * config/sparc/sparc.c (eligible_for_return_delay): Update.
7902         (sparc_tls_got): Update.
7903         (legitimize_pic_address): Update.
7904         (sparc_emit_call_insn): Update.
7905         (sparc_expand_prologue): Update.
7906         (output_return): Update.
7907         (print_operand): Update.
7908         (sparc_function_ok_for_sibcall): Update.
7909         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
7910         * config/m32r/m32r.md: Update.
7911         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
7912         (m32r_compute_frame_size): Update.
7913         (m32r_expand_prologue): Update.
7914         (m32r_expand_epilogue): Update.
7915         (m32r_legitimize_pic_address): Update.
7916         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
7917         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7918         * config/i386/i386.c (ix86_frame_pointer_required): Update.
7919         (gen_push): Update.
7920         (ix86_save_reg): Update.
7921         (ix86_compute_frame_layout): Update.
7922         (ix86_expand_prologue): Update.
7923         (ix86_expand_epilogue): Update.
7924         * config/sh/sh.c (output_stack_adjust): Update.
7925         (calc_live_regs): Update.
7926         (sh5_schedule_saves): Update.
7927         (sh_expand_prologue): Update.
7928         (sh_expand_epilogue): Update.
7929         (sh_setup_incoming_varargs): Update.
7930         (sh_allocate_initial_value): Update.
7931         (sh_get_pr_initial_val): Update.
7932         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
7933         * config/sh/sh.md (label:): Update.
7934         * config/avr/avr.c (out_movhi_mr_r): Update.
7935         * config/crx/crx.h (enum): Update.
7936         * config/xtensa/xtensa.h (along): Update.
7937         * config/stormy16/stormy16.c Update.
7938         (xstormy16_compute_stack_layout): Update.
7939         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
7940         (fr30_expand_prologue): Update.
7941         * config/cris/cris.c (cris_conditional_register_usage): Update.
7942         (cris_reg_saved_in_regsave_area): Update.
7943         (cris_initial_frame_pointer_offset): Update.
7944         (cris_simple_epilogue): Update.
7945         (cris_expand_prologue): Update.
7946         (cris_expand_epilogue): Update.
7947         (cris_expand_pic_call_address): Update.
7948         (cris_asm_output_symbol_ref): Update.
7949         (cris_asm_output_label_ref): Update.
7950         * config/cris/cris.md Update.
7951         * config/iq2000/iq2000.c (compute_frame_size): Update.
7952         (iq2000_expand_epilogue): Update.
7953         * config/mt/mt.h (save_direction): Update.
7954         * config/mn10300/mn10300.c (mn10300_function_value): Update.
7955         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7956         (ia64_secondary_reload_class): Update.
7957         * config/m68k/m68k.c (m68k_save_reg): Update.
7958         (m68k_expand_prologue): Update.
7959         (m68k_expand_epilogue): Update.
7960         (legitimize_pic_address): Update.
7961         * config/rs6000/rs6000.c (rs6000_got_register): Update.
7962         (first_reg_to_save): Update.
7963         (first_altivec_reg_to_save): Update.
7964         (compute_vrsave_mask): Update.
7965         (compute_save_world_info): Update.
7966         (rs6000_stack_info): Update.
7967         (spe_func_has_64bit_regs_p): Update.
7968         (rs6000_ra_ever_killed): Update.
7969         (rs6000_emit_eh_reg_restore): Update.
7970         (rs6000_emit_allocate_stack): Update.
7971         (rs6000_emit_prologue): Update.
7972         (rs6000_emit_epilogue): Update.
7973         (rs6000_output_function_epilogue): Update.
7974         (output_profile_hook): Update.
7975         (rs6000_elf_declare_function_name): Update.
7976         * config/rs6000/rs6000.h (rs6000_args): Update.
7977         * config/rs6000/rs6000.md: Update.
7978         * config/mcore/mcore.c (mcore_expand_prolog): Update.
7979         * config/arc/arc.c (arc_output_function_epilogue): Update.
7980         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
7981         * config/darwin.c (machopic_function_base_name): Update.
7982         * config/score/score3.c (score3_compute_frame_size): Update.
7983         (rpush): Update.
7984         (rpop): Update.
7985         (score3_epilogue): Update.
7986         * config/score/score7.c (score7_compute_frame_size): Update.
7987         (score7_prologue): Update.
7988         (score7_epilogue): Update.
7989         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
7990         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7991         * config/arm/arm.c (use_return_insn): Update.
7992         (require_pic_register): Update.
7993         (arm_load_pic_register): Update.
7994         (arm_compute_save_reg0_reg12_mask): Update.
7995         (arm_compute_save_reg_mask): Update.
7996         (thumb1_compute_save_reg_mask): Update.
7997         (output_return_instruction): Update.
7998         (arm_output_function_prologue): Update.
7999         (arm_output_epilogue): Update.
8000         (arm_get_frame_offsets): Update.
8001         (arm_expand_prologue): Update.
8002         (thumb_pushpop): Update.
8003         (thumb_exit): Update.
8004         (thumb1_expand_prologue): Update.
8005         (thumb1_expand_epilogue): Update.
8006         (arm_unwind_emit): Update.
8007         (arm_output_fn_unwind): Update.
8008         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8009         * config/arm/arm.md: Update.
8010         * config/pa/pa.md: Update.
8011         * config/pa/pa.c (legitimize_pic_address): Update.
8012         (compute_frame_size): Update.
8013         (hppa_expand_prologue): Update.
8014         (hppa_expand_epilogue): Update.
8015         (borx_reg_operand): Update.
8016         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8017         (HARD_REGNO_RENAME_OK): Update.
8018         * config/mips/mips.c (mips_global_pointer): Update.
8019         (mips_save_reg_p): Update.
8020         (mips_compute_frame_info): Update.
8021         (mips_frame_pointer_required): Update.
8022         (mips_expand_prologue): Update.
8023         (mips_expand_epilogue): Update.
8024         (mips_can_use_return_insn): Update.
8025         (mips_reorg_process_insns): Update.
8026         * config/v850/v850.c (compute_register_save_size): Update.
8027         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8028         * config/mmix/mmix.c (along): Update.
8029         (mmix_expand_epilogue): Update.
8030         * config/bfin/bfin.c (legitimize_pic_address): Update.
8031         (must_save_p): Update.
8032         (stack_frame_needed_p): Update.
8033         (add_to_reg): Update.
8034         (bfin_expand_prologue): Update.
8035         * stmt.c (expand_asm_operands): Update.
8036         * reload1.c (reload): Update.
8037         (init_elim_table): Update.
8039 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
8040         
8041         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8042         
8043 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
8045         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8046         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
8047         (mov<mode>): Removed.
8048         (*movv4sf_internal): Likewise.
8049         (*movv2df_internal): Likewise.
8051 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
8053         * config.gcc (crx-*-elf): Remove deprecation.
8055 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
8057         * config/i386/cygming-crtend.c (register_frame_ctor): Register
8058         __gcc_deregister_frame with atexit.
8059         (deregister_frame_dtor): Remove.
8061 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
8062             Nathan Sidwell  <nathan@codesourcery.com>
8064         * config/rs6000/rs6000.opt (mspe): Remove Var property.
8065         (misel): Likewise.
8066         * config/rs6000/rs6000.h (rs6000_spe): Declare.
8067         (rs6000_isel): Likewise.
8068         * config/rs6000/rs6000.c (rs6000_spe): New variable.
8069         (rs6000_isel): New variable.
8070         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
8072 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8074         PR c++/35758
8075         * c-common.c (handle_vector_size_attribute): Call
8076         lang_hooks.types.reconstruct_complex_type instead of
8077         reconstruct_complex_type.
8078         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
8079         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
8080         * langhooks.h (struct lang_hooks_for_types): Add
8081         reconstruct_complex_type hook.
8082         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
8083         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8085 2008-04-24  Richard Guenther  <rguenther@suse.de>
8087         * c-common.h (check_builtin_function_arguments): Declare.
8088         * c-common.c (validate_nargs): New function.
8089         (check_builtin_function_arguments): Likewise.
8090         * c-typeck.c (build_function_call): Call
8091         check_builtin_function_arguments.
8092         * builtins.c (fold_builtin_classify): Remove error reporting code.
8093         (fold_builtin_unordered_cmp): Likewise.
8094         (fold_builtin_1): Likewise.
8095         (fold_builtin_n): Likewise.
8097 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8099         PR tree-optimization/36008
8100         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8101         the original op1, rather than delta by step.
8103 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
8104             Sebastian Pop  <sebastian.pop@amd.com>
8106         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8107         eliminate_local_variables_stmt, eliminate_local_variables,
8108         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8109         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8110         of code delimited by two edges in the CFG.
8111         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8112         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8113         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
8114         the case of parallelisation of reductions.
8115         (expr_invariant_in_region_p): New.
8117         * tree-flow.h (gather_blocks_in_sese_region): Declared.
8118         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8120 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8121             Richard Guenther  <rguenther@suse.de>
8123         PR tree-optimization/36034
8124         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8125         incapable of dealing with loads with gaps.
8127 2008-04-24  Rafael Espindola  <espindola@google.com>
8129         * tree-flow.h (vrp_evaluate_conditional): Change signature.
8130         * tree-ssa-propagate.c (fold_predicate_in): Update call to
8131         vrp_evaluate_conditional.
8132         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8133         (vrp_evaluate_conditional): Split the cond argument.
8134         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8135         (simplify_stmt_for_jump_threading): Update call to
8136         vrp_evaluate_conditional.
8138 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8140         PR tree-optimization/35982
8141         * tree-vect-analyze.c (vect_check_interleaving): Check that the
8142         interleaved data-refs are of the same type.
8144 2008-04-24  Danny Smith  <dannysmith@users.net>
8146         * c-format.c (check_format_info_main): Use strncmp rather than a
8147         magic prefix to handle multichar length specs.
8148         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8149         Don't prefix "I64" and "I32" with '\0'.
8151 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8153         PR target/36015
8154         * config/i386/i386.c (init_cumulative_args): Don't pass anything
8155         in registers for -m32 only if stdarg_p (fntype).
8157 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
8159         PR rtl-optimization/36006
8160         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8161         temp to op0 in order to avoid invalid rtx sharing.
8163 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
8165         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
8166         check TREE_INVARIANT.
8167         * tree-gimple.c (is_gimple_address): New.
8168         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8169         * tree-gimple.h (is_gimple_address): New.
8170         * tree.h (decl_address_invariant_p): New.
8171         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8172         (build_string): Likewise.
8173         (decl_address_invariant_p): New, from is_gimple_invariant_address.
8174         (tree_invariant_p_1): Likewise.
8175         (save_expr): Use it.
8176         (tree_invariant_p): New.
8177         (skip_simple_arithmetic): Use it.
8178         (stabilize_reference_1): Use it.
8179         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8180         simplify.
8181         (build1_stat): Drop code to compute TREE_INVARIANT.
8182         (build2_stat): Drop code to compute TREE_INVARIANT.
8183         (build3_stat): Drop code to compute TREE_INVARIANT.
8184         (build4_stat): Drop code to compute TREE_INVARIANT.
8185         (build5_stat): Drop code to compute TREE_INVARIANT.
8186         (build7_stat): Drop code to compute TREE_INVARIANT.
8187         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8188         * tree.h (struct tree_base): Remove invariant_flag.
8189         (TREE_INVARIANT): Remove.
8190         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8191         (fold_builtin_expect): Check TREE_CONSTANT.
8192         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8193         * c-tree.h (c_expr_to_decl): Drop third parameter.
8194         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8195         (build_c_cast): Don't set TREE_INVARIANT.
8196         (pop_init_level): Don't set TREE_INVARIANT.
8197         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8198         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8199         TREE_CONSTANT.
8200         (gimplify_init_constructor): Don't set TREE_INVARIANT.
8201         (gimplify_addr_expr): Adjust comment.
8202         * tree-mudflap.c (mf_build_string):
8203         * print-tree.c (print_node): Don't print TREE_INVARIANT.
8204         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8205         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8206         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8207         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8208         * langhooks.h (struct lang_hooks): Drop third parameter from
8209         expr_to_decl.
8211 2008-04-23  Richard Guenther  <rguenther@suse.de>
8213         PR tree-optimization/27799
8214         PR tree-optimization/32921
8215         PR tree-optimization/32624
8216         * tree-ssa-structalias.c (merge_smts_into): Only merge the
8217         SMTs aliases and the tag itself into the solution.
8218         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8219         merge the points-to solution back into the SMT aliases.
8220         (may_alias_p): Use alias_set_subset_of instead of
8221         aliases_conflict_p.  A pointer which points to
8222         memory with alias set zero may access any variable.
8224 2008-04-23  Richard Guenther  <rguenther@suse.de>
8226         * alias.c (alias_set_subset_of): Correctly handle asking
8227         if zero is a subset of an alias set with zero child.
8228         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8229         (compute_flow_insensitive_aliasing): Correctly walk all
8230         pointers.  Do not unnecessarily union sets.
8232 2008-04-23  Richard Guenther  <rguenther@suse.de>
8234         PR middle-end/36021
8235         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8237 2008-04-22  Tomas Bily  <tbily@suse.cz>
8239         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8240         unreachable case.
8241         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8242         NON_LVALUE_EXPR.
8243         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8244         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8245         * tree-inline.c (estimate_num_insns_1): Likewise.
8246         * varasm.c (const_hash_1, compare_constant, copy_constant)
8247         (compute_reloc_for_constant, output_addressed_constants): Likewise.
8248         * emit-rtl.c (component_ref_for_mem_expr)
8249         (set_mem_attributes_minus_bitpos): Likewise.
8250         * expr.c (highest_pow2_factor, expand_expr_real_1, )
8251         (is_aligning_offset): Likewise.
8252         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8253         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8254         * dojump.c (do_jump): Likewise.
8255         * builtins.c (get_pointer_alignment, get_memory_rtx)
8256         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8257         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8259 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
8261         PR rtl-optimization/36017
8262         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8263         expanding the library call.
8265 2008-04-22  Ian Lance Taylor  <iant@google.com>
8267         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8268         than size_in_bytes.
8270 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
8272         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8273         of LR/CTR moves for Power6.
8275 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8277         PR middle-end/36003
8278         * passes.c (init_optimization_passes): Remove
8279         pass_fast_rtl_byte_dce.
8280         
8281 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
8283         PR target/29096
8284         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8285         builtin functions to generate faster code.
8286         (_mm_cvtpu16_ps): Ditto.
8287         (_mm_cvtpi32x2_ps): Ditto.
8289 2008-04-22  Nick Clifton  <nickc@redhat.com>
8291         * common.opt (ftree-loop-distribution): Add Optimization
8292         attribute.
8294         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8295         (frv_expand_builtin_va_start): Likewise.
8297         * config/arm/arm.c (thumb_find_work_register): Fix location of
8298         argument register count.
8300 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8302         Support scheduling for ColdFire V1 and V3 microarchitecture.
8303         Improve scheduling of multiplication instructions.
8305         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
8306         (mac): New instruction attribute.
8307         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8308         (m68k_sched_mac): New variable.
8309         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8310         Handle cfv1 and cfv3.
8311         (max_insn_size): New static variable.
8312         (struct _sched_ib): New type.
8313         (sched_ib): New static variable.
8314         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8315         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
8316         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8317         Update.
8318         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8319         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
8320         new variables.  Update.
8321         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8322         Add modeling of cfv3 instruction buffer.  Update.
8323         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8324         * config/m68k/m68k.h (TUNE_CFV3): New macro.
8325         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8326         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8327         a particular reservation applies to.
8328         (type2): Reorganize attribute values.  Rename alu to alu_reg,
8329         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
8330         to mul_l and mul_w.
8331         (cf_ib_*): Simplify description of instruction buffer.
8332         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8333         (cf_mem): Split into cf_mem1 and cf_mem2.
8334         (cf_v2_move_??): Rename to cfv12_alu_??.
8335         (cf_v2_move_l_??): Rename to cfv12_omove_??.
8336         (cf_v2_mul_??): Remove reservations.
8337         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8338         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8339         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8340         appropriate place.
8341         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8342         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8343         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8344         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8345         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8346         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8347         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8348         expansions of the above reservations for instructions of sizes
8349         1, 2 and 3 words.
8351 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8353         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8355 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
8357         * coverage.c: Include tree-pass.h.
8358         (coverage_counter_alloc): Print da_file_name to the dump file.
8360 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
8362         * sbitmap.c (sbitmap_range_empty_p): New function.
8363         * sbitmap.h (sbitmap_range_empty_p): New function.
8364         * bitmap.h: Now includes obstack.h.
8366 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
8367             Kenneth Zadeck  <zadeck@naturalbridge.com>
8369         * dbgcnt.def (ra_byte_scan): Added.
8370         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8371         when the last hit happens for a counter.  
8372         * timevar.def (TV_DF_BYTE_LR): New variable.
8373         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8374         * passes.c (pass_fast_rtl_byte_dce): New pass.
8375         * fwprop.c (update_df): Added mode to call df_ref_create.
8376         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8377         DF_REF_EXTRACT_OFFSET.
8378         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
8379         DF_BYTE_LR_OUT, df_byte_lr): New macro.
8380         (df_mm): New enum.
8381         (df_ref_extract): Added mode field.
8382         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8383         DF_REF_EXTRACT_OFFSET.
8384         (DF_REF_EXTRACT_MODE): New macro.
8385         (df_byte_lr_bb_info): New structure.
8386         (df_print_byte_regset, df_compute_accessed_bytes, 
8387         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8388         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8389         df_byte_lr_simulate_uses,
8390         df_byte_lr_simulate_artificial_refs_at_top,
8391         df_byte_lr_simulate_artificial_refs_at_end,
8392         df_compute_accessed_bytes): New function.
8393         (df_ref_create): Add parameter.
8394         (df_byte_lr_get_bb_info): New inline function.
8395         * df-scan.c (df_ref_record, df_uses_record,
8396         df_ref_create_structure): Added mode parameter.
8397         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
8398         df_defs_record, df_uses_record, df_get_conditional_uses,
8399         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
8400         df_entry_block_defs_collect, df_exit_block_uses_collect):
8401         Added mode parameter to calls to df_ref_record, df_uses_record,
8402         df_ref_create_structure.
8403         (df_ref_equal_p, df_ref_compare): Added test for modes.
8404         (df_ref_create_structure): Added code to set mode.  Renamed
8405         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8406         DF_REF_EXTRACT_OFFSET.
8407         * df-core.c (df_print_byte_regset): New function.
8408         * df-byte-scan.c: New file.
8409         * df-problems.c (df_rd_transfer_function): Removed unnecessary
8410         calls to BITMAP_FREE.  
8411         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8412         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8413         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
8414         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
8415         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8416         df_byte_lr_local_compute, df_byte_lr_init,
8417         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
8418         df_byte_lr_transfer_function, df_byte_lr_free, 
8419         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8420         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
8421         df_byte_lr_simulate_uses,
8422         df_byte_lr_simulate_artificial_refs_at_top,
8423         df_byte_lr_simulate_artificial_refs_at_end): New function.
8424         * dce.c (byte_dce_process_block): New function.
8425         (dce_process_block): au is now passed in rather than computed
8426         locally.  Changed loops that look at artificial defs to not look
8427         for conditional or partial ones, because there never are any.  
8428         (fast_dce): Now is able to drive byte_dce_process_block or 
8429         dce_process_block depending on the kind of dce being done.
8430         (rest_of_handle_fast_dce): Add parameter to fast_dce.
8431         (rest_of_handle_fast_byte_dce): New function.
8432         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8433         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8435 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
8437         PR fortran/35019
8438         * gcc.h: Added fortran options that take arguments to
8439         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8440         macros.
8442 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8444         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8445         scalarization if on the LHS and not a full access.
8447 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8449         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8451 2008-04-18  Rafael Espindola  <espindola@google.com>
8453         * tree-vrp.c (find_case_label_index): Fix the binary search.
8454         (find_case_label_range): New.
8455         (vrp_visit_switch_stmt): Use find_case_label_range.
8456         (simplify_switch_using_ranges): Use find_case_label_range.
8458 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8460         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8461         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8463 2008-04-18  Tom Tromey  <tromey@redhat.com>
8465         PR libcpp/15500:
8466         * doc/cpp.texi (Implementation-defined behavior): Mention
8467         -finput-charset.
8469 2008-04-18  Ian Lance Taylor  <iant@google.com>
8471         * fold-const.c (pointer_may_wrap_p): New static function.
8472         (fold_comparison): Add another test for pointer overflow.  Use
8473         pointer_may_wrap_p to disable some false positives.
8475 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
8476           
8477         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8478         (fname_as_string): Match updated cpp_interpret_string prototype.
8479         (fix_string_type): Support char16_t* and char32_t*.
8480         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8481         derivative) nodes.  Register as builtin if C++0x.
8482         (c_parse_error): Support CPP_CHAR{16,32}.
8483         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
8484         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8485         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8486         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8487         CTI_CHAR32_ARRAY_TYPE>: New elements.
8488         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8489         char32_type_node, signed_char32_type_node, char16_array_type_node,
8490         char32_array_type_node): New defines.
8491         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8492         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8493         (lex_string): Support CPP_STRING{16,32}, match updated
8494         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8495         (lex_charconst): Support CPP_CHAR{16,32}.
8496         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8497         and CPP_STRING{16,32}.
8499 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
8501         PR bootstrap/35457
8502         * aclocal.m4: Regenerate.
8503         * configure: Regenerate.
8505 2008-04-18  Jan Hubicka  <jh@suse.cz>
8507         * except.c (dw2_size_of_call_site_table,
8508         sjlj_size_of_call_site_table): Use vector API for call_site_record.
8510         * cgraphbuild.c (build_cgraph_edges): Update.
8511         * tree-pass.h: Update comment.
8512         * final.c (leaf_function_p): Update.
8513         (leaf_renumber_regs): Update.
8514         (rest_of_clean_state): Update.
8515         * omp-low.c (expand_omp_parallel): Update.
8516         * ipa-reference.c (analyze_function): Update.
8517         * reorg.c (find_end_label): Update.
8518         (optimize_skip): Update.
8519         (fill_simple_delay_slots): Update.
8520         (fill_simple_delay_slots): Update.
8521         (make_return_insns): Update.
8522         (dbr_schedule): Update.
8523         * gimple-low.c (record_vars_into): Update.
8524         * cfgbuild.c (make_edges): Update.
8525         * function.c (assign_stack_local): Update.
8526         (assign_parm_adjust_stack_rtl): Update.
8527         (locate_and_pad_parm): Update.
8528         (allocate_struct_function): Do not initialize stack_alignment_needed
8529         and preferred_stack_boundary here.
8530         (stack_protect_prologue): Update.
8531         (stack_protect_epilogue): Update.
8532         (expand_function_start): Initialize stack_alignment_needed,
8533         preferred_stack_boundary and max_jumptable_ents.
8534         (expand_function_end): Update.
8535         (free_after_compilation): Do not NULLify epilogue_delay_list.
8536         * function.h (struct rtl_data): Add stack_protect_guard,
8537         stack_alignment_needed,
8538         preferred_stack_boundary, epilogue_delay_list.
8539         (struct function): Remove value_histograms, stack_alignment_needed,
8540         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8541         last_label_uid,
8542         unexpanded_var_list, stack_protect_guard.
8543         (current_function_epilogue_delay_list): Remove.
8544         * ipa-type-escape.c (analyze_function): Update.
8545         * gimplify.c (pop_gimplify_context): Update comment.
8546         * calls.c (expand_call): Update.
8547         (emit_library_call_value_1): Update.
8548         * except.c (set_nothrow_function_flags): Update.
8549         * cfgexpand.c (get_decl_align_unit): Update.
8550         (create_stack_guard): Update.
8551         (estimated_stack_frame_size): Update.
8552         (expand_used_vars): Update.
8553         (tree_expand_cfg): Free histogram earliers, init expansion variables.
8554         * explow.c (allocate_dynamic_stack_space): Update.
8555         * tree-ssa-live.c (remove_unused_locals): Update.
8556         * varasm.c (mark_constant_pool): Update.
8557         * tree-inline.c (remap_decls): Update.
8558         (initialize_cfun): Update.
8559         (declare_return_variable): Update.
8560         (inline_forbidden_p): Update.
8561         (expand_call_inline): Update.
8562         (declare_inline_vars): Update.
8563         (tree_function_versioning): Update.
8564         * tree-flow.h (value_histograms): New.
8565         (VALUE_HISTOGRAMS): New macro.
8566         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8567         last_label_uid.
8568         * tree-cfg.c (set_bb_for_stmt): Update.
8569         (replace_by_duplicate_decl): Update.
8570         (move_block_to_fn): Update.
8571         (new_label_mapper): Update.
8572         (dump_function_to_file): Update.
8573         * ipa-struct-reorg.c (build_data_structure): Update.
8574         * cfgrtl.c (print_rtl_with_bb): Update.
8575         * reload1.c (reload): Update.
8576         (reload): Update.
8577         * config/i386/i386.c (setup_incoming_varargs_64,
8578         ix86_compute_frame_layout): Update.
8579         * config/arc/arc.c (arc_output_function_epilogue): Update.
8581 2008-04-18  Marius Strobl <marius@FreeBSD.org>
8583         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8584         for FreeBSD as well.
8585         * gthr-posix95.h: Likewise.
8587 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
8589         PR rtl-optimization/35838
8590         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8591         out the byte offset of the first subreg.
8593 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
8595         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8596         to split_ti instead of three separate calls with single member arrays.
8597         (subti3 splitter): Ditto.
8598         (adddi3 splitter): Ditto with split_di.
8599         (subdi3 splitter): Ditto.
8600         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8601         two separate calls with single member arrays.  Swap match_dup
8602         operands 1 and 2 to better fit into the array.
8603         (negdi2 splitter): Ditto with split_di.
8604         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
8605         two separate calls with single member arrays.  Swap match_dup operands
8606         6 and 7 to better fit into the array.
8608 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8610         * config/i386/i386.c (sse_builtin_type): New.
8611         (bdesc_sse_args): Likewise.
8612         (bdesc_sse_3arg): Removed.
8613         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8614         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8615         IX86_BUILTIN_ROUNDPS.
8616         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
8617         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
8618         IX86_BUILTIN_ROUNDPS.
8619         (ix86_expand_sse_4_operands_builtin): Removed.
8620         (ix86_expand_sse_operands_builtin): New.
8621         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8622         and CODE_FOR_sse4_1_roundps.
8623         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8624         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
8626 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
8628         PR target/35907
8629         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8630         regs before frame pop when needed.  If use_backchain_to_restore_sp
8631         then load backchain into a temp reg to restore vr and vrsave.  Add
8632         code to restore vr after frame pop if possible.
8634 2008-04-17  Richard Guenther  <rguenther@suse.de>
8636         * tree-vn.c (expressions_equal_p): Do not check type
8637         equality or compatibility before calling operand_equal_p.
8638         * fold-const.c (operand_equal_p): Check equivalence of
8639         integer constants before bailing out due to signedness or
8640         precision differences.
8641         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8642         spurious differences in type qualification.  Ignore types
8643         for COMPONENT_REFs at all.
8645 2008-04-17  Christian Bruel  <christian.bruel@st.com>
8647         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8648         msw_skip comparison.
8649         
8650 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
8652         PR c/35739
8653         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8654         reg type.
8656         PR tree-optimization/35899
8657         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8658         rather than TREE_OPERAND.
8660 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
8662         PR target/35944
8663         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8664         temporary registers.  Change operand predicate to general_operand.
8665         (remainderxf3): Ditto.
8667 2008-04-16  Richard Guenther  <rguenther@suse.de>
8669         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8670         * tree-affine.c (aff_combination_expand): Look through some
8671         conversions.
8673 2008-04-15  Doug Kwan  <dougkwan@google.com>
8675         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8676         for hex printing.
8677         * tree-pretty-print.c (dump_generic_node): Ditto.
8678         * final.c (output_addr_const): Ditto.
8679         * dwarf2out.c (output_cfi): Ditto.
8680         * c-pretty-print.c (pp_c_integer_constant): Ditto.
8681         * print-rtl.c (print_rtx): Ditto.
8682         * print-tree.c (print_node_brief, print_node): Ditto.
8683         * c-common.c (match_case_to_enum_1): Ditto.
8684         * sched-vis.c (print_value): Ditto.
8685         * config/i386/i386.c (print_operand): Cast to long unsigned int
8686         for hex printing.
8688 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
8689         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
8690         MS Windows VirtualProtect function.
8692 2008-04-15  Jan Hubicka  <jh@suse.cz>
8694         * gengtype.c (write_root): Param_is argument is OK.
8695         * expr.c (expand_expr_real_1): Update call of get_exception_*.
8696         * function.h: Include varray.h
8697         (rtl_eh): New stucture based on except.c one.
8698         (call_site_record): New forward declaration and vector type.
8699         * calls.c (emit_call_1): Do not call
8700         note_current_region_may_contain_throw.
8701         * except.c (eh_status): Remove cur_region, try_region since they are
8702         unused.
8703         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8704         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8705         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
8706         Remove call_site_data_used, call_site_data_size.
8707         Turn call_site_record into vector in function.h.
8708         (note_current_region_may_contain_throw): Remove.
8709         (get_exception_pointer, get_exception_filter): Do not take struct
8710         function argument; update.
8711         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8712         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8713         build_post_landing_pads, dw2_build_landing_pads,
8714         sjlj_assign_call_site_values, sjlj_mark_call_sites,
8715         sjlj_emit_function_enter, sjlj_emit_function_enter, 
8716         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8717         sjlj_build_landing_pads, finish_eh_generation,
8718         remove_exception_handler_label, remove_eh_handler,
8719         maybe_remove_eh_handler, add_reachable_handler,
8720         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8721         add_action_record, collect_one_action_chain, add_call_site,
8722         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8723         sjlj_output_call_site_table, output_function_exception_table,
8724         * except.h (note_current_region_may_contain_throw): Remove
8725         (get_exception_pointer, get_exception_filter): Do not take struct
8726         function argument.
8727         * Makefile.in (GTFILES): Put varargs before struct function.
8729 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8731         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8732         punt for STRING_CST.
8733         (get_constraint_for): Deal with STRING_CST here instead.
8735 2008-04-15  Richard Guenther  <rguenther@suse.de>
8737         * tree-ssa-propagate.c (substitute_and_fold): Substitute
8738         statements in a basic-block with a backward walk.  Do not
8739         substitute into dead statements but instead remove those.
8741 2008-04-15  Richard Guenther  <rguenther@suse.de>
8743         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8744         to zero, thus disable creation of SFTs.
8746 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8748         * tree-predcom.c (suitable_reference_p): Return false if the
8749         reference can throw.
8751 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
8753         PR c/35751
8754         * c-decl.c (finish_decl): If extern or static var has variable
8755         size, set TREE_TYPE (decl) to error_mark_node.
8757 2008-04-15  Rafael Espindola  <espindola@google.com>
8759         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8760         variable arg1.
8762 2008-04-15  Richard Guenther  <rguenther@suse.de>
8764         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8765         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8766         (visit_reference_op_load): Do walk vuse-vdef chains on
8767         vn_reference_lookup.
8768         (visit_reference_op_store): But do not here.
8769         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8770         vn_reference_lookup.
8771         (vn_lookup_with_vuses): But do so here.
8773 2008-04-14  Ian Lance Taylor  <iant@google.com>
8775         * fold-const.c (fold_overflow_warning): Remove assertion.
8777 2008-04-15  Ben Elliston  <bje@au.ibm.com>
8779         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8780         temp1 local variables.
8782 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
8784         PR target/35661
8785         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8786         ".text.unlikely" section as executable.
8788 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
8790         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8791         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8792         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8793         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8794         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8795         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8796         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8798 2008-04-14  Ian Lance Taylor  <iant@google.com>
8800         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8801         * fold-const.c (fold_comparison): If appropriate, test
8802         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8803         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8804         reassociating a pointer type.
8805         * doc/invoke.texi (Optimize Options): Document that
8806         -fstrict-overflow applies to pointer wraparound.
8808 2008-04-13  Jan Hubicka  <jh@suse.cz>
8810         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8812 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
8814         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8815         we are going to "save the world".
8817 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
8819         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8820         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8821         operand 0 constraint, not "=".
8823 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
8825         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8827 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8829         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8830         of size of positions_needed * CHAR_BIT.
8832 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8834         PR middle-end/35897
8835         * dse.c (store_info): Change positions_needed to unsigned
8836         HOST_WIDE_INT.
8837         (lowpart_bitmask): New.
8838         (record_store): Cast to unsigned HOST_WIDE_INT for
8839         positions_needed.  Assert width <= size of positions_needed *
8840         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
8841         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
8842         lowpart_bitmask to set mask.
8844 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8846         * config/bfin/constraints.md: New file.
8847         * config/bfin/bfin.md: Include it.
8848         (adddi3): Use satisfies_constraint functions instead of the old macros.
8849         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8850         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8851         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8852         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8853         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8854         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8855         EXTRA_CONSTRAINT): Delete.
8856         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8857         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8858         of the old macros.
8859         * config/bfin/bfin.c: Include "tm-constrs.h".
8860         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8861         Use satisfies_constraint functions instead of the old macros.
8862         * doc/md.texi (Blackfin Constraints): Update file name reference.
8864 2008-04-11  Richard Guenther  <rguenther@suse.de>
8866         PR tree-optimization/35869
8867         * tree-vrp.c (execute_vrp): Move switch statement update after
8868         jump threading.  Schedule another cfg cleanup run.
8870 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
8872         PR c/35744
8873         * attribs.c (decl_attributes): Return early on errorneous node.
8875 2008-04-10  Oleg Ryjkov  <olegr@google.com>
8877         * tree.h (struct tree_base): Added a new flag default_def_flag.
8878         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8880 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8882         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8884 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8886         PR target/35768
8887         * pa.md: Define mode iterator P.  Define mode attribute dwc.
8888         (dcacheflush): Update pattern to use iterator P and attribute dwc.
8889         (icacheflush): Likewise.
8890         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8891         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8893 2008-04-11  Ben Elliston  <bje@au.ibm.com>
8895         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8897 2008-04-10  Rafael Espindola  <espindola@google.com>
8899         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8900         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8901         (extract_range_from_expr): The same.
8903 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8905         * config/mips/mips.md (GPR2): New mode iterator.
8906         (seq): Add comment.
8907         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
8908         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
8909         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8910         Rewrite these to take two modes, the mode of comparison and the
8911         mode of the destination.
8912         * config/mips/mips.c (mips_expand_scc): Instead of having
8913         paradoxical subreg as destination, expand "narrowing" scc if mode
8914         of comparison is SI and target is requested in DI mode.
8915         (mips_emit_int_order_test): Update comment.  Make mode of
8916         comparison match CMP0 rather than TARGET.  When creating inverse
8917         target use mode of TARGET.
8919 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8921         * gcov-dump.c (tag_summary): Only print summaries for the first
8922         GCOV_COUNTERS_SUMMABLE counters.
8924 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
8926         * config/i386/i386.md (absneg): New code iterator.
8927         (absnegprefix): New code attribute.
8928         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
8929         patterns using absneg code iterator.
8930         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
8931         using absneg code iterator.
8932         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
8933         *neg<mode>2 patterns using absneg code iterator.
8934         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8935         *negextendsfdf2 patterns using absneg code iterator.
8936         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
8937         *negextendsfxf2 patterns using absneg code iterator.
8938         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8939         *negextendsfdf2 patterns using absneg code iterator.
8940         * config/i386/sse.md (<code><mode>2): Macroize expander from
8941         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
8943 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
8945         * config/s390/s390.h: Remove the remains of the recent search
8946         & replace action of current_function_outgoing_args_size.
8948 2008-04-10  Ira Rosen  <irar@il.ibm.com>
8950         PR tree-optimization/35821
8951         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
8952         NEW_STMT_LIST is not NULL.
8954 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
8956         PR libstdc++/35597
8957         * toplev.c (process_options): Remove -ffunction-sections debugging
8958         warning.
8960 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
8962         PR middle-end/PR28690
8963         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
8964         than gen_rtx_fmt_ee to perform more canonicalizations.
8966 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8968         PR driver/35665
8969         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
8971 2008-04-09  Richard Guenther  <rguenther@suse.de>
8973         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
8974         (dump_function_to_file): Dump function arguments with types.
8976 2008-04-08  Richard Guenther  <rguenther@suse.de>
8978         * fold-const.c (fold_widened_comparison): Do not allow
8979         sign-changes that change the result.
8981 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
8983         PR target/35839
8984         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
8985         kinds of indirect references.
8987 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
8989         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
8990         GNU Fortran language string.
8992 2008-04-08  Rafael Espindola  <espindola@google.com>
8994         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
8995         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
8996         * tree.h (tree_call_nonnegative_warnv_p): New.
8998 2008-04-08  Jan Hubicka  <jh@suse.cz>
9000         * function.c (free_after_compilation): Clear out regno_reg_rtx
9001         pointer.
9003 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
9005         Revert
9006         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9008         PR middle-end/PR28690
9009         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9010         same precedence as REG_POINTER and MEM_POINTER operands.
9012 2008-04-08  Richard Guenther  <rguenther@suse.de>
9014         PR middle-end/35834
9015         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9016         for adding index to base.
9018 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
9020         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9021         (MINGW_ENABLE_EXECUTE_STACK): New.
9022         (IN_LIBGCC2): For libgcc include windows.h file for
9023         function declarations.
9025 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
9027         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9028         and tem2 if tem1 is not a REG or MULT.
9030 2008-04-08  Jan Hubicka  <jh@suse.cz>
9032         * function.h (incomming_args): Break out of struct function.
9033         (function_subsections): Break out of struct function.
9034         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9035         return_rtx and hard_reg_initial_vals from struct function.
9036         Kill inl_max_label_num.
9037         (current_function_pops_args, current_function_args_info,
9038         current_function_args_size, current_function_args_size,
9039         current_function_pretend_args_size,
9040         current_function_outgoing_args_size,
9041         current_function_internal_arg_pointer, current_function_return_rtx):
9042         Kill compatibility accestor macros.
9043         * builtins.c (expand_builtin_apply_args_1): Update.
9044         (expand_builtin_next_arg): Update.
9045         * df-scan.c (df_get_call_refs): Update.
9046         * dbxout.c (dbxout_function_end): Update.
9047         * dwarf2out.c (dwarf2out_switch_text_section): Update.
9048         (output_line_info): Update.
9049         (secname_for_decl): Update.
9050         (dwarf2out_var_location): Update.
9051         * function.c (free_after_compilation): Update.
9052         (assign_parm_find_stack_rtl): Update.
9053         (assign_parms): Update.
9054         (expand_dummy_function_end): Update.
9055         (expand_function_end): Update.
9056         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
9057         (expand_call): Update.
9058         (emit_library_call_value_1): Update.
9059         (store_one_arg): Update.
9060         * varasm.c (initialize_cold_section_name): Update.
9061         (unlikely_text_section): Update.
9062         (unlikely_text_section_p): Update.
9063         (assemble_start_function): Update.
9064         (assemble_end_function): Update.
9065         (default_section_type_flags): Update.
9066         (switch_to_section): Update.
9067         * integrate.c (set_decl_abstract_flags): Update.
9068         (get_hard_reg_initial_val): Update.
9069         (has_hard_reg_initial_val): Update.
9070         (allocate_initial_values): Update.
9071         * resource.c (init_resource_info): Update.
9072         * config/alpha/alpha.c (NUM_ARGS): Update.
9073         (direct_return): Update.
9074         (alpha_va_start): Update.
9075         (alpha_sa_size): Update.
9076         (alpha_initial_elimination_offset): Update.
9077         (alpha_expand_prologue): Update.
9078         (alpha_start_function): Update.
9079         (alpha_expand_epilogue): Update.
9080         (unicosmk_initial_elimination_offset):
9081         * config/alpha/alpha.md (call expander): Update.
9082         * config/s390/s390.c (s390_register_info): Update.
9083         (s390_register_info): Update.
9084         (s390_frame_info): Update.
9085         (s390_initial_elimination_offset): Update.
9086         (s390_build_builtin_va_list): Update.
9087         (s390_va_start): Update.
9088         * config/spu/spu.c (direct_return): Update.
9089         (spu_expand_prologue): Update.
9090         (spu_initial_elimination_offset): Update.
9091         (spu_build_builtin_va_list): Update.
9092         (spu_va_start): Update.
9093         * config/sparc/sparc.c (sparc_init_modes): Update.
9094         (sparc_compute_frame_size): Update.
9095         (function_value): Update.
9096         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9097         * config/i386/i386.md (return expander): Update.
9098         * config/i386/i386.c (ix86_va_start): Update.
9099         (ix86_can_use_return_insn_p): Update.
9100         (ix86_compute_frame_layout): Update.
9101         (ix86_expand_epilogue): Update.
9102         * config/sh/sh.c (output_stack_adjust): Update.
9103         (calc_live_regs): Update.
9104         (sh_expand_prologue): Update.
9105         (sh_builtin_saveregs): Update.
9106         (sh_va_start): Update.
9107         (initial_elimination_offset): Update.
9108         (sh_allocate_initial_value): Update.
9109         (sh_function_ok_for_sibcall): Update.
9110         (sh_get_pr_initial_val): Update.
9111         * config/sh/sh.md (return expander): Update.
9112         * config/avr/avr.c (frame_pointer_required_p): UPdate.
9113         * config/crx/crx.c (crx_compute_frame): UPdate.
9114         (crx_initial_elimination_offset): UPdate.
9115         * config/xtensa/xtensa.c (compute_frame_size): Update
9116         (xtensa_builtin_saveregs): Update.
9117         (xtensa_va_start): Update.
9118         (order_regs_for_local_alloc): Update.
9119         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9120         (xstormy16_expand_builtin_va_start): Update.
9121         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9122         * config/m68hc11/m68hc11.md (return expanders): Update.
9123         * config/m68hc11/m68hc11.c (expand_prologue): Update.
9124         (expand_epilogue): Update.
9125         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9126         (cris_simple_epilogue): Update.
9127         (cris_expand_prologue): Update.
9128         (cris_expand_epilogue): Update.
9129         * config/iq2000/iq2000.c (iq2000_va_start): Update.
9130         (compute_frame_size): Update.
9131         * config/mt/mt.c (mt_compute_frame_size): Update.
9132         * config/mn10300/mn10300.c (expand_prologue): Update.
9133         (expand_epilogue): Update.
9134         (initial_offset): Update.
9135         (mn10300_builtin_saveregs):
9136         * config/mn10300/mn10300.md (return expander): Update.
9137         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9138         (ia64_initial_elimination_offset): Update.
9139         (ia64_initial_elimination_offset): Update.
9140         (ia64_expand_prologue): Update.
9141         * config/m68k/m68k.md (return expander): Update.
9142         * config/rs6000/rs6000.c (rs6000_va_start): Update.
9143         (rs6000_stack_info): Update.
9144         * config/mcore/mcore.c (layout_mcore_frame): Update.
9145         (mcore_expand_prolog): Update.
9146         * config/arc/arc.c (arc_compute_frame_size): Update.
9147         * config/score/score3.c (score3_compute_frame_size): Update.
9148         * config/score/score7.c (score7_compute_frame_size): Update.
9149         * config/arm/arm.c (use_return_insn): Update.
9150         (thumb_find_work_register): Update.
9151         (arm_compute_save_reg_mask): Update.
9152         (arm_output_function_prologue): Update.
9153         (arm_output_epilogue): Update.
9154         (arm_size_return_regs): Update.
9155         (arm_get_frame_offsets): Update.
9156         (arm_expand_prologue): Update.
9157         (thumb_exit): Update.
9158         (thumb_unexpanded_epilogue): Update.
9159         (thumb1_output_function_prologue): Update.
9160         * config/pa/pa.md (return expander): Update.
9161         * config/pa/pa.c (compute_frame_size): Update.
9162         (hppa_builtin_saveregs): Update.
9163         * config/mips/mips.c (mips_va_start): Update.
9164         (mips16_build_function_stub): Update.
9165         (mips_compute_frame_info): Update.
9166         (mips_restore_gp): Update.
9167         (mips_output_function_prologue): Update.
9168         (mips_expand_prologue): Update.
9169         * config/v850/v850.c (compute_frame_size): Update.
9170         (expand_prologue): * config/mmix/mmix.c (along): update.
9171         (mmix_initial_elimination_offset): update.
9172         (mmix_reorg): update.
9173         (mmix_use_simple_return): update.
9174         (mmix_expand_prologue): update.
9175         (mmix_expand_epilogue): Update.
9176         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9177         (emit_link_insn): Update.
9179 2008-04-08  Anatoly Sokolov <aesok@post.ru>
9181         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
9182         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
9183         instructions.
9184         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
9185         atmega103 device.
9187 2008-04-07  Jan Hubicka  <jh@suse.cz>
9189         * function.h (rtl): Rename to x_rtl.
9190         (crtl): New define.
9191         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9192         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9193         used_temp_slots avail_temp_slots, temp_slot_level,
9194         nonlocal_goto_handler_labels): Update accesstors.
9195         (rtl): New global variable.
9196         (struct function): Move some fileds to rtl_data.
9197         (get_arg_pointer_save_area): Update prototype.
9198         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9199         get_arg_pointer_save_area.
9200         * expr.c (init_expr): Update
9201         * function.c (get_frame_size): Update
9202         (assign_stack_local): Update
9203         (expand_function_end): Update.
9204         (get_art_pointer_save_area): Update
9205         * function.h 
9206         * emit-rtl.c (rtl): Declare.
9207         (regno_reg_rtx): Declare.
9208         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9209         Update.
9210         (gen_reg_rtx): Update.
9211         * varasm.c (n_deferred_constatns): Update accestor.
9212         (init_varasm_status): Do not allocate varasm_status.
9213         (force_const_mem, get_pool_size, output_constant_pool): Update.
9214         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9215         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9216         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9217         * sparc/sparc.h (INIT_EXPANDERS): Update.
9218         * ia64/ia64.h (INIT_EXPANDERS): Update.
9220 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
9222         * reload.c (push_secondary_reload): Add missing break to for loop.
9224 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9226         PR middle-end/PR28690
9227         * rtlanal.c: Update copyright years.
9228         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9229         as REG_POINTER and MEM_POINTER operands.
9230         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9231         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9232         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9233         * gcse.c: Update copyright years.
9234         (pre_delete): Call gen_reg_rtx_and_attrs.
9235         (hoist_code): Likewise.
9236         (build_store_vectors): Likewise.
9237         (delete_store): Likewise.
9238         * loop-invariant.c (move_invariant_reg): Likewise.
9239         Update copyright years.
9241 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
9243         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9244         control string instead of quoted.
9246 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9248         * doc/rtl.texi: Rewrite of subreg section.
9250 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
9252         PR/35842
9253         * config/i386/i386.c (legitimize_pic_address): Add treating
9254         of dllimport SYM_REF's.
9255         (legitimize_dllimport_symbol): Add prototype.
9257 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9259         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
9260         reference in constructor with non self-referential type.
9262 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9264         Removal of Return with Depressed Stack Pointer support
9265         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9266         (ECF_SP_DEPRESSED): Likewise.
9267         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9268         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9269         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9270         (expand_call): Do not test ECF_SP_DEPRESSED.
9271         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9272         * function.c (keep_stack_depressed): Delete.
9273         (handle_epilogue_set): Likewise.
9274         (update_epilogue_consts): Likewise.
9275         (emit_equiv_load): Likewise.
9276         (thread_prologue_and_epilogue_insns): Remove support for Return with
9277         Depressed Stack Pointer.
9278         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9280 2008-04-06  Richard Guenther  <rguenther@suse.de>
9282         PR tree-optimization/35400
9283         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9284         information from SSA_NAMEs.
9286 2008-04-06  Anatoly Sokolov <aesok@post.ru>
9288         * config/avr/avr.h (avr_mega_p): Remove declaration.
9289         (AVR_MEGA): Remove macro.
9290         * config/avr/avr.c (avr_mega_p): Remove variable.
9291         (avr_override_options): Remove inicializion of avr_mega_p.
9292         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9293         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9294         (avr_jump_mode): (Ditto.).
9295         (avr_output_progmem_section_asm_op): (Ditto.).
9296         (avr_asm_init_sections): (Ditto.).
9297         (avr_asm_init_sections): (Ditto.).
9298         (avr_rtx_costs): (Ditto.).
9299         * config/avr/avr.md: (Ditto.).
9300         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
9301         '__AVR_MEGA__'.
9303 2008-04-06  Richard Guenther  <rguenther@suse.de>
9305         PR tree-optimization/35842
9306         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9307         is_gimple_invariant_address.
9309 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9311         * gcc.c (default_compilers): Sync Fortran extensions list with
9312         that in fortran/lang-specs.h.
9313         * doc/invoke.texi: Likewise.
9314         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9315         * dwarf2out.c (gen_compile_unit_die): Likewise.
9317 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
9319         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9321 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
9323         PR target/12329
9324         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9325         attribute is used for nested functions.
9327 2008-04-05  Jan Hubicka  <jh@suse.cz>
9329         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9331         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9332         letter argument.
9333         (dump_files): Update.
9334         (enable_rtl_dump_file): Do not accept letter argument.
9335         * tree-pass.h (dump_file_info): Remove letter argument.
9336         * toplev.c (decode_d_option): Update -da handling.
9337         * toplev.h (enable_rtl_dump_file): Update prototype.
9338         * passes.c (register_one_dump_file): Do not accept IPA argument; work
9339         it out based on pass type.
9340         (register_dump_files_1): Likewise.
9341         (init_optimization_passes): Update register_one_dump_file calls.
9342         (execute_one_pass): Sanity check that IPA passes are called at IPA
9343         level and RTL passes at RTL level.
9344         (execute_pass_list): IPA pass can not be after or subpass of
9345         GIMPLE/RTL pass.
9346         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9347         disallov RTL subpasses of IPA subpasses.
9349 2008-04-05  Ben Elliston  <bje@au.ibm.com>
9351         * tree-cfg.c (need_fake_edge_p): Return false for calls to
9352         builtins that return exactly once and do not throw. Cache call to
9353         call_expr_flags.
9355 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9357         PR rtl-optimization/34916
9358         PR middle-end/35519
9359         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9360         between instruction pairs.
9362 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
9364         * doc/invoke.texi: Document -mbitops for SH.
9365         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9366         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9367         * config/sh/sh.c (print_operand): Add %t operand code.
9368         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9369         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9370         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9371         (extendqihi2): Likewise.
9372         (movqi_i): Likewise.
9373         (insv): Use bset, bclr and bst instructions for SH2A if possible.
9374         (extv): Use bld instruction for SH2A if possible.
9375         (extzv): Likewise.
9376         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9377         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9378         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9379         (bset.b, bclr.b): Define peepholes.
9380         * config/sh/sh.opt (mbitops): New option.
9382 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
9384         PR target/35620
9385         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9386         and view convert expression.
9388 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9390         PR target/35364
9391         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9393 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
9395         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9397         * config/i386/cpuid.h (bit_AES): New.
9398         (bit_PCLMUL): Likewise.
9400         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9401         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
9402         SSE2 if AES or PCLMUL is enabled.
9403         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9404         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9405         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9406         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9407         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9408         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9409         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9410         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9411         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9412         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9413         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9414         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9415         __builtin_ia32_aeskeygenassist128 and
9416         __builtin_ia32_pclmulqdq128.
9417         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9418         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9419         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
9421         * config/i386/i386.h (TARGET_AES): New.
9422         (TARGET_PCLMUL): Likewise.
9423         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9425         * config/i386/i386.md (UNSPEC_AESENC): New.
9426         (UNSPEC_AESENCLAST): Likewise.
9427         (UNSPEC_AESDEC): Likewise.
9428         (UNSPEC_AESDECLAST): Likewise.
9429         (UNSPEC_AESIMC): Likewise.
9430         (UNSPEC_AESKEYGENASSIST): Likewise.
9431         (UNSPEC_PCLMUL): Likewise.
9433         * config/i386/i386.opt (maes): New.
9434         (mpclmul): Likewise.
9436         * config/i386/sse.md (aesenc): New pattern.
9437         (aesenclast): Likewise.
9438         (aesdec): Likewise.
9439         (aesdeclast): Likewise.
9440         (aesimc): Likewise.
9441         (aeskeygenassist): Likewise.
9442         (pclmulqdq): Likewise.
9444         * config/i386/wmmintrin.h: New.
9446         * doc/extend.texi: Document AES and PCLMUL built-in function.
9448         * doc/invoke.texi: Document -maes and -mpclmul.
9450 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
9452         * function.c (free_after_parsing): Replace with
9453         cxx_push_function_context from C++ front-end.
9454         (allocate_struct_function): Don't call langhook.
9455         * langhooks.h (struct lang_hooks_for_functions): Delete.
9456         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9457         member "function".
9458         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9459         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9460         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9461         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9462         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9463         remove LANG_HOOKS_FUNCTION_INITIALIZER.
9464         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9466         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9467         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9468         
9469 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9471         PR c/35440
9472         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9473         for all types.
9475 2008-04-04  Richard Guenther  <rguenther@suse.de>
9477         PR middle-end/35823
9478         * fold-const.c (optimize_minmax_comparison): Use the correct
9479         type for the constant in the simplified comparison.
9481 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
9483         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9484         Pass L2 size as "--param l2-cache-size" to the compiler.
9485         (decode_l2_cache): New function to decode L2 cache parameters using
9486         0x8000006 extended cpuid function.
9487         (detect_caches_amd): Determine parameters of L2 cache using
9488         decode_l2_caches function.
9489         (decode_caches_intel): Decode L2 cache parameters.
9490         (detect_caches_intel): Determine L2 cache parameters using
9491         decode_caches_intel and decode_l2_caches functions.
9493 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
9495         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9496         secondary input reload for subword loads from the constant pool.
9498 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
9500         PR target/35713
9501         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9502           constants of the appropriate size for runtime calculations.
9504         PR c/35712
9505         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9506           decimal-float literal constant zero.
9508 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
9510         PR c/35738
9511         * c-parser.c (c_parser_omp_atomic): Call
9512         default_function_array_conversion on the RHS.
9514         PR middle-end/35818
9515         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9516         call is_variable_sized if decl has incomplete type.
9518 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
9520         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9522 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
9524         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9525         iterators.
9526         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9527         (sgt<u>): Merge sgt and sgtu into new expander.
9528         (sgt, sgtu): Remove expanders.
9529         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9530         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9531         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9532         *sgtu_<mode>_mips16 into new pattern.
9533         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9534         (sge<u>): Merge sge and sgeu into new expander.
9535         (sge, sgeu): Remove expanders.
9536         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9537         new pattern.
9538         (*sge_<mode>, second *sge_<mode>): Remove patterns.
9539         (slt<u>): Merge slt and sltu into new expander.
9540         (slt, sltu): Remove expanders.
9541         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9542         (*slt_<mode>, *sltu_<mode>): Remove patterns.
9543         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9544         *sltu_<mode>_mips16 into new pattern.
9545         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9546         (sle<u>): Merge sle and sleu into new expander.
9547         (sle, sleu): Remove expanders.
9548         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9549         (*sle_<mode>, *sleu_<mode>): Remove patterns.
9550         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9551         *sleu_<mode>_mips16 into new pattern.
9552         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9554 2008-04-03  Jan Hubicka  <jh@suse.cz>
9556         PR tree-optimization/35795
9557         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9558         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9559         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9560         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9561         * score/score3.c (score3_output_mi_thunk): Likewise.
9562         * score/score7.c (score7_output_mi_thunk): Likewise.
9563         * mips/mips.c (mips_output_mi_thunk): Likewise.
9565 2008-04-03  Richard Guenther  <rguenther@suse.de>
9567         * tree-vrp.c (extract_range_from_unary_expr): Handle all
9568         conversions.  Simplify code.
9570 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9572         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9574 2008-04-03  Tom Tromey  <tromey@redhat.com>
9575             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9577         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9578         * config/bfin/t-bfin-linux (generated_files): Add
9579         linux-sysroot-suffix.h.
9580         * doc/install.texi (Prerequisites): Require make 3.80.
9581         * doc/sourcebuild.texi (Front End Directory): Document new
9582         variable.
9583         * Makefile.in (generated_files): New variable.
9584         (ALL_HOST_OBJS): New variable.
9585         ($(ALL_HOST_OBJS)): New target.
9587 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9589         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9590         (remap_block): Call id->transform_lang_insert_block instead
9591         of langhook.
9592         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9593         Set id.transform_lang_insert_block to NULL.
9594         (clone_body): Move to cp/optimize.c
9595         * tree-inline.h (struct copy_body_data): Change
9596         transform_lang_insert_block to function pointer.
9597         (copy_generic_body, copy_decl_no_change): Export.
9598         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9599         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9600         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9602         * c-tree.h (insert_block): Kill.
9603         * c-decl.c (insert_block): Kill.
9605 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9607         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9608         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9609         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9610         argument.
9611         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9612         argument, call {push,pop}_function_context from here.
9613         * c-parser.c: Use c_{push,pop}_function_context.
9615         * function.c (push_function_context_to): Move meat ...
9616         (push_function_context): ... here.  Simplify.
9617         * function.c (pop_function_context_from): Move meat ...
9618         (pop_function_context): ... here.  Simplify.
9619         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9620         leave_nested).
9621         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9622         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9623         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9624         * tree.h (push_function_context_to, pop_function_context_from): Remove.
9626 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9628         * expmed.c (extract_force_align_mem_bit_field): Remove.
9630 2008-04-03  Richard Guenther  <rguenther@suse.de>
9632         PR middle-end/35800
9633         * expr.h (try_casesi): Adjust prototype.
9634         * expr.c (try_casesi): Take fallback label as extra parameter.
9635         Use that for gen_casesi if default_label is NULL.
9636         * stmt.c (expand_case): Pass fallback label to try_casesi,
9637         make sure to fill gaps with a fallback label if default_label
9638         is not present.
9640 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
9642         PR target/35801
9643         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9645 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9647         * expmed.c (extract_split_bit_field): Remove if (0) code.
9648         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9649         (do_ds_constraint): Likewise.
9651 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
9653         * doc/cppopts.texi (-dU): Document.
9654         * c-common.h (flag_dump_macros): Update comment.
9655         * c-opts.c (handle_OPT_d): Handle -dU.
9656         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9657         dump_queued_macros, cb_used_define, cb_used_undef): New.
9658         (init_pp_output): Handle -dU.
9659         (cb_line_change): Call dump_queued_macros.
9660         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9662 2008-04-02  Anatoly Sokolov <aesok@post.ru>
9664         * config/avr/predicates.md (io_address_operand): New predicate. 
9665         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9666         * config/avr/avr.c (avr_io_address_p): Remove function.
9667         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
9668         'avr_io_address_p' function.
9669         (out_movhi_r_mr): (Ditto.).
9670         (out_movqi_mr_r): (Ditto.).
9671         (out_movhi_mr_r): (Ditto.).
9672         (avr_address_cost): (Ditto.).
9674 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
9676         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9677         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9678         in 32bit mode when XMM registers are available to avoid store
9679         forwarding stalls.
9680         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9681         corresponding post-reload splitters.
9683 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9685         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9686         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
9687         __builtin_ia32_roundss.
9688         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9689         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9690         __builtin_ia32_roundss.
9691         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9692         IX86_BUILTIN_SHUFPD here.
9694 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9696         * config/i386/i386.md (plogic): New.
9697         (plogicprefix): Likewise.
9699         * config/i386/mmx.md (mmx_<code><mode>3): New.
9700         (mmx_and<mode>3): Removed.
9701         (mmx_ior<mode>3): Likewise.
9702         (mmx_xor<mode>3): Likewise.
9704         * config/i386/sse.md (<code><mode>3): New.
9705         (*<code><mode>3): Likewise.
9706         (*<code><mode>3): Likewise.
9707         (<code><mode>3): Likewise.
9708         (*sse_<code><mode>3): Likewise.
9709         (*sse2_<code><mode>3): Likewise.
9710         (<code>tf3): Likewise.
9711         (*<code>tf3): Likewise.
9712         (and<mode>3): Likewise.
9713         (*and<mode>3): Likewise.
9714         (ior<mode>3): Removed.
9715         (*ior<mode>3): Likewise.
9716         (xor<mode>3): Likewise.
9717         (*xor<mode>3): Likewise.
9718         (*and<mode>3): Likewise.
9719         (*ior<mode>3): Likewise.
9720         (*xor<mode>3): Likewise.
9721         (and<mode>3): Likewise.
9722         (*sse_and<mode>3): Likewise.
9723         (*sse2_and<mode>3): Likewise.
9724         (andtf3): Likewise.
9725         (*andtf3): Likewise.
9726         (ior<mode>3): Likewise.
9727         (*sse_ior<mode>3): Likewise.
9728         (*sse2_ior<mode>3): Likewise.
9729         (iortf3): Likewise.
9730         (*iortf3): Likewise.
9731         (xor<mode>3): Likewise.
9732         (*sse_xor<mode>3): Likewise.
9733         (*sse2_xor<mode>3): Likewise.
9734         (xortf3): Likewise.
9735         (*xortf3): Likewise.
9737 2008-04-02  Richard Guenther  <rguenther@suse.de>
9739         PR tree-optimization/14495
9740         PR tree-optimization/34793
9741         * tree-vrp.c (struct switch_update): New structure.
9742         (to_remove_edges, to_update_switch_stmts): New VECs.
9743         (simplify_switch_using_ranges): New function.  Remove not taken
9744         case labels and edges.
9745         (simplify_stmt_using_ranges): Call it.
9746         (identify_jump_threads): Mark edges we have queued for removal
9747         so we don't thread them.
9748         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9749         case label vector.
9750         * tree-cfg.c (group_case_labels): Deal with missing default label.
9751         (tree_verify_flow_info): Allow missing default label.
9752         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9753         (emit_case_nodes): Likewise.
9754         (expand_case): Do not rely on the default label to be present.
9755         * expr.c (try_casesi): Deal with NULL default_label.
9756         (do_tablejump): Likewise.
9758 2008-04-02  Richard Guenther  <rguenther@suse.de>
9760         PR tree-optimization/14495
9761         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9762         SWITCH_EXPR here ...
9763         (vrp_visit_switch_stmt): ... but here (new function).
9764         (find_case_label_index): New helper function.
9765         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9767 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9769         * fwprop.c: Fix ISO-C99ism.
9771 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9773         PR bootstrap/35752
9774         * Makefile.in (objdir): Set it here.
9775         * configure.ac: Not here.  Find dynamic linker characteristics.
9776         * exec-tool.in: Use them.
9777         * aclocal.m4: Regenerate.
9778         * configure: Regenerate.
9780 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9782         * expr.c (expand_var): Delete it.
9783         * expr.h (expand_var): Delete prototype.
9784         * function.c (expand_function_start): Use expand_decl instead.
9785         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9786         langhook.
9788 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
9790         PR rtl-optimization/35542
9791         * fwprop.c (forward_propagate_and_simplify): Replace
9792         loc_reg_mentioned_in_p with reg_mentioned_p.
9794 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9796         PR rtl-optimization/35281
9797         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9798         (propagate_rtx_1): Handle PR_HANDLE_MEM.
9799         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9800         (varying_mem_p): Move above propagate_rtx.
9801         (all_uses_available_at): Do not check MEMs.
9803 2008-04-02  Rafael Espindola  <espindola@google.com>
9805         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9806         (register_edge_assert_for_2): Split the cond argument.
9807         (register_edge_assert_for_1): Adjust for the change in
9808         register_edge_assert_for_2.
9809         (register_edge_assert_for): Split the cond argument.
9810         (find_switch_asserts): Adjust for the change in
9811         register_edge_assert_for.
9813 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
9815         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9816         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9817         offsets for 64-bit mingw.
9818         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9819         abi for x86_64-pc-mingw.
9821 2008-04-02  Richard Guenther  <rguenther@suse.de>
9823         * tree-vrp.c (extract_range_from_assert): Make sure to not
9824         produce range min/max with TREE_OVERFOW set.
9825         If merging a anti-range and a range keep the anti-range if
9826         the range covers all values of the type.
9827         (register_edge_assert_for_2): Only allow sign-changing
9828         conversions in detecting canonical range checks.  Also
9829         register an assert for the unsigned name if useful.
9831         PR tree-optimization/35787
9832         * tree-vrp.c (vrp_val_max): New function.
9833         (vrp_val_min): Likewise.
9834         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9835         (vrp_val_is_min): Likewise.
9836         (supports_overflow_infinity): Use vrp_val_{min,max}.
9837         (negative_overflow_infinity): Likewise.
9838         (positive_overflow_infinity): Likewise.
9839         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9840         (is_positive_overflow_infinity): Likewise.
9841         (is_overflow_infinity): Likewise.
9842         (avoid_overflow_infinity): Use vrp_val_{min,max} and
9843         vrp_val_is_{min,max}.
9844         (set_and_canonicalize_value_range): Canonicalize anti-ranges
9845         to ranges if possible.  Avoid empty ranges.
9847 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9849         PR middle-end/35705
9850         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9851         the expression is a function address.
9853 2008-04-01  George Helffrich  <george@gcc.gnu.org>
9855         PR fortran/35154, fortran/23057
9856         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9857         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9858         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9859         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9860         in common.
9861         (dbxout_syms): Check for COMMON-based symbol and wrap in
9862         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9863         in bracket for efficiency.
9865         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9866         using DW_TAG_common_block + member offset.
9867         (add_pubname_string): New function.
9868         (dw_expand_expr): New function to find block name and offset for
9869         COMMON var.
9870         (common_check): New function to check whether symbol in Fortran COMMON.
9871         (gen_variable_die): If COMMON, use DW_TAG_common_block.
9873 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
9875         PR c/35436
9876         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9878 2008-04-02  Ben Elliston  <bje@au.ibm.com>
9880         * config/v850/v850.md (casesi): Remove if (0) code.
9881         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9882         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9884 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
9886         * config/i386/i386.md (rex64suffix): New mode attribute.
9887         (floathi<mode>2): Disable expander for SSE math.
9888         (*floathi<mode>2_1): New insn insn_and_split pattern.
9889         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9890         corresponding post-reload splitters.
9891         (*floathi<mode>2_i387): New macroized insn pattern.
9892         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9893         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9894         insn_and_split pattern.
9895         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9896         New macroized instruction patterns and corresponding post-reload
9897         splitters.
9898         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9899         and corresponding post-reload splitters.
9900         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9901         New macroized instruction patterns.
9902         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9903         macroized instruction patterns and corresponding post-reload splitters.
9904         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9905         corresponding post-reload splitters.
9906         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9907         New macroized instruction patterns.
9908         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
9909         corresponding post-reload splitters.
9910         (*floatsi<mode>2_i387): New macroized instruction patterns.
9912 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9914         * config/i386/i386.md (smaxmin): New.
9915         (umaxmin): Likewise.
9916         (maxminiprefix): Likewise.
9917         (maxminfprefix): Likewise.
9918         (<code><mode>3): Likewise.
9919         (smin<mode>3): Removed.
9920         (smax<mode>3): Likewise.
9922         * config/i386/mmx.md (mmx_<code>v2sf3): New.
9923         (mmx_<code>v4hi3): Likewise.
9924         (mmx_<code>v8qi3): Likewise.
9925         (mmx_smaxv2sf3): Removed.
9926         (mmx_sminv2sf3): Likewise.
9927         (mmx_umaxv8qi3): Likewise.
9928         (mmx_smaxv4hi3): Likewise.
9929         (mmx_uminv8qi3): Likewise.
9930         (mmx_sminv4hi3): Likewise.
9932         * config/i386/sse.md (<addsub><mode>3): New.
9933         (*<addsub><mode>3): Likewise.
9934         (<sse>_vm<addsub><mode>3): Likewise.
9935         (<maxmin><mode>3): Likewise.
9936         (*<maxmin><mode>3_finite): Likewise.
9937         (*<maxmin><mode>3): Likewise.
9938         (<sse>_vm<maxmin><mode>3): Likewise.
9939         (sse3_h<addsub>v4sf3): Likewise.
9940         (sse3_h<addsub>v2df3): Likewise.
9941         (<maxmin>v16qi3): Likewise.
9942         (*<maxmin>v16qi3): Likewise.
9943         (<maxmin>v8hi3): Likewise.
9944         (*<maxmin>v8hi3): Likewise.
9945         (*sse4_1_<maxmin><mode>3): Likewise.
9946         (*sse4_1_<maxmin><mode>3): Likewise.
9947         (add<mode>3): Removed.
9948         (*add<mode>3): Likewise.
9949         (<sse>_vmadd<mode>3): Likewise.
9950         (sub<mode>3): Likewise.
9951         (*sub<mode>3): Likewise.
9952         (<sse>_vmsub<mode>3): Likewise.
9953         (smin<mode>3): Likewise.
9954         (*smin<mode>3_finite): Likewise.
9955         (*smin<mode>3): Likewise.
9956         (<sse>_vmsmin<mode>3): Likewise.
9957         (smax<mode>3): Likewise.
9958         (*smax<mode>3_finite): Likewise.
9959         (*smax<mode>3): Likewise.
9960         (<sse>_vmsmax<mode>3): Likewise.
9961         (sse3_haddv4sf3): Likewise.
9962         (sse3_haddv2df3): Likewise.
9963         (sse3_hsubv4sf3): Likewise.
9964         (sse3_hsubv2df3): Likewise.
9965         (umaxv16qi3): Likewise.
9966         (*umaxv16qi3): Likewise.
9967         (smaxv8hi3): Likewise.
9968         (*smaxv8hi3): Likewise.
9969         (*sse4_1_smax<mode>3): Likewise.
9970         (*sse4_1_umax<mode>3): Likewise.
9971         (uminv16qi3): Likewise.
9972         (*uminv16qi3): Likewise.
9973         (sminv8hi3): Likewise.
9974         (*sminv8hi3): Likewise.
9975         (*sse4_1_smin<mode>3): Likewise.
9976         (*sse4_1_umin<mode>3): Likewise.
9978 2008-04-01  Rafael Espindola  <espindola@google.com>
9980         * tree-cfg.c (verify_expr): remove in_phi.
9981         (verify_stmt): Don't call walk_tree with verify_expr. Use
9982         is_gimple_min_invariant instead of is_gimple_val.
9984 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
9986         * doc/include/gpl_v3.texi: Update for manpage generation.
9987         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
9988         gpl.texi.
9989         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
9990         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
9991         gpl_v3.texi instead of gpl.texi.
9992         (gpl.pod): New.
9994 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
9996         PR pch/13675
9997         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
9999 2008-04-01  Rafael Espindola  <espindola@google.com>
10001         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10002         (extract_code_and_val_from_cond): Use
10003         extract_code_and_val_from_cond_with_ops.
10005 2008-04-01  Jan Hubicka  <jh@suse.cz>
10007         * function.c (free_after_compilation): Free epilogue_delay_list.
10008         (prepare_function_start): Assert that previous compilation was freed.
10010 2008-04-01  Jan Hubicka  <jh@suse.cz>
10011             Jim Wilson  <wilson@tuliptree.org>
10012             Andreas Tobler <andreast@gcc.gnu.org>
10014         PR middle-end/35781
10015         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10016         rtl.emit instead cfun->emit.
10017         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10018         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10020 2008-04-01  Ben Elliston  <bje@au.ibm.com>
10022         * doc/c-tree.texi (Function Basics): Fix grammatical error.
10024 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
10026         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10027         New options
10028         (fprofile-use): Add var flag_profile_use
10029         * coverage.c (coverage_begin_output): Do not open a gcno file for
10030         output only if -ftest-coverage is set.
10031         Do not add getpwd() to gcda file path.
10032         (build_gcov_info): Check the new flag
10033         flag_profile_datafile_relative_path.
10034         (coverage_init): Use profile_data_prefix.
10035         Read profile counter only if flag_profile_use is set.
10036         * opts.c (common_handle_option): New option fprofile-use=,
10037         fprofile-dir=, fprofile-generate=.
10038         * toplev.c (profile_data_prefix): New variable definition.
10039         * toplev.h (profile_data_prefix): New declaration.
10040         * doc/invoke.tex (Option Summary, Optimization Options):
10041         Add new options.
10043 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
10045         * varasm.c (output_constant_pool_1): In LABEL_REF check,
10046         use tmp consistently.
10048         PR target/35695
10049         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
10050         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10051         UNSPEC_FR_RECIP_APPROX_RES.
10052         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
10054 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
10056         PR c/35750
10057         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
10059 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10061         PR middle-end/30186
10062         * fold-const.c (fold_indirect_ref_1): Support accessing non first
10063         element of the vector via a pointer.
10065 2008-03-31  Ian Lance Taylor  <iant@google.com>
10067         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
10069 2008-03-31  Jan Hubicka  <jh@suse.cz>
10071         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10072         get_arg_pointer_save_area.
10073         * expr.c (init_expr): Just clear out rtl.expr.
10074         * function.c (free_after_compilation): Clear out whole RTL structure.
10075         (get_func_frame_size): Merge into ...
10076         (get_frame_size): ... this one.
10077         (assign_stack_local_1): Merge into ...
10078         (assign_stack_local): ... this one.
10079         (expand_function_end): Update call of get_arg_pointer_save_area.
10080         (get_art_pointer_save_area): Remove cfun argument.
10081         * function.h (emit_status): regno_pointer_align does not need length
10082         attribute. Move x_regno_reg_rtx to ...
10083         (regno_reg_rtx): ... new global array.
10084         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10085         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10086         apply_args_value, forced_labels, stack_pointer_delta):
10087         Update accestors.
10088         (struct varasm_status): Move here from varasm.c
10089         (struct rtl_data): New. Move here some fields from struct function.
10090         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10091         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10092         used_temp_slots avail_temp_slots, temp_slot_level,
10093         nonlocal_goto_handler_labels): Update accesstors.
10094         (rtl): New global variable.
10095         (struct function): Move some fileds to rtl_data.
10096         (get_arg_pointer_save_area): Update prototype.
10097         * emit-rtl.c (rtl): Declare.
10098         (regno_reg_rtx): Declare.
10099         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10100         Update.
10101         (gen_reg_rtx): Update.
10102         (init_virtual_regs): Do not tate emit_status argument.
10103         (init_emit): Do not allocate emit.
10104         * varasm.c (varasm_statuc): Move to function.h.
10105         (n_deferred_constatns): Update accestor.
10106         (init_varasm_status): Do not allocate varasm_status.
10107         (force_const_mem, get_pool_size, output_constant_pool): Update.
10108         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10109         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10111 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
10113         PR rtl-optimization/35729
10114         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10115         references.
10117 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10119         PR target/32000
10120         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10121         load/store if memory is unaligned.
10122         (*movti_rex64): Likewise.
10124         * config/i386/predicates.md (misaligned_operand): New.
10126 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
10128         PR tree-opt/35431
10129         * tree-ssa-phiopt.c (conditional_replacement): Return early for
10130         complex types.
10132 2008-03-31  Jan Beulich  <jbeulich@novell.com>
10134         * config/ia64/constraints.md: Add 'j' constraint.
10135         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10136         (movdi_internal): Likewise.
10138 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
10140         PR c/35748
10141         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10143 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10145         PR target/35757
10146         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10147         proper error message for the third argument on blendpd and
10148         blendps.
10150         * config/i386/sse.md (blendbits): New.
10151         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10153 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10155         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10157 2008-03-30  Richard Guenther  <rguenther@suse.de>
10159         PR middle-end/31023
10160         * fold-const.c (fold_sign_changed_comparison): Do leave
10161         conversions to base-types alone.
10163 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10165         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10166         the link register if one altivec register is be saved.
10168 2008-03-30  Ben Elliston  <bje@au.ibm.com>
10170         * final.c (final_scan_insn): Remove if (0) code.
10172 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
10174         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10176 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10178         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10179         of V4SFmode to ix86_binary_operator_ok.
10181 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
10183         * config/i386/i386.c (override_options): Initialize
10184         ix86_veclib_handler to ix86_veclibabi_svml when
10185         -mveclibabi=svml is used.
10186         (ix86_veclibabi_svml): New function for SVML ABI style
10187         vectorization support.
10188         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10190 2008-03-28  Rafael Espindola  <espindola@google.com>
10192         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10193         (tree_binary_nonnegative_warnv_p): Make it public.
10194         (tree_single_nonnegative_warnv_p): Make it public.
10195         (tree_invalid_nonnegative_warnv_p): Make it public.
10196         (tree_unary_nonzero_warnv_p): Make it public.
10197         (tree_binary_nonzero_warnv_p): Make it public
10198         (tree_single_nonzero_warnv_p): Make it public.
10199         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10200         (extract_range_from_binary_expr): Split the expr argument.
10201         (extract_range_from_unary_expr): Split the expr argument.
10202         (extract_range_from_comparison): Split the expr argument.
10203         (extract_range_from_expr): Use the new aux functions.
10204         (vrp_evaluate_conditional_warnv): Use
10205         vrp_evaluate_conditional_warnv_with_ops.
10206         * tree.h (tree_unary_nonzero_warnv_p): Declare.
10207         (tree_binary_nonzero_warnv_p): Declare.
10208         (tree_single_nonzero_warnv_p): Declare.
10209         (tree_expr_nonzero_warnv_p): Declare.
10210         (tree_unary_nonnegative_warnv_p): Declare.
10211         (tree_binary_nonnegative_warnv_p): Declare.
10212         (tree_single_nonnegative_warnv_p): Declare.
10213         (tree_invalid_nonnegative_warnv_p): Declare.
10215 2008-03-28  Richard Guenther  <rguenther@suse.de>
10217         PR tree-optimization/30317
10218         PR tree-optimization/30911
10219         PR tree-optimization/34793
10220         * tree-vrp.c (set_and_canonicalize_value_range): New function.
10221         (struct assert_locus_d): New member EXPR.
10222         (register_new_assert_for): Add EXPR parameter to support
10223         ASSERT_EXPR <name, expr OP limit>.
10224         (register_edge_assert_for_1): Adjust callers.
10225         (find_assert_locations): Likewise.
10226         (process_assert_insertions_for): Build condition from expression.
10227         (extract_range_from_assert): Handle ASSERT_EXPRs
10228         of the form ASSERT_EXPR <name, expr OP limit>.
10229         (register_edge_assert_for_2): New helper registering
10230         asserts for comparisons.  Recognize range tests of the form
10231         (unsigned)i - CST1 OP CST2.
10232         (register_edge_assert_for_1): Use it.
10233         (register_edge_assert_for): Likewise.
10234         (needs_overflow_infinity): Integer sub-types
10235         do not need overflow infinities.
10236         (vrp_val_is_max): The extreme values of integer sub-types
10237         are those of the base type.
10238         (vrp_val_is_min): Likewise.
10239         * tree.def (ASSERT_EXPR): Document extra allowed conditional
10240         expressions.
10242 2008-03-28  Nick Clifton  <nickc@redhat.com>
10244         PR target/31110
10245         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10246         Return GENERAL_REGS for stack adjustment reloads.
10248 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10250         PR target/31334
10251         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10252         const_vector when all the vectors are constant.
10254 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
10256         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10257         comparisons.
10258         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10259         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10260         (scc_sf): New.
10261         (s<code>_sf): Use new scc_sf attribute for opcode names.
10263 2008-03-27  Tom Tromey  <tromey@redhat.com>
10265         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10266         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10267         config/spu/t-spu-elf, config/i386/t-interix,
10268         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10269         config/i386/x-darwin, config/i386/x-mingw32,
10270         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10271         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10272         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10273         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10274         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10275         config/rs6000/x-darwin, config/rs6000/t-rs6000,
10276         config/score/t-score-elf, config/arm/t-strongarm-pe,
10277         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10278         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10279         Revert automatic dependency patch.
10281 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10283         PR target/35657
10284         * config/i386/i386.c (ix86_function_arg_boundary): Align
10285         decimal floating point to its natural boundary.
10287 2008-03-27  Richard Guenther  <rguenther@suse.de>
10289         PR middle-end/35716
10290         * fold-const.c (fold_comparison): Restrict distinct decl
10291         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
10292         solely rely on operand_equal_p.
10294 2008-03-27  Richard Guenther  <rguenther@suse.de>
10296         PR c/32511
10297         * c-common.c (handle_weak_attribute): Reject combination of
10298         weak and inline.
10300 2008-03-27  Richard Guenther  <rguenther@suse.de>
10302         PR tree-optimization/32810
10303         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10304         conversions from DECL_INITIAL.
10305         (fold_const_aggregate_ref): Likewise from constructor elements.
10307 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
10309         * tree-affine.h (aff_combination_expand): Declare.
10310         (get_inner_reference_aff): Likewise.
10311         * tree-affine.c (aff_combination_expand): Split out from
10312         tree_to_aff_combination_expand.
10313         (get_inner_reference_aff): New function.
10314         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10315         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10316         (struct lim_aux_data): sm_done field removed.
10317         (mem_ref_loc_p, mem_ref_locs_p): New types.
10318         (struct mem_ref): Added id, stored, accesses_in_loop,
10319         indep_loop, dep_loop, indep_ref, dep_ref fields.
10320         Removed is_stored, locs and next fields.
10321         (memory_accesses): New variable.
10322         (movement_possibility): Do not allow moving statements
10323         that store to memory.
10324         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10325         New functions.
10326         (determine_max_movement): For statements with memory references,
10327         find the outermost loop in that the reference is independent.
10328         (move_computations_stmt): Mark the virtual operands for renaming.
10329         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10330         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10331         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10332         add_vop_ref_mapping, create_vop_ref_mapping_loop,
10333         create_vop_ref_mapping, analyze_memory_references,
10334         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10335         get_all_locs_in_loop, ref_always_accessed_p,
10336         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10337         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10338         store_motion_loop, store_motion): New functions.
10339         (struct vop_to_refs_elt): New type.
10340         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10341         memref_hash, memref_eq, hoist_memory_references): Rewritten.
10342         (schedule_sm): Replaced by...
10343         (execute_sm): ... this.
10344         (determine_lsm_ref, hoist_memory_references,
10345         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10346         find_more_ref_vops, free_mem_ref, free_mem_refs,
10347         determine_lsm_loop, determine_lsm): Removed.
10348         (tree_ssa_lim_finalize): Free data structures used by store motion.
10349         (tree_ssa_lim): Call analyze_memory_references.  Use
10350         store_motion instead of determine_lsm.
10352 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10354         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10355         rename tmake_file to m68hc11/t-m68hc11.
10356         (mcore): Set inhibit_libc to true.
10357         * config.host (alpha*-dec-*vms*): Set extra_programs.
10358         (interix3*): Don't use host_xmake_file.
10359         * configure.ac: Let config.gcc override inhibit_libc.
10360         * configure: Regenerate.
10362         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10363         * config/t-openbsd-thread: Remove commented out lines.
10364         
10365         * config/x-interix: Remove.
10367         * config/m68hc11/t-m68hc11-gas: Rename to...
10368         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
10370         * config/mcore/t-mcore: Remove T_CFLAGS.
10371         * config/mcore/t-mcore-pe: Likewise.
10373 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10375         * configure.ac: Replace custom __GNU_SOURCE test with
10376         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
10377         * aclocal.m4: Regenerate.
10378         * configure: Regenerate.
10379         * config.in: Regenerate.
10381 2008-03-27  Richard Guenther  <rguenther@suse.de>
10383         * fold-const.c (target.h): Include.
10384         (fold_comparison): Fold comparison of addresses of decls
10385         that bind locally or of constants.  Consolidate address folding code.
10386         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10387         results from fold_binary_to_constant.
10388         (compare_values_warnv): Likewise.
10390 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
10392         PR middle-end/35429
10393         * fold-const.c (fold_truthop): Check for integeral types when folding
10394         a == 0 && b == 0 and a != 0 || b != 0 .
10396 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10398         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10400 2008-03-26  Andreas Schwab  <schwab@suse.de>
10402         * doc/invoke.texi: Fix use of @item vs. @itemx.
10404 2008-03-26  Tom Tromey  <tromey@redhat.com>
10406         * Makefile.in (build/gensupport.o, build/print-rtl.o,
10407         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10408         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10409         build/gencodes.o, build/genconditions.o, build/genconfig.o,
10410         build/genconstants.o, build/genemit.o, build/genextract.o,
10411         build/genflags.o, build/genmddeps.o, build/genopinit.o,
10412         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10413         options.h.
10415 2008-03-26  Richard Guenther  <rguenther@suse.de>
10417         Revert
10418         2008-03-26  Richard Guenther  <rguenther@suse.de>
10420         * fold-const.c (target.h): Include.
10421         (fold_comparison): Fold comparison of addresses of two decls
10422         that bind locally.  Consolidate address folding code.
10424 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10426         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10427         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10428         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10429         dconstsqrt2, dconstthird, dconste and/or dconst10.
10430         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10431         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10432         dconstsqrt2, dconste): Delete.
10433         (init_emit_once): Likewise.  Simplify initializing dconstm1.
10434         Constify variable.
10435         * real.c (get_real_const): New.
10436         * real.h (dconst3, dconst10, dconstm2, dconstthird,
10437         dconstsqrt2, dconste): Delete.
10438         (real_value_const, get_real_const): New.
10440 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10442         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10444         * config/i386/i386.c (ix86_function_arg_boundary): Check
10445         BIGGEST_ALIGNMENT instead of 128.
10446         (setup_incoming_varargs_64): Likewise.
10448 2008-03-26  Tom Tromey  <tromey@redhat.com>
10450         * Makefile.in (DEPFILES): Add missing '/'.
10452 2008-03-26  Richard Guenther  <rguenther@suse.de>
10454         * fold-const.c (target.h): Include.
10455         (fold_comparison): Fold comparison of addresses of two decls
10456         that bind locally.  Consolidate address folding code.
10458 2008-03-26  Nick Clifton  <nickc@redhat.com>
10460         PR target/31232
10461         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10462         not allow INT+INT as a legitimate addressing mode.
10464 2008-03-26  Richard Guenther  <rguenther@suse.de>
10466         * tree-flow.h (widen_bitfield): Remove declaration.
10467         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10468         (widen_bitfield): Remove function.
10469         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10470         code.
10472 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10474         PR target/31558
10475         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10476         error_mark_node's.
10478 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10480         PR rtl-optimization/35232
10481         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10482         (forget_old_reloads_1, forget_marked_reloads): Don't clear
10483         reg_reloaded_call_part_clobbered here.
10484         (reload_regs_reach_end_p): New function.
10485         (reload_reg_rtx_for_input): New variable.
10486         (reload_reg_rtx_for_output): Likewise.
10487         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10488         when reassigning a pseudo register.  Load reloadreg from 
10489         reload_reg_rtx_for_input, moving the mode and register
10490         calculation to...
10491         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
10492         instead of the original when deciding whether an input reload
10493         would be a no-op or whether an output reload can be deleted.
10494         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10495         when setting up new_spill_reg_store.  Load it from
10496         reload_reg_rtx_for_output, moving the mode and register
10497         calculation to...
10498         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
10499         instead of the original when deciding whether an output reload
10500         would be a no-op.  Do the same when modifying insn notes.
10501         Use rtx_equal_p instead of == to compare the registers.
10502         (inherit_piecemeal_p): Take a mode and two register numbers
10503         as argument.
10504         (emit_reload_insns): Clear new_spill_reg_store for every hard
10505         register in the reload register.  Remove spill registers
10506         from reg_reloaded_valid before considering whether to record
10507         inheritance information for them.  Use reload_reg_rtx_for_output
10508         instead of reg_rtx when recording output reloads.  Use
10509         reload_reg_rtx_for_input instead of reg_rtx when recording
10510         input reloads.  Set or clear reg_reloaded_call_part_clobbered
10511         at the same time as setting reg_reloaded_valid.
10512         (delete_output_reload): Add a new_reload_reg parameter and use it
10513         instead of rld[j].reg_rtx.
10514         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10515         calls accordingly.
10517 2008-03-25  Tom Tromey  <tromey@redhat.com>
10519         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10520         (build/genattr.o): Likewise.
10521         (build/genattrtab.o): Likewise.
10522         (build/gencodes.o): Likewise.
10523         (build/genconfig.o): Likewise.
10524         (build/genconstants.o): Likewise.
10525         (build/genemit.o): Likewise.
10526         (build/genextract.o): Likewise.
10527         (build/genflags.o): Likewise.
10529 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
10530         
10531         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10532         instead of size_int for integer types.
10533         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
10534         to match type of MINUS_EXPR.
10535         
10536 2008-03-25  Tom Tromey  <tromey@redhat.com>
10538         * configure: Rebuilt.
10539         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10540         Makefile.
10542 2008-03-25  Tom Tromey  <tromey@redhat.com>
10544         * config/x-solaris (host-solaris.o): Update.
10545         * config/x-linux (host-linux.o): Update.
10546         * config/x-hpux (host-hpux.o): Update.
10547         * config/x-darwin (host-darwin.o): Update.
10548         * config/v850/t-v850e (v850-c.o): Update.
10549         * config/v850/t-v850 (v850-c.o): Update.
10550         * config/t-vxworks (vxworks.o): Update.
10551         * config/t-sol2 (sol2-c.o, sol2.o): Update.
10552         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10553         * config/spu/t-spu-elf (spu-c.o): Update.
10554         (spu.o): Remove.
10555         * config/sh/t-symbian (sh-c.o): Update.
10556         (symbian.o): Update.
10557         * config/sh/t-sh (sh-c.o): Update.
10558         * config/score/t-score-elf (score7.o, score3.o): Update.
10559         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10560         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10561         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10562         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10563         (rs6000.o): Remove.
10564         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10565         * config/m32c/t-m32c (m32c-pragma.o): Update.
10566         * config/ia64/t-ia64 (ia64-c.o): Update.
10567         * config/i386/x-mingw32 (host-mingw32.o): Update.
10568         * config/i386/x-i386 (driver-i386.o): Update.
10569         * config/i386/x-darwin (host-i386-darwin.o): Update.
10570         * config/i386/x-cygwin (host-cygwin.o): Update.
10571         * config/i386/t-nwld (nwld.o): Update.
10572         * config/i386/t-netware (netware.o): Update.
10573         * config/i386/t-interix (winnt.o): Update.
10574         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10575         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10576         msformat-c.o): Update.
10577         * config/bfin/t-bfin-linux (generated_files): Add
10578         linux-sysroot-suffix.h.
10579         * config/arm/t-wince-pe (pe.o): Update.
10580         * config/arm/t-strongarm-pe (pe.o): Update.
10581         * config/arm/t-pe (pe.o): Update.
10582         * config/arm/t-arm (arm-c.o): Update.
10583         * doc/install.texi (Prerequisites): Require make 3.80.
10584         * Makefile.in: Remove .o targets.
10585         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10586         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10587         (simple_generated_h, simple_generated_c): Move earlier.
10588         (generated_files): New variable.
10589         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10590         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10591         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10592         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10593         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10594         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10595         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10596         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10597         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10598         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10599         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10600         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10601         (.c.o): Remove.
10602         (COMPILE.base, COMPILE): New variables.
10603         (%.o): New pattern rule.
10604         (ALL_HOST_OBJS): New variable.
10605         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10606         (dummy-checksum.o, cc1-checksum.o): Remove.
10607         (DRIVER_SHLIB): New variable.
10608         (DRIVER_DEFINES): Use it.
10609         (gencondmd.c): Move out of build/.
10610         (s-conditions): Update.
10611         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10612         (ALL_BUILD_OBJS): Likewise.
10613         (build/%.o): Use BUILDCOMPILE.
10614         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10615         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10616         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10617         build/gencheck.o, build/gencodes.o, build/genconditions.o,
10618         build/genconfig.o, build/genconstants.o, build/genemit.o,
10619         build/genextract.o, build/genflags.o, build/genmddeps.o,
10620         build/genopinit.o, build/genoutput.o, build/genpeep.o,
10621         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10622         build/gen-protos.o, build/scan.o, build/fix-header.o,
10623         build/scan-decls.o): Simplify.
10624         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10625         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10626         prefix.o, toplev.o): Reduce to variable setting.
10627         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
10628         ($(out_object_file), gcc-options.o): New targets.
10629         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
10630         * configure: Rebuilt.
10631         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10632         * doc/sourcebuild.texi (Front End Directory): Document new variable.
10634 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
10636         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10637         complain when we hit an error, return ERROR_MARK_NODE.
10639 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10641         * config/sh/constraints.md (Pso, Psz): New constraints.
10642         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10643         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10645 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10647         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10648         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10650 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10652         * config/sh/sh.md (prefetch): Add condition for SH2A target.
10653         (prefetch_sh2a): New.   
10655 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10656             Naveen.H.S  <naveen.hs@kpitcummins.com>
10658         * config/sh/constraints.md (I28): New constraint.
10659         * config/sh/sh.c (broken_move): Add support for movi20s.
10660         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10662 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
10663             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10664             Naveen.H.S  <naveen.hs@kpitcummins.com>
10666         * config/sh/sh.c (SH_ATTRIBUTES): Define.
10667         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10668         (print_operand): Handle resbank in %@ operand code.
10669         (sh_encode_section_info): New.
10670         (push_regs): Add conditions for resbank.
10671         (sh_expand_epilogue): Likewise.
10672         (sh_insert_attributes): Likewise.
10673         (sh_attribute_table): Likewise.
10674         (sh_handle_resbank_handler_attribute): New.
10675         (sh2a_handle_function_vector_handler_attribute): New.
10676         (sh2a_is_function_vector_call): New.
10677         (sh2a_get_function_vector_number): New.
10678         (sh2a_function_vector_p): New.
10679         (sh_cfun_resbank_handler_p): New.
10680         * config/sh/sh.md (calli): Emit jsr/n if possible.
10681         (calli_tbr_rel): New.
10682         (calli_pcrel): Emit jsr/n if possible.
10683         (return_i): Emit rts/n if possible.
10684         (call_valuei_tbr_rel): New.
10685         (call_valuei_pcrel): Add condition for SH2A target.
10686         (call_value): Likewise.
10687         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10688         (sh2a_get_function_vector_number): Likewise.
10689         (sh2a_is_function_vector_call): Likewise.
10690         * doc/extend.texi: Document TBR relative addressing of SH2A.
10691         (resbank): Add description for SH2A.
10693 2008-03-24  Richard Guenther  <rguenther@suse.de>
10695         PR c/22371
10696         * gimplify.c (gimplify_modify_expr): For frontend type-correct
10697         pointer assignments change conversions according to middle-end rules.
10698         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10699         * configure.ac: Include type checking in yes.
10700         * configure: Regenerate.
10702 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10704         * diagnostic.c (diagnostic_count_diagnostic): Delete.
10705         (diagnostic_report_diagnostic): Update. Handle ICEs here.
10706         
10707 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10709         * gthr-vxworks.h (UNUSED): Define.
10711 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10713         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10715 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
10717         * doc/extend.texi (Function Attributes): Add missing comma in the
10718         example of the "alloc_size" attribute.
10719         
10720 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
10722         Revert:
10723         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10725         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10726         32bit host.
10728         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10730         PR target/35496
10731         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10732         of the underlying type of a MS bitfield layout to the natural
10733         alignment of the type.
10735         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10737         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10738         to their natural alignment to avoid store forwarding stalls.
10740 2008-03-22  Richard Guenther  <rguenther@suse.de>
10742         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10743         For PHI nodes verify the address is invariant.
10744         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10745         (get_symbol_constant_value): Use is_gimple_min_invariant.
10746         (maybe_fold_stmt_indirect): Likewise.
10748 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10750         PR rtl-optimization/33927
10751         * Makefile.in (dse.o): Depend on $(TM_P_H).
10752         * expr.h (extract_low_bits): Declare.
10753         * expmed.c (extract_low_bits): New function.
10754         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10755         * dse.c: Include tm_p.h.
10756         (find_shift_sequence): Remove the read_reg argument and return the
10757         read value.  Emit the instructions instead of returning them.
10758         Iterate on new_mode rather than calculating it each time.
10759         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
10760         source to NEW_MODE and extract_low_bits to convert the shifted
10761         value to READ_MODE.
10762         (replace_read): Allow the load and store to have different mode
10763         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
10764         or extraction instructions before trying the replacement.  Update
10765         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10767 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10769         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10770         to their natural alignment to avoid store forwarding stalls.
10772 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10774         PR target/27946
10775         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10776         encouraging but not allowing gprs for input;
10777         change the input constraint to !f#r.
10778         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10779         gprs for output;
10780         change the output constraint to !f#r.
10782 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
10784         PR target/13958
10785         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10786         corresponding post-reload splitters.
10787         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10788         when x87 FP math is selected.
10789         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10790         New function prototype.
10791         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10792         unreachable function to ease macroization of insn patterns.
10794 2008-03-21  Martin Jambor  <mjambor@suse.cz>
10796         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10797         reference dumps if ddr is NULL or dependence is unknown.
10799 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10801         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10802         unsigned extension into account.
10803         (ATOMIC_COMPARE_AND_SWAP): Likewise.
10804         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10805         Do computations on a scratch register.
10807 2008-03-21  Richard Guenther  <rguenther@suse.de>
10809         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10810         Use is_gimple_min_invariant instead of TREE_INVARIANT.
10811         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10812         * tree-ssa-dom.c (record_equality): Likewise.
10813         * tree-inline.c (copy_body_r): Likewise.
10814         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10815         TREE_INVARIANT.
10817 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10819         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10820         as 'delete_unused' argument.
10822 2008-03-20  Richard Guenther  <rguenther@suse.de>
10824         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10825         special casing of constant qualifiers.
10826         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10827         care about them in general.
10828         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10829         regardless of their type.
10830         (fold_stmt_r): Forcefully fold *& if we end up with that.
10832 2008-03-20  Paul Brook  <paul@codesourcery.com>
10834         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10835         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10836         linker flags.
10837         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10838         definition.
10839         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10840         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10842 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
10844         * common.opt (Wmudflap): New option.
10845         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10846         (mx_register_decls): Likewise.
10847         (mudflap_finish_file): Likewise.
10848         * doc/invoke.texi: Document -Wno-mudflap.
10850 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
10852         * c-format.c (replace_format_name_to_system_name): New.
10853         (cmp_attribs): New.
10854         (convert_format_name_to_system_name): New.
10855         (decode_format_attr): Add use of convert_format_name_to_system_name.
10856         (format_types_orig): Add gnu_ prefix to names.
10857         (check_format_info_main): Special treating of \0 escaped names for
10858         supporting multi-character format specifiers as I32, I64.
10859         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10860         (gnu_target_overrides_format_attributes): New.
10861         * c-format.h: Add structure target_ovr_attr to hold
10862         system specific formatter names.
10863         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10864         msformat-c.o file to c_target_objs and cxx_target_objs.
10865         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10866         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10867         (TARGET_N_FORMAT_TYPES): New.
10868         * config/i386/msformat-c.c: New.
10869         * config/i386/t-cygming: Add build rule for msformat-c.o.
10870         * doc/extend.texi: Add new format names gnu_* and ms_* and
10871         further details.
10872         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10874 2008-03-20  Ira Rosen  <irar@il.ibm.com>
10876         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10877         optimizations turned on under -O3.
10878         (ftree-vectorize): Add that the flag is turned on with -O3.
10880 2008-03-20  Ben Elliston  <bje@au.ibm.com>
10882         * regmove.c (try_auto_increment): Fix spelling error in comment.
10883         * final.c (final_scan_insn): Likewise.
10885 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
10887         PR target/14552
10888         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10889         allocator preferences for "y" and "r" class registers.
10890         ("*mov<mode>_internal"): Ditto.
10891         ("*movv2sf_internal_rex64"): Ditto.
10892         ("*movv2sf_internal"): Ditto.
10894 2008-03-19  Michael Matz  <matz@suse.de>
10896         PR middle-end/35616
10897         * calls.c (expand_call): Check overlap of arguments with call
10898         address for sibcalls.
10900 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10902         PR target/35496
10903         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10904         of the underlying type of a MS bitfield layout to the natural
10905         alignment of the type.
10907 2008-03-19  Jan Hubicka  <jh@suse.cz>
10909         PR other/35094
10910         * toplev.c (decode_d_option): Handle all CPP flags.
10911         * tree-vrp.c: Update tree_pass descriptors.
10912         * regrename.c: Update tree_pass descriptors.
10913         * fwprop.c: Update tree_pass descriptors.
10914         * doc/invoke.texi: Remove documentation of dropped -d? flags.
10915         * tree-into-ssa.c: Update tree_pass descriptors.
10916         * tree-dump.c: Update tree_pass descriptors.
10917         * tree-complex.c: Update tree_pass descriptors.
10918         * tree-dump.h: Update tree_pass descriptors.
10919         * see.c: Update tree_pass descriptors.
10920         * cgraphbuild.c: Update tree_pass descriptors.
10921         * tracer.c: Update tree_pass descriptors.
10922         * tree-loop-distribution.c: Update tree_pass descriptors.
10923         * cgraph.c: Update tree_pass descriptors.
10924         * postreload-gcse.c: Update tree_pass descriptors.
10925         * postreload.c: Update tree_pass descriptors.
10926         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
10927         * tree-tailcall.c: Update tree_pass descriptors.
10928         * tree-pass.h (tree_opt_pass): Rename to ...
10929         (opt_pass) ... this one; add "type" field and remove letter field.
10930         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
10931         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
10932         all_lowering_passes): Update declaration.
10933         * ipa-cp.c: Update tree_pass descriptors.
10934         * final.c: Update tree_pass descriptors.
10935         * omp-low.c: Update tree_pass descriptors.
10936         * tree-ssa-dse.c: Update tree_pass descriptors.
10937         * ipa-reference.c: Update tree_pass descriptors.
10938         * tree-ssa-uncprop.c: Update tree_pass descriptors.
10939         * auto-inc-dec.c: Update tree_pass descriptors.
10940         * reorg.c: Update tree_pass descriptors.
10941         * cgraphunit.c: Update tree_pass descriptors.
10942         * tree-ssa-copyrename.c: Update tree_pass descriptors.
10943         * tree-ssa-ccp.c: Update tree_pass descriptors.
10944         * df-core.c: Update tree_pass descriptors.
10945         * mode-switching.c: Update tree_pass descriptors.
10946         * tree-nomudflap.c: Update tree_pass descriptors.
10947         * modulo-sched.c: Update tree_pass descriptors.
10948         * ipa-pure-const.c: Update tree_pass descriptors.
10949         * cse.c: Update tree_pass descriptors.
10950         * web.c: Update tree_pass descriptors.
10951         * tree-stdarg.c: Update tree_pass descriptors.
10952         * tree-ssa-math-opts.c: Update tree_pass descriptors.
10953         * tree-ssa-dom.c: Update tree_pass descriptors.
10954         * tree-nrv.c: Update tree_pass descriptors.
10955         * tree-ssa-alias.c: Update tree_pass descriptors.
10956         * loop-init.c: Update tree_pass descriptors.
10957         * gimple-low.c: Update tree_pass descriptors.
10958         * ipa-inline.c: Update tree_pass descriptors.
10959         * tree-ssa-sink.c: Update tree_pass descriptors.
10960         * global.c: Update tree_pass descriptors.
10961         * ifcvt.c: Update tree_pass descriptors.
10962         * jump.c: Update tree_pass descriptors.
10963         * predict.c: Update tree_pass descriptors.
10964         * tree-ssa-loop.c: Update tree_pass descriptors.
10965         * recog.c: Update tree_pass descriptors.
10966         * dse.c: Update tree_pass descriptors.
10967         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
10968         * tree-eh.c: Update tree_pass descriptors.
10969         * regmove.c: Update tree_pass descriptors.
10970         * local-alloc.c
10971         * function.c: Update tree_pass descriptors.
10972         * tree-vectorizer.c: Update tree_pass descriptors.
10973         * gcse.c: Update tree_pass descriptors.
10974         * ipa-type-escape.c: Update tree_pass descriptors.
10975         * tree-if-conv.c: Update tree_pass descriptors.
10976         * init-regs.c: Update tree_pass descriptors.
10977         * ipa.c: Update tree_pass descriptors.
10978         * tree-ssa-phiopt.c: Update tree_pass descriptors.
10979         * rtl-factoring.c: Update tree_pass descriptors.
10980         * lower-subreg.c: Update tree_pass descriptors.
10981         * bt-load.c: Update tree_pass descriptors.
10982         * tree-dfa.c: Update tree_pass descriptors.
10983         * except.c: Update tree_pass descriptors.
10984         * emit-rtl.c: Update tree_pass descriptors.
10985         * cfgexpand.c: Update tree_pass descriptors.
10986         * tree-cfgcleanup.c: Update tree_pass descriptors.
10987         * cfgcleanup.c: Update tree_pass descriptors.
10988         * tree-ssa-pre.c: Update tree_pass descriptors.
10989         * tree-sra.c: Update tree_pass descriptors.
10990         * tree-mudflap.c: Update tree_pass descriptors.
10991         * tree-ssa-copy.c: Update tree_pass descriptors.
10992         * cfglayout.c: Update tree_pass descriptors.
10993         * tree-ssa-forwprop.c: Update tree_pass descriptors.
10994         * tree-ssa-dce.c: Update tree_pass descriptors.
10995         * tree-ssa.c: Update tree_pass descriptors.
10996         * regclass.c: Update tree_pass descriptors.
10997         * integrate.c: Update tree_pass descriptors.
10998         * tree-optimize.c: Update tree_pass descriptors.
10999         * tree-ssa-phiprop.c: Update tree_pass descriptors.
11000         * tree-object-size.c: Update tree_pass descriptors.
11001         * combine.c: Update tree_pass descriptors.
11002         * tree-outof-ssa.c: Update tree_pass descriptors.
11003         * bb-reorder.c: Update tree_pass descriptors.
11004         * stack-ptr-mod.c: Update tree_pass descriptors.
11005         * var-tracking.c: Update tree_pass descriptors.
11006         * tree-profile.c: Update tree_pass descriptors.
11007         * tree-vect-generic.c: Update tree_pass descriptors.
11008         * reg-stack.c: Update tree_pass descriptors.
11009         * sched-rgn.c: Update tree_pass descriptors.
11010         * tree-ssa-structalias.c: Update tree_pass descriptors.
11011         * tree-cfg.c: Update tree_pass descriptors.
11012         * passes.c (current_pass): Update declaration.
11013         (finish_optimization_passes): Update.
11014         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11015         (register_one_dump_file, register_dump_files_1, next_pass_1):
11016         Update arguments.
11017         (init_optimization_passes): Update handling of new types.
11018         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11019         * ipa-struct-reorg.c: Update tree_pass descriptors.
11020         * tree-ssa-reassoc.c: Update tree_pass descriptors.
11021         * combine-stack-adj.c: Update tree_pass descriptors.
11022         * cfgrtl.c: Update tree_pass descriptors.
11023         * dce.c: Update tree_pass descriptors.
11024         * tree-ssanames.c: Update tree_pass descriptors.
11026 2008-03-19  Richard Guenther  <rguenther@suse.de>
11028         PR middle-end/35609
11029         * tree-ssa.c (walk_data): New structure.
11030         (warn_uninitialized_var): If not always_executed warn with "maybe"
11031         instead of "is".
11032         (execute_early_warn_uninitialized): Compute post-dominators.
11033         Initialize always_executed before processing each basic block.
11035 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
11037         PR target/35504
11038         * config/i386/i386.c (x86_this_parameter): Calculate correct location
11039         of "this" pointer when "regparm = N" or "fastcall" is in effect.
11041 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11043         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11045 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
11047         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
11048         is true.
11049         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
11050         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
11051         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
11052         target after ignore has been set, and move there also the commputation
11053         of subtarget and original_target.
11054         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11055         (LANG_HOOKS_INITIALIZER): Remove it.
11056         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
11058 2008-03-18  Richard Guenther  <rguenther@suse.de>
11060         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
11061         found an expression with constants, note that in the VN for the lhs.
11062         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
11063         fold them to constants if possible.  Run cleanup_cfg if done so.
11064         (execute_pre): Return todo.
11065         (do_pre): Likewise.
11066         (execute_fre): Likewise.
11067         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
11068         of constants.
11069         (get_prop_source_stmt): Look through pointer conversions.
11071 2008-03-18  Jan Hubicka  <jh@suse.cz>
11073         * tree-pretty-print.c: Include predict.h.
11074         (dump_generic_node): Dump predictor.
11075         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
11076         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
11077         * gimple-low.c (lower_stmt): Likewise.
11078         * expr.c (expand_expr_real): Likewise.
11079         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
11080         them.
11081         (build_predict_expr, build_predict_expr): New.
11082         * predict.h (predictor_name, build_predict_expr): Update.
11083         * c-typeck.c (c_finish_bc_stmt): Add prediction.
11084         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11085         * predict.def (PRED_CONTINUE): Update hitrate.
11086         * tree.def (PREDICT_EXPR): Define.
11087         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11088         do not handle BIND_EXPR.
11089         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11090         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11091         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11092         operands.
11094 2008-03-18  Michael Matz  <matz@suse.de>
11096         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11098 2008-03-18  Richard Guenther  <rguenther@suse.de>
11100         * tree-gimple.h (is_gimple_invariant_address): Declare.
11101         (is_gimple_constant): Likewise.
11102         * tree-gimple.c (is_gimple_constant): New function.
11103         (is_gimple_invariant_address): Likewise.
11104         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11105         and is_gimple_invariant_address.
11106         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11107         previous change.
11108         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11109         an addressable base.
11111 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11113         PR middle-end/35611
11114         * gimplify.c (gimplify_expr): Gimplify second operand of
11115         OMP_ATOMIC_LOAD.
11117 2008-03-17  Richard Guenther  <rguenther@suse.de>
11119         PR tree-optimization/19637
11120         * fold-const.c (fold_unary): Remove restrictions of removing
11121         intermediate pointer-conversions (P2)(P1)P0.
11122         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11123         conversion to void pointer.
11124         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11126 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
11128         PR debug/31510
11129         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11130         emulated thread local variables.
11132 2008-03-16  Richard Guenther  <rguenther@suse.de>
11134         PR middle-end/35607
11135         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11136         expand TREE_INVARIANT operations that are not gimple invariant.
11138 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
11140         * doc/extend.texi (Alignment): Say that the ABI controls
11141         the __alignof__ for non-strict-alignment targets rather
11142         than being a recommendation.
11144 2008-03-15  Paul Brook  <paul@codesourcery.com>
11146         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11147         annotations.
11148         (arm_output_fn_unwind): Mark functions that can not be unwound.
11150 2008-03-15  Paul Brook  <paul@codesourcery.com>
11152         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11153         extension instructions.
11155 2008-03-15  Richard Guenther  <rguenther@suse.de>
11157         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11158         and fold constant aggregate refs.
11159         (fold_const_aggregate_ref): Handle string constants
11160         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
11161         (evaluate_stmt): Simplify now that ccp_fold folds constant
11162         aggregate refs.
11164 2008-03-15  Paul Brook  <paul@codesourcery.com>
11166         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11167         (extzv): Use gen_extzv_t2.
11168         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11170 2008-03-15  Richard Guenther  <rguenther@suse.de>
11172         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11173         (fold_const_aggregate_ref): Likewise.
11174         (get_value): Return NULL if we don't have any values.
11175         (ccp_finalize): Set const_val to NULL after freeing it.
11176         * tree-flow.h (get_symbol_constant_value): Declare.
11177         (fold_const_aggregate_ref): Likewise.
11178         * tree-ssa-sccvn.c (try_to_simplify): Use them.
11180 2008-03-15  Richard Guenther  <rguenther@suse.de>
11182         PR middle-end/35593
11183         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11184         to not produce negative array indices if not allowed.  Add
11185         parameter to indicate that.
11186         (maybe_fold_offset_to_component_ref): Allow negative array
11187         indices only for the first member of a structure.
11188         (maybe_fold_offset_to_reference): Allow negative array indices.
11189         (maybe_fold_stmt_addition): Likewise.
11191 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
11192             Anatoly Sokolov <aesok@post.ru>
11194         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11195         (avr_arch): Add ARCH_AVR6.
11196         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11197         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
11198         instead of fixed value 2.
11199         (print_operand_address): Use gs() asm specifier instead of pm().
11200         (avr_assemble_integer): (Ditto.).
11201         (avr_output_addr_vec_elt): (Ditto.).
11202         (print_operand): Handle "!" code.
11203         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
11204         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11205         (AVR_HAVE_EIJMP_EICALL): Define.
11206         (AVR_3_BYTE_PC): Redefine.
11207         (AVR_2_BYTE_PC): (Ditto.).
11208         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11209         (LINK_SPEC): Add atmega2560 and atmega2561.
11210         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
11211         (crtm2561.o).
11212         * config/avr/avr.md (call_insn): Use eicall instead of icall 
11213         for 3 byte PC devices.
11214         (call_value_insn): (Ditto.).
11215         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11216         (indirect_jump): Use only for for 2 byte PC devices.
11217         (*tablejump): (Ditto.).
11218         (*indirect_jump_avr6): Add insn.
11219         (*tablejump_rjmp): Don't use for 3 byte PC devices.
11220         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
11221         instead of ijmp for 3 byte PC devices.
11222         (__tablejump2__): (Ditto.).
11223         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11224         (MULITLIB_DIRNAMES): (Ditto.). 
11225         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11227 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
11229         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11230         "sse2_umulsidi3".  Use V1DI mode for operand 0.
11231         ("mmx_psadbw"): Use V1DI mode for operand 0.
11232         * config/i386/i386-modes.def (V1SI): New vector mode.
11233         * config/i386/i386.c (struct builtin_description)
11234         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11235         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11236         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11237         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11238         v1di_ftype_v8qi_v8qi type.
11239         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11241         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11242         __builtin_ia32_pmuludq]: Fix the mode of return value.
11244 2008-03-15  Richard Guenther  <rguenther@suse.de>
11246         PR middle-end/35595
11247         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11248         being a PHI_NODE.
11250 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
11251         
11252         * doc/invoke.texi (Option Summary, Xtensa Options): Document
11253         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11254         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11255         unless TARGET_SERIALIZE_VOLATILE is enabled.
11256         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11257         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11258         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11260 2008-03-14  Richard Guenther  <rguenther@suse.de>
11262         PR tree-optimization/34172
11263         * tree-flow.h (refs_may_alias_p): Declare.
11264         (get_single_def_stmt): Likewise.
11265         (get_single_def_stmt_from_phi): Likewise.
11266         (get_single_def_stmt_with_phi): Likewise.
11267         * tree-dfa.c (refs_may_alias_p): New function.
11268         (get_single_def_stmt): Likewise.
11269         (get_single_def_stmt_from_phi): Likewise.
11270         (get_single_def_stmt_with_phi): Likewise.
11271         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11272         (vn_reference_lookup_1): New helper function.
11273         (vn_reference_lookup): Walk the virtual use-def chain to
11274         continue searching for a match if the def does not alias the
11275         reference we are looking for.
11277 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
11279         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
11280         archive and Perzl.  Update The Written Word listing.
11282 2008-03-14  Richard Guenther  <rguenther@suse.de>
11284         PR tree-optimization/34043
11285         PR tree-optimization/33989
11286         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11287         when doing FRE.
11288         (bitmap_find_leader): Use extra argument to verify dominance
11289         relationship inside a basic-block.
11290         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11291         (find_leader_in_sets): Adjust.
11292         (create_component_ref_by_pieces): Take extra argument for
11293         dominance check, handle lookup failures.
11294         (find_or_generate_expression): Likewise.
11295         (create_expression_by_pieces): Likewise.
11296         (insert_into_preds_of_block): Adjust.
11297         (create_value_expr_from): If asked for, verify all operands
11298         are in the blocks AVAIL_OUT set.
11299         (make_values_for_stmt): Check for SSA_NAMEs that are life
11300         over an abnormal edge.
11301         (compute_avail): Remove such check.
11302         (do_SCCVN_insertion): New function.
11303         (eliminate): If we do not find a leader suitable for replacement
11304         insert a replacement expression from SCCVN if available.
11305         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11306         (struct vn_ssa_aux): Add needs_insertion flag.
11307         * tree-ssa-sccvn.c (may_insert): New global flag.
11308         (copy_reference_ops_from_ref): Value-number union member access
11309         based on its size, not type and member if insertion is allowed.
11310         (visit_reference_op_load): For a weak match from union type
11311         punning lookup a view-converted value and insert a SSA_NAME
11312         for that value if that is not found.
11313         (visit_use): Make dumps shorter.  Do not disallow value numbering
11314         SSA_NAMEs that are life over an abnormal edge to constants.
11315         (free_scc_vn): Release inserted SSA_NAMEs.
11316         (run_scc_vn): New flag to specify whether insertion is allowed.
11317         Process SSA_NAMEs in forward order.
11318         * tree-ssa-loop-im.c (for_each_index): Handle invariant
11319         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11320         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11321         pointer type to/from integral types that do not change the
11322         precision to regular conversions.
11324 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11326         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11327         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11328         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11329         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11330         input arguments and the mode of return value.  Built-in functions
11331         that operate on whole 64-bit MMX register now use V1DI mode.
11333 2008-03-13  Alon Dayan  <alond@il.ibm.com>
11334             Olga Golovanevsky  <olga@il.ibm.com>
11336         PR tree-optimization/35041
11337         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11338         to locate the right position in a statement.
11340 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11342         PR target/34000
11343         PR target/35553
11344         * config/i386/xmmintrin.h:  Change all static inline functions to
11345         extern inline and add __gnu_inline__ attribute.
11346         * config/i386/bmintrin.h: Ditto.
11347         * config/i386/smmintrin.h: Ditto.
11348         * config/i386/tmmintrin.h: Ditto.
11349         * config/i386/mmintrin-common.h: Ditto.
11350         * config/i386/ammintrin.h: Ditto.
11351         * config/i386/emmintrin.h: Ditto.
11352         * config/i386/pmmintrin.h: Ditto.
11353         * config/i386/mmintrin.h: Ditto.
11354         * config/i386/mm3dnow.h: Ditto.
11356 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11358         PR middle-end/35185
11359         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11360         (lower_omp_2): New function.
11361         (lower_omp_1, lower_omp): Rewritten.
11363 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
11365         PR 35054
11366         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11367         with the phrase "Microsoft Windows compilers".
11368         (Push/Pop Macro Pragmas): New subsection. Document
11369         #pragma push_macro and pragma pop_macro.
11371 2008-03-12  Paul Brook  <paul@codesourcery.com>
11373         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11375 2008-03-12  Paul Brook  <paul@codesourcery.com>
11377         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11378         (thumb2_alusi3_short): Exclude PLUS and MINUS.
11379         (thumb2_addsi_shortim): Rename ...
11380         (thumb2_addsi_short): ... to this.  Allow register operands.
11381         (thumb2_subsi_short): New pattern.
11382         (thumb2_one_cmplsi2_short,
11383         thumb2_negsi2_short): New patterns and peepholes.
11385 2008-03-12  Paul Brook  <paul@codesourcery.com>
11387         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11389 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
11391         * config/i386/i386.md (int_cond): New code iterator.
11392         (fp_cond): Ditto.
11393         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11394         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11395         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11396         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11397         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11398         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11399         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11400         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11402 2008-03-12  Paul Brook  <paul@codesourcery.com>
11404         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11405         instead of {arm,thumb}_compute_save_reg_mask.
11406         (output_return_instruction): Ditto.
11407         (thumb_unexpanded_epilogue): Ditto.
11408         (thumb1_expand_prologue): Ditto.
11409         (thumb1_output_function_prologue): Ditto.
11410         (arm_set_return_address): Ditto.
11411         (thumb_set_return_address): Ditto.
11412         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
11413         regs to achieve stack alignment.
11414         (thumb1_compute_save_reg_mask): Fix compiler warning.
11415         (arm_output_epilogue): Use offsets->saved_regs_mask.
11416         Adjust stack pointer by poping call clobered registers.
11417         (arm_expand_prologue): Use offsets->saved_regs_mask.
11418         Adjust stack pointer by pushing extra registers.
11419         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11421 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
11423         PR tree-opt/35422
11424         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11425         conversion to the operands of a multiplication.
11427 2008-03-12  Richard Guenther  <rguenther@suse.de>
11429         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11430         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11431         * timevar.def (TV_TREE_PHIPROP): Add.
11432         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11433         pass description.  Use TV_TREE_PHIPROP.
11434         * tree-ssa-forwprop.c: Remove phiprop code.
11436 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11438         PR middle-end/35549
11439         * omp-low.c (maybe_lookup_decl): Constify first argument.
11440         (use_pointer_for_field): Change last argument from bool to
11441         omp_context *.  Disallow shared copy-in/out in nested
11442         parallel if decl is shared in outer parallel too.
11443         (build_outer_var_ref, scan_sharing_clauses,
11444         lower_rec_input_clauses, lower_copyprivate_clauses,
11445         lower_send_clauses, lower_send_shared_vars): Adjust callers.
11447 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
11448             Ira Rosen  <irar@il.ibm.com>
11450         * tree-vectorizer.c (free_stmt_vec_info): New function.
11451         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11452         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11453         * tree-vectorizer.h (free_stmt_vec_info): Declare.
11454         * tree-vect-transform.c (vectorizable_conversion): Free
11455         vec_oprnds0 if it was allocated.
11456         (vect_permute_store_chain): Remove unused VECs.
11457         (vectorizable_store): Free VECs that are allocated in the..
11458         function.
11459         (vect_transform_strided_load, vectorizable_load): Likewise.
11460         (vect_remove_stores): Simplify the code.
11461         (vect_transform_loop): Move code to vect_remove_stores().
11462         Call vect_remove_stores() and free_stmt_vec_info().
11464 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11466         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11467         TARGET_HPUX.  Revise comment.
11468         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11469         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11470         Use sr4 variant of `be' instruction when not generating PIC code.
11471         (attr_length_call): Adjust for above change.
11473 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11475         * ipa-reference.c (static_execute): Remove module_statics_const and
11476         associated setting code.
11478 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11480         PR target/35540
11481         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11482         predicate for operand 1.
11483         (paritysi2_cmp): Use register_operand predicate for operand 2.
11484         Use earlyclobber modifier for operand 1.  Remove support for
11485         memory operands.
11486         (paritydi2_cmp): Use register_operand predicate for operand 3.
11487         Use earlyclobber modifier for operand 1.  Remove support for
11488         memory operands.
11490 2008-03-11  Paul Brook  <paul@codesourcery.com>
11491             Vladimir Prus  <vladimir@codesourcery.com>
11493         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11494         (arm_compute_save_reg0_reg12_mask): Always
11495         check if register 11 must be saved.  Always safe hard frame pointer
11496         when frame_pointer_needeed.
11497         (arm_compute_save_reg_mask): Save IP and PC
11498         only with apcs frames.
11499         (arm_output_epilogue): Adjust Thumb2 codepath to
11500         be also invoked and work for ARM non-apcs frames.
11501         (arm_expand_prologue): Don't bother saving IP
11502         for non-apcs frame, since it's not clobbered by
11503         prologue code.  Implement non-apcs frame
11504         layout.
11506 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11508         PR rtl-optimization/35281
11509         * expr.c (convert_move): Use a new pseudo for the intermediate
11510         from_mode->word_mode result.
11512 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11514         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11515         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11516         * toplev.c (compile_file): Don't call it.
11518 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11520         PR middle-end/35526
11521         * expr.c (store_expr): Call emit_block_move if the mode
11522         of "temp" RTX is BLKmode.
11524 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11525             Richard Guenther  <rguenther@suse.de>
11527         PR tree-optimization/31358
11528         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11529         the step with a NULL_TREE.
11530         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11531         to sizetype if type is a pointer type.
11532         (add_candidate_1): Don't convert the base and step to
11533         the generic type if the orginal type is a pointer type.
11534         (add_iv_value_candidates): Use sizetype for the step
11535         if type is a pointer type.
11536         (cand_value_at): Likewise.
11537         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11538         for pointer types.
11539         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11540         Don't convert the tem affine to the type.
11541         (add_elt_to_tree): Use sizetype for the step if a pointer.
11542         Use POINTER_PLUS_EXPR for pointers.
11543         (aff_combination_to_tree): Use sizetype for the step if a
11544         pointer.
11546 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
11548         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11549         Remove commutativity hint.
11551 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
11553         PR c/35438
11554         PR c/35439
11555         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11556         errorneous type.  Check that v is a VAR_DECL.
11558         PR middle-end/35099
11559         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11561 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11563         PR tree-optimization/35494
11564         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11565         may be overriden at link and run time.
11567 2008-03-10  Richard Guenther  <rguenther@suse.de>
11569         PR tree-optimization/34677
11570         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11571         (poolify_tree): Likewise.
11572         (modify_expr_template): Likewise.
11573         (poolify_modify_stmt): Likewise.
11574         (insert_fake_stores): Handle all component-ref style stores
11575         in addition to INDIRECT_REF.  Also handle complex types.
11576         Do not poolify the inserted load.
11577         (realify_fake_stores): Do not rebuild the tree but only
11578         make it a SSA_NAME copy.
11579         (init_pre): Remove initialzation of modify_expr_template.
11580         Do not allocate modify_expr_node_pool.
11581         (fini_pre): Do not free modify_expr_node_pool.
11583 2008-03-10  Paul Brook  <paul@codesourcery.com>
11585         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11586         to avoid conflicts.
11588 2008-03-10  Paul Brook  <paul@codesourcery.com>
11589             Mark Shinwell  <shinwell@codesourcery.com>
11591         * config/arm/cortex-r4.md: New.
11592         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11593         insn attributes.
11594         * config/arm/arm.md: Include cortex-r4.md.
11595         (insn): Add smmls, sdiv and udiv values.
11596         (generic_sched): Don't use generic scheduling for Cortex-R4.
11597         (arm_issue_rate): New function.
11598         (TARGET_SCHED_ISSUE_RATE): Define.
11600 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
11602         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11604 2008-03-10  Richard Guenther  <rguenther@suse.de>
11606         * tree-ssa-pre.c (get_sccvn_value): Simplify.
11607         (compute_avail): Do not add stmt uses to AVAIL_OUT.
11609 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
11611         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11612         Set default to true.
11614 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11616         * c.opt (Wsynth): Deprecate.
11617         * doc/invoke.texi (Option Summary, Warning Options): Document
11618         -Wno-format-contains-nul.
11620 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
11622         PR target/35496
11623         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11624         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11626 2008-03-09  Ira Rosen  <irar@il.ibm.com>
11628         * config/rs6000/rs6000.c (builtin_description): Rename vector
11629         left shift operations.
11630         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11631         (altivec_vsl<VI_char>): Rename to ...
11632         (ashl<mode>3): ... new name.
11633         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11634         gen_ashlv4si3.
11635         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11637 2008-03-08  Richard Guenther  <rguenther@suse.de>
11639         * coverage.h (tree_coverage_counter_addr): Declare.
11640         * coverage.c (tree_coverage_counter_addr): New function.
11641         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11642         before using again.
11643         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11644         (tree_gen_one_value_profiler): Likewise.
11645         (tree_gen_ic_profiler): Likewise.
11646         (tree_gen_average_profiler): Likewise.
11647         (tree_gen_ior_profiler): Likewise.
11649 2008-03-08  Richard Guenther  <rguenther@suse.de>
11651         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11652         (vn_binary_op_insert): Likewise.
11653         (vn_unary_op_lookup): Likewise.
11654         (vn_unary_op_insert): Likewise.
11655         (vn_nary_op_lookup): Declare.
11656         (vn_nary_op_insert): Likewise.
11657         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11658         and binary hashes, use a single obstack for unary_op_pool
11659         and binary_op_pool.
11660         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11661         a single struct vn_nary_op_s.  Store tree code length and
11662         a variable number of operands.
11663         (struct vn_reference_op_struct): Remove unused op2.
11664         (vn_reference_op_eq): Do not compare op2.
11665         (vn_reference_op_compute_hash): Do not compute hash of op2.
11666         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11667         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11668         with vn_nary_op_compute_hash.
11669         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11670         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11671         vn_nary_op_lookup.
11672         (vn_unary_op_insert, vn_binary_op_insert): Replace with
11673         vn_nary_op_insert.
11674         (visit_unary_op): Call nary functions.
11675         (visit_binary_op): Likewise.
11676         (process_scc): Adjust for struct vn_tables_s changes.
11677         (allocate_vn_table): Likewise.
11678         (free_vn_table): Likewise.
11679         * tree-vn.c (vn_add): Call nary functions.
11680         (vn_lookup): Likewise.
11682 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
11684         PR target/35498
11685         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11686         wdst back after sync_compare_and_swapqhi_internal.
11688 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
11690         PR target/22152
11691         * config/i386/i386-modes.def (V1DI): New vector mode.
11692         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11693         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11694         (MMXMODE248): Ditto.
11695         (MMXMODE): Add V1DI mode.
11696         (mmxvecsize): Change DI mode to V1DI mode.
11697         ("mov<mode>): Use MMXMODEI8 mode iterator.
11698         ("*mov<mode>_internal_rex64"): Ditto.
11699         ("*mov<mode>_internal"): Ditto.
11700         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
11701         ("mmx_sub<mode>3"): Ditto.
11702         ("mmx_adddi3"): Remove insn pattern.
11703         ("mmx_subdi3"): Ditto.
11704         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11705         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11706         ("mmx_ashl<mode>3"): Ditto.
11707         ("mmx_lshrdi3"): Remove insn pattern.
11708         ("mmx_ashldi3"): Ditto.
11709         * config/i386/i386.c (classify_argument): Handle V1DImode.
11710         (function_arg_advance_32): Ditto.
11711         (function_arg_32): Ditto.
11712         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11713         mmx_addv1di3 insn pattern.
11714         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11715         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11716         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11717         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11718         Remove definitions of built-in functions.
11719         (V1DI_type_node): New node.
11720         (v1di_ftype_v1di_int): Ditto.
11721         (v1di_ftype_v1di_v1di): Ditto.
11722         (v2si_ftype_v2si_si): Ditto.
11723         (v4hi_ftype_v4hi_di): Remove node.
11724         (v2si_ftype_v2si_di): Ditto.
11725         (ix86_init_mmx_sse_builtins): Handle V1DImode.
11726         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11727         Redefine builtins using def_builtin_const with *_ftype_*_int node.
11728         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11729         Add new builtins using def_builtin_const.
11730         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11731         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11732         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11733         * config/i386/mmintrin.h (__v1di): New typedef.
11734         (_mm_add_si64): Cast arguments to __v1di type.
11735         (_mm_sub_si64): Ditto.
11736         (_mm_sll_pi16): Cast __count to __v4hi type.
11737         (_mm_sll_pi32): Cast __count to __v2si type.
11738         (_mm_sll_si64): Cast arguments to __v1di type.
11739         (_mm_srl_pi16): Cast __count to __v4hi type.
11740         (_mm_srl_pi32): Cast __count to __v2si type.
11741         (_mm_srl_si64): Cast arguments to __v1di type.
11742         (_mm_sra_pi16): Cast __count to __v4hi type.
11743         (_mm_sra_pi32): Cast __count to __v2si type.
11744         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11745         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11746         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11747         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11748         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11749         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11750         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11751         (_mm_srai_pi32): Use __builtin_ia32_psradi.
11752         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11753         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11754         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11755         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11757 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
11759         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11761 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
11763         PR target/35373
11764         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11765         reg+const addressing for Altivec modes.  Don't generate reg+reg
11766         addressing for TFmode or TDmode quantities.
11768 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
11770         * c-common.c (vector_types_convertible_p): Call langhook
11771         instead of comptypes.
11773 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11775         PR tree-opt/35402
11776         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11777         integral and scalar float variables which have a
11778         NULL DECL_INITIAL.
11780 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
11782         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11783         dwarf_register_span hook when emitting unwind information for
11784         register-to-memory saves.
11785         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11786         (rs6000_frame_related): Remove call to spe_synthesize_frame.
11788 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11790         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11791         for the same VAR_DECL.
11793 2008-03-06  Tom Tromey  <tromey@redhat.com>
11795         * treelang: Delete.
11796         * doc/standards.texi (Standards): Don't mention treelang.
11797         * doc/invoke.texi (Overall Options): Don't mention treelang.
11798         * doc/install.texi (Prerequisites): Don't mention bison or
11799         treelang.
11800         (Configuration): Don't mention treelang.
11801         (Building): Likewise.
11802         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11804 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
11806         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11807         word-extractions out of a multi-word object.
11809 2008-03-06  Richard Guenther  <rguenther@suse.de>
11811         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11812         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11813         result type and precision.
11814         * expr.c (get_inner_reference): Set unsignedp based on the result
11815         type of BIT_FIELD_REF.
11816         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11817         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11818         (try_instantiate_multiple_fields): Likewise.  Use the correct type
11819         for BIT_FIELD_REF.
11820         (sra_build_assignment): Likewise.
11821         (sra_build_elt_assignment): Likewise.
11822         (sra_explode_bitfield_assignment): Likewise.
11823         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11824         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11825         set BIT_FIELD_REF_UNSIGNED.
11826         (vectorizable_load): Likewise.
11828 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11830         * cse.c (cse_extended_basic_block): Invalidate artificial defs
11831         at bb start.
11833 2008-03-06  Richard Guenther  <rguenther@suse.de>
11835         * alias.c (struct alias_set_entry): Move has_zero_child field
11836         to pack with alias_set.
11838 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11840         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11841         32bit host.
11843 2008-03-05  Ian Lance Taylor  <iant@google.com>
11845         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11847 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
11849         * fwprop.c (update_df): Support width and offset parameters of
11850         df_ref_create.
11851         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11852         global_conflicts): Change DF_REF_EXTRACT to either
11853         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11854         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11855         * df-scan.c (df_ref_record, df_defs_record,
11856         df_ref_create_structure, df_def_record_1, df_uses_record,
11857         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11858         df_bb_refs_collect, df_entry_block_defs_collect,
11859         df_exit_block_uses_collect): Support new width and offset fields.
11860         (ref_extract_pool): New storage pool.
11861         (df_free_ref): New function.
11862         (df_reg_chain_unlink, df_free_collection_rec,
11863         df_sort_and_compress_refs): Call df_free_ref.
11864         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11865         of df_ref_extract.
11866         (df_ref_create_structure): Allocate df_ref_extract if offset and
11867         width fields are used.
11868         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11869         (df_uses_record): Get offset and width from ZERO_EXTRACT 
11870         and SIGN_EXTRACT.
11871         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11872         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11873         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11874         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11875         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11876         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11877         (df_ref_extract): New structure.
11878         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11879         (df_ref_create): Add width and offset parameters.
11880         
11881 2008-03-05  Richard Guenther  <rguenther@suse.de>
11883         * tree-ssa-structalias.c (get_constraint_for_component_ref):
11884         Use ranges_overlap_p.
11885         (offset_overlaps_with_access): Rename
11886         to ranges_overlap_p and move ...
11887         * tree-flow-inline.h (ranges_overlap_p): ... here.
11889         * tree.h (get_inner_reference, handled_component_p): Update
11890         comments.
11892         * tree.h (record_component_aliases, get_alias_set,
11893         alias_sets_conflict_p, alias_sets_must_conflict_p,
11894         objects_must_conflict_p): Move declarations ...
11895         * alias.h (record_component_aliases, get_alias_set,
11896         alias_sets_conflict_p, alias_sets_must_conflict_p,
11897         objects_must_conflict_p): ... here.
11898         Include coretypes.h.
11899         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11901 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
11903         * cfg.c: Include tree-flow.h.
11904         (remove_edge_raw): Call redirect_edge_var_map_clear.
11905         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11906         * tree-flow-inline.h (redirect_edge_var_map_def): New.
11907         (redirect_edge_var_map_result): New.
11908         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
11909         PENDING_STMT use with redirect_edge_var_map_*.
11910         * tree-ssa.c (edge_var_maps): New definition.
11911         (redirect_edge_var_map_add): New.
11912         (redirect_edge_var_map_clear): New.
11913         (redirect_edge_var_map_dup): New.
11914         (redirect_edge_var_map_vector): New.
11915         (redirect_edge_var_map_destroy): New.
11916         (ssa_redirect_edge): Replace PENDING_STMT use with
11917         redirect_edge_var_map_*.
11918         (flush_pending_stmts): Same.
11919         (delete_tree_ssa): Destroy edge var map.
11920         * tree-flow.h (struct _edge_var_map): New.
11921         Define edge_var_map vector type.
11922         Declare redirect_edge_var_map_* prototypes.
11923         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
11924         * tree-cfg.c (reinstall_phi_args): Replace
11925         PENDING_STMT use with redirect_edge_var_map_*.
11927 2008-03-05  Richard Guenther  <rguenther@suse.de>
11929         PR tree-optimization/35472
11930         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
11931         whose single use_stmt has a overlapping set of loaded and
11932         stored symbols as that use_stmt might be a noop assignment then.
11934 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
11936         * gthr-rtems.h: Implement __gthread_mutex_destroy.
11938 2008-03-05  Richard Guenther  <rguenther@suse.de>
11940         PR c++/35336
11941         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
11942         should be constants.
11943         * tree-cfg.c (verify_expr): Verify it.
11944         * fold-const.c (fold_truthop): Remove code generating
11945         BIT_FIELD_REFs of structure bases.
11946         (fold_binary): Likewise.
11947         (fold_ternary): Position and size of BIT_FIELD_REFs are
11948         always host integers.
11949         (make_bit_field_ref): Remove.
11950         (optimize_bit_field_compare): Remove.
11951         (all_ones_mask_p): Remove.
11953 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
11955         PR gcc/33009
11956         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
11957         (split_block_and_df_analyze): New. Split basic block and rebuild
11958         dataflow.
11959         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
11960         SPLIT_BLOCK.
11961         (split_pattern_seq): Likewise.
11962         (erase_matching_seqs): Likewise.
11963         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
11965 2008-03-04  Geoff Keating  <geoffk@apple.com>
11967         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
11968         declaration and code.
11969         (tree_invalid_nonnegative_warnv_p): Likewise.
11971 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11973         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
11974         examples.  Truncate option-names then causing overfull hbox.
11976 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11978         PR target/35222
11979         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
11980         on hpux10.
11981         * configure: Rebuilt.
11983 2008-03-04  Rafael Espindola  <espindola@google.com>
11985         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
11986         (tree_unary_nonnegative_warnv_p): New.
11987         (tree_binary_nonnegative_warnv_p): New.
11988         (tree_single_nonnegative_warnv_p): New.
11989         (tree_invalid_nonnegative_warnv_p): New.
11990         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
11992 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11994         PR 28322
11995         * opts.c (handle_option): Postpone 'unknown option' errors only for
11996         warning options.
11998 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
12000         PR target/35453
12001         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12002         (_SIDD_XXX): This.
12004 2008-03-04  Rafael Espindola  <espindola@google.com>
12006         * fold-const.c (tree_unary_nonzero_warnv_p): New.
12007         (tree_binary_nonzero_warnv_p): New.
12008         (tree_single_nonzero_warnv_p): New.
12009         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12011 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
12013         PR middle-end/35456
12014         * fold-const.c (fold_cond_expr_with_comparison): Prevent
12015         transformations for modes that have signed zeros.
12016         * ifcvt.c (noce_try_abs): Ditto.
12018 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
12020         * config/i386/i386.c (override_options): Force
12021         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12023 2008-03-04  Jan Hubicka  <jh@suse.cz>
12025         PR c++/35262
12026         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12027         in last commit.
12029 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
12031         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
12032         label to probe the stack.
12034 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
12036         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12037         (__gthr_win32_mutex_destroy): Declare.
12038         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12039         __gthr_win32_mutex_destroy.
12040         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
12042 2008-03-03  Jan Hubicka  <jh@suse.cz>
12044         PR c++/35262
12045         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12046         aggressive on inlining cold calls.
12048 2008-03-03  Richard Guenther  <rguenther@suse.de>
12050         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
12051         struct copies into the expression table.
12052         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
12053         (try_to_simplify): Likewise.
12054         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
12055         integral and pointer arguments which do not change the
12056         precision to NOP_EXPRs.
12057         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
12058         VIEW_CONVERT_EXPR case.
12060 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
12062         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
12063         defined in a loop at depth 0 is invariant.
12064         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12065         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
12066         be called at loop depth 0.
12068 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
12070         PR driver/35420
12071         * gcc.c (process_command): Update copyright notice dates.
12072         * gcov.c (print_version): Likewise.
12073         * gcov-dump.c (print_version): Likewise.
12074         * mips-tfile.c (main): Likewise.
12075         * mips-tdump.c (main): Likewise.
12077 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12079         PR 24924
12080         * c-common.c (flag_permissive): Delete.
12081         (constant_expression_warnings): Check flags first.
12082         (constant_expression_error): New.
12083         * c-common.h (flag_permissive): Delete.
12084         (constant_expression_error): Declare.
12085         * flags.h (flag_permissive): Declare. Update description.
12086         * diagnostic.c (pedwarn): Update.
12087         (permerror): New.
12088         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12089         (permissive_error_kind): New.
12090         * toplev.c (flag_permissive): Define. Update description.
12091         * toplev.h (permissive_error_kind): Declare.
12092         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12093         (pedwarn_c90): Use pedantic_warning_kind.
12094         * c-opts.c (c_common_post_options): flag_permissive does not affect
12095         flag_pedantic_errors.
12097 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
12099         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12100         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12101         __absvsi2, __absvDI2): Use unsigned arithmetic.
12103 2008-03-02  Andi Kleen  <ak@suse.de>
12104             Richard Guenther  <rguenther@suse.de>
12106         * struct-equiv.c: Remove file.
12107         * cfg_cleanup.c (condjump_equiv_p): Remove.
12108         * Makefile.in (OBJS-common): Remove struct-equiv.o.
12109         (struct-equiv.o): Remove rule.
12110         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12111         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
12112         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12114 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12116         * ifcvt.c (noce_process_if_block): Try to handle only the then
12117         block if the else block exists but isn't suitable.
12119 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12121         PR gcc/35063
12122         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12123         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12124         regression from previous patch.
12126 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12128         PR gcc/35063
12129         * gthr.h: Add __gthread_mutex_destroy as a function that must be
12130         implemented.
12131         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12132         * gthr-single.h (__gthread_mutex_destroy): Likewise.
12133         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12134         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12135         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12136         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12137         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12138         (__gthread_mutex_destroy_function): Rename to
12139         __gthread_mutex_destroy.
12140         * gthr-dce.h (__gthread_mutex_destroy): Call
12141         pthread_mutex_destroy.
12142         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12143         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12144         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12146 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12148         * df-scan.c (df_ref_chain_change_bb): Simplify.
12149         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
12150         set_block_for_insn if there's any change.
12151         * df.h ((df_insn_change_bb): Fix prototype.
12152         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12153         df_insn_change_bb, don't call set_block_for_insn.
12154         * emit-rtl.c (reorder_insns): Likewise.
12155         * haifa-sched.c (move_insn): Likewise.
12157 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12159         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12161 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12163         * tree-flow-inline.h (next_readonly_imm_use): Return
12164         NULL_USE_OPERAND_P after the end.
12166 2008-03-01  Richard Guenther  <rguenther@suse.de>
12168         PR tree-optimization/35411
12169         * tree-sra.c (sra_build_assignment): Split conversion to
12170         final type to a separate statement if we are not assigning
12171         to a register.
12173 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12175         * fold-const.c (fold_convertible_p): Correct the logic to follow
12176         that in fold_convert().
12178 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
12180         PR c++/35315
12181         * tree-inline.c (build_duplicate_type): When we make a
12182         duplicate type, make it unique in the canonical types system.
12184 2008-02-29  Tom Tromey  <tromey@redhat.com>
12186         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12187         input_file_stack_history, input_file_stack_restored): Remove.
12188         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12189         * input.h (struct file_stack): Remove.
12190         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12191         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12192         Likewise.
12193         * diagnostic.h (struct diagnostic_context) <last_module>: Change
12194         type.
12195         (diagnostic_last_module_changed): Add 'map' argument.
12196         (diagnostic_set_last_function): Likewise.
12197         * diagnostic.c (undiagnostic_report_current_module): Iterate using
12198         line map, not input_file_stack.
12199         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12201 2008-02-29  Paul Brook  <paul@codesourcery.com>
12203         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12205 2008-02-29  Paul Brook  <paul@codesourcery.com>
12207         * config/arm/ieee754-df.S (muldf3): Use RET macros.
12209 2008-02-29  Richard Guenther  <rguenther@suse.de>
12211         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12212         vn_lookup_or_add.
12213         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12214         value for comparing for a store match.
12215         (simplify_unary_expression): Do nothing for SSA_NAMEs.
12216         (try_to_simplify): Do not do a full-blown reference lookup.
12218 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12220         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12221         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12223         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12225 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
12227         * tree-loop-linear.c (try_interchange_loops): Compare memory access
12228         strides against cache sizes.
12230 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12232         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12233         constant to fpul.
12235 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
12237         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12238         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12239         is smaller than the original promoted value.
12240         (simplify_subreg): If OP is a SUBREG, try to preserve its
12241         SUBREG_PROMOTED_VAR_P information.
12243 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
12245         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12246         (VN_INFO_GET): Allocate new objects on the obstack.
12247         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
12248         for rpo_numbers_temp, for consistency.
12249         (free_scc_vn): Free the obstack.
12251 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
12253         * doc/invoke.texi: Document -ftree-loop-distribution.
12254         * tree-loop-distribution.c: New.
12255         * tree-pass.h (pass_loop_distribution): New.
12256         * graphds.h (struct graph): Add htab_t indices.
12257         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12258         * tree-vectorizer.c (rename_variables_in_loop): Extern.
12259         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12260         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12261         * tree-data-ref.c (debug_data_dependence_relations): New.
12262         (dump_data_dependence_relation): Also print data references.
12263         (free_data_ref): Extern.
12264         (same_access_functions): Moved...
12265         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12266         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12267         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12268         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12269         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12270         (stmts_from_loop): Skip LABEL_EXPR.
12271         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12272         New.
12273         (build_rdg): Initialize rdg->indices htab.
12274         (free_rdg, stores_from_loop, ref_base_address,
12275         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12276         have_similar_memory_accesses_1, ref_base_address_1,
12277         remove_similar_memory_refs): New.
12278         * tree-data-ref.h: Depend on tree-chrec.h.
12279         (debug_data_dependence_relations, free_data_ref): Declared.
12280         (same_access_functions): ... here.
12281         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12282         New.
12283         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12284         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12285         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12286         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12287         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12288         rdg_vertex_for_stmt): Declared.
12289         (struct rdg_edge): Add level.
12290         (RDGE_LEVEL): New.
12291         (free_rdg, stores_from_loop, remove_similar_memory_refs,
12292         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12293         Declared.
12294         (rdg_has_similar_memory_accesses): New.
12295         * tree-vect-analyze.c: Remove unused static decls.
12296         * lambda.h (dependence_level): New.
12297         * common.opt (ftree-loop-distribution): New.
12298         * tree-flow.h (mark_virtual_ops_in_bb, 
12299         slpeel_tree_duplicate_loop_to_edge_cfg,
12300         rename_variables_in_loop): Declared.
12301         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12302         (OBJS-common): Add tree-loop-distribution.o.
12303         (tree-loop-distribution.o): New rule.
12304         * tree-cfg.c (mark_virtual_ops_in_bb): New.
12305         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12306         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12308 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
12310         PR target/33963
12311         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12312         other than structures and unions.
12314 2008-02-28  Richard Guenther  <rguenther@suse.de>
12316         Revert:
12317         2008-02-26  Richard Guenther  <rguenther@suse.de>
12319         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12320         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12321         (lookup_decl_from_uid): Declare.
12322         (remove_decl_from_map): Likewise.
12323         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12324         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12325         (decl_for_uid_map): New global hashtable mapping DECL_UID
12326         to the decl tree.
12327         (init_ttree): Allocate it.
12328         (insert_decl_to_uid_decl_map): New helper function.
12329         (make_node_stat): Insert new decls into the map.
12330         (copy_node_stat): Likewise.
12331         (lookup_decl_from_uid): New function.
12332         (remove_decl_from_map): Likewise.
12333         (print_decl_for_uid_map_statistics): New helper.
12334         (dump_tree_statistics): Call it.
12336         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12337         (referenced_var_iterator): Adjust.
12338         (FOR_EACH_REFERENCED_VAR): Adjust.
12339         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12340         (num_referenced_vars): Adjust.
12341         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12342         (first_referenced_var): Remove.
12343         (end_referenced_vars_p): Likewise.
12344         (next_referenced_var): Likewise.
12345         (referenced_var_iterator_set): New helper function.
12346         * tree-dfa.c (referenced_var_lookup): Adjust.
12347         (referenced_var_check_and_insert): Likewise.
12348         (remove_referenced_var): Likewise.
12349         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12350         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12351         (verify_call_clobbering): Likewise.
12352         (verify_memory_partitions): Likewise.
12353         (init_tree_ssa): Allocate bitmap instead of hashtable for
12354         referenced_vars.
12355         (delete_tree_ssa): Adjust.
12356         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12357         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12358         (compute_tag_properties): Likewise.
12359         (set_initial_properties): Likewise.
12360         (find_partition_for): Likewise.
12361         (update_reference_counts): Likewise.
12362         (dump_may_aliases_for): Likewise.
12363         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12364         (add_call_clobber_ops): Likewise.
12365         (add_call_read_ops): Likewise.
12366         (get_asm_expr_operands): Likewise.
12367         * tree-into-ssa.c (dump_decl_set): Likewise.
12368         (update_ssa): Likewise.
12369         * tree-sra.c (scan_function): Likewise.
12370         (decide_instantiations): Likewise.
12371         (scalarize_parms): Likewise.
12372         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12373         (dsa_named_for): Likewise.
12374         * tree-ssa-structalias.c (update_alias_info): Likewise.
12375         (merge_smts_into): Likewise.
12377 2008-02-27  David Daney  <ddaney@avtrex.com>
12379         PR target/34409
12380         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12381         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12382         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12383         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12384         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12386 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
12388         PR target/25477
12389         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12390         (BUILT_IN_NEXTTOWARD): Remove.
12391         (BUILT_IN_NEXTTOWARDF): Ditto.
12392         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12393         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
12395 2008-02-27  Tom Tromey  <tromey@redhat.com>
12397         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12398         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12400 2008-02-27  Jan Beulich  <jbeulich@novell.com>
12402         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12403         update the respective field on newdecl.
12405 2008-02-27  Revital Eres  <eres@il.ibm.com>
12407         PR rtl-optimization/34999
12408         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12409         crossing edges that ends with a call insn.
12410         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12411         call insn and clear the EDGE_CROSSING flag of the crossing edge
12412         when fixing fallthru edges.
12414 2008-02-27  Richard Guenther  <rguenther@suse.de>
12416         PR middle-end/35390
12417         * fold-const.c (fold_unary): Return the correct argument,
12418         converted to the result type.
12420 2008-02-27  Richard Guenther  <rguenther@suse.de>
12422         PR middle-end/34971
12423         * expr.c (expand_expr_real_1): Assert on rotates that operate
12424         on partial modes.
12425         * fold-const.c (fold_binary): Use the types precision, not the
12426         bitsize of the mode if folding rotate expressions.  Build rotates
12427         only for full modes.
12429 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
12431         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12432         and CPP_PRAGMA_EOL.
12433         * c-pragma.c (pragma_ns_name): New typedef.
12434         (registered_pp_pragmas): New variable.
12435         (c_pp_lookup_pragma): New function.
12436         (c_register_pragma_1): If flag_preprocess_only, do nothing
12437         for non-expanded pragmas, for expanded ones push pragma's
12438         namespace and name into registered_pp_pragmas vector.
12439         (c_invoke_pragma_handler): Register OpenMP pragmas even when
12440         flag_preprocess_only, don't register GCC pch_preprocess
12441         pragma if flag_preprocess_only.
12442         * c-opts.c (c_common_init): Call init_pragma even if
12443         flag_preprocess_only.
12444         * c-pragma.c (c_pp_lookup_pragma): New prototype.
12445         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12446         cpp_register_pragma if flag_preprocess_only.
12448 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12450         PR c/28800
12451         * c-parser.c (c_parser_translation_unit): Warn for empty
12452         translation unit, not empty source file.
12454 2008-02-26  Paul Brook  <paul@codesourcery.com>
12456         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12457         operand for Thumb-2.
12458         * config/arm/arm.h (reg_class): Add CORE_REGS.
12459         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12460         (BASE_REG_CLASS): Use CORE_REGS.
12461         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12462         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12463         (REGNO_OK_FOR_INDEX_P): Exclude SP.
12464         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
12465         ARM_REGNO_OK_FOR_INDEX_P.
12466         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12467         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12468         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12469         (ldm/stm peepholes): Ditto.
12470         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12471         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12472         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12473         * config/arm/constraints.md: Enable "k" constraint on ARM.
12475 2008-02-27  Ben Elliston  <bje@au.ibm.com>
12477         * config/rs6000/rs6000.c: Annotate cache line size field in all
12478         instances of struct processor_costs.
12480 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
12482         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12483         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12484         jump_bypass): New counters.
12485         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12486         * dce.c (gate_ud_dce): Same.
12487         (gate_fast_dce): Same.
12488         * dse.c (gate_dse1): New function.
12489         (gate_dse2): New function.
12490         (gate_dse): Merge results of new gate functions.
12491         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12492         (gate_handle_jump_bypass): Add dbg_cnt.
12493         (gate_handle_gcse): Add dbg_cnt.
12494         * ifcvt.c (gate_handle_if_conversion): Same.
12495         (gate_handle_if_after_combine): Same.
12496         (gate_handle_if_after_reload): Same.
12497         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12499 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
12501         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12502         line sizes.
12503         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12505 2008-02-26  Jason Merrill  <jason@redhat.com>
12507         PR c++/35315
12508         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
12509         alone if it's the naming decl for the type's main variant.
12511 2008-02-26  Tom Tromey  <tromey@redhat.com>
12513         * system.h (USE_MAPPED_LOCATION): Poison.
12514         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12515         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12516         (make_goto_expr_edges): Likewise.
12517         (remove_bb): Likewise.
12518         (execute_warn_function_return): Likewise.
12519         * basic-block.h (struct edge_def) <goto_locus>: Change type to
12520         location_t.
12521         * c-common.c (fname_decl): Remove old location code.
12522         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12523         location code.
12524         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12525         variant.
12526         (ASM_INPUT_SOURCE_LOCATION): Likewise.
12527         (gen_rtx_ASM_INPUT): Likewise.
12528         (gen_rtx_ASM_INPUT_loc): Likewise.
12529         (get_rtx_asm_OPERANDS): Remove.
12530         * cfglayout.c (insn_locators_alloc): Remove old location code.
12531         (set_curr_insn_source_location): Likewise.
12532         (curr_insn_locator): Likewise.
12533         * print-tree.c (print_node): Remove old location code.
12534         * tree-mudflap.c (mf_varname_tree): Remove old location code.
12535         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12536         * cfgexpand.c (expand_gimple_cond_expr): Don't use
12537         location_from_locus.
12538         (construct_exit_block): Remove old location code.
12539         * emit-rtl.c (force_next_line_note): Remove old location code.
12540         * profile.c (branch_prob): Remove old location code.
12541         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12542         LOC_LINE): Remove old-location variants.
12543         * langhooks.c (lhd_print_error_function): Remove old location
12544         code.
12545         * configure, config.in: Rebuilt.
12546         * configure.ac (--enable-mapped-location): Remove.
12547         * c-decl.c (c_init_decl_processing): Remove old location code.
12548         (finish_function): Likewise.
12549         * recog.c (decode_asm_operands): Remove old location code.
12550         * c-pch.c (c_common_read_pch): Remove old location code.
12551         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12552         variants.
12553         * gimple-low.c (lower_function_body): Remove old location code.
12554         * toplev.c (unknown_location): Remove.
12555         (push_srcloc): Remove old-location variant.
12556         (process_options): Remove old location code.
12557         (lang_dependent_init): Likewise.
12558         * input.h (UNKNOWN_LOCATION): Move definition.
12559         (location_t): Undeprecate.
12560         (source_locus): Remove.
12561         (location_from_locus): Remove.
12562         (struct location_s): Remove.
12563         Remove all old-location code.
12564         (input_line, input_filename): Remove.
12565         * final.c (final_scan_insn): Remove old location code.
12566         * diagnostic.c (diagnostic_build_prefix): Remove
12567         USE_MAPPED_LOCATION test.
12568         * tree.h (gimple_stmt) <locus>: Now a location_t.
12569         (tree_exp) <locus>: Likewise.
12570         (DECL_IS_BUILTIN): Remove old-location variant.
12571         (annotate_with_file_line, annotate_with_locus): Likewise.
12572         (expr_locus, set_expr_locus): Update.
12573         * tree.c (build1_stat): Remove old location code.
12574         (last_annotated_node): Remove.
12575         (annotate_with_file_line): Remove old-location variant.
12576         (annotate_with_locus): Likewise.
12577         (expr_location): Remove old location code.
12578         (set_expr_location): Likewise.
12579         (expr_has_location): Likewise.
12580         (expr_locus): Likewise.
12581         (set_expr_locus): Likewise.
12582         (expr_filename): Don't use location_from_locus.
12583         (expr_lineno): Likewise.
12584         * rtl-error.c (location_for_asm): Remove old location code.
12585         * c-lex.c (cb_line_change): Remove old location code.
12586         (fe_file_change): Likewise.
12587         (cb_def_pragma): Likewise.
12588         (c_lex_with_flags): Likewise.
12589         * gengtype.c (do_typedef): Don't special-case location types.
12590         (define_location_structures): Remove.
12591         (main): Don't call define_location_structures.
12592         * tree-pretty-print.c (dump_implicit_edges): Remove old location
12593         code.
12595 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12597         PR 26264
12598         * builtins.def (BUILT_IN_STDARG_START): Remove.
12599         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12600         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12601         * tree-inline.c (inline_forbidden_p_1): Likewise.
12602         
12603 2008-02-26  Richard Guenther  <rguenther@suse.de>
12605         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12606         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12607         (lookup_decl_from_uid): Declare.
12608         (remove_decl_from_map): Likewise.
12609         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12610         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12611         (decl_for_uid_map): New global hashtable mapping DECL_UID
12612         to the decl tree.
12613         (init_ttree): Allocate it.
12614         (insert_decl_to_uid_decl_map): New helper function.
12615         (make_node_stat): Insert new decls into the map.
12616         (copy_node_stat): Likewise.
12617         (lookup_decl_from_uid): New function.
12618         (remove_decl_from_map): Likewise.
12619         (print_decl_for_uid_map_statistics): New helper.
12620         (dump_tree_statistics): Call it.
12622         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12623         (referenced_var_iterator): Adjust.
12624         (FOR_EACH_REFERENCED_VAR): Adjust.
12625         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12626         (num_referenced_vars): Adjust.
12627         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12628         (first_referenced_var): Remove.
12629         (end_referenced_vars_p): Likewise.
12630         (next_referenced_var): Likewise.
12631         (referenced_var_iterator_set): New helper function.
12632         * tree-dfa.c (referenced_var_lookup): Adjust.
12633         (referenced_var_check_and_insert): Likewise.
12634         (remove_referenced_var): Likewise.
12635         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12636         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12637         (verify_call_clobbering): Likewise.
12638         (verify_memory_partitions): Likewise.
12639         (init_tree_ssa): Allocate bitmap instead of hashtable for
12640         referenced_vars.
12641         (delete_tree_ssa): Adjust.
12642         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12643         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12644         (compute_tag_properties): Likewise.
12645         (set_initial_properties): Likewise.
12646         (find_partition_for): Likewise.
12647         (update_reference_counts): Likewise.
12648         (dump_may_aliases_for): Likewise.
12649         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12650         (add_call_clobber_ops): Likewise.
12651         (add_call_read_ops): Likewise.
12652         (get_asm_expr_operands): Likewise.
12653         * tree-into-ssa.c (dump_decl_set): Likewise.
12654         (update_ssa): Likewise.
12655         * tree-sra.c (scan_function): Likewise.
12656         (decide_instantiations): Likewise.
12657         (scalarize_parms): Likewise.
12658         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12659         (dsa_named_for): Likewise.
12660         * tree-ssa-structalias.c (update_alias_info): Likewise.
12661         (merge_smts_into): Likewise.
12663 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12665         PR 34351
12666         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12667         * c-opts.c (c_common_handle_option): Wall enables
12668         Wvolatile-register-var.
12669         * common.opt: Move Wvolatile-register-var to...
12670         * c.opt: ...here.
12671         
12672 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12674         * common.opt (Wlarger-than=): New.
12675         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12676         -Wlarger-than=.
12677         * opts.c (common_handle_option): Handle -Wlarger-than=.
12678         * optc-gen.awk: Likewise.
12679         * opth-gen.awk: Likewise.
12680         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12681         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12682         
12683 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12685         * c-common.c (match_case_to_enum_1): Add appropriate
12686         OPT_W* parameter to warning.
12687         (c_do_switch_warnings): Likewise.
12688         * c-typeck.c (warning_init): Add one more parameter following
12689         'warning' function.
12690         (push_init_level): Update call to warning_init.
12691         (pop_init_level): Likewise.
12692         (add_pending_init): Likewise.
12693         (output_init_element: Likewise.
12695 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12697         PR 28322
12698         * toplev.c (toplev_main): If there are warnings or error, print
12699         errors for ignored options.
12700         * opts.c (ignored_options): New static variable.
12701         (postpone_unknown_option_error): New.
12702         (print_ignored_options): New.
12703         (handle_option): Postpone errors for unknown -Wno-* options.
12704         * opts.h (print_ignored_options): Declare.
12705         
12706 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12708         * config/mips/mips.md (loadgp_blockage, blockage): Change type
12709         to "ghost".
12711 2008-02-25  Richard Guenther  <rguenther@suse.de>
12713         Revert:
12714         2008-02-25  Richard Guenther  <rguenther@suse.de>
12716         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12717         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12718         (lookup_decl_from_uid): Declare.
12719         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12720         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12721         (decl_for_uid_map): New global hashtable mapping DECL_UID
12722         to the decl tree.
12723         (init_ttree): Allocate it.
12724         (insert_decl_to_uid_decl_map): New helper function.
12725         (make_node_stat): Insert new decls into the map.
12726         (copy_node_stat): Likewise.
12727         (lookup_decl_from_uid): New function.
12728         (print_decl_for_uid_map_statistics): New helper.
12729         (dump_tree_statistics): Call it.
12731         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12732         (referenced_var_iterator): Adjust.
12733         (FOR_EACH_REFERENCED_VAR): Adjust.
12734         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12735         (num_referenced_vars): Adjust.
12736         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12737         (first_referenced_var): Remove.
12738         (end_referenced_vars_p): Likewise.
12739         (next_referenced_var): Likewise.
12740         (referenced_var_iterator_set): New helper function.
12741         * tree-dfa.c (referenced_var_lookup): Adjust.
12742         (referenced_var_check_and_insert): Likewise.
12743         (remove_referenced_var): Likewise.
12744         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12745         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12746         (verify_call_clobbering): Likewise.
12747         (verify_memory_partitions): Likewise.
12748         (init_tree_ssa): Allocate bitmap instead of hashtable for
12749         referenced_vars.
12750         (delete_tree_ssa): Adjust.
12751         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12752         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12753         (compute_tag_properties): Likewise.
12754         (set_initial_properties): Likewise.
12755         (find_partition_for): Likewise.
12756         (update_reference_counts): Likewise.
12757         (dump_may_aliases_for): Likewise.
12758         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12759         (add_call_clobber_ops): Likewise.
12760         (add_call_read_ops): Likewise.
12761         (get_asm_expr_operands): Likewise.
12762         * tree-into-ssa.c (dump_decl_set): Likewise.
12763         (update_ssa): Likewise.
12764         * tree-sra.c (scan_function): Likewise.
12765         (decide_instantiations): Likewise.
12766         (scalarize_parms): Likewise.
12767         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12768         (dsa_named_for): Likewise.
12769         * tree-ssa-structalias.c (update_alias_info): Likewise.
12770         (merge_smts_into): Likewise.
12772 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12774         PR fortran/29549
12775         * doc/invoke.texi (-fcx-limited-range): Document new option.
12776         * toplev.c (process_options): Handle -fcx-fortran-rules.
12777         * common.opt: Add documentation for -fcx-fortran-rules.
12779 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12781         PR c/35162
12782         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12783         actual behaviour and C99.
12784         
12785 2008-02-26  Ben Elliston  <bje@au.ibm.com>
12787         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12788         (ASM_CPU_POWER6_SPEC): Likewise.
12789         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12790         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12791         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12793 2008-02-25  Richard Guenther  <rguenther@suse.de>
12795         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12796         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12797         (lookup_decl_from_uid): Declare.
12798         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12799         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12800         (decl_for_uid_map): New global hashtable mapping DECL_UID
12801         to the decl tree.
12802         (init_ttree): Allocate it.
12803         (insert_decl_to_uid_decl_map): New helper function.
12804         (make_node_stat): Insert new decls into the map.
12805         (copy_node_stat): Likewise.
12806         (lookup_decl_from_uid): New function.
12807         (print_decl_for_uid_map_statistics): New helper.
12808         (dump_tree_statistics): Call it.
12810         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12811         (referenced_var_iterator): Adjust.
12812         (FOR_EACH_REFERENCED_VAR): Adjust.
12813         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12814         (num_referenced_vars): Adjust.
12815         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12816         (first_referenced_var): Remove.
12817         (end_referenced_vars_p): Likewise.
12818         (next_referenced_var): Likewise.
12819         (referenced_var_iterator_set): New helper function.
12820         * tree-dfa.c (referenced_var_lookup): Adjust.
12821         (referenced_var_check_and_insert): Likewise.
12822         (remove_referenced_var): Likewise.
12823         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12824         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12825         (verify_call_clobbering): Likewise.
12826         (verify_memory_partitions): Likewise.
12827         (init_tree_ssa): Allocate bitmap instead of hashtable for
12828         referenced_vars.
12829         (delete_tree_ssa): Adjust.
12830         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12831         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12832         (compute_tag_properties): Likewise.
12833         (set_initial_properties): Likewise.
12834         (find_partition_for): Likewise.
12835         (update_reference_counts): Likewise.
12836         (dump_may_aliases_for): Likewise.
12837         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12838         (add_call_clobber_ops): Likewise.
12839         (add_call_read_ops): Likewise.
12840         (get_asm_expr_operands): Likewise.
12841         * tree-into-ssa.c (dump_decl_set): Likewise.
12842         (update_ssa): Likewise.
12843         * tree-sra.c (scan_function): Likewise.
12844         (decide_instantiations): Likewise.
12845         (scalarize_parms): Likewise.
12846         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12847         (dsa_named_for): Likewise.
12848         * tree-ssa-structalias.c (update_alias_info): Likewise.
12849         (merge_smts_into): Likewise.
12851 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
12853         PR target/35258
12854         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12855         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12856         * alias.h (nonoverlapping_memrefs_p): Likewise.
12858 2008-02-25  Jan Beulich  <jbeulich@novell.com>
12860         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12861         * config/i386/netware-libgcc.exp: Add __bswap?i2,
12862         __emultls_get_address, __emultls_register_common,
12863         __floatundi?f, and _Unwind_GetIPInfo.
12864         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12865         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12866         (gen_regparm_prefix): Likewise.
12867         (i386_nlm_encode_section_info): Sync with
12868         config/i386/winnt.c:i386_pe_encode_section_info().
12869         (i386_nlm_maybe_mangle_decl_assembler_name): New.
12870         i386_nlm_mangle_decl_assembler_name): New.
12871         (netware_override_options): New.
12872         * config/i386/netware.h (netware_override_options): Declare.
12873         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12874         (i386_nlm_mangle_decl_assembler_name): Declare.
12875         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12877 2008-02-25  Ben Elliston  <bje@au.ibm.com>
12879         PR other/32948
12880         * c-decl.c (grokdeclarator): Remove unused local variables
12881         `typedef_type' and `type_as_written'.
12882         * bb-reorder.c
12883         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12884         unused local variable `has_hot_blocks'.
12885         (fix_crossing_conditional_branches): Remove unused local variable
12886         `prev_bb'.
12887         
12888 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
12890         PR middle-end/19984
12891         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12892         using DEF_C99_BUILTIN.
12893         (BUILT_IN_NANF): Ditto.
12894         (BUILT_IN_NANL): Ditto.
12896 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
12897             Revital Eres  <eres@il.ibm.com>
12899         * modulo-sched.c (calculate_must_precede_follow): Address TODO
12900         regarding the order of two dependent insns in the same row.
12902 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12904         * stor-layout.c (layout_decl): Do not bump the alignment of a
12905         bit-field to more than byte alignment if it is packed.
12907 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
12909         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
12910         e300c2 and e300c3.
12912 2008-02-24  Diego Novillo  <dnovillo@google.com>
12914         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
12916         PR 33738
12917         * tree-vrp.c (vrp_evaluate_conditional): With
12918         -Wtype-limits, emit a warning when comparing against a
12919         constant outside the natural range of OP0's type.
12920         * c.opt (Wtype-limits): Move ...
12921         * common.opt (Wtype-limits): ... here.
12923 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
12925         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
12926         * config/rs6000/e300c2c3.md: New file.
12927         * config/rs6000/rs6000.c (processor_costs): Add new costs for
12928         e300c2 and e300c3.
12929         (rs6000_override_options): Add e300c2 and e300c3 cases to
12930         processor_target_table. Do not allow usage of Altivec or Spe
12931         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
12932         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
12933         * config/rs6000/rs6000.h (processor_type): Add
12934         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
12935         (ASM_CPU_SPEC): Add e300c2 and e300c3.
12936         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
12937         and ppce300c3. Include e300c2c3.md.
12939 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
12941         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
12942         instead of TARGET_STRICT_ALIGN.
12944 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
12946         * explow.c (memory_address): Assert that the generated address is
12947         valid.
12949 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12951         PR target/25477
12952         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
12953         * config/darwin-ppc-ldouble-patch.def: New file.
12954         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
12955         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
12956         SUBTARGET_INIT_BUILTINS if defined.
12957         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
12958         New functions.
12960 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12962         PR rtl-opt/33512
12963         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
12964         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
12966 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12968         PR pch/35027
12969         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
12970         file" warning condtional on -Winvalid-PCH.
12972 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
12974         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
12976 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
12978         PR target/22076
12979         PR target/34256 
12980         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
12981         prevent reload from using MMX registers.
12982         (*mov<mode>_internal): Ditto.
12983         (*movv2sf_internal_rex64): Ditto.
12984         (*movv2sf_internal): Ditto.
12986 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12988         PR documentation/31569
12989         * doc/install.texi2html: Use makeinfo --no-number-sections.
12991 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12993         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
12994         ensure that we can address an entire entity > 8 bytes.  Don't
12995         generate reg+reg addressing for such data.
12997 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12999         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13000         strings when optimizing for size, unless the target cares about
13001         alignment.
13003 2008-02-22  Tom Tromey  <tromey@redhat.com>
13005         * regclass.c (current_pass): Remove declaration.
13007 2008-02-22  Anatoly Sokolov <aesok@post.ru>
13009         * config/avr/libgcc.S (__RAMPZ__): Define.
13010         (__do_copy_data): Add for devices with 128KB code memory.
13012 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13014         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13015         Use spe_abi.
13016         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13018 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
13020         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13021         GENNONACR_REGS.
13023 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13025         PR c/19999
13026         * c-typeck.c (build_binary_op): Warn about floating point
13027         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13029 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
13031         PR target/34526
13032         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13033         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13034         add vrsave.
13035         (rs6000_override_options): Set altivec_abi as default, not override,
13036         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13037         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13038         is used; use new member spe_abi.
13039         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13040         spe_abi and altivec_abi.
13042 2008-02-22  Tomas Bily  <tbily@suse.cz>
13044         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13046 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13048         PR bootstrap/35273
13049         * config.build (build_file_translate): Set to `CMD //c' only if
13050         it works.
13051         * Makefile.in (build_file_translate): Improve comment.
13053 2008-02-21  Jan Hubicka  <jh@suse.cz>
13055         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
13056         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
13057         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
13059 2008-02-21  Michael Matz  <matz@suse.de>
13061         PR target/35264
13062         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
13064 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
13066         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
13067         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
13068         as insn constraint.
13069         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
13070         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
13071         SSE_VEC_FLOAT_MODE_P as insn constraint.
13072         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
13073         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
13074         sse4a_movntdf using MODEF mode iterator.
13075         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
13076         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
13077         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
13078         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
13079         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
13080         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
13081         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
13083 2008-02-21  Richard Guenther  <rguenther@suse.de>
13085         * tree.def (PAREN_EXPR): New tree code.
13086         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13087         and PAREN_EXPR.
13088         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13089         * expr.c (expand_expr_real_1): Likewise.
13090         * tree-inline.c (estimate_num_insns_1): Likewise.
13091         * tree-complex.c (expand_complex_move): Likewise.
13092         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13093         as plain x.
13095 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13097         PR target/35225
13098         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13100 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13102         PR target/35190
13103         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13105         * config/sh/sh.c (find_barrier): Don't go past
13106         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13108 2008-02-20  DJ Delorie  <dj@redhat.com>
13110         * config/h8300/h8300.md (insv): Force source operand to be a register.
13112         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13113         as a jump, not as a plain insn.
13114         
13115 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
13117         * doc/invoke.texi (Warning Options): Add new option
13118         -Wframe-larger-than=.
13119         (-Wframe-larger-than): Document.
13121         * flags.h (warn_frame_larger_than, frame_larger_than_size):
13122         Add declarations for new option variables.
13124         * final.c (final_start_function): Check the frame size
13125         before emission and issue a Wframe-larger-than warning.
13127         * opts.c (warn_frame_larger_than, frame_larger_than_size):
13128         Add definitions for new option variables.
13129         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13131         * common.opt (Wframe-larger-than=): New option.
13133 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13135         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13136         (<sse>_div<mode>3): Ditto.
13137         (<sse>_vmdiv<mode>3): Ditto.
13138         (<sse>_vmsqrt<mode>2): Ditto.
13139         (*smax<mode>3): Ditto.
13140         (sse5_frcz<mode>2): Ditto.
13141         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
13142         as insn constraint.
13144 2008-02-20  Richard Guenther  <rguenther@suse.de>
13146         PR middle-end/35265
13147         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13148         be happy with INTEGRAL_TYPE_P.
13150 2008-02-20  Richard Guenther  <rguenther@suse.de>
13152         * fold-const.c (split_tree): Associate floatig-point expressions
13153         if flag_associative_math is set.
13155 2008-02-20  Richard Guenther  <rguenther@suse.de>
13157         * tree.h (fold_real_zero_addition_p): Declare.
13158         * fold-const.c (fold_real_zero_addition_p): Export.
13159         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13160         floating-point operations with zero and one.
13162 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
13164         * doc/install.texi: Correct references to CFLAGS, replacing them
13165         with BOOT_CFLAGS.  Document flags used during bootstrap for
13166         target libraries.
13167                                 
13168 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13170         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13171         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13172         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13173         insn constraint.
13174         (smin<mode>3): Ditto from similar patterns.
13175         (smax<mode>3): Ditto.
13176         (*ieee_smin<mode>3): Ditto.
13177         (*ieee_smax<mode>3): Ditto.
13178         * config/i386/sse.md (sse): New mode attribute.
13179         (mov<mode>): Macroize expander from movv4sf and movv2df using
13180         SSEMODEF2P mode iterator.
13181         (<sse>_movnt<mode>): Ditto from similar patterns. Use
13182         SSE_VEC_FLOAT_MODE_P as insn constraint.
13183         (storent<mode>): Ditto.
13184         (storent<mode>): Macroize expander from storentsf and storentdf using
13185         MODEF mode iterator.
13186         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13187         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13188         (abs<mode>2): Ditto from similar patterns.
13189         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13190         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13191         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13192         (<sse>_vmsqrt<mode>2): Ditto.
13193         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13194         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13195         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13196         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13197         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13198         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13199         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13200         insn constraint.
13201         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13202         iterator and SSE_FLOAT_MODE_P as insn constraint.
13203         (<sse>_ucomi): Ditto from similar patterns.
13204         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13205         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13206         SSE_VEC_FLOAT_MODE_P as insn constraint.
13207         (vcond<mode>): Ditto from similar patterns.
13208         (and<mode>3, *and<mode>3): Ditto.
13209         (<sse>_nand<mode>3): Ditto.
13210         (ior<mode>3, *ior<mode>3): Ditto.
13211         (xor<mode>3, *xor<mode>3): Ditto.
13212         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13213         iterator and SSE_FLOAT_MODE_P as insn constraint.
13214         (*nand<mode>3): Ditto from similar patterns.
13215         (*ior<mode>3): Ditto.
13216         (*xor<mode>3): Ditto.
13218 2008-02-20  Ira Rosen  <irar@il.ibm.com>
13220         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13221         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13222         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13224 2008-02-19  Jan Hubicka  <jh@suse.cz>
13226         * predict.c (tree_bb_level_predictions): Remove variable next
13227         mistakely introduced by previous commit.
13229 2008-02-19  Jan Hubicka  <jh@suse.cz>
13231         * predict.c (predict_paths_leading_to): Rewrite.
13232         (predict_paths_for_bb): New.
13233         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13235 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13237         PR bootstrap/35218
13238         * Makefile.in (build_file_translate): New.
13239         (gcc-vers.texi): Use it for translating $(abs_srcdir).
13240         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13241         * configure.ac (build_file_translate): Substitute it.
13242         * configure: Regenerate.
13244 2008-02-19  Jan Hubicka  <jh@suse.cz>
13246         PR rtl-optimization/34408
13247         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13248         invalid sharing.
13250 2008-02-19  Jan Hubicka  <jh@suse.cz>
13252         PR middle-end/28779
13253         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13254         call_expr.
13256 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13258         PR Ada/35186
13259         * config/i386/i386-modes.def: Revert the last DI alignment
13260         change until Ada people can look into it.
13262 2008-02-19  Nick Clifton  <nickc@redhat.com>
13264         * opts.c (print_specific_help): Fix typo in --help text.
13266 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
13268         PR target/35239
13269         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13270         32-bit inline asm without asm alternatives for host GCC < 3.0.
13272 2008-02-19  Richard Guenther  <rguenther@suse.de>
13274         PR tree-optimization/34989
13275         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13276         Allow propagation to INDIRECT_REF if we can simplify only.
13278 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13280         * c-common.c (warn_for_collisions_1): Use appropriate option when
13281         warning.
13283 2008-02-19  Nick Clifton  <nickc@redhat.com>
13285         PR other/31349
13286         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13287         (handle_options): Fix indentation.
13288         (print_filtered_help): If no language-specific options were
13289         displayed tell the user how to list all the options supported by
13290         the language's front-end.
13291         (print_specific_help): Fix indentation and remove duplicate line.
13292         (common_handle_option): Handle the -v option.
13293         For --help enable the display of undocumented options if the -v
13294         switch has been included on the command line.
13295         For --help= check for overlaps in the arguments between the option
13296         classes and the language names and issue a warning when they
13297         cannot be disambiguated.
13298         * c.opt (v): Pass on to the common option handler.
13300 2008-02-19  Revital Eres  <eres@il.ibm.com> 
13302         * modulo-sched.c (sms_schedule): Change dump message when
13303         create_ddg function fails.
13304         (try_scheduling_node_in_cycle): Rename row to cycle.
13305         (print_partial_schedule): Rename CYCLE to ROW.
13307 2008-02-19  Christian Bruel  <christian.bruel@st.com>
13308             Zdenek Dvorak  <ook@ucw.cz>
13310         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13312 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13314         PR target/33555
13315         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13316         (*x86_movdicc_0_m1_se): Ditto.
13318 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13320         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13321         (CMPtype): Define as __gcc_CMPtype.
13322         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13323         (CMPtype): Define as __gcc_CMPtype.
13325 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
13327         Support valgrind 3.3 for --enable-checking=valgrind.
13328         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13329         here.
13330         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13331         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13332         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13333         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13334         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13335         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13336         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13337         respectively.
13338         * ggc-zone.c: Similar.
13339         * ggc-page.c: Similar.
13341 2008-02-19  Paul Brook  <paul@codesourcery.com>
13343         PR target/35071
13344         * config/arm/ieee754-df.S: Fix do_it typo.
13345         * config/arm/ieee754-sf.S: Fix do_it typo.
13347 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13349         PR target/35189
13350         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13351         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13352         (OPTION_MASK_ISA_SSE_SET): Likewise.
13353         (OPTION_MASK_ISA_SSE2_SET): Likewise.
13354         (OPTION_MASK_ISA_SSE3_SET): Likewise.
13355         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13356         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13357         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13358         (OPTION_MASK_ISA_SSE4_SET): Likewise.
13359         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13360         (OPTION_MASK_ISA_SSE5_SET): Likewise.
13361         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13362         (OPTION_MASK_ISA_MMX_UNSET): Updated.
13363         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13364         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13365         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13366         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13367         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13368         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13369         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13370         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13371         (OPTION_MASK_ISA_SSE4): Removed.
13372         (ix86_handle_option): Turn on bits in ix86_isa_flags and
13373         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13374         (override_options): Don't turn on implied SSE/MMX bits in
13375         ix86_isa_flags.
13377 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13379         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13380         32bit host.
13382 2008-02-18  Joey Ye  <joey.ye@intel.com>
13384         PR middle-end/34921
13385         * tree-nested.c (insert_field_into_struct): Set type alignment
13386         to field alignment if the former is less than the latter.
13388 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
13390         * BASE-VER: Set to 4.4.0.
13392 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13394         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13395         * doc/cfg.texi: Likewise.
13396         * doc/extend.texi: Likewise.
13397         * doc/gty.texi: Likewise.
13398         * doc/invoke.texi: Likewise.
13399         * doc/loop.texi: Likewise.
13400         * doc/md.texi: Likewise.
13401         * doc/passes.texi: Likewise.
13402         * doc/rtl.texi: Likewise.
13403         * doc/sourcebuild.texi: Likewise.
13404         * doc/tm.texi: Likewise.
13405         * doc/tree-ssa.texi: Likewise.
13407 2008-02-17  Richard Guenther  <rguenther@suse.de>
13409         PR middle-end/35227
13410         * tree-complex.c (init_parameter_lattice_values): Handle parameters
13411         without default definition.
13413 2008-02-17  Richard Guenther  <rguenther@suse.de>
13415         PR tree-optimization/35231
13416         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13417         if A | B != 1.
13419 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
13421         Revert:
13422         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
13423         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13424         libgcc_cmp_return mode.
13426 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13428         PR c/28368
13429         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13431 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
13433         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13434         multilibs.
13436 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13438         * doc/c-tree.texi: Use `@.' where appropriate.
13439         * doc/extend.texi: Likewise.
13440         * doc/install.texi: Likewise.
13441         * doc/invoke.texi: Likewise.
13442         * doc/loop.texi: Likewise.
13443         * doc/makefile.texi: Likewise.
13444         * doc/md.texi: Likewise.
13445         * doc/passes.texi: Likewise.
13446         * doc/standards.texi: Likewise.
13447         * doc/tm.texi: Likewise.
13449 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13451         PR middle-end/35196
13452         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13453         in entry_bb.
13454         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13455         rather than in entry_bb.
13457 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13459         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13460         libgcc_cmp_return mode.
13462 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13464         PR middle-end/35130
13465         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13466         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13468 2008-02-15  Richard Guenther  <rguenther@suse.de>
13469             Zdenek Dvorak  <ook@ucw.cz>
13471         PR tree-optimization/35164
13472         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13473         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13474         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13475         Only propagate addresses which do not have abnormal SSA_NAMEs
13476         in their operands.
13478 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
13480         PR target/35088
13481         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13483 2008-02-15  Jan Hubicka  <jh@suse.cz>
13485         PR middle-end/35149
13486         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13488 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13490         PR middle-end/34621
13491         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13492         when calculating alignment_pad.
13494 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13496         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13497         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13498         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13499         and STACK_BOUNDARY define.
13501 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
13503         PR preprocessor/35061
13504         * c-pragma.c (handle_pragma_pop_macro): Check that
13505         pushed_macro_table has been allocated.
13507 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13509         PR middle-end/35136
13510         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13511         (force_gimple_operand): Likewise.
13512         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13513         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13514         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13515         (find_interesting_uses_address): Check addressability and alignment
13516         of the base expression only after substituting bases of IVs into it.
13518 2008-02-14  Michael Matz  <matz@suse.de>
13520         PR target/34930
13521         * function.c (instantiate_virtual_regs_in_insn): Reload address
13522         before falling back to reloading the whole operand.
13524 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13526         * config/s390/s390.c (s390_mainpool_start): Emit the pool
13527         before the first section switch note.
13529 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13531         * doc/bugreport.texi: Update copyright years.
13532         * doc/c-tree.texi: Likewise.
13533         * doc/cfg.texi: Likewise.
13534         * doc/cpp.texi: Likewise.
13535         * doc/cppinternals.texi: Likewise.
13536         * doc/fragments.texi: Likewise.
13537         * doc/frontends.texi: Likewise.
13538         * doc/gcc.texi: Likewise.
13539         * doc/gty.texi: Likewise.
13540         * doc/hostconfig.texi: Likewise.
13541         * doc/implement-c.texi: Likewise.
13542         * doc/libgcc.texi: Likewise.
13543         * doc/loop.texi: Likewise.
13544         * doc/makefile.texi: Likewise.
13545         * doc/options.texi: Likewise.
13546         * doc/passes.texi: Likewise.
13547         * doc/rtl.texi: Likewise.
13548         * doc/sourcebuild.texi: Likewise.
13549         * doc/standards.texi: Likewise.
13550         * doc/tree-ssa.texi: Likewise.
13551         * doc/trouble.texi: Likewise.
13553         * doc/extend.texi: Use @: or add comma where appropriate.
13554         * doc/invoke.texi: Likewise.
13555         * doc/tm.texi: Likewise.
13557 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
13559         PR target/34393
13560         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13561         to a reg.
13563 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
13565         * doc/md.texi (clz, ctz): Add reference.
13566         * doc/rtl.texi (clz, ctz): Likewise.
13568 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13570         PR other/35148
13571         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13572         srcdir.
13574 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
13576         * config/s390/s390.c (struct constant_pool): New field
13577         emit_pool_after added.
13578         (s390_mainpool_start): Set the emit_pool_after flag according
13579         to the section switch notes.
13580         (s390_mainpool_finish): Consider emit_pool_after when emitting
13581         the literal pool at the end of the function.
13582         (s390_chunkify_start): Force literal pool splits at section
13583         switch notes.
13585 2008-02-13  Michael Matz  <matz@suse.de>
13587         PR debug/35065
13588         * var-tracking.c (clobber_variable_part): Correctly traverse the
13589         list.
13591 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13593         PR 29673
13594         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13595         Add -fdump-ipa-inline.
13596         * tree-dump.c (dump_files): Remove tree-inlined dump.
13597         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13598         
13599 2008-02-12  Richard Guenther  <rguenther@suse.de>
13601         PR tree-optimization/35171
13602         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13603         default defs.
13605 2008-02-12  Richard Guenther  <rguenther@suse.de>
13607         PR middle-end/35163
13608         * fold-const.c (fold_widened_comparison): Use get_unwidened in
13609         value-preserving mode.  Disallow final truncation.
13611 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13613         PR middle-end/35136
13614         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13615         code from here to...
13616         (force_gimple_operand): ...here.
13618 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
13620         PR c++/35144
13621         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13622         non-compatible pointers.
13623         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13624         different FIELD_DECLs, try harder by comparing field offsets, sizes
13625         and types.
13627         PR inline-asm/35160
13628         * function.c (match_asm_constraints_1): Don't replace the same input
13629         multiple times.
13631 2008-02-12  Anatoly Sokolov <aesok@post.ru>
13633         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13634         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13635         (expand_epilogue): Restore RAMPZ register.
13636         * config/avr/avr.md (RAMPZ_ADDR): New constant.
13638 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
13640         * config/i386/cygwin.asm: (__alloca): Correct calling
13641         convention and alignment.
13642         (__chkstk): Force 8 byte stack alignment.
13644 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
13645             Richard Guenther  <rguenther@suse.de>
13647         PR tree-optimization/33992
13648         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13649         the zero we compare against.
13651 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
13653         PR libfortran/35063
13654         * gthr-win32.h (__gthread_mutex_destroy_function): New function
13655         to CloseHandle after unlocking to prevent accumulation of handle
13656         count.
13658 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13660         PR middle_end/34150
13661         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13662         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
13663         and update LABEL_NUSES during and after reload.
13665 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13667         PR middle-end/34627
13668         * combine.c (simplify_if_then_else): Make sure the comparison is
13669         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13671 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13673         PR bootstrap/35051
13674         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13675         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13676         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13677         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13678         * tree.h (get_type_static_bounds): Likewise.
13680 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13682         * doc/invoke.texi (Option Summary, C++ Dialect Options)
13683         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13684         Make -Wfoo language annotations match what the compiler outputs.
13686 2008-02-08  Sa Liu  <saliu@de.ibm.com>
13688         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
13689         intrinsics spu_convts, spu_convtu, spu_convtf.
13691 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
13693         * doc/extend.texi (Function Attributes) <noinline>: Mention
13694         asm ("") as method to keep calls.
13696 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13698         PR other/32754
13699         * doc/options.texi (Options): Replace references to opts.sh with
13700         optc-gen.awk.
13701         * opts-common.c: Likewise.
13702         * optc-gen.awk: Likewise.
13703         
13704 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13706         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13708 2008-02-07  Richard Henderson  <rth@redhat.com>
13710         PR rtl-opt/33410
13711         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13712         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
13713         funny mode.
13715 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
13717         PR tree-optimization/35085
13718         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13719         for operand entry oe2 in addition to operand entry oe3 in order to
13720         expose more opportunities for vectorizer sum reduction.
13722 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13724         PR other/35107
13725         * Makefile.in (LIBS): Remove $(GMPLIBS).
13726         (cc1-dummy, cc1): Add $(GMPLIBS).
13728 2008-02-06  Jan Hubicka  <jh@suse.cz>
13730         PR target/23322
13731         * i386.md (moddf_integer): Do not produce partial memory stalls for
13732         targets where it hurts.
13734 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
13736         PR target/35083
13737         * optabs.c (expand_float): Do not check for decimal modes when
13738         expanding unsigned integer through signed conversion.
13740 2008-02-06  Nick Clifton  <nickc@redhat.com>
13742         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13743         inside the clobber with a match_operand and duplicated operand
13744         number in the constraint.
13745         (ineqbranchsi): Delete redundant comment.
13747 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
13749         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
13750         builtin_define ("__USE_INIT_FINI__").
13751         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13752         -msx multilibs.
13753         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13755 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13757         PR documentation/30330
13758         * doc/invoke.texi (C++ Dialect Options)
13759         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13760         For each warning option -Wfoo that allows -Wno-foo, ensure both
13761         -Wfoo and -Wno-foo are listed in the option index.  Fix index
13762         entry of -Wswitch-default, index -Wnormalized= including the
13763         `=', and -Wlarger-than-@var{len} including @var{len}.
13765 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13767         * config/i386/i386.md (floatunssisf2): Use
13768         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13769         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13770         Macroize expander using MODEF mode iterator.
13772 2008-02-05  Diego Novillo  <dnovillo@google.com>
13774         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13776         PR 33738
13777         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13779 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13781         PR other/35070
13782         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13784 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
13786         PR target/35084
13787         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13788         to indicate if a message should be generated.
13789         (init_cumulative_args): Updated.
13790         (function_value_32): Likewise.
13792 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
13794         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13796 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13798         PR target/35083
13799         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13800         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13802 2008-02-04  Diego Novillo  <dnovillo@google.com>
13804         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13806         PR 33738
13807         * tree-vrp.c (vrp_evaluate_conditional): With
13808         -Wtype-limits, emit a warning when comparing against a
13809         constant outside the natural range of OP0's type.
13811 2008-02-04  Richard Guenther  <rguenther@suse.de>
13813         PR middle-end/33631
13814         * expr.c (count_type_elements): Give for unions instead of
13815         guessing.
13817 2008-02-04  Richard Guenther  <rguenther@suse.de>
13819         PR middle-end/35043
13820         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13821         to TYPE_DOMAINs base type instead of using bitsizetype here.
13823 2008-02-03  Jason Merrill  <jason@redhat.com>
13825         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13827 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13829         PR other/29972
13830         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13831         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13832         (RS/6000 and PowerPC Options): Fix typos and markup.
13833         * doc/passes.texi (Tree-SSA passes): Likewise.
13835 2008-02-02  Michael Matz  <matz@suse.de>
13837         PR target/35045
13838         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13839         from record_last_reg_set_info.
13840         (record_last_reg_set_info): Take an RTX argument, iterate over all
13841         constituent hardregs.
13842         (record_last_set_info, record_opr_changes): Change calls to
13843         new signature or to record_last_reg_set_info_regno.
13845 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13847         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13849 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
13851         PR rtl-optimization/34773
13852         * reg-notes.def (EQUAL): Mention significance of combination of
13853         REG_EQUAL and REG_RETVAL.
13854         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13855         insn that has a REG_RETVAL.
13857 2008-02-01  Roger Sayle  <roger@eyesopen.com>
13859         PR bootstrap/33781
13860         * configure.ac (--enable-fixed-point): Disable unless explicitly
13861         requested on IRIX.
13862         * configure: Regenerate.
13864 2008-02-01  Richard Guenther  <rguenther@suse.de>
13866         PR other/35042
13867         * invoke.texi (-finline-limit): Remove no longer true parts
13868         of the documentation.  Note that there is no default value.
13870 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
13871             Mark Mitchell  <mark@codesourcery.com>
13872             Ben Elliston  <bje@au.ibm.com>
13874         PR c/29326
13875         * doc/extend.texi (Other Builtins): Document.
13877 2008-01-31  Tom Browder <tom.browder@gmail.com>
13879         * doc/c-tree.texi (Types): Fix grammar.
13880         (Expression trees): Ditto.
13881         * doc/passes.texi (Tree-SSA passes): Ditto.
13882         
13883         * doc/configterms.texi (Configure Terms): Fix typo.
13884         * doc/cpp.texi (Common Predefined Macros): Ditto.
13885         * doc/md.texi (Machine Constraints): Ditto.
13886         
13887         * doc/makefile.texi (Makefile): Add comma.
13889 2008-01-31  Tom Browder  <tom.browder@gmail.com>
13890             Gerald Pfeifer  <gerald@pfeifer.com>
13891         
13892         * doc/sourcebuild.texi (Front End): Remove references to CVS
13893         and CVSROOT/modules.
13894         (Texinfo Manuals): Replace reference to CVS by one to SVN.
13895         (Back End): Remove reference to CVS.
13897 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13899         PR target/34900
13900         * config/mips/mips.c (gen_load_const_gp): New function, taking a
13901         comment from...
13902         (mips16_gp_pseudo_reg): ...here.
13903         * config/mips/mips.md (load_const_gp): Replace with...
13904         (load_const_gp_<mode>): ...this :P-based insn.
13906 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13908         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
13909         options. Minor fixes.
13910         (-std): Move reference to standards closer to where language
13911         standards are first mentioned.
13912         
13913 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13915         PR rtl-optimization/34995
13916         * reload.c (alternative_allows_const_pool_ref): Take an rtx
13917         parameter and return a bool.  If the rtx parameter is nonnull,
13918         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
13919         (find_reloads): Update call accordingly.  Pass the new operand
13920         if it needed no address reloads, otherwise pass null.
13922 2008-01-30  Richard Henderson  <rth@redhat.com>
13924         PR c/34993
13925         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
13926         for unbounded arrays.
13928 2008-01-30  Silvius Rus  <rus@google.com>
13930         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
13932 2008-01-30  Jan Hubicka  <jh@suse.cz>
13934         PR target/34982
13935         * i386.c (init_cumulative_args): Use real function declaration when
13936         calling locally.
13938 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
13940         PR rtl-optimization/34998
13941         * global.c (build_insn_chain): Treat non-subreg_lowpart
13942         SUBREGs of pseudos as clobbering all the words covered by the
13943         SUBREG, not just all the bytes.
13944         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
13945         original df_ref rather than an extract parameter.
13946         (global_conflicts): Update call accordingly.
13948 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
13950         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
13951         the overflow check to make it easier to read.
13952         (__fixtfdi): Change the type of the ll member in union
13953         long_double to UDItype_x.
13955 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
13957         PR middle-end/34969
13958         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
13959         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
13960         * tree-inline.c (fold_marked_statements): Call
13961         cgraph_update_edges_for_call_stmt if folding a call statement.
13962         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
13963         debug_generic_stmt calls, reset it back afterwards.
13965         PR c/35017
13966         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
13967         static decls.
13968         * c-typeck.c (build_external_ref): Don't pedwarn about
13969         static vars in current function's scope.
13971 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
13973         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
13975 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
13977         PR c/35002
13978         * ipa-struct-reorg.c: Fix spelling.
13979         * params.def: Ditto.
13981 2008-01-29  Richard Guenther  <rguenther@suse.de>
13983         PR middle-end/35006
13984         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
13985         field.
13986         * tree-inline.c (remap_type): Increment remapping_type_depth
13987         around remapping types.
13988         (copy_body_r): Only add referenced variables if they are referenced
13989         from code, not types.
13991 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
13993         PR c++/34055
13994         PR c++/34103
13995         PR c++/34219
13996         PR c++/34606
13997         PR c++/34753
13998         PR c++/34754
13999         PR c++/34755
14000         PR c++/34919
14001         PR c++/34961
14002         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14003         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14005 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
14007         PR target/34412
14008         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
14009         pointer for tiny stack.
14011 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
14013         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14015 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
14017         * config/vx-common.h: Fix typo in comment.
14019 2008-01-28  Ian Lance Taylor  <iant@google.com>
14021         PR c++/34862
14022         PR c++/33407
14023         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14024         coalesce pointers if they have different DECL_NO_TBAA_P values.
14025         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14026         between variables with different DECL_NO_TBAA_P values.
14028 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
14030         PR 31535
14031         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14032         are not legitimate small data references on SPE targets.
14034 2008-01-28  David Daney  <ddaney@avtrex.com>
14036         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14038 2008-01-28  David Daney  <ddaney@avtrex.com>
14040         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
14042 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
14044         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14045         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14046         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14047         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14048         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14049         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
14050         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
14051         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
14053 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14055         * basic-block.h (condjump_equiv_p): Fix comment.
14057 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14059         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
14060         print_generic_stmt_indented): Fix comment.
14062 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
14064         * configure.ac (__stack_chk_fail): Add detecion for availability
14065         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
14066         * configure: Regenerate.
14068 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
14070         PR middle-end/34688
14071         * final.c (output_addr_const): Handle TRUNCATE.
14073 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
14075         PR target/34711
14076         * tree-ssa-loop-ivopts.c (comp_cost): New type.
14077         (zero_cost, infinite_cost): New constants.
14078         (struct cost_pair): Change type of cost to comp_cost.
14079         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
14080         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
14081         New functions.
14082         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
14083         split_address_cost, ptr_difference_cost, difference_cost,
14084         get_computation_cost_at, get_computation_cost,
14085         determine_use_iv_cost_generic, determine_use_iv_cost_address,
14086         determine_use_iv_cost_condition, determine_use_iv_costs,
14087         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14088         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14089         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14090         Change type of cost to comp_cost.
14091         (determine_iv_cost): Increase cost of non-original ivs, instead
14092         of decreasing the cost of original ones.
14093         (get_address_cost): Indicate the complexity of the addressing mode 
14094         in comp_cost.
14095         (try_add_cand_for): Prefer using ivs not specific to some object.
14096         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14098 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
14099             Janis Johnson  <janis187@us.ibm.com>
14101         PR target/34814
14102         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14103         (TARGET_INSTANTIATE_DECLS): Likewise.
14104         * target.h (expand_to_rtl_hook): New target hook.
14105         (instantiate_decls): Likewise.
14106         * function.c (instantiate_decl): Make non-static.  Rename to...
14107         (instantiate_decl_rtl): ... this.
14108         (instantiate_expr): Use instantiate_decl_rtl.
14109         (instantiate_decls_1): Likewise.
14110         (instantiate_decls): Likewise.
14111         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14112         * function.h (instantiate_decl_rtl): Add prototype.
14113         * cfgexpand.c (target.h): New include.
14114         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14115         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14116         (TARGET_INSTANTIATE_DECLS): Likewise.
14117         (TARGET_INITIALIZER): New target hooks added.
14118         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14119         New prototype.
14120         * config/rs6000/rs6000.c (tree-flow.h): New include.
14121         (machine_function): Add sdmode_stack_slot field.
14122         (rs6000_alloc_sdmode_stack_slot): New function.
14123         (rs6000_instantiate_decls): Likewise.
14124         (rs6000_secondary_memory_needed_rtx): Likewise.
14125         (rs6000_check_sdmode): Likewise.
14126         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14127         (TARGET_INSTANTIATE_DECLS): Likewise.
14128         (rs6000_hard_regno_mode_ok): Allow SDmode.
14129         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
14130         (rs6000_emit_move): Handle SDmode.
14131         (function_arg_advance): Likewise.
14132         (function_arg): Likewise.
14133         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
14134         SDmode var args for 32-bit compiles.
14135         (rs6000_secondary_reload_class): Handle SDmode.
14136         (rs6000_output_function_epilogue): Likewise.
14137         (rs6000_function_value): Simplify if statement.
14138         (rs6000_libcall_value): Likewise.
14139         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14140         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14141         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14142         (movsd_hardfloat): New define_insn.
14143         (movsd_softfloat): Likewise.
14144         (movsd_store): Likewise.
14145         (movsd_load): Likewise.
14146         (extendsddd2): Likewise.
14147         (extendsdtd2): Likewise.
14148         (truncddsd2): Likewise.
14149         (movdd_hardfloat64): Fixup comment.
14150         (UNSPEC_MOVSD_LOAD): New constant.
14151         (UNSPEC_MOVSD_STORE): Likewise.
14153 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
14155         PR c++/34965
14156         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14157         TRUTH_XOR_EXPR.
14158         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14159         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14160         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14161         and TRUTH_XOR_EXPR.
14163 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
14165         PR target/34794
14166         * config.gcc: Separate AIX 5.3 from AIX 6.1.
14167         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14168         __LONGDOUBLE128 too.
14169         * config/rs6000/aix61.h: New file.
14171 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14173         PR rtl-optimization/34959
14174         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14175         popcount and parity rtxes the same mode as their operand.
14176         Truncate or extend the result to the return value's mode
14177         if necessary.
14179 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14181         PR target/34981
14182         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14183         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14184         to GOT_VERSION_REGNUM.
14185         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14186         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14187         * config/mips/mips.c (mips_emit_call_insn): New function.
14188         (mips_call_tls_get_addr): Call mips_expand_call directly.
14189         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14190         emit_call_insn.
14191         (mips16_build_call_stub): Likewise.  Return the call insn or null.
14192         (mips_expand_call): Update the call to mips16_build_call_stub
14193         accordingly and a remove redundant condition.  Assert that MIPS16
14194         stubs do not use lazy binding.  Use mips_emit_call_insn and return
14195         the call insn.
14196         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14197         TARGET_USE_GOT.
14198         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14199         (mips_avoid_hazard): Remove hazard_set handling.
14200         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14201         (UNSPEC_RESTORE_GP): ...this.
14202         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14203         (FAKE_CALL_REGNO): Rename to...
14204         (GOT_VERSION_REGNUM): ...this.
14205         (type): Add "ghost" value.  Add an associated insn reservation.
14206         (hazard_set): Remove.
14207         (exception_receiver): Rename to...
14208         (restore_gp): ...this and update the unspec identifier accordingly.
14209         (exception_receiver, nonlocal_got_receiver): New expanders.
14210         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
14211         FAKE_CALL_REGNO.  Remove hazard_set attribute.
14212         (set_got_version, update_got_version): New patterns.
14214 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
14216         PR target/34970
14217         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14219 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14221         PR other/31955
14222         * doc/install.texi2html: Generate gcc-vers.texi.
14224 2008-01-25  DJ Delorie  <dj@redhat.com>
14226         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14228 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14230         * config/c4x: Remove directory.
14231         * config.gcc (crx-*, mt-*): Mark obsolete.
14232         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14233         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14234         sh-*-rtemscoff*): Remove cases.
14235         * defaults.h (C4X_FLOAT_FORMAT): Remove.
14236         * real.c (encode_c4x_single, decode_c4x_single,
14237         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14238         c4x_extended_format): Remove.
14239         * real.h (c4x_single_format, c4x_extended_format): Remove.
14240         * doc/extend.texi (interrupt, naked): Remove mention of attributes
14241         on C4x.
14242         (Pragmas): Remove comment about c4x pragmas.
14243         * doc/install.texi (c4x): Remove target-specific instructions.
14244         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14245         * doc/md.texi (Machine Constraints): Remove C4x documentation.
14246         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14247         refer to C4x source files as examples.
14248         (C4X_FLOAT_FORMAT): Remove documentation.
14250 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14252         * config/bfin/bfin.c (override_options): Reorder tests so that
14253         flag_pic gets enabled for -msep-data.
14255 2008-01-25  Richard Guenther  <rguenther@suse.de>
14257         PR middle-end/32244
14258         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14259         to its bitfield precision if required.
14261 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14263         PR middle-end/33880
14264         * tree-nested.c (walk_omp_for): New function.
14265         (convert_nonlocal_reference, convert_local_reference): Call
14266         walk_omp_for on OMP_FOR.
14267         (convert_call_expr): Call walk_body on OMP_FOR's
14268         OMP_FOR_PRE_INIT_BODY.
14270 2008-01-25  Richard Guenther  <rguenther@suse.de>
14272         PR tree-optimization/34966
14273         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14274         default defs and PHI_NODEs we have to insert after the
14275         defining statement.
14277 2008-01-24  Nick Clifton  <nickc@redhat.com>
14279         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14280         Provide a default definition.
14281         (LIBGCC2_UNITS_PER_WORD): Likewise.
14283         * config/stormy16/stormy16.c: Include df.h for the prototype
14284         for df_regs_ever_live_p.
14285         (xstormy16_expand_builtin_va_start): Convert the stack offset
14286         into a component_ref and then use POINTER_PLUS_EXPR to add it
14287         to the incoming_virtual_args_rtx.
14288         (xstormy16_gimplify_va_arg_expr): Rename to
14289         xstormy16_gimplify_va_arg_expr.
14290         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14291         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14292         xstormy16_gimplify_va_arg_expr.
14293         Fix up some formatting issues.
14295         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14296         Move to predicates.md.
14297         (xs_hi_general_operand): Likewise.
14298         (xs_hi_nonmemory_operand): Likewise.
14299         * config/stormy16/predicates.md:
14300         (xstormy16_carry_plus_operand): New predicate.
14301         (xs_hi_general_operand): New predicate.
14302         (xs_hi_nonmemory_operand): New predicate.
14303         * config/stormy16/stormy16-protos.h:
14304         (xstormy16_carry_plus_operand): Delete prototype.
14305         (xs_hi_general_operand): Likewise.
14306         (xs_hi_nonmemory_operand): Likewise.
14308         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14309         modifiers as they are no longer needed and they can trigger
14310         reload spill failures.
14312         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14313         with a match_operand in order to help reload.
14315         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14316         constraint with 'e' for the 8th alternative as this version of
14317         the mov.w instruction only accepts the lower 8 registers.
14319 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
14321         PR target/34856
14322         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14323         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14324         vector elements.
14326 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14328         PR middle-end/33333
14329         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14331 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14333         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14334         New functions.
14335         (remove_structure): Update allocations list before removing structure.
14336         
14337 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14339         * ipa-struct-reorg.c (is_safe_cond_expr, 
14340         create_new_stmts_for_cond_expr): Use integer_zerop function,
14341         that recognize not only zero-pointer, but zero-integer too.
14343 2008-01-25  Ben Elliston  <bje@au.ibm.com>
14345         PR other/22232
14346         * fixproto: Escape "." in sed expression that strips leading "./".
14348 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14350         PR driver/34904
14351         * gcc.c (SWITCH_OK): Removed.
14352         (SWITCH_LIVE): Changed to bit.
14353         (SWITCH_FALSE): Likewise.
14354         (SWITCH_IGNORE): Likewise.
14355         (switchstr): Change live_cond to unsigned int.
14356         (process_command): Replace SWITCH_OK with 0.
14357         (do_self_spec): Likewise.
14358         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14359         (give_switch): Likewise.
14360         (used_arg): Likewise.
14361         (do_spec_1): Set the SWITCH_IGNORE bit.
14362         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14363         bits.  Set the SWITCH_LIVE bit.
14365 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14367         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14369 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14371         PR tree-optimization/34472
14372         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14373         parameter to a "bool *" and set *DATA to false if there is
14374         an unsafe access.  Do not delete the structure here.
14375         (check_cond_exprs): Delete it here instead.
14376         (check_cond_exprs, exclude_cold_structs): Do not increase
14377         I when removing a structure.
14379 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
14381         PR target/34856
14382         * config/i386/i386.c (ix86_expand_vector_init): Consider only
14383         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14385 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
14387         PR middle-end/34934
14388         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14389         a fixed vector for stack.
14391 2008-01-24  Ben Elliston  <bje@au.ibm.com>
14393         PR c++/25701
14394         * doc/gcc.texi (Software development): Add a direntry for g++.
14395         
14396 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
14398         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14399         stale and straggling -fforce-addr comments above.
14401         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14402         define.
14403         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14404         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14406 2008-01-23  Michael Matz  <matz@suse.de>
14408         PR debug/34895
14409         * dwarf2out.c (force_type_die): Use modified_type_die instead of
14410         gen_type_die.
14412 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14414         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14415         malloc result type.
14417 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14419         * config/avr/avr.c (avr_current_arch): New variable.
14420         (avr_arch_types): Add 'avr31' and 'avr51' entries.
14421         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14422         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14423         (avr_override_options): Init 'avr_current_arch'. 
14424         (base_arch_s): Move from here...
14425         * config/avr/avr.h (base_arch_s): ... here. Add new members 
14426         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
14427         'mega' to 'have_jmp_call'.
14428         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
14429         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
14430         macros.
14431         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
14432         architectures.
14433         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
14434         MULTILIB_MATCHES): (Ditto.).
14436 2008-01-23  Richard Guenther  <rguenther@suse.de>
14438         PR middle-end/31529
14439         * cgraphunit.c (cgraph_reset_node): Always mark the node
14440         not reachable if it is not queued already.
14442 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14444         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14445         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14446         (cputype_selected): New static variable.
14447         (bfin_handle_option): Set it if -mcpu is used.
14448         (override_option): Select default set of workarounds if no cpu type
14449         selected on the command line.
14450         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14452         From  Michael Frysinger  <michael.frysinger@analog.com>
14453         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14454         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14456         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14457         for bf547, bf523, bf524, and bf526.
14458         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
14459         bf526.
14460         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14461         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14462         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14463         __ADSPBF547__ and __ADSPBF54x__ for bf547.
14464         * doc/invoke.texi (Blackfin Options): Document that
14465         -mcpu now accept bf547, bf523, bf524, and bf526.
14467 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14469         PR rtl-optimization/34628
14470         * combine.c (try_combine): Stop and undo after the first combination
14471         if an autoincrement side-effect on the first insn has effectively
14472         been lost.
14474 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
14476         PR target/34529
14477         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14478         Offset addresses are not valid for Altivec or paired float modes.
14480 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
14482         PR c++/34607
14483         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14484         if DECL_INITIAL (decl) is error_mark_node.
14486         PR c++/34914
14487         * c-common.c (handle_vector_size_attribute): Only allow
14488         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
14489         the same way as pointer, array etc. types.
14490         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14492         PR c++/34917
14493         * tree.c (build_type_attribute_qual_variant): Call
14494         build_qualified_type if attributes are equal, but quals are not.
14496 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14498         PR 32102
14499         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14500         * flags.h (warn_strict_aliasing): Remove.
14501         (warn_strict_overflow): Remove.
14502         * opts.c (warn_strict_aliasing): Remove.
14503         (warn_strict_overflow): Remove.
14504         * c-opts.c (c_common_handle_option): -Wall only sets
14505         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14506         (c_common_post_options): Give default values to -Wstrict-aliasing
14507         and -Wstrict-overflow if they are uninitialized.
14508         * common.opt (Wstrict-aliasing): Specify Var and Init.
14509         (Wstrict-overflow): Likewise.
14511 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14513         PR rtl-optimization/26854
14514         PR rtl-optimization/34400
14515         PR rtl-optimization/34884
14516         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14517         DF_RD->gen.
14518         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14519         (df_rd_bb_info.expanded_lr_out): Deleted
14520         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14521         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
14522         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14523         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14524         Removed code to allocate, initialize or free expanded_lr_out.
14525         (df_rd_bb_local_compute_process_def): Restructured to make more
14526         understandable.
14527         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14528         sets if the sets are being trimmed.
14530 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14532         PR bootstrap/32287
14533         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14534         (as_vers): Likewise.
14535         * configure: Regenerated.
14537 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14539         PR middle-end/33092
14540         * tree-pass.h (pass_build_alias): New pass.
14541         * tree-ssa-alias.c (gate_build_alias): New.
14542         (pass_build_alias): New.
14543         * passes.c (init_optimization_passes): Add pass_build_alias after
14544         pass_create_structure_vars.
14546 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
14548         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14549         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14550         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14551         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14552         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14553         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14554         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14555         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14556         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14557         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14558         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14559         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14560         * config/s390/s390.md (FP_ALL): New mode iterator.
14561         (_d): New mode attribute.
14562         ("*signbit<mode>2>"): Changed mode of first operand.
14563         ("isinf<mode>2"): Changed mode of first operand.
14564         ("*TDC_insn"): Adaptation for DFP modes.
14566 2008-01-22  Ben Elliston  <bje@au.ibm.com>
14568         * tree.c (check_qualified_type): Improve function description.
14570 2008-01-21  Jason Merrill  <jason@redhat.com>
14572         PR c++/34196
14573         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14574         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14575         if it is set.
14577 2008-01-21  DJ Delorie  <dj@redhat.com>
14579         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14580         return zero.
14582 2008-01-21  Richard Guenther  <rguenther@suse.de>
14584         PR middle-end/34856
14585         * tree-cfg.c (verify_expr): Allow all invariant expressions
14586         instead of just constant class ones as reference argument.
14587         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14588         like any other constant.
14589         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14591 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14593         * regmove.c (fixup_match_1): Update call crossed frequencies.
14595 2008-01-21  Richard Guenther  <rguenther@suse.de>
14597         PR c/34885
14598         * tree-inline.c (setup_one_parameter): Deal with mismatched
14599         types using a VIEW_CONVERT_EXPR.
14601 2008-01-21  Alon Dayan  <alond@il.ibm.com>
14602             Olga Golovanevsky  <olga@il.ibm.com>
14603         
14604         PR tree-optimization/34701
14605         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14606         when the structure size is not a power of 2.
14608 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14610         * doc/install.texi: Add doc for --enable-checking=df.
14611         
14612 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14614         PR rtl-optimization/34808
14615         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14617 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14619         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14620         input.
14622 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
14624         PR rtl-optimization/26854
14625         PR rtl-optimization/34400
14626         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14627         DF_RD->gen.
14628         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14629         (df_rd_bb_info.expanded_lr_out): New.
14630         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14631         * loop_iv.c (iv_analysis_loop_init): Ditto.
14632         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14633         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14634         Added code to allocate, initialize or free expanded_lr_out.
14635         (df_rd_bb_local_compute_process_def): Restructured to make
14636         more understandable.
14637         (df_rd_confluence_n): Add code to do nothing with fake edges and
14638         code to no apply invalidate_by_call sets if the sets are being trimmed.
14639         (df_lr_local_finalize): Renamed to df_lr_finalize.
14640         (df_live_local_finalize): Renamed to df_live_finalize.
14642 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14644         PR target/34831
14645         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14646         deciding whether to use reciprocal instructions.
14648 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
14650         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14651         dwarf2out_note_section_used if cold_text_section is NULL.
14653 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
14655         PR gcov-profile/34610
14656         * tree-cfg.c (make_edges): Mark both outgoing edges from
14657         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14658         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14659         from OMP_FOR and OMP_CONTINUE outgoing edges.
14661         * tree-profile.c (tree_profiling): Return early if
14662         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
14663         at the end.
14664         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14665         from cfun to child_cfun.
14666         * function.h (struct function): Add after_tree_profile bit.
14668 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14670         * config/avr/avr.S (_exit): Disable interrupt.
14672 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
14673             Steven Bosscher  <stevenb.gcc@gmail.com>
14675         PR rtl-optimization/26854
14676         PR rtl-optimization/34400
14677         * df-problems.c (df_live_scratch): New scratch bitmap.
14678         (df_live_alloc): Allocate df_live_scratch when doing df_live.
14679         (df_live_reset): Clear the proper bitmaps.
14680         (df_live_bb_local_compute): Only process the artificial defs once
14681         since the order is not important.
14682         (df_live_init): Init the df_live sets only with the variables
14683         found live by df_lr.
14684         (df_live_transfer_function): Use the df_lr sets to prune the
14685         df_live sets as they are being computed.  
14686         (df_live_free): Free df_live_scratch.
14688 2008-01-18  Ian Lance Taylor  <iant@google.com>
14690         * common.opt: Add fmerge-debug-strings.
14691         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14692         flag_merge_debug_strings rather than flag_merge_constants.
14693         * doc/invoke.texi (Option Summary): Mention
14694         -fmerge-debug-strings.
14695         (Debugging Options): Document -fmerge-debug-strings.
14697 2008-01-18  Ian Lance Taylor  <iant@google.com>
14699         PR c++/33407
14700         * tree.h (DECL_IS_OPERATOR_NEW): Define.
14701         (struct tree_function_decl): Add new field operator_new_flag.
14702         * tree-inline.c (expand_call_inline): When inlining a call to
14703         operator new, force the return value to go into a variable, and
14704         set DECL_NO_TBAA_P on that variable.
14705         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14707 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
14709         PR debug/34484
14710         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14711         DWARF2_DEBUGGING_INFO.
14712         (dwarf2out_note_section_used): Ditto.  Add prototype.
14713         (have_multiple_function_sections, text_section_used,
14714         cold_text_section_used, *cold_text_sections): Move declarations
14715         before their uses.
14717 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
14719         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14720         field and add signal_ra.
14721         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14722         assignments to frame state pc.  Move end of stack check after
14723         MD_FALLBACK_FRAME_STATE_FOR.
14724         (uw_update_context_1): Use frame state signal_regs if set, instead
14725         of checking signal_frame flag.
14726         (uw_update_context): Use frame state signal_ra if set.
14727         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14728         * config/xtensa/linux-unwind.h: New file.
14730 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
14732         * modulo-sched.c (get_sched_window): Fix comment typo.
14734 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
14736         PR tree-optimization/34648
14737         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14739 2008-01-17  Anatoly Sokolov <aesok@post.ru>
14741         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14742         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14744 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
14746         PR rtl-optimization/34400
14747         * df-core.c (df_worklist_dataflow_overeager,
14748         df_worklist_dataflow_doublequeue): New functions.
14749         (df_worklist_dataflow): Two different worklist solvers.
14750         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14751         New param.
14753 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14755         PR testsuite/34821
14756         * doc/invoke.texi: Document the dependence on pthread for fopenmp
14757         and ftree-parallelize-loops.
14759 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
14761         PR rtl-optimization/34826
14762         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14764 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14766         * global.c (find_reg): Mark the eh regs as used if necessary.
14767         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14768         * ra.h (struct allocno): no_eh_reg field added.  Changed
14769         no_stack_reg type to bitfield.
14771 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14773         * tree.c (substitute_in_expr): Add missing 'break'.
14775 2008-01-17  Richard Guenther  <rguenther@suse.de>
14777         PR tree-optimization/34825
14778         * tree-ssa-math-opts.c (is_division_by): Do not recognize
14779         x / x as division to handle.
14781 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14783         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14784         "-pthread" is specified.
14785         * pa-hpux11.h (LIB_SPEC): Likewise.
14787 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
14788             Peter Bergner  <bergner@vnet.ibm.com>
14790         PR rtl-optimization/33796
14791         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14793 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14795         PR libgfortran/34699
14796         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14797         static links.
14798         * pa-hpux10.h (LINK_SPEC): Likewise.
14799         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14801 2008-01-16  Richard Guenther  <rguenther@suse.de>
14803         PR middle-end/32628
14804         * fold-const.c (fold_convert_const_int_from_int): Do not
14805         set overflow if that occured only because of a sign extension
14806         change when converting from/to a sizetype with the same
14807         precision and signedness.
14809 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14811         PR debug/34249
14812         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14813         location address to the correct place.  Update copyright year.
14815 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14817         * lambda-code.c (lambda_transform_legal_p): Handle the case of
14818         no dependences in the dependence_relations vector.
14820 2008-01-16  Jan Hubicka  <jh@suse.cz>
14822         PR rtl-optimization/31396
14823         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14824         * cfg.c (dump_reg_info): Print it.
14825         * regs.h (struct reg_info_t): add freq_calls_crossed.
14826         (REG_FREQ_CALLS_CROSSED): New macro.
14827         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14828         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14829         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14830         regmove_optimize): Update call crossed frequencies.
14831         * local-alloc.c (struct qty): Add freq_calls_crossed.
14832         (alloc_qty): Copute freq_calls_crossed.
14833         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14834         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14835         * ra.h (struct allocno): Add freq_calls_crossed.
14837 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14839         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14840         libgomp when compiling with ftree-parallelize-loops.
14841         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14843 2008-01-16  Richard Guenther  <rguenther@suse.de>
14845         PR tree-optimization/34769
14846         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14847         * tree.c (int_cst_value): Instead make this function more
14848         permissive in what it accepts as valid input.  Document this
14849         function always sign-extends the value.
14851 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
14852             Richard Guenther  <rguenther@suse.de>
14854         PR c/34668
14855         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14856         (gimple_fold_indirect_ref_rhs): ... this.
14857         (gimple_fold_indirect_ref): New function with foldings
14858         that preserve lvalueness.
14859         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14860         * tree-flow.h (gimple_fold_indirect_ref): Declare.
14861         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14862         to fold an INDIRECT_REF, fall back to the old use of
14863         fold_indirect_ref_1.
14865 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14867         * tree-data-ref.c (subscript_dependence_tester_1): Call 
14868         free_conflict_function.
14869         (compute_self_dependence): Same.
14871 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14873         PR debug/34249
14874         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14875         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
14876         function global.
14877         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14878         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14879         for DWARF2_UNWIND_INFO targets.
14881 2008-01-16  Richard Guenther  <rguenther@suse.de>
14883         PR c/34768
14884         * c-typeck.c (common_pointer_type): Do not merge inconsistent
14885         type qualifiers for function types.
14887 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14889         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14890         loop_iterator li from previous commit.
14892 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14894         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14896 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14898         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14899         (parallelize_loops): Don't parallelize irreducible components.
14901 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14903         PR c++/24924
14904         * c-opts (c_common_post_options): Do not enable CPP
14905         flag_pedantic_errors by default.
14906         
14907 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
14909         PR rtl-optimization/31944
14910         * cse.c (remove_pseudo_from_table): New function.
14911         (merge_equiv_classes): Use above function to remove pseudo-registers.
14912         (invalidate): Likewise.
14914 2008-01-13  Richard Guenther  <rguenther@suse.de>
14916         PR middle-end/34601
14917         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
14918         instead of TYPE_MODE to deal with calls from expand_one_error_var.
14920 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
14922         * gcse.c (cprop_jump): Call validate_unshare_change instead of
14923         validate_change to unshare the source of the PC set.
14925 2008-01-12  Jan Hubicka  <jh@suse.cz>
14927         PR middle-end/32135
14928         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
14929         references above array bounds.  This might trigger bounds checks for
14930         pointers to arrays.
14932 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14934         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
14935         new_replaceable_dependencies.
14937 2008-01-12  Doug Kwan  <dougkwan@google.com>
14939         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
14940         instead of OPT_Wreturn_type in warning due to ignored return type
14941         qualifiers.
14942         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
14943         options included in -Wextra.
14944         * c.opt: New option -Wignored_qualifiers.
14945         * doc/invoke.texi (Warning Options, -Wextra): Add new option
14946         -Wignore_qualifiers.
14947         (-Wignored-qualifiers): Document.
14948         (-Wreturn-type): Remove description of functionality now handled
14949         by -Wignored-qualifiers.
14951 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
14953         PR ada/33788
14954         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
14955         NOP_EXPR if it is between integral types with the same precision.
14957 2008-01-12  Jan Hubicka  <jh@suse.cz>
14959         PR other/28023
14960         * invoke.texi (max-inline-recursive-depth): Fix default value.
14962 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
14964         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
14965         correct type.
14967 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
14968         
14969         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
14970         
14971 2008-01-11  James E. Wilson  <wilson@specifix.com>
14973         PR target/26015
14974         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
14976 2008-01-11  Anatoly Sokolov <aesok@post.ru>
14978         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
14979         save/restore frame pointer register and don't use 'call-prologues' 
14980         optimization in function with "OS_task" attribute.
14982 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14984         PR middle-end/31309
14985         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
14986         when copying to memory.
14988 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
14990         PR rtl-optimization/30905
14991         * cfgcleanup.c: Include dce.h
14992         (crossjumps_occured): New global variable.
14993         (try_crossjump_bb): Exit loop after finding a fallthru edge.
14994         If something changed, set crossjumps_occured to true.
14995         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
14996         Don't add/remove fake edges to exit here...
14997         (cleanup_cfg): ...but do it here, when crossjumping.
14998         Run a fast DCE when successful crossjumps occured in the latest
14999         iteration of try_optimize_cfg.
15001 2008-01-11  Richard Guenther  <rguenther@suse.de>
15003         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15004         (struct vn_unary_op_s): Likewise.
15005         (vn_reference_insert): Free old reference on hash collision.
15007 2008-01-10  Raksit Ashok  <raksit@google.com>
15009         PR rtl-optimization/27971
15010         * combine.c (find_split_point): Split PLUS expressions which are
15011         inside a MEM rtx, and whose first operand is complex.
15013 2008-01-10  DJ Delorie  <dj@redhat.com>
15015         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15016         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15017         (m32c_hard_regno_ok): Call the underlying function.
15019 2008-01-10  Richard Guenther  <rguenther@suse.de>
15021         PR middle-end/34683
15022         * tree-cfg.c (tree_merge_blocks): Do not go through the
15023         full-blown folding and stmt updating path if we just deal
15024         with virtual operands.
15025         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15026         test for abnormal SSA_NAMEs.
15028 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
15030         PR middle-end/34641
15031         * reload.c (push_reload): Add assertions.  All constants from
15032         reg_equiv_constant should have been used for replacing the respective
15033         pseudo earlier.
15034         (find_reloads_address): Invoke find_reloads_address_part for
15035         constant taken from the reg_equiv_constant array.
15037 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
15039         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15040         field (valnum) the first in the struct.  Replace bools with
15041         unit bit fields.
15043 2008-01-10  Richard Guenther  <rguenther@suse.de>
15045         PR tree-optimization/34651
15046         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
15047         types and ordering for masking and converting.
15049 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
15051         PR tree-optimization/34017
15052         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
15053         also for PHI_NODE expressions.
15055 2008-01-09  Jan Hubicka  <jh@suse.cz>
15057         PR tree-optimization/34708
15058         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
15059         based on number of case labels.
15060         (init_inline_once): Remove switch_cost.
15061         * tree-inline.h (eni_weights_d): Remove switch_cost.
15063 2008-01-09  Richard Guenther  <rguenther@suse.de>
15064         Andrew Pinski  <andrew_pinski@playstation.sony.com>
15066         PR middle-end/30132
15067         * gimplify.c (gimplify_cond_expr): Do not create an addressable
15068         temporary if an rvalue is ok or an lvalue is not required.
15070 2008-01-09  Richard Guenther  <rguenther@suse.de>
15072         PR middle-end/34458
15073         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
15074         adjust return type.
15076 2008-01-09  Richard Guenther  <rguenther@suse.de>
15078         PR middle-end/34679
15079         * tree.c (host_integerp): Check for sizetype only if the
15080         type is an integer type.
15082 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
15084         PR debug/26364
15085         * opts.c (decode_options): Disable inlining of functions called
15086         once if not in unit-at-a-time mode.
15088 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
15090         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15092 2008-01-08  Richard Guenther  <rguenther@suse.de>
15094         PR middle-end/31863
15095         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15096         out early if the result will be unused.
15098 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15100         PR target/34709
15101         Revert:
15103         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15104         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15105         for TARGET_RECIP.       
15106         
15107 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
15108         
15109         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15110         for vectorization tuned.
15111         
15112 2008-01-08  Richard Guenther  <rguenther@suse.de>
15114         PR tree-optimization/34683
15115         * tree-ssa-operands.c (operand_build_cmp): Export.
15116         * tree-ssa-operands.h (operand_build_cmp): Declare.
15117         * tree-vn.c (vuses_compare): Remove.
15118         (sort_vuses): Use operand_build_cmp.
15119         (sort_vuses_heap): Likewise.
15120         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15121         to re-use old VEC if available.  Do not sort already sorted VUSEs.
15122         (vdefs_to_vec): Do not sort already sorted VDEFs.
15124 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
15126         PR middle-end/34694
15127         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15129 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15131         PR target/34702
15132         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15133         limitations of reciprocal sequences on x86 targets.
15135 2008-01-08  Richard Guenther  <rguenther@suse.de>
15137         PR tree-optimization/34683
15138         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15140 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
15142         PR target/34622
15143         * config/darwin.c (darwin_mergeable_string_section): Don't use
15144         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15146 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
15148         PR target/34682
15149         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15150         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
15151         predicates of op0 and op1 to register_operand.
15152         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
15153         expander using X87MODEF mode iterator.  Change predicates of
15154         op0 and op1 to register_operand.
15155         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15156         corresponding patterns and macroize using MODEF macro.  Change
15157         predicates of op0 and op1 to register_operand and remove
15158         "m" constraint. Disparage "r" alternative with "!".
15159         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15160         macroize using X87MODEF macro.  Change predicates of op0 and op1
15161         to register_operand and remove "m" constraint.  Disparage "r"
15162         alternative with "!".
15163         (absneg splitter with memory operands): Remove.
15164         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15165         patterns and macroize using X87MODEF mode iterator.
15166         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15167         Change predicate of op1 to register_operand.
15168         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15169         for memory operands.
15171 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
15173         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15175 2008-01-07  Richard Guenther  <rguenther@suse.de>
15177         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15178         fields.
15180 2008-01-07  Richard Guenther  <rguenther@suse.de>
15182         PR tree-optimization/34683
15183         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15184         VOPs of the needed size to save memory.  Use VEC_quick_push
15185         to save compile-time.
15186         (vdefs_to_vec): Likewise.
15188 2008-01-07  Sa Liu  <saliu@de.ibm.com>
15190         * config/spu/spu.md (divdf3): Genetate inline code for double
15191         division.  The implementation doesn't handle INF or NAN, therefore it
15192         only applies when -ffinite-math-only is given.
15194 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
15196         PR libstdc++/34680
15197         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15198         * doc/cpp.texi ([Common Predefined Macros]): Document.
15200 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
15202         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15203         order to use commutative addition instead of subtraction.
15205 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15206             Mircea Namolaru  <namolaru@il.ibm.com>
15207             Vladimir Yanovsky  <yanov@il.ibm.com>
15208             Revital Eres  <eres@il.ibm.com>
15210         PR tree-optimization/34263
15211         * tree-outof-ssa.c (process_single_block_loop_latch,
15212         contains_tree_r): New functions.
15213         (analyze_edges_for_bb): Call process_single_block_loop_latch
15214         function to empty single-basic-block latch block if possible.
15216 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15218         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15219         for TARGET_RECIP.
15220         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15222 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15224         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15226 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15228         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15230 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
15232         PR tree-optimization/34618
15233         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15234         flag from T.
15236 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15238         PR target/34673
15239         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15240         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
15241         Update copyright year.
15243         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15244         Update copyright year.
15245         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15246         using NR fixup.
15248 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
15250         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15251         edge does not point to current bb before changing need_assert.
15253 2008-01-04  Richard Guenther  <rguenther@suse.de>
15255         PR middle-end/34029
15256         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15257         for verifying purposes if they are is_gimple_min_invariant.
15259 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
15261         PR tree-optimization/34448
15262         PR tree-optimization/34465
15263         * gimplify.c (gimplify_init_constructor): Add new parameter
15264         notify_temp_creation.  Use it.
15265         (gimplify_modify_expr_rhs): Take volatiles into account when
15266         optimizing constructors.
15267         Do not optimize constructors if gimplify_init_constructor will dump to
15268         memory.
15269         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15270         * gcc.c-torture/compile/pr34448.c: New.
15272 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
15274         PR gcov-profile/34609
15275         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15276         return_slot if result is TREE_ADDRESSABLE.
15278 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
15280         * config/mips/mips.md (sqrt_condition): Tweak comment.
15281         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
15283 2008-01-03  Tom Tromey  <tromey@redhat.com>
15285         PR c/34457
15286         * c-common.c (c_type_hash): Handle VLAs.
15288 2008-01-03  Jan Hubicka  <jh@suse.cz>
15290         PR tree-optimization/31081
15291         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15292         0 when inlining and not inlining to first basic block.
15293         (remap_decl): When var is initialized to 0, don't set default_def.
15294         (expand_call_inline): Set entry_bb.
15295         * tree-inline.h (copy_body_data): Add entry_bb.
15297 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15299         PR c++/34619
15300         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15301         before returning.
15303         PR tree-optimization/29484
15304         * tree-inline.c (inline_forbidden_p_2): New function.
15305         (inline_forbidden_p): Disallow inlining if some static var
15306         has an address of a local LABEL_DECL in its initializer.
15307         * doc/extend.texi (Labels as Values): Document &&foo behaviour
15308         vs. inlining.
15310 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15312         PR tree-optimization/34635
15313         * tree-data-ref.c (add_other_self_distances): Make sure that the
15314         evolution step is constant.
15316 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15318         PR middle-end/34608
15319         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15321 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
15323         * tree-sra.c (scalarize_init): Insert the generate_element_init
15324         statements after the generate_element_zero statements.
15326 2008-01-02  Richard Guenther  <rguenther@suse.de>
15328         PR middle-end/34093
15329         PR middle-end/31976
15330         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15331         for very large number of operands instead of ICEing.
15333 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
15335         PR target/34013
15336         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15337         while stack probing.
15339 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
15341         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15342         in C++0x mode.
15344 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
15346         PR libmudflap/26442
15347         * tree-mudflap.c (mx_register_decls): Guard warning by
15348         !DECL_ARTIFICIAL check.
15350 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
15352         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15353         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15354         sse5_perm<mode>): Fix constraints.