* collect2.c (scan_prog_file, COFF version): Use CONST_CAST
[official-gcc.git] / gcc / ChangeLog
blob08dffb0122feda0fafcaa80ae892792e7787598e
1 2008-07-16  Olivier Hainque  <hainque@adacore.com>
3         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
4         instead of bare conversion to cast const-ness away.
6 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
8         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
9         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
10         * config/xtensa/xtensa.c (xtensa_function_value): New function.
11         (TARGET_FUNCTION_VALUE): Define.
13 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
15         * config/rs6000/rs6000.c (processor_target_table): Add
16         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
18 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
20         PR target/36827
21         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
22         (m32c_legitimate_address_p): Handle "++rii" addresses created by
23         m32c_legitimize_reload_address.
25 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
27        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
28        DECL_IN_SYSTEM_HEADER in sync.
30 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
32         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
33         * tree-ssa-pre.c (pre_expr_eq): Ditto
34         (get_constant_for_value_id): Take a type as an argument.
35         (fully_constant_expression): Pass in type.
36         (find_or_generate_expression): Short circuit constant case.
37         (create_expression_by_pieces): Remove special casing of
38         pointer_plus.
39         (do_regular_insertion): Short circuit constant case.
40         (do_partial_partial_insertion): Ditto.
42 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
44         PR target/36782
45         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
47 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
48         
49         * config/xtensa/libgcc-xtensa.ver: New file.
50         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
51         
52 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
54         * df-problems.c (df_set_note): Avoid C++ keywords.
55         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
56         * dse.c (record_store, remove_useless_values): Likewise.
57         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
58         gen_reg_rtx_offset, operand_subword, change_address_1,
59         change_address, adjust_address_1, offset_address,
60         widen_memory_access, emit_copy_of_insn_after): Likewise.
61         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
62         * fwprop.c (should_replace_address, propagate_rtx_1,
63         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
64         Likewise.
65         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
66         gcse_emit_move_after, update_ld_motion_stores): Likewise.
67         * lcm.c (compute_insert_delete, pre_edge_lcm,
68         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
69         * lower-subreg.c (resolve_reg_notes): Likewise.
70         * mode-switching.c (optimize_mode_switching): Likewise.
72 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
74         * bt-load.c (add_btr_def, migrate_btr_def,
75         branch_target_load_optimize): Avoid C++ keywords.
76         * caller-save.c (insert_restore, insert_save, insert_one_insn):
77         Likewise.
78         * combine.c (subst, simplify_set, make_extraction,
79         make_compound_operation, known_cond, simplify_shift_const_1):
80         Likewise.
81         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
82         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1):
83         Likewise.
85 2008-07-15  Richard Guenther  <rguenther@suse.de>
87         PR middle-end/36369
88         * c-common.c (strict_aliasing_warning): Do not warn for
89         TYPE_REF_CAN_ALIAS_ALL pointers.
90         (c_common_get_alias_set): may_alias types are not special.
91         * tree.c (build_pointer_type_for_mode): Look up the may_alias
92         attribute and set can_ref_all accordingly.
93         (build_reference_type_for_mode): Likewise.
94         * doc/extend.texi (may_alias): Clarify.
96 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
98         PR target/36780
99         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
100         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
102 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
104         PR target/31568
105         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
106         gcc_assert, instead call output_operand_lossage.
108 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
110         * builtins.c (std_canonical_va_list): Treat structure based
111         va_list types.
113 2008-07-15  Ben Elliston  <bje@au.ibm.com>
115         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
117 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
119         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
120         is set.
122 2008-07-14  Jan Hubicka  <jh@suse.cz>
124         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
125         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
126         fix predicates and constraints.
127         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
128         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
130 2008-07-14  Doug Kwan  <dougkwan@google.com>
132         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
133         additional option file arm/eabi.opt.
134         * config/arm/eabi.h (File): New configuration file for EABI targets.
135         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
136         SUBSUBTARGET_EXTRA_SPECS.
137         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
138         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
139         from STARTFILE_SPEC so that it can be referenced in an override.
140         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
141         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
142         can be referenced in an override.
143         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
144         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
145         so that it can be referenced in an override.
146         (LINK_SPEC): Use BPABI_LINK_SPEC.
147         * config/arm/eabi.opt (File): New.
149 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
151         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
152         (FIXED_VALUE_H): New variable.
153         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
154         input.h, fixed-value.h.
155         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
156         (BASIC_BLOCK_H): Use $(BITMAP_H).
157         (FUNCTION_H): Add varray.h.
158         (IPA_REFERENCE_H): Use $(BITMAP_H).
159         (CGRAPH_H): Add $(BASIC_BLOCK_H).
160         (DF_H): Use $(BITMAP_H).
161         (GGC_H): Add statistics.h.
162         (INSN_ADDR_H): New.
163         (INSN_ATTR_H): Use it.
164         (SYSTEM_H): Add safe-ctype.h, filenames.h.
165         (INPUT_H): New.
166         (SYMTAB_H): Add $(OBSTACK_H).
167         (CPP_INTERNAL_H): New.
168         (TREE_DUMP_H): Add tree-pass.h.
169         (TREE_FLOW_H): Use $(BITMAP_H)
170         (PRETTY_PRINT_H): Use $(INPUT_H).
171         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
172         (GSTAB_H): New.
173         (BITMAP_H): New.
174         (many object files): Fix lots of header dependencies throughout.
176 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
178         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
179         New macros.
180         (s-gtyp-input): Use them to write tmp-gi.list.
181         (echo_to_gi.list): Remove.
183 2008-07-14  Richard Guenther  <rguenther@suse.de>
185         * tree-ssa-sccvn.c (pre_info): Remove.
186         (switch_to_PRE_table): Likewise.
187         (free_scc_vn): Do not clear SSA_NAME_VALUE.
188         Do not free pre_info.
189         (set_hashtable_value_ids): Do not create value-ids for the
190         optimistic tables.
191         (run_scc_vn): Remove double test.  Remove bogus special-case
192         in value-number printing.
193         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
194         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
195         SSA_NAME_VALUE.
196         * tree-flow-inline.h (get_value_handle): Remove.
197         * tree-flow.h (get_value_handle): Remove.
199 2008-07-14  Martin Jambor  <mjambor@suse.cz>
201         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
202         in which we generate arithmetics is not a subrange.
204 2008-07-14  Martin Jambor  <mjambor@suse.cz>
206         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
208 2008-07-14  Richard Guenther  <rguenther@suse.de>
210         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call
211         convert.
213 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
215         PR target/36745
216         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
217         reload for symbol refs moved to r0 with -fPIC.
218         (legitimize_pic_address): Use the target register as temporary
219         reg if possible.
220         (emit_symbolic_move): Adjust comment.
221         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
222         New expanders.
224 2008-07-14  Ben Elliston  <bje@au.ibm.com>
226         * c-common.h (C_CPP_HASHNODE): New macro.
227         * coretypes.h (struct cpp_token): Forward declare.
228         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
229         the context-sensitive keyword method.
230         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
231         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
232         expand_bool_pixel): New.
233         (altivec_categorize_keyword): New function.
234         (init_vector_keywords): New function.
235         (rs6000_macro_to_expand): Likewise.
236         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
237         compiling an ISO C dialect.
239 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
241         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert
242         calls.
243         (create_expression_by_pieces): Fix typo.
244         (do_regular_insertion): Use debug counter here too.
246 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
248         PR target/35492.
249         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
250         CONST_OK_FOR_LETTER_P.  All port-local users changed.
251         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
252         implement Kp matching power-of-two.
253         (CONSTRAINT_LEN): Define to match.
254         * config/cris/cris.md: Replace all use of constraint K with Kc.
255         ("*btst*): Use Kp for operand 0 of last alternative.
257 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
259         PR testsuite/36440
260         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
261         and quad formats.
263 2008-07-13  Jan Hubicka  <jh@suse.cz>
265         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
266         to be mangled too.
268 2008-07-13  Richard Guenther  <rguenther@suse.de>
270         PR middle-end/36811
271         * langhooks.c (lhd_print_error_function): Deal with recursive
272         BLOCK trees.
274 2008-07-12  Jan Hubicka  <jh@suse.cz>
276         * cgraph.c (assembler_name_hash): New static var.
277         (hash_node_by_assembler_name, eq_assembler_name): New.
278         (cgraph_node_for_asm): Use hashtable.
279         (cgraph_remove_node): Maintain hashtable.
280         (change_decl_assembler_name): Sanity check that names are not changing
281         after aliasing was processed.
282         * cgraph.h (varpoon_node): Add next GGC marker.
283         * tree.c (decl_assembler_name_equal): Constify.
284         (decl_assembler_name_hash): New.
285         * tree.h (decl_assembler_name_equal): Constify.
286         (decl_assembler_name_hash): Update.
288 2008-07-12  David Daney  <ddaney@avtrex.com>
290         * config/mips/driver-native.c (host_detect_local_cpu): Handle
291         sb1 and r5000 cpus.
293 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
295         * doc/md.texi: Document the MIPS "v" constraint.
296         * config/mips/mips.h (reg_class): Revert last change.
297         (REG_CLASS_NAMES): Likewise.
298         (REG_CLASS_CONTENTS): Likewise.
299         * config/mips/mips.c (mips_regno_to_class): Likewise.
300         * config/mips/constraints.md (v): Likewise, but add documentation.
301         Add a comment to say that this constraint should not be used in
302         gcc code.
304 2008-07-11  DJ Delorie  <dj@redhat.com>
306         * config/h8300/h8300.md (length): Fix branch offset limit.
308 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
310         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
311         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
312         (avr_hard_regno_scratch_ok): New function.
313         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
314         * config/avr/avr.md (all peepholes that request a scratch register):
315         Remove avr_peep2_scratch_safe use.
317 2008-07-11  Tom Tromey  <tromey@redhat.com>
318             Ian Lance Taylor  <iant@google.com>
320         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
321         (struct c_common_resword): Define.
322         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
323         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
324         (c_common_reswords, num_c_common_reswords): Declare.
325         * c-common.c (c_common_reswords): New global const array.
326         (num_c_common_reswords): New const int.
327         * c-parser.c (struct resword, reswords): Don't define.
328         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
329         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
330         than reswords.  If warning about C++ keywords, give them a special
331         RID code.
332         (c_lex_one_token): Warn about C++ keywords.  Call
333         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
334         (c_parser_external_declaration): Look for RID_xxx rather than
335         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
336         (c_parser_statement_after_labels): Likewise.
337         (c_parser_objc_class_instance_variables): Likewise.
338         (c_parser_objc_class_declaration): Likewise.
339         (c_parser_objc_try_catch_statement): Likewise.
340         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
341         (declspecs_add_type): Likewise.
343 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
345         * ggc-page.c (alloc_page):
346         Substituting xmalloc, xcalloc with
347         XNEWVEC and XCNEWVAR macros which add the
348         needed casts.
350 2008-07-11  Richard Guenther  <rguenther@suse.de>
352         PR tree-optimization/36765
353         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
354         aliases from HEAP vars to SMTs.
356 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
358         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
359         * configure.ac (loose_warn): Move -Wc++-compat from here...
360         (strict_warn): ...to here.
361         * configure: Regenerate.
363 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
365         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
366         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
367         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
368         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
369         excluding more specific h8300-*-* and sh-*-* targets.
371 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
373         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert
374         calls.
375         (eliminate): Ditto.
376         (execute_pre): Call loop_optimizer_finalize in early exit.
378 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
380         PR middle-end/36790
381         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
382         uids in the bitmap, not just VAR_DECL uids.
384         PR rtl-optimization/36419
385         * combine-stack-adj.c (adjust_frame_related_expr): New function.
386         (combine_stack_adjustments_for_block): Call it if needed.  Delete
387         correct insn.
388         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
389         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
390         prologue sp adjustment.
392 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
394         PR other/28322
395         * opts.c (print_ignored_options): Report postponed diagnostics for
396         unknown -Wno-* options as warnings, not errors.
397         (postpone_unknown_option_error): Renamed to...
398         (postpone_unknown_option_warning): ... this.
400 2008-07-09  Doug Kwan  <dougkwan@google.com>
402         Revert:
403         2008-07-08  Doug Kwan  <dougkwan@google.com>
405         * config/arm/arm.opt (mandroid): New option.
406         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
407         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
408         (CC1_SPEC): Same.
409         (CC1PLUS_SPEC): Same.
410         (LIB_SPEC): Same.
411         (STARTFILE_SPEC): Same.
412         (ENDFILE_SPEC): Same.
413         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
414         used.
416 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
418         PR target/35802
419         * config/mips/mips.h (reg_class): Remove V1_REG.
420         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
421         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
422         instead of V1_REGS.
423         (mips_get_tp): New function.
424         (mips_legitimize_tls_address): Use it.
425         * config/mips/constraints.md (v): Delete.
426         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
427         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
428         After reload, split into a move and ...
429         (*tls_get_tp_<mode>_split): ...this new instruction.
431 2008-07-09  David Daney  <ddaney@avtrex.com>
433         * config/mips/driver-native.c: Include coretypes.h and tm.h.
435 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
437         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
438         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
439         Add c argument.
440         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
441         htab_delete should be called.  Don't free c.
442         (lookup_tmp_var): Create temp_htab lazily.
443         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
444         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
445         callers.
446         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
447         lower_omp_ordered, lower_omp_critical, lower_omp_for,
448         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
449         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
450         * tree-sra.c (generate_element_init): Likewise.
451         * tree-mudflap.c (execute_mudflap_function_ops,
452         execute_mudflap_function_decls): Likewise.
453         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
454         * tree-gimple.h (struct gimplify_ctx): New type.
455         (push_gimplify_context): Adjust prototype.
457 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
459         * tree-ssa-pre.c (phi_translate_1): Update placement of
460         add_to_value calls.
462 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
464         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
465         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
466         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
467         * targhooks.c (default_hard_regno_scratch_ok): New function.
468         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
469         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
470         * recog.c:  Include "target.h".
471         (peep2_find_free_register): Add check for global regs. Add target
472         specific check.
473         * Makefile.in (recog.o): Depend on target.h.
475 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
477         * config/sh/sh.c (sh_canonical_va_list_type): New.
478         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
480 2008-07-09  Raksit Ashok <raksit@google.com>
482         * doc/invoke.texi (Option Summary): Mention new option
483         -Wdisallowed-function-list=...
484         (Warning Options): Document -Wdisallowed-function-list=...
485         * common.opt (Wdisallowed-function-list=): New flag.
486         * flags.h (warn_disallowed_functions): External definition of new
487         boolean warning flag.
488         (warn_if_disallowed_function_p): Declare new function.
489         * opts.c (warning_disallowed_functions): New static variable.
490         (warn_disallowed_functions): New boolean warning flag.
491         (warn_if_disallowed_function_p): New function.
492         (add_comma_separated_to_vector): Rename
493         add_instrument_functions_exclude_list to this.
494         (common_handle_option): Handle new option. Rename calls to
495         add_instrument_functions_exclude_list into calls to
496         add_comma_separated_to_vector.
497         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
498         based on flag warn_disallowed_functions.
500 2008-07-09  Christian Bruel  <christian.bruel@st.com>
502         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
503          instead of get_attr_length.
505 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
507         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
508         keywords.
509         * genemit.c (gen_insn): Likewise.
510         * gengtype.c (note_def_vec): Likewise.
511         * gengtype.h (note_def_vec): Likewise.
512         * genoutput.c (struct data, output_insn_data, process_template,
513         gen_expand, gen_split, note_constraint): Likewise.
514         * genrecog.c (new_decision, add_to_sequence, factor_tests,
515         make_insn_sequence): Likewise.
516         * gensupport.c (record_insn_name): Likewise.
518 2008-07-08  Doug Kwan  <dougkwan@google.com>
520         * config/arm/arm.opt (mandroid): New option.
521         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
522         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
523         (CC1_SPEC): Same.
524         (CC1PLUS_SPEC): Same.
525         (LIB_SPEC): Same.
526         (STARTFILE_SPEC): Same.
527         (ENDFILE_SPEC): Same.
528         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
529         used.
531 2008-07-08  Raksit Ashok  <raksit@google.com>
533         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
534         (set_storage_via_setmem): Fix expected_align parameter.
535         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
536         missing from the list.
537         * doc/md.texi (movmem): Explicitly state that expected alignment is
538         to be expressed in bytes.
539         (setmem): Explicitly state that expected alignment is to be expressed
540         in bytes.
542 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
544         * reload.c (find_reloads_subreg_address): Do not require validity
545         of address in original mode before reloading address.
547 2008-07-07  Tianwei Sheng  <tianweis@google.com>
549         * df-core.c (df_remove_problem): Adjust the access to avoid out of
550         bounds array access.
552 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
554         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
555         dst.
557 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
558         
559         Fix PR tree-optimization/23455
560         Fix PR tree-optimization/35286
561         Fix PR tree-optimization/35287
562         * Makefile.in (OBJS-common): Remove tree-vn.o.
563         tree-vn.o: Remove.
564         * dbgcnt.def: Add treepre_insert debug counter.
565         * gcc/tree-flow.h (add_to_value): Updated for other changes.
566         (debug_value_expressions): Ditto.
567         (print_value_expressions): Ditto.
568         * tree-pretty-print.c (dump_generic_node): Updated for
569         VALUE_HANDLE removal.
570         * tree-ssa-dom.c (record_equality): Ditto.
571         (cprop_operand): Ditto.
572         (lookup_avail_expr): Ditto.
573         * tree-ssa-threadedge.c
574         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
575         (simplify_control_stmt_condition): Ditto.
576         * tree.c (tree_code_size): Ditto.
577         (tree_node_structure): Ditto.
578         (iterative_hash_expr): Ditto.
579         * tree.def: Ditto.
580         * tree.h (VALUE_HANDLE_ID): Ditto.
581         (VALUE_HANDLE_EXPR_SET): Ditto.
582         (struct tree_value_handle): Ditto.
583         (union tree_node): Ditto.
584         * treestruct.def: Ditto.
585         * tree-vn.c: Removed.
586         * tree-ssa-pre.c: Rewritten entirely.
587         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
588         (constant_value_ids): Ditto.
589         (vn_nary_op_t): Moved to header.
590         (vn_phi_t): Ditto.
591         (vn_reference_op_t): Ditto
592         (vn_reference_t): Ditto.
593         (next_value_id): New variable.
594         (VN_INFO): Add an assert.
595         (vn_constant_eq): New function.
596         (vn_constant_hash): Ditto.
597         (get_or_alloc_constant_value_id): Ditto.
598         (value_id_constant_p): Ditto.
599         (vn_reference_compute_hash): De-staticify.
600         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
601         Disable some code with a FIXME.
602         Remove VALUE_HANDLE use.
603         (valueize_refs): Update opcode if it changes from ssa name to
604         constant.
605         (vn_reference_lookup_1): Add new argument.
606         (vn_reference_lookup):  Ditto.
607         (vn_reference_lookup_pieces): New function.
608         (vn_reference_insert): Add return type. Modify to deal with value
609         ids.
610         (vn_reference_insert_pieces):  New function.
611         (vn_nary_op_compute_hash): De-staticify.
612         (vn_nary_op_eq): Ditto.
613         (vn_nary_op_lookup_pieces): New function.
614         (vn_nary_op_lookup): Add new argument.  
615         (vn_nary_op_insert_pieces): New function.
616         (vn_nary_op_insert): Add return type. Modify to deal with value
617         ids.
618         (vn_phi_insert): Ditto.
619         (visit_unary_op): Update for callee changes.
620         (visit_binary_op): Ditto.
621         (visit_reference_op_load): Ditto.
622         (visit_reference_op_store): Ditto.
623         (init_scc_vn): Init next_value_id, constant_to_value_id and
624         constant_value_ids. 
625         (free_scc_vn): Free them.
626         (set_hashtable_value_ids): New function.
627         (run_scc_vn): Use it.
628         (get_max_value_id): New function.
629         (get_next_value_id): Ditto.
630         (expressions_equal_p): Moved from tree-vn.c
631         (sort_vuses): Ditto.
632         (sort_vuses_heap): Ditto.
633         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
634         above).
635         * tree.c (iterative_hash_hashval_t): Made non-static
636         * tree.h (iterative_hash_hashval_t): Declare it.
637         
638 2008-07-08  Martin Jambor  <mjambor@suse.cz>
640         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
641         instead of ipa_create_node_params.
642         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
643         ipa_check_create_edge_args, free them with
644         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
646         * ipa-prop.c: Include flags.h and tree-inline.h.
647         (ipa_node_params_vector): New variable.
648         (ipa_edge_args_vector): New variable.
649         (edge_removal_hook_holder): New variable.
650         (node_removal_hook_holder): New variable.
651         (edge_duplication_hook_holder): New variable.
652         (node_duplication_hook_holder): New variable.
653         (ipa_detect_param_modifications): Check for presence of modified flags.
654         (ipa_compute_jump_functions): Check for presence of jump functions.
655         (ipa_free_edge_args_substructures): New function.
656         (ipa_create_node_params): Removed.
657         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
658         (ipa_free_node_params_substructures): New function.
659         (ipa_free_all_node_params): Changed to deallocate the on-the-side
660         vector.
661         (ipa_edge_removal_hook): New function.
662         (ipa_node_removal_hook): New function.
663         (duplicate_array): New function.
664         (ipa_edge_duplication_hook): New function.
665         (ipa_node_duplication_hook): New function.
666         (ipa_register_cgraph_hooks): New function.
667         (ipa_unregister_cgraph_hooks): New function.
668         (free_all_ipa_structures_after_ipa_cp): New function.
669         
670         * ipa-prop.h: Include vec.h.
671         (ipa_node_params_t): New typedef with vector types for it.
672         (ipa_edge_args_t):  New typedef with vector types for it.
673         (IPA_NODE_REF): Changed to access an on-the-side vector.
674         (IPA_EDGE_REF): Changed to access an on-the-side vector.
675         (ipa_check_create_node_params): New function.
676         (ipa_check_create_edge_args): New function.
677         
678         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
679         all users.
680         
681 2008-07-07  Tom Tromey  <tromey@redhat.com>
683         * configure, config.in: Rebuilt.
684         * configure.ac: Don't check for scandir or alphasort.
686 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
688         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
689         types immediately after creating them.
691 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
693         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
695 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
697         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
698         dump_constraint_graph.
699         (dump_constraint_edge): New function.
700         (dump_constraint_graph): New function.
701         (debug_constraint_graph): New function.
702         (dump_constraint): Removed useless comparison.
703         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
704         (dump_constraint_graph): Declare.
705         (debug_constraint_graph): Declare.
706         * tree-dump.c (struct dump_option_value_info): Declare
707         TDF_GRAPH.
709 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
711         * config/i386/i386.c (is_va_list_char_pointer): New.
712         (ix86_va_start): Replace compare with ms_va_list_type_node
713         by is_va_list_char_pointer.
714         (ix86_gimplify_va_arg): Likewise.
716 2008-07-07  Martin Jambor  <mjambor@suse.cz>
718         * cgraph.c (cgraph_edge_max_uid): New variable.
719         (struct cgraph_edge_hook_list): New type.
720         (struct cgraph_node_hook_list): New type.
721         (struct cgraph_2edge_hook_list): New type.
722         (struct cgraph_2node_hook_list): New type.
723         (first_cgraph_edge_removal_hook): New variable.
724         (first_cgraph_node_removal_hook): New variable.
725         (first_cgraph_edge_duplicated_hook): New variable.
726         (first_cgraph_node_duplicated_hook): New variable.
727         (cgraph_add_edge_removal_hook): New function.
728         (cgraph_remove_edge_removal_hook): New function.
729         (cgraph_call_edge_removal_hooks):  New function.
730         (cgraph_add_node_removal_hook):  New function.
731         (cgraph_remove_node_removal_hook):  New function.
732         (cgraph_call_node_removal_hooks):  New function.
733         (cgraph_add_edge_duplication_hook):  New function.
734         (cgraph_remove_edge_duplication_hook):  New function.
735         (cgraph_call_edge_duplication_hooks):  New function.
736         (cgraph_add_node_duplication_hook):  New function.
737         (cgraph_remove_node_duplication_hook):  New function.
738         (cgraph_call_node_duplication_hooks):  New function.
739         (cgraph_create_edge): Assign to edge uid.
740         (cgraph_remove_edge): Call edge removal hooks.
741         (cgraph_node_remove_callees): Call edge removal hooks.
742         (cgraph_node_remove_callers): Call edge removal hooks.
743         (cgraph_remove_node): Call node removal hooks.
744         (cgraph_clone_edge): Call edge duplication hooks.
745         (cgraph_clone_node): Call node duplication hooks.
747         * cgraph.h (cgraph_edge): New field uid.
748         (cgraph_edge_hook): New type.
749         (cgraph_node_hook): New type.
750         (cgraph_2edge_hook): New type.
751         (cgraph_2node_hook): New type.
753 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
755         * config.in: Regenerate.
757 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
759         * gcc.c (print_sysroot): New.
760         (option_map, display_help, process_command): Handle the
761         -print-sysroot option.
762         (main): Print the sysroot if requested.
763         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
764         
765 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
767         PR target/34780
768         * unwind-pe.h (size_of_encoded_value): add attribute unused.
770 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
772         * function.c (assign_parm_remove_parallels): Check mode of
773         entry_parm.
774         (assign_parm_setup_block_p): Also check mode of entry_parm.
776 2008-07-07  Richard Guenther  <rguenther@suse.de>
778         * tree-ssa-structalias.h (set_used_smts): Remove.
779         * tree-ssa-structalias.c (used_smts): Likewise.
780         (set_used_smts): Likewise.
781         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
782         call to set_used_smts.
784 2008-07-07  Richard Guenther  <rguenther@suse.de>
786         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
787         (new_var_info): Set it to false.
788         (solution_set_add): Correctly handle pointers outside a var and
789         inside a field.
790         (type_safe): Treat variables with is_full_var properly.
791         (do_sd_constraint): Likewise.
792         (do_ds_constraint): Likewise.
793         (process_constraint): Remove zeroing offset for !use_field_sensitive.
794         (get_constraint_for_ptr_offset): New function.
795         (get_constraint_for_component_ref): For addresses at least include
796         the last field of the variable.  Handle is_full_vars properly.
797         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
798         (handle_ptr_arith): Remove.
799         (find_func_aliases): Simplify assignment handling.
800         (create_function_info_for): For parameter and result varinfos set
801         is_full_var flag.
802         (create_variable_info_for): Set is_full_var flag whenever we
803         just created a single varinfo for a decl.
804         (init_alias_vars): Initialize use_field_sensitive from
805         max-fields-for-field-sensitive parameter.
807 2008-07-07  Richard Guenther  <rguenther@suse.de>
809         PR tree-optimization/36713
810         * tree-flow-inline.h (is_call_used): New function.
811         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
812         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
813         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
815 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
817         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
818         
819 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
821         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
823 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
824             Nathan Sidwell  <nathan@codesourcery.com>
826         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
827         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
828         tmake_file.
829         * config/m68k/t-linux: New.
830         * doc/install.texi: Document m68k-*-linux is now multilibbed by
831         default.
833 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
835         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
836         * config/m68k/m68k-devices.def: Remove multilibs that only differ
837         by MAC/EMAC.
839 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
841         * gcc.c (execute): Fix -Wc++-compat warning.
843 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
845         PR target/36720
846         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
847         constant for little endian.
849 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
851         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
852         mips_base_mips16 instead of TARGET_MIPS16.
853         (mips_base_mips16): Declare.
854         * config/mips/mips.c (mips_base_mips16): Make global.
855         (was_mips16_p): Remove GTY marker.
856         (was_mips16_pch_p): New variable.
857         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
858         (mips_override_options): Force to non-MIPS16 mode initially.
859         Do not complain about MIPS16 PIC incompatibilities here.
860         Only allow -mgpopt if -mexplicit-relocs is in force for
861         non-MIPS16 code.
863 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
865         * configure.ac: Check for caddr_t, define to char * if not defined.
866         * configure: Regenerate.
867         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
868         (mmap_gt_pch_use_address): Likewise.
869         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
871 2008-07-06  Richard Guenther  <rguenther@suse.de>
873         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
874         (new_var_info): Deal with it.
875         (solution_set_add): Likewise.
876         (bitpos_of_field): Make signed, fix.
877         (struct fieldoff): Remove type and decl fields.  Make size field
878         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
879         flags.
880         (fieldoff_compare): Deal with it.
881         (push_fields_onto_fieldstack): Remove has_union argument, glob
882         adjacent non-pointer fields together.
883         (create_function_info_for): Do not set has_union.
884         (create_variable_info_for): Simplify.
886 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
888         * config.gcc (extra_headers): Add cross-stdarg.h for target
889         x86_64-*-* and i?86-*-*.
890         * config/i386/cross-stdarg.h: New.
891         * builtins.c (std_fn_abi_va_list): New.
892         (std_canonical_va_list_type): New.
893         (stabilize_va_list): Replace va_list_type_node use by
894         mtarget.canonical_va_list_type.
895         (gimplify_va_arg_expr): Likewise.
896         (expand_builtin_va_copy): Replace va_list_type_node use by
897         mtarget.fn_abi_va_list.
898         * tree-sra.c (is_va_list_type): New helper.
899         (decl_can_be_decomposed_p): Replace
900         va_list_type_node use by is_va_list_type.
901         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
902         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
903         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
904         * config/i386/i386-protos.h (ix86_get_valist_type): New.
905         (ix86_enum_va_list): New.
906         * config/i386/i386.c (sysv_va_list_type_node): New.
907         (ms_va_list_type_node): New.
908         (ix86_function_type_abi): Remove sorry.
909         (ix86_build_builtin_va_list_abi): New.
910         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
911         for 64-bit targets.
912         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
913         (ix86_init_builtins_va_builtins_abi): New.
914         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
915         for 64-bit targets.
916         (ix86_handle_abi_attribute): New.
917         (attribute_spec): Add sysv_abi and ms_abi.
918         (ix86_fn_abi_va_list): New.
919         (ix86_canonical_va_list_type): New.
920         (ix86_enum_va_list): New.
921         (TARGET_FN_ABI_VA_LIST): New.
922         (TARGET_CANONICAL_VA_LIST_TYPE): New.
923         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
924         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
925         (TARGET_CANONICAL_VA_LIST_TYPE): New.
926         (TARGET_ENUM_VA_LIST): New.
927         * expr.h (std_fn_abi_va_list): New.
928         (std_canonical_va_list_type): New.
929         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
930         (TARGET_CANONICAL_VA_LIST_TYPE): New.
931         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
932         TARGET_CANONICAL_VA_LIST_TYPE.
933         * target.h (struct gcc_target): Add fn_abi_va_list hook
934         and canonical_va_list_type hook.
936 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
938         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
939         integral and pointer types.
941 2008-07-04  Roger Sayle  <roger@eyesopen.com>
943         * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
944         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
946 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
948         PR target/36684
949         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
950         for PIC.
952 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
954         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
955         build_gimple_modify_stmt.
956         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
957         gimple operand.  Use fold_build* instead of build*.
959 2008-07-04  Richard Guenther  <rguenther@suse.de>
961         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
962         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
963         properly to compute the reachability set if we do field-sensitive PTA.
964         * invoke.texi (max-fields-for-field-sensitive): Document default.
965         * opts.c (decode_options): Set max-fields-for-field-sensitive to
966         100 for optimize >= 2.
968 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
970         * ggc-zone.c (lookup_page_table_if_allocated,
971         set_page_table_entry, zone_find_object_size, alloc_small_page,
972         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
973         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
974         -Wc++-compat and/or -Wcast-qual warnings.
976 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
978         PR target/36634
979         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
980         pic_offset_table_rtx to be marked as used here.
981         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
982         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
983         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
984         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
985         !TARGET_SECURE_PLT.
987 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
989         * alloc-pool.c (hash_descriptor, eq_descriptor,
990         alloc_pool_descriptor): Fix -Wc++-compat warnings.
991         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
992         Likewise.
993         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
994         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
995         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
996         Likewise.
997         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
998         Likewise.
1000 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1002         * tree-flow.h (loop_only_exit_p): Declare.
1003         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1004         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1005         the number of iterations if it is constant.  Otherwise, if this is the
1006         only possible exit of the loop, use the conservative estimate on the
1007         number of iterations of the entire loop if available.
1009 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
1011         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1012         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1013         Add synchronization functions.
1014         * config/sync.c: New file.
1015         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1016         (LIBGCC_SYNC_CFLAGS): Likewise.
1018 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
1020         PR target/36710
1021         * config/i386/i386.md (mode): Add TF to "mode" attribute.
1022         (*pushtf_sse): New insn pattern.
1023         (pushtf splitters): New splitters.
1025 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
1027         PR middle-end/35736
1028         * predict.c (build_predict_expr): Use void_type_node for the tree
1029         type, instead of NULL_TREE.
1031 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1033         * config/i386/i386.c (contains_aligned_value_p): Return true
1034         for TCmode.
1035         (ix86_data_alignment): Align TCmode to 128bits.
1036         (ix86_local_alignment): Likewise.
1038 2008-07-03  Andrew Haley  <aph@redhat.com>
1040         PR bootstrap/33304
1041         * vec.h (VEC_TA): New.
1042         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1043         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1044         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1045         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1046         (C_COMMON_FIXED_TYPES): Remove first arg.
1047         (C_COMMON_FIXED_MODE_TYPES): Likewise.
1048         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1049         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1050         not to use empty macro arguments.
1052 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
1054         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1055         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1056         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1057         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1058         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1059         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1060         config/ia64/crtn.asm, config/m68hc11/larith.asm,
1061         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1062         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1063         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1064         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1065         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1066         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1067         config/rs6000/e500crtres64gpr.asm,
1068         config/rs6000/e500crtres64gprctr.asm,
1069         config/rs6000/e500crtrest32gpr.asm,
1070         config/rs6000/e500crtrest64gpr.asm,
1071         config/rs6000/e500crtresx32gpr.asm,
1072         config/rs6000/e500crtresx64gpr.asm,
1073         config/rs6000/e500crtsav32gpr.asm,
1074         config/rs6000/e500crtsav64gpr.asm,
1075         config/rs6000/e500crtsav64gprctr.asm,
1076         config/rs6000/e500crtsavg32gpr.asm,
1077         config/rs6000/e500crtsavg64gpr.asm,
1078         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1079         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1080         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1081         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1082         config/sparc/sol2-cn.asm: Remove .file directives.
1084 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
1086         * resource.c (mark_referenced_resources): Look inside
1087         UNSPEC_VOLATILEs and ASM_INPUTs.
1089 2008-07-02  Ian Lance Taylor  <iant@google.com>
1091         * rtlanal.c (add_reg_note): New function.
1092         * rtl.h (add_reg_note): Declare.
1093         * auto-inc-dec.c (attempt_change): Use add_reg_note.
1094         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1095         * builtins.c (expand_builtin_longjmp): Likewise.
1096         (expand_builtin_nonlocal_goto): Likewise.
1097         * calls.c (emit_call_1, expand_call): Likewise.
1098         * cfgexpand.c (add_reg_br_prob_note): Likewise.
1099         * cfglayout.c (fixup_reorder_chain): Likewise.
1100         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1101         (commit_one_edge_insertion): Likewise.
1102         * combine.c (move_deaths, distribute_notes): Likewise.
1103         * df-problems.c (df_set_note): Likewise.
1104         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1105         (set_unique_reg_note): Likewise.
1106         (emit_copy_of_insn_after): Likewise.
1107         * expr.c (expand_expr_real): Likewise.
1108         * gcse.c (add_label_notes): Likewise.
1109         * haifa-sched.c (create_check_block_twin): Likewise.
1110         * jump.c (mark_jump_label_1): Likewise.
1111         * loop-doloop.c (add_test, doloop_modify): Likewise.
1112         * loop-unswitch.c (compare_and_jump_seq): Likewise.
1113         * lower-subreg.c (move_eh_region_note): Likewise.
1114         * optabs.c (emit_libcall_block): Likewise.
1115         * predict.c (predict_insn): Likewise.
1116         (combine_predictions_for_insn): Likewise.
1117         * recog.c (peephole2_optimize): Likewise.
1118         * regmove.c (try_auto_increment): Likewise.
1119         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1120         * reload.c (find_reloads): Likewise.
1121         * reload1.c (fixup_eh_region_note): Likewise.
1122         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1123         * reorg.c (delete_prior_computation): Likewise.
1124         (delete_computation, dbr_schedule): Likewise.
1125         * config/pa/pa.c (legitimize_pic_address): Likewise.
1126         * config/sh/sh.c (sh_reorg): Likewise.
1128 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1130         PR target/36669
1131         * config/libgcc-glibc.ver: Add %exclude.
1132         * config/m32r/libgcc-glibc.ver: Likwise.
1133         * config/s390/libgcc-glibc.ver: Likwise.
1134         * config/sh/libgcc-glibc.ver: Likwise.
1135         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1137         * config/i386/libgcc-glibc.ver: New.
1139         * config/i386/libgcc-x86_64-glibc.ver: Removed.
1141 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1143         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1144         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1145         i[34567]86-*-linux*, x86_64-*-linux*.  Add
1146         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1147         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1148         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
1149         i[34567]86-*-linux*, x86_64-*-linux*.
1151         * libgcc-std.ver: Add empty GCC_4.4.0.
1153         * mkmap-symver.awk: Support multiple versions per symbol.
1155         * config/i386/i386.c (ix86_init_builtins): Always define
1156         __builtin_fabsq and __builtin_copysignq with fallbacks.
1157         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1158         and __builtin_copysignq if SSE2 isn't available.
1160         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1161         (LIBGCC2_TF_CEXT): Likwise.
1162         (TF_SIZE): Likwise.
1164         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1166         * config/i386/sfp-machine.h: Moved to libgcc.
1168         * config/i386/sfp-machine.h: New.
1169         * config/i386/t-linux: Likwise.
1171         * config/i386/t-darwin: Remove softfp_wrap_start and
1172         softfp_wrap_end.
1173         * config/i386/t-darwin64: Likewise.
1175         * config/i386/t-fprules-softfp64: Renamed to ...
1176         * config/i386/t-fprules-softfp: This.
1178         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1179         and softfp_wrap_end.
1181 2008-07-02  Jason Merrill  <jason@redhat.com>
1183         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1185         * tree.c (ctor_to_list): New fn.
1186         * tree.h: Declare it.
1187         (CONSTRUCTOR_ELT): New macro.
1188         (CONSTRUCTOR_NELTS): New macro.
1190 2008-07-02  Richard Guenther  <rguenther@suse.de>
1192         * tree-ssa-structalias.c (struct variable_info): Reorder
1193         to fill padding on 64bit hosts.  Make collapsed_to an int.
1194         (get_varinfo_fc): Deal with that.
1195         (new_var_info): Likewise.
1196         (collapse_rest_of_var): Likewise.
1198 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
1200         * doc/install.texi (--enable-java-home): Document.
1201         (--enable-aot-compile-rpm): Likewise.
1202         (--with-arch-directory): Likewise.
1203         (--with-os-directory): Likewise.
1204         (--with-origin-name): Likewise.
1205         (--with-arch-suffix): Likewise.
1206         (--with-jvm-root-dir): Likewise.
1207         (--with-jvm-jar-dir): Likewise.
1208         (--with-python-dir): Likewise.
1210 2008-07-02  Richard Guenther  <rguenther@suse.de>
1212         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1213         from decls explicitly.  Merge operand checking from tuples.
1215 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1217         * tree-switch-conversion.c: Included timevar.h which I forgot before.
1218         
1219 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1221         * tree-switch-conversion.c: Included timevar.h
1222         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1224         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1226 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1228         * tree-switch-conversion.c: Corrected various comments and
1229         whitespace issues
1230         (build_constructors): Fixed minor formatting mistakes.
1232         * invoke.texi (Optimize Options): Corrected the
1233         switch-conversion-max-branch-ratio parameter.
1235 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
1237         * final.c (asm_insn_count): Return zero for an empty asm body.
1239 2008-07-02  Richard Guenther  <rguenther@suse.de>
1241         * bitmap.h (bitmap_set_bit): Return bool.
1242         (bitmap_clear_bit): Likewise.
1243         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
1244         write to the bitmap if it would.
1245         (bitmap_clear_bit): Likewise.
1246         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1247         bitmap_set_bit return value.
1248         (add_pred_graph_edge): Likewise.
1249         (add_graph_edge): Likewise.
1250         (do_sd_constraint): Likewise.
1251         (do_ds_constraint): Likewise.
1253 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1255         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1256         Fix -Wc++-compat and/or -Wcast-qual warnings.
1257         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1258         gen_regparm_prefix): Likewise.
1259         * vmsdbgout.c (write_modbeg, lookup_filename,
1260         vmsdbgout_source_line, vmsdbgout_init): Likewise.
1262 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1264         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1265         defaults.h definition apply.
1267 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1269         * function.c (assign_parm_remove_parallels): New.
1270         (assign_parm_setup_block_p): Do not return true for non-BLKmode
1271         PARALLELs.
1272         (assign_parm_setup_block): Do not handle them.
1273         (assign_parm_setup_reg, assign_parm_setup_stack): Call
1274         assign_parm_remove_parallels.
1276 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1278         * c-typeck.c (convert_for_assignment): Use
1279         vector_targets_convertible_p.
1280         * c-common.c (vector_targets_convertible_p): New.
1281         * c-common.h (vector_targets_convertible_p): New prototype.
1282         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1283         opaque_p_V2SI_type_node.
1285 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
1287         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1288         RFmode constants.
1290 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
1292         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1293         TFmode constants via two element DImode vector for hosts with
1294         HOST_BITS_PER_WIDE_INT < 64.
1295         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1296         also for HOST_BITS_PER_WIDE_INT < 64.
1298 2008-07-01  Richard Guenther  <rguenther@suse.de>
1300         PR tree-optimization/36666
1301         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1302         (get_constraint_exp_from_ssa_var): Split into ...
1303         (get_constraint_exp_for_temp): ... this ...
1304         (get_constraint_for_ssa_var): ... and that.
1305         Return constraint expressions for all touched sub-fields
1306         if the results address is not taken.
1307         (process_constraint): Remove assertion that aggregate
1308         assignments do not happen at this place.
1309         (get_constraint_for_component_ref): Add address_p argument.
1310         Return constraint expressions for all touched sub-fields
1311         if the results address is not taken.
1312         (do_deref): Use get_constraint_exp_for_temp.
1313         (get_constraint_for_1): Rename from ...
1314         (get_constraint_for): ... this.  Add the old function as wrapper.
1315         (do_structure_copy): Use get_constraint_for_1.
1317 2008-07-01  Martin Jambor  <mjambor@suse.cz>
1319         * Makefile.in (tree-switch-conversion.o): Add.
1320         (OBJS-common): Add tree-swtch-conversion.o.
1321         * passes.c (init_optimization_passes): Add pass_convert_switch.
1322         * tree-pass.h: (pass_convert_switch): Add.
1323         * tree-switch-conversion.c: New file.
1324         * gcc.dg/tree-ssa/cswtch.c: New testcase.
1325         * common.opt (ftree-cswtch): New option.
1326         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1327         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1328         * opts.c (decode_options): Set flag_tree_switch_conversion when
1329         optimization level is >= 2.
1330         * doc/invoke.texi (Optimize Options): Added description of
1331         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1333 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1335         * config/darwin-driver.c (darwin_default_min_version): Fix
1336         -Wc++-compat warnings.
1338 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
1340         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1341         of operand 0.
1343 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1345         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1346         
1347 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1349         PR rtl-optimization/34744
1350         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1351         (df_scan_free_internal): Free data structures not
1352         allocated in storage pools.
1353         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1354         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1355         df_scan_free_mws_vec.
1356         * dse.c (dse_step6): Free offset_map_p and offset_map_n
1357         unconditionally.
1359 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1361         * config/i386/i386.c (contains_aligned_value_p): Return true
1362         for __float128.
1363         (ix86_function_arg_boundary): Return its natural boundary
1364         for __float128.
1365         (return_in_memory_32): Don't check TDmode.
1366         (ix86_split_to_parts): Support splitting into 4 parts and
1367         support TFmode for 32bit target.
1368         (ix86_split_long_move): Support splitting into 4 parts.
1369         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1370         for SSE2.
1371         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1372         (ix86_init_builtins): Here.
1373         (ix86_scalar_mode_supported_p): Always return true for TFmode.
1374         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1375         'q' and 'w', respectively. 
1377         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1378         TARGET_64BIT.
1379         (movtf_internal): Likewise.
1380         (<code>tf2): Likewise.
1381         (*absnegtf2_sse): Likewise.
1382         (copysign<mode>3): Likewise.
1383         (copysign<mode>3_const): Likewise.
1384         (copysign<mode>3_var): Likewise.
1385         (define_split UNSPEC_COPYSIGN): Likewise.
1386         * config/i386/sse.md (*nandtf3): Likewise.
1387         (<code>tf3): Likewise.
1388         (*<code>tf3): Likewise.
1390 2008-06-30  Joey Ye  <joey.ye@intel.com>
1391             H.J. Lu  <hongjiu.lu@intel.com>
1393         * global.c (compute_regsets): Set frame_pointer_needed here.
1394         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1396 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1398         * doc/install.texi (specific): Expand Windows build notes.
1400 2008-06-30  Ira Rosen  <irar@il.ibm.com>
1402         PR tree-optimization/36648
1403         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1404         number of prolog iterations by step. Fix the comment.
1406 2008-06-30  Richard Guenther  <rguenther@suse.de>
1408         PR middle-end/36671
1409         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1410         handle calls from ECF_MALLOC functions.
1411         (handle_pure_call): ECF_MALLOC functions do not return
1412         call-used memory.
1413         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1415 2008-06-29  Andreas Schwab  <schwab@suse.de>
1417         * config/m68k/m68k.c (print_operand): Always print a float
1418         constant in hex.
1419         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1420         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1421         Remove macros.
1423         * config/rs6000/x-linux64: Remove never used file.
1425 2008-06-29  Richard Guenther  <rguenther@suse.de>
1427         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1428         prototype.
1429         (struct alias_info): Move ...
1430         * tree-ssa-alias.c: ... here.
1431         (update_alias_info): Declare.
1432         (compute_may_aliases): Call it.
1433         (update_alias_info): New function.
1434         * tree-ssa-structalias.c (update_alias_info): Move ...
1435         * tree-ssa-alias.c (update_alias_info_1): ... here.
1436         * tree-ssa-structalias.c (process_constraint_1): Remove
1437         unused from_call argument.  Rename to ...
1438         (process_constraint): ... this.  Delete old wrapper.
1439         (make_constraint_to): Adjust callers.
1440         (handle_const_call): Likewise.
1441         (handle_pure_call): Likewise.
1442         (init_base_vars): Likewise.
1443         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
1444         (find_func_aliases): We don't need structure copies for
1445         complex types.
1446         (make_constraint_from_anything): Remove.
1447         (create_variable_info_for): For globals make constraints
1448         from escaped, not from anything.
1449         (compute_points_to_sets): Do not call update_alias_info.
1450         (ipa_pta_execute): Use make_constraint_from.
1452 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1454         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1455         (bitmap.o-warn, dominance.o-warn): New.
1456         * configure.ac (cxx_compat_warn): Delete.
1457         (loose_warn): Add -Wcast-qual and -Wc++-compat.
1458         * system.h: Remove #pragma diagnostic for -Wcast-qual and
1459         -Wc++-compat.
1460         * configure: Regenerate.
1462         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1463         warnings.
1465 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1467         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1468         * df-scan.c (df_notes_rescan): Likewise.
1469         * ggc-page.c (set_page_table_entry): Likewise.
1470         * intl.c (gcc_gettext_width): Likewise.
1471         * varasm.c (get_unnamed_section, get_noswitch_section,
1472         get_section): Likewise.
1474 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
1476         * regrename.c (build_def_use): Don't copy RTX.
1478 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
1480         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1481         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
1482         punctuation.  Use @ref instead of @xref.
1483         (Function Names): Remove stray @display/@end display.
1484         (C++ Attributes): Use @ref instead of @xref.
1485         (Deprecated Features): Fix punctuation around @xref.
1486         (Backwards Compatibility): Likewise.
1487         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1489 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
1491         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1492         constants for E500 double.
1494 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1496         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1497         element type of const_vector.
1499 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
1501         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1502         Remove FLAGS_REG clobber from expander pattern.
1503         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1504         (anddi3, andsi3, andhi3, andqi3): Ditto.
1505         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1506         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1507         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1508         (ashlsi3, ashlhi3, ashlqi3): Ditto.
1509         (ashrsi3, ashrhi3, ashrqi3): Ditto.
1510         (lshrsi3, lshrhi3, lshrqi3): Ditto.
1511         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1512         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1514 2008-06-28  Richard Guenther  <rguenther@suse.de>
1516         * tree-ssa-structalias.c (callused_id, var_callused,
1517         callused_tree): Add.
1518         (handle_pure_call): New function.
1519         (find_func_aliases): Call it.
1520         (find_what_p_points_to): Handle the call-used set.
1521         (clobber_what_escaped): Likewise.
1522         (compute_call_used_vars): New function.
1523         (init_base_vars): Init the call-used variable.
1524         (do_sd_constraint): Do not propagate the solution from CALLUSED
1525         but use CALLUSED as a placeholder.
1526         (solve_graph): Likewise.
1527         * tree-flow-inline.h (gimple_call_used_vars): New function.
1528         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1529         (compute_call_used_vars): Declare.
1530         * tree-ssa-alias.c (set_initial_properties): Call
1531         compute_call_used_vars.
1532         (reset_alias_info): Clear call-used variables.
1533         (add_call_clobber_ops): Assert we are not called for const/pure
1534         functions.  Remove handling of them.
1535         (add_call_read_ops): Handle pure functions by adding the
1536         call-used set of variables as VUSEs.
1537         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1538         (delete_tree_ssa): Free it.
1539         * tree-dfa.c (remove_referenced_var): Clear the var from the
1540         call-used bitmap.
1542 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
1544         * tree.c (build_varargs_function_type_list): New.
1545         (build_function_type_list_1): New.
1546         (build_function_type_list): Use build_function_type_list_1.
1547         * tree.h (build_varargs_function_type_list): New.
1549 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1551         PR target/34856
1552         * config/spu/spu.c (spu_builtin_splats): Do not generate
1553         invalid CONST_VECTOR expressions.
1554         (spu_expand_vector_init): Likewise.
1556 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
1558         * optabs.c (libfunc_decls): New variable.
1559         (libfunc_decl_hash, libfunc_decl_eq): New functions.
1560         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1561         for the same function twice.
1563 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
1565         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1566         ix86_expand_binary_operator directly.
1567         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
1568         for operand 2.
1569         (*ashrti3_1): Ditto.
1570         (*lshrti3_1): Ditto.
1571         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1572         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1573         using only one splitter.  Conditionaly execute splitter before or
1574         after peephole2 pass.
1575         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1576         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
1577         Use only one alternative in asm template.
1578         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1579         in asm template.
1580         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1581         "J" operand constraint for operand 2.
1582         (*ashldi3_cconly_rex64): Ditto.
1583         (*ashrdi3_cmp_rex64): Ditto.
1584         (*ashrdi3_cconly_rex64): Ditto.
1585         (*lshrdi3_cmp_rex64): Ditto.
1586         (*lshrdi3_cconly_rex64): Ditto.
1587         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1588         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1589         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1590         gen_x86_shrd_1.
1592 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1594         * gimplify.c (omp_is_private): Don't return true if decl is not
1595         already private on #pragma omp for or #pragma omp parallel for.
1597         PR debug/36617
1598         * tree-cfg.c (struct move_stmt_d): Replace block field with
1599         orig_block and new_block fields.
1600         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1601         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1602         (move_block_to_fn): Replace vars_map and new_label_map arguments
1603         with struct move_stmt_d pointer.
1604         (replace_block_vars_by_duplicates): New function.
1605         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
1606         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
1607         all subblocks of ORIG_BLOCK to the new function.  Call
1608         replace_block_vars_by_duplicates.
1609         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1610         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1611         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
1612         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1613         (expand_omp): Temporarily set input_location to the location of
1614         region's controlling stmt.
1615         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1616         BIND_EXPR, push ctx->block_vars and gimplification vars into
1617         the BIND_EXPR and its block's BLOCK_VARS instead of directly
1618         into dest function.
1619         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1620         there are any BLOCK_VARS.
1621         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1622         OMP_PARALLEL or OMP_TASK stmt.
1623         (lower_omp): Save and restore input_location around the lower_omp_1
1624         call.
1626 2008-06-27  Richard Guenther  <rguenther@suse.de>
1628         PR tree-optimization/36400
1629         PR tree-optimization/36373
1630         PR tree-optimization/36344
1631         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1632         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1633         (update_alias_info): Remove call clobbering code.
1634         (make_constraint_to): New helper function.
1635         (make_escape_constraint): Likewise.
1636         (handle_rhs_call): Use it on all pointer containing arguments.
1637         Also mark the static chain escaped.
1638         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1639         instead of ANYTHING.
1640         (make_constraint_from): New helper split out from ...
1641         (make_constraint_from_anything): ... here.
1642         (find_func_aliases): Add constraints for escape sites.
1643         (intra_create_variable_infos): Make constraints from NONLOCAL
1644         for parameters.
1645         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1646         as ANYTHING.
1647         (clobber_what_p_points_to): Remove.
1648         (clobber_what_escaped): New function.
1649         (init_base_vars): Init NONLOCAL and ESCAPED.
1650         (do_sd_constraint): Do not propagate the solution from ESCAPED
1651         but use ESCAPED as a placeholder.
1652         (solve_graph): Likewise.
1653         * tree-flow.h (clobber_what_p_points_to): Remove.
1654         (clobber_what_escaped): Declare.
1655         * tree-ssa-alias.c (set_initial_properties): Call it.
1656         Remove code clobbering escaped pointers.
1658 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1660         * function.c (allocate_struct_function): Only allocate a unique
1661         funcdef_no if the decl is nonzero.
1663 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1665         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1666         * config/mips/mips.c (mips_split_const_insns): New function.
1667         * config/mips/mips.md (move_type): New attribute.
1668         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
1669         (dword_mode): New attribute.
1670         (type): Avoid long line.  Map "move_type"s to "type"s,
1671         choosing "multi" for doubleword moves if appropriate.
1672         Swap MTC/MFC comments to match their declaration order.
1673         (extended_mips16): Default to "yes" if "move_type" is "sll0",
1674         "type" is "branch" or "jal" is "direct".
1675         (length): Handle "extended_mips16" first.  Make the default
1676         "0" for "ghost" instructions.  Set the length from "move_type".
1677         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1678         of "type", with "sll0" for the register alternative.  Remove the
1679         "extended_mips16" attribute.
1680         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1681         of "type", with "shift_shift" for the register alternative.
1682         Remove the "length" attribute.
1683         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1684         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1685         of "type", with "andi" for the register alternative.
1686         (*zero_extendqihi2): Likewise.
1687         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1688         of "andi" instead of a "type" of "arith".
1689         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1690         instead of "type".
1691         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1692         (mov_<store>r, *mov<mode>_ra): Likewise.
1693         (extendsidi2): Use "move_type" instead of "type", with "move"
1694         for the register alternative.
1695         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1696         of "type", with "signext" for the register alternative.
1697         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1698         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1699         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1700         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1701         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1702         (unnamed branch insn): Likewise.
1703         (*movdi_gp32_fp64): Fold into...
1704         (*movdi_32bit): ...here.
1705         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1706         (*movdf_hardfloat): ...this new pattern.
1707         (*movdf_softfloat): Remove redundant FPR alternatives.
1708         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1709         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1710         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
1711         the "move" attribute.
1712         (*movdi_32bit): Use "move_type" instead of "type" and remove the
1713         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
1714         and "store" for COP loads and stores.
1715         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1716         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1717         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1718         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1719         (*movtf_mips16, *movv2sf): Likewise.
1720         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1721         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1722         (mfhc1<mode>): Use "move_type" instead of "move".
1723         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1724         (loadgp_blockage): Remove the "length" attribute.
1725         (blockage, set_got_version, update_got_version): Likewise.
1726         (call_internal): Remove the "extended_mips16" attribute.
1727         (call_value_internal, call_value_multiple_internal): Likewise.
1728         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1729         instead of "move".
1730         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1731         the "length" attribute.
1733 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1735         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1736         -Wcast-qual warnings.
1737         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1738         handle_pragma_pop_macro): Likewise.
1739         * collect2.c (resolve_lib_name): Likewise.
1740         * config/arc/arc.c (arc_init): Likewise.
1741         * config/arm/arm.c (neon_builtin_compare,
1742         locate_neon_builtin_icode): Likewise.
1743         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1744         * config/bfin/bfin.c (bfin_init_machine_status,
1745         bfin_optimize_loop): Likewise.
1746         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1747         * config/cris/cris.c (cris_init_expanders): Likewise.
1748         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1749         * config/darwin.c (machopic_indirection_eq,
1750         machopic_indirection_name, machopic_output_indirection): Likewise.
1751         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1752         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1753         frv_optimize_membar): Likewise.
1754         * config/i386/cygwin.h (mingw_scan,
1755         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1756         * config/i386/cygwin1.c (mingw_scan): Likewise.
1757         * config/i386/i386.c (machopic_output_stub): Likewise.
1758         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1759         i386_pe_unique_section): Likewise.
1760         * config/ia64/ia64.c (ia64_init_machine_status,
1761         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1762         Likewise.
1763         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1764         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1765         * config/m68k/m68k.c (m68k_handle_option,
1766         m68k_sched_md_init_global): Likewise.
1767         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1768         mcore_unique_section): Likewise.
1769         * config/mips/mips.c (mips_block_move_straight,
1770         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1771         Likewise.
1772         * config/mmix/mmix.c (mmix_init_machine_status,
1773         mmix_encode_section_info): Likewise.
1774         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1775         * config/rs6000/rs6000.c (rs6000_init_machine_status,
1776         print_operand_address, output_toc, redefine_groups,
1777         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1778         * config/s390/s390.c (s390_init_machine_status): Likewise.
1779         * config/score/score.c (score_block_move_straight,
1780         score_block_move_loop_body): Likewise.
1781         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1782         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1783         * emit-rtl.c (find_auto_inc): Likewise.
1784         * gcc.c (translate_options, process_command): Likewise.
1785         * reorg.c (dbr_schedule): Likewise.
1786         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1787         * xcoffout.c (xcoffout_declare_function): Likewise.
1789 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
1791         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1792         ipa-pta working again.
1794 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
1796         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1797         genautomata.
1799 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
1801         * config.gcc (powerpc*-*-*): Add new core e500mc.
1802         * config/rs6000/e500mc.md: New file.
1803         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1804         e500mc.
1805         (rs6000_override_options): Add e500mc case to
1806         processor_target_table. Altivec and Spe options not allowed
1807         with e500mc. Add isel instruction to e500mc by
1808         default. Initialize rs6000_cost for e500mc.
1809         (rs6000_issue_rate): Set issue rate for e500mc.
1810         * config/rs6000/rs6000.h (processor_type): Add
1811         PROCESSOR_PPCE500MC.
1812         (ASM_CPU_SPEC): Add e500mc.
1813         Set TARGET_ISEL to rs6000_isel.
1814         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1815         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1816         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1817         Include e500mc.md.
1818         * doc/invoke.texi: Add e500mc to list of cpus.
1820 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1822         PR c/34867
1823         * c-lex.c (lex_charconst): Initialize unsignedp.
1825 2008-06-27  Olivier Hainque  <hainque@adacore.com>
1827         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
1828         documented assumptions.
1830 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1832         * dwarf2out.c: Remove trailing white spaces.  Break long line
1833         in comments.
1835 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
1837         * libfuncs.h (LTI_synchronize): New libfunc_index.
1838         (synchronize_libfunc): Declare.
1839         * builtins.c (expand_builtin_synchronize): Consider using
1840         synchronize_libfunc before falling back on an asm blockage.
1841         * config/mips/mips.c: Include libfuncs.h
1842         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
1844 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
1846         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
1847         parameter.  Copy stack_reg to r11 where appropriate.
1848         (no_global_regs_above): Add gpr parameter.
1849         (rs6000_stack_info): Only add padding for SPE save area if we
1850         are saving SPE GPRs and CR.
1851         (saveres_routine_syms): New variable.
1852         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
1853         Define.
1854         (rs6000_savres_routine_sym): New function.
1855         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
1856         split out of...
1857         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
1858         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
1859         Tweak FPR out-of-line saving.
1860         (rs6000_make_savres_rtx): New function.
1861         (rs6000_use_multiple_p): New function.
1862         (rs6000_savres_strategy): New function.
1863         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
1864         out-of-line if appropriate.
1865         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
1866         if we are optimizing for size.
1867         (GP_SAVE_INLINE): Define.
1868         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
1869         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
1870         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
1871         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
1872         (*save_fpregs_<mode>): Add use of r11.
1873         (*restore_gpregs_<mode>): New insn.
1874         (*return_and_restore_gpregs_<mode>): New insn.
1875         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
1876         use r11.
1877         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
1878         (*restore_gpregs_spe): New insn.
1879         (*return_and_restore_gpregs_spe): New insn.
1880         * config/rs6000/predicates.md (save_world_operation): Fix check.
1882 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1884         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
1885         this point, so assert that.
1887 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1889         * cfganal.c: Include vec.h and vecprim.h.
1890         (compute_idf): Import from...
1891         * tree-into-ssa (compute_idf): ...here.
1892         * basic-block.h (compute_idf): Export.
1894 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
1896         * c-decl.c (merge_decls): Use !current_function_decl to check for
1897         extern declaration of C99 inline function being at file scope.
1899 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
1901         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
1903 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1905         * alias.c (record_alias_subset, init_alias_analysis): Fix
1906         -Wc++-compat and/or -Wcast-qual warnings.
1907         * attribs.c (lookup_attribute_spec): Likewise.
1908         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1909         copy_bb, connect_traces,
1910         find_rarely_executed_basic_blocks_and_cr): Likewise.
1911         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
1912         note_btr_set, migrate_btr_defs): Likewise.
1913         * builtins.c (result_vector, expand_builtin_memcpy,
1914         expand_builtin_mempcpy_args, expand_builtin_strncpy,
1915         builtin_memset_read_str, expand_builtin_printf,
1916         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
1917         Likewise.
1918         * caller-save.c (mark_set_regs): Likewise.
1919         * calls.c (expand_call, emit_library_call_value_1): Likewise.
1920         * cgraph.c (cgraph_edge): Likewise.
1921         * combine.c (likely_spilled_retval_1): Likewise.
1922         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
1923         htab_counts_entry_del, get_coverage_counts): Likewise.
1924         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
1925         new_cselib_val): Likewise.
1926         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
1927         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
1928         Likewise.
1929         * df-core.c (df_compact_blocks): Likewise.
1930         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
1931         * df-scan.c (df_grow_reg_info, df_ref_create,
1932         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
1933         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
1934         df_record_entry_block_defs, df_record_exit_block_uses,
1935         df_bb_verify): Likewise.
1936         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
1937         DF_REF_EXTRACT_MODE_CONST): New.
1938         * dominance.c (get_immediate_dominator, get_dominated_by,
1939         nearest_common_dominator, root_of_dom_tree,
1940         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
1941         -Wc++-compat and/or -Wcast-qual warnings.
1942         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
1943         record_store, replace_read, check_mem_read_rtx, scan_insn,
1944         dse_step1, dse_record_singleton_alias_set): Likewise.
1945         * dwarf2asm.c (dw2_force_const_mem): Likewise.
1947 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1949         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
1950         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
1951         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
1952         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
1953         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
1954         add_ranges_num, add_ranges_by_labels, file_info_cmp,
1955         file_name_acquire, output_file_names, add_const_value_attribute,
1956         premark_used_types_helper, file_table_eq, file_table_hash,
1957         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
1958         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
1959         -Wcast-qual warnings.
1960         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
1961         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
1962         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
1963         gen_reg_rtx, start_sequence, init_emit): Likewise.
1964         * et-forest.c (et_new_occ, et_new_tree): Likewise.
1965         * except.c (init_eh_for_function, gen_eh_region,
1966         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
1967         arh_to_landing_pad, arh_to_label, add_action_record,
1968         add_call_site, switch_to_exception_section): Likewise.
1969         * expmed.c (synth_mult): Likewise.
1970         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
1971         store_expr): Likewise.
1972         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
1973         Likewise.
1974         * function.c (assign_stack_temp_for_type,
1975         allocate_struct_function, match_asm_constraints_1): Likewise.
1976         * gcov-io.c (gcov_allocate): Likewise.
1977         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
1978         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
1979         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
1980         record_one_set, insert_expr_in_table, insert_set_in_table,
1981         dump_hash_table, compute_hash_table_work, alloc_hash_table,
1982         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
1983         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
1984         -Wcast-qual warnings.
1986 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1988         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
1989         -Wcast-qual warnings.
1990         * gcc.c (process_command): Likewise.
1991         * genattrtab.c (oballoc): Use XOBNEW.
1992         (oballocvec): Define.
1993         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
1994         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
1995         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
1996         -Wc++-compat and/or -Wcast-qual warnings.
1997         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
1998         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
1999         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2000         gen_presence_absence_set, gen_automaton, gen_regexp_el,
2001         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2002         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2003         add_excls, process_presence_absence_names,
2004         process_presence_absence_patterns, add_presence_absence,
2005         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2006         get_free_state, add_arc, get_free_automata_list_el,
2007         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2008         transform_3, cache_presence, create_ainsns, create_automata,
2009         create_state_ainsn_table, dfa_insn_code_enlarge,
2010         output_trans_func, output_min_issue_delay_func,
2011         output_dead_lock_func, output_reset_func,
2012         output_get_cpu_unit_code_func, output_dfa_start_func,
2013         expand_automata): Likewise.
2014         * genextract.c (gen_insn): Likewise.
2015         * gengtype-lex.l: Likewise.
2016         * gengtype.c (read_input_list, adjust_field_type,
2017         process_gc_options): Likewise.
2018         * genoutput.c (note_constraint): Likewise.
2019         * genpreds.c (mangle, add_constraint): Likewise.
2020         * genrecog.c (process_define_predicate, new_decision,
2021         add_to_sequence): Likewise.
2022         * gensupport.c (record_insn_name): Likewise.
2024 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2026         * config/i386/driver-i386.c (detect_caches_amd,
2027         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2028         and/or -Wcast-qual warnings.
2029         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2030         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2031         gt_pch_save): Likewise.
2032         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2033         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2034         * global.c (compute_regsets): Likewise.
2035         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2036         finish_graph_dump_file): Likewise.
2037         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2038         unlink_bb_notes): Likewise.
2039         * integrate.c (get_hard_reg_initial_val): Likewise.
2040         * ipa-prop.c (ipa_push_func_to_list): Likewise.
2041         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2042         * local-alloc.c (update_equiv_regs): Likewise.
2043         * loop-invariant.c (check_invariant_table_size,
2044         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2045         Likewise.
2046         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2047         altered_reg_used, mark_altered): Likewise.
2048         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2049         insert_var_expansion_initialization,
2050         combine_var_copies_in_loop_exit, apply_opt_in_copies,
2051         release_var_copies): Likewise.
2052         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2053         analyze_matrix_decl, add_allocation_site, analyze_transpose,
2054         analyze_accesses_for_phi_node, check_var_notmodified_p,
2055         check_allocation_function, find_sites_in_func,
2056         record_all_accesses_in_func, transform_access_sites,
2057         transform_allocation_sites): Likewise.
2058         * omp-low.c (new_omp_region, create_omp_child_function_name,
2059         check_omp_nesting_restrictions, check_combined_parallel,
2060         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2061         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2062         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2063         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2064         Likewise.
2065         * opts-common.c (prune_options): Likewise.
2066         * opts.c (add_input_filename, print_filtered_help,
2067         get_option_state): Likewise.
2068         * params.c (add_params): Likewise.
2069         * passes.c (set_pass_for_id, next_pass_1,
2070         do_per_function_toporder, pass_fini_dump_file): Likewise.
2071         * postreload.c (reload_cse_simplify_operands): Likewise.
2072         * predict.c (tree_predicted_by_p, tree_predict_edge,
2073         clear_bb_predictions, combine_predictions_for_bb): Likewise.
2075 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2077         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2078         warnings.
2079         * recog.c (check_asm_operands, validate_change_1): Likewise.
2080         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2081         subst_asm_stack_regs): Likewise.
2082         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2083         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2084         * regmove.c (reg_is_remote_constant_p): Likewise.
2085         * regrename.c (regrename_optimize, scan_rtx_reg,
2086         kill_clobbered_value, kill_set_value, kill_autoinc_value):
2087         Likewise.
2088         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2089         regstat_compute_calls_crossed): Likewise.
2090         * reload1.c (init_reload, new_insn_chain,
2091         has_nonexceptional_receiver, reload, copy_reloads,
2092         calculate_needs_all_insns, init_elim_table): Likewise.
2093         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2094         * rtl.c (shallow_copy_rtx_stat): Likewise.
2095         * rtlanal.c (parms_set): Likewise.
2096         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2097         sbitmap_resize, sbitmap_vector_alloc): Likewise.
2098         * sched-ebb.c (earliest_block_with_similiar_load,
2099         add_deps_for_risky_insns): Likewise.
2100         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2101         schedule_region): Likewise.
2102         * see.c (eq_descriptor_pre_extension,
2103         hash_descriptor_pre_extension, hash_del_pre_extension,
2104         eq_descriptor_properties, hash_descriptor_properties,
2105         hash_del_properties, see_seek_pre_extension_expr,
2106         see_initialize_data_structures, see_print_register_properties,
2107         see_print_pre_extension_expr, see_delete_merged_def_extension,
2108         see_delete_unmerged_def_extension, see_emit_use_extension,
2109         see_pre_delete_extension, see_map_extension, see_commit_changes,
2110         see_analyze_merged_def_local_prop,
2111         see_analyze_merged_def_local_prop,
2112         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2113         see_set_prop_merged_def, see_set_prop_unmerged_def,
2114         see_set_prop_unmerged_use, see_print_one_extension,
2115         see_merge_one_use_extension, see_merge_one_def_extension,
2116         see_store_reference_and_extension, see_update_uses_relevancy,
2117         see_update_defs_relevancy): Likewise.
2118         * statistics.c (hash_statistics_hash, hash_statistics_eq,
2119         hash_statistics_free, curr_statistics_hash): Likewise.
2120         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2121         expand_asm_operands, expand_return, case_bit_test_cmp,
2122         expand_case): Likewise.
2123         * stor-layout.c (start_record_layout): Likewise.
2124         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2125         gt_pch_save_stringpool): Likewise.
2126         * tree-data-ref.c (hash_stmt_vertex_info,
2127         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2128         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2130 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
2132         PR target/36627
2133         * config/i386/i386.md : Change constraints of HImode and QImode
2134         immediate operands from "i" to "n".  Change SImode "ni" constraint to
2135         "i" and SImode "rmi" constraint to "g".  Remove all constraints
2136         from const0_operand and const1_operand predicated operands.
2137         (i): Change QImode and HImode attribute from "i" to "n".
2138         (*subqi_2): Change HImode operands to QImode.
2139         (*subqi_3): Ditto.
2141 2008-06-25  Olivier Hainque  <hainque@adacore.com>
2143         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2144         sed substitutions.
2146 2008-06-25  Richard Guenther  <rguenther@suse.de>
2148         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2149         not overflow the result type.
2151 2008-06-25  Richard Guenther  <rguenther@suse.de>
2153         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2154         (vn_lookup): Likewise.
2156 2008-06-25  Richard Guenther  <rguenther@suse.de>
2158         PR tree-optimization/35518
2159         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2160         * tree-sra.c (instantiate_element): Use fold_build3 to build
2161         BIT_FIELD_REFs.
2162         (try_instantiate_multiple_fields): Likewise.
2164 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2166         * config/rs6000/rs6000.md: Change all string instruction's clobber to
2167         be early clobbers.
2169 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2171         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2172         use_backchain_to_restore_sp to true
2173         if the offset of the link register save area would go over the 32k - 1
2174         offset limit of the load
2175         instructions.
2177 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2179         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2180         anchor for the type-punning blurb.  Cross-reference "Structures
2181         unions enumerations and bit-fields implementation".  Provide a
2182         cast-through-pointer example.  Make final sentence self-contained.
2183         * doc/implement-c.texi (Structures unions enumerations and
2184         bit-fields implementation): Cross-reference the type-punning blurb
2185         in the -fstrict-aliasing documentation.
2187 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2189         PR middle-end/36594
2190         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2191         the memory instead of the memory itself for the save area.
2193 2008-06-24  Olivier Hainque  <hainque@adacore.com>
2194             Nicolas Roche  <roche@adacore.com>
2196         * gengtype.c (srcdir_len): size_t instead of int.
2197         (get_file_realbasename): New function.  For F a filename, the real
2198         basename of F, with all the path components stripped.
2199         (get_file_srcdir_relative_path): New function.  For F a filename, the
2200         relative path to F from $(srcdir).
2201         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2202         get_file_realbasename.  Adjust the head comment.
2203         (get_prefix_langdir_index): New function. For F a filename, return the
2204         lang_dir_names[] relative index of the language directory that is
2205         a prefix in F.
2206         (get_file_langdir): For F a filename, return the name of the language
2207         directory where F is located.
2208         (get_file_gtfilename): New function. The gt- output file name for an
2209         input filename F.
2210         (get_output_file_with_visibility): Replace in-line computations with
2211         uses of get_file_gtfilename and get_prefix_langdir_index.
2212         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2214 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
2216         PR tree-optimization/36504
2217         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2218         references without base address.
2220 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2222         PR middle-end/36584
2223         * calls.c (expand_call): Increase alignment for recursive functions.
2225 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
2227         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2228         (TARGET_FUNCTION_VALUE): New define.
2229         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2230         * config/avr/avr.h (FUNCTION_VALUE): Remove.
2232 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2234         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2235         (fmod<mode>3): Ditto.
2236         (remainderxf3): Ditto.
2237         (remainder<mode>3): Ditto.
2239 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
2241         PR target/36533
2242         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2243         REG is a hard register.
2245         PR tree-optimization/36508
2246         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2247         499, don't check it at all in release compilers.
2249 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2251         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2252         together with SSE_TARGET_MATH to disable insn pattern.
2253         (*fop_<MODEF:mode>_2_i387): Ditto.
2254         (*fop_<MODEF:mode>_3_i387): Ditto.
2256 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
2258         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2259         
2260 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2262         PR middle-end/34906
2263         * gimplify.c (gimplify_asm_expr): Check the return code of
2264         parse_output_constraint call, set function return and is_inout
2265         value if it failed.
2267 2008-06-22  Ian Lance Taylor  <iant@google.com>
2269         * c-lex.c (narrowest_unsigned_type): Change itk to int.
2270         (narrowest_signed_type): Likewise.
2271         * c-typeck.c (c_common_type): Change local variable mclass to enum
2272         mode_class, twice.
2273         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2274         tcc_comparison, not the tree code itself.
2275         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2276         (c_expand_expr): Cast modifier to enum expand_modifier.
2277         * c-common.h (C_RID_CODE): Add casts.
2278         (C_SET_RID_CODE): Define.
2279         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2280         (c_lex_one_token): Add cast to avoid warning.
2281         (c_parser_objc_type_name): Rename local typename to type_name.
2282         (check_no_duplicate_clause): Change code parameter to enum
2283         omp_clause_code.
2284         (c_parser_omp_var_list_parens): Change kind parameter to enum
2285         omp_clause_code.
2286         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2287         c_parser_omp_list_var_parens.
2288         (c_parser_omp_threadprivate): Likewise.
2289         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2290         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2291         * c-format.c (NO_FMT): Define.
2292         (printf_length_specs): Use NO_FMT.
2293         (asm_fprintf_length_specs): Likewise.
2294         (gcc_diag_length_specs): Likewise.
2295         (scanf_length_specs): Likewise.
2296         (strfmon_length_specs): Likewise.
2297         (gcc_gfc_length_specs): Likewise.
2298         (printf_flag_specs): Change 0 to STD_C89.
2299         (asm_fprintf_flag_specs): Likewise.
2300         (gcc_diag_flag_specs): Likewise.
2301         (gcc_cxxdiag_flag_specs): Likewise.
2302         (scanf_flag_specs): Likewise.
2303         (strftime_flag_specs): Likewise.
2304         (strfmon_flag_specs): Likewise.
2305         (print_char_table): Likewise.
2306         (asm_fprintf_char_table): Likewise.
2307         (gcc_diag_char_table): Likewise.
2308         (gcc_tdiag_char_table): Likewise.
2309         (gcc_cdiag_char_table): Likewise.
2310         (gcc_cxxdiag_char_table): Likewise.
2311         (gcc_gfc_char_table): Likewise.
2312         (scan_char_table): Likewise.
2313         (time_char_table): Likewis.
2314         (monetary_char_table): Likewise.
2315         * c-format.h (BADLEN): Likewise.
2317 2008-06-21  Ian Lance Taylor  <iant@google.com>
2319         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2320         Define END_OF_BASE_TREE_CODES around inclusion.
2321         * tree.c (tree_code_type): New global array.
2322         (tree_code_length, tree_code_name): Likewise.
2323         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2324         $(lang_tree_files).
2325         (all-tree.def, s-alltree): New targets.
2326         (gencheck.h, s-gencheck): Remove.
2327         (tree.o): Depend upon all-tree.def.
2328         (build/gencheck.o): Remove gencheck.h dependency.
2329         (mostlyclean): Don't remove gencheck.h.
2330         * c-common.h (enum c_tree_code): Remove.
2331         * c-lang.c (tree_code_type): Remove.
2332         (tree_code_length, tree_code_name): Remove.
2333         * gencheck.c (tree_codes): Include all-tree.def, rather than
2334         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
2335         after it is used.
2336         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2337         than tree.def.
2338         * cp/cp-tree.h (enum cplus_tree_code): Remove.
2339         (operator_name_info): Size to MAX_TREE_CODES.
2340         (assignment_operator_name_info): Likewise.
2341         * cp/cp-lang.c (tree_code_type): Remove.
2342         (tree_code_length, tree_code_name): Remove.
2343         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2344         (assignment_operator_name_info): Likewise.
2345         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2346         MAX_TREE_CODES.
2347         * cp/mangle.c (write_expression): Likewise.
2348         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2349         * fortran/f95-lang.c (tree_code_type): Remove.
2350         (tree_code_length, tree_code_name): Remove.
2351         * java/java-tree.h (enum java_tree_code): Remove.
2352         * java/lang.c (tree_code_type): Remove.
2353         (tree_code_length, tree_code_name): Remove.
2354         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2355         * objc/objc-act.h (enum objc_tree_code): Remove.
2356         * objc/objc-lang.c (tree_code_type): Remove.
2357         (tree_code_length, tree_code_name): Remove.
2358         * objcp/objcp-lang.c (tree_code_type): Remove.
2359         (tree_code_length, tree_code_name): Remove.
2360         * ada/ada-tree.h (enum gnat_tree_code): Remove.
2361         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2362         * ada/misc.c (tree_code_type): Remove.
2363         (tree_code_length, tree_code_name): Remove.
2365 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2367         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2368         the grand_bitmap_obstack.
2370 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2372         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2373         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2374         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2375         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2376         move_stmt_r, new_label_mapper): Likewise.
2377         * tree-complex.c (cvc_lookup): Likewise.
2378         * tree-dfa.c (create_function_ann): Likewise.
2379         * tree-dump.c (dump_register): Likewise.
2380         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2381         find_phi_replacement_condition): Likewise.
2382         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2383         tree_function_versioning): Likewise.
2384         * tree-into-ssa.c (cmp_dfsnum): Likewise.
2385         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2386         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2387         get_nonlocal_debug_decl, convert_nonlocal_reference,
2388         convert_nonlocal_omp_clauses, get_local_debug_decl,
2389         convert_local_reference, convert_local_omp_clauses,
2390         convert_nl_goto_reference, convert_nl_goto_receiver,
2391         convert_tramp_reference, convert_call_expr): Likewise.
2392         * tree-outof-ssa.c (contains_tree_r): Likewise.
2393         * tree-parloops.c (reduction_phi, initialize_reductions,
2394         eliminate_local_variables_1, add_field_for_reduction,
2395         add_field_for_name, create_phi_for_local_result,
2396         create_call_for_reduction_1, create_loads_for_reductions,
2397         create_stores_for_reduction, create_loads_and_stores_for_name):
2398         Likewise.
2399         * tree-phinodes.c (allocate_phi_node): Likewise.
2400         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2401         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2402         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2403         * tree-ssa-coalesce.c (compare_pairs): Likewise.
2404         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2405         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2406         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2407         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
2408         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2409         vn_nary_op_insert): Likewise.
2410         * tree-ssa.c (redirect_edge_var_map_add,
2411         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2412         * tree-vectorizer.c (vectorize_loops): Likewise.
2413         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2414         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2415         tree_cons_stat, build1_stat, build_variant_type_copy,
2416         decl_init_priority_lookup, decl_fini_priority_lookup,
2417         decl_priority_info, decl_restrict_base_lookup,
2418         decl_restrict_base_insert, decl_debug_expr_lookup,
2419         decl_debug_expr_insert, decl_value_expr_lookup,
2420         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2421         type_hash_add, get_file_function_name, tree_check_failed,
2422         tree_not_check_failed, tree_range_check_failed,
2423         omp_clause_range_check_failed, build_omp_clause,
2424         build_vl_exp_stat): Likewise.
2425         * value-prof.c (gimple_histogram_value,
2426         gimple_duplicate_stmt_histograms): Likewise.
2427         * var-tracking.c (attrs_list_insert, attrs_list_copy,
2428         unshare_variable, variable_union_info_cmp_pos, variable_union,
2429         dataflow_set_different_1, dataflow_set_different_2,
2430         vt_find_locations, variable_was_changed, set_variable_part,
2431         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2432         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2433         section_entry_hash, object_block_entry_eq,
2434         object_block_entry_hash, create_block_symbol,
2435         initialize_cold_section_name, default_function_rodata_section,
2436         strip_reg_name, set_user_assembler_name, const_desc_eq,
2437         build_constant_desc, output_constant_def, lookup_constant_def,
2438         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2439         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2440         default_internal_label): Likewise.
2441         * varray.c (varray_init, varray_grow): Likewise.
2442         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2444 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2446         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2447         operators for "test" insn.  Macroize insn using SWI mode macro.
2448         (*jcc_fused_2): Ditto.
2449         (*jcc_fused_3): Macroize insn using SWI mode macro.
2450         (*jcc_fused_4): Ditto.
2452 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
2454         * tree-ssa-pre.c: Fix typo in comment.
2455         (init_antic, fini_antic): Add explicit funtions for
2456         initializing and deinitializing ANTIC and AVAIL sets.
2457         (create_expression_by_pieces): Fix typo in comment.
2458         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2459         (execute_pre): Eventually dump details about ANTIC_IN.
2461 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2463         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2464         * gcc.c (translate_options, init_spec, store_arg, read_specs,
2465         add_to_obstack, file_at_path, find_a_file, execute,
2466         add_preprocessor_option, add_assembler_option, add_linker_option,
2467         process_command, insert_wrapper, do_option_spec, do_self_spec,
2468         spec_path, do_spec_1, is_directory, main, used_arg,
2469         getenv_spec_function): Likewise.
2470         * tlink.c (symbol_hash_lookup, file_hash_lookup,
2471         demangled_hash_lookup, symbol_push, file_push, frob_extension):
2472         Likewise.
2474 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2476         * doc/rtl.texi: Updated subreg section.
2478 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2480         PR c++/36523
2481         * cgraphunit.c (cgraph_process_new_functions): Don't clear
2482         node->needed and node->reachable.
2483         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2484         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2485         (expand_task_call): Don't call expand_task_copyfn.
2486         (expand_task_copyfn): Renamed to...
2487         (finalize_task_copyfn): ... this.
2489 2008-06-19  Jan Hubicka  <jh@suse.cz>
2491         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2492         clobbering framepointer.
2494 2008-06-19  Jan Hubicka  <jh@suse.cz>
2496         * tree-optimize.c (execute_early_local_optimizations): Set
2497         cgraph_state only at first invocation.
2499 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2501         * system.h (-Wc++-compat): Activate as a warning, no an error.
2503 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2505         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2506         instead of "#" in insn asm template.
2507         (*jcc_fused_2): Ditto.
2509 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2511         * config/i386/i386.h (ix86_tune_indices)
2512         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2513         (TARGET_FUSE_CMP_AND_BRANCH): New define.
2514         * config/i386/i386.md (*jcc_fused_1): New insn pattern
2515         (*jcc_fused_2): Ditto.
2516         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2517         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2518         (print operand): Handle 'E' and 'e' code.
2520 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
2522         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2523         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2524         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2526 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
2528         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2529         node->decl.
2530         (cgraph_expand_function): Use local copy of decl.
2531         (cgraph_expand_all_functions): Remove redundant initialization of
2532         order_pos.
2533         (cgraph_optimize): Reword internal_error message.
2535 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
2537         * arm-protos.h (arm_return_in_memory): Remove public
2538         arm_return_in_memory() prototype.
2539         * arm.c (arm_return_in_memory): Add static prototype, add target
2540         hook macro, change definition and comments.
2541         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2543 2008-06-19  Ben Elliston  <bje@au.ibm.com>
2545         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2546         real.c: Remove references to IEEE 754R.
2547         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2548         * doc/libgcc.texi (Decimal float library routines): Likewise.
2550 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2552         * targhooks.h (struct gcc_target): New member unwind_word_mode.
2553         (default_unwind_word_mode): Add prototype.
2554         * targhooks.c (default_unwind_word_mode): New function.
2555         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2556         instead of word_mode.
2557         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2558         (TARGET_INITIALIZER): Use it.
2560         * c-common.c (handle_mode_attribute): Support "unwind_word"
2561         mode attribute.
2562         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2564         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2565         word_mode to access SjLj_Function_Context member "data".
2566         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
2567         conversion from targetm.eh_return_filter_mode () to
2568         targetm.unwind_word_mode () if they differ.
2570         * builtin-types.def (BT_UNWINDWORD): New primitive type.
2571         (BT_FN_UNWINDWORD_PTR): New function type.
2572         (BT_FN_WORD_PTR): Remove.
2573         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2574         * except.c (expand_builtin_extend_pointer): Convert pointer to
2575         targetm.unwind_word_mode () instead of word_mode.
2577         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2578         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2579         (spu_unwind_word_mode): New function.
2580         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2581         (TARGET_UNWIND_WORD_MODE): Define.
2582         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2584 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2586         * config/spu/spu.c (reg_align): Remove.
2587         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2588         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2589         (spu_split_store): Likewise.
2591 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
2593         * gcc/tree-vn.c: Fix typo in comment.
2595 2008-06-18  Jan Hubicka  <jh@suse.cz>
2597         * cgraphunit.c (cgraph_optimize): Output debug info when doing
2598         toplevel reorder too.
2600 2008-06-18  Jan Hubicka  <jh@suse.cz>
2602         * c-opts.c (c_common_post_options): PCH is not compatible with
2603         no-unit-at-a-time.
2604         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2605         -fno-toplevel-reorder by default now.
2607 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2609         PR documentation/30739
2610         * doc/install.texi (Prerequisites): Document dependency on awk.
2612 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
2613             Ian Lance Taylor  <iant@google.com>
2615         PR rtl-optimization/35604
2616         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2617         only want to change jump destinations, not eventual label comparisons.
2619 2008-06-16  Jan Hubicka  <jh@suse.cz>
2621         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2622         syntax errors.
2623         (cgraph_analyze_function): Likewise.
2625 2008-06-16  Jan Hubicka  <jh@suse.cz>
2627         * cgraph.h (cgraph_mark_if_needed): New function.
2628         * cgraphunit.c (cgraph_mark_if_needed): New function.
2629         * c-decl.c (duplicate_decl): Use it.
2631 2008-06-16  Jan Hubicka  <jh@suse.cz>
2633         * cgraph.c (cgraph_add_new_function): When in expansion state, do
2634         lowering.
2636 2008-06-16  Jan Hubicka  <jh@suse.cz>
2638         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2640 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
2641             Kazu Hirata  <kazu@codesourcery.com>
2642             Maxim Kuvyrkov  <maxim@codesourcery.com
2644         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2645         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2646         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2647         EXTRA_SPEC_FUNCTIONS.
2648         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2649         (DRIVER_SELF_SPECS): Adjust.
2650         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2651         * config/mips/st.h, config/mips/t-st: New.
2652         * config/mips/driver-native.c, config/mips/x-native: New.
2653         * doc/invoke.texi (MIPS): Document 'native' value for -march and
2654         -mtune options.
2656 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2658         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2659         from it.
2660         (ISA_HAS_FP_CONDMOVE): New macro.
2661         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2662         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2663         (ISA_HAS_NMADD3_NMSUB3): New macro.
2664         * config/mips/mips.c (mips_rtx_costs): Update.
2665         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2666         compiling for ST Loongson 2E/2F.
2667         (madd<mode>): Rename to madd4<mode>.  Update.
2668         (madd3<mode>): New pattern.
2669         (msub<mode>): Rename to msub4<mode>.  Update.
2670         (msub3<mode>): New pattern.
2671         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
2672         (nmadd3<mode>): New pattern.
2673         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
2674         (nmadd3<mode>_fastmath): New pattern.
2675         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
2676         (nmsub3<mode>): New pattern.
2677         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
2678         (nmsub3<mode>_fastmath): New pattern.
2679         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2681 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2683         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2684         (DF_REF_INSN_INFO): New.
2685         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2686         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2687         with a NULL DF_REF_INSN_INFO.
2688         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2689         DF_INSN_SET.
2690         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2691         DF_INSN_INFO_EQ_USES): New.
2692         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2693         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2694         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2695         * df-core.c: Update comment for above changes.
2696         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2697         DF_INSN_UID_* macros.
2698         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2699         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2700         insn rtx.  Update all callers.
2701         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2702         df_ref_create_structure, df_insn_refs_collect): Likewise.
2703         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2704         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2705         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2706         macros to access the insn refs.
2707         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2708         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2709         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2710         for accessing the refs.
2711         (try_fwprop_subst): Likewise.
2712         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2713         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2714         for accessing the refs.
2715         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2716         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2717         to look at the insn refs.
2718         (record_uses): Likewise.
2719         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2720         function anymore.
2721         (mark_artificial_uses): Don't mark_insn for artificial refs.
2722         (mark_reg_rependencies): Likewise.
2724         * doc/rtl.texi: Remove documentation of ADDRESSOF.
2726 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2728         * configure: Regenerate.
2730 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2732         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2733         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2734         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2736 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2738         * config/avr/avr.c (avr_mcu_t): Add attiny167.
2739         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2740         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2742 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2744         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2745         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2746         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2748 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2750         * tree-ssa-sccvn.c: Fix format of comments.
2752 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2754         * cgraph.c: Remove unneeded forward declarations of eq_node()
2755         and hash_node().
2757 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2759         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2760         REG_RETVAL notes.
2761         (see_update_relevancy): Likewise.
2762         * fwprop.c (try_fwprop_subst): Likewise.
2763         * rtlanal.c (noop_move_p): Likewise.
2764         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2765         notes to non-existing libcall blocks.
2766         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
2767         Remove orig_set.
2768         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2769         (dead_libcall_p): Remove.
2770         (delete_trivially_dead_insns): Don't use it.
2771         * web.c (union_defs): Remove comment about keeping nops.
2772         * gcse.c (hash_scan_insn): Don't take libcall pointers.
2773         (compute_hash_table_work): Don't track libcall notes.
2774         (do_local_cprop): Don't take libcall pointers.  Don't update
2775         libcall notes.
2776         (adjust_libcall_notes): Deleted.
2777         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2778         ever have existed in the first place).
2779         (replace_store_insn): Don't try to remove libcall notes.
2780         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2781         (resolve_reg_notes): Don't call them.
2782         (resolve_simple_move): Likewise.
2783         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2784         Don't remove REG_RETVAL notes.
2785         * emit-rtl.c (try_split): Don't update libcall notes.
2786         (emit_copy_of_insn_after): Dito.
2787         * cselib.c (cselib_current_insn_in_libcall): Remove.
2788         (cselib_process_insn): Don't set/clear it.
2789         (new_elt_loc_list): Don't record it.
2790         (cselib_init): Don't initialize it.
2791         * cselib.c (struct elt_loc_list): Remove in_libcall field.
2792         * loop-invariant.c (find_invariant_insn): Don't look for libcall
2793         notes.
2794         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2795         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2796         (init_deps): Don't initialize it.
2797         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2798         * combine.c (delete_noop_moves): Don't update libcall notes.
2799         (can_combine_p): Remove now pointless #if 0 block.
2800         (try_combine): Remove another obsolete #if 0 block.
2801         (distribute_notes): Don't distribute libcall notes.
2802         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2803         * dce.c (libcall_dead_p): Remove.
2804         (delete_unmarked_insns): Don't handle libcall blocks.
2805         (preserve_libcall_for_dce): Remove.
2806         (prescan_insns_for_dce): Don't special-case libcall block insns.
2807         * reload1 (reload): Don't handle libcall notes. 
2808         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2809         documentation.
2811 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2813         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2814         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2815         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2817 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2819         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2820         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2821         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2823 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2825         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
2827 2008-06-16  Ira Rosen  <irar@il.ibm.com>
2829         PR tree-optimization/36493
2830         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
2831         the arguments list. Use VECTYPE to create vector pointer.
2832         (vectorizable_store): Fail if accesses through a pointer to vectype
2833         do not alias the original memory reference operands.
2834         Call vect_create_data_ref_ptr without the removed argument.
2835         (vectorizable_load): Likewise.
2836         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
2837         removed argument.
2839 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
2841         PR target/36336
2842         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
2843         reg_equiv_constant.
2845 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2847         * config/mips/loongson2ef.md: New file.
2848         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2849         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2850         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2851         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
2852         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
2853         and loongson_2f.
2854         (loongson2ef.md): New include.
2855         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
2856         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
2857         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
2858         (loongson_gt_<mode>, loongson_extract_halfword)
2859         (loongson_insert_halfword_0, loongson_insert_halfword_2)
2860         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
2861         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
2862         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
2863         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
2864         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
2865         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
2866         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
2867         (vec_interleave_low<mode>): Define type attribute.
2868         * config/mips/mips.c (mips_ls2): New static variable.
2869         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
2870         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
2871         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
2872         Implement target scheduling hooks.
2873         (mips_multipass_dfa_lookahead): Update to handle tuning for
2874         Loongson 2E/2F.
2875         (mips_sched_init): Initialize data for Loongson scheduling.
2876         (mips_ls2_variable_issue): New static function.
2877         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
2878         Add sanity check.
2879         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
2880         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
2881         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
2882         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
2883         Handle ST Loongson 2E/2F cores.
2884         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
2886 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2888         * omp-low.c (extract_omp_for_data): Fix comment typo.
2889         * c.opt: Fix typo.
2891 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2893         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
2894         FIXME note about gcc/config.guess.
2895         * doc/options.texi (Option file format): Remove non-ASCII bytes.
2896         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
2897         * doc/cppopts.texi: Likewise.
2898         * doc/extend.texi: Likewise.
2899         * doc/gcc.texi: Likewise.
2900         * doc/gccint.texi: Likewise.
2901         * doc/gcov.texi: Likewise.
2902         * doc/gty.texi: Likewise.
2903         * doc/hostconfig.texi: Likewise.
2904         * doc/install.texi: Likewise.
2905         * doc/invoke.texi: Likewise.
2906         * doc/loop.texi: Likewise.
2907         * doc/makefile.texi: Likewise.
2908         * doc/md.texi: Likewise.
2909         * doc/passes.texi: Likewise.
2910         * doc/tm.texi: Likewise.
2911         * doc/tree-ssa.texi: Likewise.
2912         * doc/trouble.texi: Likewise.
2914 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
2915             Nathan Sidwell  <nathan@codesourcery.com>
2916             Maxim Kuvyrkov  <maxim@codesourcery.com>
2917             Richard Sandiford  <rdsandiford@googlemail.com>
2918         
2919         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
2920         * config/mips/mips-protos.h (mips_expand_vector_init): New.
2921         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
2922         builtins.
2923         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
2924         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
2925         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
2926         V8QImode cases.
2927         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
2928         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
2929         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
2930         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
2931         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
2932         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
2933         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
2934         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
2935         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
2936         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
2937         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
2938         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
2939         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
2940         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
2941         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
2942         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
2943         (mips_builtins): Add Loongson builtins.
2944         (mips_loongson_2ef_bdesc): New.
2945         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
2946         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
2947         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
2948         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
2949         New.
2950         (mips_expand_vector_init): New.
2951         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
2952         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
2953         if appropriate.
2954         * config/mips/mips.md: Add unspec numbers for Loongson
2955         builtins.  Include loongson.md.
2956         (MOVE64): Include Loongson vector modes.
2957         (SPLITF): Include Loongson vector modes.
2958         (HALFMODE): Handle Loongson vector modes.
2959         * config/mips/loongson.md: New.
2960         * config/mips/loongson.h: New.
2961         * config.gcc: Add loongson.h header for mips*-*-* targets.
2962         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
2964 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
2966         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
2967         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
2968         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
2969         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
2970         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
2971         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
2972         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
2973         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
2974         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
2975         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
2976         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
2977         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
2978         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
2979         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
2980         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
2981         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
2982         Remove use_fixproto=yes.
2983         (ia64*-*-hpux*): Remove comment about using fixproto.
2984         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
2986 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2988         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
2989         library rebuilds.
2990         * configure: Regenerate.
2992 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2994         PR middle-end/36520
2995         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
2996         before evaluating it.
2998 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
3000         PR c/36507
3001         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3002         nested inline functions.
3003         (start_decl, start_function): Don't invert DECL_EXTERNAL
3004         for nested inline functions.
3006 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3008         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3009         splits that must be made for correctness.
3011 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3013         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3014         (AVAIL_NON_MIPS16): Likewise.
3015         (mips_builtin_description): Replace target_flags with a predicate.
3016         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3017         (dspr2_32): New availability predicates.
3018         (MIPS_BUILTIN): New macro.
3019         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3020         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3021         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3022         Replace the TARGET_FLAGS parameters with AVAIL parameters.
3023         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3024         (mips_dsp_32only_bdesc): Merge into...
3025         (mips_builtins): ...this new array.
3026         (mips_bdesc_map, mips_bdesc_arrays): Delete.
3027         (mips_init_builtins): Update after above changes.
3028         (mips_expand_builtin_1): Merge into...
3029         (mips_expand_builtin): ...here and update after above changes.
3031 2008-06-12  Paul Brook  <paul@codesourcery.com>
3033         * longlong.h (__arm__): Define count_leading_zeros.
3034         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3035         (clzsi2, clzdi2): New functions.
3036         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3037         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3038         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3039         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3040         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3041         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3042         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3043         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3044         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3045         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3047 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
3049         * config/m68k/m68k.c (m68k_tune_flags): New.
3050         (override_options): Compute m68k_tune_flags.
3051         (MULL_COST, MULW_COST): Update for various variants of CFV2.
3052         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3054 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3056         PR middle-end/36506
3057         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3059 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3061         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3062         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3064 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3066         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3067         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3069 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3071         PR middle-end/36506
3072         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3073         reductions.
3075 2008-06-12  Richard Guenther  <rguenther@suse.de>
3077         PR tree-optimization/36345
3078         * tree-flow.h (struct ptr_info_def): Align escape_mask,
3079         add memory_tag_needed flag.
3080         (may_alias_p): Declare.
3081         * tree-ssa-alias.c (may_alias_p): Export.
3082         (set_initial_properties): Use memory_tag_needed flag.
3083         (update_reference_counts): Likewise.
3084         (reset_alias_info): Reset memory_tag_needed flag.
3085         (create_name_tags): Check memory_tag_needed flag.
3086         (dump_points_to_info_for): Dump it.
3087         * tree-ssa-structalias.c (struct variable_info): Remove
3088         directly_dereferenced flag.
3089         (new_var_info): Do not initialize it.
3090         (process_constraint_1): Do not set it.
3091         (update_alias_info): Set is_dereferenced flag.
3092         (set_uids_in_ptset): Use may_alias_p.
3093         (set_used_smts): Check memory_tag_needed flag.
3094         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
3095         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3096         memory_tag_needed flag.
3097         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3098         from broken design.
3100 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
3102         * config/i386/i386.c (ix86_compute_frame_layout): Disable
3103         red zone for w64 abi.
3104         (ix86_expand_prologue): Likewise.
3105         (ix86_force_to_memory): Likewise.
3106         (ix86_free_from_memory): Likewise.
3108 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
3110         PR target/36425
3111         * config/rs6000/rs6000.c (rs6000_override_options): Set
3112         rs6000_isel conditionally to the absence of comand line override.
3113         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3114         Remove duplicate rs6000_isel setting.
3115         * config/rs6000/eabispe.h: Ditto.
3117 2008-06-11  Richard Guenther  <rguenther@suse.de>
3119         * alias.c (get_alias_set): Use the element alias-set for arrays.
3120         (record_component_aliases): For arrays and vectors do nothing.
3121         * c-common.c (strict_aliasing_warning): Handle the cases
3122         of alias set zero explicitly.
3123         * Makefile.in (dfp.o-warn): Add -Wno-error.
3125 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3127         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3128         tune_32 tune_64.
3129         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3130         tune_32 tune_64 to supported_defaults.  Allow values not
3131         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3132         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
3133         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3134         with_cpu_64 to generic for 64-bit-supporting configurations, not
3135         with_cpu.  Remove FIXMEs.
3136         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3137         --with-arch-64, --with-tune-32, --with-tune-64): Document.
3138         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3139         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3140         arch_32 and arch_64.
3142 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3143             Olivier Hainque  <hainque@adacore.com>
3145         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3146         Use DECL_SIZE_UNIT to retrieve the size of the field.
3148 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3150         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3151         with function calls after declarations.  Lay out
3152         neon_float_type_node before further use.
3154 2008-06-11  Richard Guenther  <rguenther@suse.de>
3156         * tree-flow.h (may_point_to_global_var): Declare.
3157         * tree-ssa-alias.c (may_point_to_global_var): New function.
3158         * tree-ssa-sink.c (is_hidden_global_store): Use it.
3160 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
3162         * configure.ac: Teach that fido supports .debug_line.
3163         * configure: Regenerate.
3165 2008-06-10  Tom Tromey  <tromey@redhat.com>
3167         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3168         debug hook.
3170 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3172         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3173         (encode_decimal64, decode_decimal64, encode_decimal128,
3174         decode_decimal128): Reverse order of 32-bit parts of value if host
3175         and target endianness differ.
3177 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
3179         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3180         Avoid division by 0.
3181         (tree_mod_pow2_value_transform): Likewise.
3182         (tree_ic_transform): Likewise.
3183         (tree_stringops_transform): Likewise.
3184         (tree_mod_subtract_transform): Likewise.
3185         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3186         (copy_edges_for_bb): Likewise.
3187         (initialize_cfun): Likewise.
3189 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3191         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3192         nonmemory_operand. Add "N" operand constraint.
3193         (*btsi): Ditto.
3194         (*jcc_btdi_mask_rex64): New instruction and split pattern.
3195         (*jcc_btsi_mask): Ditto.
3196         (*jcc_btsi_mask_1): Ditto.
3198 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3200         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3201         TYPE_CANONICAL for copied element type.
3203 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3205         PR target/36473
3206         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3207         Add m_CORE2 and m_GENERIC.
3208         * config/i386/predicates.md (bt_comparison_operator): New predicate.
3209         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3210         (*btsi): Ditto.
3211         (*jcc_btdi_rex64): New instruction and split pattern.
3212         (*jcc_btsi): Ditto.
3213         (*jcc_btsi_1): Ditto.
3214         (*btsq): Fix Intel asm dialect operand order.
3215         (*btrq): Ditto.
3216         (*btcq): Ditto.
3218 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3220         PR middle-end/36447
3221         * simplify-rtx.c (simplify_subreg): Add check for shift count 
3222         greater than size.
3224 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
3226         * doc/md.texi: Synchronize with later constraints.md change.
3227         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3228         with a C implementation.
3229         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3230         MFLO handling.
3231         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3232         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3233         when moving to and from MD_REGNUM.
3234         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3235         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3236         Handle byte and halfword moves.
3237         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3238         separately.
3239         * config/mips/constraints.md (h): Turn into NO_REGS.
3240         (l, x): Update documentation.
3241         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3242         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3243         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3244         (HILO): New mode iterator.
3245         (MOVE128): Add TI.
3246         (any_div): New code iterator.
3247         (u): Extend code attribute to div and udiv.
3248         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3249         d_operand in the splitters.  Remove redundant CONST_INT checks.
3250         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3251         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3252         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
3253         accordingly, using normal moves instead of unspecs to move LO into
3254         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
3255         (<u>mulsidi3): Handle expansion in C code.
3256         (<u>mulsidi3_32bit_internal): Rename to...
3257         (<u>mulsidi3_32bit): ...this.
3258         (<u>mulsidi3_32bit_r4000): Fix insn separator.
3259         (*<u>mulsidi3_64bit): Rename to...
3260         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
3261         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
3262         to set LO and HI to the multiplication result.  Use a normal move
3263         for MFLO and an unspec for MFHI.
3264         (*<u>mulsidi3_64bit_parts): Replace with...
3265         (<u>mulsidi3_64bit_hilo): ...this new instruction.
3266         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3267         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3268         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
3269         instead of HI.  Split the instruction into a separate multiplication
3270         and MFHI if !TARGET_FIX_R4000.
3271         (<su>muldi3_highpart): Likewise.
3272         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3273         and the "=h" clobber.
3274         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3275         (<u>mulditi3): New expander.
3276         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3277         (madsi): Remove "=h" clobber.
3278         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3279         Force the modulus result to be a GPR and split the instruction into
3280         a division followed by an MFHI after reload.
3281         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3282         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
3283         the MIPS16 HIGH define_split.
3284         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3285         of acc<->gpr moves to "multi".
3286         (*movdi_64bit): Replace the single "x" alternative with
3287         alternatives for moving into and out of "a".
3288         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
3289         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3290         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3291         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
3292         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
3293         (movti): New expander.
3294         (*movti, *movti_mips16): New insns.
3295         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3296         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3297         (mthi<GPR:mode>_<HILO:mode>): Likewise.
3298         * config/mips/predicates.md (fpr_operand): Delete.
3299         (d_operand): New predicate.
3301 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
3303         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3304         failure on some Bourne shells.
3305         (x86_64-*-*): Ditto.
3307 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
3309         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3311 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3313         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3314         (sparc-sun-solaris2*): Likewise.
3316 2008-06-09  Arnaud Charlet  <charlet@adacore.com
3318         * doc/install.texi: Update requirements to build the Ada compiler.
3320 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3322         * df-scan.c (struct df_scan_problem_data): Remove the
3323         mw_link_pool alloc pool.
3324         (df_scan_free_internal): Don't free it.
3325         (df_scan_alloc): Don't allocate it.
3326         * df.h (struct df_link): Update comment.
3328 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3330         * except.h: Correct checks for when SJLJ exceptions must be used.
3332 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3334         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3335         default.
3336         
3337 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
3339         PR tree-optimization/36218
3340         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3341         configure for the build system.
3342         (BUILD_LDFLAGS): Define.
3343         * configure: Regenerate.
3344         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3346 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
3348         PR target/36424
3349         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3350         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
3351         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
3353 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
3355         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3357 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3359         * config.gcc (Obsolete configurations): Remove list of
3360         configurations.
3361         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3362         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
3363         targets matched by those patterns.
3364         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3365         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3366         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3367         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3368         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3369         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3370         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3371         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3372         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3373         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3374         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3375         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3376         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3377         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3378         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3379         Make code for Solaris 7 and greater unconditional for Solaris.
3380         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3381         Remove --with-* handling.
3382         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3383         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3384         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3385         LINK_OS_WINDISS_SPEC): Remove.
3386         * config/rs6000/sysv4.opt (mwindiss): Remove.
3387         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3388         * configure: Regenerate.
3389         * doc/cpp.texi: Don't mention BeOS.
3390         * doc/extend.texi (interrupt): Don't mention MS1.
3391         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3392         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3393         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3394         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3395         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3396         Remove.
3397         * doc/invoke.texi (MT Options): Remove.
3398         (-mwindiss): Remove.
3399         (CRIS Options): Remove cris-axis-aout references.
3400         (HPPA Options): Don't mention hppa1.1-*-pro.
3401         * doc/md.texi: (MorphoTech family): Remove.
3402         * libgcc2.c: Don't handle UWIN.
3403         * config/alpha/t-unicosmk: Remove.
3404         * config/alpha/unicosmk.h: Remove.
3405         * config/arm/kaos-arm.h: Remove.
3406         * config/arm/kaos-strongarm.h: Remove.
3407         * config/arm/strongarm-coff.h: Remove.
3408         * config/arm/strongarm-elf.h: Remove.
3409         * config/arm/strongarm-pe.h: Remove.
3410         * config/arm/t-strongarm-pe: Remove.
3411         * config/arm/t-xscale-coff: Remove.
3412         * config/arm/t-xscale-elf: Remove.
3413         * config/arm/xscale-coff.h: Remove.
3414         * config/arm/xscale-elf.h: Remove.
3415         * config/chorus.h: Remove.
3416         * config/cris/aout.h: Remove.
3417         * config/cris/aout.opt: Remove.
3418         * config/cris/t-aout: Remove.
3419         * config/i386/beos-elf.h: Remove.
3420         * config/i386/kaos-i386.h: Remove.
3421         * config/i386/ptx4-i.h: Remove.
3422         * config/i386/sco5.h: Remove.
3423         * config/i386/sco5.opt: Remove.
3424         * config/i386/sysv4-cpp.h: Remove.
3425         * config/i386/sysv5.h: Remove.
3426         * config/i386/t-beos: Remove.
3427         * config/i386/t-sco5: Remove.
3428         * config/i386/t-uwin: Remove.
3429         * config/i386/uwin.asm: Remove.
3430         * config/i386/uwin.h: Remove.
3431         * config/kaos.h: Remove.
3432         * config/mips/windiss.h: Remove.
3433         * config/mt: Remove directory.
3434         * config/pa/pa-osf.h: Remove.
3435         * config/pa/pa-pro-end.h: Remove.
3436         * config/pa/t-pro: Remove.
3437         * config/ptx4.h: Remove.
3438         * config/rs6000/beos.h: Remove.
3439         * config/rs6000/kaos-ppc.h: Remove.
3440         * config/rs6000/t-beos: Remove.
3441         * config/rs6000/windiss.h: Remove.
3442         * config/sh/kaos-sh.h: Remove.
3443         * config/sol2-6.h: Remove.
3444         * config/sparc/sol26-sld.h: Remove.
3445         * config/sparc/sysv4-only.h: Remove.
3446         * config/vax/bsd.h: Remove.
3447         * config/vax/t-memfuncs: Remove.
3448         * config/vax/ultrix.h: Remove.
3449         * config/vax/vaxv.h: Remove.
3450         * config/windiss.h: Remove.
3452 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
3454         PR rtl-optimization/36438
3455         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3456         for vector shifts with constant scalar shift operands.
3458 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
3460         * doc/invoke.texi: Document -march=xlr.
3461         * config/mips/xlr.md: New file.
3462         * config/mips/mips.md: Include it.
3463         (cpu): Add "xlr".
3464         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3465         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3466         (mips_rtx_cost_data): Likewise.
3468 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
3470         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3471         PRE_INC and PRE_DEC cases.
3473 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3475         PR rtl-optimization/36419
3476         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3477         the emitting jump insn.
3479         PR target/36362
3480         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3481         is not bool, boolify the whole *expr_p and convert to the desired type.
3483 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3485         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3486         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3487         Add omp_private_outer_ref hook, add another argument to
3488         omp_clause_default_ctor hook.
3489         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3490         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3491         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3492         hook_tree_tree_tree_tree_null.
3493         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3494         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3495         * hooks.c (hook_tree_tree_tree_tree_null): New function.
3496         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3497         * tree.def (OMP_TASK): New tree code.
3498         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3499         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3500         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3501         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3502         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3503         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3504         OMP_CLAUSE_COLLAPSE_EXPR): Define.
3505         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3506         (OMP_DIRECTIVE_P): Add OMP_TASK.
3507         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3508         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3509         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3510         and OMP_CLAUSE_UNTIED entries.
3511         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
3512         num_ops to 2.
3513         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3514         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3515         * tree-pretty-print.c (dump_omp_clause): Handle
3516         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3517         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3518         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3519         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
3520         warning about unsigned iterators.  Change decl/init/cond/incr
3521         arguments to TREE_VECs, check arguments for all collapsed loops.
3522         (c_finish_omp_taskwait): New function.
3523         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3524         ws_clauses.
3525         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
3526         default_function_array_conversion on init.  Add par_clauses argument.
3527         If decl is present in parallel's lastprivate clause, change it to
3528         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3529         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
3530         collapse count in clauses.
3531         (c_parser_omp_for, c_parser_omp_parallel): Adjust
3532         c_parser_omp_for_loop callers.
3533         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3534         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3535         (c_parser_omp_clause_name): Handle collapse and untied clauses.
3536         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3537         functions.
3538         (c_parser_omp_clause_schedule): Handle schedule(auto).
3539         Include correct location in the error message.
3540         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3541         and PRAGMA_OMP_CLAUSE_UNTIED.
3542         (OMP_TASK_CLAUSE_MASK): Define.
3543         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3544         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3545         * tree-nested.c (convert_nonlocal_omp_clauses,
3546         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3547         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3548         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3549         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3550         OMP_CLAUSE_DECL.
3551         (conver_nonlocal_reference, convert_local_reference,
3552         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
3553         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3554         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3555         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3556         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3557         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3558         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3559         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3560         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3561         OMP_CLAUSE_UNTIED.
3562         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3563         * c-common.h (c_finish_omp_taskwait): New prototype.
3564         * gimple-low.c (lower_stmt): Handle OMP_TASK.
3565         * tree-parloops.c (create_parallel_loop): Create 1 entry
3566         vectors for OMP_FOR_{INIT,COND,INCR}.
3567         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3568         (make_edges): Handle OMP_TASK.
3569         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3570         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3571         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3572         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3573         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3574         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3575         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3576         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3577         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3578         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3579         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3580         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3581         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3582         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3583         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3584         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3585         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3586         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3587         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3588         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3589         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3590         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3591         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3592         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3593         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3594         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3595         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
3596         original iterator is present in lastprivate clause or if
3597         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
3598         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3599         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3600         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3601         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3602         if it is set, lookup var in outer contexts too.  Handle
3603         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
3604         to be implicitly determined firstprivate for task regions.
3605         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3606         if it is set, lookup var in outer contexts too.  Set
3607         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3608         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3609         OMP_CLAUSE_UNTIED.  Take region_type as last argument
3610         instead of in_parallel and in_combined_parallel.
3611         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3612         Adjust callers.
3613         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3614         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
3615         (new_omp_context): Set default_kind to
3616         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3617         (omp_region_type): New enum.
3618         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3619         fields, add region_type.
3620         (new_omp_context): Take region_type as argument instead of is_parallel
3621         and is_combined_parallel.
3622         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3623         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3624         ctx->is_combined_parallel checks.
3625         (gimplify_omp_task): New function.
3626         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3627         OMP_CLAUSE_UNTIED.
3628         * omp-low.c (extract_omp_for_data): Use schedule(static)
3629         for schedule(auto).  Handle pointer and unsigned iterators.
3630         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
3631         Add loops argument.  Extract data for collapsed OMP_FOR loops.
3632         (expand_parallel_call): Assert sched_kind isn't auto,
3633         map runtime schedule to index 3.
3634         (struct omp_for_data_loop): New type.
3635         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3636         Add loop, loops, collapse and iter_type fields.
3637         (workshare_safe_to_combine_p): Disallow combined for if
3638         iter_type is unsigned long long.  Don't combine collapse > 1 loops
3639         unless all bounds and steps are constant.  Adjust extract_omp_for_data
3640         caller.
3641         (expand_omp_for_generic): Handle pointer, unsigned and long long
3642         iterators.  Handle collapsed OMP_FOR loops.  Adjust
3643         for struct omp_for_data changes.  If libgomp function doesn't return
3644         boolean_type_node, add comparison of the return value with 0.
3645         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3646         pointer, unsigned and long long iterators.  Adjust for struct
3647         omp_for_data changes.
3648         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3649         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
3650         unsigned long long.  Allocate loops array, pass it to
3651         extract_omp_for_data.  For collapse > 1 loops use always
3652         expand_omp_for_generic.
3653         (omp_context): Add sfield_map and srecord_type fields.
3654         (is_task_ctx, lookup_sfield): New functions.
3655         (use_pointer_for_field): Use is_task_ctx helper.  Change first
3656         argument's type from const_tree to tree.  Clarify comment.
3657         In OMP_TASK disallow copy-in/out sharing.
3658         (build_sender_ref): Call lookup_sfield instead of lookup_field.
3659         (install_var_field): Add mask argument.  Populate both record_type
3660         and srecord_type if needed.
3661         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3662         in srecord_type.
3663         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3664         and DECL_FIELD_OFFSET.
3665         (scan_sharing_clauses): Adjust install_var_field callers.  For
3666         firstprivate clauses on explicit tasks allocate the var by value in
3667         record_type unconditionally, rather than by reference.
3668         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3669         Use is_taskreg_ctx instead of is_parallel_ctx.
3670         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3671         (create_omp_child_function_name): Add task_copy argument, use
3672         *_omp_cpyfn* names if it is true.
3673         (create_omp_child_function): Add task_copy argument, if true create
3674         *_omp_cpyfn* helper function.
3675         (scan_omp_parallel): Adjust create_omp_child_function callers.
3676         Rename parallel_nesting_level to taskreg_nesting_level.
3677         (scan_omp_task): New function.
3678         (lower_rec_input_clauses): Don't run constructors for firstprivate
3679         explicit task vars which are initialized by *_omp_cpyfn*.  
3680         Pass outer var ref to omp_clause_default_ctor hook if
3681         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3682         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3683         OMP_CLAUSE_REDUCTION_INIT.
3684         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3685         avoid duplicate setting of fields.  Handle
3686         OMP_CLAUSE_PRIVATE_OUTER_REF.
3687         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
3688         copy-out if TREE_READONLY, only copy-in.
3689         (expand_task_copyfn): New function.
3690         (expand_task_call): New function.
3691         (struct omp_taskcopy_context): New type.
3692         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3693         New functions.
3694         (lower_omp_parallel): Rename to...
3695         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3696         Call create_task_copyfn if srecord_type is needed.  Adjust
3697         sender_decl type.
3698         (task_shared_vars): New variable.
3699         (check_omp_nesting_restrictions): Warn if work-sharing,
3700         barrier, master or ordered region is closely nested inside OMP_TASK.
3701         Add warnings for barrier if closely nested inside of work-sharing,
3702         ordered, or master region.
3703         (scan_omp_1): Call check_omp_nesting_restrictions even for
3704         GOMP_barrier calls.  Rename parallel_nesting_level to
3705         taskreg_nesting_level.  Handle OMP_TASK.
3706         (lower_lastprivate_clauses): Even if some lastprivate is found on a
3707         work-sharing construct, continue looking for them on parent parallel
3708         construct.
3709         (lower_omp_for_lastprivate): Add lastprivate clauses
3710         to the beginning of dlist rather than end.  Adjust for struct
3711         omp_for_data changes.
3712         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3713         not after it.  Handle collapsed OMP_FOR loops, adjust for
3714         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3715         (get_ws_args_for): Adjust extract_omp_for_data caller.
3716         (scan_omp_for): Handle collapsed OMP_FOR
3717         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3718         (lower_omp_single_simple): If libgomp function doesn't return
3719         boolean_type_node, add comparison of the return value with 0.
3720         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3721         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
3722         (parallel_nesting_level): Rename to...
3723         (taskreg_nesting_level): ... this.
3724         (is_taskreg_ctx): New function.
3725         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3726         of is_parallel_ctx.
3727         (execute_lower_omp): Rename parallel_nesting_level to
3728         taskreg_nesting_level.
3729         (expand_omp_parallel): Rename to...
3730         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3731         Call omp_task_call for OMP_TASK regions.
3732         (expand_omp): Adjust caller, handle OMP_TASK.
3733         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3735         * bitmap.c (bitmap_default_obstack_depth): New variable.
3736         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3737         if argument is NULL and bitmap_default_obstack is already initialized.
3738         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3739         at the end.
3740         * matrix-reorg.c (matrix_reorg): Likewise.
3742 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
3744         * config/i386/i386.md (*indirect_jump): Macroize using P
3745         mode iterator.  Remove !TARGET_64BIT from insn constraints.
3746         (*tablejump_1): Ditto.
3747         (*indirect_jump_rex64): Remove insn pattern.
3748         (*tablejump_1_rex64): Ditto.
3749         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3750         and eh_return_si insn patterns.
3752 2008-06-06  Richard Guenther  <rguenther@suse.de>
3754         * tree-ssa-structalias.c (merge_smts_into): Remove.
3755         (find_what_p_points_to): Do not bother to compute the
3756         points-to set for pt_anything pointers.
3757         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3758         for pt_anything pointers is ok.
3760 2008-06-06  Jan Hubicka  <jh@suse.cz>
3762         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3764 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3766         * cgraph.c: Fix typos in comments.
3767         (cgraph_availability_names): Fix string typo.
3768         * fold-const.c: Fix typos in comments.
3769         (fold_binary): Fix typo in warning.
3770         * genautomata.c: Fix typos in comments.
3771         (check_presence_pattern_sets): Fix typo in local variable.
3772         (output_description): Fix typo in output.
3773         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3774         * hwint.h: Likewise.
3775         * matrix-reorg.c (check_allocation_function): Likewise.
3776         * omega.c (smooth_weird_equations): Likewise.
3777         * auto-inc-dec.c: Fix typos in comments.
3778         * bb-reorder.c: Likewise.
3779         * builtins.c: Likewise.
3780         * c-common.c: Likewise.
3781         * c-cppbuiltin.c: Likewise.
3782         * c-parser.c: Likewise.
3783         * c-pretty-print.c: Likewise.
3784         * cfgcleanup.c: Likewise.
3785         * cfgexpand.c: Likewise.
3786         * cfghooks.c: Likewise.
3787         * cfglayout.c: Likewise.
3788         * cfgloopmanip.c: Likewise.
3789         * cgraphunit.c: Likewise.
3790         * coverage.c: Likewise.
3791         * dbxout.c: Likewise.
3792         * df-byte-scan.c: Likewise.
3793         * df-core.c: Likewise.
3794         * df-problems.c: Likewise.
3795         * df-scan.c: Likewise.
3796         * dfp.c: Likewise.
3797         * dominance.c: Likewise.
3798         * domwalk.c: Likewise.
3799         * dse.c: Likewise.
3800         * dwarf2out.c: Likewise.
3801         * emit-rtl.c: Likewise.
3802         * et-forest.c: Likewise.
3803         * function.c: Likewise.
3804         * function.h: Likewise.
3805         * gcc.c: Likewise.
3806         * gcov-io.c: Likewise.
3807         * gcov.c: Likewise.
3808         * gcse.c: Likewise.
3809         * genattrtab.c: Likewise.
3810         * ggc-page.c: Likewise.
3811         * gimplify.c: Likewise.
3812         * gthr-lynx.h: Likewise.
3813         * haifa-sched.c: Likewise.
3814         * ipa-cp.c: Likewise.
3815         * ipa-inline.c: Likewise.
3816         * ipa-prop.h: Likewise.
3817         * ipa-pure-const.c: Likewise.
3818         * ipa-struct-reorg.c: Likewise.
3819         * ipa-struct-reorg.h: Likewise.
3820         * ipa-type-escape.c: Likewise.
3821         * ipa.c: Likewise.
3822         * loop-doloop.c: Likewise.
3823         * mips-tfile.c: Likewise.
3824         * mkmap-flat.awk: Likewise.
3825         * mkmap-symver.awk: Likewise.
3826         * modulo-sched.c: Likewise.
3827         * omp-low.c: Likewise.
3828         * optabs.c: Likewise.
3829         * optabs.h: Likewise.
3830         * opts.c: Likewise.
3831         * passes.c: Likewise.
3832         * postreload-gcse.c: Likewise.
3833         * postreload.c: Likewise.
3834         * predict.c: Likewise.
3835         * pretty-print.h: Likewise.
3836         * profile.c: Likewise.
3837         * protoize.c: Likewise.
3838         * ra-conflict.c: Likewise.
3839         * real.c: Likewise.
3840         * recog.c: Likewise.
3841         * regclass.c: Likewise.
3842         * regs.h: Likewise.
3843         * reload.c: Likewise.
3844         * rtl-error.c: Likewise.
3845         * rtlanal.c: Likewise.
3846         * scan.h: Likewise.
3847         * sched-rgn.c: Likewise.
3848         * see.c: Likewise.
3849         * stmt.c: Likewise.
3850         * target.h: Likewise.
3851         * tree-dfa.c: Likewise.
3852         * tree-eh.c: Likewise.
3853         * tree-flow-inline.h: Likewise.
3854         * tree-inline.c: Likewise.
3855         * tree-into-ssa.c: Likewise.
3856         * tree-loop-distribution.c: Likewise.
3857         * tree-nested.c: Likewise.
3858         * tree-parloops.c: Likewise.
3859         * tree-pass.h: Likewise.
3860         * tree-pretty-print.c: Likewise.
3861         * tree-profile.c: Likewise.
3862         * tree-scalar-evolution.c: Likewise.
3863         * tree-sra.c: Likewise.
3864         * tree-ssa-alias-warnings.c: Likewise.
3865         * tree-ssa-ccp.c: Likewise.
3866         * tree-ssa-coalesce.c: Likewise.
3867         * tree-ssa-dom.c: Likewise.
3868         * tree-ssa-dse.c: Likewise.
3869         * tree-ssa-forwprop.c: Likewise.
3870         * tree-ssa-live.c: Likewise.
3871         * tree-ssa-live.h: Likewise.
3872         * tree-ssa-loop-im.c: Likewise.
3873         * tree-ssa-loop-ivopts.c: Likewise.
3874         * tree-ssa-loop-niter.c: Likewise.
3875         * tree-ssa-loop-prefetch.c: Likewise.
3876         * tree-ssa-phiopt.c: Likewise.
3877         * tree-ssa-phiprop.c: Likewise.
3878         * tree-ssa-sccvn.c: Likewise.
3879         * tree-ssa-ter.c: Likewise.
3880         * tree-ssa-threadupdate.c: Likewise.
3881         * tree-ssa.c: Likewise.
3882         * tree-vect-analyze.c: Likewise.
3883         * tree-vect-transform.c: Likewise.
3884         * tree-vectorizer.c: Likewise.
3885         * tree-vn.c: Likewise.
3886         * tree-vrp.c: Likewise.
3887         * tree.c: Likewise.
3888         * tree.def: Likewise.
3889         * tree.h: Likewise.
3890         * unwind-dw2-fde.c: Likewise.
3891         * unwind.inc: Likewise.
3892         * value-prof.c: Likewise.
3893         * vmsdbgout.c: Likewise.
3895 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
3897         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
3898         always place FP constants in the TOC for TARGET_POWERPC64.
3899         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
3901 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
3903         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
3904         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
3905         enable for TARGET_E500_DOUBLE.
3906         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
3907         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
3908         floating-point modes like integer modes for E500 double.
3909         (rs6000_legitimate_offset_address_p): Likewise.
3910         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
3911         addressing for DDmode for E500 double.
3912         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
3913         modes as using 64-bits of registers for E500 double.
3914         (spe_build_register_parallel): Do not handle DDmode or TDmode.
3915         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
3916         specially for E500 double.
3917         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
3918         TDmode for E500 double.
3919         (rs6000_gimplify_va_arg): Only handle SDmode in registers
3920         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
3921         (rs6000_split_multireg_move): Do not handle TDmode specially for
3922         E500 double.
3923         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
3924         using 64-bit registers for E500 double.
3925         (emit_frame_save): Do not handle DDmode specially for E500 double.
3926         (gen_frame_mem_offset): Likewise.
3927         (rs6000_function_value): Do not call spe_build_register_parallel
3928         for DDmode or TDmode.
3929         (rs6000_libcall_value): Likewise.
3930         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
3931         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
3932         for E500 double.
3934 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3936         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
3937         in comments.
3939 2008-06-04  Junjie Gu <jgu@tensilica.com>
3941         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
3942         comparison for frame pointers.
3944 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3946         PR target/27386
3947         * config/avr/avr.h (PUSH_ROUNDING): Remove.
3949 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3951         PR target/30243
3952         * builtins.c (expand_builtin_signbit): Don't take lowpart when
3953         register is already smaller or equal to required mode. 
3955 2008-06-04  Xinliang David Li  <davidxl@google.com>
3957         * tree-call-cdce.c: New file. 
3958         (cond_dead_built_in_calls): New static variable.
3959         (input_domain): New struct.
3960         (check_pow): New function.
3961         (check_builtin_call): Ditto.
3962         (check_target_format): Ditto.
3963         (is_call_dce_candidate): Ditto.
3964         (gen_one_condition): Ditto.
3965         (gen_conditions_for_domain): Ditto.
3966         (get_domain): Ditto.
3967         (gen_conditions_for_pow_cst_base): Ditto.
3968         (gen_conditions_for_pow_int_base): Ditto.
3969         (gen_conditions_for_pow): Ditto.
3970         (get_no_error_domain): Ditto.
3971         (gen_shrink_wrap_conditions): Ditto.
3972         (shrink_wrap_one_built_in_call): Ditto.
3973         (shink_wrap_conditional_dead_built_in_calls): Ditto.
3974         (tree_call_cdce): Ditto.
3975         (gate_call_cdce): Ditto.
3976         (pass_call_cdce): New gimple pass.
3977         * passes.c: (init_optimization_passes): New pass.
3978         * tree-pass.h: New pass declaration.
3979         * opts.c (decode_options): New flag setting.
3980         * common.opt: Add -ftree-builtin-call-dce flag.
3981         * Makefile.in: Add new source file.
3982         * tempvar.def: New tv_id.
3983         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
3985 2008-06-04  Richard Guenther  <rguenther@suse.de>
3987         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
3988         (is_call_clobbered): Always check var_ann->call_clobbered.
3989         (mark_call_clobbered): Always set var_ann->call_clobbered.
3990         (clear_call_clobbered): Always clear var_ann->call_clobbered.
3991         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
3992         (reset_alias_info): Clear call clobbering info on MTAGs and
3993         globals as well.
3994         (set_pt_anything): Set pt_global_mem.
3995         (create_tag_raw): Adjust comment.
3996         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
3998 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
3999             Maxim Kuvyrkov  <maxim@codesourcery.com>
4001         * config/m68k/m68k.opt (mxgot): New option.
4002         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4003         (m68k_output_addr_const_extra): New.
4004         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4005         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4006         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4007         * doc/invoke.texi (M680x0 Options): Document -mxgot.
4009 2008-06-04  Richard Guenther  <rguenther@suse.de>
4011         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4012         negative or non-representable offsets.
4014 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4016         * config/i386/i386.c (ix86_gen_leave): New.
4017         (ix86_gen_pop1): Likewise.
4018         (ix86_gen_add3): Likewise.
4019         (ix86_gen_sub3): Likewise.
4020         (ix86_gen_sub3_carry): Likewise.
4021         (ix86_gen_one_cmpl2): Likewise.
4022         (ix86_gen_monitor): Likewise.
4023         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4024         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4025         ix86_gen_one_cmpl2 and ix86_gen_monitor.
4026         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4027         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4028         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4029         (ix86_expand_epilogue): Updated.
4030         (print_operand): Handle integer register operand for 'z'.
4031         (ix86_expand_strlensi_unroll_1): Likewise.
4032         (ix86_expand_strlen): Likewise.
4033         (ix86_expand_builtin): Likewise.
4034         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4035         mov{q}/mov{l} and add{q}/add{l}.
4037 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4039         * config/i386/i386.md (P): New mode iterator.
4040         (SFmode push_operand splitter): Macroize DImode and SImode pushes
4041         using P mode iterator.
4042         (DFmode push_operand splitter): Ditto.
4043         (XFmode push_operand splitter): Ditto.
4044         (DFmode float_extend SFmode push_operand splitter): Ditto.
4045         (XFmode float_extend SFmode push_operand splitter): Do not generate
4046         SImode pushes for 64bit target.  Macroize Dimode and SImode
4047         pushes using P mode iterator.
4048         (XFmode float_extend DFmode push_operand splitter): Ditto.
4050 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4052         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4053         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4054         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4055         return type to int.
4056         (ix86_call_abi_override): Remove check for call_used_regs.
4058 2008-06-03  Richard Guenther  <rguenther@suse.de>
4060         * tree-ssa-structalias.c (find_func_aliases): Add constraints
4061         for the lhs of calls if the return type contains pointers.
4063 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4065         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4066         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4067         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4068         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4069         of cfun and DEFAULT_ABI to deceide abi mode.
4070         (DEFAULT_ABI): New.
4071         (REG_PARM_STACK_SPACE): Removed.
4072         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4073         (STACK_BOUNDARY): Use default target to deceide stack boundary.
4074         * config/i386/i386-protos.h (ix86_cfun_abi): New.
4075         (ix86_function_abi): Likewise.
4076         (ix86_function_type_abi): Likewise.
4077         (ix86_call_abi_override): Likewise.
4078         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4079         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4080         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4081         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4082         specific defines.
4083         (X86_64_REGPARM_MAX): New.
4084         (X86_64_SSE_REGPARM_MAX): New.
4085         (X64_REGPARM_MAX): New.
4086         (X64_SSE_REGPARM_MAX): New.
4087         (X86_32_REGPARM_MAX): New.
4088         (X86_32_SSE_REGPARM_MAX): New.
4089         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4090         (ix86_function_regparm): Handle user calling abi.
4091         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4092         by DEFAULT_ABI versus SYSV_ABI check.
4093         (ix86_reg_parm_stack_space): New.
4094         (ix86_function_type_abi): New.
4095         (ix86_call_abi_override): New.
4096         (ix86_function_abi): New.
4097         (ix86_cfun_abi): New.
4098         (init_cumulative_args): Call abi specific initialization.
4099         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4100         (function_arg_64): Extend SSE_REGPARM_MAX check.
4101         (function_arg (): Remove TARGET_64BIT_MS_ABI.
4102         (ix86_pass_by_reference): Likewise.
4103         (ix86_function_value_regno_p): Likewise.
4104         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4105         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4106         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4107         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4108         (setup_incoming_varargs_64): Adjust regparm for call abi.
4109         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4110         (ix86_va_start): Likewise.
4111         (ix86_gimplify_va_arg): Likewise.
4112         (ix86_expand_prologue): Likewise.
4113         (output_pic_addr_const): Likewise.
4114         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4115         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4116         (x86_output_mi_thunk): Likewise.
4117         (x86_function_profiler): Likewise.
4118         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4119         (SYSV_ABI, MS_ABI): New constants.
4120         (DEFAULT_ABI): New.
4121         (init_regs): Add prototype of function in regclass.c file.
4122         (OVERRIDE_ABI_FORMAT): New.
4123         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4124         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4125         (OUTGOING_REG_PARM_STACK_SPACE): New.
4126         (ix86_reg_parm_stack_space): New prototype.
4127         (CUMULATIVE_ARGS): Add call_abi member.
4128         (machine_function): Add call_abi member.
4129         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4130         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4132 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
4134         PR target/34879
4135         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4136         (avr_builtin_setjmp_frame_value): New function.
4137         * config/avr/avr.md (nonlocal_goto_receiver): Define.
4138         (nonlocal_goto): Define.
4140 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
4142         * config/mips/mips.c (mips_emit_loadgp): Return early if
4143         there is nothing do to, otherwise emit a blockage if
4144         !TARGET_EXPLICIT_RELOCS || crtl->profile.
4145         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4147 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4149         * configure.ac: Drop unneeded backslash ending up in config.in.
4150         * acinclude.m4: Likewise.
4151         * config.in: Regenerate.
4153 2008-05-26  Jan Hubicka  <jh@suse.cz>
4155         * predict.c (maybe_hot_frequency_p): Break out of...
4156         (maybe_hot_bb_p): ... here.
4157         (maybe_hot_edge_p): New.
4158         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4159         * basic-block.h (maybe_hot_edge_p): Declare.
4161 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4163         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4164         (*cmpfp_<mode>_cc): Ditto.
4165         (*fp_jcc_8<mode>_387): Ditto.
4166         (*fop_<MODEF:mode>_2_i387): Ditto.
4167         (*fop_<MODEF:mode>_3_i387): Ditto.
4168         (*fop_xf_2_i387): Ditto.
4169         (*fop_xf_3_i387): Ditto.
4171 2008-06-02  Tomas Bily  <tbily@suse.cz>
4173         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4175 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4177         * config/mips/mips.c (mips_valid_offset_p): New function.
4178         (mips_valid_lo_sum_p): Likewise.
4179         (mips_classify_address): Use them.
4180         (mips_force_address): New function.
4181         (mips_legitimize_address): Use it.
4182         * config/mips/mips.md (MOVE128): New mode iterator.
4183         (movtf): Require TARGET_64BIT.  Remove empty strings.
4184         (*movtf_internal): Rename to...
4185         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
4186         of "R" and use {,fp}{load,store} attributes instead of "multi".
4187         Use a separate define_split.
4188         (*movtf_mips16): New pattern.
4190 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4192         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4193         * config/mips/mips.c (mips_expand_before_return): New function.
4194         (mips_expand_epilogue): Call it.
4195         * config/mips/mips.md (return): Turn into a define_expand.
4196         (*return): New insn.
4198 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4200         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4201         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4202         functions.  Do not emit uses and clobbers of CONCATs; individually
4203         use and clobber their operands.
4204         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4205         gen_clobber, emit_use and gen_use.
4206         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4207         (expand_builtin_return): Likewise.
4208         * cfgbuild.c (count_basic_blocks): Likewise.
4209         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4210         * explow.c (emit_stack_restore): Likewise.
4211         * expmed.c (extract_bit_field_1): Likewise.
4212         * expr.c (convert_move, emit_move_complex_parts): Likewise.
4213         (emit_move_multi_word, store_constructor): Likewise.
4214         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4215         (thread_prologue_and_epilogue_insns): Likewise.
4216         * lower-subreg.c (resolve_simple_move): Likewise.
4217         * optabs.c (widen_operand, expand_binop): Likewise.
4218         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4219         * reload.c (find_reloads): Likewise.
4220         * reload1.c (eliminate_regs_in_insn): Likewise.
4221         * stmt.c (expand_nl_goto_receiver): Likewise.
4222         * config/alpha/alpha.md (builtin_longjmp): Likewise.
4223         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4224         * config/arm/arm.c (arm_load_pic_register): Likewise.
4225         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4226         * config/arm/arm.md (untyped_return): Likewise.
4227         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4228         * config/avr/avr.c (expand_prologue): Likewise.
4229         * config/bfin/bfin.c (do_unlink): Likewise.
4230         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4231         * config/cris/cris.c (cris_expand_prologue): Likewise.
4232         * config/darwin.c (machopic_indirect_data_reference): Likewise.
4233         (machopic_legitimize_pic_address): Likewise.
4234         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4235         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4236         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4237         (ix86_expand_convert_uns_didf_sse): Likewise.
4238         (ix86_expand_vector_init_general): Likewise.
4239         * config/ia64/ia64.md (eh_epilogue): Likewise.
4240         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4241         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4242         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4243         (config/iq2000/iq2000.c): Likewise.
4244         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4245         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4246         (builtin_longjmp): Likewise.
4247         * config/mn10300/mn10300.md (call, call_value): Likewise.
4248         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4249         * config/pdp11/pdp11.md (abshi2): Likewise.
4250         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4251         * config/s390/s390.c (s390_emit_prologue): Likewise.
4252         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4253         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4254         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4255         * config/sh/sh.c (prepare_move_operands): Likewise.
4256         (output_stack_adjust, sh_expand_epilogue): Likewise.
4257         (sh_set_return_address, sh_expand_t_scc): Likewise.
4258         * config/sparc/sparc.c (load_pic_register): Likewise.
4259         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4260         * config/spu/spu.c (spu_expand_epilogue): Likewise.
4261         * config/v850/v850.c (expand_epilogue): Likewise.
4263 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
4265         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4266         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4267         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4268         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
4269         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
4270         stack pointer register.
4271         (output_movhi): Remove code for interrupt specific writing to the 
4272         stack pointer register.
4274 2008-05-31  Richard Guenther  <rguenther@suse.de>
4276         PR tree-optimization/34244
4277         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4278         (tree_expr_nonzero_warnv_p): Likewise.
4279         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4280         ssa_name_nonnegative_p.
4281         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4282         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4283         not tree_expr_nonzero_warnv_p.
4285         PR tree-optimization/36262
4286         Revert
4287         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
4289         PR tree-optimization/34244
4290         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4291         (record_numbers_of_iterations): New function.
4292         (execute_vrp): Cache the numbers of iterations of loops.
4293         * tree-scalar-evolution.c (scev_reset_except_niters):
4294         New function.
4295         (scev_reset): Use scev_reset_except_niters.
4296         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4298 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4300         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4301         __WORKAROUND_RETS when appropriate.
4303 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4305         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4306         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4307         mode iterator.
4308         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4309         *fop_df_comm_sse insn patterns using MODEF mode iterator.
4310         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4311         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4312         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4313         *fop_df_1_mixed insn patterns using MODEF mode iterator.
4314         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4315         *fop_df_1_sse insn patterns using MODEF mode iterator.
4316         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4317         *fop_df_1_i387 insn patterns using MODEF mode iterator.
4318         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4319         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4320         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4321         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4322         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4323         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4324         (*fop_xf_4_i387): Use <MODE> for mode attribute.
4325         (*fop_xf_5_i387): Ditto.
4326         (*fop_xf_6_i387): Ditto.
4328 2008-05-30  Richard Guenther  <rguenther@suse.de>
4330         * builtins.c (build_string_literal): Avoid generating
4331         a non-gimple_val result.
4333 2008-05-30  DJ Delorie  <dj@redhat.com>
4335         * exec-tool.in: Use an environment variable (private) instead of a
4336         file (shared) as a semaphore, so as to not break parallel builds.
4338 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4340         * optabs.c (maybe_encapsulate_block): Remove.
4341         (emit_libcall_block): Adjust accordingly.
4342         * optabs.h (maybe_encapsulate_block): Remove prototype.
4344         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4345         Don't use maybe_encapsulate_block.
4347 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4349         * config/rs6000/rs6000.c (rs6000_legitimize_address,
4350         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4351         rtx is a SYMBOL_REF before calling get_pool_constant.
4353 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4355         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4357 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
4359         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4360         rather than OS names to choose INO_T_EQ definition.
4361         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4362         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4364 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
4366         PR target/36348
4367         * config/darwin-f.c: New.
4368         * config/t-darwin: Added rule to build darwin-f.o.
4369         * config.gcc: Defined new variable, fortran_target_objs.
4370         (*-*-darwin*): Set fortran_target_objs.
4371         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4372         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4373         * configure: Regenerated.
4375 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4377         PR target/35771
4378         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4379         canonical type if needed.
4381 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4383         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4385 2008-05-29  Richard Guenther  <rguenther@suse.de>
4387         PR tree-optimization/36343
4388         PR tree-optimization/36346
4389         PR tree-optimization/36347
4390         * tree-flow.h (clobber_what_p_points_to): Declare.
4391         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4392         pointed-to variable is dereferenced is irrelevant to whether
4393         the pointer can access the pointed-to variable.
4394         (clobber_what_p_points_to): New function.
4395         * tree-ssa-alias.c (set_initial_properties): Use it.
4396         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4397         call clobber check for NMTs.
4399 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4400         
4401         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4402         for printing gcov_type.
4404 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4406         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4407         and the eh region information.
4408         * value-prof.c (gimple_move_stmt_histograms): New function.
4409         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4411 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
4413         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4415 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
4417         * value-prof.c (tree_ic_transform): Print counts.
4418         * tree-profile.c (tree_gen_ic_func_profiler):
4419         Clear __gcov_indreict_call_callee variable to avoid misattribution
4420         of the profile.
4422 2008-05-28  Rafael Espindola  <espindola@google.com>
4424         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4425         invalid sharing.
4427 2008-05-28  Richard Guenther  <rguenther@suse.de>
4429         PR tree-optimization/36339
4430         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4431         and clobbering code out of the loop.
4433 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4435         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4436         letters defined.
4438         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4439         s390_contiguous_bitmask_p, s390_symref_operand_p,
4440         s390_check_symref_alignment, s390_reload_larl_operand,
4441         s390_reload_symref_address): New functions.
4442         (s390_branch_condition_mnemonic): Support compare and branch
4443         instructions.
4444         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4445         and 'W' constraints.
4446         (s390_secondary_reload): Add secondary reloads for unaligned
4447         symbol refs or symbol refs to floating point or QI/TI mode
4448         integer values.
4449         (legitimate_address_p): Accept symbol references as addresses.
4450         (s390_expand_insv): Use rotate and insert selected bits
4451         instruction for insv when building for z10.
4452         (print_operand_address): Handle symbol ref addresses.
4453         (print_operand): Output modifier 'c' added for signed byte values.
4454         (s390_encode_section_info): Mark symbol refs with
4455         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4457         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4458         (length attribute): RRF, RRR have 4 byte length.
4459         (FPALL, INTALL): New mode iterators added.
4460         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4461         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4462         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4463         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4464         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4465         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4466         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4467         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4468         instructions.
4469         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4470         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4471         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4472         reload<INTALL:mode><P:mode>_toreg_z10,
4473         reload<FPALL:mode><P:mode>_tomem_z10,
4474         reload<FPALL:mode><P:mode>_toreg_z10,
4475         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4476         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4477         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4478         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4479         definition.
4480         (movmem, clrmem, cmpmem): New splitters added.
4482         * config/s390/predicates.md (larl_operand): Use
4483         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4484         SYMBOL_REF_ALIGN1_P.
4485         (s390_signed_integer_comparison,
4486         s390_unsigned_integer_comparison): New predicates.
4488         * config/s390/s390-protos.h (s390_check_symref_alignment,
4489         s390_contiguous_bitmask_p, s390_reload_larl_operand,
4490         s390_reload_symref_address,
4491         s390_compare_and_branch_condition_mask): Prototypes added.
4493         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4494         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4495         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4497 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4499         * config/s390/s390.c (z10_cost): New cost function for z10.
4500         (s390_handle_arch_option, override_options): Support -march=z10 switch.
4501         (s390_issue_rate): Adjust issue rate for z10.
4502         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4503         (processor_flags): Add PF_Z10.
4504         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4505         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4506         * gcc/config.gcc: Add z10.
4508 2008-05-28  Richard Guenther  <rguenther@suse.de>
4510         PR tree-optimization/36291
4511         * tree-flow. h (struct gimple_df): Remove var_anns member.
4512         * tree-flow-inline.h (gimple_var_anns): Remove.
4513         (var_ann): Simplify.
4514         * tree-dfa.c (create_var_ann): Simplify.
4515         (remove_referenced_var): Clear alias info from var_anns of globals.
4516         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4517         (delete_tree_ssa): Clear alias info from var_anns of globals.
4518         Do not free var_anns.
4519         (var_ann_eq): Remove.
4520         (var_ann_hash): Likewise.
4522 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4524         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4525         and loongson2f entries.
4526         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4527         * config/mips/mips.h (processor_type): Add Loongson-2E
4528         and Loongson-2F entries.
4529         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4530         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4531         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4532         * doc/invoke.texi (MIPS Options): Document loongson2e
4533         and loongson2f processor names.
4535 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4537         PR target/35767
4538         PR target/35771
4539         * config/i386/i386.c (ix86_function_arg_boundary): Use
4540         alignment of canonical type.
4541         (ix86_expand_vector_move): Check unaligned memory access for
4542         all SSE modes.
4544 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4546         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4547         Moved to the front of file.
4549 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
4550             H.J. Lu  <hongjiu.lu@intel.com>
4552         * dwarf2out.c (current_fde): New.
4553         (add_cfi): Use it.
4554         (lookup_cfa:): Likewise.
4555         (dwarf2out_end_epilogue): Likewise.
4556         (dwarf2out_note_section_used): Likewise.
4558 2008-05-27  Michael Matz  <matz@suse.de>
4560         PR c++/27975
4561         * c.opt (Wenum-compare): New warning option.
4562         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
4564 2008-05-27  Michael Matz  <matz@suse.de>
4566         PR middle-end/36326
4567         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4568         non-BLKmode types.
4569         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4570         into memory as tail calls.
4572 2008-05-27  Richard Guenther  <rguenther@suse.de>
4574         PR tree-optimization/36339
4575         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4576         pointers cause all addressable variables to be call clobbered.
4578 2008-05-27  Richard Guenther  <rguenther@suse.de>
4580         PR tree-optimization/36245
4581         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4583 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4585         * config/s390/s390.md: Replace all occurences of the 'm'
4586         constraint with 'RT'.
4588 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4590         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4591         definitions added.
4592         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4593         "*movdi_64".
4594         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4595         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4596         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4598 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4600         * reload.c: (find_reloads): Skip alternatives according to the
4601         "enabled" attribute. Constify the constraint variable.
4602         * recog.c (get_attr_enabled): Add default implementation.
4603         (extract_insn): Set the alternative_enabled_p array
4604         in the recog_data struct.
4605         (preprocess_constraints, constrain_operands): Skip
4606         alternatives according to the "enabled" attribute
4607         * recog.h (struct recog_data): New field alternative_enabled_p.
4608         (skip_alternative): New inline function.
4609         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4610         (record_reg_classes): Skip alternative according to the
4611         "enabled" attribute.
4613         * doc/md.texi: Add documention for the "enabled" attribute.
4615 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4617         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4618         * postreload.c (reload_cse_simplify_operands): Replace 'm'
4619         constraint with TARGET_MEM_CONSTRAINT.
4620         * recog.c (asm_operand_ok, preprocess_constraints,
4621         constrain_operands): Likewise.
4622         * regclass.c (record_reg_classes): Likewise.
4623         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4624         * reload1.c (maybe_fix_stack_asms): Likewise.
4625         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4626         * recog.h: Adjust comment.
4627         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4628         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4629         * doc/md.texi: Add a note to description of 'm' constraint.
4630         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4632 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4634         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4635         that the bitfield is of integral type before testing its precision.
4637 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4638             Sa Liu  <saliu@de.ibm.com> 
4640         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
4641         __modti3, __udivti3, __umodti3 and __udivmodti4.
4642         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4643         that implement TImode mul and div functions.
4644         * config/spu/multi3.c: New. Implement __multi3.
4645         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4646         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4647         functions on SPU.
4649 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
4651         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4652         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4653         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4654         tls_sysv_suffix): New mode and mode attribute iterators.
4655         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4656         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4657         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4658         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4659         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4660         iterators.
4662 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4664         PR tree-optimization/36329
4665         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4666         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4667         * cgraphbuild.c (initialize_inline_failed): Use the latter
4668         macro in lieu of the former.
4669         * ipa-inline.c (cgraph_mark_inline): Likewise.
4670         (cgraph_decide_inlining_of_small_function): Likewise.
4671         (cgraph_decide_inlining): Likewise.
4672         (cgraph_decide_inlining_incrementally): Likewise.
4674 2008-05-26  Tristan Gingold  <gingold@adacore.com>
4675             Anatoly Sokolov  <aesok@post.ru>
4677         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4678         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4679         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
4680         optimization for 'avr6' architecture.
4682 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
4684         PR target/34932
4685         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4687 2008-05-26  Richard Guenther  <rguenther@suse.de>
4689         * tree-ssa-sccvn.c (expr_has_constants): Declare.
4690         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4692 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4694         PR middle-end/36253
4695         * caller-save.c (insert_restore): Verify alignment of spill space.
4696         (insert_save): Likewise.
4697         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4698         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4699         (STACK_SLOT_ALIGNMENT): Likewise.
4700         * function.c (LOCAL_ALIGNMENT): Removed.
4701         (get_stack_local_alignment): New.
4702         (assign_stack_local): Use it.  Set alignment on stack slot.
4703         (assign_stack_temp_for_type): Use get_stack_local_alignment.
4704         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4705         (STACK_SLOT_ALIGNMENT): New.
4706         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4707         stack slot in XFmode.
4709         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4711 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
4713         PR/36321
4714         * config/i386/i386.md (allocate_stack_worker_64): Make sure
4715         argument operand in rax isn't removed.
4717 2008-05-26  Richard Guenther  <rguenther@suse.de>
4719         PR middle-end/36300
4720         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4721         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
4723 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4725         PR bootstrap/36331
4726         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4728 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
4730         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4731         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4733 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4735         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4736         build a trampoline if we don't want one.
4737         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4738         return zero for nested functions if we don't want a trampoline.
4740 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4742         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4744 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4746         PR fortran/18428
4747         * c.opt: Removed undocumented option '-lang-fortran'.
4748         * c-common.h: Removed global variable 'lang_fortran'.
4749         * c-opts.c (c_common_handle_option): Removed code to handle
4750         option '-lang-fortran'. Updated includes.
4751         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4752         definition of '__GFORTRAN__'.
4753         (define__GNUC__): Reimplemented to use BASEVER and
4754         cpp_define_formatted.
4755         (builtin_define_with_value_n): Removed.
4756         * c-incpath.h: Renamed to ...
4757         * incpath.h: ... this.
4758         * c-incpath.c: Renamed to ...
4759         * incpath.c: ... this. Updated includes.
4760         * fix-header.c: Updated includes.
4761         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4762         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4763         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4765 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4767         * tree.h: Update the table of flags used on tree nodes.
4768         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4769         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4770         (FORCED_LABEL): Add access check.
4771         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4772         (ASM_INPUT_P): Likewise.
4773         (ASM_VOLATILE_P): Likewise.
4774         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4775         (OMP_SECTION_LAST): Access private_flag directly.
4776         (OMP_RETURN_NOWAIT): Likewise.
4777         (OMP_PARALLEL_COMBINED): Likewise.
4778         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4779         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4780         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4781         deprecated_flag directly.
4783 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4785         * final.c (frame_pointer_needed): Removed.
4786         * flags.h (frame_pointer_needed): Likewise.
4788         * function.h (rtl_data): Add frame_pointer_needed.
4789         (frame_pointer_needed): New.
4791 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
4793         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4795 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
4797         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4798         SRC is a REG.
4800 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
4802         * c-common.c (strip_array_types): Move function to..
4803         * tree.c: ..here.
4804         (get_inner_array_type): Delete.
4805         * c-common.h (strip_array_types): Move declaration to..
4806         * tree.h: ..here.
4807         (get_inner_array_type): Delete.
4808         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4809         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4810         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4811         * config/pa/pa.c (emit_move_sequence): Likewise.
4813 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4815         * config/i386/i386.md (*sse_prologue_save_insn): Set length
4816         attribute to 34.
4818 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
4820         * function.c: Include target hook for nonlocal_goto frame value.
4822 2008-05-24  Richard Guenther  <rguenther@suse.de>
4824         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
4825         variable can be only accessed through a pointer or a union.
4827 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4829         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
4830         * doc/extend.texi: Likewise.
4832 2008-05-23  DJ Delorie  <dj@redhat.com>
4834         * config/m32c/jump.md (untyped_call): Add.
4836         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
4837         for A24 to PSImode.
4838         (m32c_address_cost): Detail costs for indirect offsets.
4840 2008-05-23  Rafael Espindola  <espindola@google.com>
4842         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
4843         if a node is a SUBREG.
4844         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
4845         is a SUBREG.
4847 2008-05-23  Paul Brook  <paul@codesourcery.com>
4848             Carlos O'Donell  <carlos@codesourcery.com>
4850         * doc/extend.texi: Clarify use of __attribute__((naked)).
4851         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4852         * target.h (gcc_target): Add allocate_stack_slots_for_args.
4853         * function.c (use_register_for_decl): Use
4854         targetm.calls.allocate_stack_slots_for_args.
4855         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4856         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
4857         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4859 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4861         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
4863 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
4865         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
4866         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
4867         is only rounded once.
4869 2008-05-23  Richard Guenther  <rguenther@suse.de>
4871         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
4873 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
4874             Jakub Jelinek  <jakub@redhat.com>
4876         PR target/36079
4877         * configure.ac: Handle --enable-cld.
4878         * configure: Regenerated.
4879         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
4880         * config/i386/i386.h (struct machine_function): Add needs_cld field.
4881         (ix86_current_function_needs_cld): New define.
4882         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
4883         (cld): New isns pattern.
4884         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
4885         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
4886         * config/i386/i386.opt (mcld): New option.
4887         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
4888         TARGET_CLD and ix86_current_function_needs_cld.
4889         (override_options): Use -mcld by default for 32-bit code if
4890         USE_IX86_CLD.
4892         * doc/install.texi (Options specification): Document --enable-cld.
4893         * doc/invoke.texi (Machine Dependent Options)
4894         [i386 and x86-64 Options]: Add -mcld option.
4895         (Intel 386 and AMD x86-64 Options): Document -mcld option.
4897 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
4898         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
4899         (return_in_memory_64): Likewise.
4900         (return_in_memory_ms_64): Likewise.
4902 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4904         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
4905         * builtins.c (fold_builtin_fpclassify): New.
4906         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
4907         * builtins.def (BUILT_IN_FPCLASSIFY): New.
4908         * c-common.c (handle_type_generic_attribute): Adjust to accept
4909         fixed arguments before an elipsis.
4910         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
4911         * doc/extend.texi: Document __builtin_fpclassify.
4913 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
4915         * omp-low.c (gate_expand_omp_ssa): Remove.
4916         (pass_expand_omp_ssa): Remove.
4917         (gate_expand_omp): Do not check for flag_openmp_ssa.
4918         * common.opt (-fopenmp-ssa): Remove.
4919         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
4921 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4923         * config/sh/sh.opt (mfixed-range): New option.
4924         * config/sh/sh-protos.h (sh_fix_range): Declare.
4925         * config/sh/sh.c (sh_fix_range): New function.
4926         * config/sh/sh.h (sh_fixed_range_str): Declare.
4927         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
4928         is not empty.
4929         * doc/invoke.texi (SH Options): Document -mfixed-range.
4931 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
4933         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
4934         it before the redeclaration.
4936 2008-05-22  Anatoly Sokolov <aesok@post.ru>
4938         * config/avr/avr.c (get_sequence_length): Add new function.
4939         (expand_prologue, expand_epilogue): Remove duplicate code.
4941 2008-05-22  Rafael Espindola  <espindola@google.com>
4943         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
4944         sharing.
4946 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4948         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
4949         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
4951         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
4952         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
4953         (vect_update_misalignment_for_peel): Likewise.
4954         (vector_alignment_reachable_p): Likewise.
4955         * tree-vect-transform.c (vectorizable_load): Likewise.
4956         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4957         (get_vectype_for_scalar_type): Pass mode of scalar_type
4958         to UNITS_PER_SIMD_WORD.
4960         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
4961         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4962         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4963         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4964         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4966 2008-05-22  Ira Rosen  <irar@il.ibm.com>
4968         PR tree-optimization/36293
4969         * tree-vect-transform.c (vect_transform_strided_load): Don't check
4970         if the first load must be skipped because of a gap.
4972 2008-05-22  Richard Guenther  <rguenther@suse.de>
4974         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
4975         more cases of offset disambiguation that is possible if
4976         strict-aliasing rules apply.
4977         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
4978         for basic offset and type-based disambiguation.
4980 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4982         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
4983         ix86_expand_vector_set on V16QImode for SSE4.1.
4985 2008-05-21  Tom Tromey  <tromey@redhat.com>
4987         * c.opt (Wimport): Mark as undocumented.
4988         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
4989         -Wno-import.
4990         (Warning Options): Likewise.
4991         * doc/cppopts.texi: Don't mention -Wimport.
4993 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
4995         PR tree-optimization/36287
4996         PR tree-optimization/36286
4997         * lambda-code.c (build_access_matrix): Do not use the loop->num
4998         for computing the number of induction variables: use the loop depth
4999         instead.
5001 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
5003         PR/36280
5004         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5005         option -f(no-)leading-underscore.
5007 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5009         * config/i386/i386.c (ix86_expand_vector_init_general): Use
5010         GET_MODE_NUNITS (mode).
5012 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
5014         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5015         (-mmulhw): Add 464 to description.
5016         (-mdlmzb): Likewise.
5017         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5018         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5019         464fp entries.
5020         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5021         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5022         * config/rs6000/rs6000.md: Update comments for 464.
5024 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
5026         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5028 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5030         * config/i386/sse.md (vec_extractv4sf): Removed.
5031         (vec_extractv2df): Likewise.
5032         (vec_extractv2di): Likewise.
5033         (vec_extractv4si): Likewise.
5034         (vec_extractv8hi): Likewise.
5035         (vec_extractv16qi): Likewise.
5036         (vec_extract<mode>): New.
5038 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5040         * config/i386/sse.md (vec_setv4sf): Removed.
5041         (vec_setv2df): Likewise.
5042         (vec_setv2di): Likewise.
5043         (vec_setv4si): Likewise.
5044         (vec_setv8hi): Likewise.
5045         (vec_setv16qi): Likewise.
5046         (vec_set<mode>): New.
5048 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5050         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5051         goto for vec_concat and vec_interleave.
5053 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5055         * config/i386/sse.md (vec_initv4sf): Removed.
5056         (vec_initv2df): Likewise.
5057         (vec_initv2di): Likewise.
5058         (vec_initv4si): Likewise.
5059         (vec_initv8hi): Likewise.
5060         (vec_initv16qi): Likewise.
5061         (vec_init<mode>): New.
5063 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
5065         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5067 2008-05-21  Tom Tromey  <tromey@redhat.com>
5069         * ggc-zone.c (lookup_page_table_if_allocated): New function.
5070         (zone_find_object_offset): Likewise.
5071         (gt_ggc_m_S): Likewise.
5072         (highest_bit): Likewise.
5073         * ggc-page.c (gt_ggc_m_S): New function.
5074         * stringpool.c (string_stack): Remove.
5075         (init_stringpool): Update.
5076         (ggc_alloc_string): Use ggc_alloc.
5077         (maybe_delete_ident): New function.
5078         (ggc_purge_stringpool): Likewise.
5079         (gt_ggc_m_S): Remove.
5080         * ggc-common.c (ggc_protect_identifiers): New global.
5081         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
5082         ggc_protect_identifiers.
5083         * ggc.h (ggc_protect_identifiers): Declare.
5084         (gt_ggc_m_S): Update.
5085         (ggc_purge_stringpool): Declare.
5086         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5087         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5088         special case.
5089         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5091 2008-05-21  David S. Miller  <davem@davemloft.net>
5093         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5094         tmake_file.
5096 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5098         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5099         once finished.
5101 2008-05-20  David Daney  <ddaney@avtrex.com>
5103         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5104         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5105         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5106         UNSPEC_UPDATE_GOT_VERSION): Renumber.
5107         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5108         (atomic_hiqi_op): New define_code_iterator.
5109         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5110         mips_expand_compare_and_swap_12.
5111         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5112         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
5113         (sync_<optab><mode>, sync_old_<optab><mode>,
5114         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5115         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5116         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5117         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5118         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5119         (test_and_set_12): New insn.
5120         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5121         sync_new_<optab><mode>, sync_old_nand<mode>,
5122         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
5123         clobber to operand 0 for SI and DI mode insns.
5124         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5125         mips_gen_fn_4): New typedefs.
5126         (mips_gen_fn_ptrs): Define new union type.
5127         (mips_expand_compare_and_swap_12): Remove declaration.
5128         (mips_expand_atomic_qihi): Declare function.
5129         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5130         (mips_expand_atomic_qihi): ... this.  Use new generator function
5131         parameter.
5132         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5133         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5134         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5135         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5136         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5137         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5138         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5139         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5140         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5141         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5142         New macros.
5144 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5146         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5147         the missing break.
5149 2008-05-20  Anatoly Sokolov <aesok@post.ru>
5151         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5152         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5153         (avr_attribute_table): Add 'OS_main' function attribute.
5154         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5155         functions with 'OS_main' attribute.
5157 2008-05-20  Richard Guenther  <rguenther@suse.de>
5159         PR tree-optimization/35204
5160         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5161         helper, split out from ...
5162         (DFS): ... here.  Make the DFS walk non-recursive.
5164 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
5165             Jan Sjodin  <jan.sjodin@amd.com>
5167         PR tree-optimization/36181
5168         * tree-parloops.c (loop_has_vector_phi_nodes): New.
5169         (parallelize_loops): Don't parallelize when the loop has vector
5170         phi nodes.
5172 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5173             Sebastian Pop  <sebastian.pop@amd.com>
5175         * tree-loop-linear.c (gather_interchange_stats): Look in the access
5176         matrix, and never look at the tree representation of the memory
5177         accesses.
5178         (linear_transform_loops): Computes parameters and access matrices.
5179         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5180         when fails.
5181         (access_matrix_get_index_for_parameter): New.
5182         * tree-data-ref.h (struct access_matrix): New.
5183         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5184         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5185         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5186         am_vector_index_for_loop): New.
5187         (struct data_reference): Add field access_matrix.
5188         (DR_ACCESS_MATRIX): New.
5189         (compute_data_dependences_for_loop): Update declaration.
5190         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5191         * lambda.h (lambda_vector_vec_p): Declared.
5192         * lambda-code.c: Depend on pointer-set.h.
5193         (lambda_collect_parameters_from_af, lambda_collect_parameters,
5194         av_for_af_base, av_for_af, build_access_matrix,
5195         lambda_compute_access_matrices): New.
5196         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5198 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
5200         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5201         $SOURCEDIR/include.
5203 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5204             Sebastian Pop  <sebastian.pop@amd.com>
5206         PR tree-optimization/36206
5207         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5208         FOLD_CONVERSIONS.
5209         (instantiate_scev_1): Rename flags to fold_conversions.
5210         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5211         outeside instantiation_loop.
5212         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5213         (evolution_function_is_affine_or_constant_p): Removed.
5214         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5215         instantiate_scev.
5216         (analyze_siv_subscript): Pass in the loop nest number.
5217         Call evolution_function_is_affine_in_loop instead of 
5218         evolution_function_is_affine_p.
5219         (analyze_overlapping_iterations): Pass in the loop nest number.
5221 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5222             Sebastian Pop  <sebastian.pop@amd.com>
5224         PR tree-optimization/36206
5225         * tree-chrec.h (chrec_fold_op): New.
5226         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5227         and other trees.
5229 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
5231         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5232         (DIRS_EQ): New.
5233         (remove_duplicates): Do not set inode on non-inode systems.
5234         Use DIRS_EQ.
5236 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5238         * config.gcc (tm_file): Update comments about relative pathnames.
5240 2008-05-20  Richard Guenther  <rguenther@suse.de>
5242         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5243         * tree-ssa-sccvn.c (process_scc): Likewise.
5244         * tree-ssa-sink.c (execute_sink_code): Likewise.
5245         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5246         * tree-vrp.c (process_assert_insertions): Likewise.
5247         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5248         (perform_tree_ssa_dce): Likewise.
5249         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5250         (dump_dominator_optimization_stats): Likewise.
5251         * tree-vectorizer.c (vectorize_loops): Likewise.
5253 2008-05-20  Richard Guenther  <rguenther@suse.de>
5255         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5257 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
5259         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5260         (ix86_i386elf_return_in_memory): Likewise.
5261         (ix86_i386interix_return_in_memory): Likewise.
5262         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5263         (SUBTARGET_RETURN_IN_MEMORY): New.
5264         * config/i386/i386elf.h: Likewise.
5265         * config/i386/ptx4-i.h: Likewise.
5266         * config/i386/sol2-10.h: Likewise.
5267         * config/i386/sysv4.h: Likewise.
5268         * config/i386/vx-common.h: Likewise.
5269         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5270         * config/i386/i386.c (ix86_return_in_memory): Made static and
5271         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5272         (ix86_i386elf_return_in_memory): Removed.
5273         (ix86_i386interix_return_in_memory): Removed.
5274         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5275         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5277 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
5279         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5281 2008-05-19  Xinliang David Li  <davidxl@google.com>
5283         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
5284         * opts.c: Ditto.
5285         * common.opt: Ditto.
5286         * doc/invoke.texi: Ditto.
5288 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5290         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5291         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5293 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5295         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5296         sizes of operand array from 8/4 to 4/2.
5297         (ix86_expand_vector_init_general): Change size of operand array
5298         from 32 to 16.  Remove op0, op1 and half_mode.
5300 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5302         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5303         (ix86_expand_vector_init_interleave): Likewise.
5304         (ix86_expand_vector_init_general): Use them.  Assert
5305         word_mode == SImode when n_words == 4.
5307 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
5309         * config/i386/i386.c (ix86_secondary_reload): New static function.
5310         (TARGET_SECONDARY_RELOAD): New define.
5311         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5312         * config/i386/i386.md (reload_outqi): Remove.
5314 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5316         PR middle-end/35509
5317         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5318         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
5319         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5320         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5321         (fold_builtin_1): Likewise.
5322         * builtins.def (BUILT_IN_ISINF_SIGN): New.
5323         c-common.c (check_builtin_function_arguments): Handle
5324         BUILT_IN_ISINF_SIGN.
5325         * doc/extend.texi: Document __builtin_isinf_sign.
5326         * fold-const.c (operand_equal_p): Handle COND_EXPR.
5328 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
5330         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5331         EH cleanup at the end of the pass, search for those that have been
5332         turned into forwarder blocks and do the cleanup on their successor.
5334 2008-05-18  Richard Guenther  <rguenther@suse.de>
5336         * tree-cfg.c (verify_gimple_expr): Allow conversions from
5337         pointers to sizetype and vice versa.
5339 2008-05-18 Xinliang David Li   <davidxl@google.com>
5341         * gcc/tree-ssa-dce.c: Coding style fix.
5342         (check_pow): Documentation comment. 
5343         (check_log): Documenation comment. Coding style fix.
5344         (is_unnecessary_except_errno_call): Ditto.
5345         (gen_conditions_for_pow): Ditto.
5346         (gen_conditions_for_log): Ditto.
5347         (gen_shrink_wrap_conditions): Ditto.
5348         (shrink_wrap_one_built_in_calls): Ditto.
5349         * gcc/doc/invoke.texi: Better documentation string.
5350         * ChangeLog: Fix wrong change log entries from 
5351         May 17 checkin on function call DCE.
5353 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5355         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5357 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
5359         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5360         * df-problems.c (simulation routines): Fixed block comment to
5361         properly say how to add forwards scanning functions.
5362         
5363 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5365         * tree-inline.c (setup_one_parameter): Remove dead code.
5367 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5369         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5370         a BIT_AND_EXPR only for an INTEGER_TYPE.
5372 2008-05-17 Xinliang David Li   <davidxl@google.com>
5374         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5375         (check_pow, check_log, is_unnecessary_except_errno_call): New 
5376         functions to check for eliminating math functions that are pure 
5377         except for setting errno.
5378         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5379         general condition expressions for shrink-wrapping pow/log calls.
5380         (gen_shrink_wrap_conditions): Ditto.
5381         (shrink_wrap_one_built_in_call): Ditto.
5382         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5383         (mark_operand_necessary): If debugging, output if OP is necessary.
5384         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5385         unnecessary.
5386         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5387         opt level >= 2.
5388         * gcc/common.opt: New user flag -ftree-builtin-dce.
5389         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5391 2008-05-16  David S. Miller  <davem@davemloft.net>
5393         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5394         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5396 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
5398         PR target/36246
5399         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5401 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5403         * ifcvt.c (dead_or_predicable): Rename
5404         df_simulate_one_insn_backwards to df_simulate_one_insn.
5405         * recog.c (peephole2_optimize): Ditto.
5406         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5407         Ditto.
5408         * df.h: Rename df_simulate_one_insn_backwards to
5409         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
5410         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5411         scanning of defs and uses.
5412         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5413         (df_simulate_one_insn_forwards): Removed.
5415 2008-05-16  Doug Kwan  <dougkwan@google.com>
5417         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5418         QNaN & SNaN.
5419         (real_from_string): Handle NaNs and Inf as approriate.
5421 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5423         * doc/gty.texi (Source Files Containing Type Information): Note
5424         that headers should appear first in the gtfiles list.
5426 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5428         * tree.def (COND_EXEC): Properly documented this code.
5430 2008-05-16  Diego Novillo  <dnovillo@google.com>
5432         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5433         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5434         the new field.
5436 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5438         * tree-ssa-dse (max_stmt_uid): Removed.
5439         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
5440         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5441         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5442         * function.h (cfun.last_stmt_uid): New field.
5443         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5444         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5445         New functions.
5446         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5447         (create_stmt_ann): Initialize the ann->uid field.
5448         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5449         with new calls.
5450         * tree-flow.h (renumber_gimple_stmt_uids): New function.
5452 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5454         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5455         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5456         (init_empty_tree_cfg): Call it.
5458 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5460         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
5461         Update all users.
5463 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5465         * doc/invoke.text (-fdump-tree-*-verbose): New option.
5466         * tree-dump.c (dump_options): New verbose option.
5467         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5468         Add verbose dump.
5469         * tree-pass.h (TDF_VERBOSE): New dump flag.
5470         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5471         (tree-flow.h): Added include.
5472         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
5474 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
5476         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5478         From Jie Zhang  <jie.zhang@analog.com>
5479         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5480         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5481         mcpu=bf561-none and mcpu=bf561-0.2.
5482         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5483         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5484         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5485         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5486         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5487         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5488         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
5489         option.
5490         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5491         (cputype_selected): Remove.
5492         (bfin_handle_option): Don't use cputype_selected.
5493         (override_options): When no mcpu option, enable all workarounds.
5494         Don't use bfin_workarounds.
5495         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5496         processor type.
5497         (DEFAULT_CPU_TYPE): Don't define.
5499 2008-05-16  Richard Guenther  <rguenther@suse.de>
5501         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5502         on deletion of the last stmt.
5504 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5506         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5507         V8HImode for SSE2 and V16QImode for SSE4.1.
5509 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
5511         * cgraph.h (compute_inline_parameters): Made public.
5512         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5513         variable_generate_summary, function_write_summary,
5514         variable_write_summary, variable_read_summary.  Added generate_summary,
5515         write_summary, read_summary.
5516         * cgraphunit.c (cgraph_process_new_functions): Changed call from
5517         pass_ipa_inline.function_generate_summary, to
5518         compute_inline_parameters. 
5519         * ipa-inline.c (compute_inline_parameters): Made public and added
5520         node parameter.
5521         (compute_inline_parameters_for_current): New function.
5522         (pass_inline_param): Now calls compute_inline_parameters_for_current.
5523         (inline_generate_summary): Removed parameter and made to loop over
5524         all cgraph nodes.
5525         (pass_ipa_inline): Updated for new IPA_PASS structure.
5526         * passes.c (execute_ipa_summary_passes): Now is called once per
5527         pass rather than once per node*pass.
5528         
5529 2008-05-15  Anatoly Sokolov <aesok@post.ru>
5531         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
5532         avr_have_mul_p, avr_asm_only_p): Remove variables.
5533         (avr_override_options): Remove initialization of removed variables.
5534         (avr_file_start):  Convert removed variables to fields of 
5535         'struct base_arch_s *avr_current_arch'. 
5536         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5537         (AVR_HAVE_MUL): (Ditto.).
5538         (AVR_HAVE_MOVW): (Ditto.).
5539         (AVR_HAVE_LPMX): (Ditto.). 
5540         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
5541         avr_asm_only_p): Remove declaration.
5543 2008-05-15  Diego Novillo  <dnovillo@google.com>
5545         * config/arm/arm.c (arm_return_in_memory): Fix return type.
5546         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5548 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
5550         PR middle-end/36194
5551         * combine.c (check_conversion): Rename back to check_promoted_subreg.
5552         Don't call record_truncated_value from here.
5553         (record_truncated_value): Turn it into a for_each_rtx callback.
5554         (record_truncated_values): New function.
5555         (combine_instructions): Call note_uses with record_truncated_values.
5556         Change name of check_conversion to check_promoted_subreg. 
5558 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5560         * doc/sourcebuild.texi: Document support for torture tests.
5562 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5564         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5565         to alternative 4 of operand 2.
5567 2008-05-15  Richard Guenther  <rguenther@suse.de>
5569         * tree-pass.h (current_pass): Declare.
5570         (get_pass_for_id): Likewise.
5571         * passes.c (passes_by_id, passes_by_id_size): New globals.
5572         (set_pass_for_id): New function.
5573         (get_pass_for_id): Likewise.
5574         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5575         (execute_function_todo): Flush per function statistics.
5576         * toplev.c (compile_file): Init statistics.
5577         (general_init): Do early statistics initialization.
5578         (finalize): Finish statistics.
5579         * statistics.h (statistics_early_init): Declare.
5580         (statistics_init): Likewise.
5581         (statistics_fini): Likewise.
5582         (statistics_fini_pass): Likewise.
5583         (statistics_counter_event): Likewise.
5584         (statistics_histogram_event): Likewise.
5585         * statistics.c: New file.
5586         * Makefile.in (OBJS-common): Add statistics.o.
5587         (statistics.o): Add dependencies.
5588         * doc/invoke.texi (-fdump-statistics): Document.
5590         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5591         (insert): Likewise.
5592         (execute_pre): Use statistics_counter_event.
5593         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5594         (substitute_and_fold): Increment it.  Use statistics_counter_event.
5596 2008-05-15  Diego Novillo  <dnovillo@google.com>
5598         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5600         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5601         * tree-ssa-alias.c (new_type_alias): Remove references to
5602         sub-variables from comment.
5603         * tree-ssa-operands.c (swap_tree_operands): Likewise.
5605 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5607         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5608         attribute to 1 only for insertps alternative.
5610 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5612         * config/bfin/bfin.md (loadbytes): New pattern.
5613         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5614         (bfin_init_builtins): Initialize it.
5615         (bdesc_1arg): Add it.
5617 2008-05-15  Sa Liu  <saliu@de.ibm.com>
5619         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5620         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5621         * testsuite/lib/target-supports.exp: Add
5622         check_effective_target_fortran_integer_16.
5624 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5626         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5627         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5628         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
5629         (TARGET_RETURN_IN_MEMORY): Define.
5631 2008-05-15  Richard Guenther  <rguenther@suse.de>
5633         PR middle-end/36244
5634         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5635         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5636         represent unmodifiable vars.
5638 2008-05-15  Richard Guenther  <rguenther@suse.de>
5640         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5641         INDIRECT_REF and TARGET_MEM_REF.
5642         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5643         TARGET_MEM_REF.
5645 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5646             H.J. Lu  <hongjiu.lu@intel.com>
5648         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5649         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5650         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
5651         insn alternatives.  Add missing alternatives.
5652         (*vec_concatv2di_rex64_sse4_1): Likewise.
5653         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5654         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5655         Require TARGET_SSE.
5657 2008-05-15  Richard Guenther  <rguenther@suse.de>
5659         PR tree-optimization/36009
5660         PR tree-optimization/36204
5661         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5662         (determine_invariantness_stmt): Record the loop a store is
5663         always executed in.
5664         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5665         dependency.
5667 2008-05-15  Richard Guenther  <rguenther@suse.de>
5669         PR tree-optimization/34330
5670         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5671         through the pointer will alias the SMT.
5673 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
5675         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5677 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5679         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5681 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5682             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5684         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5685         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5686         (vashl_optab): New optab for vector/vector shifts.
5687         (vashr_optab): Ditto.
5688         (vlshr_optab): Ditto.
5689         (vrotl_optab): Ditto.
5690         (vrotr_optab): Ditto.
5691         (optab_subtype): New enum for optab_for_tree_code call.
5692         (optab_for_tree_code): Add enum optab_subtype argument.
5694         * optabs.c (optab_for_tree_code): Take an additional argument to
5695         distinguish between a vector shift by a scalar and vector shift by
5696         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
5697         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
5698         vector shift by a vector.
5699         (expand_widen_pattern_expr): Pass additional argument to
5700         optab_for_tree_code.
5702         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5703         vrotl_optab, vrotr_optab.
5705         * expr.c (expand_expr_real_1): Update calls to
5706         optab_for_tree_code to distinguish between vector shifted by a
5707         scalar and vector shifted by a vector.
5708         * tree-vectorizer.c (supportable_widening_operation): Ditto.
5709         (supportable_narrowing_operation): Ditto.
5710         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5711         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5712         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5713         (vect_create_epilog_for_reduction): Ditto.
5714         (vectorizable_reduction): Ditto.
5715         (vectorizable_operation): Ditto.
5716         (vect_strided_store_supported): Ditto.
5717         (vect_strided_load_supported): Ditto.
5718         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5719         * expmed.c (expand_shift): Ditto.
5721         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5722         scalar type.
5723         (ashr@var{m}3): Ditto.
5724         (vashl@var{m}3): Document new vector/vector shift standard name.
5725         (vashr@var{m}3): Ditto.
5726         (vlshr@var{m}3): Ditto.
5727         (vrotl@var{m}3): Ditto.
5728         (vrotr@var{m}3): Ditto.
5730         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5731         (PPERM_INVERT): Ditto.
5732         (PPERM_REVERSE): Ditto.
5733         (PPERM_REV_INV): Ditto.
5734         (PPERM_ZERO): Ditto.
5735         (PPERM_ONES): Ditto.
5736         (PPERM_SIGN): Ditto.
5737         (PPERM_INV_SIGN): Ditto.
5738         (PPERM_SRC1): Ditto.
5739         (PPERM_SRC2): Ditto.
5741         * config/i386/sse.md (mulv2di3): Add SSE5 support.
5742         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5743         allows a memory operand to be the value being added, and split it
5744         to improve vectorization.
5745         (sse5_pmacsdqh_mem): Ditto.
5746         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5747         (sse5_mulv2div2di3_high): Ditto.
5748         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5749         (vec_pack_trunc_v4si): Ditto.
5750         (vec_pack_trunc_v2di): Ditto.
5751         (sse5_pcmov_<mode>): Remove code that tried to use use
5752         andps/andnps instead of pcmov.
5753         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5754         pmacsdqh instructions.
5755         (vec_widen_smult_lo_v4si): Ditto.
5757         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5758         (PPERM_INVERT): Ditto.
5759         (PPERM_REVERSE): Ditto.
5760         (PPERM_REV_INV): Ditto.
5761         (PPERM_ZERO): Ditto.
5762         (PPERM_ONES): Ditto.
5763         (PPERM_SIGN): Ditto.
5764         (PPERM_INV_SIGN): Ditto.
5765         (PPERM_SRC1): Ditto.
5766         (PPERM_SRC2): Ditto.
5767         (ix86_expand_sse_movcc): Move the SSE5 test after the if
5768         true/false tests.
5769         (ix86_expand_int_vcond): If SSE5 generate all possible integer
5770         comparisons.
5771         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5772         says ignore whether the last reference is a memory operand.
5774 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5775             Paolo Bonzini <bonzini at gnu dot org>
5777         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5778         shift patterns.
5780         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5781         (vlshr<mode>3): Rename from vlshr<mode>3.
5782         (vashr<mode>3): Rename from vashr<mode>3.
5783         (mulv4sf3): Change the names of vector shift patterns.
5784         (mulv4si3): Ditto.
5785         (negv4sf2): Ditt.
5787         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5788         shift insns.
5790         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5791         (SI_SHLHI): Ditto.
5792         (SI_SHL): Ditto.
5793         (SI_SHLI): Ditto.
5794         (SI_ROTH): Ditto.
5795         (SI_ROTHI): Ditto.
5796         (SI_ROT): Ditto.
5797         (SI_ROTI): Ditto.
5798         (SPU_RL_0): Ditto.
5799         (SPU_RL_1): Ditto.
5800         (SPU_RL_2): Ditto.
5801         (SPU_RL_3): Ditto.
5802         (SPU_RL_4): Ditto.
5803         (SPU_RL_5): Ditto.
5804         (SPU_RL_6): Ditto.
5805         (SPU_RL_7): Ditto.
5806         (SPU_SL_0): Ditto.
5807         (SPU_SL_1): Ditto.
5808         (SPU_SL_2): Ditto.
5809         (SPU_SL_3): Ditto.
5810         (SPU_SL_4): Ditto.
5811         (SPU_SL_5): Ditto.
5812         (SPU_SL_6): Ditto.
5813         (SPU_SL_7): Ditto.
5815         * config/spu/spu.md (v): New iterator macro to add v for vector types.
5816         (floatunssidf2_internal): Change vector/vector shift names.
5817         (floatunsdidf2_internal): Ditto.
5818         (mulv8hi3): Ditto.
5819         (ashrdi3): Ditto.
5820         (ashrti3): Ditto.
5821         (cgt_df): Ditto.
5822         (cgt_v2df): Ditto.
5823         (dftsv): Ditto.
5824         (vashl<mode>3): Rename from ashl<mode>3.
5825         (vashr<mode>3): Rename from ashr<mode>3.
5826         (vlshr<mode>3): Rename from lshr<mode>3.
5827         (vrotl<mode>3): Rename from rotl<mode>3.
5829 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5831         PR target/36224
5832         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
5833         multiply gives the wrong value when doing widening multiplies.
5834         (vec_widen_smult_lo_v4si): Ditto.
5836 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5838         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
5839         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
5840         emit_library_call_value. 
5841         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
5842         * tree.h (ECF_LIBCALL_BLOCK): Removed.
5843         * calls.c (initialize_argument_information, precompute_arguments, 
5844         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
5845         (precompute_arguments): Removed flags parameter.
5846         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
5847         
5848 2008-05-14  Richard Guenther  <rguenther@suse.de>
5850         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
5851         Make sure to register the store if the use is a PHI_NODE.
5853 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5855         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
5856         memory if the component is to be referenced in BLKmode according
5857         to get_inner_reference.
5859 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
5861         * calls.c (emit_library_call_value_1): Restore code clearing
5862         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
5864 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5865             Nicolas Roche  <roche@adacore.com>
5867         * configure.ac: Add support for a "gcc_subdir" variable in
5868         config-lang.in, to denote a subdirectory where the language/GCC
5869         integration files are to be found.
5870         * configure: Regenerate.
5872 2008-05-14  Ira Rosen  <irar@il.ibm.com>
5874         PR tree-optimization/36098
5875         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
5876         value for the first load in the group in case of a gap.
5877         (vect_build_slp_tree): Check that there are no gaps in loads.
5879 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5881         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
5882         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
5883         expand_copysign_bit, ): Change call to emit_no_conflict_block to
5884         emit_insn and remove unneeded code to construct extra args.
5885         (emit_no_conflict_block): Removed.
5886         * optabls.h: (emit_no_conflict_block): Removed.
5887         * cse.c (cse_extended_basic_block): Remove search for
5888         REG_NO_CONFLICT note.
5889         * global.c: Removed incorrect comment added in revision 117.
5890         * expr.c (convert_move): Change call to emit_no_conflict_block to
5891         emit_insn.
5892         * recog.c: Change comments so that they do not mention
5893         REG_NO_CONFLICT.
5894         * local_alloc.c (combine_regs): Removed last parameter.
5895         (no_conflict_p): Removed.
5896         (block_alloc): Removed note, no_conflict_combined_regno and set
5897         local vars. Removed all code to process REG_NO_CONFLICT blocks.
5898         (combine_regs): Removed already_dead and code to look for
5899         REG_NO_CONFLICT notes.
5900         * lower_subreg (remove_retval_note): Removed code to look for
5901         REG_NO_CONFLICT block.
5902         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
5903         (resolve_clobber): Remove code to process libcalls that have
5904         REG_NO_CONFLICT notes.
5905         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
5906         case.
5907         * combine.c (can_combine_p, distribute_notes):  Removed
5908         REG_NO_CONFLICT case.
5909         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
5910         to emit_insns.
5911         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
5912         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
5913         Ditto.
5914         * reg-notes.def (NO_CONFLICT): Removed.
5916 2008-05-14  David S. Miller  <davem@davemloft.net>
5918         * config/sparc/sparc.c (sparc_profile_hook): If
5919         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
5920         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
5921         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5923 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5925         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
5927 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
5929         PR target/36222
5930         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
5931         and op1 expansion before vector concat to have less live pseudos.
5933 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5935         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
5936         ix86_expand_vector_set if supported.
5938 2008-05-13  Diego Novillo  <dnovillo@google.com>
5939             Kenneth Zadeck  <zadeck@naturalbridge.com>
5941         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
5943         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
5944         phinodes_print_statistics, init_ssanames, fini_ssanames,
5945         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
5946         release_ssa_name, release_defs, replace_ssa_name_symbol,
5947         ssanames_print_statistics): Move ...
5948         * tree-flow.h: ... here.
5949         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
5950         Use FN instead of cfun.
5951         (make_ssa_name_fn): Rename from make_ssa_name.
5952         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
5953         * tree-flow-inline.h (make_ssa_name): Move from
5954         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
5955         * omp-low.c (expand_omp_parallel):
5956         * tree-flow-inline.h (redirect_edge_var_map_result):
5957         * tree-ssa.c (init_tree_ssa): Add argument FN.
5958         Use it instead of cfun.  Update all users.
5960 2008-05-13  Tom Tromey  <tromey@redhat.com>
5962         PR preprocessor/22168:
5963         * doc/cpp.texi (Top): Update menu.
5964         (Alternatives to Wrapper #ifndef): New node.
5965         (Other Directives): Document deprecation.
5966         (Obsolete Features): Remove menu.
5967         (Assertions): Merge node into Obsolete Features.
5968         (Obsolete once-only headers): Move earlier; rename to Alternatives
5969         to Wrapper #ifndef.
5970         * doc/cppopts.texi: Update.
5971         * c.opt (Wdeprecated): Enable for C and ObjC.
5972         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
5973         (C++ Dialect Options): Move -Wno-deprecated from here to...
5974         (Warning Options): ... here.
5976 2008-05-13  Richard Guenther  <rguenther@suse.de>
5978         PR middle-end/36227
5979         * fold-const.c (fold_sign_changed_comparison): Do not allow
5980         changes in pointer-ness.
5982 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5984         PR target/24713
5985         * config/sh/sh.c (sh_expand_prologue): Don't clear
5986         RTX_FRAME_RELATED_P for push insns.
5988 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
5990         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
5992 2008-05-12  Anatoly Sokolov <aesok@post.ru>
5994         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
5995         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
5996         Use 'machine->is_leaf' instead of 'leaf_func_p'.
5998 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
6000         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6001         (*vec_concatv4sf_sse): This.
6002         (*sse2_concatv2si): Renamed to ...
6003         (*vec_concatv2si_sse2): This.
6004         (*sse1_concatv2si): Renamed to ...
6005         (*vec_concatv2si_sse): This.
6006         (*vec_concatv2di_rex): Renamed to ...
6007         (*vec_concatv2di_rex64): This.
6008         (*vec_concatv2si_sse4_1): New.
6009         (*vec_concatv2di_rex64_sse4_1): Likewise.
6011 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
6013         PR rtl-optimization/36111
6014         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6015         that was created for swappable operands.
6017 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
6019         PR ada/36001
6020         * Makefile.in: Substitute GNATMAKE and GNATBIND.
6021         * configure.ac: Add call to ACX_PROG_GNAT.
6023 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
6025         * optc-gen.awk: Fix comment typo.
6027 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6029         * pretty-print.c (pp_integer_with_precision): Use
6030         HOST_LONG_LONG_FORMAT.
6032 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
6034         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6035                 
6036 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6038         * config/i386/i386.c (bdesc_ptest): Removed.
6039         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6040         (bdesc_args): Add __builtin_ia32_ptestz128,
6041         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6042         (ix86_init_mmx_sse_builtins): Updated.
6043         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6044         (ix86_expand_builtin): Updated.
6046 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
6048         * tree-cfg.c (valid_fixed_convert_types_p): New function.
6049         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6051 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
6053         * value-prof.c (interesting_stringop_to_profile): Do not
6054         return early for BUILT_IN_MEMPCPY.
6056 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6058         * calls.c (expand_call): Don't use callgraph to increase
6059         preferred_stack_boundary.
6061         * cgraph.h (cgraph_rtl_info): Use unsigned on
6062         preferred_incoming_stack_boundary.
6064         * final.c (rest_of_clean_state): Use unsigned on
6065         preferred_stack_boundary.
6067 2008-05-09  Tom Tromey  <tromey@redhat.com>
6069         PR preprocessor/22231:
6070         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6071         proceeding.
6073 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
6075         PR tree-optimization/36129
6076         * tree-ssa-ccp.c: Include value-prof.h.
6077         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6078         built-in function was folded to a constant.
6079         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6081 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
6082             Sebastian Pop  <sebastian.pop@amd.com>
6084         * tree-scalar-evolution.c: Document instantiate_scev.
6085         (instantiate_parameters_1): Renamed instantiate_scev_1.
6086         Don't use the same loop for instantiation_loop and evolution_loop.
6087         (instantiate_scev): New.
6088         (instantiate_parameters): Moved...
6089         (resolve_mixers): Update call to instantiate_scev_1 to pass the
6090         same loop twice.  Maintains the semantics for this function.
6091         * tree-scalar-evolution.h (instantiate_scev): Declare.
6092         (instantiate_parameters): ...here.  Now static inline.
6093         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6094         instead of resolve_mixers.
6096 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6098         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6100 2008-05-09  Tomas Bily  <tbily@suse.cz>
6102         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6103         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6104         * tree-ssa-structalias.c (get_constraint_for): Likewise.
6105         * c-common.c (c_common_truthvalue_conversion): Likewise.
6106         * tree-object-size.c (compute_object_offset): Likewise.
6107         * tree-inline.c (estimate_num_insns_1): Likewise.
6108         * varasm.c (const_hash_1, compare_constant, copy_constant)
6109         (compute_reloc_for_constant, output_addressed_constants)
6110         (initializer_constant_valid_p): Likewise.
6111         * c-omp.c (check_omp_for_incr_expr): Likewise.
6112         * gimplify.c (gimplify_expr): Likewise.
6113         * c-typeck.c (c_finish_return): Likewise.
6114         * tree-vectorizer.c (supportable_widening_operation)
6115         (supportable_narrowing_operation): Likewise.
6116         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6117         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6118         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6119         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6120         (descr_info_loc): Likewise.
6121         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6122         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6123         (fold_unary): Likewise.
6124         * builtins.c (get_pointer_alignment): Likewise.
6125         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6126         (instantiate_parameters_1): Likewise.
6127         * tree.c (expr_align, stabilize_reference): Likewise.
6128         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6129         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6130         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6131         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6132         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6133         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6134         Likewise.
6135         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6136         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6137         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6138         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6139         (forward_propagate_comparison)
6140         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6141         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6142         * emit-rtl.c (component_ref_for_mem_expr)
6143         (set_mem_attributes_minus_bitpos): Likewise.
6144         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6145         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6146         Likewise.
6147         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6148         (build_function_call, pointer_diff, build_compound_expr)
6149         (c_finish_return): Likewise.
6150         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6151         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6152         Likewise.
6153         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6154         * expr.c (is_aligning_offset): Likewise.
6155         * tree-ssa-alias.c (is_escape_site): Likewise.
6156         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6157         (check_all_va_list_escapes): Likewise.
6158         * tree-ssa-loop-ivopts.c (determine_base_object)
6159         (determine_common_wider_type): Likewise.
6160         * dojump.c (do_jump): Likewise.
6161         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6162         * tree-gimple.c (is_gimple_cast): Likewise.
6163         * fold-const.c (decode_field_reference, )
6164         (fold_sign_changed_comparison, fold_unary, fold_comparison)
6165         (fold_binary): Likewise.
6166         * tree-ssa-alias-warnings.c (find_alias_site_helper)
6167         (already_warned_in_frontend_p): Likewise.
6168         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6169         * tree.c (really_constant_p, get_unwidened): Likewise.
6170         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6171         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6172         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6173         Likewise.
6174         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6175         CONVERT_EXPR_P.
6176         (CONVERT_EXPR_P): Define.
6177         (CASE_CONVERT): Define.
6178         
6179 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
6181         PR middle-end/36117
6182         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6183         (delete_unmarked_insns): When deleting a call, call
6184         delete_unreachable_blocks.
6185         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6186         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6188 2008-05-08  Richard Guenther  <rguenther@suse.de>
6190         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6191         (-ftree-salias): Likewise.
6192         (salias-max-implicit-fields): Remove param documentation.
6193         (salias-max-array-elements): Likewise.
6194         * tree-pass.h (pass_create_structure_vars): Remove.
6195         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6196         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6197         * tree-ssa-alias.c (create_structure_vars): Remove.
6198         (gate_structure_vars): Likewise.
6199         (pass_create_structure_vars): Likewise.
6200         (gate_build_alias): Likewise.
6201         (pass_build_alias): Adjust to run always and dump the function.
6202         * common.opt (ftree-salias): Hide.
6203         * passes.c (init_optimization_passes): Remove
6204         pass_create_structure_vars, adjust comment.
6205         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6206         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6207         * opts.c (decode_options): Do not set flag_tree_salias.
6208         (common_handle_option): Add OPT_ftree_salias to the backward
6209         compatibility section.
6211 2008-05-08  Richard Guenther  <rguenther@suse.de>
6213         * tree-flow-inline.h (var_can_have_subvars): Move ...
6214         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6215         * tree-flow.h (var_can_have_subvars): Remove.
6216         (push_fields_onto_fieldstack): Remove.
6217         (sort_fieldstack): Likewise.
6218         (struct fieldoff): Move ...
6219         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
6220         alias_set and base_for_components fields.
6221         (sort_fieldstack): Make static.
6222         (push_fields_onto_fieldstack): Likewise.  Remove code that
6223         handles anything but RECORD_TYPEs.  Remove alias_set and
6224         base_for_components handling.
6225         (create_variable_info_for): Adjust.
6227 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
6229         * common.opt (Wframe-larger-than=): Shorten the help message
6230         to one line.
6231         * doc/invoke.texi (Wframe-larger-than=): Add more description.
6233 2008-05-08  Rafael Espindola  <espindola@google.com>
6235         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6236         trap.
6237         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6238         trap and that both operands are gimple values.
6239         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6240         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6241         is a fp operation.
6243 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6245         * read-rtl.c (join_c_conditions): Return the first string if the
6246         two strings are equal.
6248 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6250         * gensupport.h (pred_data): Add a "num_codes" field.
6251         (add_predicate_code): Declare.
6252         * gensupport.c (add_predicate_code): New function.
6253         (std_pred_table): Add an "allows_const_p" field.
6254         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6255         Remove the (incomplete) list of such codes from the codes field.
6256         (init_predicate_table): Use add_predicate_code.  Add all
6257         RTX_CONST_OBJs if allows_const_p is true.
6258         * genrecog.c (process_define_predicate): Use add_predicate_code.
6260 2008-05-08  David Daney  <ddaney@avtrex.com>
6261             Richard Sandiford  <rsandifo@nildram.co.uk>
6262         
6263         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6264         special case of constant zero operands.
6265         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6266         old and new values.  Special case constant zero values.
6267         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6268         fails.
6269         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6270         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6272 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
6274         PR target/36090
6275         * simplify-rtx.c (simplify_plus_minus): Create CONST of
6276         similar RTX_CONST_OBJ before CONST_INT.
6278 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
6280         * stmt.c (expand_stack_restore): Change sa mode if needed.
6282 2008-05-08  Richard Guenther  <rguenther@suse.de>
6284         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6285         return type to bool.
6286         (ix86_sol10_return_in_memory): Likewise.
6287         (ix86_i386elf_return_in_memory): Likewise.
6288         (ix86_i386interix_return_in_memory): Likewise.
6289         * config/i386/i386.c (ix86_return_in_memory): Likewise.
6290         (ix86_sol10_return_in_memory): Likewise.
6291         (ix86_i386elf_return_in_memory): Likewise.
6292         (ix86_i386interix_return_in_memory): Likewise.
6294 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6296         PR bootstrap/36180
6297         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6298         fndecl argument.
6299         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6300         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6301         declared in front.
6303 2008-05-08  Richard Guenther  <rguenther@suse.de>
6305         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6306         * tree-data-ref.h (struct dr_alias): Remove subvars field.
6307         (DR_SUBVARS): Remove.
6308         * tree-dfa.c (dump_subvars_for): Remove.
6309         (debug_subvars_for): Likewise.
6310         (dump_variable): Do not dump subvars.
6311         (remove_referenced_var): Do not remove subvars.
6312         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6313         (lookup_subvars_for_var): Remove.
6314         (get_subvars_for_var): Likewise.
6315         (get_subvars_at): Likewise.
6316         (get_first_overlapping_subvar): Likewise.
6317         (overlap_subvar): Likewise.
6318         * tree-flow.h (subvar_t): Remove.
6319         (struct var_ann_d): Remove subvars field.
6320         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6321         argument.  Remove special handling of SFTs.
6322         (compute_tag_properties): Likewise.
6323         (set_initial_properties): Likewise.
6324         (compute_call_clobbered): Likewise.
6325         (count_mem_refs): Likewise.
6326         (compute_memory_partitions): Likewise.
6327         (compute_flow_insensitive_aliasing): Likewise.
6328         (setup_pointers_and_addressables): Likewise.
6329         (new_type_alias): Likewise.
6330         (struct used_part): Remove.
6331         (used_portions): Likewise.
6332         (struct used_part_map): Likewise.
6333         (used_part_map_eq): Likewise.
6334         (used_part_map_hash): Likewise.
6335         (free_used_part_map): Likewise.
6336         (up_lookup): Likewise.
6337         (up_insert): Likewise.
6338         (get_or_create_used_part_for): Likewise.
6339         (create_sft): Likewise.
6340         (create_overlap_variables_for): Likewise.
6341         (find_used_portions): Likewise.
6342         (create_structure_vars): Likewise.
6343         * tree.def (STRUCT_FIELD_TAG): Remove.
6344         * tree.h (MTAG_P): Adjust.
6345         (struct tree_memory_tag): Remove base_for_components and
6346         unpartitionable flags.
6347         (struct tree_struct_field_tag): Remove.
6348         (SFT_PARENT_VAR): Likewise.
6349         (SFT_OFFSET): Likewise.
6350         (SFT_SIZE): Likewise.
6351         (SFT_NONADDRESSABLE_P): Likewise.
6352         (SFT_ALIAS_SET): Likewise.
6353         (SFT_UNPARTITIONABLE_P): Likewise.
6354         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6355         (union tree_node): Remove sft field.
6356         * alias.c (get_alias_set): Remove special handling of SFTs.
6357         * print-tree.c (print_node): Remove handling of SFTs.
6358         * tree-dump.c (dequeue_and_dump): Likewise.
6359         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6360         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6361         * tree-predcom.c (set_alias_info): Do not set subvars.
6362         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6363         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6364         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6365         (add_vars_for_offset): Remove.
6366         (add_virtual_operand): Remove special handling of SFTs.
6367         (add_call_clobber_ops): Likewise.
6368         (add_call_read_ops): Likewise.
6369         (get_asm_expr_operands): Likewise.
6370         (get_modify_stmt_operands): Likewise.
6371         (get_expr_operands): Likewise.
6372         (add_to_addressable_set): Likewise.
6373         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6374         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6375         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6376         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6377         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6378         (tree_node_structure): Likewise.
6379         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6380         handling of SFTs.
6381         (find_what_p_points_to): Likewise.
6383 2008-05-08  Sa Liu  <saliu@de.ibm.com>
6385         * config/spu/spu.md: Fixed subti3 pattern.
6387 2008-05-08  Richard Guenther  <rguenther@suse.de>
6389         PR middle-end/36154
6390         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6391         sure to create a representative for trailing arrays for PTA.
6393 2008-05-08  Richard Guenther  <rguenther@suse.de>
6395         PR middle-end/36172
6396         * fold-const.c (operand_equal_p): Two objects which types
6397         differ in pointerness are not equal.
6399 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6401         * calls.c (compute_argument_block_size): Add argument tree fndecl.
6402         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6403         (emit_library_call_value_1): Add new variable fndecl initialized by
6404         NULL_TREE. It should be the decl type of orgfun, but this information
6405         seems not to be available here, so it uses the default calling abi.
6406         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6407         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6408         by TARGET_RETURN_IN_MEMORY.
6409         * config/i386/i386-interix.h: Likewise.
6410         * config/i386/i386.h: Likewise.
6411         * config/i386/i386elf.h: Likewise.
6412         * config/i386/ptx4-i.h: Likewise.
6413         * config/i386/sol2-10.h: Likewise.
6414         * config/i386/sysv4.h: Likewise.
6415         * config/i386/vx-common.h: Likewise.
6416         * config/cris/cris.h: Removed #if 0 clause.
6417         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6418         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6419         argument.
6420         (ix86_sol10_return_in_memory): Likewise.
6421         (ix86_i386elf_return_in_memory): New.
6422         (ix86_i386interix_return_in_memory): New.
6423         * config/mt/mt-protos.h (mt_return_in_memory): New.
6424         * config/mt/mt.c: Likewise.
6425         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6426         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
6427         * config/bfin/bfin.h: Likewise.
6428         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6429         argument.
6430         * config/bfin/bfin.c: Likewise.
6431         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6432         * config/alpha/unicosmk.h: Likewise.
6433         * config/i386/cygming.h: Likewise.
6434         * config/iq2000/iq2000.h: Likewise.
6435         * config/mips/mips.h: Likewise.
6436         * config/mn10300/mn10300.h: Likewise.
6437         * config/rs6000/rs6000.h: Likewise.
6438         * config/score/score.h: Likewise.
6439         * config/spu/spu.h: Likewise.
6440         * config/v850/v850.h: Likewise.
6441         * defaults.h: Likewise.
6442         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6443         * expr.c (emit_block_move): Adjust use of
6444         OUTGOING_REG_PARM_STACK_SPACE.
6445         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6446         OUTGOING_REG_PARM_STACK_SPACE.
6447         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6449 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
6451         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6452         on OMP_RETURN for OMP_FOR.
6454         PR debug/35896
6455         * dwarf2out.c (dw_expand_expr, common_check): Removed.
6456         (fortran_common): New function.
6457         (gen_variable_die): Call fortran_common instead of common_check,
6458         adjust for it returning tree instead of rtx.  Formatting.
6460 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6462         PR rtl/7335
6463         PR rtl/33826
6464         * see.c (see_copy_insn): Copy new pure const attributes for new call.
6465         * c-decl.c (merge_decls): Ditto.
6466         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6467         to RTL_CONST_OR_PURE_CALL_P.
6468         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6469         Initialized DECL_LOOPING_CONST_PURE.
6470         (process_call_operands): Set tree_side_effects properly.
6471         * tree.h (TREE_READONLY_DECL_P): Removed.
6472         (DECL_IS_PURE): Renamed to DECL_PURE_P.
6473         (DECL_LOOPING_OR_CONST_P): New macro.
6474         (struct tree_function_decl): Added looping_const_or_pure_p.
6475         (ECF_*) Renumbered.
6476         (ECF_LOOPING_OR_CONST_P): New macro.
6477         * rtlanal.c (pure_const_p): Removed.
6478         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6479         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6480         to RTL_CONST_CALL_P.
6481         * ipa-pure-const.c (pure_const_state_e): Added looping field.
6482         (check_decl, check_tree, check_call, scan_function): Initialize
6483         looping.
6484         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6485         (static_execute): Set looping true for recursive functions.
6486         Undo setting state to IPA_NEITHER for recursive functions.
6487         * cse.c (cse_insn): 
6488         * ifcvt.c (noce_can_store_speculate_p): Changed
6489         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
6490         RTL_CONST_OR_PURE_CALL_P.
6491         * dse.c (scan_insn): Ditto.
6492         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6493         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6494         RTL_CONST_OR_PURE_CALL_P.
6495         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6496         pure_call_p to RTL_CONST_CALL_P.
6497         * gimplify.c (gimplify_call_expr): Clear side effects for
6498         non-looping pure and constant calls.
6499         * calls.c (emit_call_1): Set rtl flags from ecf flags.
6500         (flags_from_decl_or_type): Set ecf flags from decl flags.
6501         (initialize_argument_information): Turn off
6502         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6503         Change const to pure if callee_copies is true rather than just
6504         turning off const.
6505         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6506         way of marking pure calls.
6507         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6508         Remove hack that was supposed to fix pr7335 and remove old
6509         way of marking pure calls.
6510         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6511         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6512         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6513         RTL_CONST_OR_PURE_CALL_P.
6514         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6515         * loop-invariant.c (find_exits, find_invariant_bb): Changed
6516         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6517         * sched-deps.c (schedule_analyze): Ditto.
6518         * rtl.h (struct rtx_def): Use call field, unchanging field, and
6519         return_val field of calls to represent pure and const function info.
6520         (CONST_OR_PURE_CALL_P): Deleted macro.
6521         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6522         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6523         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6524         TREE_READONLY.
6525         * tree-optimize.c (execute_fixup_cfg): Added test for
6526         ECF_LOOPING_CONST_OR_PURE.
6527         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6528         DECL_PURE_P.
6529         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6530         effects for looping pure or const calls.
6531         (verify_gimple_expr): Added verification code. 
6532         * config/alpha/alpha.c (alpha_legitimize_address,
6533         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6534         RTL_CONST_CALL_P.
6535         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6536         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6537         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6538         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6539         RTL_CONST_OR_PURE_CALL_P.
6540         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6541         and const calls to be deleted.
6543 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6545         PR target/35714
6546         * config/i386/mmx.md (mmx_subv2sf3): New expander.
6547         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6548         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6549         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6550         to handle nonimmediate operands.
6551         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6552         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
6553         to handle nonimmediate operands.
6554         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6555         (mmx_pmulhrwv4hi3): New expander.  Use
6556         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6557         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6558         (sse2_umulv1siv1di3): New expander.  Use
6559         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6560         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6561         (mmx_eq<mode>3): New expander.  Use
6562         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6563         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6564         (mmx_uavgv8qi3): New expander.  Use
6565         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6566         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6567         (mmx_uavgv4hi3): New expander.  Use
6568         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6570         * config/i386/sse.md
6571         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
6572         to handle nonimmediate operands.
6573         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
6574         to handle nonimmediate operands.
6575         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
6576         to handle nonimmediate operands.
6577         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
6578         to handle nonimmediate operands.
6579         (sse2_unpckhpd_exp): New expander.  Use
6580         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6581         (sse2_unpcklpd_exp): New expander.  Use
6582         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6583         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
6584         to handle nonimmediate operands.
6585         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
6586         to handle nonimmediate operands.
6587         (*sse2_<plusminus_insn><mode>3): Rename from
6588         sse2_<plusminus_insn><mode>3 insn pattern.
6589         (sse2_<plusminus_insn><mode>3): New expander.  Use
6590         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6591         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6592         (sse2_umulv2siv2di3): New expander.  Use
6593         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6594         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6595         (sse4_1_mulv2siv2di3): New expander.  Use
6596         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6597         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6598         (sse2_pmaddwd): New expander.  Use
6599         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6600         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6601         (sse2_eq<mode>3): New expander.  Use
6602         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6603         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6604         (sse4_1_eqv2di3): New expander.  Use
6605         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6606         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6607         (sse2_uavgv16qi3): New expander.  Use
6608         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6609         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6610         (sse2_uavgv16qi3): New expander.  Use
6611         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6612         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6613         (sse2_uavgv8hi3): New expander.  Use
6614         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6615         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6616         (ssse3_pmulhrswv8hi3): New expander.  Use
6617         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6618         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6619         (ssse3_pmulhrswv4hi3): New expander.  Use
6620         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6622         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6623         (<sse>_vmmul<mode>3): Ditto.
6624         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6625         (divv2df3): Ditto.
6626         (ssse3_pmaddubsw128): Use register_operand for operand 1.
6627         (ssse3_pmaddubsw): Ditto.
6629         * config/i386/i386.c (struct_builtin_description)
6630         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6631         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6632         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6633         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6634         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6635         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6636         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6637         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6638         (ix86_fixup_binary_operands): Assert that src1
6639         and src2 must have the same mode when swapped.
6640         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6641         and ix86_binary_operator_ok.  Do not force operands in registers
6642         when optimizing.
6644 2008-05-07  Jan Hubicka  <jh@suse.cz>
6646         * cgraph.c (dump_cgraph_node): Update.
6647         * cgraph.h (cgraph_local_info): Break out inline summary.
6648         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6649         hook.
6650         * ipa-inline (inline_summary): New accestor function.
6651         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6652         cgraph_decide_inlining, compute_inline_parameters): Update.
6653         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6655 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
6657         Cleanup ColdFire scheduling support and add V4 pipeline model.
6659         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6660         (define_attr cpu): Add cfv4 value.
6661         (define_attr type, define_attr type1): Merge into a single 'type'
6662         attribute.  Update all uses.
6663         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6664         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
6665         Update all uses.
6666         (define_attr opx_mem, define_attr opy_mem): Remove.
6667         (define_attr op_mem): Clean up, update comment.
6668         (define_attr size): Use specific values instead of general int.
6669         (define_attr guess, define_attr split): Remove.  Update all uses.
6670         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6671         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6672         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6673         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6674         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6675         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6676         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6677         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6678         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6679         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6680         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6681         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6682         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6683         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6684         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6685         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6686         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6687         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6688         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6689         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6690         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6691         Update or set attributes.
6692         (stack_tie): New fake instruction.
6694         * config/m68k/m68k.h (TUNE_CFV4): New macro.
6695         (m68k_sched_attr_size): Update declaration.
6696         (m68k_sched_attr_type2): Remove.
6697         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6698         Declare new bypass predicates.
6700         * config/m68k/m68k.c (m68k_sched_issue_rate,
6701         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6702         implementations.
6703         (TARGET_SCHED_ISSUE_RATE,
6704         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6705         (override_options): Handle scheduling for ColdFire V4 core.
6706         (m68k_expand_prologue): Emit stack_tie.
6707         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6708         'OP_TYPE_FPN'.  Update all uses.
6709         (sched_guess_p): Remove.
6710         (sched_address_type): Handle symbolic addresses.
6711         (sched_get_operand): New static function.
6712         (sched_operand_type): Merge into sched_attr_op_type.
6713         (sched_attr_op_type): Handle FP registers, handle quick constants,
6714         update.
6715         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6716         (m68k_sched_attr_size): Update.  Move logic to ...
6717         (sched_get_attr_size_int): New static function.
6718         (sched_get_opxy_mem_type): New static function.
6719         (m68k_sched_attr_op_mem): Update.
6720         (m68k_sched_attr_type2): Remove.
6721         (sched_cfv4_bypass_data): New static variable.
6722         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6723         (m68k_sched_issue_rate): Implement scheduler hook.
6724         (struct _sched_ib: enabled_p): New field.
6725         (m68k_sched_variable_issue): Update.  Handle V4.
6726         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6727         sched_dump_class_func_t, sched_dump_split_class,
6728         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6729         sched_dump_dfa_class, m68k_sched_dump): Remove.
6730         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6731         hook.
6732         (m68k_sched_init_global): Remove statisctics dumping, introduce
6733         sanity check that all instructions have pipeline reservations.  Handle
6734         ColdFire V4 core.
6735         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6736         Handle ColdFire V4 core.
6737         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6738         New static functions.
6739         (m68k_sched_address_bypass_p): New bypass predicate.
6740         (sched_get_indexed_address_scale): New static function.
6741         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6743         * cf.md: Update comments.
6744         (define_attr type2): Remove.  Use 'type' attribute instead.
6745         Update all uses.
6746         (cf_ib): Rename to cfv123_ib.  Update all uses.
6747         (cf_oep): Rename to cfv123_oep.  Update all uses.
6748         (cf_chr): Rename to cfv123_chr.  Update all uses.
6749         (cf_mem): Rename to cfv123_mem.  Update all uses.
6750         (cf_mac): Move to more appropriate place.
6751         (cfv123_guess): New automaton and cpu_unit.
6752         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6753         Update uses of 'size' attribute.  Handle before reload scheduling.
6754         (cfv123_guess): New dummy reservation for unhandled instructions.
6755         (cfv4_*): Pipeline description of ColdFire V4 core.
6756         (ignore): New reservation to handle 'ignore' type.
6758 2008-05-07  Ian Lance Taylor  <iant@google.com>
6760         PR middle-end/36013
6761         * gimplify.c (find_single_pointer_decl_1): Don't look through
6762         indirections.
6763         (find_single_pointer_decl): Adjust comments.
6765 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
6767         PR middle-end/36137
6768         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6769         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6771         PR middle-end/36106
6772         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6773         integral type rather than floating point, then VIEW_CONVERT_EXPR
6774         to the floating point type.
6776 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6778         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6779         TFmode op0 to register.
6781 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
6783         * c-decl.c (grokdeclarator): Comment typo.
6785 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
6787         * tree-flow.h: Remove prototype for computed_goto_p.
6788         * tree-cfg.c (computed_goto_p): Make static.
6790 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
6792         PR target/35657
6793         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6794         (contains_aligned_value_p): This.  Handle _Decimal128.
6795         (ix86_function_arg_boundary): Only align _Decimal128 to its
6796         natural boundary and handle it properly.
6798 2008-05-06  Martin Jambor  <mjambor@suse.cz>
6800         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6801         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6802         (ipcp_method_set_orig_node): Removed.
6803         (ipcp_cval_get_cvalue_type): Removed.
6804         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6805         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6806         (ipcp_cval_set_cvalue_type): Removed.
6807         (ipcp_cval_get_cvalue): Removed.
6808         (ipcp_cval_set_cvalue): Removed.
6809         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6810         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6811         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6812         (ipcp_cval_meet): Renamed to ipa_lattice_meet
6813         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6814         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6815         (ipcp_get_ith_lattice): Changed parameters.
6816         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6817         (ipcp_lattice_from_jfunc): Changed parameters.
6818         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6819         (ipcp_method_cval_print): Added temporary variable info.
6820         (ipcp_redirect): Removed already unused local variable caller.
6821         (ipcp_redirect): New temporary variable orig_callee_info
6822         (ipcp_redirect): Removed newly unused local variable callee.
6823         (ipcp_redirect): Removed (a bit confusing) local variable type.
6824         (ipcp_insert_stage): Added local variable info.
6825         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
6826         renamed too
6827         (ipcp_formal_create): Removed.
6828         (ipcp_method_cval_set): Removed.
6829         (ipcp_propagate_stage): Renamed lattice variables.
6830         (ipcp_method_cval_set_cvalue_type): Removed.
6831         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
6832         (ipcp_print_all_lattices): Changed printed strings to refer to 
6833         lattices rather than cvals.
6834         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
6835         (ipcp_propagate_const): Changed formal parameters.
6836         (build_const_val): Changed formal parameters.
6837         (ipcp_insert_stage): Removed useless variable cvalue
6838         (build_const_val): Changed formal parameters.
6839         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
6840         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
6841         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
6842         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
6843         (ipcp_print_func_profile_counts): Changed string from "method" to 
6844         "function"
6845         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
6846         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
6847         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
6848         (ipcp_structures_print): Renamed to ipcp_print_all_structures
6849         (ipcp_profile_print): Renamed to ipcp_print_profile_data
6850         (ipcp_lat_is_const): Changed parameters and made inline.
6851         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
6852         (ipcp_redirect): Renamed to ipcp_need_redirect_p
6853         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
6854         the predicate condition directly
6855         (ipcp_propagate_stage): Added local variable args. Removed local
6856         variable callee.  (Both are mere code simplifications.)
6857         (ipcp_method_dont_insert_const): Renamed to
6858         ipcp_node_not_modifiable_p.
6859         (ipcp_node_not_modifiable_p): Made inline.
6860         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
6861         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
6862         (ipcp_print_all_lattices): Removed variable cvalue
6863         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
6864         Updated comments.
6866 2008-05-06  Olivier Hainque  <hainque@adacore.com>
6868         * tree-sra.c (try_instantiate_multiple_fields): Early return
6869         if field has POINTER_TYPE.
6871 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
6873         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
6874         by using 'q' specifier for instruction.
6875         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
6877 2008-05-06  Anatoly Sokolov <aesok@post.ru>
6879         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6880         Change mode of zero_extract from QImode to HImode.
6881         (sign bit tests peepholes): (Ditto.).
6883 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
6885         * config/i386/mmx.md: Remove double backslashes from asm templates.
6886         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
6887         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6888         to handle nonimmediate operands.
6889         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
6890         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6891         to handle nonimmediate operands.
6892         (*mmx_<code>v2sf3_finite): New insn pattern.
6893         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
6894         (mmx_<code>v2sf3): New expander.  Use
6895         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6896         (mmx_<plusminus_insn><mode>3): New expander.  Use
6897         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6898         (*mmx_<plusminus_insn><mode>3): New insn pattern.
6899         (mmx_add<mode>3): Removed.
6900         (mmx_ssadd<mode>3): Ditto.
6901         (mmx_usadd<mode>3): Ditto.
6902         (mmx_sub<mode>3): Ditto.
6903         (mmx_sssub<mode>3): Ditto.
6904         (mmx_ussub<mode>3): Ditto.
6905         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
6906         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
6907         to handle nonimmediate operands.
6908         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
6909         insn pattern.
6910         (mmx_smulv4hi3_highpart): New expander.  Use
6911         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6912         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
6913         insn pattern.
6914         (mmx_umulv4hi3_highpart): New expander.  Use
6915         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6916         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
6917         (mmx_<code>v4hi3): New expander.  Use
6918         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6919         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
6920         (mmx_<code>v8qi3): New expander.  Use
6921         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6922         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
6923         (mmx_<code><mode>3): New expander.  Use
6924         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6926 2008-05-05  Jan Hubicka  <jh@suse.cz>
6928         PR tree-optimization/36118
6929         * passes.c (pass_init_dump_file): Fix dump header.
6931 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6933         PR middle-end/36141
6934         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
6935         VCE for function decls.
6937 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6939         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
6941 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6943         * config/i386/i386.md (sat_plusminus): New.
6944         (plusminus_insn): Likewise.
6945         (plusminus_mnemonic): Likewise.
6946         (addsub): Removed.
6947         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
6948         (*<addsub><mode>3_cc_overflow): Renamed to ...
6949         (*<plusminus_insn><mode>3_cc_overflow): This.
6950         (*<addsub>si3_zext_cc_overflow): Renamed to ...
6951         (*<plusminus_insn>si3_zext_cc_overflow): This.
6953         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
6954         (<plusminus_insn><mode>3): This.
6955         (*<addsub><mode>3): Renamed to ...
6956         (*<plusminus_insn><mode>3): This.
6957         (<sse>_vm<addsub><mode>3): Renamed to ...
6958         (<sse>_vm<plusminus_insn><mode>3): This.
6959         (sse3_h<addsub>v4sf3): Renamed to ...
6960         (sse3_h<plusminus_insn>v4sf3): This.
6961         (sse3_h<addsub>v2df3): Renamed to ...
6962         (sse3_h<plusminus_insn>v2df3): This.
6963         (<plusminus_insn><mode>3): New.
6964         (*<plusminus_insn><mode>3): Likewise.
6965         (sse2_<plusminus_insn><mode>3): Likewise.
6966         (add<mode>): Removed.
6967         (*add<mode>3): Likewise.
6968         (sse2_ssadd<mode>3): Likewise.
6969         (sse2_usadd<mode>3): Likewise.
6970         (sub<mode>3): Likewise.
6971         (*sub<mode>3): Likewise.
6972         (sse2_sssub<mode>3): Likewise.
6973         (sse2_ussub<mode>3): Likewise.
6975 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
6977         * gthr-single.h: Add in required interface elements as per gthr.h.
6978         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
6979         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
6980         Generalize UNUSED macro. 
6981         (__gthread_once): Add.
6982         (__gthread_key_create): Add.
6983         (__gthread_key_delete): Add.
6984         (__gthread_getspecific): Add.
6985         (__gthread_setspecific): Add.
6986         
6987 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
6989         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
6990         the same size types for the indirect reference on the rhs, then
6991         create a VCE.
6993 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
6995         * config/i386/i386.md
6996         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
6997         one insn template instead of template series.
6998         (*xordi_1_rex64): Ditto.
6999         (*xordi_2_rex64): Ditto.
7001 2008-05-05  Ira Rosen  <irar@il.ibm.com>
7003         PR tree-optimization/36119
7004         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7005         in case of SLP.
7007 2008-06-04  Jan Hubicka  <jh@suse.cz>
7009         tree-optimization/36100
7010         * tree-pass.h (pass_O0_always_inline): Declare.
7011         * ipa-inline.c (inline_transform): Remove dead code.
7012         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7013         pass_O0_always_inline): New.
7014         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7016 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
7018         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7019         mnemonic in this_param move for TARGET_64BIT.
7021 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
7023         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7024         (*strmovsi_rex_1): Ditto.
7025         (*strsetsi_1): Ditto.
7026         (*strsetsi_rex_1): Ditto.
7028         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7029         adddicc expanders using SWI mode iterator.
7031 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7033         PR target/36121
7034         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7035         argument handling.
7037 2008-05-04  David S. Miller  <davem@davemloft.net>
7039         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7040         (sparc*-*-linux*): Use linux.h in tm_file.
7041         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7042         compiler defaulting to 32-bit.
7043         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7044         no longer needed.
7045         * config/sparc/linux.h: Remove definitions now obtained
7046         properly from linux.h
7047         * config/sparc/linux64.h: Likewise.
7048         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7049         don't want this setting for 32-bit builds in a biarch compiler.
7050         * doc/install.texi: Add sparc-linux to list of targets
7051         supporting --enable-targets=all.
7053 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
7055         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7057 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
7059         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7060         after V4SI_FTYPE_V8HI.
7061         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7062         case V4SI_FTYPE_V2DF.
7064 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
7066         * doc/invoke.texi (max-flow-memory-locations): Removed.
7067         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7068         
7069 2008-05-03  Richard Guenther  <rguenther@suse.de>
7071         PR middle-end/34973
7072         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7074 2008-05-02  David S. Miller  <davem@davemloft.net>
7076         * config.gcc (need_64bit_hwint): Document libcpp dependency.
7078 2008-05-02  Simon Baldwin <simonb@google.com>
7080         PR bootstrap/36108
7081         * c-common.h (warn_array_subscript_range): Removed.
7082         * c-common.c (warn_array_subscript_range): Ditto.
7083         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7084         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7086 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7088         * config/i386/i386.c (ix86_special_builtin_type): New.
7089         (bdesc_special_args): Likewise.
7090         (ix86_expand_special_args_builtin): Likewise.
7091         (ix86_init_mmx_sse_builtins): Updated.
7092         (ix86_expand_builtin): Updated.
7093         (ix86_expand_store_builtin): Removed.
7094         (ix86_expand_unop_builtin): Likewise.
7096         * config/i386/mm3dnow.h (__v2sf): Moved to ...
7097         * config/i386/mmintrin.h (__v2sf): Here.
7099         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7100         const __v2sf.
7101         (_mm_loadl_pi): Likewise.
7102         (_mm_storeh_pi): Replace __v2si with __v2sf.
7103         (_mm_storel_pi): Likewise.
7105         * doc/extend.texi: Correct __builtin_ia32_loadhps,
7106         __builtin_ia32_loadlps, __builtin_ia32_storehps,
7107         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7108         __builtin_ia32_loadlpd.
7110 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7112         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7113         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7114         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
7115         (ix86_init_mmx_sse_builtins): Updated.
7116         (ix86_expand_args_builtin): Likewise.
7117         (ix86_expand_builtin): Likewise.
7118         (ix86_expand_unop1_builtin): Renamed to ...
7119         (ix86_expand_unop_vec_merge_builtin): This.
7121 2008-05-01  Jan Hubicka  <jh@suse.cz>
7123         PR bootstrap/36100
7124         * ipa-inline.c (inline_generate_summary): Make static.
7125         (inline_transform): Do not call inlining at -O0; make static.
7126         * passes.c (execute_todo): Add sanity check.
7127         (execute_one_ipa_transform_pass): Execute proper flags.
7129 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7131         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7132         (DECL_NONADDRESSABLE_P): Likewise.
7133         * alias.c (record_component_aliases): Fix comment.
7135 2008-05-01  Simon Baldwin <simonb@google.com>
7137         * c-common.h (warn_array_subscript_range): New function.
7138         * c-common.c (warn_array_subscript_range): Ditto.
7139         * tree-vrp.c (check_array_ref): Corrected code to agree with
7140         comment, ignoring only arrays of size 0 or size 1.
7141         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7143 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7145         * config/i386/i386.c (ix86_builtin_type): Replace
7146         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7147         (bdesc_args): Updated.
7148         (ix86_init_mmx_sse_builtins): Likewise.
7149         (ix86_expand_args_builtin): Likewise.
7151         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7152         with __v1di.
7154         * doc/extend.texi: Correct __builtin_ia32_palignr.
7156 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7158         PR target/36095
7159         * config/i386/i386.c (bdesc_crc32): Removed.
7160         (ix86_expand_crc32): Likewise.
7161         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7162         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7163         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
7164         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7165         UINT_FTYPE_UINT_UCHAR.
7166         (bdesc_args): Updated. Add crc32 builtins.
7167         (ix86_init_mmx_sse_builtins): Updated.
7168         (ix86_expand_args_builtin): Updated to support subreg.
7170         * doc/extend.texi: Correct __builtin_ia32_crc32di.
7172 2008-05-01  Jan Hubicka  <jh@suse.cz>
7174         * tree-pass.h (opt_pass): Add IPA_PASS.
7175         (varpool_node, cgraph_node): Forward declare.
7176         (ipa_opt_pass): Define.
7177         (pass_ipa_inline): Turn into ipa_opt_pass.
7178         (pass_apply_inline): Remove.
7179         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7180         (apply_inline): Turn into ....
7181         (inline_transform): ... this one.
7182         (inline_generate_summary): New function.
7183         (pass_apply_inline): Remove.
7184         * function.h (ipa_opt_pass): Forward declare structure; typedef;
7185         vector.
7186         (struct function): Add ipa_transforms_to_apply.
7187         * passes.c (register_one_dump_file): Work on IPA_PASS.
7188         (init_optimization_passes): Remove pass_inline_parameters and
7189         pass_apply_inline.
7190         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7191         (execute_one_pass) ... here; apply transforms when possible.
7192         (add_ipa_transform_pass, execute_ipa_summary_asses,
7193         execute_one_ipa_transform_pass): New.
7194         (execute_ipa_pass_list): Update for IPA_PASS type.
7196 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7198         * config/i386/i386.c (ix86_builtin_type): Add
7199         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7200         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7201         (bdesc_args): Add SSE4a builtins.
7202         (ix86_init_mmx_sse_builtins): Updated.
7203         (ix86_expand_args_builtin): Likewise.
7204         (ix86_expand_builtin): Likewise.
7206 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7208         * config/i386/i386.c (ix86_builtin_type): Add
7209         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7210         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7211         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7212         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7213         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7214         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7215         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7216         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7217         and DI_FTYPE_DI_DI_INT.
7218         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7219         (ix86_init_mmx_sse_builtins): Updated.
7220         (ix86_expand_args_builtin): Likewise.
7221         (ix86_expand_builtin): Likewise.
7222         (ix86_expand_binop_imm_builtin): Removed.
7224         * doc/extend.texi: Correct __builtin_ia32_palignr128.
7226 2008-04-30  Richard Guenther  <rguenther@suse.de>
7228         PR tree-optimization/32921
7229         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7231 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7233         * config/arm/arm.c (arm_unwind_emit): Use
7234         crtl->all_throwers_are_sibcalls instead of
7235         cfun->all_throwers_are_sibcalls.
7236         (arm_output_fn_unwind): Likewise.
7237         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7238         instead of cfun->uses_pic_offset_table.
7239         (frv_expand_prologue): Likewise.
7240         (frv_frame_pointer_required): Likewise.
7241         (frv_expand_fdpic_call): Likewise.
7242         (frv_emit_movsi): Likewise.
7243         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7244         cfun->returns_pcc_struct instead of
7245         current_function_returns_pcc_struct.
7246         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7247         instead of cfun->calls_eh_return.
7248         (m32c_pushm_popm): Likewise.
7249         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7250         "extern" declaration.
7252 2008-04-30  Richard Guenther  <rguenther@suse.de>
7254         PR tree-optimization/21636
7255         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7256         constant address.
7257         (evaluate_stmt): Print the likely value.
7258         (ccp_visit_stmt): Avoid excessive vertical spacing.
7260 2008-04-30  Rafael Espindola  <espindola@google.com>
7262         * builtins.c (fold_call_expr): Return realret.
7263         * tree-ssa-threadedge.c
7264         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7265         __builtin_object_size.
7267 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
7269         * gcc.c (wrapper_string): New variable.
7270         (insert_wrapper): New function.
7271         (execute): New option -wrapper.
7272         * doc/invoke.texi (Overall Options): New driver option -wrapper.
7274 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
7276         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7277         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7278         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7279         from...
7280         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
7281         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7282         config/rs6000/e500crtres64gprctr.asm,
7283         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7284         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7285         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7286         config/rs6000/e500crtsav64gprctr.asm,
7287         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7288         config/rs6000/e500crtsavg64gprctr.asm: New files.
7289         * config/rs6000/t-ppccomm: Add build rules for new files.
7290         (LIB2FUNCS_STATIC_EXTRA): Add new files.
7291         * config/rs6000/t-netbsd: Add build rules for new files.
7292         (LIB2FUNCS_STATIC_EXTRA): New variable.
7293         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7294         (CRTSAVRES_DEFAULT_SPEC): Likewise.
7295         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7297 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
7299         * config/i386/i386.c (ix86_builtin_type): Add
7300         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7301         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7302         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7303         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7304         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7305         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7306         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7307         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7308         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7309         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7310         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7311         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7312         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7313         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7314         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7315         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7316         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7317         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7318         V1DI_FTYPE_V2SI_V2SI.
7319         (bdesc_2arg): Moved to ...
7320         (bdesc_args): Here.
7321         (ix86_init_mmx_sse_builtins): Updated.
7322         (ix86_expand_args_builtin): Updated.  Take a pointer
7323         to const struct builtin_description.  Handle comparison
7324         builtin functions.
7325         (ix86_expand_sse_compare): Take a new argument for swapping operands.
7326         (ix86_expand_builtin): Updated.
7328         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7329         (ssse3_pmaddubsw128): This.
7330         (ssse3_pmaddubswv4hi3): Renamed to ...
7331         (ssse3_pmaddubsw): This.
7333         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7334         (__builtin_ia32_packssdw128): Likewise.
7335         (__builtin_ia32_packuswb128): Likewise.
7336         (__builtin_ia32_pmaddubsw): Likewise.
7337         (__builtin_ia32_pmaddubsw128): Likewise.
7339 2008-04-30  Richard Guenther  <rguenther@suse.de>
7341         PR tree-optimization/14847
7342         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7343         (recognize_bits_test): Use it.
7344         (recognize_single_bit_test): Likewise.
7346 2008-04-30  Martin Jambor  <mjambor@suse.cz>
7348         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7349         instead of setting number of formal parameters to zero.
7350         (ipcp_init_stage): Do not set the number of actual parameters to zero 
7351         either.
7352         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7353         which are called with variable number of arguments.
7354         (ipcp_insert_stage): Explicitely skipping all nodes which are
7355         called with variable number of arguments.
7356         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
7357         number of parameters.
7359         * ipa-prop.h (struct ipa_node_params): Added flag
7360         called_with_var_arguments
7361         (ipa_set_param_count): Added.  Changed sole setter to use it.
7362         (ipa_get_param_count): Added.  All readers of param_count
7363         converted to use it instead.
7364         (ipa_set_called_with_variable_arg): Added.
7365         (ipa_is_called_with_var_arguments): Added.
7366         (ipa_get_ith_param): Added.  All readers of param_decls converted
7367         to use it instead.
7368         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
7369         changed to use it. 
7370         (ipa_get_cs_argument_count): Added, all readers of argument_count
7371         changed to cal it.
7372         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
7373         to use it.
7374         
7375         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7376         (struct ipcp_lattice): Renamed cval_type to type
7377         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7379         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7380         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7381         (ipcp_insert_stage): Changed the type of variable cvalue to tree
7382         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7383         (build_const_val): Changed the type of parameter cvalue to tree
7384         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7385         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7386         
7387         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
7388         constant 
7390         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7391         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7392         (ipa_add_method): Renamed to ipa_push_func_to_list
7393         (ipa_remove_method): Renamed to ipa_pop_func_from_list
7394         (ipa_callsite_param_count): Removed.
7395         (ipa_callsite_param_count_set): Removed.
7396         (ipa_callsite_param): Removed.
7397         (ipa_callsite_callee): Removed.
7398         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7399         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7400         (ipa_method_formal_count): Removed.
7401         (ipa_method_formal_count_set): Removed.
7402         (ipa_method_get_tree): Removed.
7403         (ipa_method_tree_map_create): Removed.
7404         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7405         (ipa_create_param_decls_array): Creates the array itself
7406         (ipa_create_param_decls_array): Temporary variable info instead of 
7407         a few dereferences.
7408         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7409         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7410         (get_type): Removed.
7411         (ipa_jf_get_info_type): Removed.
7412         (ipa_node_create): Renamed to ipa_create_node_params
7413         (ipa_free): Renamed to ipa_free_all_node_params
7414         (ipa_nodes_create): Renamed to ipa_create_all_node_params
7415         (ipa_edges_create): Renamed to ipa_create_all_edge_args
7416         (ipa_edges_free): Renamed to ipa_free_all_edge_args
7417         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7418         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
7419         ipa_free_all_edge_args
7420         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7421         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7422         (ipa_create_methodlist_node): Removed.
7423         (ipa_methodlist_method): Removed.
7424         (ipa_methodlist_method_set): Removed.
7425         (ipa_methodlist_next_method): Removed.
7426         (ipa_methodlist_next_method_set): Removed.
7427         (ipa_method_is_modified): Removed.
7428         (ipa_method_modify_create): Removed.
7429         (ipa_method_modify_init): Temporary variable info instead of a few 
7430         dereferences.
7431         (ipa_detect_param_modifications): Temporary variable info instead of 
7432         a few dereferences.
7433         (ipa_compute_jump_functions): Temporary variable info instead of 
7434         a few dereferences.
7435         (ipa_method_modify_set): Removed.
7436         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7437         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
7438         than craph_node as the first parameter.
7439         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7440         (ipa_method_modify_init): Removed.
7441         (ipa_compute_jump_functions): Added a temp variable instead of 
7442         repeatadly dereferencing the cgraph_edge.aux pointer
7443         (ipa_callsite_param_set_type): Removed.
7444         (ipa_compute_jump_functions): i renamed to index and moved to 
7445         an inner block
7446         (ipa_callsite_param_set_info_type_formal): Removed.
7447         (ipa_callsite_param_set_info_type): Removed.
7448         (ipa_callsite_param_map_create): Removed.
7449         (ipa_callsite_tree): Removed.
7450         (ipa_callsite_caller): Removed.
7451         (ipa_pop_func_from_list): return_method removed to return_func
7453         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7454         prefixed all values with IPA_. Changed all users.
7455         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
7456         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
7457         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
7458         (union parameter_info): Renamed to jump_func_value.
7459         (union jump_func_value): Renamed value to constant
7460         (struct ipa_jump_func): Renamed info_type to value
7461         (struct ipa_node): Renamed to ipa_node_params
7462         (struct ipa_node_params): Renamed ipa_arg_num to param_count
7463         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7464         (struct ipa_node_params): Renamed ipa_mod to modified_flags
7465         (struct ipa_edge): Renamed to ipa_edge_args
7466         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7467         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7468         (struct ipa_methodlist): Renamed to ipa_func_list
7469         (struct ipa_func_list): method_p renamed to node, next_method
7470         renamed to next
7471         (ipa_methodlist_p): Removed, switched all users to struct pointer
7472         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7474 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
7476         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7477         (rs6000_emit_epilogue): Use backchain to restore only when we
7478         have a large frame.  Make use of frame pointer to restore if we
7479         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7481 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
7483         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7484         Add mode to zero_extract.
7485         (sign bit tests peepholes): (Ditto.).
7487 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7489         * config/i386/i386.c (ix86_builtins): Replace Prescott New
7490         Instructions in comments with SSE3.
7491         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
7492         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7493         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7494         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7495         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7496         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7497         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7498         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7499         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7500         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7501         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7502         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7503         (bdesc_sse_args): Renamed to ...
7504         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7505         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7506         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7507         IX86_BUILTIN_FABSQ.
7508         (bdesc_1arg): Moved to ...
7509         (bdesc_args): Here.
7510         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
7511         Instructions in comments with SSE3.
7512         (ix86_expand_sse_operands_builtin): Renamed to ...
7513         (ix86_expand_args_builtin): This.  Updated.
7514         (ix86_expand_unop1_builtin): Update comments.
7515         (ix86_expand_builtin): Updated.
7517 2008-04-29  Richard Guenther  <rguenther@suse.de>
7519         PR tree-optimization/36078
7520         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7521         Update virtual SSA form after cleaning up the CFG.
7523 2008-04-29  Richard Guenther  <rguenther@suse.de>
7525         PR middle-end/15255
7526         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7528 2008-04-29  Richard Guenther  <rguenther@suse.de>
7530         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7531         (compute_may_aliases): Do not call finalize_ref_all_pointers.
7532         (compute_flow_insensitive_aliasing): Do not treat
7533         PTR_IS_REF_ALL pointers special.
7534         (get_smt_for): Likewise.
7535         (may_alias_p): Re-structure.
7536         (is_escape_site): A ref-all pointer conversion is not an escape site.
7537         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7538         PTR_IS_REF_ALL pointers special.
7539         * tree-ssa-structalias.h (struct alias_info): Remove
7540         ref_all_symbol_mem_tag field.
7541         (PTR_IS_REF_ALL): Remove.
7543 2008-04-29  Richard Guenther  <rguenther@suse.de>
7545         PR middle-end/36077
7546         * fold-const.c (extract_muldiv_1): In combining division constants
7547         make sure to never overflow.
7549 2008-04-29  Nick Clifton  <nickc@redhat.com>
7551         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7553 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7555         PR bootstrap/35169
7556         * optc-gen.awk: Work around HP-UX/IA awk bug.
7558 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
7560         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7561         2008-04-25 commit.
7563 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7565         PR target/36073
7566         * config/i386/i386.md
7567         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7568         Change operand 1 predicate to nonimmediate_operand.
7570 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
7572         PR debug/36060
7573         * dwarf2out.c (struct die_struct): Mark as chain_circular through
7574         die_sub field.
7575         * gengtype.c (walk_type, write_func_for_structure): Handle
7576         chain_circular.
7577         * doc/gty.texi: Document chain_circular.
7579 2008-04-28  Richard Guenther  <rguenther@suse.de>
7581         PR tree-optimization/36066
7582         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7583         SCEV and loop.
7585 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7587         PR target/36064
7588         * config/i386/i386.md
7589         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7590         Use match_scratch instead of match_operand for operands 3 and 4.
7592 2008-04-27  Richard Guenther  <rguenther@suse.de>
7594         PR tree-optimization/18754
7595         PR tree-optimization/34223
7596         * tree-pass.h (pass_complete_unrolli): Declare.
7597         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7598         loop size before and after unconditionally of UL_NO_GROWTH in effect.
7599         Rewrite loop into loop closed SSA form if it is not already.
7600         (tree_unroll_loops_completely): Re-structure to iterate over
7601         innermost loops with intermediate CFG cleanups.
7602         Unroll outermost loops only if requested or the code does not grow
7603         doing so.
7604         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7605         loops are available.
7606         (tree_vectorize): Instead do so here.
7607         (tree_complete_unroll): Also unroll outermost loops.
7608         (tree_complete_unroll_inner): New function.
7609         (gate_tree_complete_unroll_inner): Likewise.
7610         (pass_complete_unrolli): New pass.
7611         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7612         uses outside of the loop.
7613         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7614         form if it is available.  
7615         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7616         * passes.c (init_optimization_passes): Schedule complete inner
7617         loop unrolling pass before the first CCP pass after final inlining.
7619 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
7621         * targhooks.h (default_emutls_var_fields,
7622         default_emutls_var_init): Declare.
7623         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7624         * target.h (struct gcc_target): Add struct emutls member.
7625         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7626         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7627         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7628         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7629         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7630         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7631         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7632         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7633         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7634         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7635         emit debug information.
7636         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7637         * varasm.c: Include targhooks.h.
7638         (emutls_object_section, emutls_tmpl_section): New.
7639         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7640         (EMUTLS_SEPARATOR): New.
7641         (prefix_name): New.
7642         (get_emutls_object_name): New.
7643         (default_emutls_var_fields): New, broken out of ...
7644         (get_emutls_object_type): ... here.  Adjust to use target hooks.
7645         (get_emutls_init_templ_addr): Adjust to use target hooks.
7646         (emutls_decl): Adjust to use target hooks.
7647         (emutls_finish): Likewise.
7648         (default_emutls_var_init): New, broken out of ...
7649         (assemble_variable): ... here.  Adjust to use target hooks.
7650         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7651         SECCAT_EMUTLS_TMPL.
7652         * c-common.c (handle_section_attribute): Prevent overriding
7653         sections for emulated tls with special sections.
7654         * config/i386/i386.c (x86_64_elf_select_section): Add
7655         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7656         (x86_64_elf_unique_section): Likewise.
7657         * config/vxworks.c: Include tree.h.
7658         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7659         (vxworks_override_options): Set TLS scheme.
7660         * doc/tm.texi (Emulated TLS): New node.
7662 2008-04-26  Simon Baldwin <simonb@google.com>
7664         PR c/35652
7665         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7666         with propagated string constants.
7668 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
7670         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7671         constraint for operand 2 when operand 0 is memory operand.
7672         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7673         operand 0 is memory operand.
7674         (fix_trunc<mode>_i387_with_temp): Ditto.
7675         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7676         operand 2 when operand 1 is memory operand.
7677         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7678         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7679         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7680         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7681         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7682         operands 2,3 and 4 when operand 1 is memory operand.
7683         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7684         is memory operand.
7685         (fistdi2_floor_with_temp): Ditto.
7686         (fist<mode>2_floor_with_temp): Ditto.
7687         (fistdi2_ceil_with_temp): Ditto.
7688         (fist<mode>2_ceil_with_temp): Ditto.
7689         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7691 2008-04-26  David Daney  <ddaney@avtrex.com>
7693         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7694         unspec_volitile.
7695         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7696         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7697         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7698         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7699         (compare_and_swap_12): New insn.
7700         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7701         * config/mips/mips.c (mips_force_binary): New function.
7702         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7703         (mips_expand_compare_and_swap_12): New function.
7704         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7706 2008-04-25  Jan Hubicka  <jh@suse.cz>
7708         PR testsuite/35843
7709         * cfgexpand.c (pass_expand): Turn into RTL pass.
7710         * passes.c (execute_one_pass): Do pass typechecking after execution.
7711         * tree-pass.h (pass_expand): Turn into RTL pass.
7713         * function.h (struct rtl_data): Move here fields
7714         accesses_prior_frames, calls_eh_return, saves_all_registers,
7715         has_nonlocal_goto, has_asm_statement, is_thunk,
7716         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7717         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7718         arg_pointer_save_area_init from struct function; turn into bool.
7719         (struct function): Move
7720         calls_eh_return, saves_all_registers, has_nonlocal_goto,
7721         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7722         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7723         tail_call_emit, arg_pointer_save_area_init
7724         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
7725         (current_function_returns_struct, current_function_returns_pcc_struct,
7726         current_function_calls_setjmp, current_function_calls_alloca,
7727         current_function_accesses_prior_frames,
7728         current_function_calls_eh_return, current_function_is_thunk,
7729         current_function_stdarg, current_function_profile,
7730         current_function_limit_stack, current_function_uses_pic_offset_table,
7731         current_function_uses_const_pool, current_function_has_nonlocal_label,
7732         current_function_saves_all_registers,
7733         current_function_has_nonlocal_goto,
7734         current_function_has_asm_statement): Remove accesor macros.
7735         * ra-conflict.c (global_conflicts): Update.
7736         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7737         (suitable_for_tail_call_opt_p): Update.
7738         * builtins.c (expand_builtin_return_addr): Update.
7739         (expand_builtin_setjmp_setup): Update.
7740         (expand_builtin_nonlocal_goto): Update.
7741         * final.c (final_start_function): Update.
7742         (profile_function): Update.
7743         (leaf_function_p): Update.
7744         (only_leaf_regs_used): Update.
7745         * df-scan.c (df_get_exit_block_use_set): Update.
7746         * dojump.c (clear_pending_stack_adjust): Update.
7747         * tree-stdarg.c (gate_optimize_stdarg): Update.
7748         * gimple-low.c (lower_function_body): Update.
7749         * global.c (compute_regsets): Update.
7750         (global_alloc): Update.
7751         * dwarf2out.c (dwarf2out_begin_prologue): Update.
7752         * expr.c (expand_assignment): Update.
7753         * dse.c (dse_step0): Update.
7754         (dse_step1): Update.
7755         * c-decl.c (store_parm_decls): Update.
7756         * local-alloc.c (combine_regs): Update.
7757         (find_free_reg): Update.
7758         * function.c (assign_parms_augmented_arg_list): Update.
7759         (assign_parm_find_data_types): Update.
7760         (assign_parms): Update.
7761         (allocate_struct_function): Update.
7762         (expand_function_start): Update.
7763         (expand_function_end): Update.
7764         (get_arg_pointer_save_area): Update.
7765         (thread_prologue_and_epilogue_insns): Update.
7766         (rest_of_match_asm_constraints): Update.
7767         * stor-layout.c (variable_size): Update.
7768         * gcse.c (gcse_main): Update.
7769         (bypass_jumps): Update.
7770         * gimplify.c (gimplify_function_tree): Update.
7771         * calls.c (emit_call_1): Update.
7772         (expand_call): Update.
7773         * bt-load.c (compute_defs_uses_and_gen): Update.
7774         * except.c (sjlj_assign_call_site_values): Update.
7775         (sjlj_emit_function_enter): Update.
7776         (can_throw_external): Update.
7777         (set_nothrow_function_flags): Update.
7778         (expand_builtin_unwind_init): Update.
7779         (expand_eh_return): Update.
7780         (convert_to_eh_region_ranges): Update.
7781         (output_function_exception_table): Update.
7782         * emit-rtl.c (gen_tmp_stack_mem): Update.
7783         * cfgexpand.c (expand_used_vars): Update.
7784         (tree_expand_cfg): Update.
7785         * cfgcleanup.c (rest_of_handle_jump): Update.
7786         * explow.c (allocate_dynamic_stack_space): Update.
7787         * varasm.c (assemble_start_function): Update.
7788         (force_const_mem): Update.
7789         (mark_constant_pool): Update.
7790         * tree-optimize.c (tree_rest_of_compilation): Update.
7791         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7792         * tree-cfg.c (notice_special_calls): Update.
7793         (is_ctrl_altering_stmt): Update.
7794         (tree_can_make_abnormal_goto): Update.
7795         (tree_purge_dead_abnormal_call_edges): Update.
7796         * config/alpha/predicates.md: Update.
7797         * config/alpha/alpha.c (alpha_sa_mask): Update.
7798         (alpha_sa_size): Update.
7799         (alpha_does_function_need_gp): Update.
7800         (alpha_expand_prologue): Update.
7801         (alpha_start_function): Update.
7802         (alpha_output_function_end_prologue): Update.
7803         (alpha_expand_epilogue): Update.
7804         * config/frv/frv.c (frv_stack_info): Update.
7805         (frv_expand_epilogue): Update.
7806         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7807         (s390_register_info): Update.
7808         (s390_frame_info): Update.
7809         (s390_init_frame_layout): Update.
7810         (s390_can_eliminate): Update.
7811         (save_gprs): Update.
7812         * config/spu/spu.c (spu_split_immediate): Update.
7813         (need_to_save_reg): Update.
7814         (spu_expand_prologue): Update.
7815         (spu_expand_epilogue): Update.
7816         * config/sparc/sparc.md: Update.
7817         * config/sparc/sparc.c (eligible_for_return_delay): Update.
7818         (sparc_tls_got): Update.
7819         (legitimize_pic_address): Update.
7820         (sparc_emit_call_insn): Update.
7821         (sparc_expand_prologue): Update.
7822         (output_return): Update.
7823         (print_operand): Update.
7824         (sparc_function_ok_for_sibcall): Update.
7825         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
7826         * config/m32r/m32r.md: Update.
7827         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
7828         (m32r_compute_frame_size): Update.
7829         (m32r_expand_prologue): Update.
7830         (m32r_expand_epilogue): Update.
7831         (m32r_legitimize_pic_address): Update.
7832         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
7833         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7834         * config/i386/i386.c (ix86_frame_pointer_required): Update.
7835         (gen_push): Update.
7836         (ix86_save_reg): Update.
7837         (ix86_compute_frame_layout): Update.
7838         (ix86_expand_prologue): Update.
7839         (ix86_expand_epilogue): Update.
7840         * config/sh/sh.c (output_stack_adjust): Update.
7841         (calc_live_regs): Update.
7842         (sh5_schedule_saves): Update.
7843         (sh_expand_prologue): Update.
7844         (sh_expand_epilogue): Update.
7845         (sh_setup_incoming_varargs): Update.
7846         (sh_allocate_initial_value): Update.
7847         (sh_get_pr_initial_val): Update.
7848         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
7849         * config/sh/sh.md (label:): Update.
7850         * config/avr/avr.c (out_movhi_mr_r): Update.
7851         * config/crx/crx.h (enum): Update.
7852         * config/xtensa/xtensa.h (along): Update.
7853         * config/stormy16/stormy16.c Update.
7854         (xstormy16_compute_stack_layout): Update.
7855         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
7856         (fr30_expand_prologue): Update.
7857         * config/cris/cris.c (cris_conditional_register_usage): Update.
7858         (cris_reg_saved_in_regsave_area): Update.
7859         (cris_initial_frame_pointer_offset): Update.
7860         (cris_simple_epilogue): Update.
7861         (cris_expand_prologue): Update.
7862         (cris_expand_epilogue): Update.
7863         (cris_expand_pic_call_address): Update.
7864         (cris_asm_output_symbol_ref): Update.
7865         (cris_asm_output_label_ref): Update.
7866         * config/cris/cris.md Update.
7867         * config/iq2000/iq2000.c (compute_frame_size): Update.
7868         (iq2000_expand_epilogue): Update.
7869         * config/mt/mt.h (save_direction): Update.
7870         * config/mn10300/mn10300.c (mn10300_function_value): Update.
7871         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7872         (ia64_secondary_reload_class): Update.
7873         * config/m68k/m68k.c (m68k_save_reg): Update.
7874         (m68k_expand_prologue): Update.
7875         (m68k_expand_epilogue): Update.
7876         (legitimize_pic_address): Update.
7877         * config/rs6000/rs6000.c (rs6000_got_register): Update.
7878         (first_reg_to_save): Update.
7879         (first_altivec_reg_to_save): Update.
7880         (compute_vrsave_mask): Update.
7881         (compute_save_world_info): Update.
7882         (rs6000_stack_info): Update.
7883         (spe_func_has_64bit_regs_p): Update.
7884         (rs6000_ra_ever_killed): Update.
7885         (rs6000_emit_eh_reg_restore): Update.
7886         (rs6000_emit_allocate_stack): Update.
7887         (rs6000_emit_prologue): Update.
7888         (rs6000_emit_epilogue): Update.
7889         (rs6000_output_function_epilogue): Update.
7890         (output_profile_hook): Update.
7891         (rs6000_elf_declare_function_name): Update.
7892         * config/rs6000/rs6000.h (rs6000_args): Update.
7893         * config/rs6000/rs6000.md: Update.
7894         * config/mcore/mcore.c (mcore_expand_prolog): Update.
7895         * config/arc/arc.c (arc_output_function_epilogue): Update.
7896         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
7897         * config/darwin.c (machopic_function_base_name): Update.
7898         * config/score/score3.c (score3_compute_frame_size): Update.
7899         (rpush): Update.
7900         (rpop): Update.
7901         (score3_epilogue): Update.
7902         * config/score/score7.c (score7_compute_frame_size): Update.
7903         (score7_prologue): Update.
7904         (score7_epilogue): Update.
7905         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
7906         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7907         * config/arm/arm.c (use_return_insn): Update.
7908         (require_pic_register): Update.
7909         (arm_load_pic_register): Update.
7910         (arm_compute_save_reg0_reg12_mask): Update.
7911         (arm_compute_save_reg_mask): Update.
7912         (thumb1_compute_save_reg_mask): Update.
7913         (output_return_instruction): Update.
7914         (arm_output_function_prologue): Update.
7915         (arm_output_epilogue): Update.
7916         (arm_get_frame_offsets): Update.
7917         (arm_expand_prologue): Update.
7918         (thumb_pushpop): Update.
7919         (thumb_exit): Update.
7920         (thumb1_expand_prologue): Update.
7921         (thumb1_expand_epilogue): Update.
7922         (arm_unwind_emit): Update.
7923         (arm_output_fn_unwind): Update.
7924         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
7925         * config/arm/arm.md: Update.
7926         * config/pa/pa.md: Update.
7927         * config/pa/pa.c (legitimize_pic_address): Update.
7928         (compute_frame_size): Update.
7929         (hppa_expand_prologue): Update.
7930         (hppa_expand_epilogue): Update.
7931         (borx_reg_operand): Update.
7932         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
7933         (HARD_REGNO_RENAME_OK): Update.
7934         * config/mips/mips.c (mips_global_pointer): Update.
7935         (mips_save_reg_p): Update.
7936         (mips_compute_frame_info): Update.
7937         (mips_frame_pointer_required): Update.
7938         (mips_expand_prologue): Update.
7939         (mips_expand_epilogue): Update.
7940         (mips_can_use_return_insn): Update.
7941         (mips_reorg_process_insns): Update.
7942         * config/v850/v850.c (compute_register_save_size): Update.
7943         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
7944         * config/mmix/mmix.c (along): Update.
7945         (mmix_expand_epilogue): Update.
7946         * config/bfin/bfin.c (legitimize_pic_address): Update.
7947         (must_save_p): Update.
7948         (stack_frame_needed_p): Update.
7949         (add_to_reg): Update.
7950         (bfin_expand_prologue): Update.
7951         * stmt.c (expand_asm_operands): Update.
7952         * reload1.c (reload): Update.
7953         (init_elim_table): Update.
7955 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
7956         
7957         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
7958         
7959 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
7961         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
7962         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
7963         (mov<mode>): Removed.
7964         (*movv4sf_internal): Likewise.
7965         (*movv2df_internal): Likewise.
7967 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
7969         * config.gcc (crx-*-elf): Remove deprecation.
7971 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
7973         * config/i386/cygming-crtend.c (register_frame_ctor): Register
7974         __gcc_deregister_frame with atexit.
7975         (deregister_frame_dtor): Remove.
7977 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
7978             Nathan Sidwell  <nathan@codesourcery.com>
7980         * config/rs6000/rs6000.opt (mspe): Remove Var property.
7981         (misel): Likewise.
7982         * config/rs6000/rs6000.h (rs6000_spe): Declare.
7983         (rs6000_isel): Likewise.
7984         * config/rs6000/rs6000.c (rs6000_spe): New variable.
7985         (rs6000_isel): New variable.
7986         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
7988 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7990         PR c++/35758
7991         * c-common.c (handle_vector_size_attribute): Call
7992         lang_hooks.types.reconstruct_complex_type instead of
7993         reconstruct_complex_type.
7994         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
7995         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
7996         * langhooks.h (struct lang_hooks_for_types): Add
7997         reconstruct_complex_type hook.
7998         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
7999         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8001 2008-04-24  Richard Guenther  <rguenther@suse.de>
8003         * c-common.h (check_builtin_function_arguments): Declare.
8004         * c-common.c (validate_nargs): New function.
8005         (check_builtin_function_arguments): Likewise.
8006         * c-typeck.c (build_function_call): Call
8007         check_builtin_function_arguments.
8008         * builtins.c (fold_builtin_classify): Remove error reporting code.
8009         (fold_builtin_unordered_cmp): Likewise.
8010         (fold_builtin_1): Likewise.
8011         (fold_builtin_n): Likewise.
8013 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8015         PR tree-optimization/36008
8016         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8017         the original op1, rather than delta by step.
8019 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
8020             Sebastian Pop  <sebastian.pop@amd.com>
8022         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8023         eliminate_local_variables_stmt, eliminate_local_variables,
8024         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8025         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8026         of code delimited by two edges in the CFG.
8027         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8028         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8029         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
8030         the case of parallelisation of reductions.
8031         (expr_invariant_in_region_p): New.
8033         * tree-flow.h (gather_blocks_in_sese_region): Declared.
8034         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8036 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8037             Richard Guenther  <rguenther@suse.de>
8039         PR tree-optimization/36034
8040         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8041         incapable of dealing with loads with gaps.
8043 2008-04-24  Rafael Espindola  <espindola@google.com>
8045         * tree-flow.h (vrp_evaluate_conditional): Change signature.
8046         * tree-ssa-propagate.c (fold_predicate_in): Update call to
8047         vrp_evaluate_conditional.
8048         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8049         (vrp_evaluate_conditional): Split the cond argument.
8050         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8051         (simplify_stmt_for_jump_threading): Update call to
8052         vrp_evaluate_conditional.
8054 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8056         PR tree-optimization/35982
8057         * tree-vect-analyze.c (vect_check_interleaving): Check that the
8058         interleaved data-refs are of the same type.
8060 2008-04-24  Danny Smith  <dannysmith@users.net>
8062         * c-format.c (check_format_info_main): Use strncmp rather than a
8063         magic prefix to handle multichar length specs.
8064         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8065         Don't prefix "I64" and "I32" with '\0'.
8067 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8069         PR target/36015
8070         * config/i386/i386.c (init_cumulative_args): Don't pass anything
8071         in registers for -m32 only if stdarg_p (fntype).
8073 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
8075         PR rtl-optimization/36006
8076         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8077         temp to op0 in order to avoid invalid rtx sharing.
8079 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
8081         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
8082         check TREE_INVARIANT.
8083         * tree-gimple.c (is_gimple_address): New.
8084         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8085         * tree-gimple.h (is_gimple_address): New.
8086         * tree.h (decl_address_invariant_p): New.
8087         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8088         (build_string): Likewise.
8089         (decl_address_invariant_p): New, from is_gimple_invariant_address.
8090         (tree_invariant_p_1): Likewise.
8091         (save_expr): Use it.
8092         (tree_invariant_p): New.
8093         (skip_simple_arithmetic): Use it.
8094         (stabilize_reference_1): Use it.
8095         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8096         simplify.
8097         (build1_stat): Drop code to compute TREE_INVARIANT.
8098         (build2_stat): Drop code to compute TREE_INVARIANT.
8099         (build3_stat): Drop code to compute TREE_INVARIANT.
8100         (build4_stat): Drop code to compute TREE_INVARIANT.
8101         (build5_stat): Drop code to compute TREE_INVARIANT.
8102         (build7_stat): Drop code to compute TREE_INVARIANT.
8103         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8104         * tree.h (struct tree_base): Remove invariant_flag.
8105         (TREE_INVARIANT): Remove.
8106         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8107         (fold_builtin_expect): Check TREE_CONSTANT.
8108         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8109         * c-tree.h (c_expr_to_decl): Drop third parameter.
8110         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8111         (build_c_cast): Don't set TREE_INVARIANT.
8112         (pop_init_level): Don't set TREE_INVARIANT.
8113         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8114         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8115         TREE_CONSTANT.
8116         (gimplify_init_constructor): Don't set TREE_INVARIANT.
8117         (gimplify_addr_expr): Adjust comment.
8118         * tree-mudflap.c (mf_build_string):
8119         * print-tree.c (print_node): Don't print TREE_INVARIANT.
8120         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8121         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8122         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8123         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8124         * langhooks.h (struct lang_hooks): Drop third parameter from
8125         expr_to_decl.
8127 2008-04-23  Richard Guenther  <rguenther@suse.de>
8129         PR tree-optimization/27799
8130         PR tree-optimization/32921
8131         PR tree-optimization/32624
8132         * tree-ssa-structalias.c (merge_smts_into): Only merge the
8133         SMTs aliases and the tag itself into the solution.
8134         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8135         merge the points-to solution back into the SMT aliases.
8136         (may_alias_p): Use alias_set_subset_of instead of
8137         aliases_conflict_p.  A pointer which points to
8138         memory with alias set zero may access any variable.
8140 2008-04-23  Richard Guenther  <rguenther@suse.de>
8142         * alias.c (alias_set_subset_of): Correctly handle asking
8143         if zero is a subset of an alias set with zero child.
8144         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8145         (compute_flow_insensitive_aliasing): Correctly walk all
8146         pointers.  Do not unnecessarily union sets.
8148 2008-04-23  Richard Guenther  <rguenther@suse.de>
8150         PR middle-end/36021
8151         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8153 2008-04-22  Tomas Bily  <tbily@suse.cz>
8155         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8156         unreachable case.
8157         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8158         NON_LVALUE_EXPR.
8159         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8160         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8161         * tree-inline.c (estimate_num_insns_1): Likewise.
8162         * varasm.c (const_hash_1, compare_constant, copy_constant)
8163         (compute_reloc_for_constant, output_addressed_constants): Likewise.
8164         * emit-rtl.c (component_ref_for_mem_expr)
8165         (set_mem_attributes_minus_bitpos): Likewise.
8166         * expr.c (highest_pow2_factor, expand_expr_real_1, )
8167         (is_aligning_offset): Likewise.
8168         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8169         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8170         * dojump.c (do_jump): Likewise.
8171         * builtins.c (get_pointer_alignment, get_memory_rtx)
8172         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8173         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8175 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
8177         PR rtl-optimization/36017
8178         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8179         expanding the library call.
8181 2008-04-22  Ian Lance Taylor  <iant@google.com>
8183         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8184         than size_in_bytes.
8186 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
8188         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8189         of LR/CTR moves for Power6.
8191 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8193         PR middle-end/36003
8194         * passes.c (init_optimization_passes): Remove
8195         pass_fast_rtl_byte_dce.
8196         
8197 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
8199         PR target/29096
8200         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8201         builtin functions to generate faster code.
8202         (_mm_cvtpu16_ps): Ditto.
8203         (_mm_cvtpi32x2_ps): Ditto.
8205 2008-04-22  Nick Clifton  <nickc@redhat.com>
8207         * common.opt (ftree-loop-distribution): Add Optimization
8208         attribute.
8210         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8211         (frv_expand_builtin_va_start): Likewise.
8213         * config/arm/arm.c (thumb_find_work_register): Fix location of
8214         argument register count.
8216 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8218         Support scheduling for ColdFire V1 and V3 microarchitecture.
8219         Improve scheduling of multiplication instructions.
8221         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
8222         (mac): New instruction attribute.
8223         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8224         (m68k_sched_mac): New variable.
8225         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8226         Handle cfv1 and cfv3.
8227         (max_insn_size): New static variable.
8228         (struct _sched_ib): New type.
8229         (sched_ib): New static variable.
8230         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8231         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
8232         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8233         Update.
8234         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8235         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
8236         new variables.  Update.
8237         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8238         Add modeling of cfv3 instruction buffer.  Update.
8239         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8240         * config/m68k/m68k.h (TUNE_CFV3): New macro.
8241         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8242         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8243         a particular reservation applies to.
8244         (type2): Reorganize attribute values.  Rename alu to alu_reg,
8245         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
8246         to mul_l and mul_w.
8247         (cf_ib_*): Simplify description of instruction buffer.
8248         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8249         (cf_mem): Split into cf_mem1 and cf_mem2.
8250         (cf_v2_move_??): Rename to cfv12_alu_??.
8251         (cf_v2_move_l_??): Rename to cfv12_omove_??.
8252         (cf_v2_mul_??): Remove reservations.
8253         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8254         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8255         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8256         appropriate place.
8257         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8258         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8259         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8260         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8261         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8262         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8263         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8264         expansions of the above reservations for instructions of sizes
8265         1, 2 and 3 words.
8267 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8269         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8271 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
8273         * coverage.c: Include tree-pass.h.
8274         (coverage_counter_alloc): Print da_file_name to the dump file.
8276 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
8278         * sbitmap.c (sbitmap_range_empty_p): New function.
8279         * sbitmap.h (sbitmap_range_empty_p): New function.
8280         * bitmap.h: Now includes obstack.h.
8282 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
8283             Kenneth Zadeck  <zadeck@naturalbridge.com>
8285         * dbgcnt.def (ra_byte_scan): Added.
8286         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8287         when the last hit happens for a counter.  
8288         * timevar.def (TV_DF_BYTE_LR): New variable.
8289         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8290         * passes.c (pass_fast_rtl_byte_dce): New pass.
8291         * fwprop.c (update_df): Added mode to call df_ref_create.
8292         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8293         DF_REF_EXTRACT_OFFSET.
8294         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
8295         DF_BYTE_LR_OUT, df_byte_lr): New macro.
8296         (df_mm): New enum.
8297         (df_ref_extract): Added mode field.
8298         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8299         DF_REF_EXTRACT_OFFSET.
8300         (DF_REF_EXTRACT_MODE): New macro.
8301         (df_byte_lr_bb_info): New structure.
8302         (df_print_byte_regset, df_compute_accessed_bytes, 
8303         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8304         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8305         df_byte_lr_simulate_uses,
8306         df_byte_lr_simulate_artificial_refs_at_top,
8307         df_byte_lr_simulate_artificial_refs_at_end,
8308         df_compute_accessed_bytes): New function.
8309         (df_ref_create): Add parameter.
8310         (df_byte_lr_get_bb_info): New inline function.
8311         * df-scan.c (df_ref_record, df_uses_record,
8312         df_ref_create_structure): Added mode parameter.
8313         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
8314         df_defs_record, df_uses_record, df_get_conditional_uses,
8315         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
8316         df_entry_block_defs_collect, df_exit_block_uses_collect):
8317         Added mode parameter to calls to df_ref_record, df_uses_record,
8318         df_ref_create_structure.
8319         (df_ref_equal_p, df_ref_compare): Added test for modes.
8320         (df_ref_create_structure): Added code to set mode.  Renamed
8321         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8322         DF_REF_EXTRACT_OFFSET.
8323         * df-core.c (df_print_byte_regset): New function.
8324         * df-byte-scan.c: New file.
8325         * df-problems.c (df_rd_transfer_function): Removed unnecessary
8326         calls to BITMAP_FREE.  
8327         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8328         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8329         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
8330         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
8331         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8332         df_byte_lr_local_compute, df_byte_lr_init,
8333         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
8334         df_byte_lr_transfer_function, df_byte_lr_free, 
8335         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8336         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
8337         df_byte_lr_simulate_uses,
8338         df_byte_lr_simulate_artificial_refs_at_top,
8339         df_byte_lr_simulate_artificial_refs_at_end): New function.
8340         * dce.c (byte_dce_process_block): New function.
8341         (dce_process_block): au is now passed in rather than computed
8342         locally.  Changed loops that look at artificial defs to not look
8343         for conditional or partial ones, because there never are any.  
8344         (fast_dce): Now is able to drive byte_dce_process_block or 
8345         dce_process_block depending on the kind of dce being done.
8346         (rest_of_handle_fast_dce): Add parameter to fast_dce.
8347         (rest_of_handle_fast_byte_dce): New function.
8348         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8349         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8351 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
8353         PR fortran/35019
8354         * gcc.h: Added fortran options that take arguments to
8355         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8356         macros.
8358 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8360         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8361         scalarization if on the LHS and not a full access.
8363 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8365         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8367 2008-04-18  Rafael Espindola  <espindola@google.com>
8369         * tree-vrp.c (find_case_label_index): Fix the binary search.
8370         (find_case_label_range): New.
8371         (vrp_visit_switch_stmt): Use find_case_label_range.
8372         (simplify_switch_using_ranges): Use find_case_label_range.
8374 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8376         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8377         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8379 2008-04-18  Tom Tromey  <tromey@redhat.com>
8381         PR libcpp/15500:
8382         * doc/cpp.texi (Implementation-defined behavior): Mention
8383         -finput-charset.
8385 2008-04-18  Ian Lance Taylor  <iant@google.com>
8387         * fold-const.c (pointer_may_wrap_p): New static function.
8388         (fold_comparison): Add another test for pointer overflow.  Use
8389         pointer_may_wrap_p to disable some false positives.
8391 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
8392           
8393         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8394         (fname_as_string): Match updated cpp_interpret_string prototype.
8395         (fix_string_type): Support char16_t* and char32_t*.
8396         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8397         derivative) nodes.  Register as builtin if C++0x.
8398         (c_parse_error): Support CPP_CHAR{16,32}.
8399         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
8400         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8401         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8402         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8403         CTI_CHAR32_ARRAY_TYPE>: New elements.
8404         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8405         char32_type_node, signed_char32_type_node, char16_array_type_node,
8406         char32_array_type_node): New defines.
8407         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8408         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8409         (lex_string): Support CPP_STRING{16,32}, match updated
8410         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8411         (lex_charconst): Support CPP_CHAR{16,32}.
8412         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8413         and CPP_STRING{16,32}.
8415 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
8417         PR bootstrap/35457
8418         * aclocal.m4: Regenerate.
8419         * configure: Regenerate.
8421 2008-04-18  Jan Hubicka  <jh@suse.cz>
8423         * except.c (dw2_size_of_call_site_table,
8424         sjlj_size_of_call_site_table): Use vector API for call_site_record.
8426         * cgraphbuild.c (build_cgraph_edges): Update.
8427         * tree-pass.h: Update comment.
8428         * final.c (leaf_function_p): Update.
8429         (leaf_renumber_regs): Update.
8430         (rest_of_clean_state): Update.
8431         * omp-low.c (expand_omp_parallel): Update.
8432         * ipa-reference.c (analyze_function): Update.
8433         * reorg.c (find_end_label): Update.
8434         (optimize_skip): Update.
8435         (fill_simple_delay_slots): Update.
8436         (fill_simple_delay_slots): Update.
8437         (make_return_insns): Update.
8438         (dbr_schedule): Update.
8439         * gimple-low.c (record_vars_into): Update.
8440         * cfgbuild.c (make_edges): Update.
8441         * function.c (assign_stack_local): Update.
8442         (assign_parm_adjust_stack_rtl): Update.
8443         (locate_and_pad_parm): Update.
8444         (allocate_struct_function): Do not initialize stack_alignment_needed
8445         and preferred_stack_boundary here.
8446         (stack_protect_prologue): Update.
8447         (stack_protect_epilogue): Update.
8448         (expand_function_start): Initialize stack_alignment_needed,
8449         preferred_stack_boundary and max_jumptable_ents.
8450         (expand_function_end): Update.
8451         (free_after_compilation): Do not NULLify epilogue_delay_list.
8452         * function.h (struct rtl_data): Add stack_protect_guard,
8453         stack_alignment_needed,
8454         preferred_stack_boundary, epilogue_delay_list.
8455         (struct function): Remove value_histograms, stack_alignment_needed,
8456         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8457         last_label_uid,
8458         unexpanded_var_list, stack_protect_guard.
8459         (current_function_epilogue_delay_list): Remove.
8460         * ipa-type-escape.c (analyze_function): Update.
8461         * gimplify.c (pop_gimplify_context): Update comment.
8462         * calls.c (expand_call): Update.
8463         (emit_library_call_value_1): Update.
8464         * except.c (set_nothrow_function_flags): Update.
8465         * cfgexpand.c (get_decl_align_unit): Update.
8466         (create_stack_guard): Update.
8467         (estimated_stack_frame_size): Update.
8468         (expand_used_vars): Update.
8469         (tree_expand_cfg): Free histogram earliers, init expansion variables.
8470         * explow.c (allocate_dynamic_stack_space): Update.
8471         * tree-ssa-live.c (remove_unused_locals): Update.
8472         * varasm.c (mark_constant_pool): Update.
8473         * tree-inline.c (remap_decls): Update.
8474         (initialize_cfun): Update.
8475         (declare_return_variable): Update.
8476         (inline_forbidden_p): Update.
8477         (expand_call_inline): Update.
8478         (declare_inline_vars): Update.
8479         (tree_function_versioning): Update.
8480         * tree-flow.h (value_histograms): New.
8481         (VALUE_HISTOGRAMS): New macro.
8482         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8483         last_label_uid.
8484         * tree-cfg.c (set_bb_for_stmt): Update.
8485         (replace_by_duplicate_decl): Update.
8486         (move_block_to_fn): Update.
8487         (new_label_mapper): Update.
8488         (dump_function_to_file): Update.
8489         * ipa-struct-reorg.c (build_data_structure): Update.
8490         * cfgrtl.c (print_rtl_with_bb): Update.
8491         * reload1.c (reload): Update.
8492         (reload): Update.
8493         * config/i386/i386.c (setup_incoming_varargs_64,
8494         ix86_compute_frame_layout): Update.
8495         * config/arc/arc.c (arc_output_function_epilogue): Update.
8497 2008-04-18  Marius Strobl <marius@FreeBSD.org>
8499         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8500         for FreeBSD as well.
8501         * gthr-posix95.h: Likewise.
8503 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
8505         PR rtl-optimization/35838
8506         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8507         out the byte offset of the first subreg.
8509 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
8511         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8512         to split_ti instead of three separate calls with single member arrays.
8513         (subti3 splitter): Ditto.
8514         (adddi3 splitter): Ditto with split_di.
8515         (subdi3 splitter): Ditto.
8516         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8517         two separate calls with single member arrays.  Swap match_dup
8518         operands 1 and 2 to better fit into the array.
8519         (negdi2 splitter): Ditto with split_di.
8520         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
8521         two separate calls with single member arrays.  Swap match_dup operands
8522         6 and 7 to better fit into the array.
8524 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8526         * config/i386/i386.c (sse_builtin_type): New.
8527         (bdesc_sse_args): Likewise.
8528         (bdesc_sse_3arg): Removed.
8529         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8530         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8531         IX86_BUILTIN_ROUNDPS.
8532         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
8533         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
8534         IX86_BUILTIN_ROUNDPS.
8535         (ix86_expand_sse_4_operands_builtin): Removed.
8536         (ix86_expand_sse_operands_builtin): New.
8537         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8538         and CODE_FOR_sse4_1_roundps.
8539         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8540         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
8542 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
8544         PR target/35907
8545         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8546         regs before frame pop when needed.  If use_backchain_to_restore_sp
8547         then load backchain into a temp reg to restore vr and vrsave.  Add
8548         code to restore vr after frame pop if possible.
8550 2008-04-17  Richard Guenther  <rguenther@suse.de>
8552         * tree-vn.c (expressions_equal_p): Do not check type
8553         equality or compatibility before calling operand_equal_p.
8554         * fold-const.c (operand_equal_p): Check equivalence of
8555         integer constants before bailing out due to signedness or
8556         precision differences.
8557         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8558         spurious differences in type qualification.  Ignore types
8559         for COMPONENT_REFs at all.
8561 2008-04-17  Christian Bruel  <christian.bruel@st.com>
8563         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8564         msw_skip comparison.
8565         
8566 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
8568         PR c/35739
8569         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8570         reg type.
8572         PR tree-optimization/35899
8573         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8574         rather than TREE_OPERAND.
8576 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
8578         PR target/35944
8579         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8580         temporary registers.  Change operand predicate to general_operand.
8581         (remainderxf3): Ditto.
8583 2008-04-16  Richard Guenther  <rguenther@suse.de>
8585         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8586         * tree-affine.c (aff_combination_expand): Look through some
8587         conversions.
8589 2008-04-15  Doug Kwan  <dougkwan@google.com>
8591         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8592         for hex printing.
8593         * tree-pretty-print.c (dump_generic_node): Ditto.
8594         * final.c (output_addr_const): Ditto.
8595         * dwarf2out.c (output_cfi): Ditto.
8596         * c-pretty-print.c (pp_c_integer_constant): Ditto.
8597         * print-rtl.c (print_rtx): Ditto.
8598         * print-tree.c (print_node_brief, print_node): Ditto.
8599         * c-common.c (match_case_to_enum_1): Ditto.
8600         * sched-vis.c (print_value): Ditto.
8601         * config/i386/i386.c (print_operand): Cast to long unsigned int
8602         for hex printing.
8604 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
8605         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
8606         MS Windows VirtualProtect function.
8608 2008-04-15  Jan Hubicka  <jh@suse.cz>
8610         * gengtype.c (write_root): Param_is argument is OK.
8611         * expr.c (expand_expr_real_1): Update call of get_exception_*.
8612         * function.h: Include varray.h
8613         (rtl_eh): New stucture based on except.c one.
8614         (call_site_record): New forward declaration and vector type.
8615         * calls.c (emit_call_1): Do not call
8616         note_current_region_may_contain_throw.
8617         * except.c (eh_status): Remove cur_region, try_region since they are
8618         unused.
8619         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8620         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8621         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
8622         Remove call_site_data_used, call_site_data_size.
8623         Turn call_site_record into vector in function.h.
8624         (note_current_region_may_contain_throw): Remove.
8625         (get_exception_pointer, get_exception_filter): Do not take struct
8626         function argument; update.
8627         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8628         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8629         build_post_landing_pads, dw2_build_landing_pads,
8630         sjlj_assign_call_site_values, sjlj_mark_call_sites,
8631         sjlj_emit_function_enter, sjlj_emit_function_enter, 
8632         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8633         sjlj_build_landing_pads, finish_eh_generation,
8634         remove_exception_handler_label, remove_eh_handler,
8635         maybe_remove_eh_handler, add_reachable_handler,
8636         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8637         add_action_record, collect_one_action_chain, add_call_site,
8638         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8639         sjlj_output_call_site_table, output_function_exception_table,
8640         * except.h (note_current_region_may_contain_throw): Remove
8641         (get_exception_pointer, get_exception_filter): Do not take struct
8642         function argument.
8643         * Makefile.in (GTFILES): Put varargs before struct function.
8645 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8647         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8648         punt for STRING_CST.
8649         (get_constraint_for): Deal with STRING_CST here instead.
8651 2008-04-15  Richard Guenther  <rguenther@suse.de>
8653         * tree-ssa-propagate.c (substitute_and_fold): Substitute
8654         statements in a basic-block with a backward walk.  Do not
8655         substitute into dead statements but instead remove those.
8657 2008-04-15  Richard Guenther  <rguenther@suse.de>
8659         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8660         to zero, thus disable creation of SFTs.
8662 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8664         * tree-predcom.c (suitable_reference_p): Return false if the
8665         reference can throw.
8667 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
8669         PR c/35751
8670         * c-decl.c (finish_decl): If extern or static var has variable
8671         size, set TREE_TYPE (decl) to error_mark_node.
8673 2008-04-15  Rafael Espindola  <espindola@google.com>
8675         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8676         variable arg1.
8678 2008-04-15  Richard Guenther  <rguenther@suse.de>
8680         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8681         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8682         (visit_reference_op_load): Do walk vuse-vdef chains on
8683         vn_reference_lookup.
8684         (visit_reference_op_store): But do not here.
8685         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8686         vn_reference_lookup.
8687         (vn_lookup_with_vuses): But do so here.
8689 2008-04-14  Ian Lance Taylor  <iant@google.com>
8691         * fold-const.c (fold_overflow_warning): Remove assertion.
8693 2008-04-15  Ben Elliston  <bje@au.ibm.com>
8695         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8696         temp1 local variables.
8698 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
8700         PR target/35661
8701         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8702         ".text.unlikely" section as executable.
8704 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
8706         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8707         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8708         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8709         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8710         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8711         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8712         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8714 2008-04-14  Ian Lance Taylor  <iant@google.com>
8716         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8717         * fold-const.c (fold_comparison): If appropriate, test
8718         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8719         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8720         reassociating a pointer type.
8721         * doc/invoke.texi (Optimize Options): Document that
8722         -fstrict-overflow applies to pointer wraparound.
8724 2008-04-13  Jan Hubicka  <jh@suse.cz>
8726         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8728 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
8730         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8731         we are going to "save the world".
8733 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
8735         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8736         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8737         operand 0 constraint, not "=".
8739 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
8741         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8743 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8745         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8746         of size of positions_needed * CHAR_BIT.
8748 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8750         PR middle-end/35897
8751         * dse.c (store_info): Change positions_needed to unsigned
8752         HOST_WIDE_INT.
8753         (lowpart_bitmask): New.
8754         (record_store): Cast to unsigned HOST_WIDE_INT for
8755         positions_needed.  Assert width <= size of positions_needed *
8756         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
8757         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
8758         lowpart_bitmask to set mask.
8760 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8762         * config/bfin/constraints.md: New file.
8763         * config/bfin/bfin.md: Include it.
8764         (adddi3): Use satisfies_constraint functions instead of the old macros.
8765         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8766         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8767         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8768         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8769         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8770         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8771         EXTRA_CONSTRAINT): Delete.
8772         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8773         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8774         of the old macros.
8775         * config/bfin/bfin.c: Include "tm-constrs.h".
8776         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8777         Use satisfies_constraint functions instead of the old macros.
8778         * doc/md.texi (Blackfin Constraints): Update file name reference.
8780 2008-04-11  Richard Guenther  <rguenther@suse.de>
8782         PR tree-optimization/35869
8783         * tree-vrp.c (execute_vrp): Move switch statement update after
8784         jump threading.  Schedule another cfg cleanup run.
8786 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
8788         PR c/35744
8789         * attribs.c (decl_attributes): Return early on errorneous node.
8791 2008-04-10  Oleg Ryjkov  <olegr@google.com>
8793         * tree.h (struct tree_base): Added a new flag default_def_flag.
8794         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8796 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8798         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8800 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8802         PR target/35768
8803         * pa.md: Define mode iterator P.  Define mode attribute dwc.
8804         (dcacheflush): Update pattern to use iterator P and attribute dwc.
8805         (icacheflush): Likewise.
8806         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8807         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8809 2008-04-11  Ben Elliston  <bje@au.ibm.com>
8811         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8813 2008-04-10  Rafael Espindola  <espindola@google.com>
8815         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8816         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8817         (extract_range_from_expr): The same.
8819 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8821         * config/mips/mips.md (GPR2): New mode iterator.
8822         (seq): Add comment.
8823         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
8824         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
8825         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8826         Rewrite these to take two modes, the mode of comparison and the
8827         mode of the destination.
8828         * config/mips/mips.c (mips_expand_scc): Instead of having
8829         paradoxical subreg as destination, expand "narrowing" scc if mode
8830         of comparison is SI and target is requested in DI mode.
8831         (mips_emit_int_order_test): Update comment.  Make mode of
8832         comparison match CMP0 rather than TARGET.  When creating inverse
8833         target use mode of TARGET.
8835 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8837         * gcov-dump.c (tag_summary): Only print summaries for the first
8838         GCOV_COUNTERS_SUMMABLE counters.
8840 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
8842         * config/i386/i386.md (absneg): New code iterator.
8843         (absnegprefix): New code attribute.
8844         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
8845         patterns using absneg code iterator.
8846         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
8847         using absneg code iterator.
8848         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
8849         *neg<mode>2 patterns using absneg code iterator.
8850         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8851         *negextendsfdf2 patterns using absneg code iterator.
8852         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
8853         *negextendsfxf2 patterns using absneg code iterator.
8854         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8855         *negextendsfdf2 patterns using absneg code iterator.
8856         * config/i386/sse.md (<code><mode>2): Macroize expander from
8857         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
8859 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
8861         * config/s390/s390.h: Remove the remains of the recent search
8862         & replace action of current_function_outgoing_args_size.
8864 2008-04-10  Ira Rosen  <irar@il.ibm.com>
8866         PR tree-optimization/35821
8867         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
8868         NEW_STMT_LIST is not NULL.
8870 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
8872         PR libstdc++/35597
8873         * toplev.c (process_options): Remove -ffunction-sections debugging
8874         warning.
8876 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
8878         PR middle-end/PR28690
8879         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
8880         than gen_rtx_fmt_ee to perform more canonicalizations.
8882 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8884         PR driver/35665
8885         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
8887 2008-04-09  Richard Guenther  <rguenther@suse.de>
8889         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
8890         (dump_function_to_file): Dump function arguments with types.
8892 2008-04-08  Richard Guenther  <rguenther@suse.de>
8894         * fold-const.c (fold_widened_comparison): Do not allow
8895         sign-changes that change the result.
8897 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
8899         PR target/35839
8900         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
8901         kinds of indirect references.
8903 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
8905         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
8906         GNU Fortran language string.
8908 2008-04-08  Rafael Espindola  <espindola@google.com>
8910         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
8911         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
8912         * tree.h (tree_call_nonnegative_warnv_p): New.
8914 2008-04-08  Jan Hubicka  <jh@suse.cz>
8916         * function.c (free_after_compilation): Clear out regno_reg_rtx
8917         pointer.
8919 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
8921         Revert
8922         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8924         PR middle-end/PR28690
8925         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
8926         same precedence as REG_POINTER and MEM_POINTER operands.
8928 2008-04-08  Richard Guenther  <rguenther@suse.de>
8930         PR middle-end/35834
8931         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
8932         for adding index to base.
8934 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
8936         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
8937         (MINGW_ENABLE_EXECUTE_STACK): New.
8938         (IN_LIBGCC2): For libgcc include windows.h file for
8939         function declarations.
8941 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
8943         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
8944         and tem2 if tem1 is not a REG or MULT.
8946 2008-04-08  Jan Hubicka  <jh@suse.cz>
8948         * function.h (incomming_args): Break out of struct function.
8949         (function_subsections): Break out of struct function.
8950         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
8951         return_rtx and hard_reg_initial_vals from struct function.
8952         Kill inl_max_label_num.
8953         (current_function_pops_args, current_function_args_info,
8954         current_function_args_size, current_function_args_size,
8955         current_function_pretend_args_size,
8956         current_function_outgoing_args_size,
8957         current_function_internal_arg_pointer, current_function_return_rtx):
8958         Kill compatibility accestor macros.
8959         * builtins.c (expand_builtin_apply_args_1): Update.
8960         (expand_builtin_next_arg): Update.
8961         * df-scan.c (df_get_call_refs): Update.
8962         * dbxout.c (dbxout_function_end): Update.
8963         * dwarf2out.c (dwarf2out_switch_text_section): Update.
8964         (output_line_info): Update.
8965         (secname_for_decl): Update.
8966         (dwarf2out_var_location): Update.
8967         * function.c (free_after_compilation): Update.
8968         (assign_parm_find_stack_rtl): Update.
8969         (assign_parms): Update.
8970         (expand_dummy_function_end): Update.
8971         (expand_function_end): Update.
8972         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
8973         (expand_call): Update.
8974         (emit_library_call_value_1): Update.
8975         (store_one_arg): Update.
8976         * varasm.c (initialize_cold_section_name): Update.
8977         (unlikely_text_section): Update.
8978         (unlikely_text_section_p): Update.
8979         (assemble_start_function): Update.
8980         (assemble_end_function): Update.
8981         (default_section_type_flags): Update.
8982         (switch_to_section): Update.
8983         * integrate.c (set_decl_abstract_flags): Update.
8984         (get_hard_reg_initial_val): Update.
8985         (has_hard_reg_initial_val): Update.
8986         (allocate_initial_values): Update.
8987         * resource.c (init_resource_info): Update.
8988         * config/alpha/alpha.c (NUM_ARGS): Update.
8989         (direct_return): Update.
8990         (alpha_va_start): Update.
8991         (alpha_sa_size): Update.
8992         (alpha_initial_elimination_offset): Update.
8993         (alpha_expand_prologue): Update.
8994         (alpha_start_function): Update.
8995         (alpha_expand_epilogue): Update.
8996         (unicosmk_initial_elimination_offset):
8997         * config/alpha/alpha.md (call expander): Update.
8998         * config/s390/s390.c (s390_register_info): Update.
8999         (s390_register_info): Update.
9000         (s390_frame_info): Update.
9001         (s390_initial_elimination_offset): Update.
9002         (s390_build_builtin_va_list): Update.
9003         (s390_va_start): Update.
9004         * config/spu/spu.c (direct_return): Update.
9005         (spu_expand_prologue): Update.
9006         (spu_initial_elimination_offset): Update.
9007         (spu_build_builtin_va_list): Update.
9008         (spu_va_start): Update.
9009         * config/sparc/sparc.c (sparc_init_modes): Update.
9010         (sparc_compute_frame_size): Update.
9011         (function_value): Update.
9012         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9013         * config/i386/i386.md (return expander): Update.
9014         * config/i386/i386.c (ix86_va_start): Update.
9015         (ix86_can_use_return_insn_p): Update.
9016         (ix86_compute_frame_layout): Update.
9017         (ix86_expand_epilogue): Update.
9018         * config/sh/sh.c (output_stack_adjust): Update.
9019         (calc_live_regs): Update.
9020         (sh_expand_prologue): Update.
9021         (sh_builtin_saveregs): Update.
9022         (sh_va_start): Update.
9023         (initial_elimination_offset): Update.
9024         (sh_allocate_initial_value): Update.
9025         (sh_function_ok_for_sibcall): Update.
9026         (sh_get_pr_initial_val): Update.
9027         * config/sh/sh.md (return expander): Update.
9028         * config/avr/avr.c (frame_pointer_required_p): UPdate.
9029         * config/crx/crx.c (crx_compute_frame): UPdate.
9030         (crx_initial_elimination_offset): UPdate.
9031         * config/xtensa/xtensa.c (compute_frame_size): Update
9032         (xtensa_builtin_saveregs): Update.
9033         (xtensa_va_start): Update.
9034         (order_regs_for_local_alloc): Update.
9035         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9036         (xstormy16_expand_builtin_va_start): Update.
9037         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9038         * config/m68hc11/m68hc11.md (return expanders): Update.
9039         * config/m68hc11/m68hc11.c (expand_prologue): Update.
9040         (expand_epilogue): Update.
9041         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9042         (cris_simple_epilogue): Update.
9043         (cris_expand_prologue): Update.
9044         (cris_expand_epilogue): Update.
9045         * config/iq2000/iq2000.c (iq2000_va_start): Update.
9046         (compute_frame_size): Update.
9047         * config/mt/mt.c (mt_compute_frame_size): Update.
9048         * config/mn10300/mn10300.c (expand_prologue): Update.
9049         (expand_epilogue): Update.
9050         (initial_offset): Update.
9051         (mn10300_builtin_saveregs):
9052         * config/mn10300/mn10300.md (return expander): Update.
9053         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9054         (ia64_initial_elimination_offset): Update.
9055         (ia64_initial_elimination_offset): Update.
9056         (ia64_expand_prologue): Update.
9057         * config/m68k/m68k.md (return expander): Update.
9058         * config/rs6000/rs6000.c (rs6000_va_start): Update.
9059         (rs6000_stack_info): Update.
9060         * config/mcore/mcore.c (layout_mcore_frame): Update.
9061         (mcore_expand_prolog): Update.
9062         * config/arc/arc.c (arc_compute_frame_size): Update.
9063         * config/score/score3.c (score3_compute_frame_size): Update.
9064         * config/score/score7.c (score7_compute_frame_size): Update.
9065         * config/arm/arm.c (use_return_insn): Update.
9066         (thumb_find_work_register): Update.
9067         (arm_compute_save_reg_mask): Update.
9068         (arm_output_function_prologue): Update.
9069         (arm_output_epilogue): Update.
9070         (arm_size_return_regs): Update.
9071         (arm_get_frame_offsets): Update.
9072         (arm_expand_prologue): Update.
9073         (thumb_exit): Update.
9074         (thumb_unexpanded_epilogue): Update.
9075         (thumb1_output_function_prologue): Update.
9076         * config/pa/pa.md (return expander): Update.
9077         * config/pa/pa.c (compute_frame_size): Update.
9078         (hppa_builtin_saveregs): Update.
9079         * config/mips/mips.c (mips_va_start): Update.
9080         (mips16_build_function_stub): Update.
9081         (mips_compute_frame_info): Update.
9082         (mips_restore_gp): Update.
9083         (mips_output_function_prologue): Update.
9084         (mips_expand_prologue): Update.
9085         * config/v850/v850.c (compute_frame_size): Update.
9086         (expand_prologue): * config/mmix/mmix.c (along): update.
9087         (mmix_initial_elimination_offset): update.
9088         (mmix_reorg): update.
9089         (mmix_use_simple_return): update.
9090         (mmix_expand_prologue): update.
9091         (mmix_expand_epilogue): Update.
9092         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9093         (emit_link_insn): Update.
9095 2008-04-08  Anatoly Sokolov <aesok@post.ru>
9097         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
9098         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
9099         instructions.
9100         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
9101         atmega103 device.
9103 2008-04-07  Jan Hubicka  <jh@suse.cz>
9105         * function.h (rtl): Rename to x_rtl.
9106         (crtl): New define.
9107         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9108         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9109         used_temp_slots avail_temp_slots, temp_slot_level,
9110         nonlocal_goto_handler_labels): Update accesstors.
9111         (rtl): New global variable.
9112         (struct function): Move some fileds to rtl_data.
9113         (get_arg_pointer_save_area): Update prototype.
9114         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9115         get_arg_pointer_save_area.
9116         * expr.c (init_expr): Update
9117         * function.c (get_frame_size): Update
9118         (assign_stack_local): Update
9119         (expand_function_end): Update.
9120         (get_art_pointer_save_area): Update
9121         * function.h 
9122         * emit-rtl.c (rtl): Declare.
9123         (regno_reg_rtx): Declare.
9124         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9125         Update.
9126         (gen_reg_rtx): Update.
9127         * varasm.c (n_deferred_constatns): Update accestor.
9128         (init_varasm_status): Do not allocate varasm_status.
9129         (force_const_mem, get_pool_size, output_constant_pool): Update.
9130         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9131         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9132         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9133         * sparc/sparc.h (INIT_EXPANDERS): Update.
9134         * ia64/ia64.h (INIT_EXPANDERS): Update.
9136 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
9138         * reload.c (push_secondary_reload): Add missing break to for loop.
9140 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9142         PR middle-end/PR28690
9143         * rtlanal.c: Update copyright years.
9144         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9145         as REG_POINTER and MEM_POINTER operands.
9146         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9147         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9148         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9149         * gcse.c: Update copyright years.
9150         (pre_delete): Call gen_reg_rtx_and_attrs.
9151         (hoist_code): Likewise.
9152         (build_store_vectors): Likewise.
9153         (delete_store): Likewise.
9154         * loop-invariant.c (move_invariant_reg): Likewise.
9155         Update copyright years.
9157 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
9159         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9160         control string instead of quoted.
9162 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9164         * doc/rtl.texi: Rewrite of subreg section.
9166 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
9168         PR/35842
9169         * config/i386/i386.c (legitimize_pic_address): Add treating
9170         of dllimport SYM_REF's.
9171         (legitimize_dllimport_symbol): Add prototype.
9173 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9175         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
9176         reference in constructor with non self-referential type.
9178 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9180         Removal of Return with Depressed Stack Pointer support
9181         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9182         (ECF_SP_DEPRESSED): Likewise.
9183         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9184         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9185         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9186         (expand_call): Do not test ECF_SP_DEPRESSED.
9187         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9188         * function.c (keep_stack_depressed): Delete.
9189         (handle_epilogue_set): Likewise.
9190         (update_epilogue_consts): Likewise.
9191         (emit_equiv_load): Likewise.
9192         (thread_prologue_and_epilogue_insns): Remove support for Return with
9193         Depressed Stack Pointer.
9194         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9196 2008-04-06  Richard Guenther  <rguenther@suse.de>
9198         PR tree-optimization/35400
9199         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9200         information from SSA_NAMEs.
9202 2008-04-06  Anatoly Sokolov <aesok@post.ru>
9204         * config/avr/avr.h (avr_mega_p): Remove declaration.
9205         (AVR_MEGA): Remove macro.
9206         * config/avr/avr.c (avr_mega_p): Remove variable.
9207         (avr_override_options): Remove inicializion of avr_mega_p.
9208         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9209         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9210         (avr_jump_mode): (Ditto.).
9211         (avr_output_progmem_section_asm_op): (Ditto.).
9212         (avr_asm_init_sections): (Ditto.).
9213         (avr_asm_init_sections): (Ditto.).
9214         (avr_rtx_costs): (Ditto.).
9215         * config/avr/avr.md: (Ditto.).
9216         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
9217         '__AVR_MEGA__'.
9219 2008-04-06  Richard Guenther  <rguenther@suse.de>
9221         PR tree-optimization/35842
9222         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9223         is_gimple_invariant_address.
9225 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9227         * gcc.c (default_compilers): Sync Fortran extensions list with
9228         that in fortran/lang-specs.h.
9229         * doc/invoke.texi: Likewise.
9230         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9231         * dwarf2out.c (gen_compile_unit_die): Likewise.
9233 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
9235         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9237 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
9239         PR target/12329
9240         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9241         attribute is used for nested functions.
9243 2008-04-05  Jan Hubicka  <jh@suse.cz>
9245         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9247         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9248         letter argument.
9249         (dump_files): Update.
9250         (enable_rtl_dump_file): Do not accept letter argument.
9251         * tree-pass.h (dump_file_info): Remove letter argument.
9252         * toplev.c (decode_d_option): Update -da handling.
9253         * toplev.h (enable_rtl_dump_file): Update prototype.
9254         * passes.c (register_one_dump_file): Do not accept IPA argument; work
9255         it out based on pass type.
9256         (register_dump_files_1): Likewise.
9257         (init_optimization_passes): Update register_one_dump_file calls.
9258         (execute_one_pass): Sanity check that IPA passes are called at IPA
9259         level and RTL passes at RTL level.
9260         (execute_pass_list): IPA pass can not be after or subpass of
9261         GIMPLE/RTL pass.
9262         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9263         disallov RTL subpasses of IPA subpasses.
9265 2008-04-05  Ben Elliston  <bje@au.ibm.com>
9267         * tree-cfg.c (need_fake_edge_p): Return false for calls to
9268         builtins that return exactly once and do not throw. Cache call to
9269         call_expr_flags.
9271 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9273         PR rtl-optimization/34916
9274         PR middle-end/35519
9275         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9276         between instruction pairs.
9278 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
9280         * doc/invoke.texi: Document -mbitops for SH.
9281         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9282         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9283         * config/sh/sh.c (print_operand): Add %t operand code.
9284         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9285         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9286         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9287         (extendqihi2): Likewise.
9288         (movqi_i): Likewise.
9289         (insv): Use bset, bclr and bst instructions for SH2A if possible.
9290         (extv): Use bld instruction for SH2A if possible.
9291         (extzv): Likewise.
9292         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9293         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9294         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9295         (bset.b, bclr.b): Define peepholes.
9296         * config/sh/sh.opt (mbitops): New option.
9298 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
9300         PR target/35620
9301         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9302         and view convert expression.
9304 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9306         PR target/35364
9307         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9309 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
9311         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9313         * config/i386/cpuid.h (bit_AES): New.
9314         (bit_PCLMUL): Likewise.
9316         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9317         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
9318         SSE2 if AES or PCLMUL is enabled.
9319         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9320         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9321         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9322         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9323         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9324         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9325         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9326         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9327         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9328         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9329         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9330         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9331         __builtin_ia32_aeskeygenassist128 and
9332         __builtin_ia32_pclmulqdq128.
9333         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9334         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9335         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
9337         * config/i386/i386.h (TARGET_AES): New.
9338         (TARGET_PCLMUL): Likewise.
9339         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9341         * config/i386/i386.md (UNSPEC_AESENC): New.
9342         (UNSPEC_AESENCLAST): Likewise.
9343         (UNSPEC_AESDEC): Likewise.
9344         (UNSPEC_AESDECLAST): Likewise.
9345         (UNSPEC_AESIMC): Likewise.
9346         (UNSPEC_AESKEYGENASSIST): Likewise.
9347         (UNSPEC_PCLMUL): Likewise.
9349         * config/i386/i386.opt (maes): New.
9350         (mpclmul): Likewise.
9352         * config/i386/sse.md (aesenc): New pattern.
9353         (aesenclast): Likewise.
9354         (aesdec): Likewise.
9355         (aesdeclast): Likewise.
9356         (aesimc): Likewise.
9357         (aeskeygenassist): Likewise.
9358         (pclmulqdq): Likewise.
9360         * config/i386/wmmintrin.h: New.
9362         * doc/extend.texi: Document AES and PCLMUL built-in function.
9364         * doc/invoke.texi: Document -maes and -mpclmul.
9366 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
9368         * function.c (free_after_parsing): Replace with
9369         cxx_push_function_context from C++ front-end.
9370         (allocate_struct_function): Don't call langhook.
9371         * langhooks.h (struct lang_hooks_for_functions): Delete.
9372         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9373         member "function".
9374         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9375         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9376         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9377         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9378         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9379         remove LANG_HOOKS_FUNCTION_INITIALIZER.
9380         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9382         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9383         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9384         
9385 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9387         PR c/35440
9388         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9389         for all types.
9391 2008-04-04  Richard Guenther  <rguenther@suse.de>
9393         PR middle-end/35823
9394         * fold-const.c (optimize_minmax_comparison): Use the correct
9395         type for the constant in the simplified comparison.
9397 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
9399         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9400         Pass L2 size as "--param l2-cache-size" to the compiler.
9401         (decode_l2_cache): New function to decode L2 cache parameters using
9402         0x8000006 extended cpuid function.
9403         (detect_caches_amd): Determine parameters of L2 cache using
9404         decode_l2_caches function.
9405         (decode_caches_intel): Decode L2 cache parameters.
9406         (detect_caches_intel): Determine L2 cache parameters using
9407         decode_caches_intel and decode_l2_caches functions.
9409 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
9411         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9412         secondary input reload for subword loads from the constant pool.
9414 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
9416         PR target/35713
9417         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9418           constants of the appropriate size for runtime calculations.
9420         PR c/35712
9421         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9422           decimal-float literal constant zero.
9424 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
9426         PR c/35738
9427         * c-parser.c (c_parser_omp_atomic): Call
9428         default_function_array_conversion on the RHS.
9430         PR middle-end/35818
9431         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9432         call is_variable_sized if decl has incomplete type.
9434 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
9436         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9438 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
9440         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9441         iterators.
9442         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9443         (sgt<u>): Merge sgt and sgtu into new expander.
9444         (sgt, sgtu): Remove expanders.
9445         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9446         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9447         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9448         *sgtu_<mode>_mips16 into new pattern.
9449         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9450         (sge<u>): Merge sge and sgeu into new expander.
9451         (sge, sgeu): Remove expanders.
9452         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9453         new pattern.
9454         (*sge_<mode>, second *sge_<mode>): Remove patterns.
9455         (slt<u>): Merge slt and sltu into new expander.
9456         (slt, sltu): Remove expanders.
9457         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9458         (*slt_<mode>, *sltu_<mode>): Remove patterns.
9459         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9460         *sltu_<mode>_mips16 into new pattern.
9461         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9462         (sle<u>): Merge sle and sleu into new expander.
9463         (sle, sleu): Remove expanders.
9464         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9465         (*sle_<mode>, *sleu_<mode>): Remove patterns.
9466         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9467         *sleu_<mode>_mips16 into new pattern.
9468         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9470 2008-04-03  Jan Hubicka  <jh@suse.cz>
9472         PR tree-optimization/35795
9473         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9474         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9475         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9476         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9477         * score/score3.c (score3_output_mi_thunk): Likewise.
9478         * score/score7.c (score7_output_mi_thunk): Likewise.
9479         * mips/mips.c (mips_output_mi_thunk): Likewise.
9481 2008-04-03  Richard Guenther  <rguenther@suse.de>
9483         * tree-vrp.c (extract_range_from_unary_expr): Handle all
9484         conversions.  Simplify code.
9486 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9488         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9490 2008-04-03  Tom Tromey  <tromey@redhat.com>
9491             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9493         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9494         * config/bfin/t-bfin-linux (generated_files): Add
9495         linux-sysroot-suffix.h.
9496         * doc/install.texi (Prerequisites): Require make 3.80.
9497         * doc/sourcebuild.texi (Front End Directory): Document new
9498         variable.
9499         * Makefile.in (generated_files): New variable.
9500         (ALL_HOST_OBJS): New variable.
9501         ($(ALL_HOST_OBJS)): New target.
9503 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9505         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9506         (remap_block): Call id->transform_lang_insert_block instead
9507         of langhook.
9508         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9509         Set id.transform_lang_insert_block to NULL.
9510         (clone_body): Move to cp/optimize.c
9511         * tree-inline.h (struct copy_body_data): Change
9512         transform_lang_insert_block to function pointer.
9513         (copy_generic_body, copy_decl_no_change): Export.
9514         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9515         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9516         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9518         * c-tree.h (insert_block): Kill.
9519         * c-decl.c (insert_block): Kill.
9521 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9523         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9524         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9525         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9526         argument.
9527         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9528         argument, call {push,pop}_function_context from here.
9529         * c-parser.c: Use c_{push,pop}_function_context.
9531         * function.c (push_function_context_to): Move meat ...
9532         (push_function_context): ... here.  Simplify.
9533         * function.c (pop_function_context_from): Move meat ...
9534         (pop_function_context): ... here.  Simplify.
9535         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9536         leave_nested).
9537         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9538         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9539         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9540         * tree.h (push_function_context_to, pop_function_context_from): Remove.
9542 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9544         * expmed.c (extract_force_align_mem_bit_field): Remove.
9546 2008-04-03  Richard Guenther  <rguenther@suse.de>
9548         PR middle-end/35800
9549         * expr.h (try_casesi): Adjust prototype.
9550         * expr.c (try_casesi): Take fallback label as extra parameter.
9551         Use that for gen_casesi if default_label is NULL.
9552         * stmt.c (expand_case): Pass fallback label to try_casesi,
9553         make sure to fill gaps with a fallback label if default_label
9554         is not present.
9556 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
9558         PR target/35801
9559         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9561 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9563         * expmed.c (extract_split_bit_field): Remove if (0) code.
9564         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9565         (do_ds_constraint): Likewise.
9567 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
9569         * doc/cppopts.texi (-dU): Document.
9570         * c-common.h (flag_dump_macros): Update comment.
9571         * c-opts.c (handle_OPT_d): Handle -dU.
9572         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9573         dump_queued_macros, cb_used_define, cb_used_undef): New.
9574         (init_pp_output): Handle -dU.
9575         (cb_line_change): Call dump_queued_macros.
9576         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9578 2008-04-02  Anatoly Sokolov <aesok@post.ru>
9580         * config/avr/predicates.md (io_address_operand): New predicate. 
9581         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9582         * config/avr/avr.c (avr_io_address_p): Remove function.
9583         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
9584         'avr_io_address_p' function.
9585         (out_movhi_r_mr): (Ditto.).
9586         (out_movqi_mr_r): (Ditto.).
9587         (out_movhi_mr_r): (Ditto.).
9588         (avr_address_cost): (Ditto.).
9590 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
9592         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9593         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9594         in 32bit mode when XMM registers are available to avoid store
9595         forwarding stalls.
9596         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9597         corresponding post-reload splitters.
9599 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9601         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9602         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
9603         __builtin_ia32_roundss.
9604         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9605         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9606         __builtin_ia32_roundss.
9607         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9608         IX86_BUILTIN_SHUFPD here.
9610 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9612         * config/i386/i386.md (plogic): New.
9613         (plogicprefix): Likewise.
9615         * config/i386/mmx.md (mmx_<code><mode>3): New.
9616         (mmx_and<mode>3): Removed.
9617         (mmx_ior<mode>3): Likewise.
9618         (mmx_xor<mode>3): Likewise.
9620         * config/i386/sse.md (<code><mode>3): New.
9621         (*<code><mode>3): Likewise.
9622         (*<code><mode>3): Likewise.
9623         (<code><mode>3): Likewise.
9624         (*sse_<code><mode>3): Likewise.
9625         (*sse2_<code><mode>3): Likewise.
9626         (<code>tf3): Likewise.
9627         (*<code>tf3): Likewise.
9628         (and<mode>3): Likewise.
9629         (*and<mode>3): Likewise.
9630         (ior<mode>3): Removed.
9631         (*ior<mode>3): Likewise.
9632         (xor<mode>3): Likewise.
9633         (*xor<mode>3): Likewise.
9634         (*and<mode>3): Likewise.
9635         (*ior<mode>3): Likewise.
9636         (*xor<mode>3): Likewise.
9637         (and<mode>3): Likewise.
9638         (*sse_and<mode>3): Likewise.
9639         (*sse2_and<mode>3): Likewise.
9640         (andtf3): Likewise.
9641         (*andtf3): Likewise.
9642         (ior<mode>3): Likewise.
9643         (*sse_ior<mode>3): Likewise.
9644         (*sse2_ior<mode>3): Likewise.
9645         (iortf3): Likewise.
9646         (*iortf3): Likewise.
9647         (xor<mode>3): Likewise.
9648         (*sse_xor<mode>3): Likewise.
9649         (*sse2_xor<mode>3): Likewise.
9650         (xortf3): Likewise.
9651         (*xortf3): Likewise.
9653 2008-04-02  Richard Guenther  <rguenther@suse.de>
9655         PR tree-optimization/14495
9656         PR tree-optimization/34793
9657         * tree-vrp.c (struct switch_update): New structure.
9658         (to_remove_edges, to_update_switch_stmts): New VECs.
9659         (simplify_switch_using_ranges): New function.  Remove not taken
9660         case labels and edges.
9661         (simplify_stmt_using_ranges): Call it.
9662         (identify_jump_threads): Mark edges we have queued for removal
9663         so we don't thread them.
9664         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9665         case label vector.
9666         * tree-cfg.c (group_case_labels): Deal with missing default label.
9667         (tree_verify_flow_info): Allow missing default label.
9668         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9669         (emit_case_nodes): Likewise.
9670         (expand_case): Do not rely on the default label to be present.
9671         * expr.c (try_casesi): Deal with NULL default_label.
9672         (do_tablejump): Likewise.
9674 2008-04-02  Richard Guenther  <rguenther@suse.de>
9676         PR tree-optimization/14495
9677         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9678         SWITCH_EXPR here ...
9679         (vrp_visit_switch_stmt): ... but here (new function).
9680         (find_case_label_index): New helper function.
9681         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9683 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9685         * fwprop.c: Fix ISO-C99ism.
9687 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9689         PR bootstrap/35752
9690         * Makefile.in (objdir): Set it here.
9691         * configure.ac: Not here.  Find dynamic linker characteristics.
9692         * exec-tool.in: Use them.
9693         * aclocal.m4: Regenerate.
9694         * configure: Regenerate.
9696 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9698         * expr.c (expand_var): Delete it.
9699         * expr.h (expand_var): Delete prototype.
9700         * function.c (expand_function_start): Use expand_decl instead.
9701         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9702         langhook.
9704 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
9706         PR rtl-optimization/35542
9707         * fwprop.c (forward_propagate_and_simplify): Replace
9708         loc_reg_mentioned_in_p with reg_mentioned_p.
9710 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9712         PR rtl-optimization/35281
9713         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9714         (propagate_rtx_1): Handle PR_HANDLE_MEM.
9715         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9716         (varying_mem_p): Move above propagate_rtx.
9717         (all_uses_available_at): Do not check MEMs.
9719 2008-04-02  Rafael Espindola  <espindola@google.com>
9721         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9722         (register_edge_assert_for_2): Split the cond argument.
9723         (register_edge_assert_for_1): Adjust for the change in
9724         register_edge_assert_for_2.
9725         (register_edge_assert_for): Split the cond argument.
9726         (find_switch_asserts): Adjust for the change in
9727         register_edge_assert_for.
9729 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
9731         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9732         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9733         offsets for 64-bit mingw.
9734         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9735         abi for x86_64-pc-mingw.
9737 2008-04-02  Richard Guenther  <rguenther@suse.de>
9739         * tree-vrp.c (extract_range_from_assert): Make sure to not
9740         produce range min/max with TREE_OVERFOW set.
9741         If merging a anti-range and a range keep the anti-range if
9742         the range covers all values of the type.
9743         (register_edge_assert_for_2): Only allow sign-changing
9744         conversions in detecting canonical range checks.  Also
9745         register an assert for the unsigned name if useful.
9747         PR tree-optimization/35787
9748         * tree-vrp.c (vrp_val_max): New function.
9749         (vrp_val_min): Likewise.
9750         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9751         (vrp_val_is_min): Likewise.
9752         (supports_overflow_infinity): Use vrp_val_{min,max}.
9753         (negative_overflow_infinity): Likewise.
9754         (positive_overflow_infinity): Likewise.
9755         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9756         (is_positive_overflow_infinity): Likewise.
9757         (is_overflow_infinity): Likewise.
9758         (avoid_overflow_infinity): Use vrp_val_{min,max} and
9759         vrp_val_is_{min,max}.
9760         (set_and_canonicalize_value_range): Canonicalize anti-ranges
9761         to ranges if possible.  Avoid empty ranges.
9763 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9765         PR middle-end/35705
9766         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9767         the expression is a function address.
9769 2008-04-01  George Helffrich  <george@gcc.gnu.org>
9771         PR fortran/35154, fortran/23057
9772         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9773         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9774         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9775         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9776         in common.
9777         (dbxout_syms): Check for COMMON-based symbol and wrap in
9778         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9779         in bracket for efficiency.
9781         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9782         using DW_TAG_common_block + member offset.
9783         (add_pubname_string): New function.
9784         (dw_expand_expr): New function to find block name and offset for
9785         COMMON var.
9786         (common_check): New function to check whether symbol in Fortran COMMON.
9787         (gen_variable_die): If COMMON, use DW_TAG_common_block.
9789 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
9791         PR c/35436
9792         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9794 2008-04-02  Ben Elliston  <bje@au.ibm.com>
9796         * config/v850/v850.md (casesi): Remove if (0) code.
9797         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9798         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9800 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
9802         * config/i386/i386.md (rex64suffix): New mode attribute.
9803         (floathi<mode>2): Disable expander for SSE math.
9804         (*floathi<mode>2_1): New insn insn_and_split pattern.
9805         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9806         corresponding post-reload splitters.
9807         (*floathi<mode>2_i387): New macroized insn pattern.
9808         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9809         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9810         insn_and_split pattern.
9811         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9812         New macroized instruction patterns and corresponding post-reload
9813         splitters.
9814         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9815         and corresponding post-reload splitters.
9816         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9817         New macroized instruction patterns.
9818         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9819         macroized instruction patterns and corresponding post-reload splitters.
9820         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9821         corresponding post-reload splitters.
9822         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9823         New macroized instruction patterns.
9824         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
9825         corresponding post-reload splitters.
9826         (*floatsi<mode>2_i387): New macroized instruction patterns.
9828 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9830         * config/i386/i386.md (smaxmin): New.
9831         (umaxmin): Likewise.
9832         (maxminiprefix): Likewise.
9833         (maxminfprefix): Likewise.
9834         (<code><mode>3): Likewise.
9835         (smin<mode>3): Removed.
9836         (smax<mode>3): Likewise.
9838         * config/i386/mmx.md (mmx_<code>v2sf3): New.
9839         (mmx_<code>v4hi3): Likewise.
9840         (mmx_<code>v8qi3): Likewise.
9841         (mmx_smaxv2sf3): Removed.
9842         (mmx_sminv2sf3): Likewise.
9843         (mmx_umaxv8qi3): Likewise.
9844         (mmx_smaxv4hi3): Likewise.
9845         (mmx_uminv8qi3): Likewise.
9846         (mmx_sminv4hi3): Likewise.
9848         * config/i386/sse.md (<addsub><mode>3): New.
9849         (*<addsub><mode>3): Likewise.
9850         (<sse>_vm<addsub><mode>3): Likewise.
9851         (<maxmin><mode>3): Likewise.
9852         (*<maxmin><mode>3_finite): Likewise.
9853         (*<maxmin><mode>3): Likewise.
9854         (<sse>_vm<maxmin><mode>3): Likewise.
9855         (sse3_h<addsub>v4sf3): Likewise.
9856         (sse3_h<addsub>v2df3): Likewise.
9857         (<maxmin>v16qi3): Likewise.
9858         (*<maxmin>v16qi3): Likewise.
9859         (<maxmin>v8hi3): Likewise.
9860         (*<maxmin>v8hi3): Likewise.
9861         (*sse4_1_<maxmin><mode>3): Likewise.
9862         (*sse4_1_<maxmin><mode>3): Likewise.
9863         (add<mode>3): Removed.
9864         (*add<mode>3): Likewise.
9865         (<sse>_vmadd<mode>3): Likewise.
9866         (sub<mode>3): Likewise.
9867         (*sub<mode>3): Likewise.
9868         (<sse>_vmsub<mode>3): Likewise.
9869         (smin<mode>3): Likewise.
9870         (*smin<mode>3_finite): Likewise.
9871         (*smin<mode>3): Likewise.
9872         (<sse>_vmsmin<mode>3): Likewise.
9873         (smax<mode>3): Likewise.
9874         (*smax<mode>3_finite): Likewise.
9875         (*smax<mode>3): Likewise.
9876         (<sse>_vmsmax<mode>3): Likewise.
9877         (sse3_haddv4sf3): Likewise.
9878         (sse3_haddv2df3): Likewise.
9879         (sse3_hsubv4sf3): Likewise.
9880         (sse3_hsubv2df3): Likewise.
9881         (umaxv16qi3): Likewise.
9882         (*umaxv16qi3): Likewise.
9883         (smaxv8hi3): Likewise.
9884         (*smaxv8hi3): Likewise.
9885         (*sse4_1_smax<mode>3): Likewise.
9886         (*sse4_1_umax<mode>3): Likewise.
9887         (uminv16qi3): Likewise.
9888         (*uminv16qi3): Likewise.
9889         (sminv8hi3): Likewise.
9890         (*sminv8hi3): Likewise.
9891         (*sse4_1_smin<mode>3): Likewise.
9892         (*sse4_1_umin<mode>3): Likewise.
9894 2008-04-01  Rafael Espindola  <espindola@google.com>
9896         * tree-cfg.c (verify_expr): remove in_phi.
9897         (verify_stmt): Don't call walk_tree with verify_expr. Use
9898         is_gimple_min_invariant instead of is_gimple_val.
9900 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
9902         * doc/include/gpl_v3.texi: Update for manpage generation.
9903         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
9904         gpl.texi.
9905         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
9906         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
9907         gpl_v3.texi instead of gpl.texi.
9908         (gpl.pod): New.
9910 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
9912         PR pch/13675
9913         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
9915 2008-04-01  Rafael Espindola  <espindola@google.com>
9917         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
9918         (extract_code_and_val_from_cond): Use
9919         extract_code_and_val_from_cond_with_ops.
9921 2008-04-01  Jan Hubicka  <jh@suse.cz>
9923         * function.c (free_after_compilation): Free epilogue_delay_list.
9924         (prepare_function_start): Assert that previous compilation was freed.
9926 2008-04-01  Jan Hubicka  <jh@suse.cz>
9927             Jim Wilson  <wilson@tuliptree.org>
9928             Andreas Tobler <andreast@gcc.gnu.org>
9930         PR middle-end/35781
9931         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
9932         rtl.emit instead cfun->emit.
9933         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
9934         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
9936 2008-04-01  Ben Elliston  <bje@au.ibm.com>
9938         * doc/c-tree.texi (Function Basics): Fix grammatical error.
9940 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
9942         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
9943         New options
9944         (fprofile-use): Add var flag_profile_use
9945         * coverage.c (coverage_begin_output): Do not open a gcno file for
9946         output only if -ftest-coverage is set.
9947         Do not add getpwd() to gcda file path.
9948         (build_gcov_info): Check the new flag
9949         flag_profile_datafile_relative_path.
9950         (coverage_init): Use profile_data_prefix.
9951         Read profile counter only if flag_profile_use is set.
9952         * opts.c (common_handle_option): New option fprofile-use=,
9953         fprofile-dir=, fprofile-generate=.
9954         * toplev.c (profile_data_prefix): New variable definition.
9955         * toplev.h (profile_data_prefix): New declaration.
9956         * doc/invoke.tex (Option Summary, Optimization Options):
9957         Add new options.
9959 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
9961         * varasm.c (output_constant_pool_1): In LABEL_REF check,
9962         use tmp consistently.
9964         PR target/35695
9965         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
9966         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9967         UNSPEC_FR_RECIP_APPROX_RES.
9968         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
9970 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
9972         PR c/35750
9973         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
9975 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9977         PR middle-end/30186
9978         * fold-const.c (fold_indirect_ref_1): Support accessing non first
9979         element of the vector via a pointer.
9981 2008-03-31  Ian Lance Taylor  <iant@google.com>
9983         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
9985 2008-03-31  Jan Hubicka  <jh@suse.cz>
9987         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9988         get_arg_pointer_save_area.
9989         * expr.c (init_expr): Just clear out rtl.expr.
9990         * function.c (free_after_compilation): Clear out whole RTL structure.
9991         (get_func_frame_size): Merge into ...
9992         (get_frame_size): ... this one.
9993         (assign_stack_local_1): Merge into ...
9994         (assign_stack_local): ... this one.
9995         (expand_function_end): Update call of get_arg_pointer_save_area.
9996         (get_art_pointer_save_area): Remove cfun argument.
9997         * function.h (emit_status): regno_pointer_align does not need length
9998         attribute. Move x_regno_reg_rtx to ...
9999         (regno_reg_rtx): ... new global array.
10000         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10001         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10002         apply_args_value, forced_labels, stack_pointer_delta):
10003         Update accestors.
10004         (struct varasm_status): Move here from varasm.c
10005         (struct rtl_data): New. Move here some fields from struct function.
10006         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10007         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10008         used_temp_slots avail_temp_slots, temp_slot_level,
10009         nonlocal_goto_handler_labels): Update accesstors.
10010         (rtl): New global variable.
10011         (struct function): Move some fileds to rtl_data.
10012         (get_arg_pointer_save_area): Update prototype.
10013         * emit-rtl.c (rtl): Declare.
10014         (regno_reg_rtx): Declare.
10015         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10016         Update.
10017         (gen_reg_rtx): Update.
10018         (init_virtual_regs): Do not tate emit_status argument.
10019         (init_emit): Do not allocate emit.
10020         * varasm.c (varasm_statuc): Move to function.h.
10021         (n_deferred_constatns): Update accestor.
10022         (init_varasm_status): Do not allocate varasm_status.
10023         (force_const_mem, get_pool_size, output_constant_pool): Update.
10024         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10025         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10027 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
10029         PR rtl-optimization/35729
10030         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10031         references.
10033 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10035         PR target/32000
10036         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10037         load/store if memory is unaligned.
10038         (*movti_rex64): Likewise.
10040         * config/i386/predicates.md (misaligned_operand): New.
10042 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
10044         PR tree-opt/35431
10045         * tree-ssa-phiopt.c (conditional_replacement): Return early for
10046         complex types.
10048 2008-03-31  Jan Beulich  <jbeulich@novell.com>
10050         * config/ia64/constraints.md: Add 'j' constraint.
10051         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10052         (movdi_internal): Likewise.
10054 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
10056         PR c/35748
10057         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10059 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10061         PR target/35757
10062         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10063         proper error message for the third argument on blendpd and
10064         blendps.
10066         * config/i386/sse.md (blendbits): New.
10067         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10069 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10071         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10073 2008-03-30  Richard Guenther  <rguenther@suse.de>
10075         PR middle-end/31023
10076         * fold-const.c (fold_sign_changed_comparison): Do leave
10077         conversions to base-types alone.
10079 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10081         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10082         the link register if one altivec register is be saved.
10084 2008-03-30  Ben Elliston  <bje@au.ibm.com>
10086         * final.c (final_scan_insn): Remove if (0) code.
10088 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
10090         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10092 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10094         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10095         of V4SFmode to ix86_binary_operator_ok.
10097 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
10099         * config/i386/i386.c (override_options): Initialize
10100         ix86_veclib_handler to ix86_veclibabi_svml when
10101         -mveclibabi=svml is used.
10102         (ix86_veclibabi_svml): New function for SVML ABI style
10103         vectorization support.
10104         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10106 2008-03-28  Rafael Espindola  <espindola@google.com>
10108         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10109         (tree_binary_nonnegative_warnv_p): Make it public.
10110         (tree_single_nonnegative_warnv_p): Make it public.
10111         (tree_invalid_nonnegative_warnv_p): Make it public.
10112         (tree_unary_nonzero_warnv_p): Make it public.
10113         (tree_binary_nonzero_warnv_p): Make it public
10114         (tree_single_nonzero_warnv_p): Make it public.
10115         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10116         (extract_range_from_binary_expr): Split the expr argument.
10117         (extract_range_from_unary_expr): Split the expr argument.
10118         (extract_range_from_comparison): Split the expr argument.
10119         (extract_range_from_expr): Use the new aux functions.
10120         (vrp_evaluate_conditional_warnv): Use
10121         vrp_evaluate_conditional_warnv_with_ops.
10122         * tree.h (tree_unary_nonzero_warnv_p): Declare.
10123         (tree_binary_nonzero_warnv_p): Declare.
10124         (tree_single_nonzero_warnv_p): Declare.
10125         (tree_expr_nonzero_warnv_p): Declare.
10126         (tree_unary_nonnegative_warnv_p): Declare.
10127         (tree_binary_nonnegative_warnv_p): Declare.
10128         (tree_single_nonnegative_warnv_p): Declare.
10129         (tree_invalid_nonnegative_warnv_p): Declare.
10131 2008-03-28  Richard Guenther  <rguenther@suse.de>
10133         PR tree-optimization/30317
10134         PR tree-optimization/30911
10135         PR tree-optimization/34793
10136         * tree-vrp.c (set_and_canonicalize_value_range): New function.
10137         (struct assert_locus_d): New member EXPR.
10138         (register_new_assert_for): Add EXPR parameter to support
10139         ASSERT_EXPR <name, expr OP limit>.
10140         (register_edge_assert_for_1): Adjust callers.
10141         (find_assert_locations): Likewise.
10142         (process_assert_insertions_for): Build condition from expression.
10143         (extract_range_from_assert): Handle ASSERT_EXPRs
10144         of the form ASSERT_EXPR <name, expr OP limit>.
10145         (register_edge_assert_for_2): New helper registering
10146         asserts for comparisons.  Recognize range tests of the form
10147         (unsigned)i - CST1 OP CST2.
10148         (register_edge_assert_for_1): Use it.
10149         (register_edge_assert_for): Likewise.
10150         (needs_overflow_infinity): Integer sub-types
10151         do not need overflow infinities.
10152         (vrp_val_is_max): The extreme values of integer sub-types
10153         are those of the base type.
10154         (vrp_val_is_min): Likewise.
10155         * tree.def (ASSERT_EXPR): Document extra allowed conditional
10156         expressions.
10158 2008-03-28  Nick Clifton  <nickc@redhat.com>
10160         PR target/31110
10161         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10162         Return GENERAL_REGS for stack adjustment reloads.
10164 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10166         PR target/31334
10167         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10168         const_vector when all the vectors are constant.
10170 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
10172         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10173         comparisons.
10174         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10175         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10176         (scc_sf): New.
10177         (s<code>_sf): Use new scc_sf attribute for opcode names.
10179 2008-03-27  Tom Tromey  <tromey@redhat.com>
10181         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10182         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10183         config/spu/t-spu-elf, config/i386/t-interix,
10184         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10185         config/i386/x-darwin, config/i386/x-mingw32,
10186         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10187         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10188         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10189         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10190         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10191         config/rs6000/x-darwin, config/rs6000/t-rs6000,
10192         config/score/t-score-elf, config/arm/t-strongarm-pe,
10193         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10194         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10195         Revert automatic dependency patch.
10197 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10199         PR target/35657
10200         * config/i386/i386.c (ix86_function_arg_boundary): Align
10201         decimal floating point to its natural boundary.
10203 2008-03-27  Richard Guenther  <rguenther@suse.de>
10205         PR middle-end/35716
10206         * fold-const.c (fold_comparison): Restrict distinct decl
10207         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
10208         solely rely on operand_equal_p.
10210 2008-03-27  Richard Guenther  <rguenther@suse.de>
10212         PR c/32511
10213         * c-common.c (handle_weak_attribute): Reject combination of
10214         weak and inline.
10216 2008-03-27  Richard Guenther  <rguenther@suse.de>
10218         PR tree-optimization/32810
10219         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10220         conversions from DECL_INITIAL.
10221         (fold_const_aggregate_ref): Likewise from constructor elements.
10223 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
10225         * tree-affine.h (aff_combination_expand): Declare.
10226         (get_inner_reference_aff): Likewise.
10227         * tree-affine.c (aff_combination_expand): Split out from
10228         tree_to_aff_combination_expand.
10229         (get_inner_reference_aff): New function.
10230         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10231         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10232         (struct lim_aux_data): sm_done field removed.
10233         (mem_ref_loc_p, mem_ref_locs_p): New types.
10234         (struct mem_ref): Added id, stored, accesses_in_loop,
10235         indep_loop, dep_loop, indep_ref, dep_ref fields.
10236         Removed is_stored, locs and next fields.
10237         (memory_accesses): New variable.
10238         (movement_possibility): Do not allow moving statements
10239         that store to memory.
10240         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10241         New functions.
10242         (determine_max_movement): For statements with memory references,
10243         find the outermost loop in that the reference is independent.
10244         (move_computations_stmt): Mark the virtual operands for renaming.
10245         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10246         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10247         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10248         add_vop_ref_mapping, create_vop_ref_mapping_loop,
10249         create_vop_ref_mapping, analyze_memory_references,
10250         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10251         get_all_locs_in_loop, ref_always_accessed_p,
10252         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10253         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10254         store_motion_loop, store_motion): New functions.
10255         (struct vop_to_refs_elt): New type.
10256         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10257         memref_hash, memref_eq, hoist_memory_references): Rewritten.
10258         (schedule_sm): Replaced by...
10259         (execute_sm): ... this.
10260         (determine_lsm_ref, hoist_memory_references,
10261         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10262         find_more_ref_vops, free_mem_ref, free_mem_refs,
10263         determine_lsm_loop, determine_lsm): Removed.
10264         (tree_ssa_lim_finalize): Free data structures used by store motion.
10265         (tree_ssa_lim): Call analyze_memory_references.  Use
10266         store_motion instead of determine_lsm.
10268 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10270         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10271         rename tmake_file to m68hc11/t-m68hc11.
10272         (mcore): Set inhibit_libc to true.
10273         * config.host (alpha*-dec-*vms*): Set extra_programs.
10274         (interix3*): Don't use host_xmake_file.
10275         * configure.ac: Let config.gcc override inhibit_libc.
10276         * configure: Regenerate.
10278         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10279         * config/t-openbsd-thread: Remove commented out lines.
10280         
10281         * config/x-interix: Remove.
10283         * config/m68hc11/t-m68hc11-gas: Rename to...
10284         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
10286         * config/mcore/t-mcore: Remove T_CFLAGS.
10287         * config/mcore/t-mcore-pe: Likewise.
10289 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10291         * configure.ac: Replace custom __GNU_SOURCE test with
10292         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
10293         * aclocal.m4: Regenerate.
10294         * configure: Regenerate.
10295         * config.in: Regenerate.
10297 2008-03-27  Richard Guenther  <rguenther@suse.de>
10299         * fold-const.c (target.h): Include.
10300         (fold_comparison): Fold comparison of addresses of decls
10301         that bind locally or of constants.  Consolidate address folding code.
10302         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10303         results from fold_binary_to_constant.
10304         (compare_values_warnv): Likewise.
10306 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
10308         PR middle-end/35429
10309         * fold-const.c (fold_truthop): Check for integeral types when folding
10310         a == 0 && b == 0 and a != 0 || b != 0 .
10312 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10314         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10316 2008-03-26  Andreas Schwab  <schwab@suse.de>
10318         * doc/invoke.texi: Fix use of @item vs. @itemx.
10320 2008-03-26  Tom Tromey  <tromey@redhat.com>
10322         * Makefile.in (build/gensupport.o, build/print-rtl.o,
10323         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10324         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10325         build/gencodes.o, build/genconditions.o, build/genconfig.o,
10326         build/genconstants.o, build/genemit.o, build/genextract.o,
10327         build/genflags.o, build/genmddeps.o, build/genopinit.o,
10328         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10329         options.h.
10331 2008-03-26  Richard Guenther  <rguenther@suse.de>
10333         Revert
10334         2008-03-26  Richard Guenther  <rguenther@suse.de>
10336         * fold-const.c (target.h): Include.
10337         (fold_comparison): Fold comparison of addresses of two decls
10338         that bind locally.  Consolidate address folding code.
10340 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10342         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10343         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10344         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10345         dconstsqrt2, dconstthird, dconste and/or dconst10.
10346         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10347         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10348         dconstsqrt2, dconste): Delete.
10349         (init_emit_once): Likewise.  Simplify initializing dconstm1.
10350         Constify variable.
10351         * real.c (get_real_const): New.
10352         * real.h (dconst3, dconst10, dconstm2, dconstthird,
10353         dconstsqrt2, dconste): Delete.
10354         (real_value_const, get_real_const): New.
10356 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10358         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10360         * config/i386/i386.c (ix86_function_arg_boundary): Check
10361         BIGGEST_ALIGNMENT instead of 128.
10362         (setup_incoming_varargs_64): Likewise.
10364 2008-03-26  Tom Tromey  <tromey@redhat.com>
10366         * Makefile.in (DEPFILES): Add missing '/'.
10368 2008-03-26  Richard Guenther  <rguenther@suse.de>
10370         * fold-const.c (target.h): Include.
10371         (fold_comparison): Fold comparison of addresses of two decls
10372         that bind locally.  Consolidate address folding code.
10374 2008-03-26  Nick Clifton  <nickc@redhat.com>
10376         PR target/31232
10377         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10378         not allow INT+INT as a legitimate addressing mode.
10380 2008-03-26  Richard Guenther  <rguenther@suse.de>
10382         * tree-flow.h (widen_bitfield): Remove declaration.
10383         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10384         (widen_bitfield): Remove function.
10385         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10386         code.
10388 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10390         PR target/31558
10391         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10392         error_mark_node's.
10394 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10396         PR rtl-optimization/35232
10397         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10398         (forget_old_reloads_1, forget_marked_reloads): Don't clear
10399         reg_reloaded_call_part_clobbered here.
10400         (reload_regs_reach_end_p): New function.
10401         (reload_reg_rtx_for_input): New variable.
10402         (reload_reg_rtx_for_output): Likewise.
10403         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10404         when reassigning a pseudo register.  Load reloadreg from 
10405         reload_reg_rtx_for_input, moving the mode and register
10406         calculation to...
10407         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
10408         instead of the original when deciding whether an input reload
10409         would be a no-op or whether an output reload can be deleted.
10410         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10411         when setting up new_spill_reg_store.  Load it from
10412         reload_reg_rtx_for_output, moving the mode and register
10413         calculation to...
10414         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
10415         instead of the original when deciding whether an output reload
10416         would be a no-op.  Do the same when modifying insn notes.
10417         Use rtx_equal_p instead of == to compare the registers.
10418         (inherit_piecemeal_p): Take a mode and two register numbers
10419         as argument.
10420         (emit_reload_insns): Clear new_spill_reg_store for every hard
10421         register in the reload register.  Remove spill registers
10422         from reg_reloaded_valid before considering whether to record
10423         inheritance information for them.  Use reload_reg_rtx_for_output
10424         instead of reg_rtx when recording output reloads.  Use
10425         reload_reg_rtx_for_input instead of reg_rtx when recording
10426         input reloads.  Set or clear reg_reloaded_call_part_clobbered
10427         at the same time as setting reg_reloaded_valid.
10428         (delete_output_reload): Add a new_reload_reg parameter and use it
10429         instead of rld[j].reg_rtx.
10430         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10431         calls accordingly.
10433 2008-03-25  Tom Tromey  <tromey@redhat.com>
10435         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10436         (build/genattr.o): Likewise.
10437         (build/genattrtab.o): Likewise.
10438         (build/gencodes.o): Likewise.
10439         (build/genconfig.o): Likewise.
10440         (build/genconstants.o): Likewise.
10441         (build/genemit.o): Likewise.
10442         (build/genextract.o): Likewise.
10443         (build/genflags.o): Likewise.
10445 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
10446         
10447         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10448         instead of size_int for integer types.
10449         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
10450         to match type of MINUS_EXPR.
10451         
10452 2008-03-25  Tom Tromey  <tromey@redhat.com>
10454         * configure: Rebuilt.
10455         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10456         Makefile.
10458 2008-03-25  Tom Tromey  <tromey@redhat.com>
10460         * config/x-solaris (host-solaris.o): Update.
10461         * config/x-linux (host-linux.o): Update.
10462         * config/x-hpux (host-hpux.o): Update.
10463         * config/x-darwin (host-darwin.o): Update.
10464         * config/v850/t-v850e (v850-c.o): Update.
10465         * config/v850/t-v850 (v850-c.o): Update.
10466         * config/t-vxworks (vxworks.o): Update.
10467         * config/t-sol2 (sol2-c.o, sol2.o): Update.
10468         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10469         * config/spu/t-spu-elf (spu-c.o): Update.
10470         (spu.o): Remove.
10471         * config/sh/t-symbian (sh-c.o): Update.
10472         (symbian.o): Update.
10473         * config/sh/t-sh (sh-c.o): Update.
10474         * config/score/t-score-elf (score7.o, score3.o): Update.
10475         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10476         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10477         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10478         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10479         (rs6000.o): Remove.
10480         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10481         * config/m32c/t-m32c (m32c-pragma.o): Update.
10482         * config/ia64/t-ia64 (ia64-c.o): Update.
10483         * config/i386/x-mingw32 (host-mingw32.o): Update.
10484         * config/i386/x-i386 (driver-i386.o): Update.
10485         * config/i386/x-darwin (host-i386-darwin.o): Update.
10486         * config/i386/x-cygwin (host-cygwin.o): Update.
10487         * config/i386/t-nwld (nwld.o): Update.
10488         * config/i386/t-netware (netware.o): Update.
10489         * config/i386/t-interix (winnt.o): Update.
10490         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10491         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10492         msformat-c.o): Update.
10493         * config/bfin/t-bfin-linux (generated_files): Add
10494         linux-sysroot-suffix.h.
10495         * config/arm/t-wince-pe (pe.o): Update.
10496         * config/arm/t-strongarm-pe (pe.o): Update.
10497         * config/arm/t-pe (pe.o): Update.
10498         * config/arm/t-arm (arm-c.o): Update.
10499         * doc/install.texi (Prerequisites): Require make 3.80.
10500         * Makefile.in: Remove .o targets.
10501         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10502         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10503         (simple_generated_h, simple_generated_c): Move earlier.
10504         (generated_files): New variable.
10505         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10506         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10507         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10508         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10509         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10510         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10511         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10512         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10513         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10514         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10515         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10516         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10517         (.c.o): Remove.
10518         (COMPILE.base, COMPILE): New variables.
10519         (%.o): New pattern rule.
10520         (ALL_HOST_OBJS): New variable.
10521         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10522         (dummy-checksum.o, cc1-checksum.o): Remove.
10523         (DRIVER_SHLIB): New variable.
10524         (DRIVER_DEFINES): Use it.
10525         (gencondmd.c): Move out of build/.
10526         (s-conditions): Update.
10527         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10528         (ALL_BUILD_OBJS): Likewise.
10529         (build/%.o): Use BUILDCOMPILE.
10530         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10531         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10532         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10533         build/gencheck.o, build/gencodes.o, build/genconditions.o,
10534         build/genconfig.o, build/genconstants.o, build/genemit.o,
10535         build/genextract.o, build/genflags.o, build/genmddeps.o,
10536         build/genopinit.o, build/genoutput.o, build/genpeep.o,
10537         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10538         build/gen-protos.o, build/scan.o, build/fix-header.o,
10539         build/scan-decls.o): Simplify.
10540         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10541         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10542         prefix.o, toplev.o): Reduce to variable setting.
10543         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
10544         ($(out_object_file), gcc-options.o): New targets.
10545         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
10546         * configure: Rebuilt.
10547         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10548         * doc/sourcebuild.texi (Front End Directory): Document new variable.
10550 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
10552         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10553         complain when we hit an error, return ERROR_MARK_NODE.
10555 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10557         * config/sh/constraints.md (Pso, Psz): New constraints.
10558         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10559         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10561 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10563         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10564         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10566 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10568         * config/sh/sh.md (prefetch): Add condition for SH2A target.
10569         (prefetch_sh2a): New.   
10571 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10572             Naveen.H.S  <naveen.hs@kpitcummins.com>
10574         * config/sh/constraints.md (I28): New constraint.
10575         * config/sh/sh.c (broken_move): Add support for movi20s.
10576         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10578 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
10579             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10580             Naveen.H.S  <naveen.hs@kpitcummins.com>
10582         * config/sh/sh.c (SH_ATTRIBUTES): Define.
10583         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10584         (print_operand): Handle resbank in %@ operand code.
10585         (sh_encode_section_info): New.
10586         (push_regs): Add conditions for resbank.
10587         (sh_expand_epilogue): Likewise.
10588         (sh_insert_attributes): Likewise.
10589         (sh_attribute_table): Likewise.
10590         (sh_handle_resbank_handler_attribute): New.
10591         (sh2a_handle_function_vector_handler_attribute): New.
10592         (sh2a_is_function_vector_call): New.
10593         (sh2a_get_function_vector_number): New.
10594         (sh2a_function_vector_p): New.
10595         (sh_cfun_resbank_handler_p): New.
10596         * config/sh/sh.md (calli): Emit jsr/n if possible.
10597         (calli_tbr_rel): New.
10598         (calli_pcrel): Emit jsr/n if possible.
10599         (return_i): Emit rts/n if possible.
10600         (call_valuei_tbr_rel): New.
10601         (call_valuei_pcrel): Add condition for SH2A target.
10602         (call_value): Likewise.
10603         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10604         (sh2a_get_function_vector_number): Likewise.
10605         (sh2a_is_function_vector_call): Likewise.
10606         * doc/extend.texi: Document TBR relative addressing of SH2A.
10607         (resbank): Add description for SH2A.
10609 2008-03-24  Richard Guenther  <rguenther@suse.de>
10611         PR c/22371
10612         * gimplify.c (gimplify_modify_expr): For frontend type-correct
10613         pointer assignments change conversions according to middle-end rules.
10614         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10615         * configure.ac: Include type checking in yes.
10616         * configure: Regenerate.
10618 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10620         * diagnostic.c (diagnostic_count_diagnostic): Delete.
10621         (diagnostic_report_diagnostic): Update. Handle ICEs here.
10622         
10623 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10625         * gthr-vxworks.h (UNUSED): Define.
10627 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10629         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10631 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
10633         * doc/extend.texi (Function Attributes): Add missing comma in the
10634         example of the "alloc_size" attribute.
10635         
10636 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
10638         Revert:
10639         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10641         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10642         32bit host.
10644         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10646         PR target/35496
10647         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10648         of the underlying type of a MS bitfield layout to the natural
10649         alignment of the type.
10651         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10653         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10654         to their natural alignment to avoid store forwarding stalls.
10656 2008-03-22  Richard Guenther  <rguenther@suse.de>
10658         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10659         For PHI nodes verify the address is invariant.
10660         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10661         (get_symbol_constant_value): Use is_gimple_min_invariant.
10662         (maybe_fold_stmt_indirect): Likewise.
10664 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10666         PR rtl-optimization/33927
10667         * Makefile.in (dse.o): Depend on $(TM_P_H).
10668         * expr.h (extract_low_bits): Declare.
10669         * expmed.c (extract_low_bits): New function.
10670         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10671         * dse.c: Include tm_p.h.
10672         (find_shift_sequence): Remove the read_reg argument and return the
10673         read value.  Emit the instructions instead of returning them.
10674         Iterate on new_mode rather than calculating it each time.
10675         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
10676         source to NEW_MODE and extract_low_bits to convert the shifted
10677         value to READ_MODE.
10678         (replace_read): Allow the load and store to have different mode
10679         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
10680         or extraction instructions before trying the replacement.  Update
10681         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10683 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10685         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10686         to their natural alignment to avoid store forwarding stalls.
10688 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10690         PR target/27946
10691         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10692         encouraging but not allowing gprs for input;
10693         change the input constraint to !f#r.
10694         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10695         gprs for output;
10696         change the output constraint to !f#r.
10698 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
10700         PR target/13958
10701         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10702         corresponding post-reload splitters.
10703         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10704         when x87 FP math is selected.
10705         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10706         New function prototype.
10707         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10708         unreachable function to ease macroization of insn patterns.
10710 2008-03-21  Martin Jambor  <mjambor@suse.cz>
10712         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10713         reference dumps if ddr is NULL or dependence is unknown.
10715 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10717         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10718         unsigned extension into account.
10719         (ATOMIC_COMPARE_AND_SWAP): Likewise.
10720         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10721         Do computations on a scratch register.
10723 2008-03-21  Richard Guenther  <rguenther@suse.de>
10725         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10726         Use is_gimple_min_invariant instead of TREE_INVARIANT.
10727         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10728         * tree-ssa-dom.c (record_equality): Likewise.
10729         * tree-inline.c (copy_body_r): Likewise.
10730         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10731         TREE_INVARIANT.
10733 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10735         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10736         as 'delete_unused' argument.
10738 2008-03-20  Richard Guenther  <rguenther@suse.de>
10740         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10741         special casing of constant qualifiers.
10742         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10743         care about them in general.
10744         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10745         regardless of their type.
10746         (fold_stmt_r): Forcefully fold *& if we end up with that.
10748 2008-03-20  Paul Brook  <paul@codesourcery.com>
10750         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10751         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10752         linker flags.
10753         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10754         definition.
10755         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10756         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10758 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
10760         * common.opt (Wmudflap): New option.
10761         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10762         (mx_register_decls): Likewise.
10763         (mudflap_finish_file): Likewise.
10764         * doc/invoke.texi: Document -Wno-mudflap.
10766 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
10768         * c-format.c (replace_format_name_to_system_name): New.
10769         (cmp_attribs): New.
10770         (convert_format_name_to_system_name): New.
10771         (decode_format_attr): Add use of convert_format_name_to_system_name.
10772         (format_types_orig): Add gnu_ prefix to names.
10773         (check_format_info_main): Special treating of \0 escaped names for
10774         supporting multi-character format specifiers as I32, I64.
10775         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10776         (gnu_target_overrides_format_attributes): New.
10777         * c-format.h: Add structure target_ovr_attr to hold
10778         system specific formatter names.
10779         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10780         msformat-c.o file to c_target_objs and cxx_target_objs.
10781         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10782         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10783         (TARGET_N_FORMAT_TYPES): New.
10784         * config/i386/msformat-c.c: New.
10785         * config/i386/t-cygming: Add build rule for msformat-c.o.
10786         * doc/extend.texi: Add new format names gnu_* and ms_* and
10787         further details.
10788         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10790 2008-03-20  Ira Rosen  <irar@il.ibm.com>
10792         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10793         optimizations turned on under -O3.
10794         (ftree-vectorize): Add that the flag is turned on with -O3.
10796 2008-03-20  Ben Elliston  <bje@au.ibm.com>
10798         * regmove.c (try_auto_increment): Fix spelling error in comment.
10799         * final.c (final_scan_insn): Likewise.
10801 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
10803         PR target/14552
10804         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10805         allocator preferences for "y" and "r" class registers.
10806         ("*mov<mode>_internal"): Ditto.
10807         ("*movv2sf_internal_rex64"): Ditto.
10808         ("*movv2sf_internal"): Ditto.
10810 2008-03-19  Michael Matz  <matz@suse.de>
10812         PR middle-end/35616
10813         * calls.c (expand_call): Check overlap of arguments with call
10814         address for sibcalls.
10816 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10818         PR target/35496
10819         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10820         of the underlying type of a MS bitfield layout to the natural
10821         alignment of the type.
10823 2008-03-19  Jan Hubicka  <jh@suse.cz>
10825         PR other/35094
10826         * toplev.c (decode_d_option): Handle all CPP flags.
10827         * tree-vrp.c: Update tree_pass descriptors.
10828         * regrename.c: Update tree_pass descriptors.
10829         * fwprop.c: Update tree_pass descriptors.
10830         * doc/invoke.texi: Remove documentation of dropped -d? flags.
10831         * tree-into-ssa.c: Update tree_pass descriptors.
10832         * tree-dump.c: Update tree_pass descriptors.
10833         * tree-complex.c: Update tree_pass descriptors.
10834         * tree-dump.h: Update tree_pass descriptors.
10835         * see.c: Update tree_pass descriptors.
10836         * cgraphbuild.c: Update tree_pass descriptors.
10837         * tracer.c: Update tree_pass descriptors.
10838         * tree-loop-distribution.c: Update tree_pass descriptors.
10839         * cgraph.c: Update tree_pass descriptors.
10840         * postreload-gcse.c: Update tree_pass descriptors.
10841         * postreload.c: Update tree_pass descriptors.
10842         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
10843         * tree-tailcall.c: Update tree_pass descriptors.
10844         * tree-pass.h (tree_opt_pass): Rename to ...
10845         (opt_pass) ... this one; add "type" field and remove letter field.
10846         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
10847         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
10848         all_lowering_passes): Update declaration.
10849         * ipa-cp.c: Update tree_pass descriptors.
10850         * final.c: Update tree_pass descriptors.
10851         * omp-low.c: Update tree_pass descriptors.
10852         * tree-ssa-dse.c: Update tree_pass descriptors.
10853         * ipa-reference.c: Update tree_pass descriptors.
10854         * tree-ssa-uncprop.c: Update tree_pass descriptors.
10855         * auto-inc-dec.c: Update tree_pass descriptors.
10856         * reorg.c: Update tree_pass descriptors.
10857         * cgraphunit.c: Update tree_pass descriptors.
10858         * tree-ssa-copyrename.c: Update tree_pass descriptors.
10859         * tree-ssa-ccp.c: Update tree_pass descriptors.
10860         * df-core.c: Update tree_pass descriptors.
10861         * mode-switching.c: Update tree_pass descriptors.
10862         * tree-nomudflap.c: Update tree_pass descriptors.
10863         * modulo-sched.c: Update tree_pass descriptors.
10864         * ipa-pure-const.c: Update tree_pass descriptors.
10865         * cse.c: Update tree_pass descriptors.
10866         * web.c: Update tree_pass descriptors.
10867         * tree-stdarg.c: Update tree_pass descriptors.
10868         * tree-ssa-math-opts.c: Update tree_pass descriptors.
10869         * tree-ssa-dom.c: Update tree_pass descriptors.
10870         * tree-nrv.c: Update tree_pass descriptors.
10871         * tree-ssa-alias.c: Update tree_pass descriptors.
10872         * loop-init.c: Update tree_pass descriptors.
10873         * gimple-low.c: Update tree_pass descriptors.
10874         * ipa-inline.c: Update tree_pass descriptors.
10875         * tree-ssa-sink.c: Update tree_pass descriptors.
10876         * global.c: Update tree_pass descriptors.
10877         * ifcvt.c: Update tree_pass descriptors.
10878         * jump.c: Update tree_pass descriptors.
10879         * predict.c: Update tree_pass descriptors.
10880         * tree-ssa-loop.c: Update tree_pass descriptors.
10881         * recog.c: Update tree_pass descriptors.
10882         * dse.c: Update tree_pass descriptors.
10883         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
10884         * tree-eh.c: Update tree_pass descriptors.
10885         * regmove.c: Update tree_pass descriptors.
10886         * local-alloc.c
10887         * function.c: Update tree_pass descriptors.
10888         * tree-vectorizer.c: Update tree_pass descriptors.
10889         * gcse.c: Update tree_pass descriptors.
10890         * ipa-type-escape.c: Update tree_pass descriptors.
10891         * tree-if-conv.c: Update tree_pass descriptors.
10892         * init-regs.c: Update tree_pass descriptors.
10893         * ipa.c: Update tree_pass descriptors.
10894         * tree-ssa-phiopt.c: Update tree_pass descriptors.
10895         * rtl-factoring.c: Update tree_pass descriptors.
10896         * lower-subreg.c: Update tree_pass descriptors.
10897         * bt-load.c: Update tree_pass descriptors.
10898         * tree-dfa.c: Update tree_pass descriptors.
10899         * except.c: Update tree_pass descriptors.
10900         * emit-rtl.c: Update tree_pass descriptors.
10901         * cfgexpand.c: Update tree_pass descriptors.
10902         * tree-cfgcleanup.c: Update tree_pass descriptors.
10903         * cfgcleanup.c: Update tree_pass descriptors.
10904         * tree-ssa-pre.c: Update tree_pass descriptors.
10905         * tree-sra.c: Update tree_pass descriptors.
10906         * tree-mudflap.c: Update tree_pass descriptors.
10907         * tree-ssa-copy.c: Update tree_pass descriptors.
10908         * cfglayout.c: Update tree_pass descriptors.
10909         * tree-ssa-forwprop.c: Update tree_pass descriptors.
10910         * tree-ssa-dce.c: Update tree_pass descriptors.
10911         * tree-ssa.c: Update tree_pass descriptors.
10912         * regclass.c: Update tree_pass descriptors.
10913         * integrate.c: Update tree_pass descriptors.
10914         * tree-optimize.c: Update tree_pass descriptors.
10915         * tree-ssa-phiprop.c: Update tree_pass descriptors.
10916         * tree-object-size.c: Update tree_pass descriptors.
10917         * combine.c: Update tree_pass descriptors.
10918         * tree-outof-ssa.c: Update tree_pass descriptors.
10919         * bb-reorder.c: Update tree_pass descriptors.
10920         * stack-ptr-mod.c: Update tree_pass descriptors.
10921         * var-tracking.c: Update tree_pass descriptors.
10922         * tree-profile.c: Update tree_pass descriptors.
10923         * tree-vect-generic.c: Update tree_pass descriptors.
10924         * reg-stack.c: Update tree_pass descriptors.
10925         * sched-rgn.c: Update tree_pass descriptors.
10926         * tree-ssa-structalias.c: Update tree_pass descriptors.
10927         * tree-cfg.c: Update tree_pass descriptors.
10928         * passes.c (current_pass): Update declaration.
10929         (finish_optimization_passes): Update.
10930         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
10931         (register_one_dump_file, register_dump_files_1, next_pass_1):
10932         Update arguments.
10933         (init_optimization_passes): Update handling of new types.
10934         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
10935         * ipa-struct-reorg.c: Update tree_pass descriptors.
10936         * tree-ssa-reassoc.c: Update tree_pass descriptors.
10937         * combine-stack-adj.c: Update tree_pass descriptors.
10938         * cfgrtl.c: Update tree_pass descriptors.
10939         * dce.c: Update tree_pass descriptors.
10940         * tree-ssanames.c: Update tree_pass descriptors.
10942 2008-03-19  Richard Guenther  <rguenther@suse.de>
10944         PR middle-end/35609
10945         * tree-ssa.c (walk_data): New structure.
10946         (warn_uninitialized_var): If not always_executed warn with "maybe"
10947         instead of "is".
10948         (execute_early_warn_uninitialized): Compute post-dominators.
10949         Initialize always_executed before processing each basic block.
10951 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10953         PR target/35504
10954         * config/i386/i386.c (x86_this_parameter): Calculate correct location
10955         of "this" pointer when "regparm = N" or "fastcall" is in effect.
10957 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10959         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
10961 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
10963         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
10964         is true.
10965         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
10966         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
10967         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
10968         target after ignore has been set, and move there also the commputation
10969         of subtarget and original_target.
10970         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10971         (LANG_HOOKS_INITIALIZER): Remove it.
10972         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
10974 2008-03-18  Richard Guenther  <rguenther@suse.de>
10976         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
10977         found an expression with constants, note that in the VN for the lhs.
10978         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
10979         fold them to constants if possible.  Run cleanup_cfg if done so.
10980         (execute_pre): Return todo.
10981         (do_pre): Likewise.
10982         (execute_fre): Likewise.
10983         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
10984         of constants.
10985         (get_prop_source_stmt): Look through pointer conversions.
10987 2008-03-18  Jan Hubicka  <jh@suse.cz>
10989         * tree-pretty-print.c: Include predict.h.
10990         (dump_generic_node): Dump predictor.
10991         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
10992         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
10993         * gimple-low.c (lower_stmt): Likewise.
10994         * expr.c (expand_expr_real): Likewise.
10995         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
10996         them.
10997         (build_predict_expr, build_predict_expr): New.
10998         * predict.h (predictor_name, build_predict_expr): Update.
10999         * c-typeck.c (c_finish_bc_stmt): Add prediction.
11000         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11001         * predict.def (PRED_CONTINUE): Update hitrate.
11002         * tree.def (PREDICT_EXPR): Define.
11003         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11004         do not handle BIND_EXPR.
11005         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11006         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11007         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11008         operands.
11010 2008-03-18  Michael Matz  <matz@suse.de>
11012         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11014 2008-03-18  Richard Guenther  <rguenther@suse.de>
11016         * tree-gimple.h (is_gimple_invariant_address): Declare.
11017         (is_gimple_constant): Likewise.
11018         * tree-gimple.c (is_gimple_constant): New function.
11019         (is_gimple_invariant_address): Likewise.
11020         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11021         and is_gimple_invariant_address.
11022         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11023         previous change.
11024         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11025         an addressable base.
11027 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11029         PR middle-end/35611
11030         * gimplify.c (gimplify_expr): Gimplify second operand of
11031         OMP_ATOMIC_LOAD.
11033 2008-03-17  Richard Guenther  <rguenther@suse.de>
11035         PR tree-optimization/19637
11036         * fold-const.c (fold_unary): Remove restrictions of removing
11037         intermediate pointer-conversions (P2)(P1)P0.
11038         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11039         conversion to void pointer.
11040         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11042 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
11044         PR debug/31510
11045         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11046         emulated thread local variables.
11048 2008-03-16  Richard Guenther  <rguenther@suse.de>
11050         PR middle-end/35607
11051         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11052         expand TREE_INVARIANT operations that are not gimple invariant.
11054 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
11056         * doc/extend.texi (Alignment): Say that the ABI controls
11057         the __alignof__ for non-strict-alignment targets rather
11058         than being a recommendation.
11060 2008-03-15  Paul Brook  <paul@codesourcery.com>
11062         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11063         annotations.
11064         (arm_output_fn_unwind): Mark functions that can not be unwound.
11066 2008-03-15  Paul Brook  <paul@codesourcery.com>
11068         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11069         extension instructions.
11071 2008-03-15  Richard Guenther  <rguenther@suse.de>
11073         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11074         and fold constant aggregate refs.
11075         (fold_const_aggregate_ref): Handle string constants
11076         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
11077         (evaluate_stmt): Simplify now that ccp_fold folds constant
11078         aggregate refs.
11080 2008-03-15  Paul Brook  <paul@codesourcery.com>
11082         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11083         (extzv): Use gen_extzv_t2.
11084         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11086 2008-03-15  Richard Guenther  <rguenther@suse.de>
11088         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11089         (fold_const_aggregate_ref): Likewise.
11090         (get_value): Return NULL if we don't have any values.
11091         (ccp_finalize): Set const_val to NULL after freeing it.
11092         * tree-flow.h (get_symbol_constant_value): Declare.
11093         (fold_const_aggregate_ref): Likewise.
11094         * tree-ssa-sccvn.c (try_to_simplify): Use them.
11096 2008-03-15  Richard Guenther  <rguenther@suse.de>
11098         PR middle-end/35593
11099         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11100         to not produce negative array indices if not allowed.  Add
11101         parameter to indicate that.
11102         (maybe_fold_offset_to_component_ref): Allow negative array
11103         indices only for the first member of a structure.
11104         (maybe_fold_offset_to_reference): Allow negative array indices.
11105         (maybe_fold_stmt_addition): Likewise.
11107 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
11108             Anatoly Sokolov <aesok@post.ru>
11110         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11111         (avr_arch): Add ARCH_AVR6.
11112         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11113         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
11114         instead of fixed value 2.
11115         (print_operand_address): Use gs() asm specifier instead of pm().
11116         (avr_assemble_integer): (Ditto.).
11117         (avr_output_addr_vec_elt): (Ditto.).
11118         (print_operand): Handle "!" code.
11119         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
11120         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11121         (AVR_HAVE_EIJMP_EICALL): Define.
11122         (AVR_3_BYTE_PC): Redefine.
11123         (AVR_2_BYTE_PC): (Ditto.).
11124         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11125         (LINK_SPEC): Add atmega2560 and atmega2561.
11126         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
11127         (crtm2561.o).
11128         * config/avr/avr.md (call_insn): Use eicall instead of icall 
11129         for 3 byte PC devices.
11130         (call_value_insn): (Ditto.).
11131         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11132         (indirect_jump): Use only for for 2 byte PC devices.
11133         (*tablejump): (Ditto.).
11134         (*indirect_jump_avr6): Add insn.
11135         (*tablejump_rjmp): Don't use for 3 byte PC devices.
11136         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
11137         instead of ijmp for 3 byte PC devices.
11138         (__tablejump2__): (Ditto.).
11139         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11140         (MULITLIB_DIRNAMES): (Ditto.). 
11141         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11143 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
11145         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11146         "sse2_umulsidi3".  Use V1DI mode for operand 0.
11147         ("mmx_psadbw"): Use V1DI mode for operand 0.
11148         * config/i386/i386-modes.def (V1SI): New vector mode.
11149         * config/i386/i386.c (struct builtin_description)
11150         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11151         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11152         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11153         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11154         v1di_ftype_v8qi_v8qi type.
11155         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11157         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11158         __builtin_ia32_pmuludq]: Fix the mode of return value.
11160 2008-03-15  Richard Guenther  <rguenther@suse.de>
11162         PR middle-end/35595
11163         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11164         being a PHI_NODE.
11166 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
11167         
11168         * doc/invoke.texi (Option Summary, Xtensa Options): Document
11169         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11170         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11171         unless TARGET_SERIALIZE_VOLATILE is enabled.
11172         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11173         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11174         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11176 2008-03-14  Richard Guenther  <rguenther@suse.de>
11178         PR tree-optimization/34172
11179         * tree-flow.h (refs_may_alias_p): Declare.
11180         (get_single_def_stmt): Likewise.
11181         (get_single_def_stmt_from_phi): Likewise.
11182         (get_single_def_stmt_with_phi): Likewise.
11183         * tree-dfa.c (refs_may_alias_p): New function.
11184         (get_single_def_stmt): Likewise.
11185         (get_single_def_stmt_from_phi): Likewise.
11186         (get_single_def_stmt_with_phi): Likewise.
11187         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11188         (vn_reference_lookup_1): New helper function.
11189         (vn_reference_lookup): Walk the virtual use-def chain to
11190         continue searching for a match if the def does not alias the
11191         reference we are looking for.
11193 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
11195         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
11196         archive and Perzl.  Update The Written Word listing.
11198 2008-03-14  Richard Guenther  <rguenther@suse.de>
11200         PR tree-optimization/34043
11201         PR tree-optimization/33989
11202         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11203         when doing FRE.
11204         (bitmap_find_leader): Use extra argument to verify dominance
11205         relationship inside a basic-block.
11206         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11207         (find_leader_in_sets): Adjust.
11208         (create_component_ref_by_pieces): Take extra argument for
11209         dominance check, handle lookup failures.
11210         (find_or_generate_expression): Likewise.
11211         (create_expression_by_pieces): Likewise.
11212         (insert_into_preds_of_block): Adjust.
11213         (create_value_expr_from): If asked for, verify all operands
11214         are in the blocks AVAIL_OUT set.
11215         (make_values_for_stmt): Check for SSA_NAMEs that are life
11216         over an abnormal edge.
11217         (compute_avail): Remove such check.
11218         (do_SCCVN_insertion): New function.
11219         (eliminate): If we do not find a leader suitable for replacement
11220         insert a replacement expression from SCCVN if available.
11221         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11222         (struct vn_ssa_aux): Add needs_insertion flag.
11223         * tree-ssa-sccvn.c (may_insert): New global flag.
11224         (copy_reference_ops_from_ref): Value-number union member access
11225         based on its size, not type and member if insertion is allowed.
11226         (visit_reference_op_load): For a weak match from union type
11227         punning lookup a view-converted value and insert a SSA_NAME
11228         for that value if that is not found.
11229         (visit_use): Make dumps shorter.  Do not disallow value numbering
11230         SSA_NAMEs that are life over an abnormal edge to constants.
11231         (free_scc_vn): Release inserted SSA_NAMEs.
11232         (run_scc_vn): New flag to specify whether insertion is allowed.
11233         Process SSA_NAMEs in forward order.
11234         * tree-ssa-loop-im.c (for_each_index): Handle invariant
11235         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11236         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11237         pointer type to/from integral types that do not change the
11238         precision to regular conversions.
11240 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11242         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11243         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11244         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11245         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11246         input arguments and the mode of return value.  Built-in functions
11247         that operate on whole 64-bit MMX register now use V1DI mode.
11249 2008-03-13  Alon Dayan  <alond@il.ibm.com>
11250             Olga Golovanevsky  <olga@il.ibm.com>
11252         PR tree-optimization/35041
11253         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11254         to locate the right position in a statement.
11256 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11258         PR target/34000
11259         PR target/35553
11260         * config/i386/xmmintrin.h:  Change all static inline functions to
11261         extern inline and add __gnu_inline__ attribute.
11262         * config/i386/bmintrin.h: Ditto.
11263         * config/i386/smmintrin.h: Ditto.
11264         * config/i386/tmmintrin.h: Ditto.
11265         * config/i386/mmintrin-common.h: Ditto.
11266         * config/i386/ammintrin.h: Ditto.
11267         * config/i386/emmintrin.h: Ditto.
11268         * config/i386/pmmintrin.h: Ditto.
11269         * config/i386/mmintrin.h: Ditto.
11270         * config/i386/mm3dnow.h: Ditto.
11272 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11274         PR middle-end/35185
11275         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11276         (lower_omp_2): New function.
11277         (lower_omp_1, lower_omp): Rewritten.
11279 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
11281         PR 35054
11282         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11283         with the phrase "Microsoft Windows compilers".
11284         (Push/Pop Macro Pragmas): New subsection. Document
11285         #pragma push_macro and pragma pop_macro.
11287 2008-03-12  Paul Brook  <paul@codesourcery.com>
11289         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11291 2008-03-12  Paul Brook  <paul@codesourcery.com>
11293         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11294         (thumb2_alusi3_short): Exclude PLUS and MINUS.
11295         (thumb2_addsi_shortim): Rename ...
11296         (thumb2_addsi_short): ... to this.  Allow register operands.
11297         (thumb2_subsi_short): New pattern.
11298         (thumb2_one_cmplsi2_short,
11299         thumb2_negsi2_short): New patterns and peepholes.
11301 2008-03-12  Paul Brook  <paul@codesourcery.com>
11303         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11305 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
11307         * config/i386/i386.md (int_cond): New code iterator.
11308         (fp_cond): Ditto.
11309         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11310         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11311         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11312         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11313         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11314         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11315         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11316         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11318 2008-03-12  Paul Brook  <paul@codesourcery.com>
11320         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11321         instead of {arm,thumb}_compute_save_reg_mask.
11322         (output_return_instruction): Ditto.
11323         (thumb_unexpanded_epilogue): Ditto.
11324         (thumb1_expand_prologue): Ditto.
11325         (thumb1_output_function_prologue): Ditto.
11326         (arm_set_return_address): Ditto.
11327         (thumb_set_return_address): Ditto.
11328         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
11329         regs to achieve stack alignment.
11330         (thumb1_compute_save_reg_mask): Fix compiler warning.
11331         (arm_output_epilogue): Use offsets->saved_regs_mask.
11332         Adjust stack pointer by poping call clobered registers.
11333         (arm_expand_prologue): Use offsets->saved_regs_mask.
11334         Adjust stack pointer by pushing extra registers.
11335         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11337 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
11339         PR tree-opt/35422
11340         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11341         conversion to the operands of a multiplication.
11343 2008-03-12  Richard Guenther  <rguenther@suse.de>
11345         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11346         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11347         * timevar.def (TV_TREE_PHIPROP): Add.
11348         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11349         pass description.  Use TV_TREE_PHIPROP.
11350         * tree-ssa-forwprop.c: Remove phiprop code.
11352 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11354         PR middle-end/35549
11355         * omp-low.c (maybe_lookup_decl): Constify first argument.
11356         (use_pointer_for_field): Change last argument from bool to
11357         omp_context *.  Disallow shared copy-in/out in nested
11358         parallel if decl is shared in outer parallel too.
11359         (build_outer_var_ref, scan_sharing_clauses,
11360         lower_rec_input_clauses, lower_copyprivate_clauses,
11361         lower_send_clauses, lower_send_shared_vars): Adjust callers.
11363 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
11364             Ira Rosen  <irar@il.ibm.com>
11366         * tree-vectorizer.c (free_stmt_vec_info): New function.
11367         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11368         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11369         * tree-vectorizer.h (free_stmt_vec_info): Declare.
11370         * tree-vect-transform.c (vectorizable_conversion): Free
11371         vec_oprnds0 if it was allocated.
11372         (vect_permute_store_chain): Remove unused VECs.
11373         (vectorizable_store): Free VECs that are allocated in the..
11374         function.
11375         (vect_transform_strided_load, vectorizable_load): Likewise.
11376         (vect_remove_stores): Simplify the code.
11377         (vect_transform_loop): Move code to vect_remove_stores().
11378         Call vect_remove_stores() and free_stmt_vec_info().
11380 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11382         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11383         TARGET_HPUX.  Revise comment.
11384         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11385         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11386         Use sr4 variant of `be' instruction when not generating PIC code.
11387         (attr_length_call): Adjust for above change.
11389 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11391         * ipa-reference.c (static_execute): Remove module_statics_const and
11392         associated setting code.
11394 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11396         PR target/35540
11397         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11398         predicate for operand 1.
11399         (paritysi2_cmp): Use register_operand predicate for operand 2.
11400         Use earlyclobber modifier for operand 1.  Remove support for
11401         memory operands.
11402         (paritydi2_cmp): Use register_operand predicate for operand 3.
11403         Use earlyclobber modifier for operand 1.  Remove support for
11404         memory operands.
11406 2008-03-11  Paul Brook  <paul@codesourcery.com>
11407             Vladimir Prus  <vladimir@codesourcery.com>
11409         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11410         (arm_compute_save_reg0_reg12_mask): Always
11411         check if register 11 must be saved.  Always safe hard frame pointer
11412         when frame_pointer_needeed.
11413         (arm_compute_save_reg_mask): Save IP and PC
11414         only with apcs frames.
11415         (arm_output_epilogue): Adjust Thumb2 codepath to
11416         be also invoked and work for ARM non-apcs frames.
11417         (arm_expand_prologue): Don't bother saving IP
11418         for non-apcs frame, since it's not clobbered by
11419         prologue code.  Implement non-apcs frame
11420         layout.
11422 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11424         PR rtl-optimization/35281
11425         * expr.c (convert_move): Use a new pseudo for the intermediate
11426         from_mode->word_mode result.
11428 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11430         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11431         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11432         * toplev.c (compile_file): Don't call it.
11434 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11436         PR middle-end/35526
11437         * expr.c (store_expr): Call emit_block_move if the mode
11438         of "temp" RTX is BLKmode.
11440 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11441             Richard Guenther  <rguenther@suse.de>
11443         PR tree-optimization/31358
11444         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11445         the step with a NULL_TREE.
11446         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11447         to sizetype if type is a pointer type.
11448         (add_candidate_1): Don't convert the base and step to
11449         the generic type if the orginal type is a pointer type.
11450         (add_iv_value_candidates): Use sizetype for the step
11451         if type is a pointer type.
11452         (cand_value_at): Likewise.
11453         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11454         for pointer types.
11455         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11456         Don't convert the tem affine to the type.
11457         (add_elt_to_tree): Use sizetype for the step if a pointer.
11458         Use POINTER_PLUS_EXPR for pointers.
11459         (aff_combination_to_tree): Use sizetype for the step if a
11460         pointer.
11462 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
11464         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11465         Remove commutativity hint.
11467 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
11469         PR c/35438
11470         PR c/35439
11471         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11472         errorneous type.  Check that v is a VAR_DECL.
11474         PR middle-end/35099
11475         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11477 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11479         PR tree-optimization/35494
11480         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11481         may be overriden at link and run time.
11483 2008-03-10  Richard Guenther  <rguenther@suse.de>
11485         PR tree-optimization/34677
11486         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11487         (poolify_tree): Likewise.
11488         (modify_expr_template): Likewise.
11489         (poolify_modify_stmt): Likewise.
11490         (insert_fake_stores): Handle all component-ref style stores
11491         in addition to INDIRECT_REF.  Also handle complex types.
11492         Do not poolify the inserted load.
11493         (realify_fake_stores): Do not rebuild the tree but only
11494         make it a SSA_NAME copy.
11495         (init_pre): Remove initialzation of modify_expr_template.
11496         Do not allocate modify_expr_node_pool.
11497         (fini_pre): Do not free modify_expr_node_pool.
11499 2008-03-10  Paul Brook  <paul@codesourcery.com>
11501         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11502         to avoid conflicts.
11504 2008-03-10  Paul Brook  <paul@codesourcery.com>
11505             Mark Shinwell  <shinwell@codesourcery.com>
11507         * config/arm/cortex-r4.md: New.
11508         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11509         insn attributes.
11510         * config/arm/arm.md: Include cortex-r4.md.
11511         (insn): Add smmls, sdiv and udiv values.
11512         (generic_sched): Don't use generic scheduling for Cortex-R4.
11513         (arm_issue_rate): New function.
11514         (TARGET_SCHED_ISSUE_RATE): Define.
11516 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
11518         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11520 2008-03-10  Richard Guenther  <rguenther@suse.de>
11522         * tree-ssa-pre.c (get_sccvn_value): Simplify.
11523         (compute_avail): Do not add stmt uses to AVAIL_OUT.
11525 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
11527         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11528         Set default to true.
11530 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11532         * c.opt (Wsynth): Deprecate.
11533         * doc/invoke.texi (Option Summary, Warning Options): Document
11534         -Wno-format-contains-nul.
11536 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
11538         PR target/35496
11539         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11540         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11542 2008-03-09  Ira Rosen  <irar@il.ibm.com>
11544         * config/rs6000/rs6000.c (builtin_description): Rename vector
11545         left shift operations.
11546         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11547         (altivec_vsl<VI_char>): Rename to ...
11548         (ashl<mode>3): ... new name.
11549         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11550         gen_ashlv4si3.
11551         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11553 2008-03-08  Richard Guenther  <rguenther@suse.de>
11555         * coverage.h (tree_coverage_counter_addr): Declare.
11556         * coverage.c (tree_coverage_counter_addr): New function.
11557         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11558         before using again.
11559         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11560         (tree_gen_one_value_profiler): Likewise.
11561         (tree_gen_ic_profiler): Likewise.
11562         (tree_gen_average_profiler): Likewise.
11563         (tree_gen_ior_profiler): Likewise.
11565 2008-03-08  Richard Guenther  <rguenther@suse.de>
11567         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11568         (vn_binary_op_insert): Likewise.
11569         (vn_unary_op_lookup): Likewise.
11570         (vn_unary_op_insert): Likewise.
11571         (vn_nary_op_lookup): Declare.
11572         (vn_nary_op_insert): Likewise.
11573         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11574         and binary hashes, use a single obstack for unary_op_pool
11575         and binary_op_pool.
11576         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11577         a single struct vn_nary_op_s.  Store tree code length and
11578         a variable number of operands.
11579         (struct vn_reference_op_struct): Remove unused op2.
11580         (vn_reference_op_eq): Do not compare op2.
11581         (vn_reference_op_compute_hash): Do not compute hash of op2.
11582         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11583         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11584         with vn_nary_op_compute_hash.
11585         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11586         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11587         vn_nary_op_lookup.
11588         (vn_unary_op_insert, vn_binary_op_insert): Replace with
11589         vn_nary_op_insert.
11590         (visit_unary_op): Call nary functions.
11591         (visit_binary_op): Likewise.
11592         (process_scc): Adjust for struct vn_tables_s changes.
11593         (allocate_vn_table): Likewise.
11594         (free_vn_table): Likewise.
11595         * tree-vn.c (vn_add): Call nary functions.
11596         (vn_lookup): Likewise.
11598 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
11600         PR target/35498
11601         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11602         wdst back after sync_compare_and_swapqhi_internal.
11604 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
11606         PR target/22152
11607         * config/i386/i386-modes.def (V1DI): New vector mode.
11608         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11609         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11610         (MMXMODE248): Ditto.
11611         (MMXMODE): Add V1DI mode.
11612         (mmxvecsize): Change DI mode to V1DI mode.
11613         ("mov<mode>): Use MMXMODEI8 mode iterator.
11614         ("*mov<mode>_internal_rex64"): Ditto.
11615         ("*mov<mode>_internal"): Ditto.
11616         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
11617         ("mmx_sub<mode>3"): Ditto.
11618         ("mmx_adddi3"): Remove insn pattern.
11619         ("mmx_subdi3"): Ditto.
11620         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11621         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11622         ("mmx_ashl<mode>3"): Ditto.
11623         ("mmx_lshrdi3"): Remove insn pattern.
11624         ("mmx_ashldi3"): Ditto.
11625         * config/i386/i386.c (classify_argument): Handle V1DImode.
11626         (function_arg_advance_32): Ditto.
11627         (function_arg_32): Ditto.
11628         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11629         mmx_addv1di3 insn pattern.
11630         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11631         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11632         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11633         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11634         Remove definitions of built-in functions.
11635         (V1DI_type_node): New node.
11636         (v1di_ftype_v1di_int): Ditto.
11637         (v1di_ftype_v1di_v1di): Ditto.
11638         (v2si_ftype_v2si_si): Ditto.
11639         (v4hi_ftype_v4hi_di): Remove node.
11640         (v2si_ftype_v2si_di): Ditto.
11641         (ix86_init_mmx_sse_builtins): Handle V1DImode.
11642         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11643         Redefine builtins using def_builtin_const with *_ftype_*_int node.
11644         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11645         Add new builtins using def_builtin_const.
11646         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11647         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11648         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11649         * config/i386/mmintrin.h (__v1di): New typedef.
11650         (_mm_add_si64): Cast arguments to __v1di type.
11651         (_mm_sub_si64): Ditto.
11652         (_mm_sll_pi16): Cast __count to __v4hi type.
11653         (_mm_sll_pi32): Cast __count to __v2si type.
11654         (_mm_sll_si64): Cast arguments to __v1di type.
11655         (_mm_srl_pi16): Cast __count to __v4hi type.
11656         (_mm_srl_pi32): Cast __count to __v2si type.
11657         (_mm_srl_si64): Cast arguments to __v1di type.
11658         (_mm_sra_pi16): Cast __count to __v4hi type.
11659         (_mm_sra_pi32): Cast __count to __v2si type.
11660         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11661         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11662         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11663         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11664         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11665         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11666         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11667         (_mm_srai_pi32): Use __builtin_ia32_psradi.
11668         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11669         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11670         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11671         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11673 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
11675         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11677 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
11679         PR target/35373
11680         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11681         reg+const addressing for Altivec modes.  Don't generate reg+reg
11682         addressing for TFmode or TDmode quantities.
11684 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
11686         * c-common.c (vector_types_convertible_p): Call langhook
11687         instead of comptypes.
11689 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11691         PR tree-opt/35402
11692         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11693         integral and scalar float variables which have a
11694         NULL DECL_INITIAL.
11696 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
11698         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11699         dwarf_register_span hook when emitting unwind information for
11700         register-to-memory saves.
11701         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11702         (rs6000_frame_related): Remove call to spe_synthesize_frame.
11704 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11706         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11707         for the same VAR_DECL.
11709 2008-03-06  Tom Tromey  <tromey@redhat.com>
11711         * treelang: Delete.
11712         * doc/standards.texi (Standards): Don't mention treelang.
11713         * doc/invoke.texi (Overall Options): Don't mention treelang.
11714         * doc/install.texi (Prerequisites): Don't mention bison or
11715         treelang.
11716         (Configuration): Don't mention treelang.
11717         (Building): Likewise.
11718         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11720 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
11722         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11723         word-extractions out of a multi-word object.
11725 2008-03-06  Richard Guenther  <rguenther@suse.de>
11727         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11728         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11729         result type and precision.
11730         * expr.c (get_inner_reference): Set unsignedp based on the result
11731         type of BIT_FIELD_REF.
11732         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11733         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11734         (try_instantiate_multiple_fields): Likewise.  Use the correct type
11735         for BIT_FIELD_REF.
11736         (sra_build_assignment): Likewise.
11737         (sra_build_elt_assignment): Likewise.
11738         (sra_explode_bitfield_assignment): Likewise.
11739         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11740         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11741         set BIT_FIELD_REF_UNSIGNED.
11742         (vectorizable_load): Likewise.
11744 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11746         * cse.c (cse_extended_basic_block): Invalidate artificial defs
11747         at bb start.
11749 2008-03-06  Richard Guenther  <rguenther@suse.de>
11751         * alias.c (struct alias_set_entry): Move has_zero_child field
11752         to pack with alias_set.
11754 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11756         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11757         32bit host.
11759 2008-03-05  Ian Lance Taylor  <iant@google.com>
11761         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11763 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
11765         * fwprop.c (update_df): Support width and offset parameters of
11766         df_ref_create.
11767         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11768         global_conflicts): Change DF_REF_EXTRACT to either
11769         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11770         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11771         * df-scan.c (df_ref_record, df_defs_record,
11772         df_ref_create_structure, df_def_record_1, df_uses_record,
11773         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11774         df_bb_refs_collect, df_entry_block_defs_collect,
11775         df_exit_block_uses_collect): Support new width and offset fields.
11776         (ref_extract_pool): New storage pool.
11777         (df_free_ref): New function.
11778         (df_reg_chain_unlink, df_free_collection_rec,
11779         df_sort_and_compress_refs): Call df_free_ref.
11780         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11781         of df_ref_extract.
11782         (df_ref_create_structure): Allocate df_ref_extract if offset and
11783         width fields are used.
11784         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11785         (df_uses_record): Get offset and width from ZERO_EXTRACT 
11786         and SIGN_EXTRACT.
11787         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11788         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11789         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11790         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11791         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11792         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11793         (df_ref_extract): New structure.
11794         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11795         (df_ref_create): Add width and offset parameters.
11796         
11797 2008-03-05  Richard Guenther  <rguenther@suse.de>
11799         * tree-ssa-structalias.c (get_constraint_for_component_ref):
11800         Use ranges_overlap_p.
11801         (offset_overlaps_with_access): Rename
11802         to ranges_overlap_p and move ...
11803         * tree-flow-inline.h (ranges_overlap_p): ... here.
11805         * tree.h (get_inner_reference, handled_component_p): Update
11806         comments.
11808         * tree.h (record_component_aliases, get_alias_set,
11809         alias_sets_conflict_p, alias_sets_must_conflict_p,
11810         objects_must_conflict_p): Move declarations ...
11811         * alias.h (record_component_aliases, get_alias_set,
11812         alias_sets_conflict_p, alias_sets_must_conflict_p,
11813         objects_must_conflict_p): ... here.
11814         Include coretypes.h.
11815         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11817 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
11819         * cfg.c: Include tree-flow.h.
11820         (remove_edge_raw): Call redirect_edge_var_map_clear.
11821         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11822         * tree-flow-inline.h (redirect_edge_var_map_def): New.
11823         (redirect_edge_var_map_result): New.
11824         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
11825         PENDING_STMT use with redirect_edge_var_map_*.
11826         * tree-ssa.c (edge_var_maps): New definition.
11827         (redirect_edge_var_map_add): New.
11828         (redirect_edge_var_map_clear): New.
11829         (redirect_edge_var_map_dup): New.
11830         (redirect_edge_var_map_vector): New.
11831         (redirect_edge_var_map_destroy): New.
11832         (ssa_redirect_edge): Replace PENDING_STMT use with
11833         redirect_edge_var_map_*.
11834         (flush_pending_stmts): Same.
11835         (delete_tree_ssa): Destroy edge var map.
11836         * tree-flow.h (struct _edge_var_map): New.
11837         Define edge_var_map vector type.
11838         Declare redirect_edge_var_map_* prototypes.
11839         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
11840         * tree-cfg.c (reinstall_phi_args): Replace
11841         PENDING_STMT use with redirect_edge_var_map_*.
11843 2008-03-05  Richard Guenther  <rguenther@suse.de>
11845         PR tree-optimization/35472
11846         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
11847         whose single use_stmt has a overlapping set of loaded and
11848         stored symbols as that use_stmt might be a noop assignment then.
11850 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
11852         * gthr-rtems.h: Implement __gthread_mutex_destroy.
11854 2008-03-05  Richard Guenther  <rguenther@suse.de>
11856         PR c++/35336
11857         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
11858         should be constants.
11859         * tree-cfg.c (verify_expr): Verify it.
11860         * fold-const.c (fold_truthop): Remove code generating
11861         BIT_FIELD_REFs of structure bases.
11862         (fold_binary): Likewise.
11863         (fold_ternary): Position and size of BIT_FIELD_REFs are
11864         always host integers.
11865         (make_bit_field_ref): Remove.
11866         (optimize_bit_field_compare): Remove.
11867         (all_ones_mask_p): Remove.
11869 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
11871         PR gcc/33009
11872         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
11873         (split_block_and_df_analyze): New. Split basic block and rebuild
11874         dataflow.
11875         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
11876         SPLIT_BLOCK.
11877         (split_pattern_seq): Likewise.
11878         (erase_matching_seqs): Likewise.
11879         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
11881 2008-03-04  Geoff Keating  <geoffk@apple.com>
11883         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
11884         declaration and code.
11885         (tree_invalid_nonnegative_warnv_p): Likewise.
11887 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11889         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
11890         examples.  Truncate option-names then causing overfull hbox.
11892 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11894         PR target/35222
11895         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
11896         on hpux10.
11897         * configure: Rebuilt.
11899 2008-03-04  Rafael Espindola  <espindola@google.com>
11901         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
11902         (tree_unary_nonnegative_warnv_p): New.
11903         (tree_binary_nonnegative_warnv_p): New.
11904         (tree_single_nonnegative_warnv_p): New.
11905         (tree_invalid_nonnegative_warnv_p): New.
11906         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
11908 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11910         PR 28322
11911         * opts.c (handle_option): Postpone 'unknown option' errors only for
11912         warning options.
11914 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11916         PR target/35453
11917         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
11918         (_SIDD_XXX): This.
11920 2008-03-04  Rafael Espindola  <espindola@google.com>
11922         * fold-const.c (tree_unary_nonzero_warnv_p): New.
11923         (tree_binary_nonzero_warnv_p): New.
11924         (tree_single_nonzero_warnv_p): New.
11925         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
11927 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
11929         PR middle-end/35456
11930         * fold-const.c (fold_cond_expr_with_comparison): Prevent
11931         transformations for modes that have signed zeros.
11932         * ifcvt.c (noce_try_abs): Ditto.
11934 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
11936         * config/i386/i386.c (override_options): Force
11937         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
11939 2008-03-04  Jan Hubicka  <jh@suse.cz>
11941         PR c++/35262
11942         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
11943         in last commit.
11945 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11947         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
11948         label to probe the stack.
11950 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11952         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
11953         (__gthr_win32_mutex_destroy): Declare.
11954         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
11955         __gthr_win32_mutex_destroy.
11956         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
11958 2008-03-03  Jan Hubicka  <jh@suse.cz>
11960         PR c++/35262
11961         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
11962         aggressive on inlining cold calls.
11964 2008-03-03  Richard Guenther  <rguenther@suse.de>
11966         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
11967         struct copies into the expression table.
11968         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
11969         (try_to_simplify): Likewise.
11970         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
11971         integral and pointer arguments which do not change the
11972         precision to NOP_EXPRs.
11973         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
11974         VIEW_CONVERT_EXPR case.
11976 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
11978         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
11979         defined in a loop at depth 0 is invariant.
11980         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
11981         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
11982         be called at loop depth 0.
11984 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
11986         PR driver/35420
11987         * gcc.c (process_command): Update copyright notice dates.
11988         * gcov.c (print_version): Likewise.
11989         * gcov-dump.c (print_version): Likewise.
11990         * mips-tfile.c (main): Likewise.
11991         * mips-tdump.c (main): Likewise.
11993 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11995         PR 24924
11996         * c-common.c (flag_permissive): Delete.
11997         (constant_expression_warnings): Check flags first.
11998         (constant_expression_error): New.
11999         * c-common.h (flag_permissive): Delete.
12000         (constant_expression_error): Declare.
12001         * flags.h (flag_permissive): Declare. Update description.
12002         * diagnostic.c (pedwarn): Update.
12003         (permerror): New.
12004         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12005         (permissive_error_kind): New.
12006         * toplev.c (flag_permissive): Define. Update description.
12007         * toplev.h (permissive_error_kind): Declare.
12008         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12009         (pedwarn_c90): Use pedantic_warning_kind.
12010         * c-opts.c (c_common_post_options): flag_permissive does not affect
12011         flag_pedantic_errors.
12013 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
12015         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12016         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12017         __absvsi2, __absvDI2): Use unsigned arithmetic.
12019 2008-03-02  Andi Kleen  <ak@suse.de>
12020             Richard Guenther  <rguenther@suse.de>
12022         * struct-equiv.c: Remove file.
12023         * cfg_cleanup.c (condjump_equiv_p): Remove.
12024         * Makefile.in (OBJS-common): Remove struct-equiv.o.
12025         (struct-equiv.o): Remove rule.
12026         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12027         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
12028         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12030 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12032         * ifcvt.c (noce_process_if_block): Try to handle only the then
12033         block if the else block exists but isn't suitable.
12035 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12037         PR gcc/35063
12038         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12039         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12040         regression from previous patch.
12042 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12044         PR gcc/35063
12045         * gthr.h: Add __gthread_mutex_destroy as a function that must be
12046         implemented.
12047         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12048         * gthr-single.h (__gthread_mutex_destroy): Likewise.
12049         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12050         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12051         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12052         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12053         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12054         (__gthread_mutex_destroy_function): Rename to
12055         __gthread_mutex_destroy.
12056         * gthr-dce.h (__gthread_mutex_destroy): Call
12057         pthread_mutex_destroy.
12058         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12059         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12060         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12062 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12064         * df-scan.c (df_ref_chain_change_bb): Simplify.
12065         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
12066         set_block_for_insn if there's any change.
12067         * df.h ((df_insn_change_bb): Fix prototype.
12068         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12069         df_insn_change_bb, don't call set_block_for_insn.
12070         * emit-rtl.c (reorder_insns): Likewise.
12071         * haifa-sched.c (move_insn): Likewise.
12073 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12075         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12077 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12079         * tree-flow-inline.h (next_readonly_imm_use): Return
12080         NULL_USE_OPERAND_P after the end.
12082 2008-03-01  Richard Guenther  <rguenther@suse.de>
12084         PR tree-optimization/35411
12085         * tree-sra.c (sra_build_assignment): Split conversion to
12086         final type to a separate statement if we are not assigning
12087         to a register.
12089 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12091         * fold-const.c (fold_convertible_p): Correct the logic to follow
12092         that in fold_convert().
12094 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
12096         PR c++/35315
12097         * tree-inline.c (build_duplicate_type): When we make a
12098         duplicate type, make it unique in the canonical types system.
12100 2008-02-29  Tom Tromey  <tromey@redhat.com>
12102         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12103         input_file_stack_history, input_file_stack_restored): Remove.
12104         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12105         * input.h (struct file_stack): Remove.
12106         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12107         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12108         Likewise.
12109         * diagnostic.h (struct diagnostic_context) <last_module>: Change
12110         type.
12111         (diagnostic_last_module_changed): Add 'map' argument.
12112         (diagnostic_set_last_function): Likewise.
12113         * diagnostic.c (undiagnostic_report_current_module): Iterate using
12114         line map, not input_file_stack.
12115         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12117 2008-02-29  Paul Brook  <paul@codesourcery.com>
12119         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12121 2008-02-29  Paul Brook  <paul@codesourcery.com>
12123         * config/arm/ieee754-df.S (muldf3): Use RET macros.
12125 2008-02-29  Richard Guenther  <rguenther@suse.de>
12127         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12128         vn_lookup_or_add.
12129         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12130         value for comparing for a store match.
12131         (simplify_unary_expression): Do nothing for SSA_NAMEs.
12132         (try_to_simplify): Do not do a full-blown reference lookup.
12134 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12136         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12137         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12139         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12141 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
12143         * tree-loop-linear.c (try_interchange_loops): Compare memory access
12144         strides against cache sizes.
12146 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12148         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12149         constant to fpul.
12151 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
12153         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12154         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12155         is smaller than the original promoted value.
12156         (simplify_subreg): If OP is a SUBREG, try to preserve its
12157         SUBREG_PROMOTED_VAR_P information.
12159 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
12161         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12162         (VN_INFO_GET): Allocate new objects on the obstack.
12163         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
12164         for rpo_numbers_temp, for consistency.
12165         (free_scc_vn): Free the obstack.
12167 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
12169         * doc/invoke.texi: Document -ftree-loop-distribution.
12170         * tree-loop-distribution.c: New.
12171         * tree-pass.h (pass_loop_distribution): New.
12172         * graphds.h (struct graph): Add htab_t indices.
12173         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12174         * tree-vectorizer.c (rename_variables_in_loop): Extern.
12175         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12176         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12177         * tree-data-ref.c (debug_data_dependence_relations): New.
12178         (dump_data_dependence_relation): Also print data references.
12179         (free_data_ref): Extern.
12180         (same_access_functions): Moved...
12181         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12182         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12183         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12184         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12185         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12186         (stmts_from_loop): Skip LABEL_EXPR.
12187         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12188         New.
12189         (build_rdg): Initialize rdg->indices htab.
12190         (free_rdg, stores_from_loop, ref_base_address,
12191         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12192         have_similar_memory_accesses_1, ref_base_address_1,
12193         remove_similar_memory_refs): New.
12194         * tree-data-ref.h: Depend on tree-chrec.h.
12195         (debug_data_dependence_relations, free_data_ref): Declared.
12196         (same_access_functions): ... here.
12197         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12198         New.
12199         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12200         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12201         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12202         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12203         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12204         rdg_vertex_for_stmt): Declared.
12205         (struct rdg_edge): Add level.
12206         (RDGE_LEVEL): New.
12207         (free_rdg, stores_from_loop, remove_similar_memory_refs,
12208         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12209         Declared.
12210         (rdg_has_similar_memory_accesses): New.
12211         * tree-vect-analyze.c: Remove unused static decls.
12212         * lambda.h (dependence_level): New.
12213         * common.opt (ftree-loop-distribution): New.
12214         * tree-flow.h (mark_virtual_ops_in_bb, 
12215         slpeel_tree_duplicate_loop_to_edge_cfg,
12216         rename_variables_in_loop): Declared.
12217         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12218         (OBJS-common): Add tree-loop-distribution.o.
12219         (tree-loop-distribution.o): New rule.
12220         * tree-cfg.c (mark_virtual_ops_in_bb): New.
12221         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12222         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12224 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
12226         PR target/33963
12227         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12228         other than structures and unions.
12230 2008-02-28  Richard Guenther  <rguenther@suse.de>
12232         Revert:
12233         2008-02-26  Richard Guenther  <rguenther@suse.de>
12235         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12236         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12237         (lookup_decl_from_uid): Declare.
12238         (remove_decl_from_map): Likewise.
12239         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12240         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12241         (decl_for_uid_map): New global hashtable mapping DECL_UID
12242         to the decl tree.
12243         (init_ttree): Allocate it.
12244         (insert_decl_to_uid_decl_map): New helper function.
12245         (make_node_stat): Insert new decls into the map.
12246         (copy_node_stat): Likewise.
12247         (lookup_decl_from_uid): New function.
12248         (remove_decl_from_map): Likewise.
12249         (print_decl_for_uid_map_statistics): New helper.
12250         (dump_tree_statistics): Call it.
12252         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12253         (referenced_var_iterator): Adjust.
12254         (FOR_EACH_REFERENCED_VAR): Adjust.
12255         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12256         (num_referenced_vars): Adjust.
12257         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12258         (first_referenced_var): Remove.
12259         (end_referenced_vars_p): Likewise.
12260         (next_referenced_var): Likewise.
12261         (referenced_var_iterator_set): New helper function.
12262         * tree-dfa.c (referenced_var_lookup): Adjust.
12263         (referenced_var_check_and_insert): Likewise.
12264         (remove_referenced_var): Likewise.
12265         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12266         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12267         (verify_call_clobbering): Likewise.
12268         (verify_memory_partitions): Likewise.
12269         (init_tree_ssa): Allocate bitmap instead of hashtable for
12270         referenced_vars.
12271         (delete_tree_ssa): Adjust.
12272         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12273         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12274         (compute_tag_properties): Likewise.
12275         (set_initial_properties): Likewise.
12276         (find_partition_for): Likewise.
12277         (update_reference_counts): Likewise.
12278         (dump_may_aliases_for): Likewise.
12279         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12280         (add_call_clobber_ops): Likewise.
12281         (add_call_read_ops): Likewise.
12282         (get_asm_expr_operands): Likewise.
12283         * tree-into-ssa.c (dump_decl_set): Likewise.
12284         (update_ssa): Likewise.
12285         * tree-sra.c (scan_function): Likewise.
12286         (decide_instantiations): Likewise.
12287         (scalarize_parms): Likewise.
12288         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12289         (dsa_named_for): Likewise.
12290         * tree-ssa-structalias.c (update_alias_info): Likewise.
12291         (merge_smts_into): Likewise.
12293 2008-02-27  David Daney  <ddaney@avtrex.com>
12295         PR target/34409
12296         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12297         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12298         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12299         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12300         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12302 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
12304         PR target/25477
12305         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12306         (BUILT_IN_NEXTTOWARD): Remove.
12307         (BUILT_IN_NEXTTOWARDF): Ditto.
12308         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12309         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
12311 2008-02-27  Tom Tromey  <tromey@redhat.com>
12313         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12314         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12316 2008-02-27  Jan Beulich  <jbeulich@novell.com>
12318         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12319         update the respective field on newdecl.
12321 2008-02-27  Revital Eres  <eres@il.ibm.com>
12323         PR rtl-optimization/34999
12324         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12325         crossing edges that ends with a call insn.
12326         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12327         call insn and clear the EDGE_CROSSING flag of the crossing edge
12328         when fixing fallthru edges.
12330 2008-02-27  Richard Guenther  <rguenther@suse.de>
12332         PR middle-end/35390
12333         * fold-const.c (fold_unary): Return the correct argument,
12334         converted to the result type.
12336 2008-02-27  Richard Guenther  <rguenther@suse.de>
12338         PR middle-end/34971
12339         * expr.c (expand_expr_real_1): Assert on rotates that operate
12340         on partial modes.
12341         * fold-const.c (fold_binary): Use the types precision, not the
12342         bitsize of the mode if folding rotate expressions.  Build rotates
12343         only for full modes.
12345 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
12347         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12348         and CPP_PRAGMA_EOL.
12349         * c-pragma.c (pragma_ns_name): New typedef.
12350         (registered_pp_pragmas): New variable.
12351         (c_pp_lookup_pragma): New function.
12352         (c_register_pragma_1): If flag_preprocess_only, do nothing
12353         for non-expanded pragmas, for expanded ones push pragma's
12354         namespace and name into registered_pp_pragmas vector.
12355         (c_invoke_pragma_handler): Register OpenMP pragmas even when
12356         flag_preprocess_only, don't register GCC pch_preprocess
12357         pragma if flag_preprocess_only.
12358         * c-opts.c (c_common_init): Call init_pragma even if
12359         flag_preprocess_only.
12360         * c-pragma.c (c_pp_lookup_pragma): New prototype.
12361         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12362         cpp_register_pragma if flag_preprocess_only.
12364 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12366         PR c/28800
12367         * c-parser.c (c_parser_translation_unit): Warn for empty
12368         translation unit, not empty source file.
12370 2008-02-26  Paul Brook  <paul@codesourcery.com>
12372         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12373         operand for Thumb-2.
12374         * config/arm/arm.h (reg_class): Add CORE_REGS.
12375         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12376         (BASE_REG_CLASS): Use CORE_REGS.
12377         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12378         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12379         (REGNO_OK_FOR_INDEX_P): Exclude SP.
12380         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
12381         ARM_REGNO_OK_FOR_INDEX_P.
12382         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12383         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12384         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12385         (ldm/stm peepholes): Ditto.
12386         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12387         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12388         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12389         * config/arm/constraints.md: Enable "k" constraint on ARM.
12391 2008-02-27  Ben Elliston  <bje@au.ibm.com>
12393         * config/rs6000/rs6000.c: Annotate cache line size field in all
12394         instances of struct processor_costs.
12396 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
12398         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12399         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12400         jump_bypass): New counters.
12401         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12402         * dce.c (gate_ud_dce): Same.
12403         (gate_fast_dce): Same.
12404         * dse.c (gate_dse1): New function.
12405         (gate_dse2): New function.
12406         (gate_dse): Merge results of new gate functions.
12407         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12408         (gate_handle_jump_bypass): Add dbg_cnt.
12409         (gate_handle_gcse): Add dbg_cnt.
12410         * ifcvt.c (gate_handle_if_conversion): Same.
12411         (gate_handle_if_after_combine): Same.
12412         (gate_handle_if_after_reload): Same.
12413         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12415 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
12417         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12418         line sizes.
12419         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12421 2008-02-26  Jason Merrill  <jason@redhat.com>
12423         PR c++/35315
12424         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
12425         alone if it's the naming decl for the type's main variant.
12427 2008-02-26  Tom Tromey  <tromey@redhat.com>
12429         * system.h (USE_MAPPED_LOCATION): Poison.
12430         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12431         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12432         (make_goto_expr_edges): Likewise.
12433         (remove_bb): Likewise.
12434         (execute_warn_function_return): Likewise.
12435         * basic-block.h (struct edge_def) <goto_locus>: Change type to
12436         location_t.
12437         * c-common.c (fname_decl): Remove old location code.
12438         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12439         location code.
12440         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12441         variant.
12442         (ASM_INPUT_SOURCE_LOCATION): Likewise.
12443         (gen_rtx_ASM_INPUT): Likewise.
12444         (gen_rtx_ASM_INPUT_loc): Likewise.
12445         (get_rtx_asm_OPERANDS): Remove.
12446         * cfglayout.c (insn_locators_alloc): Remove old location code.
12447         (set_curr_insn_source_location): Likewise.
12448         (curr_insn_locator): Likewise.
12449         * print-tree.c (print_node): Remove old location code.
12450         * tree-mudflap.c (mf_varname_tree): Remove old location code.
12451         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12452         * cfgexpand.c (expand_gimple_cond_expr): Don't use
12453         location_from_locus.
12454         (construct_exit_block): Remove old location code.
12455         * emit-rtl.c (force_next_line_note): Remove old location code.
12456         * profile.c (branch_prob): Remove old location code.
12457         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12458         LOC_LINE): Remove old-location variants.
12459         * langhooks.c (lhd_print_error_function): Remove old location
12460         code.
12461         * configure, config.in: Rebuilt.
12462         * configure.ac (--enable-mapped-location): Remove.
12463         * c-decl.c (c_init_decl_processing): Remove old location code.
12464         (finish_function): Likewise.
12465         * recog.c (decode_asm_operands): Remove old location code.
12466         * c-pch.c (c_common_read_pch): Remove old location code.
12467         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12468         variants.
12469         * gimple-low.c (lower_function_body): Remove old location code.
12470         * toplev.c (unknown_location): Remove.
12471         (push_srcloc): Remove old-location variant.
12472         (process_options): Remove old location code.
12473         (lang_dependent_init): Likewise.
12474         * input.h (UNKNOWN_LOCATION): Move definition.
12475         (location_t): Undeprecate.
12476         (source_locus): Remove.
12477         (location_from_locus): Remove.
12478         (struct location_s): Remove.
12479         Remove all old-location code.
12480         (input_line, input_filename): Remove.
12481         * final.c (final_scan_insn): Remove old location code.
12482         * diagnostic.c (diagnostic_build_prefix): Remove
12483         USE_MAPPED_LOCATION test.
12484         * tree.h (gimple_stmt) <locus>: Now a location_t.
12485         (tree_exp) <locus>: Likewise.
12486         (DECL_IS_BUILTIN): Remove old-location variant.
12487         (annotate_with_file_line, annotate_with_locus): Likewise.
12488         (expr_locus, set_expr_locus): Update.
12489         * tree.c (build1_stat): Remove old location code.
12490         (last_annotated_node): Remove.
12491         (annotate_with_file_line): Remove old-location variant.
12492         (annotate_with_locus): Likewise.
12493         (expr_location): Remove old location code.
12494         (set_expr_location): Likewise.
12495         (expr_has_location): Likewise.
12496         (expr_locus): Likewise.
12497         (set_expr_locus): Likewise.
12498         (expr_filename): Don't use location_from_locus.
12499         (expr_lineno): Likewise.
12500         * rtl-error.c (location_for_asm): Remove old location code.
12501         * c-lex.c (cb_line_change): Remove old location code.
12502         (fe_file_change): Likewise.
12503         (cb_def_pragma): Likewise.
12504         (c_lex_with_flags): Likewise.
12505         * gengtype.c (do_typedef): Don't special-case location types.
12506         (define_location_structures): Remove.
12507         (main): Don't call define_location_structures.
12508         * tree-pretty-print.c (dump_implicit_edges): Remove old location
12509         code.
12511 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12513         PR 26264
12514         * builtins.def (BUILT_IN_STDARG_START): Remove.
12515         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12516         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12517         * tree-inline.c (inline_forbidden_p_1): Likewise.
12518         
12519 2008-02-26  Richard Guenther  <rguenther@suse.de>
12521         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12522         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12523         (lookup_decl_from_uid): Declare.
12524         (remove_decl_from_map): Likewise.
12525         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12526         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12527         (decl_for_uid_map): New global hashtable mapping DECL_UID
12528         to the decl tree.
12529         (init_ttree): Allocate it.
12530         (insert_decl_to_uid_decl_map): New helper function.
12531         (make_node_stat): Insert new decls into the map.
12532         (copy_node_stat): Likewise.
12533         (lookup_decl_from_uid): New function.
12534         (remove_decl_from_map): Likewise.
12535         (print_decl_for_uid_map_statistics): New helper.
12536         (dump_tree_statistics): Call it.
12538         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12539         (referenced_var_iterator): Adjust.
12540         (FOR_EACH_REFERENCED_VAR): Adjust.
12541         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12542         (num_referenced_vars): Adjust.
12543         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12544         (first_referenced_var): Remove.
12545         (end_referenced_vars_p): Likewise.
12546         (next_referenced_var): Likewise.
12547         (referenced_var_iterator_set): New helper function.
12548         * tree-dfa.c (referenced_var_lookup): Adjust.
12549         (referenced_var_check_and_insert): Likewise.
12550         (remove_referenced_var): Likewise.
12551         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12552         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12553         (verify_call_clobbering): Likewise.
12554         (verify_memory_partitions): Likewise.
12555         (init_tree_ssa): Allocate bitmap instead of hashtable for
12556         referenced_vars.
12557         (delete_tree_ssa): Adjust.
12558         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12559         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12560         (compute_tag_properties): Likewise.
12561         (set_initial_properties): Likewise.
12562         (find_partition_for): Likewise.
12563         (update_reference_counts): Likewise.
12564         (dump_may_aliases_for): Likewise.
12565         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12566         (add_call_clobber_ops): Likewise.
12567         (add_call_read_ops): Likewise.
12568         (get_asm_expr_operands): Likewise.
12569         * tree-into-ssa.c (dump_decl_set): Likewise.
12570         (update_ssa): Likewise.
12571         * tree-sra.c (scan_function): Likewise.
12572         (decide_instantiations): Likewise.
12573         (scalarize_parms): Likewise.
12574         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12575         (dsa_named_for): Likewise.
12576         * tree-ssa-structalias.c (update_alias_info): Likewise.
12577         (merge_smts_into): Likewise.
12579 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12581         PR 34351
12582         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12583         * c-opts.c (c_common_handle_option): Wall enables
12584         Wvolatile-register-var.
12585         * common.opt: Move Wvolatile-register-var to...
12586         * c.opt: ...here.
12587         
12588 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12590         * common.opt (Wlarger-than=): New.
12591         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12592         -Wlarger-than=.
12593         * opts.c (common_handle_option): Handle -Wlarger-than=.
12594         * optc-gen.awk: Likewise.
12595         * opth-gen.awk: Likewise.
12596         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12597         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12598         
12599 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12601         * c-common.c (match_case_to_enum_1): Add appropriate
12602         OPT_W* parameter to warning.
12603         (c_do_switch_warnings): Likewise.
12604         * c-typeck.c (warning_init): Add one more parameter following
12605         'warning' function.
12606         (push_init_level): Update call to warning_init.
12607         (pop_init_level): Likewise.
12608         (add_pending_init): Likewise.
12609         (output_init_element: Likewise.
12611 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12613         PR 28322
12614         * toplev.c (toplev_main): If there are warnings or error, print
12615         errors for ignored options.
12616         * opts.c (ignored_options): New static variable.
12617         (postpone_unknown_option_error): New.
12618         (print_ignored_options): New.
12619         (handle_option): Postpone errors for unknown -Wno-* options.
12620         * opts.h (print_ignored_options): Declare.
12621         
12622 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12624         * config/mips/mips.md (loadgp_blockage, blockage): Change type
12625         to "ghost".
12627 2008-02-25  Richard Guenther  <rguenther@suse.de>
12629         Revert:
12630         2008-02-25  Richard Guenther  <rguenther@suse.de>
12632         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12633         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12634         (lookup_decl_from_uid): Declare.
12635         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12636         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12637         (decl_for_uid_map): New global hashtable mapping DECL_UID
12638         to the decl tree.
12639         (init_ttree): Allocate it.
12640         (insert_decl_to_uid_decl_map): New helper function.
12641         (make_node_stat): Insert new decls into the map.
12642         (copy_node_stat): Likewise.
12643         (lookup_decl_from_uid): New function.
12644         (print_decl_for_uid_map_statistics): New helper.
12645         (dump_tree_statistics): Call it.
12647         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12648         (referenced_var_iterator): Adjust.
12649         (FOR_EACH_REFERENCED_VAR): Adjust.
12650         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12651         (num_referenced_vars): Adjust.
12652         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12653         (first_referenced_var): Remove.
12654         (end_referenced_vars_p): Likewise.
12655         (next_referenced_var): Likewise.
12656         (referenced_var_iterator_set): New helper function.
12657         * tree-dfa.c (referenced_var_lookup): Adjust.
12658         (referenced_var_check_and_insert): Likewise.
12659         (remove_referenced_var): Likewise.
12660         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12661         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12662         (verify_call_clobbering): Likewise.
12663         (verify_memory_partitions): Likewise.
12664         (init_tree_ssa): Allocate bitmap instead of hashtable for
12665         referenced_vars.
12666         (delete_tree_ssa): Adjust.
12667         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12668         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12669         (compute_tag_properties): Likewise.
12670         (set_initial_properties): Likewise.
12671         (find_partition_for): Likewise.
12672         (update_reference_counts): Likewise.
12673         (dump_may_aliases_for): Likewise.
12674         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12675         (add_call_clobber_ops): Likewise.
12676         (add_call_read_ops): Likewise.
12677         (get_asm_expr_operands): Likewise.
12678         * tree-into-ssa.c (dump_decl_set): Likewise.
12679         (update_ssa): Likewise.
12680         * tree-sra.c (scan_function): Likewise.
12681         (decide_instantiations): Likewise.
12682         (scalarize_parms): Likewise.
12683         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12684         (dsa_named_for): Likewise.
12685         * tree-ssa-structalias.c (update_alias_info): Likewise.
12686         (merge_smts_into): Likewise.
12688 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12690         PR fortran/29549
12691         * doc/invoke.texi (-fcx-limited-range): Document new option.
12692         * toplev.c (process_options): Handle -fcx-fortran-rules.
12693         * common.opt: Add documentation for -fcx-fortran-rules.
12695 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12697         PR c/35162
12698         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12699         actual behaviour and C99.
12700         
12701 2008-02-26  Ben Elliston  <bje@au.ibm.com>
12703         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12704         (ASM_CPU_POWER6_SPEC): Likewise.
12705         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12706         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12707         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12709 2008-02-25  Richard Guenther  <rguenther@suse.de>
12711         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12712         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12713         (lookup_decl_from_uid): Declare.
12714         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12715         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12716         (decl_for_uid_map): New global hashtable mapping DECL_UID
12717         to the decl tree.
12718         (init_ttree): Allocate it.
12719         (insert_decl_to_uid_decl_map): New helper function.
12720         (make_node_stat): Insert new decls into the map.
12721         (copy_node_stat): Likewise.
12722         (lookup_decl_from_uid): New function.
12723         (print_decl_for_uid_map_statistics): New helper.
12724         (dump_tree_statistics): Call it.
12726         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12727         (referenced_var_iterator): Adjust.
12728         (FOR_EACH_REFERENCED_VAR): Adjust.
12729         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12730         (num_referenced_vars): Adjust.
12731         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12732         (first_referenced_var): Remove.
12733         (end_referenced_vars_p): Likewise.
12734         (next_referenced_var): Likewise.
12735         (referenced_var_iterator_set): New helper function.
12736         * tree-dfa.c (referenced_var_lookup): Adjust.
12737         (referenced_var_check_and_insert): Likewise.
12738         (remove_referenced_var): Likewise.
12739         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12740         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12741         (verify_call_clobbering): Likewise.
12742         (verify_memory_partitions): Likewise.
12743         (init_tree_ssa): Allocate bitmap instead of hashtable for
12744         referenced_vars.
12745         (delete_tree_ssa): Adjust.
12746         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12747         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12748         (compute_tag_properties): Likewise.
12749         (set_initial_properties): Likewise.
12750         (find_partition_for): Likewise.
12751         (update_reference_counts): Likewise.
12752         (dump_may_aliases_for): Likewise.
12753         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12754         (add_call_clobber_ops): Likewise.
12755         (add_call_read_ops): Likewise.
12756         (get_asm_expr_operands): Likewise.
12757         * tree-into-ssa.c (dump_decl_set): Likewise.
12758         (update_ssa): Likewise.
12759         * tree-sra.c (scan_function): Likewise.
12760         (decide_instantiations): Likewise.
12761         (scalarize_parms): Likewise.
12762         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12763         (dsa_named_for): Likewise.
12764         * tree-ssa-structalias.c (update_alias_info): Likewise.
12765         (merge_smts_into): Likewise.
12767 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
12769         PR target/35258
12770         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12771         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12772         * alias.h (nonoverlapping_memrefs_p): Likewise.
12774 2008-02-25  Jan Beulich  <jbeulich@novell.com>
12776         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12777         * config/i386/netware-libgcc.exp: Add __bswap?i2,
12778         __emultls_get_address, __emultls_register_common,
12779         __floatundi?f, and _Unwind_GetIPInfo.
12780         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12781         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12782         (gen_regparm_prefix): Likewise.
12783         (i386_nlm_encode_section_info): Sync with
12784         config/i386/winnt.c:i386_pe_encode_section_info().
12785         (i386_nlm_maybe_mangle_decl_assembler_name): New.
12786         i386_nlm_mangle_decl_assembler_name): New.
12787         (netware_override_options): New.
12788         * config/i386/netware.h (netware_override_options): Declare.
12789         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12790         (i386_nlm_mangle_decl_assembler_name): Declare.
12791         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12793 2008-02-25  Ben Elliston  <bje@au.ibm.com>
12795         PR other/32948
12796         * c-decl.c (grokdeclarator): Remove unused local variables
12797         `typedef_type' and `type_as_written'.
12798         * bb-reorder.c
12799         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12800         unused local variable `has_hot_blocks'.
12801         (fix_crossing_conditional_branches): Remove unused local variable
12802         `prev_bb'.
12803         
12804 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
12806         PR middle-end/19984
12807         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12808         using DEF_C99_BUILTIN.
12809         (BUILT_IN_NANF): Ditto.
12810         (BUILT_IN_NANL): Ditto.
12812 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
12813             Revital Eres  <eres@il.ibm.com>
12815         * modulo-sched.c (calculate_must_precede_follow): Address TODO
12816         regarding the order of two dependent insns in the same row.
12818 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12820         * stor-layout.c (layout_decl): Do not bump the alignment of a
12821         bit-field to more than byte alignment if it is packed.
12823 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
12825         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
12826         e300c2 and e300c3.
12828 2008-02-24  Diego Novillo  <dnovillo@google.com>
12830         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
12832         PR 33738
12833         * tree-vrp.c (vrp_evaluate_conditional): With
12834         -Wtype-limits, emit a warning when comparing against a
12835         constant outside the natural range of OP0's type.
12836         * c.opt (Wtype-limits): Move ...
12837         * common.opt (Wtype-limits): ... here.
12839 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
12841         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
12842         * config/rs6000/e300c2c3.md: New file.
12843         * config/rs6000/rs6000.c (processor_costs): Add new costs for
12844         e300c2 and e300c3.
12845         (rs6000_override_options): Add e300c2 and e300c3 cases to
12846         processor_target_table. Do not allow usage of Altivec or Spe
12847         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
12848         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
12849         * config/rs6000/rs6000.h (processor_type): Add
12850         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
12851         (ASM_CPU_SPEC): Add e300c2 and e300c3.
12852         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
12853         and ppce300c3. Include e300c2c3.md.
12855 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
12857         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
12858         instead of TARGET_STRICT_ALIGN.
12860 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
12862         * explow.c (memory_address): Assert that the generated address is
12863         valid.
12865 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12867         PR target/25477
12868         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
12869         * config/darwin-ppc-ldouble-patch.def: New file.
12870         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
12871         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
12872         SUBTARGET_INIT_BUILTINS if defined.
12873         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
12874         New functions.
12876 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12878         PR rtl-opt/33512
12879         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
12880         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
12882 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12884         PR pch/35027
12885         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
12886         file" warning condtional on -Winvalid-PCH.
12888 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
12890         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
12892 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
12894         PR target/22076
12895         PR target/34256 
12896         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
12897         prevent reload from using MMX registers.
12898         (*mov<mode>_internal): Ditto.
12899         (*movv2sf_internal_rex64): Ditto.
12900         (*movv2sf_internal): Ditto.
12902 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12904         PR documentation/31569
12905         * doc/install.texi2html: Use makeinfo --no-number-sections.
12907 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12909         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
12910         ensure that we can address an entire entity > 8 bytes.  Don't
12911         generate reg+reg addressing for such data.
12913 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12915         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
12916         strings when optimizing for size, unless the target cares about
12917         alignment.
12919 2008-02-22  Tom Tromey  <tromey@redhat.com>
12921         * regclass.c (current_pass): Remove declaration.
12923 2008-02-22  Anatoly Sokolov <aesok@post.ru>
12925         * config/avr/libgcc.S (__RAMPZ__): Define.
12926         (__do_copy_data): Add for devices with 128KB code memory.
12928 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12930         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12931         Use spe_abi.
12932         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12934 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
12936         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
12937         GENNONACR_REGS.
12939 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12941         PR c/19999
12942         * c-typeck.c (build_binary_op): Warn about floating point
12943         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
12945 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
12947         PR target/34526
12948         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
12949         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
12950         add vrsave.
12951         (rs6000_override_options): Set altivec_abi as default, not override,
12952         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
12953         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
12954         is used; use new member spe_abi.
12955         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
12956         spe_abi and altivec_abi.
12958 2008-02-22  Tomas Bily  <tbily@suse.cz>
12960         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
12962 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12964         PR bootstrap/35273
12965         * config.build (build_file_translate): Set to `CMD //c' only if
12966         it works.
12967         * Makefile.in (build_file_translate): Improve comment.
12969 2008-02-21  Jan Hubicka  <jh@suse.cz>
12971         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
12972         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
12973         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
12975 2008-02-21  Michael Matz  <matz@suse.de>
12977         PR target/35264
12978         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
12980 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
12982         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
12983         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
12984         as insn constraint.
12985         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
12986         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
12987         SSE_VEC_FLOAT_MODE_P as insn constraint.
12988         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
12989         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
12990         sse4a_movntdf using MODEF mode iterator.
12991         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
12992         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
12993         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
12994         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
12995         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
12996         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
12997         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
12999 2008-02-21  Richard Guenther  <rguenther@suse.de>
13001         * tree.def (PAREN_EXPR): New tree code.
13002         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13003         and PAREN_EXPR.
13004         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13005         * expr.c (expand_expr_real_1): Likewise.
13006         * tree-inline.c (estimate_num_insns_1): Likewise.
13007         * tree-complex.c (expand_complex_move): Likewise.
13008         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13009         as plain x.
13011 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13013         PR target/35225
13014         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13016 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13018         PR target/35190
13019         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13021         * config/sh/sh.c (find_barrier): Don't go past
13022         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13024 2008-02-20  DJ Delorie  <dj@redhat.com>
13026         * config/h8300/h8300.md (insv): Force source operand to be a register.
13028         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13029         as a jump, not as a plain insn.
13030         
13031 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
13033         * doc/invoke.texi (Warning Options): Add new option
13034         -Wframe-larger-than=.
13035         (-Wframe-larger-than): Document.
13037         * flags.h (warn_frame_larger_than, frame_larger_than_size):
13038         Add declarations for new option variables.
13040         * final.c (final_start_function): Check the frame size
13041         before emission and issue a Wframe-larger-than warning.
13043         * opts.c (warn_frame_larger_than, frame_larger_than_size):
13044         Add definitions for new option variables.
13045         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13047         * common.opt (Wframe-larger-than=): New option.
13049 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13051         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13052         (<sse>_div<mode>3): Ditto.
13053         (<sse>_vmdiv<mode>3): Ditto.
13054         (<sse>_vmsqrt<mode>2): Ditto.
13055         (*smax<mode>3): Ditto.
13056         (sse5_frcz<mode>2): Ditto.
13057         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
13058         as insn constraint.
13060 2008-02-20  Richard Guenther  <rguenther@suse.de>
13062         PR middle-end/35265
13063         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13064         be happy with INTEGRAL_TYPE_P.
13066 2008-02-20  Richard Guenther  <rguenther@suse.de>
13068         * fold-const.c (split_tree): Associate floatig-point expressions
13069         if flag_associative_math is set.
13071 2008-02-20  Richard Guenther  <rguenther@suse.de>
13073         * tree.h (fold_real_zero_addition_p): Declare.
13074         * fold-const.c (fold_real_zero_addition_p): Export.
13075         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13076         floating-point operations with zero and one.
13078 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
13080         * doc/install.texi: Correct references to CFLAGS, replacing them
13081         with BOOT_CFLAGS.  Document flags used during bootstrap for
13082         target libraries.
13083                                 
13084 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13086         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13087         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13088         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13089         insn constraint.
13090         (smin<mode>3): Ditto from similar patterns.
13091         (smax<mode>3): Ditto.
13092         (*ieee_smin<mode>3): Ditto.
13093         (*ieee_smax<mode>3): Ditto.
13094         * config/i386/sse.md (sse): New mode attribute.
13095         (mov<mode>): Macroize expander from movv4sf and movv2df using
13096         SSEMODEF2P mode iterator.
13097         (<sse>_movnt<mode>): Ditto from similar patterns. Use
13098         SSE_VEC_FLOAT_MODE_P as insn constraint.
13099         (storent<mode>): Ditto.
13100         (storent<mode>): Macroize expander from storentsf and storentdf using
13101         MODEF mode iterator.
13102         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13103         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13104         (abs<mode>2): Ditto from similar patterns.
13105         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13106         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13107         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13108         (<sse>_vmsqrt<mode>2): Ditto.
13109         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13110         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13111         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13112         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13113         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13114         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13115         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13116         insn constraint.
13117         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13118         iterator and SSE_FLOAT_MODE_P as insn constraint.
13119         (<sse>_ucomi): Ditto from similar patterns.
13120         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13121         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13122         SSE_VEC_FLOAT_MODE_P as insn constraint.
13123         (vcond<mode>): Ditto from similar patterns.
13124         (and<mode>3, *and<mode>3): Ditto.
13125         (<sse>_nand<mode>3): Ditto.
13126         (ior<mode>3, *ior<mode>3): Ditto.
13127         (xor<mode>3, *xor<mode>3): Ditto.
13128         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13129         iterator and SSE_FLOAT_MODE_P as insn constraint.
13130         (*nand<mode>3): Ditto from similar patterns.
13131         (*ior<mode>3): Ditto.
13132         (*xor<mode>3): Ditto.
13134 2008-02-20  Ira Rosen  <irar@il.ibm.com>
13136         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13137         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13138         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13140 2008-02-19  Jan Hubicka  <jh@suse.cz>
13142         * predict.c (tree_bb_level_predictions): Remove variable next
13143         mistakely introduced by previous commit.
13145 2008-02-19  Jan Hubicka  <jh@suse.cz>
13147         * predict.c (predict_paths_leading_to): Rewrite.
13148         (predict_paths_for_bb): New.
13149         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13151 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13153         PR bootstrap/35218
13154         * Makefile.in (build_file_translate): New.
13155         (gcc-vers.texi): Use it for translating $(abs_srcdir).
13156         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13157         * configure.ac (build_file_translate): Substitute it.
13158         * configure: Regenerate.
13160 2008-02-19  Jan Hubicka  <jh@suse.cz>
13162         PR rtl-optimization/34408
13163         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13164         invalid sharing.
13166 2008-02-19  Jan Hubicka  <jh@suse.cz>
13168         PR middle-end/28779
13169         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13170         call_expr.
13172 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13174         PR Ada/35186
13175         * config/i386/i386-modes.def: Revert the last DI alignment
13176         change until Ada people can look into it.
13178 2008-02-19  Nick Clifton  <nickc@redhat.com>
13180         * opts.c (print_specific_help): Fix typo in --help text.
13182 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
13184         PR target/35239
13185         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13186         32-bit inline asm without asm alternatives for host GCC < 3.0.
13188 2008-02-19  Richard Guenther  <rguenther@suse.de>
13190         PR tree-optimization/34989
13191         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13192         Allow propagation to INDIRECT_REF if we can simplify only.
13194 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13196         * c-common.c (warn_for_collisions_1): Use appropriate option when
13197         warning.
13199 2008-02-19  Nick Clifton  <nickc@redhat.com>
13201         PR other/31349
13202         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13203         (handle_options): Fix indentation.
13204         (print_filtered_help): If no language-specific options were
13205         displayed tell the user how to list all the options supported by
13206         the language's front-end.
13207         (print_specific_help): Fix indentation and remove duplicate line.
13208         (common_handle_option): Handle the -v option.
13209         For --help enable the display of undocumented options if the -v
13210         switch has been included on the command line.
13211         For --help= check for overlaps in the arguments between the option
13212         classes and the language names and issue a warning when they
13213         cannot be disambiguated.
13214         * c.opt (v): Pass on to the common option handler.
13216 2008-02-19  Revital Eres  <eres@il.ibm.com> 
13218         * modulo-sched.c (sms_schedule): Change dump message when
13219         create_ddg function fails.
13220         (try_scheduling_node_in_cycle): Rename row to cycle.
13221         (print_partial_schedule): Rename CYCLE to ROW.
13223 2008-02-19  Christian Bruel  <christian.bruel@st.com>
13224             Zdenek Dvorak  <ook@ucw.cz>
13226         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13228 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13230         PR target/33555
13231         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13232         (*x86_movdicc_0_m1_se): Ditto.
13234 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13236         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13237         (CMPtype): Define as __gcc_CMPtype.
13238         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13239         (CMPtype): Define as __gcc_CMPtype.
13241 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
13243         Support valgrind 3.3 for --enable-checking=valgrind.
13244         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13245         here.
13246         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13247         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13248         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13249         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13250         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13251         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13252         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13253         respectively.
13254         * ggc-zone.c: Similar.
13255         * ggc-page.c: Similar.
13257 2008-02-19  Paul Brook  <paul@codesourcery.com>
13259         PR target/35071
13260         * config/arm/ieee754-df.S: Fix do_it typo.
13261         * config/arm/ieee754-sf.S: Fix do_it typo.
13263 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13265         PR target/35189
13266         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13267         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13268         (OPTION_MASK_ISA_SSE_SET): Likewise.
13269         (OPTION_MASK_ISA_SSE2_SET): Likewise.
13270         (OPTION_MASK_ISA_SSE3_SET): Likewise.
13271         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13272         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13273         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13274         (OPTION_MASK_ISA_SSE4_SET): Likewise.
13275         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13276         (OPTION_MASK_ISA_SSE5_SET): Likewise.
13277         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13278         (OPTION_MASK_ISA_MMX_UNSET): Updated.
13279         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13280         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13281         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13282         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13283         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13284         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13285         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13286         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13287         (OPTION_MASK_ISA_SSE4): Removed.
13288         (ix86_handle_option): Turn on bits in ix86_isa_flags and
13289         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13290         (override_options): Don't turn on implied SSE/MMX bits in
13291         ix86_isa_flags.
13293 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13295         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13296         32bit host.
13298 2008-02-18  Joey Ye  <joey.ye@intel.com>
13300         PR middle-end/34921
13301         * tree-nested.c (insert_field_into_struct): Set type alignment
13302         to field alignment if the former is less than the latter.
13304 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
13306         * BASE-VER: Set to 4.4.0.
13308 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13310         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13311         * doc/cfg.texi: Likewise.
13312         * doc/extend.texi: Likewise.
13313         * doc/gty.texi: Likewise.
13314         * doc/invoke.texi: Likewise.
13315         * doc/loop.texi: Likewise.
13316         * doc/md.texi: Likewise.
13317         * doc/passes.texi: Likewise.
13318         * doc/rtl.texi: Likewise.
13319         * doc/sourcebuild.texi: Likewise.
13320         * doc/tm.texi: Likewise.
13321         * doc/tree-ssa.texi: Likewise.
13323 2008-02-17  Richard Guenther  <rguenther@suse.de>
13325         PR middle-end/35227
13326         * tree-complex.c (init_parameter_lattice_values): Handle parameters
13327         without default definition.
13329 2008-02-17  Richard Guenther  <rguenther@suse.de>
13331         PR tree-optimization/35231
13332         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13333         if A | B != 1.
13335 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
13337         Revert:
13338         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
13339         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13340         libgcc_cmp_return mode.
13342 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13344         PR c/28368
13345         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13347 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
13349         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13350         multilibs.
13352 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13354         * doc/c-tree.texi: Use `@.' where appropriate.
13355         * doc/extend.texi: Likewise.
13356         * doc/install.texi: Likewise.
13357         * doc/invoke.texi: Likewise.
13358         * doc/loop.texi: Likewise.
13359         * doc/makefile.texi: Likewise.
13360         * doc/md.texi: Likewise.
13361         * doc/passes.texi: Likewise.
13362         * doc/standards.texi: Likewise.
13363         * doc/tm.texi: Likewise.
13365 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13367         PR middle-end/35196
13368         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13369         in entry_bb.
13370         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13371         rather than in entry_bb.
13373 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13375         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13376         libgcc_cmp_return mode.
13378 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13380         PR middle-end/35130
13381         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13382         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13384 2008-02-15  Richard Guenther  <rguenther@suse.de>
13385             Zdenek Dvorak  <ook@ucw.cz>
13387         PR tree-optimization/35164
13388         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13389         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13390         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13391         Only propagate addresses which do not have abnormal SSA_NAMEs
13392         in their operands.
13394 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
13396         PR target/35088
13397         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13399 2008-02-15  Jan Hubicka  <jh@suse.cz>
13401         PR middle-end/35149
13402         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13404 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13406         PR middle-end/34621
13407         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13408         when calculating alignment_pad.
13410 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13412         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13413         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13414         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13415         and STACK_BOUNDARY define.
13417 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
13419         PR preprocessor/35061
13420         * c-pragma.c (handle_pragma_pop_macro): Check that
13421         pushed_macro_table has been allocated.
13423 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13425         PR middle-end/35136
13426         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13427         (force_gimple_operand): Likewise.
13428         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13429         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13430         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13431         (find_interesting_uses_address): Check addressability and alignment
13432         of the base expression only after substituting bases of IVs into it.
13434 2008-02-14  Michael Matz  <matz@suse.de>
13436         PR target/34930
13437         * function.c (instantiate_virtual_regs_in_insn): Reload address
13438         before falling back to reloading the whole operand.
13440 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13442         * config/s390/s390.c (s390_mainpool_start): Emit the pool
13443         before the first section switch note.
13445 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13447         * doc/bugreport.texi: Update copyright years.
13448         * doc/c-tree.texi: Likewise.
13449         * doc/cfg.texi: Likewise.
13450         * doc/cpp.texi: Likewise.
13451         * doc/cppinternals.texi: Likewise.
13452         * doc/fragments.texi: Likewise.
13453         * doc/frontends.texi: Likewise.
13454         * doc/gcc.texi: Likewise.
13455         * doc/gty.texi: Likewise.
13456         * doc/hostconfig.texi: Likewise.
13457         * doc/implement-c.texi: Likewise.
13458         * doc/libgcc.texi: Likewise.
13459         * doc/loop.texi: Likewise.
13460         * doc/makefile.texi: Likewise.
13461         * doc/options.texi: Likewise.
13462         * doc/passes.texi: Likewise.
13463         * doc/rtl.texi: Likewise.
13464         * doc/sourcebuild.texi: Likewise.
13465         * doc/standards.texi: Likewise.
13466         * doc/tree-ssa.texi: Likewise.
13467         * doc/trouble.texi: Likewise.
13469         * doc/extend.texi: Use @: or add comma where appropriate.
13470         * doc/invoke.texi: Likewise.
13471         * doc/tm.texi: Likewise.
13473 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
13475         PR target/34393
13476         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13477         to a reg.
13479 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
13481         * doc/md.texi (clz, ctz): Add reference.
13482         * doc/rtl.texi (clz, ctz): Likewise.
13484 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13486         PR other/35148
13487         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13488         srcdir.
13490 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
13492         * config/s390/s390.c (struct constant_pool): New field
13493         emit_pool_after added.
13494         (s390_mainpool_start): Set the emit_pool_after flag according
13495         to the section switch notes.
13496         (s390_mainpool_finish): Consider emit_pool_after when emitting
13497         the literal pool at the end of the function.
13498         (s390_chunkify_start): Force literal pool splits at section
13499         switch notes.
13501 2008-02-13  Michael Matz  <matz@suse.de>
13503         PR debug/35065
13504         * var-tracking.c (clobber_variable_part): Correctly traverse the
13505         list.
13507 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13509         PR 29673
13510         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13511         Add -fdump-ipa-inline.
13512         * tree-dump.c (dump_files): Remove tree-inlined dump.
13513         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13514         
13515 2008-02-12  Richard Guenther  <rguenther@suse.de>
13517         PR tree-optimization/35171
13518         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13519         default defs.
13521 2008-02-12  Richard Guenther  <rguenther@suse.de>
13523         PR middle-end/35163
13524         * fold-const.c (fold_widened_comparison): Use get_unwidened in
13525         value-preserving mode.  Disallow final truncation.
13527 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13529         PR middle-end/35136
13530         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13531         code from here to...
13532         (force_gimple_operand): ...here.
13534 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
13536         PR c++/35144
13537         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13538         non-compatible pointers.
13539         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13540         different FIELD_DECLs, try harder by comparing field offsets, sizes
13541         and types.
13543         PR inline-asm/35160
13544         * function.c (match_asm_constraints_1): Don't replace the same input
13545         multiple times.
13547 2008-02-12  Anatoly Sokolov <aesok@post.ru>
13549         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13550         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13551         (expand_epilogue): Restore RAMPZ register.
13552         * config/avr/avr.md (RAMPZ_ADDR): New constant.
13554 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
13556         * config/i386/cygwin.asm: (__alloca): Correct calling
13557         convention and alignment.
13558         (__chkstk): Force 8 byte stack alignment.
13560 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
13561             Richard Guenther  <rguenther@suse.de>
13563         PR tree-optimization/33992
13564         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13565         the zero we compare against.
13567 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
13569         PR libfortran/35063
13570         * gthr-win32.h (__gthread_mutex_destroy_function): New function
13571         to CloseHandle after unlocking to prevent accumulation of handle
13572         count.
13574 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13576         PR middle_end/34150
13577         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13578         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
13579         and update LABEL_NUSES during and after reload.
13581 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13583         PR middle-end/34627
13584         * combine.c (simplify_if_then_else): Make sure the comparison is
13585         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13587 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13589         PR bootstrap/35051
13590         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13591         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13592         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13593         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13594         * tree.h (get_type_static_bounds): Likewise.
13596 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13598         * doc/invoke.texi (Option Summary, C++ Dialect Options)
13599         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13600         Make -Wfoo language annotations match what the compiler outputs.
13602 2008-02-08  Sa Liu  <saliu@de.ibm.com>
13604         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
13605         intrinsics spu_convts, spu_convtu, spu_convtf.
13607 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
13609         * doc/extend.texi (Function Attributes) <noinline>: Mention
13610         asm ("") as method to keep calls.
13612 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13614         PR other/32754
13615         * doc/options.texi (Options): Replace references to opts.sh with
13616         optc-gen.awk.
13617         * opts-common.c: Likewise.
13618         * optc-gen.awk: Likewise.
13619         
13620 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13622         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13624 2008-02-07  Richard Henderson  <rth@redhat.com>
13626         PR rtl-opt/33410
13627         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13628         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
13629         funny mode.
13631 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
13633         PR tree-optimization/35085
13634         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13635         for operand entry oe2 in addition to operand entry oe3 in order to
13636         expose more opportunities for vectorizer sum reduction.
13638 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13640         PR other/35107
13641         * Makefile.in (LIBS): Remove $(GMPLIBS).
13642         (cc1-dummy, cc1): Add $(GMPLIBS).
13644 2008-02-06  Jan Hubicka  <jh@suse.cz>
13646         PR target/23322
13647         * i386.md (moddf_integer): Do not produce partial memory stalls for
13648         targets where it hurts.
13650 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
13652         PR target/35083
13653         * optabs.c (expand_float): Do not check for decimal modes when
13654         expanding unsigned integer through signed conversion.
13656 2008-02-06  Nick Clifton  <nickc@redhat.com>
13658         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13659         inside the clobber with a match_operand and duplicated operand
13660         number in the constraint.
13661         (ineqbranchsi): Delete redundant comment.
13663 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
13665         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
13666         builtin_define ("__USE_INIT_FINI__").
13667         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13668         -msx multilibs.
13669         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13671 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13673         PR documentation/30330
13674         * doc/invoke.texi (C++ Dialect Options)
13675         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13676         For each warning option -Wfoo that allows -Wno-foo, ensure both
13677         -Wfoo and -Wno-foo are listed in the option index.  Fix index
13678         entry of -Wswitch-default, index -Wnormalized= including the
13679         `=', and -Wlarger-than-@var{len} including @var{len}.
13681 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13683         * config/i386/i386.md (floatunssisf2): Use
13684         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13685         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13686         Macroize expander using MODEF mode iterator.
13688 2008-02-05  Diego Novillo  <dnovillo@google.com>
13690         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13692         PR 33738
13693         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13695 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13697         PR other/35070
13698         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13700 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
13702         PR target/35084
13703         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13704         to indicate if a message should be generated.
13705         (init_cumulative_args): Updated.
13706         (function_value_32): Likewise.
13708 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
13710         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13712 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13714         PR target/35083
13715         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13716         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13718 2008-02-04  Diego Novillo  <dnovillo@google.com>
13720         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13722         PR 33738
13723         * tree-vrp.c (vrp_evaluate_conditional): With
13724         -Wtype-limits, emit a warning when comparing against a
13725         constant outside the natural range of OP0's type.
13727 2008-02-04  Richard Guenther  <rguenther@suse.de>
13729         PR middle-end/33631
13730         * expr.c (count_type_elements): Give for unions instead of
13731         guessing.
13733 2008-02-04  Richard Guenther  <rguenther@suse.de>
13735         PR middle-end/35043
13736         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13737         to TYPE_DOMAINs base type instead of using bitsizetype here.
13739 2008-02-03  Jason Merrill  <jason@redhat.com>
13741         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13743 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13745         PR other/29972
13746         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13747         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13748         (RS/6000 and PowerPC Options): Fix typos and markup.
13749         * doc/passes.texi (Tree-SSA passes): Likewise.
13751 2008-02-02  Michael Matz  <matz@suse.de>
13753         PR target/35045
13754         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13755         from record_last_reg_set_info.
13756         (record_last_reg_set_info): Take an RTX argument, iterate over all
13757         constituent hardregs.
13758         (record_last_set_info, record_opr_changes): Change calls to
13759         new signature or to record_last_reg_set_info_regno.
13761 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13763         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13765 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
13767         PR rtl-optimization/34773
13768         * reg-notes.def (EQUAL): Mention significance of combination of
13769         REG_EQUAL and REG_RETVAL.
13770         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13771         insn that has a REG_RETVAL.
13773 2008-02-01  Roger Sayle  <roger@eyesopen.com>
13775         PR bootstrap/33781
13776         * configure.ac (--enable-fixed-point): Disable unless explicitly
13777         requested on IRIX.
13778         * configure: Regenerate.
13780 2008-02-01  Richard Guenther  <rguenther@suse.de>
13782         PR other/35042
13783         * invoke.texi (-finline-limit): Remove no longer true parts
13784         of the documentation.  Note that there is no default value.
13786 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
13787             Mark Mitchell  <mark@codesourcery.com>
13788             Ben Elliston  <bje@au.ibm.com>
13790         PR c/29326
13791         * doc/extend.texi (Other Builtins): Document.
13793 2008-01-31  Tom Browder <tom.browder@gmail.com>
13795         * doc/c-tree.texi (Types): Fix grammar.
13796         (Expression trees): Ditto.
13797         * doc/passes.texi (Tree-SSA passes): Ditto.
13798         
13799         * doc/configterms.texi (Configure Terms): Fix typo.
13800         * doc/cpp.texi (Common Predefined Macros): Ditto.
13801         * doc/md.texi (Machine Constraints): Ditto.
13802         
13803         * doc/makefile.texi (Makefile): Add comma.
13805 2008-01-31  Tom Browder  <tom.browder@gmail.com>
13806             Gerald Pfeifer  <gerald@pfeifer.com>
13807         
13808         * doc/sourcebuild.texi (Front End): Remove references to CVS
13809         and CVSROOT/modules.
13810         (Texinfo Manuals): Replace reference to CVS by one to SVN.
13811         (Back End): Remove reference to CVS.
13813 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13815         PR target/34900
13816         * config/mips/mips.c (gen_load_const_gp): New function, taking a
13817         comment from...
13818         (mips16_gp_pseudo_reg): ...here.
13819         * config/mips/mips.md (load_const_gp): Replace with...
13820         (load_const_gp_<mode>): ...this :P-based insn.
13822 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13824         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
13825         options. Minor fixes.
13826         (-std): Move reference to standards closer to where language
13827         standards are first mentioned.
13828         
13829 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13831         PR rtl-optimization/34995
13832         * reload.c (alternative_allows_const_pool_ref): Take an rtx
13833         parameter and return a bool.  If the rtx parameter is nonnull,
13834         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
13835         (find_reloads): Update call accordingly.  Pass the new operand
13836         if it needed no address reloads, otherwise pass null.
13838 2008-01-30  Richard Henderson  <rth@redhat.com>
13840         PR c/34993
13841         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
13842         for unbounded arrays.
13844 2008-01-30  Silvius Rus  <rus@google.com>
13846         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
13848 2008-01-30  Jan Hubicka  <jh@suse.cz>
13850         PR target/34982
13851         * i386.c (init_cumulative_args): Use real function declaration when
13852         calling locally.
13854 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
13856         PR rtl-optimization/34998
13857         * global.c (build_insn_chain): Treat non-subreg_lowpart
13858         SUBREGs of pseudos as clobbering all the words covered by the
13859         SUBREG, not just all the bytes.
13860         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
13861         original df_ref rather than an extract parameter.
13862         (global_conflicts): Update call accordingly.
13864 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
13866         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
13867         the overflow check to make it easier to read.
13868         (__fixtfdi): Change the type of the ll member in union
13869         long_double to UDItype_x.
13871 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
13873         PR middle-end/34969
13874         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
13875         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
13876         * tree-inline.c (fold_marked_statements): Call
13877         cgraph_update_edges_for_call_stmt if folding a call statement.
13878         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
13879         debug_generic_stmt calls, reset it back afterwards.
13881         PR c/35017
13882         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
13883         static decls.
13884         * c-typeck.c (build_external_ref): Don't pedwarn about
13885         static vars in current function's scope.
13887 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
13889         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
13891 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
13893         PR c/35002
13894         * ipa-struct-reorg.c: Fix spelling.
13895         * params.def: Ditto.
13897 2008-01-29  Richard Guenther  <rguenther@suse.de>
13899         PR middle-end/35006
13900         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
13901         field.
13902         * tree-inline.c (remap_type): Increment remapping_type_depth
13903         around remapping types.
13904         (copy_body_r): Only add referenced variables if they are referenced
13905         from code, not types.
13907 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
13909         PR c++/34055
13910         PR c++/34103
13911         PR c++/34219
13912         PR c++/34606
13913         PR c++/34753
13914         PR c++/34754
13915         PR c++/34755
13916         PR c++/34919
13917         PR c++/34961
13918         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
13919         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
13921 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
13923         PR target/34412
13924         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
13925         pointer for tiny stack.
13927 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13929         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
13931 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13933         * config/vx-common.h: Fix typo in comment.
13935 2008-01-28  Ian Lance Taylor  <iant@google.com>
13937         PR c++/34862
13938         PR c++/33407
13939         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13940         coalesce pointers if they have different DECL_NO_TBAA_P values.
13941         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
13942         between variables with different DECL_NO_TBAA_P values.
13944 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
13946         PR 31535
13947         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
13948         are not legitimate small data references on SPE targets.
13950 2008-01-28  David Daney  <ddaney@avtrex.com>
13952         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
13954 2008-01-28  David Daney  <ddaney@avtrex.com>
13956         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
13958 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
13960         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
13961         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
13962         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
13963         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
13964         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13965         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
13966         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
13967         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
13969 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13971         * basic-block.h (condjump_equiv_p): Fix comment.
13973 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13975         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
13976         print_generic_stmt_indented): Fix comment.
13978 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13980         * configure.ac (__stack_chk_fail): Add detecion for availability
13981         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
13982         * configure: Regenerate.
13984 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
13986         PR middle-end/34688
13987         * final.c (output_addr_const): Handle TRUNCATE.
13989 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
13991         PR target/34711
13992         * tree-ssa-loop-ivopts.c (comp_cost): New type.
13993         (zero_cost, infinite_cost): New constants.
13994         (struct cost_pair): Change type of cost to comp_cost.
13995         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
13996         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
13997         New functions.
13998         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
13999         split_address_cost, ptr_difference_cost, difference_cost,
14000         get_computation_cost_at, get_computation_cost,
14001         determine_use_iv_cost_generic, determine_use_iv_cost_address,
14002         determine_use_iv_cost_condition, determine_use_iv_costs,
14003         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14004         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14005         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14006         Change type of cost to comp_cost.
14007         (determine_iv_cost): Increase cost of non-original ivs, instead
14008         of decreasing the cost of original ones.
14009         (get_address_cost): Indicate the complexity of the addressing mode 
14010         in comp_cost.
14011         (try_add_cand_for): Prefer using ivs not specific to some object.
14012         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14014 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
14015             Janis Johnson  <janis187@us.ibm.com>
14017         PR target/34814
14018         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14019         (TARGET_INSTANTIATE_DECLS): Likewise.
14020         * target.h (expand_to_rtl_hook): New target hook.
14021         (instantiate_decls): Likewise.
14022         * function.c (instantiate_decl): Make non-static.  Rename to...
14023         (instantiate_decl_rtl): ... this.
14024         (instantiate_expr): Use instantiate_decl_rtl.
14025         (instantiate_decls_1): Likewise.
14026         (instantiate_decls): Likewise.
14027         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14028         * function.h (instantiate_decl_rtl): Add prototype.
14029         * cfgexpand.c (target.h): New include.
14030         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14031         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14032         (TARGET_INSTANTIATE_DECLS): Likewise.
14033         (TARGET_INITIALIZER): New target hooks added.
14034         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14035         New prototype.
14036         * config/rs6000/rs6000.c (tree-flow.h): New include.
14037         (machine_function): Add sdmode_stack_slot field.
14038         (rs6000_alloc_sdmode_stack_slot): New function.
14039         (rs6000_instantiate_decls): Likewise.
14040         (rs6000_secondary_memory_needed_rtx): Likewise.
14041         (rs6000_check_sdmode): Likewise.
14042         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14043         (TARGET_INSTANTIATE_DECLS): Likewise.
14044         (rs6000_hard_regno_mode_ok): Allow SDmode.
14045         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
14046         (rs6000_emit_move): Handle SDmode.
14047         (function_arg_advance): Likewise.
14048         (function_arg): Likewise.
14049         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
14050         SDmode var args for 32-bit compiles.
14051         (rs6000_secondary_reload_class): Handle SDmode.
14052         (rs6000_output_function_epilogue): Likewise.
14053         (rs6000_function_value): Simplify if statement.
14054         (rs6000_libcall_value): Likewise.
14055         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14056         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14057         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14058         (movsd_hardfloat): New define_insn.
14059         (movsd_softfloat): Likewise.
14060         (movsd_store): Likewise.
14061         (movsd_load): Likewise.
14062         (extendsddd2): Likewise.
14063         (extendsdtd2): Likewise.
14064         (truncddsd2): Likewise.
14065         (movdd_hardfloat64): Fixup comment.
14066         (UNSPEC_MOVSD_LOAD): New constant.
14067         (UNSPEC_MOVSD_STORE): Likewise.
14069 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
14071         PR c++/34965
14072         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14073         TRUTH_XOR_EXPR.
14074         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14075         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14076         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14077         and TRUTH_XOR_EXPR.
14079 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
14081         PR target/34794
14082         * config.gcc: Separate AIX 5.3 from AIX 6.1.
14083         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14084         __LONGDOUBLE128 too.
14085         * config/rs6000/aix61.h: New file.
14087 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14089         PR rtl-optimization/34959
14090         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14091         popcount and parity rtxes the same mode as their operand.
14092         Truncate or extend the result to the return value's mode
14093         if necessary.
14095 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14097         PR target/34981
14098         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14099         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14100         to GOT_VERSION_REGNUM.
14101         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14102         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14103         * config/mips/mips.c (mips_emit_call_insn): New function.
14104         (mips_call_tls_get_addr): Call mips_expand_call directly.
14105         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14106         emit_call_insn.
14107         (mips16_build_call_stub): Likewise.  Return the call insn or null.
14108         (mips_expand_call): Update the call to mips16_build_call_stub
14109         accordingly and a remove redundant condition.  Assert that MIPS16
14110         stubs do not use lazy binding.  Use mips_emit_call_insn and return
14111         the call insn.
14112         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14113         TARGET_USE_GOT.
14114         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14115         (mips_avoid_hazard): Remove hazard_set handling.
14116         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14117         (UNSPEC_RESTORE_GP): ...this.
14118         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14119         (FAKE_CALL_REGNO): Rename to...
14120         (GOT_VERSION_REGNUM): ...this.
14121         (type): Add "ghost" value.  Add an associated insn reservation.
14122         (hazard_set): Remove.
14123         (exception_receiver): Rename to...
14124         (restore_gp): ...this and update the unspec identifier accordingly.
14125         (exception_receiver, nonlocal_got_receiver): New expanders.
14126         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
14127         FAKE_CALL_REGNO.  Remove hazard_set attribute.
14128         (set_got_version, update_got_version): New patterns.
14130 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
14132         PR target/34970
14133         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14135 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14137         PR other/31955
14138         * doc/install.texi2html: Generate gcc-vers.texi.
14140 2008-01-25  DJ Delorie  <dj@redhat.com>
14142         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14144 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14146         * config/c4x: Remove directory.
14147         * config.gcc (crx-*, mt-*): Mark obsolete.
14148         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14149         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14150         sh-*-rtemscoff*): Remove cases.
14151         * defaults.h (C4X_FLOAT_FORMAT): Remove.
14152         * real.c (encode_c4x_single, decode_c4x_single,
14153         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14154         c4x_extended_format): Remove.
14155         * real.h (c4x_single_format, c4x_extended_format): Remove.
14156         * doc/extend.texi (interrupt, naked): Remove mention of attributes
14157         on C4x.
14158         (Pragmas): Remove comment about c4x pragmas.
14159         * doc/install.texi (c4x): Remove target-specific instructions.
14160         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14161         * doc/md.texi (Machine Constraints): Remove C4x documentation.
14162         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14163         refer to C4x source files as examples.
14164         (C4X_FLOAT_FORMAT): Remove documentation.
14166 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14168         * config/bfin/bfin.c (override_options): Reorder tests so that
14169         flag_pic gets enabled for -msep-data.
14171 2008-01-25  Richard Guenther  <rguenther@suse.de>
14173         PR middle-end/32244
14174         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14175         to its bitfield precision if required.
14177 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14179         PR middle-end/33880
14180         * tree-nested.c (walk_omp_for): New function.
14181         (convert_nonlocal_reference, convert_local_reference): Call
14182         walk_omp_for on OMP_FOR.
14183         (convert_call_expr): Call walk_body on OMP_FOR's
14184         OMP_FOR_PRE_INIT_BODY.
14186 2008-01-25  Richard Guenther  <rguenther@suse.de>
14188         PR tree-optimization/34966
14189         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14190         default defs and PHI_NODEs we have to insert after the
14191         defining statement.
14193 2008-01-24  Nick Clifton  <nickc@redhat.com>
14195         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14196         Provide a default definition.
14197         (LIBGCC2_UNITS_PER_WORD): Likewise.
14199         * config/stormy16/stormy16.c: Include df.h for the prototype
14200         for df_regs_ever_live_p.
14201         (xstormy16_expand_builtin_va_start): Convert the stack offset
14202         into a component_ref and then use POINTER_PLUS_EXPR to add it
14203         to the incoming_virtual_args_rtx.
14204         (xstormy16_gimplify_va_arg_expr): Rename to
14205         xstormy16_gimplify_va_arg_expr.
14206         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14207         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14208         xstormy16_gimplify_va_arg_expr.
14209         Fix up some formatting issues.
14211         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14212         Move to predicates.md.
14213         (xs_hi_general_operand): Likewise.
14214         (xs_hi_nonmemory_operand): Likewise.
14215         * config/stormy16/predicates.md:
14216         (xstormy16_carry_plus_operand): New predicate.
14217         (xs_hi_general_operand): New predicate.
14218         (xs_hi_nonmemory_operand): New predicate.
14219         * config/stormy16/stormy16-protos.h:
14220         (xstormy16_carry_plus_operand): Delete prototype.
14221         (xs_hi_general_operand): Likewise.
14222         (xs_hi_nonmemory_operand): Likewise.
14224         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14225         modifiers as they are no longer needed and they can trigger
14226         reload spill failures.
14228         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14229         with a match_operand in order to help reload.
14231         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14232         constraint with 'e' for the 8th alternative as this version of
14233         the mov.w instruction only accepts the lower 8 registers.
14235 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
14237         PR target/34856
14238         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14239         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14240         vector elements.
14242 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14244         PR middle-end/33333
14245         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14247 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14249         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14250         New functions.
14251         (remove_structure): Update allocations list before removing structure.
14252         
14253 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14255         * ipa-struct-reorg.c (is_safe_cond_expr, 
14256         create_new_stmts_for_cond_expr): Use integer_zerop function,
14257         that recognize not only zero-pointer, but zero-integer too.
14259 2008-01-25  Ben Elliston  <bje@au.ibm.com>
14261         PR other/22232
14262         * fixproto: Escape "." in sed expression that strips leading "./".
14264 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14266         PR driver/34904
14267         * gcc.c (SWITCH_OK): Removed.
14268         (SWITCH_LIVE): Changed to bit.
14269         (SWITCH_FALSE): Likewise.
14270         (SWITCH_IGNORE): Likewise.
14271         (switchstr): Change live_cond to unsigned int.
14272         (process_command): Replace SWITCH_OK with 0.
14273         (do_self_spec): Likewise.
14274         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14275         (give_switch): Likewise.
14276         (used_arg): Likewise.
14277         (do_spec_1): Set the SWITCH_IGNORE bit.
14278         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14279         bits.  Set the SWITCH_LIVE bit.
14281 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14283         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14285 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14287         PR tree-optimization/34472
14288         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14289         parameter to a "bool *" and set *DATA to false if there is
14290         an unsafe access.  Do not delete the structure here.
14291         (check_cond_exprs): Delete it here instead.
14292         (check_cond_exprs, exclude_cold_structs): Do not increase
14293         I when removing a structure.
14295 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
14297         PR target/34856
14298         * config/i386/i386.c (ix86_expand_vector_init): Consider only
14299         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14301 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
14303         PR middle-end/34934
14304         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14305         a fixed vector for stack.
14307 2008-01-24  Ben Elliston  <bje@au.ibm.com>
14309         PR c++/25701
14310         * doc/gcc.texi (Software development): Add a direntry for g++.
14311         
14312 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
14314         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14315         stale and straggling -fforce-addr comments above.
14317         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14318         define.
14319         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14320         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14322 2008-01-23  Michael Matz  <matz@suse.de>
14324         PR debug/34895
14325         * dwarf2out.c (force_type_die): Use modified_type_die instead of
14326         gen_type_die.
14328 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14330         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14331         malloc result type.
14333 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14335         * config/avr/avr.c (avr_current_arch): New variable.
14336         (avr_arch_types): Add 'avr31' and 'avr51' entries.
14337         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14338         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14339         (avr_override_options): Init 'avr_current_arch'. 
14340         (base_arch_s): Move from here...
14341         * config/avr/avr.h (base_arch_s): ... here. Add new members 
14342         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
14343         'mega' to 'have_jmp_call'.
14344         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
14345         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
14346         macros.
14347         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
14348         architectures.
14349         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
14350         MULTILIB_MATCHES): (Ditto.).
14352 2008-01-23  Richard Guenther  <rguenther@suse.de>
14354         PR middle-end/31529
14355         * cgraphunit.c (cgraph_reset_node): Always mark the node
14356         not reachable if it is not queued already.
14358 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14360         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14361         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14362         (cputype_selected): New static variable.
14363         (bfin_handle_option): Set it if -mcpu is used.
14364         (override_option): Select default set of workarounds if no cpu type
14365         selected on the command line.
14366         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14368         From  Michael Frysinger  <michael.frysinger@analog.com>
14369         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14370         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14372         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14373         for bf547, bf523, bf524, and bf526.
14374         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
14375         bf526.
14376         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14377         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14378         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14379         __ADSPBF547__ and __ADSPBF54x__ for bf547.
14380         * doc/invoke.texi (Blackfin Options): Document that
14381         -mcpu now accept bf547, bf523, bf524, and bf526.
14383 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14385         PR rtl-optimization/34628
14386         * combine.c (try_combine): Stop and undo after the first combination
14387         if an autoincrement side-effect on the first insn has effectively
14388         been lost.
14390 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
14392         PR target/34529
14393         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14394         Offset addresses are not valid for Altivec or paired float modes.
14396 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
14398         PR c++/34607
14399         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14400         if DECL_INITIAL (decl) is error_mark_node.
14402         PR c++/34914
14403         * c-common.c (handle_vector_size_attribute): Only allow
14404         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
14405         the same way as pointer, array etc. types.
14406         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14408         PR c++/34917
14409         * tree.c (build_type_attribute_qual_variant): Call
14410         build_qualified_type if attributes are equal, but quals are not.
14412 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14414         PR 32102
14415         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14416         * flags.h (warn_strict_aliasing): Remove.
14417         (warn_strict_overflow): Remove.
14418         * opts.c (warn_strict_aliasing): Remove.
14419         (warn_strict_overflow): Remove.
14420         * c-opts.c (c_common_handle_option): -Wall only sets
14421         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14422         (c_common_post_options): Give default values to -Wstrict-aliasing
14423         and -Wstrict-overflow if they are uninitialized.
14424         * common.opt (Wstrict-aliasing): Specify Var and Init.
14425         (Wstrict-overflow): Likewise.
14427 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14429         PR rtl-optimization/26854
14430         PR rtl-optimization/34400
14431         PR rtl-optimization/34884
14432         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14433         DF_RD->gen.
14434         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14435         (df_rd_bb_info.expanded_lr_out): Deleted
14436         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14437         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
14438         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14439         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14440         Removed code to allocate, initialize or free expanded_lr_out.
14441         (df_rd_bb_local_compute_process_def): Restructured to make more
14442         understandable.
14443         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14444         sets if the sets are being trimmed.
14446 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14448         PR bootstrap/32287
14449         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14450         (as_vers): Likewise.
14451         * configure: Regenerated.
14453 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14455         PR middle-end/33092
14456         * tree-pass.h (pass_build_alias): New pass.
14457         * tree-ssa-alias.c (gate_build_alias): New.
14458         (pass_build_alias): New.
14459         * passes.c (init_optimization_passes): Add pass_build_alias after
14460         pass_create_structure_vars.
14462 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
14464         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14465         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14466         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14467         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14468         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14469         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14470         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14471         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14472         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14473         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14474         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14475         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14476         * config/s390/s390.md (FP_ALL): New mode iterator.
14477         (_d): New mode attribute.
14478         ("*signbit<mode>2>"): Changed mode of first operand.
14479         ("isinf<mode>2"): Changed mode of first operand.
14480         ("*TDC_insn"): Adaptation for DFP modes.
14482 2008-01-22  Ben Elliston  <bje@au.ibm.com>
14484         * tree.c (check_qualified_type): Improve function description.
14486 2008-01-21  Jason Merrill  <jason@redhat.com>
14488         PR c++/34196
14489         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14490         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14491         if it is set.
14493 2008-01-21  DJ Delorie  <dj@redhat.com>
14495         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14496         return zero.
14498 2008-01-21  Richard Guenther  <rguenther@suse.de>
14500         PR middle-end/34856
14501         * tree-cfg.c (verify_expr): Allow all invariant expressions
14502         instead of just constant class ones as reference argument.
14503         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14504         like any other constant.
14505         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14507 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14509         * regmove.c (fixup_match_1): Update call crossed frequencies.
14511 2008-01-21  Richard Guenther  <rguenther@suse.de>
14513         PR c/34885
14514         * tree-inline.c (setup_one_parameter): Deal with mismatched
14515         types using a VIEW_CONVERT_EXPR.
14517 2008-01-21  Alon Dayan  <alond@il.ibm.com>
14518             Olga Golovanevsky  <olga@il.ibm.com>
14519         
14520         PR tree-optimization/34701
14521         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14522         when the structure size is not a power of 2.
14524 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14526         * doc/install.texi: Add doc for --enable-checking=df.
14527         
14528 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14530         PR rtl-optimization/34808
14531         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14533 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14535         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14536         input.
14538 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
14540         PR rtl-optimization/26854
14541         PR rtl-optimization/34400
14542         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14543         DF_RD->gen.
14544         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14545         (df_rd_bb_info.expanded_lr_out): New.
14546         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14547         * loop_iv.c (iv_analysis_loop_init): Ditto.
14548         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14549         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14550         Added code to allocate, initialize or free expanded_lr_out.
14551         (df_rd_bb_local_compute_process_def): Restructured to make
14552         more understandable.
14553         (df_rd_confluence_n): Add code to do nothing with fake edges and
14554         code to no apply invalidate_by_call sets if the sets are being trimmed.
14555         (df_lr_local_finalize): Renamed to df_lr_finalize.
14556         (df_live_local_finalize): Renamed to df_live_finalize.
14558 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14560         PR target/34831
14561         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14562         deciding whether to use reciprocal instructions.
14564 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
14566         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14567         dwarf2out_note_section_used if cold_text_section is NULL.
14569 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
14571         PR gcov-profile/34610
14572         * tree-cfg.c (make_edges): Mark both outgoing edges from
14573         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14574         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14575         from OMP_FOR and OMP_CONTINUE outgoing edges.
14577         * tree-profile.c (tree_profiling): Return early if
14578         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
14579         at the end.
14580         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14581         from cfun to child_cfun.
14582         * function.h (struct function): Add after_tree_profile bit.
14584 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14586         * config/avr/avr.S (_exit): Disable interrupt.
14588 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
14589             Steven Bosscher  <stevenb.gcc@gmail.com>
14591         PR rtl-optimization/26854
14592         PR rtl-optimization/34400
14593         * df-problems.c (df_live_scratch): New scratch bitmap.
14594         (df_live_alloc): Allocate df_live_scratch when doing df_live.
14595         (df_live_reset): Clear the proper bitmaps.
14596         (df_live_bb_local_compute): Only process the artificial defs once
14597         since the order is not important.
14598         (df_live_init): Init the df_live sets only with the variables
14599         found live by df_lr.
14600         (df_live_transfer_function): Use the df_lr sets to prune the
14601         df_live sets as they are being computed.  
14602         (df_live_free): Free df_live_scratch.
14604 2008-01-18  Ian Lance Taylor  <iant@google.com>
14606         * common.opt: Add fmerge-debug-strings.
14607         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14608         flag_merge_debug_strings rather than flag_merge_constants.
14609         * doc/invoke.texi (Option Summary): Mention
14610         -fmerge-debug-strings.
14611         (Debugging Options): Document -fmerge-debug-strings.
14613 2008-01-18  Ian Lance Taylor  <iant@google.com>
14615         PR c++/33407
14616         * tree.h (DECL_IS_OPERATOR_NEW): Define.
14617         (struct tree_function_decl): Add new field operator_new_flag.
14618         * tree-inline.c (expand_call_inline): When inlining a call to
14619         operator new, force the return value to go into a variable, and
14620         set DECL_NO_TBAA_P on that variable.
14621         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14623 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
14625         PR debug/34484
14626         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14627         DWARF2_DEBUGGING_INFO.
14628         (dwarf2out_note_section_used): Ditto.  Add prototype.
14629         (have_multiple_function_sections, text_section_used,
14630         cold_text_section_used, *cold_text_sections): Move declarations
14631         before their uses.
14633 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
14635         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14636         field and add signal_ra.
14637         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14638         assignments to frame state pc.  Move end of stack check after
14639         MD_FALLBACK_FRAME_STATE_FOR.
14640         (uw_update_context_1): Use frame state signal_regs if set, instead
14641         of checking signal_frame flag.
14642         (uw_update_context): Use frame state signal_ra if set.
14643         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14644         * config/xtensa/linux-unwind.h: New file.
14646 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
14648         * modulo-sched.c (get_sched_window): Fix comment typo.
14650 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
14652         PR tree-optimization/34648
14653         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14655 2008-01-17  Anatoly Sokolov <aesok@post.ru>
14657         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14658         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14660 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
14662         PR rtl-optimization/34400
14663         * df-core.c (df_worklist_dataflow_overeager,
14664         df_worklist_dataflow_doublequeue): New functions.
14665         (df_worklist_dataflow): Two different worklist solvers.
14666         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14667         New param.
14669 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14671         PR testsuite/34821
14672         * doc/invoke.texi: Document the dependence on pthread for fopenmp
14673         and ftree-parallelize-loops.
14675 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
14677         PR rtl-optimization/34826
14678         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14680 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14682         * global.c (find_reg): Mark the eh regs as used if necessary.
14683         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14684         * ra.h (struct allocno): no_eh_reg field added.  Changed
14685         no_stack_reg type to bitfield.
14687 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14689         * tree.c (substitute_in_expr): Add missing 'break'.
14691 2008-01-17  Richard Guenther  <rguenther@suse.de>
14693         PR tree-optimization/34825
14694         * tree-ssa-math-opts.c (is_division_by): Do not recognize
14695         x / x as division to handle.
14697 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14699         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14700         "-pthread" is specified.
14701         * pa-hpux11.h (LIB_SPEC): Likewise.
14703 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
14704             Peter Bergner  <bergner@vnet.ibm.com>
14706         PR rtl-optimization/33796
14707         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14709 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14711         PR libgfortran/34699
14712         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14713         static links.
14714         * pa-hpux10.h (LINK_SPEC): Likewise.
14715         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14717 2008-01-16  Richard Guenther  <rguenther@suse.de>
14719         PR middle-end/32628
14720         * fold-const.c (fold_convert_const_int_from_int): Do not
14721         set overflow if that occured only because of a sign extension
14722         change when converting from/to a sizetype with the same
14723         precision and signedness.
14725 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14727         PR debug/34249
14728         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14729         location address to the correct place.  Update copyright year.
14731 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14733         * lambda-code.c (lambda_transform_legal_p): Handle the case of
14734         no dependences in the dependence_relations vector.
14736 2008-01-16  Jan Hubicka  <jh@suse.cz>
14738         PR rtl-optimization/31396
14739         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14740         * cfg.c (dump_reg_info): Print it.
14741         * regs.h (struct reg_info_t): add freq_calls_crossed.
14742         (REG_FREQ_CALLS_CROSSED): New macro.
14743         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14744         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14745         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14746         regmove_optimize): Update call crossed frequencies.
14747         * local-alloc.c (struct qty): Add freq_calls_crossed.
14748         (alloc_qty): Copute freq_calls_crossed.
14749         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14750         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14751         * ra.h (struct allocno): Add freq_calls_crossed.
14753 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14755         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14756         libgomp when compiling with ftree-parallelize-loops.
14757         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14759 2008-01-16  Richard Guenther  <rguenther@suse.de>
14761         PR tree-optimization/34769
14762         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14763         * tree.c (int_cst_value): Instead make this function more
14764         permissive in what it accepts as valid input.  Document this
14765         function always sign-extends the value.
14767 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
14768             Richard Guenther  <rguenther@suse.de>
14770         PR c/34668
14771         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14772         (gimple_fold_indirect_ref_rhs): ... this.
14773         (gimple_fold_indirect_ref): New function with foldings
14774         that preserve lvalueness.
14775         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14776         * tree-flow.h (gimple_fold_indirect_ref): Declare.
14777         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14778         to fold an INDIRECT_REF, fall back to the old use of
14779         fold_indirect_ref_1.
14781 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14783         * tree-data-ref.c (subscript_dependence_tester_1): Call 
14784         free_conflict_function.
14785         (compute_self_dependence): Same.
14787 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14789         PR debug/34249
14790         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14791         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
14792         function global.
14793         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14794         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14795         for DWARF2_UNWIND_INFO targets.
14797 2008-01-16  Richard Guenther  <rguenther@suse.de>
14799         PR c/34768
14800         * c-typeck.c (common_pointer_type): Do not merge inconsistent
14801         type qualifiers for function types.
14803 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14805         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14806         loop_iterator li from previous commit.
14808 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14810         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14812 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14814         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14815         (parallelize_loops): Don't parallelize irreducible components.
14817 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14819         PR c++/24924
14820         * c-opts (c_common_post_options): Do not enable CPP
14821         flag_pedantic_errors by default.
14822         
14823 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
14825         PR rtl-optimization/31944
14826         * cse.c (remove_pseudo_from_table): New function.
14827         (merge_equiv_classes): Use above function to remove pseudo-registers.
14828         (invalidate): Likewise.
14830 2008-01-13  Richard Guenther  <rguenther@suse.de>
14832         PR middle-end/34601
14833         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
14834         instead of TYPE_MODE to deal with calls from expand_one_error_var.
14836 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
14838         * gcse.c (cprop_jump): Call validate_unshare_change instead of
14839         validate_change to unshare the source of the PC set.
14841 2008-01-12  Jan Hubicka  <jh@suse.cz>
14843         PR middle-end/32135
14844         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
14845         references above array bounds.  This might trigger bounds checks for
14846         pointers to arrays.
14848 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14850         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
14851         new_replaceable_dependencies.
14853 2008-01-12  Doug Kwan  <dougkwan@google.com>
14855         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
14856         instead of OPT_Wreturn_type in warning due to ignored return type
14857         qualifiers.
14858         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
14859         options included in -Wextra.
14860         * c.opt: New option -Wignored_qualifiers.
14861         * doc/invoke.texi (Warning Options, -Wextra): Add new option
14862         -Wignore_qualifiers.
14863         (-Wignored-qualifiers): Document.
14864         (-Wreturn-type): Remove description of functionality now handled
14865         by -Wignored-qualifiers.
14867 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
14869         PR ada/33788
14870         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
14871         NOP_EXPR if it is between integral types with the same precision.
14873 2008-01-12  Jan Hubicka  <jh@suse.cz>
14875         PR other/28023
14876         * invoke.texi (max-inline-recursive-depth): Fix default value.
14878 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
14880         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
14881         correct type.
14883 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
14884         
14885         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
14886         
14887 2008-01-11  James E. Wilson  <wilson@specifix.com>
14889         PR target/26015
14890         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
14892 2008-01-11  Anatoly Sokolov <aesok@post.ru>
14894         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
14895         save/restore frame pointer register and don't use 'call-prologues' 
14896         optimization in function with "OS_task" attribute.
14898 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14900         PR middle-end/31309
14901         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
14902         when copying to memory.
14904 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
14906         PR rtl-optimization/30905
14907         * cfgcleanup.c: Include dce.h
14908         (crossjumps_occured): New global variable.
14909         (try_crossjump_bb): Exit loop after finding a fallthru edge.
14910         If something changed, set crossjumps_occured to true.
14911         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
14912         Don't add/remove fake edges to exit here...
14913         (cleanup_cfg): ...but do it here, when crossjumping.
14914         Run a fast DCE when successful crossjumps occured in the latest
14915         iteration of try_optimize_cfg.
14917 2008-01-11  Richard Guenther  <rguenther@suse.de>
14919         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
14920         (struct vn_unary_op_s): Likewise.
14921         (vn_reference_insert): Free old reference on hash collision.
14923 2008-01-10  Raksit Ashok  <raksit@google.com>
14925         PR rtl-optimization/27971
14926         * combine.c (find_split_point): Split PLUS expressions which are
14927         inside a MEM rtx, and whose first operand is complex.
14929 2008-01-10  DJ Delorie  <dj@redhat.com>
14931         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
14932         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
14933         (m32c_hard_regno_ok): Call the underlying function.
14935 2008-01-10  Richard Guenther  <rguenther@suse.de>
14937         PR middle-end/34683
14938         * tree-cfg.c (tree_merge_blocks): Do not go through the
14939         full-blown folding and stmt updating path if we just deal
14940         with virtual operands.
14941         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
14942         test for abnormal SSA_NAMEs.
14944 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
14946         PR middle-end/34641
14947         * reload.c (push_reload): Add assertions.  All constants from
14948         reg_equiv_constant should have been used for replacing the respective
14949         pseudo earlier.
14950         (find_reloads_address): Invoke find_reloads_address_part for
14951         constant taken from the reg_equiv_constant array.
14953 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
14955         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
14956         field (valnum) the first in the struct.  Replace bools with
14957         unit bit fields.
14959 2008-01-10  Richard Guenther  <rguenther@suse.de>
14961         PR tree-optimization/34651
14962         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
14963         types and ordering for masking and converting.
14965 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
14967         PR tree-optimization/34017
14968         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
14969         also for PHI_NODE expressions.
14971 2008-01-09  Jan Hubicka  <jh@suse.cz>
14973         PR tree-optimization/34708
14974         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
14975         based on number of case labels.
14976         (init_inline_once): Remove switch_cost.
14977         * tree-inline.h (eni_weights_d): Remove switch_cost.
14979 2008-01-09  Richard Guenther  <rguenther@suse.de>
14980         Andrew Pinski  <andrew_pinski@playstation.sony.com>
14982         PR middle-end/30132
14983         * gimplify.c (gimplify_cond_expr): Do not create an addressable
14984         temporary if an rvalue is ok or an lvalue is not required.
14986 2008-01-09  Richard Guenther  <rguenther@suse.de>
14988         PR middle-end/34458
14989         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
14990         adjust return type.
14992 2008-01-09  Richard Guenther  <rguenther@suse.de>
14994         PR middle-end/34679
14995         * tree.c (host_integerp): Check for sizetype only if the
14996         type is an integer type.
14998 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
15000         PR debug/26364
15001         * opts.c (decode_options): Disable inlining of functions called
15002         once if not in unit-at-a-time mode.
15004 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
15006         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15008 2008-01-08  Richard Guenther  <rguenther@suse.de>
15010         PR middle-end/31863
15011         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15012         out early if the result will be unused.
15014 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15016         PR target/34709
15017         Revert:
15019         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15020         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15021         for TARGET_RECIP.       
15022         
15023 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
15024         
15025         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15026         for vectorization tuned.
15027         
15028 2008-01-08  Richard Guenther  <rguenther@suse.de>
15030         PR tree-optimization/34683
15031         * tree-ssa-operands.c (operand_build_cmp): Export.
15032         * tree-ssa-operands.h (operand_build_cmp): Declare.
15033         * tree-vn.c (vuses_compare): Remove.
15034         (sort_vuses): Use operand_build_cmp.
15035         (sort_vuses_heap): Likewise.
15036         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15037         to re-use old VEC if available.  Do not sort already sorted VUSEs.
15038         (vdefs_to_vec): Do not sort already sorted VDEFs.
15040 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
15042         PR middle-end/34694
15043         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15045 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15047         PR target/34702
15048         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15049         limitations of reciprocal sequences on x86 targets.
15051 2008-01-08  Richard Guenther  <rguenther@suse.de>
15053         PR tree-optimization/34683
15054         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15056 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
15058         PR target/34622
15059         * config/darwin.c (darwin_mergeable_string_section): Don't use
15060         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15062 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
15064         PR target/34682
15065         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15066         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
15067         predicates of op0 and op1 to register_operand.
15068         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
15069         expander using X87MODEF mode iterator.  Change predicates of
15070         op0 and op1 to register_operand.
15071         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15072         corresponding patterns and macroize using MODEF macro.  Change
15073         predicates of op0 and op1 to register_operand and remove
15074         "m" constraint. Disparage "r" alternative with "!".
15075         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15076         macroize using X87MODEF macro.  Change predicates of op0 and op1
15077         to register_operand and remove "m" constraint.  Disparage "r"
15078         alternative with "!".
15079         (absneg splitter with memory operands): Remove.
15080         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15081         patterns and macroize using X87MODEF mode iterator.
15082         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15083         Change predicate of op1 to register_operand.
15084         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15085         for memory operands.
15087 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
15089         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15091 2008-01-07  Richard Guenther  <rguenther@suse.de>
15093         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15094         fields.
15096 2008-01-07  Richard Guenther  <rguenther@suse.de>
15098         PR tree-optimization/34683
15099         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15100         VOPs of the needed size to save memory.  Use VEC_quick_push
15101         to save compile-time.
15102         (vdefs_to_vec): Likewise.
15104 2008-01-07  Sa Liu  <saliu@de.ibm.com>
15106         * config/spu/spu.md (divdf3): Genetate inline code for double
15107         division.  The implementation doesn't handle INF or NAN, therefore it
15108         only applies when -ffinite-math-only is given.
15110 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
15112         PR libstdc++/34680
15113         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15114         * doc/cpp.texi ([Common Predefined Macros]): Document.
15116 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
15118         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15119         order to use commutative addition instead of subtraction.
15121 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15122             Mircea Namolaru  <namolaru@il.ibm.com>
15123             Vladimir Yanovsky  <yanov@il.ibm.com>
15124             Revital Eres  <eres@il.ibm.com>
15126         PR tree-optimization/34263
15127         * tree-outof-ssa.c (process_single_block_loop_latch,
15128         contains_tree_r): New functions.
15129         (analyze_edges_for_bb): Call process_single_block_loop_latch
15130         function to empty single-basic-block latch block if possible.
15132 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15134         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15135         for TARGET_RECIP.
15136         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15138 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15140         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15142 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15144         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15146 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
15148         PR tree-optimization/34618
15149         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15150         flag from T.
15152 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15154         PR target/34673
15155         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15156         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
15157         Update copyright year.
15159         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15160         Update copyright year.
15161         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15162         using NR fixup.
15164 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
15166         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15167         edge does not point to current bb before changing need_assert.
15169 2008-01-04  Richard Guenther  <rguenther@suse.de>
15171         PR middle-end/34029
15172         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15173         for verifying purposes if they are is_gimple_min_invariant.
15175 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
15177         PR tree-optimization/34448
15178         PR tree-optimization/34465
15179         * gimplify.c (gimplify_init_constructor): Add new parameter
15180         notify_temp_creation.  Use it.
15181         (gimplify_modify_expr_rhs): Take volatiles into account when
15182         optimizing constructors.
15183         Do not optimize constructors if gimplify_init_constructor will dump to
15184         memory.
15185         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15186         * gcc.c-torture/compile/pr34448.c: New.
15188 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
15190         PR gcov-profile/34609
15191         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15192         return_slot if result is TREE_ADDRESSABLE.
15194 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
15196         * config/mips/mips.md (sqrt_condition): Tweak comment.
15197         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
15199 2008-01-03  Tom Tromey  <tromey@redhat.com>
15201         PR c/34457
15202         * c-common.c (c_type_hash): Handle VLAs.
15204 2008-01-03  Jan Hubicka  <jh@suse.cz>
15206         PR tree-optimization/31081
15207         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15208         0 when inlining and not inlining to first basic block.
15209         (remap_decl): When var is initialized to 0, don't set default_def.
15210         (expand_call_inline): Set entry_bb.
15211         * tree-inline.h (copy_body_data): Add entry_bb.
15213 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15215         PR c++/34619
15216         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15217         before returning.
15219         PR tree-optimization/29484
15220         * tree-inline.c (inline_forbidden_p_2): New function.
15221         (inline_forbidden_p): Disallow inlining if some static var
15222         has an address of a local LABEL_DECL in its initializer.
15223         * doc/extend.texi (Labels as Values): Document &&foo behaviour
15224         vs. inlining.
15226 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15228         PR tree-optimization/34635
15229         * tree-data-ref.c (add_other_self_distances): Make sure that the
15230         evolution step is constant.
15232 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15234         PR middle-end/34608
15235         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15237 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
15239         * tree-sra.c (scalarize_init): Insert the generate_element_init
15240         statements after the generate_element_zero statements.
15242 2008-01-02  Richard Guenther  <rguenther@suse.de>
15244         PR middle-end/34093
15245         PR middle-end/31976
15246         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15247         for very large number of operands instead of ICEing.
15249 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
15251         PR target/34013
15252         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15253         while stack probing.
15255 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
15257         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15258         in C++0x mode.
15260 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
15262         PR libmudflap/26442
15263         * tree-mudflap.c (mx_register_decls): Guard warning by
15264         !DECL_ARTIFICIAL check.
15266 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
15268         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15269         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15270         sse5_perm<mode>): Fix constraints.