objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead of DECL_IN_SYSTEM_HEADER.
[official-gcc.git] / gcc / ChangeLog
blobb828d37728a1fef9eda48ed505a342b34139b0f3
1 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
3         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
4         is set.
6 2008-07-14  Jan Hubicka  <jh@suse.cz>
8         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
9         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
10         fix predicates and constraints.
11         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
12         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
14 2008-07-14  Doug Kwan  <dougkwan@google.com>
16         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
17         additional option file arm/eabi.opt.
18         * config/arm/eabi.h (File): New configuration file for EABI targets.
19         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
20         SUBSUBTARGET_EXTRA_SPECS.
21         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
22         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
23         from STARTFILE_SPEC so that it can be referenced in an override.
24         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
25         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
26         can be referenced in an override.
27         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
28         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
29         so that it can be referenced in an override.
30         (LINK_SPEC): Use BPABI_LINK_SPEC.
31         * config/arm/eabi.opt (File): New.
33 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
36         (FIXED_VALUE_H): New variable.
37         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
38         input.h, fixed-value.h.
39         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
40         (BASIC_BLOCK_H): Use $(BITMAP_H).
41         (FUNCTION_H): Add varray.h.
42         (IPA_REFERENCE_H): Use $(BITMAP_H).
43         (CGRAPH_H): Add $(BASIC_BLOCK_H).
44         (DF_H): Use $(BITMAP_H).
45         (GGC_H): Add statistics.h.
46         (INSN_ADDR_H): New.
47         (INSN_ATTR_H): Use it.
48         (SYSTEM_H): Add safe-ctype.h, filenames.h.
49         (INPUT_H): New.
50         (SYMTAB_H): Add $(OBSTACK_H).
51         (CPP_INTERNAL_H): New.
52         (TREE_DUMP_H): Add tree-pass.h.
53         (TREE_FLOW_H): Use $(BITMAP_H)
54         (PRETTY_PRINT_H): Use $(INPUT_H).
55         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
56         (GSTAB_H): New.
57         (BITMAP_H): New.
58         (many object files): Fix lots of header dependencies throughout.
60 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
63         New macros.
64         (s-gtyp-input): Use them to write tmp-gi.list.
65         (echo_to_gi.list): Remove.
67 2008-07-14  Richard Guenther  <rguenther@suse.de>
69         * tree-ssa-sccvn.c (pre_info): Remove.
70         (switch_to_PRE_table): Likewise.
71         (free_scc_vn): Do not clear SSA_NAME_VALUE.
72         Do not free pre_info.
73         (set_hashtable_value_ids): Do not create value-ids for the
74         optimistic tables.
75         (run_scc_vn): Remove double test.  Remove bogus special-case
76         in value-number printing.
77         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
78         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
79         SSA_NAME_VALUE.
80         * tree-flow-inline.h (get_value_handle): Remove.
81         * tree-flow.h (get_value_handle): Remove.
83 2008-07-14  Martin Jambor  <mjambor@suse.cz>
85         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
86         in which we generate arithmetics is not a subrange.
88 2008-07-14  Martin Jambor  <mjambor@suse.cz>
90         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
92 2008-07-14  Richard Guenther  <rguenther@suse.de>
94         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call
95         convert.
97 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
99         PR target/36745
100         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
101         reload for symbol refs moved to r0 with -fPIC.
102         (legitimize_pic_address): Use the target register as temporary
103         reg if possible.
104         (emit_symbolic_move): Adjust comment.
105         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
106         New expanders.
108 2008-07-14  Ben Elliston  <bje@au.ibm.com>
110         * c-common.h (C_CPP_HASHNODE): New macro.
111         * coretypes.h (struct cpp_token): Forward declare.
112         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
113         the context-sensitive keyword method.
114         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
115         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
116         expand_bool_pixel): New.
117         (altivec_categorize_keyword): New function.
118         (init_vector_keywords): New function.
119         (rs6000_macro_to_expand): Likewise.
120         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
121         compiling an ISO C dialect.
123 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
125         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert
126         calls.
127         (create_expression_by_pieces): Fix typo.
128         (do_regular_insertion): Use debug counter here too.
130 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
132         PR target/35492.
133         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
134         CONST_OK_FOR_LETTER_P.  All port-local users changed.
135         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
136         implement Kp matching power-of-two.
137         (CONSTRAINT_LEN): Define to match.
138         * config/cris/cris.md: Replace all use of constraint K with Kc.
139         ("*btst*): Use Kp for operand 0 of last alternative.
141 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
143         PR testsuite/36440
144         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
145         and quad formats.
147 2008-07-13  Jan Hubicka  <jh@suse.cz>
149         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
150         to be mangled too.
152 2008-07-13  Richard Guenther  <rguenther@suse.de>
154         PR middle-end/36811
155         * langhooks.c (lhd_print_error_function): Deal with recursive
156         BLOCK trees.
158 2008-07-12  Jan Hubicka  <jh@suse.cz>
160         * cgraph.c (assembler_name_hash): New static var.
161         (hash_node_by_assembler_name, eq_assembler_name): New.
162         (cgraph_node_for_asm): Use hashtable.
163         (cgraph_remove_node): Maintain hashtable.
164         (change_decl_assembler_name): Sanity check that names are not changing
165         after aliasing was processed.
166         * cgraph.h (varpoon_node): Add next GGC marker.
167         * tree.c (decl_assembler_name_equal): Constify.
168         (decl_assembler_name_hash): New.
169         * tree.h (decl_assembler_name_equal): Constify.
170         (decl_assembler_name_hash): Update.
172 2008-07-12  David Daney  <ddaney@avtrex.com>
174         * config/mips/driver-native.c (host_detect_local_cpu): Handle
175         sb1 and r5000 cpus.
177 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
179         * doc/md.texi: Document the MIPS "v" constraint.
180         * config/mips/mips.h (reg_class): Revert last change.
181         (REG_CLASS_NAMES): Likewise.
182         (REG_CLASS_CONTENTS): Likewise.
183         * config/mips/mips.c (mips_regno_to_class): Likewise.
184         * config/mips/constraints.md (v): Likewise, but add documentation.
185         Add a comment to say that this constraint should not be used in
186         gcc code.
188 2008-07-11  DJ Delorie  <dj@redhat.com>
190         * config/h8300/h8300.md (length): Fix branch offset limit.
192 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
194         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
195         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
196         (avr_hard_regno_scratch_ok): New function.
197         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
198         * config/avr/avr.md (all peepholes that request a scratch register):
199         Remove avr_peep2_scratch_safe use.
201 2008-07-11  Tom Tromey  <tromey@redhat.com>
202             Ian Lance Taylor  <iant@google.com>
204         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
205         (struct c_common_resword): Define.
206         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
207         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
208         (c_common_reswords, num_c_common_reswords): Declare.
209         * c-common.c (c_common_reswords): New global const array.
210         (num_c_common_reswords): New const int.
211         * c-parser.c (struct resword, reswords): Don't define.
212         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
213         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
214         than reswords.  If warning about C++ keywords, give them a special
215         RID code.
216         (c_lex_one_token): Warn about C++ keywords.  Call
217         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
218         (c_parser_external_declaration): Look for RID_xxx rather than
219         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
220         (c_parser_statement_after_labels): Likewise.
221         (c_parser_objc_class_instance_variables): Likewise.
222         (c_parser_objc_class_declaration): Likewise.
223         (c_parser_objc_try_catch_statement): Likewise.
224         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
225         (declspecs_add_type): Likewise.
227 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
229         * ggc-page.c (alloc_page):
230         Substituting xmalloc, xcalloc with
231         XNEWVEC and XCNEWVAR macros which add the
232         needed casts.
234 2008-07-11  Richard Guenther  <rguenther@suse.de>
236         PR tree-optimization/36765
237         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
238         aliases from HEAP vars to SMTs.
240 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
242         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
243         * configure.ac (loose_warn): Move -Wc++-compat from here...
244         (strict_warn): ...to here.
245         * configure: Regenerate.
247 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
249         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
250         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
251         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
252         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
253         excluding more specific h8300-*-* and sh-*-* targets.
255 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
257         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert
258         calls.
259         (eliminate): Ditto.
260         (execute_pre): Call loop_optimizer_finalize in early exit.
262 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
264         PR middle-end/36790
265         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
266         uids in the bitmap, not just VAR_DECL uids.
268         PR rtl-optimization/36419
269         * combine-stack-adj.c (adjust_frame_related_expr): New function.
270         (combine_stack_adjustments_for_block): Call it if needed.  Delete
271         correct insn.
272         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
273         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
274         prologue sp adjustment.
276 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
278         PR other/28322
279         * opts.c (print_ignored_options): Report postponed diagnostics for
280         unknown -Wno-* options as warnings, not errors.
281         (postpone_unknown_option_error): Renamed to...
282         (postpone_unknown_option_warning): ... this.
284 2008-07-09  Doug Kwan  <dougkwan@google.com>
286         Revert:
287         2008-07-08  Doug Kwan  <dougkwan@google.com>
289         * config/arm/arm.opt (mandroid): New option.
290         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
291         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
292         (CC1_SPEC): Same.
293         (CC1PLUS_SPEC): Same.
294         (LIB_SPEC): Same.
295         (STARTFILE_SPEC): Same.
296         (ENDFILE_SPEC): Same.
297         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
298         used.
300 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
302         PR target/35802
303         * config/mips/mips.h (reg_class): Remove V1_REG.
304         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
305         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
306         instead of V1_REGS.
307         (mips_get_tp): New function.
308         (mips_legitimize_tls_address): Use it.
309         * config/mips/constraints.md (v): Delete.
310         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
311         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
312         After reload, split into a move and ...
313         (*tls_get_tp_<mode>_split): ...this new instruction.
315 2008-07-09  David Daney  <ddaney@avtrex.com>
317         * config/mips/driver-native.c: Include coretypes.h and tm.h.
319 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
321         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
322         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
323         Add c argument.
324         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
325         htab_delete should be called.  Don't free c.
326         (lookup_tmp_var): Create temp_htab lazily.
327         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
328         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
329         callers.
330         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
331         lower_omp_ordered, lower_omp_critical, lower_omp_for,
332         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
333         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
334         * tree-sra.c (generate_element_init): Likewise.
335         * tree-mudflap.c (execute_mudflap_function_ops,
336         execute_mudflap_function_decls): Likewise.
337         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
338         * tree-gimple.h (struct gimplify_ctx): New type.
339         (push_gimplify_context): Adjust prototype.
341 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
343         * tree-ssa-pre.c (phi_translate_1): Update placement of
344         add_to_value calls.
346 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
348         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
349         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
350         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
351         * targhooks.c (default_hard_regno_scratch_ok): New function.
352         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
353         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
354         * recog.c:  Include "target.h".
355         (peep2_find_free_register): Add check for global regs. Add target
356         specific check.
357         * Makefile.in (recog.o): Depend on target.h.
359 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
361         * config/sh/sh.c (sh_canonical_va_list_type): New.
362         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
364 2008-07-09  Raksit Ashok <raksit@google.com>
366         * doc/invoke.texi (Option Summary): Mention new option
367         -Wdisallowed-function-list=...
368         (Warning Options): Document -Wdisallowed-function-list=...
369         * common.opt (Wdisallowed-function-list=): New flag.
370         * flags.h (warn_disallowed_functions): External definition of new
371         boolean warning flag.
372         (warn_if_disallowed_function_p): Declare new function.
373         * opts.c (warning_disallowed_functions): New static variable.
374         (warn_disallowed_functions): New boolean warning flag.
375         (warn_if_disallowed_function_p): New function.
376         (add_comma_separated_to_vector): Rename
377         add_instrument_functions_exclude_list to this.
378         (common_handle_option): Handle new option. Rename calls to
379         add_instrument_functions_exclude_list into calls to
380         add_comma_separated_to_vector.
381         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
382         based on flag warn_disallowed_functions.
384 2008-07-09  Christian Bruel  <christian.bruel@st.com>
386         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
387          instead of get_attr_length.
389 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
391         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
392         keywords.
393         * genemit.c (gen_insn): Likewise.
394         * gengtype.c (note_def_vec): Likewise.
395         * gengtype.h (note_def_vec): Likewise.
396         * genoutput.c (struct data, output_insn_data, process_template,
397         gen_expand, gen_split, note_constraint): Likewise.
398         * genrecog.c (new_decision, add_to_sequence, factor_tests,
399         make_insn_sequence): Likewise.
400         * gensupport.c (record_insn_name): Likewise.
402 2008-07-08  Doug Kwan  <dougkwan@google.com>
404         * config/arm/arm.opt (mandroid): New option.
405         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
406         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
407         (CC1_SPEC): Same.
408         (CC1PLUS_SPEC): Same.
409         (LIB_SPEC): Same.
410         (STARTFILE_SPEC): Same.
411         (ENDFILE_SPEC): Same.
412         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
413         used.
415 2008-07-08  Raksit Ashok  <raksit@google.com>
417         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
418         (set_storage_via_setmem): Fix expected_align parameter.
419         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
420         missing from the list.
421         * doc/md.texi (movmem): Explicitly state that expected alignment is
422         to be expressed in bytes.
423         (setmem): Explicitly state that expected alignment is to be expressed
424         in bytes.
426 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
428         * reload.c (find_reloads_subreg_address): Do not require validity
429         of address in original mode before reloading address.
431 2008-07-07  Tianwei Sheng  <tianweis@google.com>
433         * df-core.c (df_remove_problem): Adjust the access to avoid out of
434         bounds array access.
436 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
438         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
439         dst.
441 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
442         
443         Fix PR tree-optimization/23455
444         Fix PR tree-optimization/35286
445         Fix PR tree-optimization/35287
446         * Makefile.in (OBJS-common): Remove tree-vn.o.
447         tree-vn.o: Remove.
448         * dbgcnt.def: Add treepre_insert debug counter.
449         * gcc/tree-flow.h (add_to_value): Updated for other changes.
450         (debug_value_expressions): Ditto.
451         (print_value_expressions): Ditto.
452         * tree-pretty-print.c (dump_generic_node): Updated for
453         VALUE_HANDLE removal.
454         * tree-ssa-dom.c (record_equality): Ditto.
455         (cprop_operand): Ditto.
456         (lookup_avail_expr): Ditto.
457         * tree-ssa-threadedge.c
458         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
459         (simplify_control_stmt_condition): Ditto.
460         * tree.c (tree_code_size): Ditto.
461         (tree_node_structure): Ditto.
462         (iterative_hash_expr): Ditto.
463         * tree.def: Ditto.
464         * tree.h (VALUE_HANDLE_ID): Ditto.
465         (VALUE_HANDLE_EXPR_SET): Ditto.
466         (struct tree_value_handle): Ditto.
467         (union tree_node): Ditto.
468         * treestruct.def: Ditto.
469         * tree-vn.c: Removed.
470         * tree-ssa-pre.c: Rewritten entirely.
471         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
472         (constant_value_ids): Ditto.
473         (vn_nary_op_t): Moved to header.
474         (vn_phi_t): Ditto.
475         (vn_reference_op_t): Ditto
476         (vn_reference_t): Ditto.
477         (next_value_id): New variable.
478         (VN_INFO): Add an assert.
479         (vn_constant_eq): New function.
480         (vn_constant_hash): Ditto.
481         (get_or_alloc_constant_value_id): Ditto.
482         (value_id_constant_p): Ditto.
483         (vn_reference_compute_hash): De-staticify.
484         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
485         Disable some code with a FIXME.
486         Remove VALUE_HANDLE use.
487         (valueize_refs): Update opcode if it changes from ssa name to
488         constant.
489         (vn_reference_lookup_1): Add new argument.
490         (vn_reference_lookup):  Ditto.
491         (vn_reference_lookup_pieces): New function.
492         (vn_reference_insert): Add return type. Modify to deal with value
493         ids.
494         (vn_reference_insert_pieces):  New function.
495         (vn_nary_op_compute_hash): De-staticify.
496         (vn_nary_op_eq): Ditto.
497         (vn_nary_op_lookup_pieces): New function.
498         (vn_nary_op_lookup): Add new argument.  
499         (vn_nary_op_insert_pieces): New function.
500         (vn_nary_op_insert): Add return type. Modify to deal with value
501         ids.
502         (vn_phi_insert): Ditto.
503         (visit_unary_op): Update for callee changes.
504         (visit_binary_op): Ditto.
505         (visit_reference_op_load): Ditto.
506         (visit_reference_op_store): Ditto.
507         (init_scc_vn): Init next_value_id, constant_to_value_id and
508         constant_value_ids. 
509         (free_scc_vn): Free them.
510         (set_hashtable_value_ids): New function.
511         (run_scc_vn): Use it.
512         (get_max_value_id): New function.
513         (get_next_value_id): Ditto.
514         (expressions_equal_p): Moved from tree-vn.c
515         (sort_vuses): Ditto.
516         (sort_vuses_heap): Ditto.
517         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
518         above).
519         * tree.c (iterative_hash_hashval_t): Made non-static
520         * tree.h (iterative_hash_hashval_t): Declare it.
521         
522 2008-07-08  Martin Jambor  <mjambor@suse.cz>
524         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
525         instead of ipa_create_node_params.
526         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
527         ipa_check_create_edge_args, free them with
528         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
530         * ipa-prop.c: Include flags.h and tree-inline.h.
531         (ipa_node_params_vector): New variable.
532         (ipa_edge_args_vector): New variable.
533         (edge_removal_hook_holder): New variable.
534         (node_removal_hook_holder): New variable.
535         (edge_duplication_hook_holder): New variable.
536         (node_duplication_hook_holder): New variable.
537         (ipa_detect_param_modifications): Check for presence of modified flags.
538         (ipa_compute_jump_functions): Check for presence of jump functions.
539         (ipa_free_edge_args_substructures): New function.
540         (ipa_create_node_params): Removed.
541         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
542         (ipa_free_node_params_substructures): New function.
543         (ipa_free_all_node_params): Changed to deallocate the on-the-side
544         vector.
545         (ipa_edge_removal_hook): New function.
546         (ipa_node_removal_hook): New function.
547         (duplicate_array): New function.
548         (ipa_edge_duplication_hook): New function.
549         (ipa_node_duplication_hook): New function.
550         (ipa_register_cgraph_hooks): New function.
551         (ipa_unregister_cgraph_hooks): New function.
552         (free_all_ipa_structures_after_ipa_cp): New function.
553         
554         * ipa-prop.h: Include vec.h.
555         (ipa_node_params_t): New typedef with vector types for it.
556         (ipa_edge_args_t):  New typedef with vector types for it.
557         (IPA_NODE_REF): Changed to access an on-the-side vector.
558         (IPA_EDGE_REF): Changed to access an on-the-side vector.
559         (ipa_check_create_node_params): New function.
560         (ipa_check_create_edge_args): New function.
561         
562         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
563         all users.
564         
565 2008-07-07  Tom Tromey  <tromey@redhat.com>
567         * configure, config.in: Rebuilt.
568         * configure.ac: Don't check for scandir or alphasort.
570 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
572         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
573         types immediately after creating them.
575 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
577         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
579 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
581         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
582         dump_constraint_graph.
583         (dump_constraint_edge): New function.
584         (dump_constraint_graph): New function.
585         (debug_constraint_graph): New function.
586         (dump_constraint): Removed useless comparison.
587         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
588         (dump_constraint_graph): Declare.
589         (debug_constraint_graph): Declare.
590         * tree-dump.c (struct dump_option_value_info): Declare
591         TDF_GRAPH.
593 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
595         * config/i386/i386.c (is_va_list_char_pointer): New.
596         (ix86_va_start): Replace compare with ms_va_list_type_node
597         by is_va_list_char_pointer.
598         (ix86_gimplify_va_arg): Likewise.
600 2008-07-07  Martin Jambor  <mjambor@suse.cz>
602         * cgraph.c (cgraph_edge_max_uid): New variable.
603         (struct cgraph_edge_hook_list): New type.
604         (struct cgraph_node_hook_list): New type.
605         (struct cgraph_2edge_hook_list): New type.
606         (struct cgraph_2node_hook_list): New type.
607         (first_cgraph_edge_removal_hook): New variable.
608         (first_cgraph_node_removal_hook): New variable.
609         (first_cgraph_edge_duplicated_hook): New variable.
610         (first_cgraph_node_duplicated_hook): New variable.
611         (cgraph_add_edge_removal_hook): New function.
612         (cgraph_remove_edge_removal_hook): New function.
613         (cgraph_call_edge_removal_hooks):  New function.
614         (cgraph_add_node_removal_hook):  New function.
615         (cgraph_remove_node_removal_hook):  New function.
616         (cgraph_call_node_removal_hooks):  New function.
617         (cgraph_add_edge_duplication_hook):  New function.
618         (cgraph_remove_edge_duplication_hook):  New function.
619         (cgraph_call_edge_duplication_hooks):  New function.
620         (cgraph_add_node_duplication_hook):  New function.
621         (cgraph_remove_node_duplication_hook):  New function.
622         (cgraph_call_node_duplication_hooks):  New function.
623         (cgraph_create_edge): Assign to edge uid.
624         (cgraph_remove_edge): Call edge removal hooks.
625         (cgraph_node_remove_callees): Call edge removal hooks.
626         (cgraph_node_remove_callers): Call edge removal hooks.
627         (cgraph_remove_node): Call node removal hooks.
628         (cgraph_clone_edge): Call edge duplication hooks.
629         (cgraph_clone_node): Call node duplication hooks.
631         * cgraph.h (cgraph_edge): New field uid.
632         (cgraph_edge_hook): New type.
633         (cgraph_node_hook): New type.
634         (cgraph_2edge_hook): New type.
635         (cgraph_2node_hook): New type.
637 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
639         * config.in: Regenerate.
641 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
643         * gcc.c (print_sysroot): New.
644         (option_map, display_help, process_command): Handle the
645         -print-sysroot option.
646         (main): Print the sysroot if requested.
647         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
648         
649 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
651         PR target/34780
652         * unwind-pe.h (size_of_encoded_value): add attribute unused.
654 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
656         * function.c (assign_parm_remove_parallels): Check mode of
657         entry_parm.
658         (assign_parm_setup_block_p): Also check mode of entry_parm.
660 2008-07-07  Richard Guenther  <rguenther@suse.de>
662         * tree-ssa-structalias.h (set_used_smts): Remove.
663         * tree-ssa-structalias.c (used_smts): Likewise.
664         (set_used_smts): Likewise.
665         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
666         call to set_used_smts.
668 2008-07-07  Richard Guenther  <rguenther@suse.de>
670         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
671         (new_var_info): Set it to false.
672         (solution_set_add): Correctly handle pointers outside a var and
673         inside a field.
674         (type_safe): Treat variables with is_full_var properly.
675         (do_sd_constraint): Likewise.
676         (do_ds_constraint): Likewise.
677         (process_constraint): Remove zeroing offset for !use_field_sensitive.
678         (get_constraint_for_ptr_offset): New function.
679         (get_constraint_for_component_ref): For addresses at least include
680         the last field of the variable.  Handle is_full_vars properly.
681         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
682         (handle_ptr_arith): Remove.
683         (find_func_aliases): Simplify assignment handling.
684         (create_function_info_for): For parameter and result varinfos set
685         is_full_var flag.
686         (create_variable_info_for): Set is_full_var flag whenever we
687         just created a single varinfo for a decl.
688         (init_alias_vars): Initialize use_field_sensitive from
689         max-fields-for-field-sensitive parameter.
691 2008-07-07  Richard Guenther  <rguenther@suse.de>
693         PR tree-optimization/36713
694         * tree-flow-inline.h (is_call_used): New function.
695         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
696         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
697         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
699 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
701         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
702         
703 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
705         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
707 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
708             Nathan Sidwell  <nathan@codesourcery.com>
710         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
711         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
712         tmake_file.
713         * config/m68k/t-linux: New.
714         * doc/install.texi: Document m68k-*-linux is now multilibbed by
715         default.
717 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
719         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
720         * config/m68k/m68k-devices.def: Remove multilibs that only differ
721         by MAC/EMAC.
723 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
725         * gcc.c (execute): Fix -Wc++-compat warning.
727 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
729         PR target/36720
730         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
731         constant for little endian.
733 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
735         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
736         mips_base_mips16 instead of TARGET_MIPS16.
737         (mips_base_mips16): Declare.
738         * config/mips/mips.c (mips_base_mips16): Make global.
739         (was_mips16_p): Remove GTY marker.
740         (was_mips16_pch_p): New variable.
741         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
742         (mips_override_options): Force to non-MIPS16 mode initially.
743         Do not complain about MIPS16 PIC incompatibilities here.
744         Only allow -mgpopt if -mexplicit-relocs is in force for
745         non-MIPS16 code.
747 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
749         * configure.ac: Check for caddr_t, define to char * if not defined.
750         * configure: Regenerate.
751         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
752         (mmap_gt_pch_use_address): Likewise.
753         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
755 2008-07-06  Richard Guenther  <rguenther@suse.de>
757         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
758         (new_var_info): Deal with it.
759         (solution_set_add): Likewise.
760         (bitpos_of_field): Make signed, fix.
761         (struct fieldoff): Remove type and decl fields.  Make size field
762         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
763         flags.
764         (fieldoff_compare): Deal with it.
765         (push_fields_onto_fieldstack): Remove has_union argument, glob
766         adjacent non-pointer fields together.
767         (create_function_info_for): Do not set has_union.
768         (create_variable_info_for): Simplify.
770 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
772         * config.gcc (extra_headers): Add cross-stdarg.h for target
773         x86_64-*-* and i?86-*-*.
774         * config/i386/cross-stdarg.h: New.
775         * builtins.c (std_fn_abi_va_list): New.
776         (std_canonical_va_list_type): New.
777         (stabilize_va_list): Replace va_list_type_node use by
778         mtarget.canonical_va_list_type.
779         (gimplify_va_arg_expr): Likewise.
780         (expand_builtin_va_copy): Replace va_list_type_node use by
781         mtarget.fn_abi_va_list.
782         * tree-sra.c (is_va_list_type): New helper.
783         (decl_can_be_decomposed_p): Replace
784         va_list_type_node use by is_va_list_type.
785         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
786         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
787         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
788         * config/i386/i386-protos.h (ix86_get_valist_type): New.
789         (ix86_enum_va_list): New.
790         * config/i386/i386.c (sysv_va_list_type_node): New.
791         (ms_va_list_type_node): New.
792         (ix86_function_type_abi): Remove sorry.
793         (ix86_build_builtin_va_list_abi): New.
794         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
795         for 64-bit targets.
796         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
797         (ix86_init_builtins_va_builtins_abi): New.
798         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
799         for 64-bit targets.
800         (ix86_handle_abi_attribute): New.
801         (attribute_spec): Add sysv_abi and ms_abi.
802         (ix86_fn_abi_va_list): New.
803         (ix86_canonical_va_list_type): New.
804         (ix86_enum_va_list): New.
805         (TARGET_FN_ABI_VA_LIST): New.
806         (TARGET_CANONICAL_VA_LIST_TYPE): New.
807         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
808         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
809         (TARGET_CANONICAL_VA_LIST_TYPE): New.
810         (TARGET_ENUM_VA_LIST): New.
811         * expr.h (std_fn_abi_va_list): New.
812         (std_canonical_va_list_type): New.
813         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
814         (TARGET_CANONICAL_VA_LIST_TYPE): New.
815         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
816         TARGET_CANONICAL_VA_LIST_TYPE.
817         * target.h (struct gcc_target): Add fn_abi_va_list hook
818         and canonical_va_list_type hook.
820 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
822         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
823         integral and pointer types.
825 2008-07-04  Roger Sayle  <roger@eyesopen.com>
827         * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
828         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
830 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
832         PR target/36684
833         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
834         for PIC.
836 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
838         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
839         build_gimple_modify_stmt.
840         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
841         gimple operand.  Use fold_build* instead of build*.
843 2008-07-04  Richard Guenther  <rguenther@suse.de>
845         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
846         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
847         properly to compute the reachability set if we do field-sensitive PTA.
848         * invoke.texi (max-fields-for-field-sensitive): Document default.
849         * opts.c (decode_options): Set max-fields-for-field-sensitive to
850         100 for optimize >= 2.
852 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
854         * ggc-zone.c (lookup_page_table_if_allocated,
855         set_page_table_entry, zone_find_object_size, alloc_small_page,
856         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
857         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
858         -Wc++-compat and/or -Wcast-qual warnings.
860 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
862         PR target/36634
863         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
864         pic_offset_table_rtx to be marked as used here.
865         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
866         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
867         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
868         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
869         !TARGET_SECURE_PLT.
871 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
873         * alloc-pool.c (hash_descriptor, eq_descriptor,
874         alloc_pool_descriptor): Fix -Wc++-compat warnings.
875         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
876         Likewise.
877         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
878         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
879         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
880         Likewise.
881         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
882         Likewise.
884 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
886         * tree-flow.h (loop_only_exit_p): Declare.
887         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
888         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
889         the number of iterations if it is constant.  Otherwise, if this is the
890         only possible exit of the loop, use the conservative estimate on the
891         number of iterations of the entire loop if available.
893 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
895         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
896         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
897         Add synchronization functions.
898         * config/sync.c: New file.
899         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
900         (LIBGCC_SYNC_CFLAGS): Likewise.
902 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
904         PR target/36710
905         * config/i386/i386.md (mode): Add TF to "mode" attribute.
906         (*pushtf_sse): New insn pattern.
907         (pushtf splitters): New splitters.
909 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
911         PR middle-end/35736
912         * predict.c (build_predict_expr): Use void_type_node for the tree
913         type, instead of NULL_TREE.
915 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
917         * config/i386/i386.c (contains_aligned_value_p): Return true
918         for TCmode.
919         (ix86_data_alignment): Align TCmode to 128bits.
920         (ix86_local_alignment): Likewise.
922 2008-07-03  Andrew Haley  <aph@redhat.com>
924         PR bootstrap/33304
925         * vec.h (VEC_TA): New.
926         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
927         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
928         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
929         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
930         (C_COMMON_FIXED_TYPES): Remove first arg.
931         (C_COMMON_FIXED_MODE_TYPES): Likewise.
932         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
933         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
934         not to use empty macro arguments.
936 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
938         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
939         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
940         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
941         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
942         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
943         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
944         config/ia64/crtn.asm, config/m68hc11/larith.asm,
945         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
946         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
947         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
948         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
949         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
950         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
951         config/rs6000/e500crtres64gpr.asm,
952         config/rs6000/e500crtres64gprctr.asm,
953         config/rs6000/e500crtrest32gpr.asm,
954         config/rs6000/e500crtrest64gpr.asm,
955         config/rs6000/e500crtresx32gpr.asm,
956         config/rs6000/e500crtresx64gpr.asm,
957         config/rs6000/e500crtsav32gpr.asm,
958         config/rs6000/e500crtsav64gpr.asm,
959         config/rs6000/e500crtsav64gprctr.asm,
960         config/rs6000/e500crtsavg32gpr.asm,
961         config/rs6000/e500crtsavg64gpr.asm,
962         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
963         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
964         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
965         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
966         config/sparc/sol2-cn.asm: Remove .file directives.
968 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
970         * resource.c (mark_referenced_resources): Look inside
971         UNSPEC_VOLATILEs and ASM_INPUTs.
973 2008-07-02  Ian Lance Taylor  <iant@google.com>
975         * rtlanal.c (add_reg_note): New function.
976         * rtl.h (add_reg_note): Declare.
977         * auto-inc-dec.c (attempt_change): Use add_reg_note.
978         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
979         * builtins.c (expand_builtin_longjmp): Likewise.
980         (expand_builtin_nonlocal_goto): Likewise.
981         * calls.c (emit_call_1, expand_call): Likewise.
982         * cfgexpand.c (add_reg_br_prob_note): Likewise.
983         * cfglayout.c (fixup_reorder_chain): Likewise.
984         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
985         (commit_one_edge_insertion): Likewise.
986         * combine.c (move_deaths, distribute_notes): Likewise.
987         * df-problems.c (df_set_note): Likewise.
988         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
989         (set_unique_reg_note): Likewise.
990         (emit_copy_of_insn_after): Likewise.
991         * expr.c (expand_expr_real): Likewise.
992         * gcse.c (add_label_notes): Likewise.
993         * haifa-sched.c (create_check_block_twin): Likewise.
994         * jump.c (mark_jump_label_1): Likewise.
995         * loop-doloop.c (add_test, doloop_modify): Likewise.
996         * loop-unswitch.c (compare_and_jump_seq): Likewise.
997         * lower-subreg.c (move_eh_region_note): Likewise.
998         * optabs.c (emit_libcall_block): Likewise.
999         * predict.c (predict_insn): Likewise.
1000         (combine_predictions_for_insn): Likewise.
1001         * recog.c (peephole2_optimize): Likewise.
1002         * regmove.c (try_auto_increment): Likewise.
1003         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1004         * reload.c (find_reloads): Likewise.
1005         * reload1.c (fixup_eh_region_note): Likewise.
1006         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1007         * reorg.c (delete_prior_computation): Likewise.
1008         (delete_computation, dbr_schedule): Likewise.
1009         * config/pa/pa.c (legitimize_pic_address): Likewise.
1010         * config/sh/sh.c (sh_reorg): Likewise.
1012 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1014         PR target/36669
1015         * config/libgcc-glibc.ver: Add %exclude.
1016         * config/m32r/libgcc-glibc.ver: Likwise.
1017         * config/s390/libgcc-glibc.ver: Likwise.
1018         * config/sh/libgcc-glibc.ver: Likwise.
1019         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1021         * config/i386/libgcc-glibc.ver: New.
1023         * config/i386/libgcc-x86_64-glibc.ver: Removed.
1025 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1027         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1028         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1029         i[34567]86-*-linux*, x86_64-*-linux*.  Add
1030         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1031         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1032         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
1033         i[34567]86-*-linux*, x86_64-*-linux*.
1035         * libgcc-std.ver: Add empty GCC_4.4.0.
1037         * mkmap-symver.awk: Support multiple versions per symbol.
1039         * config/i386/i386.c (ix86_init_builtins): Always define
1040         __builtin_fabsq and __builtin_copysignq with fallbacks.
1041         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1042         and __builtin_copysignq if SSE2 isn't available.
1044         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1045         (LIBGCC2_TF_CEXT): Likwise.
1046         (TF_SIZE): Likwise.
1048         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1050         * config/i386/sfp-machine.h: Moved to libgcc.
1052         * config/i386/sfp-machine.h: New.
1053         * config/i386/t-linux: Likwise.
1055         * config/i386/t-darwin: Remove softfp_wrap_start and
1056         softfp_wrap_end.
1057         * config/i386/t-darwin64: Likewise.
1059         * config/i386/t-fprules-softfp64: Renamed to ...
1060         * config/i386/t-fprules-softfp: This.
1062         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1063         and softfp_wrap_end.
1065 2008-07-02  Jason Merrill  <jason@redhat.com>
1067         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1069         * tree.c (ctor_to_list): New fn.
1070         * tree.h: Declare it.
1071         (CONSTRUCTOR_ELT): New macro.
1072         (CONSTRUCTOR_NELTS): New macro.
1074 2008-07-02  Richard Guenther  <rguenther@suse.de>
1076         * tree-ssa-structalias.c (struct variable_info): Reorder
1077         to fill padding on 64bit hosts.  Make collapsed_to an int.
1078         (get_varinfo_fc): Deal with that.
1079         (new_var_info): Likewise.
1080         (collapse_rest_of_var): Likewise.
1082 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
1084         * doc/install.texi (--enable-java-home): Document.
1085         (--enable-aot-compile-rpm): Likewise.
1086         (--with-arch-directory): Likewise.
1087         (--with-os-directory): Likewise.
1088         (--with-origin-name): Likewise.
1089         (--with-arch-suffix): Likewise.
1090         (--with-jvm-root-dir): Likewise.
1091         (--with-jvm-jar-dir): Likewise.
1092         (--with-python-dir): Likewise.
1094 2008-07-02  Richard Guenther  <rguenther@suse.de>
1096         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1097         from decls explicitly.  Merge operand checking from tuples.
1099 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1101         * tree-switch-conversion.c: Included timevar.h which I forgot before.
1102         
1103 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1105         * tree-switch-conversion.c: Included timevar.h
1106         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1108         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1110 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1112         * tree-switch-conversion.c: Corrected various comments and
1113         whitespace issues
1114         (build_constructors): Fixed minor formatting mistakes.
1116         * invoke.texi (Optimize Options): Corrected the
1117         switch-conversion-max-branch-ratio parameter.
1119 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
1121         * final.c (asm_insn_count): Return zero for an empty asm body.
1123 2008-07-02  Richard Guenther  <rguenther@suse.de>
1125         * bitmap.h (bitmap_set_bit): Return bool.
1126         (bitmap_clear_bit): Likewise.
1127         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
1128         write to the bitmap if it would.
1129         (bitmap_clear_bit): Likewise.
1130         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1131         bitmap_set_bit return value.
1132         (add_pred_graph_edge): Likewise.
1133         (add_graph_edge): Likewise.
1134         (do_sd_constraint): Likewise.
1135         (do_ds_constraint): Likewise.
1137 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1139         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1140         Fix -Wc++-compat and/or -Wcast-qual warnings.
1141         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1142         gen_regparm_prefix): Likewise.
1143         * vmsdbgout.c (write_modbeg, lookup_filename,
1144         vmsdbgout_source_line, vmsdbgout_init): Likewise.
1146 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1148         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1149         defaults.h definition apply.
1151 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1153         * function.c (assign_parm_remove_parallels): New.
1154         (assign_parm_setup_block_p): Do not return true for non-BLKmode
1155         PARALLELs.
1156         (assign_parm_setup_block): Do not handle them.
1157         (assign_parm_setup_reg, assign_parm_setup_stack): Call
1158         assign_parm_remove_parallels.
1160 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1162         * c-typeck.c (convert_for_assignment): Use
1163         vector_targets_convertible_p.
1164         * c-common.c (vector_targets_convertible_p): New.
1165         * c-common.h (vector_targets_convertible_p): New prototype.
1166         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1167         opaque_p_V2SI_type_node.
1169 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
1171         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1172         RFmode constants.
1174 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
1176         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1177         TFmode constants via two element DImode vector for hosts with
1178         HOST_BITS_PER_WIDE_INT < 64.
1179         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1180         also for HOST_BITS_PER_WIDE_INT < 64.
1182 2008-07-01  Richard Guenther  <rguenther@suse.de>
1184         PR tree-optimization/36666
1185         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1186         (get_constraint_exp_from_ssa_var): Split into ...
1187         (get_constraint_exp_for_temp): ... this ...
1188         (get_constraint_for_ssa_var): ... and that.
1189         Return constraint expressions for all touched sub-fields
1190         if the results address is not taken.
1191         (process_constraint): Remove assertion that aggregate
1192         assignments do not happen at this place.
1193         (get_constraint_for_component_ref): Add address_p argument.
1194         Return constraint expressions for all touched sub-fields
1195         if the results address is not taken.
1196         (do_deref): Use get_constraint_exp_for_temp.
1197         (get_constraint_for_1): Rename from ...
1198         (get_constraint_for): ... this.  Add the old function as wrapper.
1199         (do_structure_copy): Use get_constraint_for_1.
1201 2008-07-01  Martin Jambor  <mjambor@suse.cz>
1203         * Makefile.in (tree-switch-conversion.o): Add.
1204         (OBJS-common): Add tree-swtch-conversion.o.
1205         * passes.c (init_optimization_passes): Add pass_convert_switch.
1206         * tree-pass.h: (pass_convert_switch): Add.
1207         * tree-switch-conversion.c: New file.
1208         * gcc.dg/tree-ssa/cswtch.c: New testcase.
1209         * common.opt (ftree-cswtch): New option.
1210         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1211         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1212         * opts.c (decode_options): Set flag_tree_switch_conversion when
1213         optimization level is >= 2.
1214         * doc/invoke.texi (Optimize Options): Added description of
1215         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1217 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1219         * config/darwin-driver.c (darwin_default_min_version): Fix
1220         -Wc++-compat warnings.
1222 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
1224         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1225         of operand 0.
1227 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1229         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1230         
1231 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1233         PR rtl-optimization/34744
1234         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1235         (df_scan_free_internal): Free data structures not
1236         allocated in storage pools.
1237         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1238         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1239         df_scan_free_mws_vec.
1240         * dse.c (dse_step6): Free offset_map_p and offset_map_n
1241         unconditionally.
1243 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1245         * config/i386/i386.c (contains_aligned_value_p): Return true
1246         for __float128.
1247         (ix86_function_arg_boundary): Return its natural boundary
1248         for __float128.
1249         (return_in_memory_32): Don't check TDmode.
1250         (ix86_split_to_parts): Support splitting into 4 parts and
1251         support TFmode for 32bit target.
1252         (ix86_split_long_move): Support splitting into 4 parts.
1253         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1254         for SSE2.
1255         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1256         (ix86_init_builtins): Here.
1257         (ix86_scalar_mode_supported_p): Always return true for TFmode.
1258         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1259         'q' and 'w', respectively. 
1261         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1262         TARGET_64BIT.
1263         (movtf_internal): Likewise.
1264         (<code>tf2): Likewise.
1265         (*absnegtf2_sse): Likewise.
1266         (copysign<mode>3): Likewise.
1267         (copysign<mode>3_const): Likewise.
1268         (copysign<mode>3_var): Likewise.
1269         (define_split UNSPEC_COPYSIGN): Likewise.
1270         * config/i386/sse.md (*nandtf3): Likewise.
1271         (<code>tf3): Likewise.
1272         (*<code>tf3): Likewise.
1274 2008-06-30  Joey Ye  <joey.ye@intel.com>
1275             H.J. Lu  <hongjiu.lu@intel.com>
1277         * global.c (compute_regsets): Set frame_pointer_needed here.
1278         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1280 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1282         * doc/install.texi (specific): Expand Windows build notes.
1284 2008-06-30  Ira Rosen  <irar@il.ibm.com>
1286         PR tree-optimization/36648
1287         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1288         number of prolog iterations by step. Fix the comment.
1290 2008-06-30  Richard Guenther  <rguenther@suse.de>
1292         PR middle-end/36671
1293         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1294         handle calls from ECF_MALLOC functions.
1295         (handle_pure_call): ECF_MALLOC functions do not return
1296         call-used memory.
1297         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1299 2008-06-29  Andreas Schwab  <schwab@suse.de>
1301         * config/m68k/m68k.c (print_operand): Always print a float
1302         constant in hex.
1303         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1304         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1305         Remove macros.
1307         * config/rs6000/x-linux64: Remove never used file.
1309 2008-06-29  Richard Guenther  <rguenther@suse.de>
1311         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1312         prototype.
1313         (struct alias_info): Move ...
1314         * tree-ssa-alias.c: ... here.
1315         (update_alias_info): Declare.
1316         (compute_may_aliases): Call it.
1317         (update_alias_info): New function.
1318         * tree-ssa-structalias.c (update_alias_info): Move ...
1319         * tree-ssa-alias.c (update_alias_info_1): ... here.
1320         * tree-ssa-structalias.c (process_constraint_1): Remove
1321         unused from_call argument.  Rename to ...
1322         (process_constraint): ... this.  Delete old wrapper.
1323         (make_constraint_to): Adjust callers.
1324         (handle_const_call): Likewise.
1325         (handle_pure_call): Likewise.
1326         (init_base_vars): Likewise.
1327         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
1328         (find_func_aliases): We don't need structure copies for
1329         complex types.
1330         (make_constraint_from_anything): Remove.
1331         (create_variable_info_for): For globals make constraints
1332         from escaped, not from anything.
1333         (compute_points_to_sets): Do not call update_alias_info.
1334         (ipa_pta_execute): Use make_constraint_from.
1336 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1338         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1339         (bitmap.o-warn, dominance.o-warn): New.
1340         * configure.ac (cxx_compat_warn): Delete.
1341         (loose_warn): Add -Wcast-qual and -Wc++-compat.
1342         * system.h: Remove #pragma diagnostic for -Wcast-qual and
1343         -Wc++-compat.
1344         * configure: Regenerate.
1346         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1347         warnings.
1349 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1351         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1352         * df-scan.c (df_notes_rescan): Likewise.
1353         * ggc-page.c (set_page_table_entry): Likewise.
1354         * intl.c (gcc_gettext_width): Likewise.
1355         * varasm.c (get_unnamed_section, get_noswitch_section,
1356         get_section): Likewise.
1358 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
1360         * regrename.c (build_def_use): Don't copy RTX.
1362 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
1364         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1365         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
1366         punctuation.  Use @ref instead of @xref.
1367         (Function Names): Remove stray @display/@end display.
1368         (C++ Attributes): Use @ref instead of @xref.
1369         (Deprecated Features): Fix punctuation around @xref.
1370         (Backwards Compatibility): Likewise.
1371         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1373 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
1375         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1376         constants for E500 double.
1378 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1380         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1381         element type of const_vector.
1383 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
1385         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1386         Remove FLAGS_REG clobber from expander pattern.
1387         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1388         (anddi3, andsi3, andhi3, andqi3): Ditto.
1389         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1390         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1391         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1392         (ashlsi3, ashlhi3, ashlqi3): Ditto.
1393         (ashrsi3, ashrhi3, ashrqi3): Ditto.
1394         (lshrsi3, lshrhi3, lshrqi3): Ditto.
1395         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1396         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1398 2008-06-28  Richard Guenther  <rguenther@suse.de>
1400         * tree-ssa-structalias.c (callused_id, var_callused,
1401         callused_tree): Add.
1402         (handle_pure_call): New function.
1403         (find_func_aliases): Call it.
1404         (find_what_p_points_to): Handle the call-used set.
1405         (clobber_what_escaped): Likewise.
1406         (compute_call_used_vars): New function.
1407         (init_base_vars): Init the call-used variable.
1408         (do_sd_constraint): Do not propagate the solution from CALLUSED
1409         but use CALLUSED as a placeholder.
1410         (solve_graph): Likewise.
1411         * tree-flow-inline.h (gimple_call_used_vars): New function.
1412         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1413         (compute_call_used_vars): Declare.
1414         * tree-ssa-alias.c (set_initial_properties): Call
1415         compute_call_used_vars.
1416         (reset_alias_info): Clear call-used variables.
1417         (add_call_clobber_ops): Assert we are not called for const/pure
1418         functions.  Remove handling of them.
1419         (add_call_read_ops): Handle pure functions by adding the
1420         call-used set of variables as VUSEs.
1421         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1422         (delete_tree_ssa): Free it.
1423         * tree-dfa.c (remove_referenced_var): Clear the var from the
1424         call-used bitmap.
1426 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
1428         * tree.c (build_varargs_function_type_list): New.
1429         (build_function_type_list_1): New.
1430         (build_function_type_list): Use build_function_type_list_1.
1431         * tree.h (build_varargs_function_type_list): New.
1433 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1435         PR target/34856
1436         * config/spu/spu.c (spu_builtin_splats): Do not generate
1437         invalid CONST_VECTOR expressions.
1438         (spu_expand_vector_init): Likewise.
1440 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
1442         * optabs.c (libfunc_decls): New variable.
1443         (libfunc_decl_hash, libfunc_decl_eq): New functions.
1444         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1445         for the same function twice.
1447 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
1449         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1450         ix86_expand_binary_operator directly.
1451         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
1452         for operand 2.
1453         (*ashrti3_1): Ditto.
1454         (*lshrti3_1): Ditto.
1455         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1456         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1457         using only one splitter.  Conditionaly execute splitter before or
1458         after peephole2 pass.
1459         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1460         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
1461         Use only one alternative in asm template.
1462         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1463         in asm template.
1464         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1465         "J" operand constraint for operand 2.
1466         (*ashldi3_cconly_rex64): Ditto.
1467         (*ashrdi3_cmp_rex64): Ditto.
1468         (*ashrdi3_cconly_rex64): Ditto.
1469         (*lshrdi3_cmp_rex64): Ditto.
1470         (*lshrdi3_cconly_rex64): Ditto.
1471         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1472         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1473         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1474         gen_x86_shrd_1.
1476 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1478         * gimplify.c (omp_is_private): Don't return true if decl is not
1479         already private on #pragma omp for or #pragma omp parallel for.
1481         PR debug/36617
1482         * tree-cfg.c (struct move_stmt_d): Replace block field with
1483         orig_block and new_block fields.
1484         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1485         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1486         (move_block_to_fn): Replace vars_map and new_label_map arguments
1487         with struct move_stmt_d pointer.
1488         (replace_block_vars_by_duplicates): New function.
1489         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
1490         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
1491         all subblocks of ORIG_BLOCK to the new function.  Call
1492         replace_block_vars_by_duplicates.
1493         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1494         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1495         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
1496         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1497         (expand_omp): Temporarily set input_location to the location of
1498         region's controlling stmt.
1499         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1500         BIND_EXPR, push ctx->block_vars and gimplification vars into
1501         the BIND_EXPR and its block's BLOCK_VARS instead of directly
1502         into dest function.
1503         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1504         there are any BLOCK_VARS.
1505         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1506         OMP_PARALLEL or OMP_TASK stmt.
1507         (lower_omp): Save and restore input_location around the lower_omp_1
1508         call.
1510 2008-06-27  Richard Guenther  <rguenther@suse.de>
1512         PR tree-optimization/36400
1513         PR tree-optimization/36373
1514         PR tree-optimization/36344
1515         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1516         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1517         (update_alias_info): Remove call clobbering code.
1518         (make_constraint_to): New helper function.
1519         (make_escape_constraint): Likewise.
1520         (handle_rhs_call): Use it on all pointer containing arguments.
1521         Also mark the static chain escaped.
1522         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1523         instead of ANYTHING.
1524         (make_constraint_from): New helper split out from ...
1525         (make_constraint_from_anything): ... here.
1526         (find_func_aliases): Add constraints for escape sites.
1527         (intra_create_variable_infos): Make constraints from NONLOCAL
1528         for parameters.
1529         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1530         as ANYTHING.
1531         (clobber_what_p_points_to): Remove.
1532         (clobber_what_escaped): New function.
1533         (init_base_vars): Init NONLOCAL and ESCAPED.
1534         (do_sd_constraint): Do not propagate the solution from ESCAPED
1535         but use ESCAPED as a placeholder.
1536         (solve_graph): Likewise.
1537         * tree-flow.h (clobber_what_p_points_to): Remove.
1538         (clobber_what_escaped): Declare.
1539         * tree-ssa-alias.c (set_initial_properties): Call it.
1540         Remove code clobbering escaped pointers.
1542 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1544         * function.c (allocate_struct_function): Only allocate a unique
1545         funcdef_no if the decl is nonzero.
1547 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1549         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1550         * config/mips/mips.c (mips_split_const_insns): New function.
1551         * config/mips/mips.md (move_type): New attribute.
1552         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
1553         (dword_mode): New attribute.
1554         (type): Avoid long line.  Map "move_type"s to "type"s,
1555         choosing "multi" for doubleword moves if appropriate.
1556         Swap MTC/MFC comments to match their declaration order.
1557         (extended_mips16): Default to "yes" if "move_type" is "sll0",
1558         "type" is "branch" or "jal" is "direct".
1559         (length): Handle "extended_mips16" first.  Make the default
1560         "0" for "ghost" instructions.  Set the length from "move_type".
1561         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1562         of "type", with "sll0" for the register alternative.  Remove the
1563         "extended_mips16" attribute.
1564         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1565         of "type", with "shift_shift" for the register alternative.
1566         Remove the "length" attribute.
1567         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1568         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1569         of "type", with "andi" for the register alternative.
1570         (*zero_extendqihi2): Likewise.
1571         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1572         of "andi" instead of a "type" of "arith".
1573         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1574         instead of "type".
1575         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1576         (mov_<store>r, *mov<mode>_ra): Likewise.
1577         (extendsidi2): Use "move_type" instead of "type", with "move"
1578         for the register alternative.
1579         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1580         of "type", with "signext" for the register alternative.
1581         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1582         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1583         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1584         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1585         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1586         (unnamed branch insn): Likewise.
1587         (*movdi_gp32_fp64): Fold into...
1588         (*movdi_32bit): ...here.
1589         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1590         (*movdf_hardfloat): ...this new pattern.
1591         (*movdf_softfloat): Remove redundant FPR alternatives.
1592         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1593         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1594         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
1595         the "move" attribute.
1596         (*movdi_32bit): Use "move_type" instead of "type" and remove the
1597         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
1598         and "store" for COP loads and stores.
1599         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1600         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1601         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1602         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1603         (*movtf_mips16, *movv2sf): Likewise.
1604         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1605         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1606         (mfhc1<mode>): Use "move_type" instead of "move".
1607         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1608         (loadgp_blockage): Remove the "length" attribute.
1609         (blockage, set_got_version, update_got_version): Likewise.
1610         (call_internal): Remove the "extended_mips16" attribute.
1611         (call_value_internal, call_value_multiple_internal): Likewise.
1612         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1613         instead of "move".
1614         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1615         the "length" attribute.
1617 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1619         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1620         -Wcast-qual warnings.
1621         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1622         handle_pragma_pop_macro): Likewise.
1623         * collect2.c (resolve_lib_name): Likewise.
1624         * config/arc/arc.c (arc_init): Likewise.
1625         * config/arm/arm.c (neon_builtin_compare,
1626         locate_neon_builtin_icode): Likewise.
1627         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1628         * config/bfin/bfin.c (bfin_init_machine_status,
1629         bfin_optimize_loop): Likewise.
1630         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1631         * config/cris/cris.c (cris_init_expanders): Likewise.
1632         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1633         * config/darwin.c (machopic_indirection_eq,
1634         machopic_indirection_name, machopic_output_indirection): Likewise.
1635         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1636         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1637         frv_optimize_membar): Likewise.
1638         * config/i386/cygwin.h (mingw_scan,
1639         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1640         * config/i386/cygwin1.c (mingw_scan): Likewise.
1641         * config/i386/i386.c (machopic_output_stub): Likewise.
1642         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1643         i386_pe_unique_section): Likewise.
1644         * config/ia64/ia64.c (ia64_init_machine_status,
1645         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1646         Likewise.
1647         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1648         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1649         * config/m68k/m68k.c (m68k_handle_option,
1650         m68k_sched_md_init_global): Likewise.
1651         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1652         mcore_unique_section): Likewise.
1653         * config/mips/mips.c (mips_block_move_straight,
1654         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1655         Likewise.
1656         * config/mmix/mmix.c (mmix_init_machine_status,
1657         mmix_encode_section_info): Likewise.
1658         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1659         * config/rs6000/rs6000.c (rs6000_init_machine_status,
1660         print_operand_address, output_toc, redefine_groups,
1661         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1662         * config/s390/s390.c (s390_init_machine_status): Likewise.
1663         * config/score/score.c (score_block_move_straight,
1664         score_block_move_loop_body): Likewise.
1665         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1666         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1667         * emit-rtl.c (find_auto_inc): Likewise.
1668         * gcc.c (translate_options, process_command): Likewise.
1669         * reorg.c (dbr_schedule): Likewise.
1670         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1671         * xcoffout.c (xcoffout_declare_function): Likewise.
1673 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
1675         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1676         ipa-pta working again.
1678 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
1680         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1681         genautomata.
1683 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
1685         * config.gcc (powerpc*-*-*): Add new core e500mc.
1686         * config/rs6000/e500mc.md: New file.
1687         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1688         e500mc.
1689         (rs6000_override_options): Add e500mc case to
1690         processor_target_table. Altivec and Spe options not allowed
1691         with e500mc. Add isel instruction to e500mc by
1692         default. Initialize rs6000_cost for e500mc.
1693         (rs6000_issue_rate): Set issue rate for e500mc.
1694         * config/rs6000/rs6000.h (processor_type): Add
1695         PROCESSOR_PPCE500MC.
1696         (ASM_CPU_SPEC): Add e500mc.
1697         Set TARGET_ISEL to rs6000_isel.
1698         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1699         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1700         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1701         Include e500mc.md.
1702         * doc/invoke.texi: Add e500mc to list of cpus.
1704 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1706         PR c/34867
1707         * c-lex.c (lex_charconst): Initialize unsignedp.
1709 2008-06-27  Olivier Hainque  <hainque@adacore.com>
1711         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
1712         documented assumptions.
1714 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1716         * dwarf2out.c: Remove trailing white spaces.  Break long line
1717         in comments.
1719 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
1721         * libfuncs.h (LTI_synchronize): New libfunc_index.
1722         (synchronize_libfunc): Declare.
1723         * builtins.c (expand_builtin_synchronize): Consider using
1724         synchronize_libfunc before falling back on an asm blockage.
1725         * config/mips/mips.c: Include libfuncs.h
1726         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
1728 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
1730         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
1731         parameter.  Copy stack_reg to r11 where appropriate.
1732         (no_global_regs_above): Add gpr parameter.
1733         (rs6000_stack_info): Only add padding for SPE save area if we
1734         are saving SPE GPRs and CR.
1735         (saveres_routine_syms): New variable.
1736         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
1737         Define.
1738         (rs6000_savres_routine_sym): New function.
1739         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
1740         split out of...
1741         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
1742         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
1743         Tweak FPR out-of-line saving.
1744         (rs6000_make_savres_rtx): New function.
1745         (rs6000_use_multiple_p): New function.
1746         (rs6000_savres_strategy): New function.
1747         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
1748         out-of-line if appropriate.
1749         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
1750         if we are optimizing for size.
1751         (GP_SAVE_INLINE): Define.
1752         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
1753         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
1754         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
1755         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
1756         (*save_fpregs_<mode>): Add use of r11.
1757         (*restore_gpregs_<mode>): New insn.
1758         (*return_and_restore_gpregs_<mode>): New insn.
1759         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
1760         use r11.
1761         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
1762         (*restore_gpregs_spe): New insn.
1763         (*return_and_restore_gpregs_spe): New insn.
1764         * config/rs6000/predicates.md (save_world_operation): Fix check.
1766 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1768         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
1769         this point, so assert that.
1771 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1773         * cfganal.c: Include vec.h and vecprim.h.
1774         (compute_idf): Import from...
1775         * tree-into-ssa (compute_idf): ...here.
1776         * basic-block.h (compute_idf): Export.
1778 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
1780         * c-decl.c (merge_decls): Use !current_function_decl to check for
1781         extern declaration of C99 inline function being at file scope.
1783 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
1785         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
1787 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1789         * alias.c (record_alias_subset, init_alias_analysis): Fix
1790         -Wc++-compat and/or -Wcast-qual warnings.
1791         * attribs.c (lookup_attribute_spec): Likewise.
1792         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1793         copy_bb, connect_traces,
1794         find_rarely_executed_basic_blocks_and_cr): Likewise.
1795         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
1796         note_btr_set, migrate_btr_defs): Likewise.
1797         * builtins.c (result_vector, expand_builtin_memcpy,
1798         expand_builtin_mempcpy_args, expand_builtin_strncpy,
1799         builtin_memset_read_str, expand_builtin_printf,
1800         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
1801         Likewise.
1802         * caller-save.c (mark_set_regs): Likewise.
1803         * calls.c (expand_call, emit_library_call_value_1): Likewise.
1804         * cgraph.c (cgraph_edge): Likewise.
1805         * combine.c (likely_spilled_retval_1): Likewise.
1806         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
1807         htab_counts_entry_del, get_coverage_counts): Likewise.
1808         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
1809         new_cselib_val): Likewise.
1810         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
1811         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
1812         Likewise.
1813         * df-core.c (df_compact_blocks): Likewise.
1814         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
1815         * df-scan.c (df_grow_reg_info, df_ref_create,
1816         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
1817         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
1818         df_record_entry_block_defs, df_record_exit_block_uses,
1819         df_bb_verify): Likewise.
1820         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
1821         DF_REF_EXTRACT_MODE_CONST): New.
1822         * dominance.c (get_immediate_dominator, get_dominated_by,
1823         nearest_common_dominator, root_of_dom_tree,
1824         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
1825         -Wc++-compat and/or -Wcast-qual warnings.
1826         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
1827         record_store, replace_read, check_mem_read_rtx, scan_insn,
1828         dse_step1, dse_record_singleton_alias_set): Likewise.
1829         * dwarf2asm.c (dw2_force_const_mem): Likewise.
1831 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1833         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
1834         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
1835         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
1836         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
1837         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
1838         add_ranges_num, add_ranges_by_labels, file_info_cmp,
1839         file_name_acquire, output_file_names, add_const_value_attribute,
1840         premark_used_types_helper, file_table_eq, file_table_hash,
1841         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
1842         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
1843         -Wcast-qual warnings.
1844         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
1845         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
1846         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
1847         gen_reg_rtx, start_sequence, init_emit): Likewise.
1848         * et-forest.c (et_new_occ, et_new_tree): Likewise.
1849         * except.c (init_eh_for_function, gen_eh_region,
1850         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
1851         arh_to_landing_pad, arh_to_label, add_action_record,
1852         add_call_site, switch_to_exception_section): Likewise.
1853         * expmed.c (synth_mult): Likewise.
1854         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
1855         store_expr): Likewise.
1856         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
1857         Likewise.
1858         * function.c (assign_stack_temp_for_type,
1859         allocate_struct_function, match_asm_constraints_1): Likewise.
1860         * gcov-io.c (gcov_allocate): Likewise.
1861         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
1862         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
1863         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
1864         record_one_set, insert_expr_in_table, insert_set_in_table,
1865         dump_hash_table, compute_hash_table_work, alloc_hash_table,
1866         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
1867         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
1868         -Wcast-qual warnings.
1870 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1872         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
1873         -Wcast-qual warnings.
1874         * gcc.c (process_command): Likewise.
1875         * genattrtab.c (oballoc): Use XOBNEW.
1876         (oballocvec): Define.
1877         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
1878         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
1879         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
1880         -Wc++-compat and/or -Wcast-qual warnings.
1881         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
1882         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
1883         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1884         gen_presence_absence_set, gen_automaton, gen_regexp_el,
1885         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1886         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
1887         add_excls, process_presence_absence_names,
1888         process_presence_absence_patterns, add_presence_absence,
1889         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
1890         get_free_state, add_arc, get_free_automata_list_el,
1891         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
1892         transform_3, cache_presence, create_ainsns, create_automata,
1893         create_state_ainsn_table, dfa_insn_code_enlarge,
1894         output_trans_func, output_min_issue_delay_func,
1895         output_dead_lock_func, output_reset_func,
1896         output_get_cpu_unit_code_func, output_dfa_start_func,
1897         expand_automata): Likewise.
1898         * genextract.c (gen_insn): Likewise.
1899         * gengtype-lex.l: Likewise.
1900         * gengtype.c (read_input_list, adjust_field_type,
1901         process_gc_options): Likewise.
1902         * genoutput.c (note_constraint): Likewise.
1903         * genpreds.c (mangle, add_constraint): Likewise.
1904         * genrecog.c (process_define_predicate, new_decision,
1905         add_to_sequence): Likewise.
1906         * gensupport.c (record_insn_name): Likewise.
1908 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1910         * config/i386/driver-i386.c (detect_caches_amd,
1911         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
1912         and/or -Wcast-qual warnings.
1913         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
1914         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
1915         gt_pch_save): Likewise.
1916         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
1917         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
1918         * global.c (compute_regsets): Likewise.
1919         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
1920         finish_graph_dump_file): Likewise.
1921         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
1922         unlink_bb_notes): Likewise.
1923         * integrate.c (get_hard_reg_initial_val): Likewise.
1924         * ipa-prop.c (ipa_push_func_to_list): Likewise.
1925         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
1926         * local-alloc.c (update_equiv_regs): Likewise.
1927         * loop-invariant.c (check_invariant_table_size,
1928         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
1929         Likewise.
1930         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
1931         altered_reg_used, mark_altered): Likewise.
1932         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
1933         insert_var_expansion_initialization,
1934         combine_var_copies_in_loop_exit, apply_opt_in_copies,
1935         release_var_copies): Likewise.
1936         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
1937         analyze_matrix_decl, add_allocation_site, analyze_transpose,
1938         analyze_accesses_for_phi_node, check_var_notmodified_p,
1939         check_allocation_function, find_sites_in_func,
1940         record_all_accesses_in_func, transform_access_sites,
1941         transform_allocation_sites): Likewise.
1942         * omp-low.c (new_omp_region, create_omp_child_function_name,
1943         check_omp_nesting_restrictions, check_combined_parallel,
1944         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
1945         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
1946         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
1947         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
1948         Likewise.
1949         * opts-common.c (prune_options): Likewise.
1950         * opts.c (add_input_filename, print_filtered_help,
1951         get_option_state): Likewise.
1952         * params.c (add_params): Likewise.
1953         * passes.c (set_pass_for_id, next_pass_1,
1954         do_per_function_toporder, pass_fini_dump_file): Likewise.
1955         * postreload.c (reload_cse_simplify_operands): Likewise.
1956         * predict.c (tree_predicted_by_p, tree_predict_edge,
1957         clear_bb_predictions, combine_predictions_for_bb): Likewise.
1959 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1961         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
1962         warnings.
1963         * recog.c (check_asm_operands, validate_change_1): Likewise.
1964         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
1965         subst_asm_stack_regs): Likewise.
1966         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
1967         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
1968         * regmove.c (reg_is_remote_constant_p): Likewise.
1969         * regrename.c (regrename_optimize, scan_rtx_reg,
1970         kill_clobbered_value, kill_set_value, kill_autoinc_value):
1971         Likewise.
1972         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
1973         regstat_compute_calls_crossed): Likewise.
1974         * reload1.c (init_reload, new_insn_chain,
1975         has_nonexceptional_receiver, reload, copy_reloads,
1976         calculate_needs_all_insns, init_elim_table): Likewise.
1977         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
1978         * rtl.c (shallow_copy_rtx_stat): Likewise.
1979         * rtlanal.c (parms_set): Likewise.
1980         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
1981         sbitmap_resize, sbitmap_vector_alloc): Likewise.
1982         * sched-ebb.c (earliest_block_with_similiar_load,
1983         add_deps_for_risky_insns): Likewise.
1984         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
1985         schedule_region): Likewise.
1986         * see.c (eq_descriptor_pre_extension,
1987         hash_descriptor_pre_extension, hash_del_pre_extension,
1988         eq_descriptor_properties, hash_descriptor_properties,
1989         hash_del_properties, see_seek_pre_extension_expr,
1990         see_initialize_data_structures, see_print_register_properties,
1991         see_print_pre_extension_expr, see_delete_merged_def_extension,
1992         see_delete_unmerged_def_extension, see_emit_use_extension,
1993         see_pre_delete_extension, see_map_extension, see_commit_changes,
1994         see_analyze_merged_def_local_prop,
1995         see_analyze_merged_def_local_prop,
1996         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
1997         see_set_prop_merged_def, see_set_prop_unmerged_def,
1998         see_set_prop_unmerged_use, see_print_one_extension,
1999         see_merge_one_use_extension, see_merge_one_def_extension,
2000         see_store_reference_and_extension, see_update_uses_relevancy,
2001         see_update_defs_relevancy): Likewise.
2002         * statistics.c (hash_statistics_hash, hash_statistics_eq,
2003         hash_statistics_free, curr_statistics_hash): Likewise.
2004         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2005         expand_asm_operands, expand_return, case_bit_test_cmp,
2006         expand_case): Likewise.
2007         * stor-layout.c (start_record_layout): Likewise.
2008         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2009         gt_pch_save_stringpool): Likewise.
2010         * tree-data-ref.c (hash_stmt_vertex_info,
2011         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2012         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2014 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
2016         PR target/36627
2017         * config/i386/i386.md : Change constraints of HImode and QImode
2018         immediate operands from "i" to "n".  Change SImode "ni" constraint to
2019         "i" and SImode "rmi" constraint to "g".  Remove all constraints
2020         from const0_operand and const1_operand predicated operands.
2021         (i): Change QImode and HImode attribute from "i" to "n".
2022         (*subqi_2): Change HImode operands to QImode.
2023         (*subqi_3): Ditto.
2025 2008-06-25  Olivier Hainque  <hainque@adacore.com>
2027         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2028         sed substitutions.
2030 2008-06-25  Richard Guenther  <rguenther@suse.de>
2032         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2033         not overflow the result type.
2035 2008-06-25  Richard Guenther  <rguenther@suse.de>
2037         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2038         (vn_lookup): Likewise.
2040 2008-06-25  Richard Guenther  <rguenther@suse.de>
2042         PR tree-optimization/35518
2043         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2044         * tree-sra.c (instantiate_element): Use fold_build3 to build
2045         BIT_FIELD_REFs.
2046         (try_instantiate_multiple_fields): Likewise.
2048 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2050         * config/rs6000/rs6000.md: Change all string instruction's clobber to
2051         be early clobbers.
2053 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2055         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2056         use_backchain_to_restore_sp to true
2057         if the offset of the link register save area would go over the 32k - 1
2058         offset limit of the load
2059         instructions.
2061 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2063         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2064         anchor for the type-punning blurb.  Cross-reference "Structures
2065         unions enumerations and bit-fields implementation".  Provide a
2066         cast-through-pointer example.  Make final sentence self-contained.
2067         * doc/implement-c.texi (Structures unions enumerations and
2068         bit-fields implementation): Cross-reference the type-punning blurb
2069         in the -fstrict-aliasing documentation.
2071 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2073         PR middle-end/36594
2074         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2075         the memory instead of the memory itself for the save area.
2077 2008-06-24  Olivier Hainque  <hainque@adacore.com>
2078             Nicolas Roche  <roche@adacore.com>
2080         * gengtype.c (srcdir_len): size_t instead of int.
2081         (get_file_realbasename): New function.  For F a filename, the real
2082         basename of F, with all the path components stripped.
2083         (get_file_srcdir_relative_path): New function.  For F a filename, the
2084         relative path to F from $(srcdir).
2085         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2086         get_file_realbasename.  Adjust the head comment.
2087         (get_prefix_langdir_index): New function. For F a filename, return the
2088         lang_dir_names[] relative index of the language directory that is
2089         a prefix in F.
2090         (get_file_langdir): For F a filename, return the name of the language
2091         directory where F is located.
2092         (get_file_gtfilename): New function. The gt- output file name for an
2093         input filename F.
2094         (get_output_file_with_visibility): Replace in-line computations with
2095         uses of get_file_gtfilename and get_prefix_langdir_index.
2096         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2098 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
2100         PR tree-optimization/36504
2101         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2102         references without base address.
2104 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2106         PR middle-end/36584
2107         * calls.c (expand_call): Increase alignment for recursive functions.
2109 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
2111         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2112         (TARGET_FUNCTION_VALUE): New define.
2113         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2114         * config/avr/avr.h (FUNCTION_VALUE): Remove.
2116 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2118         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2119         (fmod<mode>3): Ditto.
2120         (remainderxf3): Ditto.
2121         (remainder<mode>3): Ditto.
2123 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
2125         PR target/36533
2126         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2127         REG is a hard register.
2129         PR tree-optimization/36508
2130         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2131         499, don't check it at all in release compilers.
2133 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2135         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2136         together with SSE_TARGET_MATH to disable insn pattern.
2137         (*fop_<MODEF:mode>_2_i387): Ditto.
2138         (*fop_<MODEF:mode>_3_i387): Ditto.
2140 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
2142         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2143         
2144 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2146         PR middle-end/34906
2147         * gimplify.c (gimplify_asm_expr): Check the return code of
2148         parse_output_constraint call, set function return and is_inout
2149         value if it failed.
2151 2008-06-22  Ian Lance Taylor  <iant@google.com>
2153         * c-lex.c (narrowest_unsigned_type): Change itk to int.
2154         (narrowest_signed_type): Likewise.
2155         * c-typeck.c (c_common_type): Change local variable mclass to enum
2156         mode_class, twice.
2157         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2158         tcc_comparison, not the tree code itself.
2159         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2160         (c_expand_expr): Cast modifier to enum expand_modifier.
2161         * c-common.h (C_RID_CODE): Add casts.
2162         (C_SET_RID_CODE): Define.
2163         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2164         (c_lex_one_token): Add cast to avoid warning.
2165         (c_parser_objc_type_name): Rename local typename to type_name.
2166         (check_no_duplicate_clause): Change code parameter to enum
2167         omp_clause_code.
2168         (c_parser_omp_var_list_parens): Change kind parameter to enum
2169         omp_clause_code.
2170         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2171         c_parser_omp_list_var_parens.
2172         (c_parser_omp_threadprivate): Likewise.
2173         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2174         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2175         * c-format.c (NO_FMT): Define.
2176         (printf_length_specs): Use NO_FMT.
2177         (asm_fprintf_length_specs): Likewise.
2178         (gcc_diag_length_specs): Likewise.
2179         (scanf_length_specs): Likewise.
2180         (strfmon_length_specs): Likewise.
2181         (gcc_gfc_length_specs): Likewise.
2182         (printf_flag_specs): Change 0 to STD_C89.
2183         (asm_fprintf_flag_specs): Likewise.
2184         (gcc_diag_flag_specs): Likewise.
2185         (gcc_cxxdiag_flag_specs): Likewise.
2186         (scanf_flag_specs): Likewise.
2187         (strftime_flag_specs): Likewise.
2188         (strfmon_flag_specs): Likewise.
2189         (print_char_table): Likewise.
2190         (asm_fprintf_char_table): Likewise.
2191         (gcc_diag_char_table): Likewise.
2192         (gcc_tdiag_char_table): Likewise.
2193         (gcc_cdiag_char_table): Likewise.
2194         (gcc_cxxdiag_char_table): Likewise.
2195         (gcc_gfc_char_table): Likewise.
2196         (scan_char_table): Likewise.
2197         (time_char_table): Likewis.
2198         (monetary_char_table): Likewise.
2199         * c-format.h (BADLEN): Likewise.
2201 2008-06-21  Ian Lance Taylor  <iant@google.com>
2203         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2204         Define END_OF_BASE_TREE_CODES around inclusion.
2205         * tree.c (tree_code_type): New global array.
2206         (tree_code_length, tree_code_name): Likewise.
2207         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2208         $(lang_tree_files).
2209         (all-tree.def, s-alltree): New targets.
2210         (gencheck.h, s-gencheck): Remove.
2211         (tree.o): Depend upon all-tree.def.
2212         (build/gencheck.o): Remove gencheck.h dependency.
2213         (mostlyclean): Don't remove gencheck.h.
2214         * c-common.h (enum c_tree_code): Remove.
2215         * c-lang.c (tree_code_type): Remove.
2216         (tree_code_length, tree_code_name): Remove.
2217         * gencheck.c (tree_codes): Include all-tree.def, rather than
2218         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
2219         after it is used.
2220         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2221         than tree.def.
2222         * cp/cp-tree.h (enum cplus_tree_code): Remove.
2223         (operator_name_info): Size to MAX_TREE_CODES.
2224         (assignment_operator_name_info): Likewise.
2225         * cp/cp-lang.c (tree_code_type): Remove.
2226         (tree_code_length, tree_code_name): Remove.
2227         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2228         (assignment_operator_name_info): Likewise.
2229         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2230         MAX_TREE_CODES.
2231         * cp/mangle.c (write_expression): Likewise.
2232         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2233         * fortran/f95-lang.c (tree_code_type): Remove.
2234         (tree_code_length, tree_code_name): Remove.
2235         * java/java-tree.h (enum java_tree_code): Remove.
2236         * java/lang.c (tree_code_type): Remove.
2237         (tree_code_length, tree_code_name): Remove.
2238         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2239         * objc/objc-act.h (enum objc_tree_code): Remove.
2240         * objc/objc-lang.c (tree_code_type): Remove.
2241         (tree_code_length, tree_code_name): Remove.
2242         * objcp/objcp-lang.c (tree_code_type): Remove.
2243         (tree_code_length, tree_code_name): Remove.
2244         * ada/ada-tree.h (enum gnat_tree_code): Remove.
2245         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2246         * ada/misc.c (tree_code_type): Remove.
2247         (tree_code_length, tree_code_name): Remove.
2249 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2251         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2252         the grand_bitmap_obstack.
2254 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2256         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2257         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2258         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2259         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2260         move_stmt_r, new_label_mapper): Likewise.
2261         * tree-complex.c (cvc_lookup): Likewise.
2262         * tree-dfa.c (create_function_ann): Likewise.
2263         * tree-dump.c (dump_register): Likewise.
2264         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2265         find_phi_replacement_condition): Likewise.
2266         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2267         tree_function_versioning): Likewise.
2268         * tree-into-ssa.c (cmp_dfsnum): Likewise.
2269         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2270         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2271         get_nonlocal_debug_decl, convert_nonlocal_reference,
2272         convert_nonlocal_omp_clauses, get_local_debug_decl,
2273         convert_local_reference, convert_local_omp_clauses,
2274         convert_nl_goto_reference, convert_nl_goto_receiver,
2275         convert_tramp_reference, convert_call_expr): Likewise.
2276         * tree-outof-ssa.c (contains_tree_r): Likewise.
2277         * tree-parloops.c (reduction_phi, initialize_reductions,
2278         eliminate_local_variables_1, add_field_for_reduction,
2279         add_field_for_name, create_phi_for_local_result,
2280         create_call_for_reduction_1, create_loads_for_reductions,
2281         create_stores_for_reduction, create_loads_and_stores_for_name):
2282         Likewise.
2283         * tree-phinodes.c (allocate_phi_node): Likewise.
2284         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2285         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2286         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2287         * tree-ssa-coalesce.c (compare_pairs): Likewise.
2288         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2289         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2290         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2291         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
2292         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2293         vn_nary_op_insert): Likewise.
2294         * tree-ssa.c (redirect_edge_var_map_add,
2295         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2296         * tree-vectorizer.c (vectorize_loops): Likewise.
2297         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2298         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2299         tree_cons_stat, build1_stat, build_variant_type_copy,
2300         decl_init_priority_lookup, decl_fini_priority_lookup,
2301         decl_priority_info, decl_restrict_base_lookup,
2302         decl_restrict_base_insert, decl_debug_expr_lookup,
2303         decl_debug_expr_insert, decl_value_expr_lookup,
2304         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2305         type_hash_add, get_file_function_name, tree_check_failed,
2306         tree_not_check_failed, tree_range_check_failed,
2307         omp_clause_range_check_failed, build_omp_clause,
2308         build_vl_exp_stat): Likewise.
2309         * value-prof.c (gimple_histogram_value,
2310         gimple_duplicate_stmt_histograms): Likewise.
2311         * var-tracking.c (attrs_list_insert, attrs_list_copy,
2312         unshare_variable, variable_union_info_cmp_pos, variable_union,
2313         dataflow_set_different_1, dataflow_set_different_2,
2314         vt_find_locations, variable_was_changed, set_variable_part,
2315         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2316         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2317         section_entry_hash, object_block_entry_eq,
2318         object_block_entry_hash, create_block_symbol,
2319         initialize_cold_section_name, default_function_rodata_section,
2320         strip_reg_name, set_user_assembler_name, const_desc_eq,
2321         build_constant_desc, output_constant_def, lookup_constant_def,
2322         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2323         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2324         default_internal_label): Likewise.
2325         * varray.c (varray_init, varray_grow): Likewise.
2326         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2328 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2330         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2331         operators for "test" insn.  Macroize insn using SWI mode macro.
2332         (*jcc_fused_2): Ditto.
2333         (*jcc_fused_3): Macroize insn using SWI mode macro.
2334         (*jcc_fused_4): Ditto.
2336 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
2338         * tree-ssa-pre.c: Fix typo in comment.
2339         (init_antic, fini_antic): Add explicit funtions for
2340         initializing and deinitializing ANTIC and AVAIL sets.
2341         (create_expression_by_pieces): Fix typo in comment.
2342         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2343         (execute_pre): Eventually dump details about ANTIC_IN.
2345 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2347         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2348         * gcc.c (translate_options, init_spec, store_arg, read_specs,
2349         add_to_obstack, file_at_path, find_a_file, execute,
2350         add_preprocessor_option, add_assembler_option, add_linker_option,
2351         process_command, insert_wrapper, do_option_spec, do_self_spec,
2352         spec_path, do_spec_1, is_directory, main, used_arg,
2353         getenv_spec_function): Likewise.
2354         * tlink.c (symbol_hash_lookup, file_hash_lookup,
2355         demangled_hash_lookup, symbol_push, file_push, frob_extension):
2356         Likewise.
2358 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2360         * doc/rtl.texi: Updated subreg section.
2362 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2364         PR c++/36523
2365         * cgraphunit.c (cgraph_process_new_functions): Don't clear
2366         node->needed and node->reachable.
2367         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2368         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2369         (expand_task_call): Don't call expand_task_copyfn.
2370         (expand_task_copyfn): Renamed to...
2371         (finalize_task_copyfn): ... this.
2373 2008-06-19  Jan Hubicka  <jh@suse.cz>
2375         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2376         clobbering framepointer.
2378 2008-06-19  Jan Hubicka  <jh@suse.cz>
2380         * tree-optimize.c (execute_early_local_optimizations): Set
2381         cgraph_state only at first invocation.
2383 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2385         * system.h (-Wc++-compat): Activate as a warning, no an error.
2387 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2389         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2390         instead of "#" in insn asm template.
2391         (*jcc_fused_2): Ditto.
2393 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2395         * config/i386/i386.h (ix86_tune_indices)
2396         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2397         (TARGET_FUSE_CMP_AND_BRANCH): New define.
2398         * config/i386/i386.md (*jcc_fused_1): New insn pattern
2399         (*jcc_fused_2): Ditto.
2400         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2401         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2402         (print operand): Handle 'E' and 'e' code.
2404 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
2406         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2407         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2408         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2410 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
2412         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2413         node->decl.
2414         (cgraph_expand_function): Use local copy of decl.
2415         (cgraph_expand_all_functions): Remove redundant initialization of
2416         order_pos.
2417         (cgraph_optimize): Reword internal_error message.
2419 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
2421         * arm-protos.h (arm_return_in_memory): Remove public
2422         arm_return_in_memory() prototype.
2423         * arm.c (arm_return_in_memory): Add static prototype, add target
2424         hook macro, change definition and comments.
2425         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2427 2008-06-19  Ben Elliston  <bje@au.ibm.com>
2429         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2430         real.c: Remove references to IEEE 754R.
2431         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2432         * doc/libgcc.texi (Decimal float library routines): Likewise.
2434 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2436         * targhooks.h (struct gcc_target): New member unwind_word_mode.
2437         (default_unwind_word_mode): Add prototype.
2438         * targhooks.c (default_unwind_word_mode): New function.
2439         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2440         instead of word_mode.
2441         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2442         (TARGET_INITIALIZER): Use it.
2444         * c-common.c (handle_mode_attribute): Support "unwind_word"
2445         mode attribute.
2446         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2448         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2449         word_mode to access SjLj_Function_Context member "data".
2450         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
2451         conversion from targetm.eh_return_filter_mode () to
2452         targetm.unwind_word_mode () if they differ.
2454         * builtin-types.def (BT_UNWINDWORD): New primitive type.
2455         (BT_FN_UNWINDWORD_PTR): New function type.
2456         (BT_FN_WORD_PTR): Remove.
2457         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2458         * except.c (expand_builtin_extend_pointer): Convert pointer to
2459         targetm.unwind_word_mode () instead of word_mode.
2461         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2462         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2463         (spu_unwind_word_mode): New function.
2464         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2465         (TARGET_UNWIND_WORD_MODE): Define.
2466         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2468 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2470         * config/spu/spu.c (reg_align): Remove.
2471         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2472         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2473         (spu_split_store): Likewise.
2475 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
2477         * gcc/tree-vn.c: Fix typo in comment.
2479 2008-06-18  Jan Hubicka  <jh@suse.cz>
2481         * cgraphunit.c (cgraph_optimize): Output debug info when doing
2482         toplevel reorder too.
2484 2008-06-18  Jan Hubicka  <jh@suse.cz>
2486         * c-opts.c (c_common_post_options): PCH is not compatible with
2487         no-unit-at-a-time.
2488         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2489         -fno-toplevel-reorder by default now.
2491 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2493         PR documentation/30739
2494         * doc/install.texi (Prerequisites): Document dependency on awk.
2496 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
2497             Ian Lance Taylor  <iant@google.com>
2499         PR rtl-optimization/35604
2500         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2501         only want to change jump destinations, not eventual label comparisons.
2503 2008-06-16  Jan Hubicka  <jh@suse.cz>
2505         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2506         syntax errors.
2507         (cgraph_analyze_function): Likewise.
2509 2008-06-16  Jan Hubicka  <jh@suse.cz>
2511         * cgraph.h (cgraph_mark_if_needed): New function.
2512         * cgraphunit.c (cgraph_mark_if_needed): New function.
2513         * c-decl.c (duplicate_decl): Use it.
2515 2008-06-16  Jan Hubicka  <jh@suse.cz>
2517         * cgraph.c (cgraph_add_new_function): When in expansion state, do
2518         lowering.
2520 2008-06-16  Jan Hubicka  <jh@suse.cz>
2522         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2524 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
2525             Kazu Hirata  <kazu@codesourcery.com>
2526             Maxim Kuvyrkov  <maxim@codesourcery.com
2528         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2529         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2530         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2531         EXTRA_SPEC_FUNCTIONS.
2532         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2533         (DRIVER_SELF_SPECS): Adjust.
2534         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2535         * config/mips/st.h, config/mips/t-st: New.
2536         * config/mips/driver-native.c, config/mips/x-native: New.
2537         * doc/invoke.texi (MIPS): Document 'native' value for -march and
2538         -mtune options.
2540 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2542         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2543         from it.
2544         (ISA_HAS_FP_CONDMOVE): New macro.
2545         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2546         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2547         (ISA_HAS_NMADD3_NMSUB3): New macro.
2548         * config/mips/mips.c (mips_rtx_costs): Update.
2549         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2550         compiling for ST Loongson 2E/2F.
2551         (madd<mode>): Rename to madd4<mode>.  Update.
2552         (madd3<mode>): New pattern.
2553         (msub<mode>): Rename to msub4<mode>.  Update.
2554         (msub3<mode>): New pattern.
2555         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
2556         (nmadd3<mode>): New pattern.
2557         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
2558         (nmadd3<mode>_fastmath): New pattern.
2559         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
2560         (nmsub3<mode>): New pattern.
2561         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
2562         (nmsub3<mode>_fastmath): New pattern.
2563         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2565 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2567         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2568         (DF_REF_INSN_INFO): New.
2569         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2570         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2571         with a NULL DF_REF_INSN_INFO.
2572         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2573         DF_INSN_SET.
2574         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2575         DF_INSN_INFO_EQ_USES): New.
2576         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2577         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2578         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2579         * df-core.c: Update comment for above changes.
2580         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2581         DF_INSN_UID_* macros.
2582         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2583         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2584         insn rtx.  Update all callers.
2585         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2586         df_ref_create_structure, df_insn_refs_collect): Likewise.
2587         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2588         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2589         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2590         macros to access the insn refs.
2591         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2592         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2593         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2594         for accessing the refs.
2595         (try_fwprop_subst): Likewise.
2596         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2597         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2598         for accessing the refs.
2599         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2600         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2601         to look at the insn refs.
2602         (record_uses): Likewise.
2603         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2604         function anymore.
2605         (mark_artificial_uses): Don't mark_insn for artificial refs.
2606         (mark_reg_rependencies): Likewise.
2608         * doc/rtl.texi: Remove documentation of ADDRESSOF.
2610 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2612         * configure: Regenerate.
2614 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2616         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2617         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2618         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2620 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2622         * config/avr/avr.c (avr_mcu_t): Add attiny167.
2623         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2624         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2626 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2628         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2629         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2630         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2632 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2634         * tree-ssa-sccvn.c: Fix format of comments.
2636 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2638         * cgraph.c: Remove unneeded forward declarations of eq_node()
2639         and hash_node().
2641 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2643         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2644         REG_RETVAL notes.
2645         (see_update_relevancy): Likewise.
2646         * fwprop.c (try_fwprop_subst): Likewise.
2647         * rtlanal.c (noop_move_p): Likewise.
2648         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2649         notes to non-existing libcall blocks.
2650         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
2651         Remove orig_set.
2652         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2653         (dead_libcall_p): Remove.
2654         (delete_trivially_dead_insns): Don't use it.
2655         * web.c (union_defs): Remove comment about keeping nops.
2656         * gcse.c (hash_scan_insn): Don't take libcall pointers.
2657         (compute_hash_table_work): Don't track libcall notes.
2658         (do_local_cprop): Don't take libcall pointers.  Don't update
2659         libcall notes.
2660         (adjust_libcall_notes): Deleted.
2661         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2662         ever have existed in the first place).
2663         (replace_store_insn): Don't try to remove libcall notes.
2664         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2665         (resolve_reg_notes): Don't call them.
2666         (resolve_simple_move): Likewise.
2667         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2668         Don't remove REG_RETVAL notes.
2669         * emit-rtl.c (try_split): Don't update libcall notes.
2670         (emit_copy_of_insn_after): Dito.
2671         * cselib.c (cselib_current_insn_in_libcall): Remove.
2672         (cselib_process_insn): Don't set/clear it.
2673         (new_elt_loc_list): Don't record it.
2674         (cselib_init): Don't initialize it.
2675         * cselib.c (struct elt_loc_list): Remove in_libcall field.
2676         * loop-invariant.c (find_invariant_insn): Don't look for libcall
2677         notes.
2678         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2679         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2680         (init_deps): Don't initialize it.
2681         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2682         * combine.c (delete_noop_moves): Don't update libcall notes.
2683         (can_combine_p): Remove now pointless #if 0 block.
2684         (try_combine): Remove another obsolete #if 0 block.
2685         (distribute_notes): Don't distribute libcall notes.
2686         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2687         * dce.c (libcall_dead_p): Remove.
2688         (delete_unmarked_insns): Don't handle libcall blocks.
2689         (preserve_libcall_for_dce): Remove.
2690         (prescan_insns_for_dce): Don't special-case libcall block insns.
2691         * reload1 (reload): Don't handle libcall notes. 
2692         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2693         documentation.
2695 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2697         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2698         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2699         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2701 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2703         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2704         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2705         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2707 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2709         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
2711 2008-06-16  Ira Rosen  <irar@il.ibm.com>
2713         PR tree-optimization/36493
2714         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
2715         the arguments list. Use VECTYPE to create vector pointer.
2716         (vectorizable_store): Fail if accesses through a pointer to vectype
2717         do not alias the original memory reference operands.
2718         Call vect_create_data_ref_ptr without the removed argument.
2719         (vectorizable_load): Likewise.
2720         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
2721         removed argument.
2723 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
2725         PR target/36336
2726         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
2727         reg_equiv_constant.
2729 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2731         * config/mips/loongson2ef.md: New file.
2732         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2733         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2734         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2735         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
2736         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
2737         and loongson_2f.
2738         (loongson2ef.md): New include.
2739         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
2740         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
2741         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
2742         (loongson_gt_<mode>, loongson_extract_halfword)
2743         (loongson_insert_halfword_0, loongson_insert_halfword_2)
2744         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
2745         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
2746         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
2747         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
2748         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
2749         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
2750         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
2751         (vec_interleave_low<mode>): Define type attribute.
2752         * config/mips/mips.c (mips_ls2): New static variable.
2753         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
2754         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
2755         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
2756         Implement target scheduling hooks.
2757         (mips_multipass_dfa_lookahead): Update to handle tuning for
2758         Loongson 2E/2F.
2759         (mips_sched_init): Initialize data for Loongson scheduling.
2760         (mips_ls2_variable_issue): New static function.
2761         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
2762         Add sanity check.
2763         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
2764         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
2765         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
2766         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
2767         Handle ST Loongson 2E/2F cores.
2768         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
2770 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2772         * omp-low.c (extract_omp_for_data): Fix comment typo.
2773         * c.opt: Fix typo.
2775 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2777         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
2778         FIXME note about gcc/config.guess.
2779         * doc/options.texi (Option file format): Remove non-ASCII bytes.
2780         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
2781         * doc/cppopts.texi: Likewise.
2782         * doc/extend.texi: Likewise.
2783         * doc/gcc.texi: Likewise.
2784         * doc/gccint.texi: Likewise.
2785         * doc/gcov.texi: Likewise.
2786         * doc/gty.texi: Likewise.
2787         * doc/hostconfig.texi: Likewise.
2788         * doc/install.texi: Likewise.
2789         * doc/invoke.texi: Likewise.
2790         * doc/loop.texi: Likewise.
2791         * doc/makefile.texi: Likewise.
2792         * doc/md.texi: Likewise.
2793         * doc/passes.texi: Likewise.
2794         * doc/tm.texi: Likewise.
2795         * doc/tree-ssa.texi: Likewise.
2796         * doc/trouble.texi: Likewise.
2798 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
2799             Nathan Sidwell  <nathan@codesourcery.com>
2800             Maxim Kuvyrkov  <maxim@codesourcery.com>
2801             Richard Sandiford  <rdsandiford@googlemail.com>
2802         
2803         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
2804         * config/mips/mips-protos.h (mips_expand_vector_init): New.
2805         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
2806         builtins.
2807         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
2808         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
2809         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
2810         V8QImode cases.
2811         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
2812         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
2813         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
2814         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
2815         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
2816         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
2817         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
2818         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
2819         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
2820         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
2821         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
2822         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
2823         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
2824         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
2825         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
2826         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
2827         (mips_builtins): Add Loongson builtins.
2828         (mips_loongson_2ef_bdesc): New.
2829         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
2830         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
2831         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
2832         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
2833         New.
2834         (mips_expand_vector_init): New.
2835         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
2836         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
2837         if appropriate.
2838         * config/mips/mips.md: Add unspec numbers for Loongson
2839         builtins.  Include loongson.md.
2840         (MOVE64): Include Loongson vector modes.
2841         (SPLITF): Include Loongson vector modes.
2842         (HALFMODE): Handle Loongson vector modes.
2843         * config/mips/loongson.md: New.
2844         * config/mips/loongson.h: New.
2845         * config.gcc: Add loongson.h header for mips*-*-* targets.
2846         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
2848 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
2850         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
2851         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
2852         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
2853         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
2854         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
2855         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
2856         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
2857         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
2858         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
2859         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
2860         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
2861         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
2862         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
2863         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
2864         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
2865         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
2866         Remove use_fixproto=yes.
2867         (ia64*-*-hpux*): Remove comment about using fixproto.
2868         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
2870 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2872         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
2873         library rebuilds.
2874         * configure: Regenerate.
2876 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2878         PR middle-end/36520
2879         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
2880         before evaluating it.
2882 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
2884         PR c/36507
2885         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
2886         nested inline functions.
2887         (start_decl, start_function): Don't invert DECL_EXTERNAL
2888         for nested inline functions.
2890 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2892         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
2893         splits that must be made for correctness.
2895 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2897         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
2898         (AVAIL_NON_MIPS16): Likewise.
2899         (mips_builtin_description): Replace target_flags with a predicate.
2900         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
2901         (dspr2_32): New availability predicates.
2902         (MIPS_BUILTIN): New macro.
2903         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
2904         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
2905         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
2906         Replace the TARGET_FLAGS parameters with AVAIL parameters.
2907         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
2908         (mips_dsp_32only_bdesc): Merge into...
2909         (mips_builtins): ...this new array.
2910         (mips_bdesc_map, mips_bdesc_arrays): Delete.
2911         (mips_init_builtins): Update after above changes.
2912         (mips_expand_builtin_1): Merge into...
2913         (mips_expand_builtin): ...here and update after above changes.
2915 2008-06-12  Paul Brook  <paul@codesourcery.com>
2917         * longlong.h (__arm__): Define count_leading_zeros.
2918         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
2919         (clzsi2, clzdi2): New functions.
2920         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
2921         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
2922         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
2923         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
2924         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
2925         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
2926         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
2927         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
2928         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
2929         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
2931 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
2933         * config/m68k/m68k.c (m68k_tune_flags): New.
2934         (override_options): Compute m68k_tune_flags.
2935         (MULL_COST, MULW_COST): Update for various variants of CFV2.
2936         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
2938 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2940         PR middle-end/36506
2941         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
2943 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2945         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
2946         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
2948 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2950         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
2951         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
2953 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2955         PR middle-end/36506
2956         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
2957         reductions.
2959 2008-06-12  Richard Guenther  <rguenther@suse.de>
2961         PR tree-optimization/36345
2962         * tree-flow.h (struct ptr_info_def): Align escape_mask,
2963         add memory_tag_needed flag.
2964         (may_alias_p): Declare.
2965         * tree-ssa-alias.c (may_alias_p): Export.
2966         (set_initial_properties): Use memory_tag_needed flag.
2967         (update_reference_counts): Likewise.
2968         (reset_alias_info): Reset memory_tag_needed flag.
2969         (create_name_tags): Check memory_tag_needed flag.
2970         (dump_points_to_info_for): Dump it.
2971         * tree-ssa-structalias.c (struct variable_info): Remove
2972         directly_dereferenced flag.
2973         (new_var_info): Do not initialize it.
2974         (process_constraint_1): Do not set it.
2975         (update_alias_info): Set is_dereferenced flag.
2976         (set_uids_in_ptset): Use may_alias_p.
2977         (set_used_smts): Check memory_tag_needed flag.
2978         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
2979         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
2980         memory_tag_needed flag.
2981         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
2982         from broken design.
2984 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
2986         * config/i386/i386.c (ix86_compute_frame_layout): Disable
2987         red zone for w64 abi.
2988         (ix86_expand_prologue): Likewise.
2989         (ix86_force_to_memory): Likewise.
2990         (ix86_free_from_memory): Likewise.
2992 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
2994         PR target/36425
2995         * config/rs6000/rs6000.c (rs6000_override_options): Set
2996         rs6000_isel conditionally to the absence of comand line override.
2997         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2998         Remove duplicate rs6000_isel setting.
2999         * config/rs6000/eabispe.h: Ditto.
3001 2008-06-11  Richard Guenther  <rguenther@suse.de>
3003         * alias.c (get_alias_set): Use the element alias-set for arrays.
3004         (record_component_aliases): For arrays and vectors do nothing.
3005         * c-common.c (strict_aliasing_warning): Handle the cases
3006         of alias set zero explicitly.
3007         * Makefile.in (dfp.o-warn): Add -Wno-error.
3009 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3011         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3012         tune_32 tune_64.
3013         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3014         tune_32 tune_64 to supported_defaults.  Allow values not
3015         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3016         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
3017         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3018         with_cpu_64 to generic for 64-bit-supporting configurations, not
3019         with_cpu.  Remove FIXMEs.
3020         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3021         --with-arch-64, --with-tune-32, --with-tune-64): Document.
3022         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3023         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3024         arch_32 and arch_64.
3026 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3027             Olivier Hainque  <hainque@adacore.com>
3029         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3030         Use DECL_SIZE_UNIT to retrieve the size of the field.
3032 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3034         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3035         with function calls after declarations.  Lay out
3036         neon_float_type_node before further use.
3038 2008-06-11  Richard Guenther  <rguenther@suse.de>
3040         * tree-flow.h (may_point_to_global_var): Declare.
3041         * tree-ssa-alias.c (may_point_to_global_var): New function.
3042         * tree-ssa-sink.c (is_hidden_global_store): Use it.
3044 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
3046         * configure.ac: Teach that fido supports .debug_line.
3047         * configure: Regenerate.
3049 2008-06-10  Tom Tromey  <tromey@redhat.com>
3051         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3052         debug hook.
3054 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3056         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3057         (encode_decimal64, decode_decimal64, encode_decimal128,
3058         decode_decimal128): Reverse order of 32-bit parts of value if host
3059         and target endianness differ.
3061 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
3063         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3064         Avoid division by 0.
3065         (tree_mod_pow2_value_transform): Likewise.
3066         (tree_ic_transform): Likewise.
3067         (tree_stringops_transform): Likewise.
3068         (tree_mod_subtract_transform): Likewise.
3069         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3070         (copy_edges_for_bb): Likewise.
3071         (initialize_cfun): Likewise.
3073 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3075         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3076         nonmemory_operand. Add "N" operand constraint.
3077         (*btsi): Ditto.
3078         (*jcc_btdi_mask_rex64): New instruction and split pattern.
3079         (*jcc_btsi_mask): Ditto.
3080         (*jcc_btsi_mask_1): Ditto.
3082 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3084         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3085         TYPE_CANONICAL for copied element type.
3087 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3089         PR target/36473
3090         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3091         Add m_CORE2 and m_GENERIC.
3092         * config/i386/predicates.md (bt_comparison_operator): New predicate.
3093         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3094         (*btsi): Ditto.
3095         (*jcc_btdi_rex64): New instruction and split pattern.
3096         (*jcc_btsi): Ditto.
3097         (*jcc_btsi_1): Ditto.
3098         (*btsq): Fix Intel asm dialect operand order.
3099         (*btrq): Ditto.
3100         (*btcq): Ditto.
3102 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3104         PR middle-end/36447
3105         * simplify-rtx.c (simplify_subreg): Add check for shift count 
3106         greater than size.
3108 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
3110         * doc/md.texi: Synchronize with later constraints.md change.
3111         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3112         with a C implementation.
3113         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3114         MFLO handling.
3115         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3116         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3117         when moving to and from MD_REGNUM.
3118         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3119         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3120         Handle byte and halfword moves.
3121         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3122         separately.
3123         * config/mips/constraints.md (h): Turn into NO_REGS.
3124         (l, x): Update documentation.
3125         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3126         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3127         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3128         (HILO): New mode iterator.
3129         (MOVE128): Add TI.
3130         (any_div): New code iterator.
3131         (u): Extend code attribute to div and udiv.
3132         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3133         d_operand in the splitters.  Remove redundant CONST_INT checks.
3134         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3135         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3136         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
3137         accordingly, using normal moves instead of unspecs to move LO into
3138         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
3139         (<u>mulsidi3): Handle expansion in C code.
3140         (<u>mulsidi3_32bit_internal): Rename to...
3141         (<u>mulsidi3_32bit): ...this.
3142         (<u>mulsidi3_32bit_r4000): Fix insn separator.
3143         (*<u>mulsidi3_64bit): Rename to...
3144         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
3145         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
3146         to set LO and HI to the multiplication result.  Use a normal move
3147         for MFLO and an unspec for MFHI.
3148         (*<u>mulsidi3_64bit_parts): Replace with...
3149         (<u>mulsidi3_64bit_hilo): ...this new instruction.
3150         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3151         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3152         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
3153         instead of HI.  Split the instruction into a separate multiplication
3154         and MFHI if !TARGET_FIX_R4000.
3155         (<su>muldi3_highpart): Likewise.
3156         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3157         and the "=h" clobber.
3158         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3159         (<u>mulditi3): New expander.
3160         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3161         (madsi): Remove "=h" clobber.
3162         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3163         Force the modulus result to be a GPR and split the instruction into
3164         a division followed by an MFHI after reload.
3165         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3166         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
3167         the MIPS16 HIGH define_split.
3168         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3169         of acc<->gpr moves to "multi".
3170         (*movdi_64bit): Replace the single "x" alternative with
3171         alternatives for moving into and out of "a".
3172         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
3173         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3174         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3175         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
3176         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
3177         (movti): New expander.
3178         (*movti, *movti_mips16): New insns.
3179         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3180         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3181         (mthi<GPR:mode>_<HILO:mode>): Likewise.
3182         * config/mips/predicates.md (fpr_operand): Delete.
3183         (d_operand): New predicate.
3185 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
3187         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3188         failure on some Bourne shells.
3189         (x86_64-*-*): Ditto.
3191 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
3193         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3195 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3197         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3198         (sparc-sun-solaris2*): Likewise.
3200 2008-06-09  Arnaud Charlet  <charlet@adacore.com
3202         * doc/install.texi: Update requirements to build the Ada compiler.
3204 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3206         * df-scan.c (struct df_scan_problem_data): Remove the
3207         mw_link_pool alloc pool.
3208         (df_scan_free_internal): Don't free it.
3209         (df_scan_alloc): Don't allocate it.
3210         * df.h (struct df_link): Update comment.
3212 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3214         * except.h: Correct checks for when SJLJ exceptions must be used.
3216 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3218         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3219         default.
3220         
3221 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
3223         PR tree-optimization/36218
3224         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3225         configure for the build system.
3226         (BUILD_LDFLAGS): Define.
3227         * configure: Regenerate.
3228         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3230 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
3232         PR target/36424
3233         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3234         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
3235         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
3237 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
3239         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3241 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3243         * config.gcc (Obsolete configurations): Remove list of
3244         configurations.
3245         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3246         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
3247         targets matched by those patterns.
3248         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3249         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3250         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3251         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3252         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3253         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3254         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3255         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3256         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3257         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3258         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3259         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3260         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3261         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3262         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3263         Make code for Solaris 7 and greater unconditional for Solaris.
3264         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3265         Remove --with-* handling.
3266         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3267         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3268         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3269         LINK_OS_WINDISS_SPEC): Remove.
3270         * config/rs6000/sysv4.opt (mwindiss): Remove.
3271         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3272         * configure: Regenerate.
3273         * doc/cpp.texi: Don't mention BeOS.
3274         * doc/extend.texi (interrupt): Don't mention MS1.
3275         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3276         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3277         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3278         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3279         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3280         Remove.
3281         * doc/invoke.texi (MT Options): Remove.
3282         (-mwindiss): Remove.
3283         (CRIS Options): Remove cris-axis-aout references.
3284         (HPPA Options): Don't mention hppa1.1-*-pro.
3285         * doc/md.texi: (MorphoTech family): Remove.
3286         * libgcc2.c: Don't handle UWIN.
3287         * config/alpha/t-unicosmk: Remove.
3288         * config/alpha/unicosmk.h: Remove.
3289         * config/arm/kaos-arm.h: Remove.
3290         * config/arm/kaos-strongarm.h: Remove.
3291         * config/arm/strongarm-coff.h: Remove.
3292         * config/arm/strongarm-elf.h: Remove.
3293         * config/arm/strongarm-pe.h: Remove.
3294         * config/arm/t-strongarm-pe: Remove.
3295         * config/arm/t-xscale-coff: Remove.
3296         * config/arm/t-xscale-elf: Remove.
3297         * config/arm/xscale-coff.h: Remove.
3298         * config/arm/xscale-elf.h: Remove.
3299         * config/chorus.h: Remove.
3300         * config/cris/aout.h: Remove.
3301         * config/cris/aout.opt: Remove.
3302         * config/cris/t-aout: Remove.
3303         * config/i386/beos-elf.h: Remove.
3304         * config/i386/kaos-i386.h: Remove.
3305         * config/i386/ptx4-i.h: Remove.
3306         * config/i386/sco5.h: Remove.
3307         * config/i386/sco5.opt: Remove.
3308         * config/i386/sysv4-cpp.h: Remove.
3309         * config/i386/sysv5.h: Remove.
3310         * config/i386/t-beos: Remove.
3311         * config/i386/t-sco5: Remove.
3312         * config/i386/t-uwin: Remove.
3313         * config/i386/uwin.asm: Remove.
3314         * config/i386/uwin.h: Remove.
3315         * config/kaos.h: Remove.
3316         * config/mips/windiss.h: Remove.
3317         * config/mt: Remove directory.
3318         * config/pa/pa-osf.h: Remove.
3319         * config/pa/pa-pro-end.h: Remove.
3320         * config/pa/t-pro: Remove.
3321         * config/ptx4.h: Remove.
3322         * config/rs6000/beos.h: Remove.
3323         * config/rs6000/kaos-ppc.h: Remove.
3324         * config/rs6000/t-beos: Remove.
3325         * config/rs6000/windiss.h: Remove.
3326         * config/sh/kaos-sh.h: Remove.
3327         * config/sol2-6.h: Remove.
3328         * config/sparc/sol26-sld.h: Remove.
3329         * config/sparc/sysv4-only.h: Remove.
3330         * config/vax/bsd.h: Remove.
3331         * config/vax/t-memfuncs: Remove.
3332         * config/vax/ultrix.h: Remove.
3333         * config/vax/vaxv.h: Remove.
3334         * config/windiss.h: Remove.
3336 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
3338         PR rtl-optimization/36438
3339         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3340         for vector shifts with constant scalar shift operands.
3342 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
3344         * doc/invoke.texi: Document -march=xlr.
3345         * config/mips/xlr.md: New file.
3346         * config/mips/mips.md: Include it.
3347         (cpu): Add "xlr".
3348         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3349         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3350         (mips_rtx_cost_data): Likewise.
3352 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
3354         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3355         PRE_INC and PRE_DEC cases.
3357 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3359         PR rtl-optimization/36419
3360         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3361         the emitting jump insn.
3363         PR target/36362
3364         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3365         is not bool, boolify the whole *expr_p and convert to the desired type.
3367 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3369         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3370         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3371         Add omp_private_outer_ref hook, add another argument to
3372         omp_clause_default_ctor hook.
3373         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3374         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3375         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3376         hook_tree_tree_tree_tree_null.
3377         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3378         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3379         * hooks.c (hook_tree_tree_tree_tree_null): New function.
3380         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3381         * tree.def (OMP_TASK): New tree code.
3382         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3383         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3384         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3385         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3386         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3387         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3388         OMP_CLAUSE_COLLAPSE_EXPR): Define.
3389         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3390         (OMP_DIRECTIVE_P): Add OMP_TASK.
3391         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3392         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3393         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3394         and OMP_CLAUSE_UNTIED entries.
3395         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
3396         num_ops to 2.
3397         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3398         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3399         * tree-pretty-print.c (dump_omp_clause): Handle
3400         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3401         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3402         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3403         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
3404         warning about unsigned iterators.  Change decl/init/cond/incr
3405         arguments to TREE_VECs, check arguments for all collapsed loops.
3406         (c_finish_omp_taskwait): New function.
3407         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3408         ws_clauses.
3409         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
3410         default_function_array_conversion on init.  Add par_clauses argument.
3411         If decl is present in parallel's lastprivate clause, change it to
3412         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3413         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
3414         collapse count in clauses.
3415         (c_parser_omp_for, c_parser_omp_parallel): Adjust
3416         c_parser_omp_for_loop callers.
3417         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3418         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3419         (c_parser_omp_clause_name): Handle collapse and untied clauses.
3420         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3421         functions.
3422         (c_parser_omp_clause_schedule): Handle schedule(auto).
3423         Include correct location in the error message.
3424         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3425         and PRAGMA_OMP_CLAUSE_UNTIED.
3426         (OMP_TASK_CLAUSE_MASK): Define.
3427         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3428         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3429         * tree-nested.c (convert_nonlocal_omp_clauses,
3430         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3431         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3432         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3433         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3434         OMP_CLAUSE_DECL.
3435         (conver_nonlocal_reference, convert_local_reference,
3436         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
3437         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3438         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3439         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3440         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3441         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3442         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3443         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3444         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3445         OMP_CLAUSE_UNTIED.
3446         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3447         * c-common.h (c_finish_omp_taskwait): New prototype.
3448         * gimple-low.c (lower_stmt): Handle OMP_TASK.
3449         * tree-parloops.c (create_parallel_loop): Create 1 entry
3450         vectors for OMP_FOR_{INIT,COND,INCR}.
3451         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3452         (make_edges): Handle OMP_TASK.
3453         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3454         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3455         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3456         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3457         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3458         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3459         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3460         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3461         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3462         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3463         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3464         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3465         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3466         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3467         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3468         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3469         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3470         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3471         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3472         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3473         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3474         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3475         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3476         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3477         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3478         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3479         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
3480         original iterator is present in lastprivate clause or if
3481         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
3482         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3483         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3484         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3485         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3486         if it is set, lookup var in outer contexts too.  Handle
3487         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
3488         to be implicitly determined firstprivate for task regions.
3489         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3490         if it is set, lookup var in outer contexts too.  Set
3491         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3492         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3493         OMP_CLAUSE_UNTIED.  Take region_type as last argument
3494         instead of in_parallel and in_combined_parallel.
3495         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3496         Adjust callers.
3497         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3498         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
3499         (new_omp_context): Set default_kind to
3500         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3501         (omp_region_type): New enum.
3502         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3503         fields, add region_type.
3504         (new_omp_context): Take region_type as argument instead of is_parallel
3505         and is_combined_parallel.
3506         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3507         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3508         ctx->is_combined_parallel checks.
3509         (gimplify_omp_task): New function.
3510         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3511         OMP_CLAUSE_UNTIED.
3512         * omp-low.c (extract_omp_for_data): Use schedule(static)
3513         for schedule(auto).  Handle pointer and unsigned iterators.
3514         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
3515         Add loops argument.  Extract data for collapsed OMP_FOR loops.
3516         (expand_parallel_call): Assert sched_kind isn't auto,
3517         map runtime schedule to index 3.
3518         (struct omp_for_data_loop): New type.
3519         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3520         Add loop, loops, collapse and iter_type fields.
3521         (workshare_safe_to_combine_p): Disallow combined for if
3522         iter_type is unsigned long long.  Don't combine collapse > 1 loops
3523         unless all bounds and steps are constant.  Adjust extract_omp_for_data
3524         caller.
3525         (expand_omp_for_generic): Handle pointer, unsigned and long long
3526         iterators.  Handle collapsed OMP_FOR loops.  Adjust
3527         for struct omp_for_data changes.  If libgomp function doesn't return
3528         boolean_type_node, add comparison of the return value with 0.
3529         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3530         pointer, unsigned and long long iterators.  Adjust for struct
3531         omp_for_data changes.
3532         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3533         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
3534         unsigned long long.  Allocate loops array, pass it to
3535         extract_omp_for_data.  For collapse > 1 loops use always
3536         expand_omp_for_generic.
3537         (omp_context): Add sfield_map and srecord_type fields.
3538         (is_task_ctx, lookup_sfield): New functions.
3539         (use_pointer_for_field): Use is_task_ctx helper.  Change first
3540         argument's type from const_tree to tree.  Clarify comment.
3541         In OMP_TASK disallow copy-in/out sharing.
3542         (build_sender_ref): Call lookup_sfield instead of lookup_field.
3543         (install_var_field): Add mask argument.  Populate both record_type
3544         and srecord_type if needed.
3545         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3546         in srecord_type.
3547         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3548         and DECL_FIELD_OFFSET.
3549         (scan_sharing_clauses): Adjust install_var_field callers.  For
3550         firstprivate clauses on explicit tasks allocate the var by value in
3551         record_type unconditionally, rather than by reference.
3552         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3553         Use is_taskreg_ctx instead of is_parallel_ctx.
3554         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3555         (create_omp_child_function_name): Add task_copy argument, use
3556         *_omp_cpyfn* names if it is true.
3557         (create_omp_child_function): Add task_copy argument, if true create
3558         *_omp_cpyfn* helper function.
3559         (scan_omp_parallel): Adjust create_omp_child_function callers.
3560         Rename parallel_nesting_level to taskreg_nesting_level.
3561         (scan_omp_task): New function.
3562         (lower_rec_input_clauses): Don't run constructors for firstprivate
3563         explicit task vars which are initialized by *_omp_cpyfn*.  
3564         Pass outer var ref to omp_clause_default_ctor hook if
3565         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3566         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3567         OMP_CLAUSE_REDUCTION_INIT.
3568         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3569         avoid duplicate setting of fields.  Handle
3570         OMP_CLAUSE_PRIVATE_OUTER_REF.
3571         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
3572         copy-out if TREE_READONLY, only copy-in.
3573         (expand_task_copyfn): New function.
3574         (expand_task_call): New function.
3575         (struct omp_taskcopy_context): New type.
3576         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3577         New functions.
3578         (lower_omp_parallel): Rename to...
3579         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3580         Call create_task_copyfn if srecord_type is needed.  Adjust
3581         sender_decl type.
3582         (task_shared_vars): New variable.
3583         (check_omp_nesting_restrictions): Warn if work-sharing,
3584         barrier, master or ordered region is closely nested inside OMP_TASK.
3585         Add warnings for barrier if closely nested inside of work-sharing,
3586         ordered, or master region.
3587         (scan_omp_1): Call check_omp_nesting_restrictions even for
3588         GOMP_barrier calls.  Rename parallel_nesting_level to
3589         taskreg_nesting_level.  Handle OMP_TASK.
3590         (lower_lastprivate_clauses): Even if some lastprivate is found on a
3591         work-sharing construct, continue looking for them on parent parallel
3592         construct.
3593         (lower_omp_for_lastprivate): Add lastprivate clauses
3594         to the beginning of dlist rather than end.  Adjust for struct
3595         omp_for_data changes.
3596         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3597         not after it.  Handle collapsed OMP_FOR loops, adjust for
3598         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3599         (get_ws_args_for): Adjust extract_omp_for_data caller.
3600         (scan_omp_for): Handle collapsed OMP_FOR
3601         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3602         (lower_omp_single_simple): If libgomp function doesn't return
3603         boolean_type_node, add comparison of the return value with 0.
3604         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3605         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
3606         (parallel_nesting_level): Rename to...
3607         (taskreg_nesting_level): ... this.
3608         (is_taskreg_ctx): New function.
3609         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3610         of is_parallel_ctx.
3611         (execute_lower_omp): Rename parallel_nesting_level to
3612         taskreg_nesting_level.
3613         (expand_omp_parallel): Rename to...
3614         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3615         Call omp_task_call for OMP_TASK regions.
3616         (expand_omp): Adjust caller, handle OMP_TASK.
3617         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3619         * bitmap.c (bitmap_default_obstack_depth): New variable.
3620         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3621         if argument is NULL and bitmap_default_obstack is already initialized.
3622         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3623         at the end.
3624         * matrix-reorg.c (matrix_reorg): Likewise.
3626 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
3628         * config/i386/i386.md (*indirect_jump): Macroize using P
3629         mode iterator.  Remove !TARGET_64BIT from insn constraints.
3630         (*tablejump_1): Ditto.
3631         (*indirect_jump_rex64): Remove insn pattern.
3632         (*tablejump_1_rex64): Ditto.
3633         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3634         and eh_return_si insn patterns.
3636 2008-06-06  Richard Guenther  <rguenther@suse.de>
3638         * tree-ssa-structalias.c (merge_smts_into): Remove.
3639         (find_what_p_points_to): Do not bother to compute the
3640         points-to set for pt_anything pointers.
3641         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3642         for pt_anything pointers is ok.
3644 2008-06-06  Jan Hubicka  <jh@suse.cz>
3646         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3648 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3650         * cgraph.c: Fix typos in comments.
3651         (cgraph_availability_names): Fix string typo.
3652         * fold-const.c: Fix typos in comments.
3653         (fold_binary): Fix typo in warning.
3654         * genautomata.c: Fix typos in comments.
3655         (check_presence_pattern_sets): Fix typo in local variable.
3656         (output_description): Fix typo in output.
3657         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3658         * hwint.h: Likewise.
3659         * matrix-reorg.c (check_allocation_function): Likewise.
3660         * omega.c (smooth_weird_equations): Likewise.
3661         * auto-inc-dec.c: Fix typos in comments.
3662         * bb-reorder.c: Likewise.
3663         * builtins.c: Likewise.
3664         * c-common.c: Likewise.
3665         * c-cppbuiltin.c: Likewise.
3666         * c-parser.c: Likewise.
3667         * c-pretty-print.c: Likewise.
3668         * cfgcleanup.c: Likewise.
3669         * cfgexpand.c: Likewise.
3670         * cfghooks.c: Likewise.
3671         * cfglayout.c: Likewise.
3672         * cfgloopmanip.c: Likewise.
3673         * cgraphunit.c: Likewise.
3674         * coverage.c: Likewise.
3675         * dbxout.c: Likewise.
3676         * df-byte-scan.c: Likewise.
3677         * df-core.c: Likewise.
3678         * df-problems.c: Likewise.
3679         * df-scan.c: Likewise.
3680         * dfp.c: Likewise.
3681         * dominance.c: Likewise.
3682         * domwalk.c: Likewise.
3683         * dse.c: Likewise.
3684         * dwarf2out.c: Likewise.
3685         * emit-rtl.c: Likewise.
3686         * et-forest.c: Likewise.
3687         * function.c: Likewise.
3688         * function.h: Likewise.
3689         * gcc.c: Likewise.
3690         * gcov-io.c: Likewise.
3691         * gcov.c: Likewise.
3692         * gcse.c: Likewise.
3693         * genattrtab.c: Likewise.
3694         * ggc-page.c: Likewise.
3695         * gimplify.c: Likewise.
3696         * gthr-lynx.h: Likewise.
3697         * haifa-sched.c: Likewise.
3698         * ipa-cp.c: Likewise.
3699         * ipa-inline.c: Likewise.
3700         * ipa-prop.h: Likewise.
3701         * ipa-pure-const.c: Likewise.
3702         * ipa-struct-reorg.c: Likewise.
3703         * ipa-struct-reorg.h: Likewise.
3704         * ipa-type-escape.c: Likewise.
3705         * ipa.c: Likewise.
3706         * loop-doloop.c: Likewise.
3707         * mips-tfile.c: Likewise.
3708         * mkmap-flat.awk: Likewise.
3709         * mkmap-symver.awk: Likewise.
3710         * modulo-sched.c: Likewise.
3711         * omp-low.c: Likewise.
3712         * optabs.c: Likewise.
3713         * optabs.h: Likewise.
3714         * opts.c: Likewise.
3715         * passes.c: Likewise.
3716         * postreload-gcse.c: Likewise.
3717         * postreload.c: Likewise.
3718         * predict.c: Likewise.
3719         * pretty-print.h: Likewise.
3720         * profile.c: Likewise.
3721         * protoize.c: Likewise.
3722         * ra-conflict.c: Likewise.
3723         * real.c: Likewise.
3724         * recog.c: Likewise.
3725         * regclass.c: Likewise.
3726         * regs.h: Likewise.
3727         * reload.c: Likewise.
3728         * rtl-error.c: Likewise.
3729         * rtlanal.c: Likewise.
3730         * scan.h: Likewise.
3731         * sched-rgn.c: Likewise.
3732         * see.c: Likewise.
3733         * stmt.c: Likewise.
3734         * target.h: Likewise.
3735         * tree-dfa.c: Likewise.
3736         * tree-eh.c: Likewise.
3737         * tree-flow-inline.h: Likewise.
3738         * tree-inline.c: Likewise.
3739         * tree-into-ssa.c: Likewise.
3740         * tree-loop-distribution.c: Likewise.
3741         * tree-nested.c: Likewise.
3742         * tree-parloops.c: Likewise.
3743         * tree-pass.h: Likewise.
3744         * tree-pretty-print.c: Likewise.
3745         * tree-profile.c: Likewise.
3746         * tree-scalar-evolution.c: Likewise.
3747         * tree-sra.c: Likewise.
3748         * tree-ssa-alias-warnings.c: Likewise.
3749         * tree-ssa-ccp.c: Likewise.
3750         * tree-ssa-coalesce.c: Likewise.
3751         * tree-ssa-dom.c: Likewise.
3752         * tree-ssa-dse.c: Likewise.
3753         * tree-ssa-forwprop.c: Likewise.
3754         * tree-ssa-live.c: Likewise.
3755         * tree-ssa-live.h: Likewise.
3756         * tree-ssa-loop-im.c: Likewise.
3757         * tree-ssa-loop-ivopts.c: Likewise.
3758         * tree-ssa-loop-niter.c: Likewise.
3759         * tree-ssa-loop-prefetch.c: Likewise.
3760         * tree-ssa-phiopt.c: Likewise.
3761         * tree-ssa-phiprop.c: Likewise.
3762         * tree-ssa-sccvn.c: Likewise.
3763         * tree-ssa-ter.c: Likewise.
3764         * tree-ssa-threadupdate.c: Likewise.
3765         * tree-ssa.c: Likewise.
3766         * tree-vect-analyze.c: Likewise.
3767         * tree-vect-transform.c: Likewise.
3768         * tree-vectorizer.c: Likewise.
3769         * tree-vn.c: Likewise.
3770         * tree-vrp.c: Likewise.
3771         * tree.c: Likewise.
3772         * tree.def: Likewise.
3773         * tree.h: Likewise.
3774         * unwind-dw2-fde.c: Likewise.
3775         * unwind.inc: Likewise.
3776         * value-prof.c: Likewise.
3777         * vmsdbgout.c: Likewise.
3779 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
3781         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
3782         always place FP constants in the TOC for TARGET_POWERPC64.
3783         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
3785 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
3787         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
3788         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
3789         enable for TARGET_E500_DOUBLE.
3790         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
3791         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
3792         floating-point modes like integer modes for E500 double.
3793         (rs6000_legitimate_offset_address_p): Likewise.
3794         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
3795         addressing for DDmode for E500 double.
3796         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
3797         modes as using 64-bits of registers for E500 double.
3798         (spe_build_register_parallel): Do not handle DDmode or TDmode.
3799         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
3800         specially for E500 double.
3801         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
3802         TDmode for E500 double.
3803         (rs6000_gimplify_va_arg): Only handle SDmode in registers
3804         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
3805         (rs6000_split_multireg_move): Do not handle TDmode specially for
3806         E500 double.
3807         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
3808         using 64-bit registers for E500 double.
3809         (emit_frame_save): Do not handle DDmode specially for E500 double.
3810         (gen_frame_mem_offset): Likewise.
3811         (rs6000_function_value): Do not call spe_build_register_parallel
3812         for DDmode or TDmode.
3813         (rs6000_libcall_value): Likewise.
3814         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
3815         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
3816         for E500 double.
3818 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3820         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
3821         in comments.
3823 2008-06-04  Junjie Gu <jgu@tensilica.com>
3825         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
3826         comparison for frame pointers.
3828 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3830         PR target/27386
3831         * config/avr/avr.h (PUSH_ROUNDING): Remove.
3833 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3835         PR target/30243
3836         * builtins.c (expand_builtin_signbit): Don't take lowpart when
3837         register is already smaller or equal to required mode. 
3839 2008-06-04  Xinliang David Li  <davidxl@google.com>
3841         * tree-call-cdce.c: New file. 
3842         (cond_dead_built_in_calls): New static variable.
3843         (input_domain): New struct.
3844         (check_pow): New function.
3845         (check_builtin_call): Ditto.
3846         (check_target_format): Ditto.
3847         (is_call_dce_candidate): Ditto.
3848         (gen_one_condition): Ditto.
3849         (gen_conditions_for_domain): Ditto.
3850         (get_domain): Ditto.
3851         (gen_conditions_for_pow_cst_base): Ditto.
3852         (gen_conditions_for_pow_int_base): Ditto.
3853         (gen_conditions_for_pow): Ditto.
3854         (get_no_error_domain): Ditto.
3855         (gen_shrink_wrap_conditions): Ditto.
3856         (shrink_wrap_one_built_in_call): Ditto.
3857         (shink_wrap_conditional_dead_built_in_calls): Ditto.
3858         (tree_call_cdce): Ditto.
3859         (gate_call_cdce): Ditto.
3860         (pass_call_cdce): New gimple pass.
3861         * passes.c: (init_optimization_passes): New pass.
3862         * tree-pass.h: New pass declaration.
3863         * opts.c (decode_options): New flag setting.
3864         * common.opt: Add -ftree-builtin-call-dce flag.
3865         * Makefile.in: Add new source file.
3866         * tempvar.def: New tv_id.
3867         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
3869 2008-06-04  Richard Guenther  <rguenther@suse.de>
3871         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
3872         (is_call_clobbered): Always check var_ann->call_clobbered.
3873         (mark_call_clobbered): Always set var_ann->call_clobbered.
3874         (clear_call_clobbered): Always clear var_ann->call_clobbered.
3875         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
3876         (reset_alias_info): Clear call clobbering info on MTAGs and
3877         globals as well.
3878         (set_pt_anything): Set pt_global_mem.
3879         (create_tag_raw): Adjust comment.
3880         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
3882 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
3883             Maxim Kuvyrkov  <maxim@codesourcery.com>
3885         * config/m68k/m68k.opt (mxgot): New option.
3886         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
3887         (m68k_output_addr_const_extra): New.
3888         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
3889         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
3890         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
3891         * doc/invoke.texi (M680x0 Options): Document -mxgot.
3893 2008-06-04  Richard Guenther  <rguenther@suse.de>
3895         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
3896         negative or non-representable offsets.
3898 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3900         * config/i386/i386.c (ix86_gen_leave): New.
3901         (ix86_gen_pop1): Likewise.
3902         (ix86_gen_add3): Likewise.
3903         (ix86_gen_sub3): Likewise.
3904         (ix86_gen_sub3_carry): Likewise.
3905         (ix86_gen_one_cmpl2): Likewise.
3906         (ix86_gen_monitor): Likewise.
3907         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
3908         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
3909         ix86_gen_one_cmpl2 and ix86_gen_monitor.
3910         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
3911         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
3912         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
3913         (ix86_expand_epilogue): Updated.
3914         (print_operand): Handle integer register operand for 'z'.
3915         (ix86_expand_strlensi_unroll_1): Likewise.
3916         (ix86_expand_strlen): Likewise.
3917         (ix86_expand_builtin): Likewise.
3918         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
3919         mov{q}/mov{l} and add{q}/add{l}.
3921 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3923         * config/i386/i386.md (P): New mode iterator.
3924         (SFmode push_operand splitter): Macroize DImode and SImode pushes
3925         using P mode iterator.
3926         (DFmode push_operand splitter): Ditto.
3927         (XFmode push_operand splitter): Ditto.
3928         (DFmode float_extend SFmode push_operand splitter): Ditto.
3929         (XFmode float_extend SFmode push_operand splitter): Do not generate
3930         SImode pushes for 64bit target.  Macroize Dimode and SImode
3931         pushes using P mode iterator.
3932         (XFmode float_extend DFmode push_operand splitter): Ditto.
3934 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3936         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
3937         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
3938         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
3939         return type to int.
3940         (ix86_call_abi_override): Remove check for call_used_regs.
3942 2008-06-03  Richard Guenther  <rguenther@suse.de>
3944         * tree-ssa-structalias.c (find_func_aliases): Add constraints
3945         for the lhs of calls if the return type contains pointers.
3947 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3949         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
3950         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
3951         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
3952         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
3953         of cfun and DEFAULT_ABI to deceide abi mode.
3954         (DEFAULT_ABI): New.
3955         (REG_PARM_STACK_SPACE): Removed.
3956         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
3957         (STACK_BOUNDARY): Use default target to deceide stack boundary.
3958         * config/i386/i386-protos.h (ix86_cfun_abi): New.
3959         (ix86_function_abi): Likewise.
3960         (ix86_function_type_abi): Likewise.
3961         (ix86_call_abi_override): Likewise.
3962         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
3963         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
3964         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
3965         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
3966         specific defines.
3967         (X86_64_REGPARM_MAX): New.
3968         (X86_64_SSE_REGPARM_MAX): New.
3969         (X64_REGPARM_MAX): New.
3970         (X64_SSE_REGPARM_MAX): New.
3971         (X86_32_REGPARM_MAX): New.
3972         (X86_32_SSE_REGPARM_MAX): New.
3973         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
3974         (ix86_function_regparm): Handle user calling abi.
3975         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
3976         by DEFAULT_ABI versus SYSV_ABI check.
3977         (ix86_reg_parm_stack_space): New.
3978         (ix86_function_type_abi): New.
3979         (ix86_call_abi_override): New.
3980         (ix86_function_abi): New.
3981         (ix86_cfun_abi): New.
3982         (init_cumulative_args): Call abi specific initialization.
3983         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
3984         (function_arg_64): Extend SSE_REGPARM_MAX check.
3985         (function_arg (): Remove TARGET_64BIT_MS_ABI.
3986         (ix86_pass_by_reference): Likewise.
3987         (ix86_function_value_regno_p): Likewise.
3988         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
3989         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
3990         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
3991         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
3992         (setup_incoming_varargs_64): Adjust regparm for call abi.
3993         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
3994         (ix86_va_start): Likewise.
3995         (ix86_gimplify_va_arg): Likewise.
3996         (ix86_expand_prologue): Likewise.
3997         (output_pic_addr_const): Likewise.
3998         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
3999         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4000         (x86_output_mi_thunk): Likewise.
4001         (x86_function_profiler): Likewise.
4002         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4003         (SYSV_ABI, MS_ABI): New constants.
4004         (DEFAULT_ABI): New.
4005         (init_regs): Add prototype of function in regclass.c file.
4006         (OVERRIDE_ABI_FORMAT): New.
4007         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4008         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4009         (OUTGOING_REG_PARM_STACK_SPACE): New.
4010         (ix86_reg_parm_stack_space): New prototype.
4011         (CUMULATIVE_ARGS): Add call_abi member.
4012         (machine_function): Add call_abi member.
4013         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4014         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4016 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
4018         PR target/34879
4019         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4020         (avr_builtin_setjmp_frame_value): New function.
4021         * config/avr/avr.md (nonlocal_goto_receiver): Define.
4022         (nonlocal_goto): Define.
4024 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
4026         * config/mips/mips.c (mips_emit_loadgp): Return early if
4027         there is nothing do to, otherwise emit a blockage if
4028         !TARGET_EXPLICIT_RELOCS || crtl->profile.
4029         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4031 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4033         * configure.ac: Drop unneeded backslash ending up in config.in.
4034         * acinclude.m4: Likewise.
4035         * config.in: Regenerate.
4037 2008-05-26  Jan Hubicka  <jh@suse.cz>
4039         * predict.c (maybe_hot_frequency_p): Break out of...
4040         (maybe_hot_bb_p): ... here.
4041         (maybe_hot_edge_p): New.
4042         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4043         * basic-block.h (maybe_hot_edge_p): Declare.
4045 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4047         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4048         (*cmpfp_<mode>_cc): Ditto.
4049         (*fp_jcc_8<mode>_387): Ditto.
4050         (*fop_<MODEF:mode>_2_i387): Ditto.
4051         (*fop_<MODEF:mode>_3_i387): Ditto.
4052         (*fop_xf_2_i387): Ditto.
4053         (*fop_xf_3_i387): Ditto.
4055 2008-06-02  Tomas Bily  <tbily@suse.cz>
4057         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4059 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4061         * config/mips/mips.c (mips_valid_offset_p): New function.
4062         (mips_valid_lo_sum_p): Likewise.
4063         (mips_classify_address): Use them.
4064         (mips_force_address): New function.
4065         (mips_legitimize_address): Use it.
4066         * config/mips/mips.md (MOVE128): New mode iterator.
4067         (movtf): Require TARGET_64BIT.  Remove empty strings.
4068         (*movtf_internal): Rename to...
4069         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
4070         of "R" and use {,fp}{load,store} attributes instead of "multi".
4071         Use a separate define_split.
4072         (*movtf_mips16): New pattern.
4074 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4076         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4077         * config/mips/mips.c (mips_expand_before_return): New function.
4078         (mips_expand_epilogue): Call it.
4079         * config/mips/mips.md (return): Turn into a define_expand.
4080         (*return): New insn.
4082 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4084         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4085         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4086         functions.  Do not emit uses and clobbers of CONCATs; individually
4087         use and clobber their operands.
4088         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4089         gen_clobber, emit_use and gen_use.
4090         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4091         (expand_builtin_return): Likewise.
4092         * cfgbuild.c (count_basic_blocks): Likewise.
4093         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4094         * explow.c (emit_stack_restore): Likewise.
4095         * expmed.c (extract_bit_field_1): Likewise.
4096         * expr.c (convert_move, emit_move_complex_parts): Likewise.
4097         (emit_move_multi_word, store_constructor): Likewise.
4098         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4099         (thread_prologue_and_epilogue_insns): Likewise.
4100         * lower-subreg.c (resolve_simple_move): Likewise.
4101         * optabs.c (widen_operand, expand_binop): Likewise.
4102         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4103         * reload.c (find_reloads): Likewise.
4104         * reload1.c (eliminate_regs_in_insn): Likewise.
4105         * stmt.c (expand_nl_goto_receiver): Likewise.
4106         * config/alpha/alpha.md (builtin_longjmp): Likewise.
4107         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4108         * config/arm/arm.c (arm_load_pic_register): Likewise.
4109         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4110         * config/arm/arm.md (untyped_return): Likewise.
4111         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4112         * config/avr/avr.c (expand_prologue): Likewise.
4113         * config/bfin/bfin.c (do_unlink): Likewise.
4114         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4115         * config/cris/cris.c (cris_expand_prologue): Likewise.
4116         * config/darwin.c (machopic_indirect_data_reference): Likewise.
4117         (machopic_legitimize_pic_address): Likewise.
4118         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4119         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4120         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4121         (ix86_expand_convert_uns_didf_sse): Likewise.
4122         (ix86_expand_vector_init_general): Likewise.
4123         * config/ia64/ia64.md (eh_epilogue): Likewise.
4124         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4125         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4126         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4127         (config/iq2000/iq2000.c): Likewise.
4128         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4129         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4130         (builtin_longjmp): Likewise.
4131         * config/mn10300/mn10300.md (call, call_value): Likewise.
4132         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4133         * config/pdp11/pdp11.md (abshi2): Likewise.
4134         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4135         * config/s390/s390.c (s390_emit_prologue): Likewise.
4136         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4137         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4138         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4139         * config/sh/sh.c (prepare_move_operands): Likewise.
4140         (output_stack_adjust, sh_expand_epilogue): Likewise.
4141         (sh_set_return_address, sh_expand_t_scc): Likewise.
4142         * config/sparc/sparc.c (load_pic_register): Likewise.
4143         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4144         * config/spu/spu.c (spu_expand_epilogue): Likewise.
4145         * config/v850/v850.c (expand_epilogue): Likewise.
4147 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
4149         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4150         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4151         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4152         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
4153         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
4154         stack pointer register.
4155         (output_movhi): Remove code for interrupt specific writing to the 
4156         stack pointer register.
4158 2008-05-31  Richard Guenther  <rguenther@suse.de>
4160         PR tree-optimization/34244
4161         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4162         (tree_expr_nonzero_warnv_p): Likewise.
4163         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4164         ssa_name_nonnegative_p.
4165         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4166         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4167         not tree_expr_nonzero_warnv_p.
4169         PR tree-optimization/36262
4170         Revert
4171         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
4173         PR tree-optimization/34244
4174         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4175         (record_numbers_of_iterations): New function.
4176         (execute_vrp): Cache the numbers of iterations of loops.
4177         * tree-scalar-evolution.c (scev_reset_except_niters):
4178         New function.
4179         (scev_reset): Use scev_reset_except_niters.
4180         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4182 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4184         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4185         __WORKAROUND_RETS when appropriate.
4187 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4189         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4190         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4191         mode iterator.
4192         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4193         *fop_df_comm_sse insn patterns using MODEF mode iterator.
4194         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4195         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4196         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4197         *fop_df_1_mixed insn patterns using MODEF mode iterator.
4198         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4199         *fop_df_1_sse insn patterns using MODEF mode iterator.
4200         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4201         *fop_df_1_i387 insn patterns using MODEF mode iterator.
4202         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4203         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4204         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4205         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4206         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4207         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4208         (*fop_xf_4_i387): Use <MODE> for mode attribute.
4209         (*fop_xf_5_i387): Ditto.
4210         (*fop_xf_6_i387): Ditto.
4212 2008-05-30  Richard Guenther  <rguenther@suse.de>
4214         * builtins.c (build_string_literal): Avoid generating
4215         a non-gimple_val result.
4217 2008-05-30  DJ Delorie  <dj@redhat.com>
4219         * exec-tool.in: Use an environment variable (private) instead of a
4220         file (shared) as a semaphore, so as to not break parallel builds.
4222 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4224         * optabs.c (maybe_encapsulate_block): Remove.
4225         (emit_libcall_block): Adjust accordingly.
4226         * optabs.h (maybe_encapsulate_block): Remove prototype.
4228         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4229         Don't use maybe_encapsulate_block.
4231 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4233         * config/rs6000/rs6000.c (rs6000_legitimize_address,
4234         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4235         rtx is a SYMBOL_REF before calling get_pool_constant.
4237 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4239         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4241 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
4243         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4244         rather than OS names to choose INO_T_EQ definition.
4245         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4246         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4248 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
4250         PR target/36348
4251         * config/darwin-f.c: New.
4252         * config/t-darwin: Added rule to build darwin-f.o.
4253         * config.gcc: Defined new variable, fortran_target_objs.
4254         (*-*-darwin*): Set fortran_target_objs.
4255         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4256         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4257         * configure: Regenerated.
4259 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4261         PR target/35771
4262         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4263         canonical type if needed.
4265 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4267         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4269 2008-05-29  Richard Guenther  <rguenther@suse.de>
4271         PR tree-optimization/36343
4272         PR tree-optimization/36346
4273         PR tree-optimization/36347
4274         * tree-flow.h (clobber_what_p_points_to): Declare.
4275         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4276         pointed-to variable is dereferenced is irrelevant to whether
4277         the pointer can access the pointed-to variable.
4278         (clobber_what_p_points_to): New function.
4279         * tree-ssa-alias.c (set_initial_properties): Use it.
4280         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4281         call clobber check for NMTs.
4283 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4284         
4285         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4286         for printing gcov_type.
4288 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4290         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4291         and the eh region information.
4292         * value-prof.c (gimple_move_stmt_histograms): New function.
4293         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4295 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
4297         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4299 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
4301         * value-prof.c (tree_ic_transform): Print counts.
4302         * tree-profile.c (tree_gen_ic_func_profiler):
4303         Clear __gcov_indreict_call_callee variable to avoid misattribution
4304         of the profile.
4306 2008-05-28  Rafael Espindola  <espindola@google.com>
4308         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4309         invalid sharing.
4311 2008-05-28  Richard Guenther  <rguenther@suse.de>
4313         PR tree-optimization/36339
4314         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4315         and clobbering code out of the loop.
4317 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4319         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4320         letters defined.
4322         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4323         s390_contiguous_bitmask_p, s390_symref_operand_p,
4324         s390_check_symref_alignment, s390_reload_larl_operand,
4325         s390_reload_symref_address): New functions.
4326         (s390_branch_condition_mnemonic): Support compare and branch
4327         instructions.
4328         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4329         and 'W' constraints.
4330         (s390_secondary_reload): Add secondary reloads for unaligned
4331         symbol refs or symbol refs to floating point or QI/TI mode
4332         integer values.
4333         (legitimate_address_p): Accept symbol references as addresses.
4334         (s390_expand_insv): Use rotate and insert selected bits
4335         instruction for insv when building for z10.
4336         (print_operand_address): Handle symbol ref addresses.
4337         (print_operand): Output modifier 'c' added for signed byte values.
4338         (s390_encode_section_info): Mark symbol refs with
4339         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4341         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4342         (length attribute): RRF, RRR have 4 byte length.
4343         (FPALL, INTALL): New mode iterators added.
4344         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4345         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4346         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4347         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4348         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4349         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4350         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4351         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4352         instructions.
4353         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4354         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4355         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4356         reload<INTALL:mode><P:mode>_toreg_z10,
4357         reload<FPALL:mode><P:mode>_tomem_z10,
4358         reload<FPALL:mode><P:mode>_toreg_z10,
4359         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4360         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4361         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4362         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4363         definition.
4364         (movmem, clrmem, cmpmem): New splitters added.
4366         * config/s390/predicates.md (larl_operand): Use
4367         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4368         SYMBOL_REF_ALIGN1_P.
4369         (s390_signed_integer_comparison,
4370         s390_unsigned_integer_comparison): New predicates.
4372         * config/s390/s390-protos.h (s390_check_symref_alignment,
4373         s390_contiguous_bitmask_p, s390_reload_larl_operand,
4374         s390_reload_symref_address,
4375         s390_compare_and_branch_condition_mask): Prototypes added.
4377         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4378         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4379         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4381 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4383         * config/s390/s390.c (z10_cost): New cost function for z10.
4384         (s390_handle_arch_option, override_options): Support -march=z10 switch.
4385         (s390_issue_rate): Adjust issue rate for z10.
4386         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4387         (processor_flags): Add PF_Z10.
4388         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4389         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4390         * gcc/config.gcc: Add z10.
4392 2008-05-28  Richard Guenther  <rguenther@suse.de>
4394         PR tree-optimization/36291
4395         * tree-flow. h (struct gimple_df): Remove var_anns member.
4396         * tree-flow-inline.h (gimple_var_anns): Remove.
4397         (var_ann): Simplify.
4398         * tree-dfa.c (create_var_ann): Simplify.
4399         (remove_referenced_var): Clear alias info from var_anns of globals.
4400         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4401         (delete_tree_ssa): Clear alias info from var_anns of globals.
4402         Do not free var_anns.
4403         (var_ann_eq): Remove.
4404         (var_ann_hash): Likewise.
4406 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4408         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4409         and loongson2f entries.
4410         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4411         * config/mips/mips.h (processor_type): Add Loongson-2E
4412         and Loongson-2F entries.
4413         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4414         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4415         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4416         * doc/invoke.texi (MIPS Options): Document loongson2e
4417         and loongson2f processor names.
4419 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4421         PR target/35767
4422         PR target/35771
4423         * config/i386/i386.c (ix86_function_arg_boundary): Use
4424         alignment of canonical type.
4425         (ix86_expand_vector_move): Check unaligned memory access for
4426         all SSE modes.
4428 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4430         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4431         Moved to the front of file.
4433 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
4434             H.J. Lu  <hongjiu.lu@intel.com>
4436         * dwarf2out.c (current_fde): New.
4437         (add_cfi): Use it.
4438         (lookup_cfa:): Likewise.
4439         (dwarf2out_end_epilogue): Likewise.
4440         (dwarf2out_note_section_used): Likewise.
4442 2008-05-27  Michael Matz  <matz@suse.de>
4444         PR c++/27975
4445         * c.opt (Wenum-compare): New warning option.
4446         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
4448 2008-05-27  Michael Matz  <matz@suse.de>
4450         PR middle-end/36326
4451         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4452         non-BLKmode types.
4453         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4454         into memory as tail calls.
4456 2008-05-27  Richard Guenther  <rguenther@suse.de>
4458         PR tree-optimization/36339
4459         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4460         pointers cause all addressable variables to be call clobbered.
4462 2008-05-27  Richard Guenther  <rguenther@suse.de>
4464         PR tree-optimization/36245
4465         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4467 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4469         * config/s390/s390.md: Replace all occurences of the 'm'
4470         constraint with 'RT'.
4472 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4474         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4475         definitions added.
4476         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4477         "*movdi_64".
4478         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4479         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4480         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4482 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4484         * reload.c: (find_reloads): Skip alternatives according to the
4485         "enabled" attribute. Constify the constraint variable.
4486         * recog.c (get_attr_enabled): Add default implementation.
4487         (extract_insn): Set the alternative_enabled_p array
4488         in the recog_data struct.
4489         (preprocess_constraints, constrain_operands): Skip
4490         alternatives according to the "enabled" attribute
4491         * recog.h (struct recog_data): New field alternative_enabled_p.
4492         (skip_alternative): New inline function.
4493         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4494         (record_reg_classes): Skip alternative according to the
4495         "enabled" attribute.
4497         * doc/md.texi: Add documention for the "enabled" attribute.
4499 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4501         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4502         * postreload.c (reload_cse_simplify_operands): Replace 'm'
4503         constraint with TARGET_MEM_CONSTRAINT.
4504         * recog.c (asm_operand_ok, preprocess_constraints,
4505         constrain_operands): Likewise.
4506         * regclass.c (record_reg_classes): Likewise.
4507         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4508         * reload1.c (maybe_fix_stack_asms): Likewise.
4509         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4510         * recog.h: Adjust comment.
4511         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4512         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4513         * doc/md.texi: Add a note to description of 'm' constraint.
4514         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4516 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4518         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4519         that the bitfield is of integral type before testing its precision.
4521 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4522             Sa Liu  <saliu@de.ibm.com> 
4524         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
4525         __modti3, __udivti3, __umodti3 and __udivmodti4.
4526         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4527         that implement TImode mul and div functions.
4528         * config/spu/multi3.c: New. Implement __multi3.
4529         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4530         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4531         functions on SPU.
4533 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
4535         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4536         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4537         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4538         tls_sysv_suffix): New mode and mode attribute iterators.
4539         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4540         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4541         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4542         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4543         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4544         iterators.
4546 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4548         PR tree-optimization/36329
4549         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4550         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4551         * cgraphbuild.c (initialize_inline_failed): Use the latter
4552         macro in lieu of the former.
4553         * ipa-inline.c (cgraph_mark_inline): Likewise.
4554         (cgraph_decide_inlining_of_small_function): Likewise.
4555         (cgraph_decide_inlining): Likewise.
4556         (cgraph_decide_inlining_incrementally): Likewise.
4558 2008-05-26  Tristan Gingold  <gingold@adacore.com>
4559             Anatoly Sokolov  <aesok@post.ru>
4561         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4562         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4563         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
4564         optimization for 'avr6' architecture.
4566 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
4568         PR target/34932
4569         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4571 2008-05-26  Richard Guenther  <rguenther@suse.de>
4573         * tree-ssa-sccvn.c (expr_has_constants): Declare.
4574         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4576 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4578         PR middle-end/36253
4579         * caller-save.c (insert_restore): Verify alignment of spill space.
4580         (insert_save): Likewise.
4581         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4582         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4583         (STACK_SLOT_ALIGNMENT): Likewise.
4584         * function.c (LOCAL_ALIGNMENT): Removed.
4585         (get_stack_local_alignment): New.
4586         (assign_stack_local): Use it.  Set alignment on stack slot.
4587         (assign_stack_temp_for_type): Use get_stack_local_alignment.
4588         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4589         (STACK_SLOT_ALIGNMENT): New.
4590         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4591         stack slot in XFmode.
4593         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4595 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
4597         PR/36321
4598         * config/i386/i386.md (allocate_stack_worker_64): Make sure
4599         argument operand in rax isn't removed.
4601 2008-05-26  Richard Guenther  <rguenther@suse.de>
4603         PR middle-end/36300
4604         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4605         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
4607 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4609         PR bootstrap/36331
4610         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4612 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
4614         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4615         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4617 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4619         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4620         build a trampoline if we don't want one.
4621         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4622         return zero for nested functions if we don't want a trampoline.
4624 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4626         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4628 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4630         PR fortran/18428
4631         * c.opt: Removed undocumented option '-lang-fortran'.
4632         * c-common.h: Removed global variable 'lang_fortran'.
4633         * c-opts.c (c_common_handle_option): Removed code to handle
4634         option '-lang-fortran'. Updated includes.
4635         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4636         definition of '__GFORTRAN__'.
4637         (define__GNUC__): Reimplemented to use BASEVER and
4638         cpp_define_formatted.
4639         (builtin_define_with_value_n): Removed.
4640         * c-incpath.h: Renamed to ...
4641         * incpath.h: ... this.
4642         * c-incpath.c: Renamed to ...
4643         * incpath.c: ... this. Updated includes.
4644         * fix-header.c: Updated includes.
4645         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4646         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4647         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4649 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4651         * tree.h: Update the table of flags used on tree nodes.
4652         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4653         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4654         (FORCED_LABEL): Add access check.
4655         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4656         (ASM_INPUT_P): Likewise.
4657         (ASM_VOLATILE_P): Likewise.
4658         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4659         (OMP_SECTION_LAST): Access private_flag directly.
4660         (OMP_RETURN_NOWAIT): Likewise.
4661         (OMP_PARALLEL_COMBINED): Likewise.
4662         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4663         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4664         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4665         deprecated_flag directly.
4667 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4669         * final.c (frame_pointer_needed): Removed.
4670         * flags.h (frame_pointer_needed): Likewise.
4672         * function.h (rtl_data): Add frame_pointer_needed.
4673         (frame_pointer_needed): New.
4675 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
4677         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4679 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
4681         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4682         SRC is a REG.
4684 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
4686         * c-common.c (strip_array_types): Move function to..
4687         * tree.c: ..here.
4688         (get_inner_array_type): Delete.
4689         * c-common.h (strip_array_types): Move declaration to..
4690         * tree.h: ..here.
4691         (get_inner_array_type): Delete.
4692         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4693         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4694         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4695         * config/pa/pa.c (emit_move_sequence): Likewise.
4697 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4699         * config/i386/i386.md (*sse_prologue_save_insn): Set length
4700         attribute to 34.
4702 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
4704         * function.c: Include target hook for nonlocal_goto frame value.
4706 2008-05-24  Richard Guenther  <rguenther@suse.de>
4708         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
4709         variable can be only accessed through a pointer or a union.
4711 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4713         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
4714         * doc/extend.texi: Likewise.
4716 2008-05-23  DJ Delorie  <dj@redhat.com>
4718         * config/m32c/jump.md (untyped_call): Add.
4720         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
4721         for A24 to PSImode.
4722         (m32c_address_cost): Detail costs for indirect offsets.
4724 2008-05-23  Rafael Espindola  <espindola@google.com>
4726         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
4727         if a node is a SUBREG.
4728         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
4729         is a SUBREG.
4731 2008-05-23  Paul Brook  <paul@codesourcery.com>
4732             Carlos O'Donell  <carlos@codesourcery.com>
4734         * doc/extend.texi: Clarify use of __attribute__((naked)).
4735         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4736         * target.h (gcc_target): Add allocate_stack_slots_for_args.
4737         * function.c (use_register_for_decl): Use
4738         targetm.calls.allocate_stack_slots_for_args.
4739         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4740         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
4741         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4743 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4745         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
4747 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
4749         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
4750         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
4751         is only rounded once.
4753 2008-05-23  Richard Guenther  <rguenther@suse.de>
4755         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
4757 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
4758             Jakub Jelinek  <jakub@redhat.com>
4760         PR target/36079
4761         * configure.ac: Handle --enable-cld.
4762         * configure: Regenerated.
4763         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
4764         * config/i386/i386.h (struct machine_function): Add needs_cld field.
4765         (ix86_current_function_needs_cld): New define.
4766         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
4767         (cld): New isns pattern.
4768         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
4769         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
4770         * config/i386/i386.opt (mcld): New option.
4771         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
4772         TARGET_CLD and ix86_current_function_needs_cld.
4773         (override_options): Use -mcld by default for 32-bit code if
4774         USE_IX86_CLD.
4776         * doc/install.texi (Options specification): Document --enable-cld.
4777         * doc/invoke.texi (Machine Dependent Options)
4778         [i386 and x86-64 Options]: Add -mcld option.
4779         (Intel 386 and AMD x86-64 Options): Document -mcld option.
4781 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
4782         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
4783         (return_in_memory_64): Likewise.
4784         (return_in_memory_ms_64): Likewise.
4786 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4788         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
4789         * builtins.c (fold_builtin_fpclassify): New.
4790         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
4791         * builtins.def (BUILT_IN_FPCLASSIFY): New.
4792         * c-common.c (handle_type_generic_attribute): Adjust to accept
4793         fixed arguments before an elipsis.
4794         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
4795         * doc/extend.texi: Document __builtin_fpclassify.
4797 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
4799         * omp-low.c (gate_expand_omp_ssa): Remove.
4800         (pass_expand_omp_ssa): Remove.
4801         (gate_expand_omp): Do not check for flag_openmp_ssa.
4802         * common.opt (-fopenmp-ssa): Remove.
4803         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
4805 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4807         * config/sh/sh.opt (mfixed-range): New option.
4808         * config/sh/sh-protos.h (sh_fix_range): Declare.
4809         * config/sh/sh.c (sh_fix_range): New function.
4810         * config/sh/sh.h (sh_fixed_range_str): Declare.
4811         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
4812         is not empty.
4813         * doc/invoke.texi (SH Options): Document -mfixed-range.
4815 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
4817         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
4818         it before the redeclaration.
4820 2008-05-22  Anatoly Sokolov <aesok@post.ru>
4822         * config/avr/avr.c (get_sequence_length): Add new function.
4823         (expand_prologue, expand_epilogue): Remove duplicate code.
4825 2008-05-22  Rafael Espindola  <espindola@google.com>
4827         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
4828         sharing.
4830 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4832         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
4833         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
4835         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
4836         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
4837         (vect_update_misalignment_for_peel): Likewise.
4838         (vector_alignment_reachable_p): Likewise.
4839         * tree-vect-transform.c (vectorizable_load): Likewise.
4840         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4841         (get_vectype_for_scalar_type): Pass mode of scalar_type
4842         to UNITS_PER_SIMD_WORD.
4844         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
4845         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4846         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4847         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4848         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4850 2008-05-22  Ira Rosen  <irar@il.ibm.com>
4852         PR tree-optimization/36293
4853         * tree-vect-transform.c (vect_transform_strided_load): Don't check
4854         if the first load must be skipped because of a gap.
4856 2008-05-22  Richard Guenther  <rguenther@suse.de>
4858         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
4859         more cases of offset disambiguation that is possible if
4860         strict-aliasing rules apply.
4861         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
4862         for basic offset and type-based disambiguation.
4864 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4866         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
4867         ix86_expand_vector_set on V16QImode for SSE4.1.
4869 2008-05-21  Tom Tromey  <tromey@redhat.com>
4871         * c.opt (Wimport): Mark as undocumented.
4872         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
4873         -Wno-import.
4874         (Warning Options): Likewise.
4875         * doc/cppopts.texi: Don't mention -Wimport.
4877 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
4879         PR tree-optimization/36287
4880         PR tree-optimization/36286
4881         * lambda-code.c (build_access_matrix): Do not use the loop->num
4882         for computing the number of induction variables: use the loop depth
4883         instead.
4885 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
4887         PR/36280
4888         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
4889         option -f(no-)leading-underscore.
4891 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4893         * config/i386/i386.c (ix86_expand_vector_init_general): Use
4894         GET_MODE_NUNITS (mode).
4896 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
4898         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
4899         (-mmulhw): Add 464 to description.
4900         (-mdlmzb): Likewise.
4901         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
4902         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
4903         464fp entries.
4904         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
4905         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
4906         * config/rs6000/rs6000.md: Update comments for 464.
4908 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
4910         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
4912 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4914         * config/i386/sse.md (vec_extractv4sf): Removed.
4915         (vec_extractv2df): Likewise.
4916         (vec_extractv2di): Likewise.
4917         (vec_extractv4si): Likewise.
4918         (vec_extractv8hi): Likewise.
4919         (vec_extractv16qi): Likewise.
4920         (vec_extract<mode>): New.
4922 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4924         * config/i386/sse.md (vec_setv4sf): Removed.
4925         (vec_setv2df): Likewise.
4926         (vec_setv2di): Likewise.
4927         (vec_setv4si): Likewise.
4928         (vec_setv8hi): Likewise.
4929         (vec_setv16qi): Likewise.
4930         (vec_set<mode>): New.
4932 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4934         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
4935         goto for vec_concat and vec_interleave.
4937 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4939         * config/i386/sse.md (vec_initv4sf): Removed.
4940         (vec_initv2df): Likewise.
4941         (vec_initv2di): Likewise.
4942         (vec_initv4si): Likewise.
4943         (vec_initv8hi): Likewise.
4944         (vec_initv16qi): Likewise.
4945         (vec_init<mode>): New.
4947 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
4949         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
4951 2008-05-21  Tom Tromey  <tromey@redhat.com>
4953         * ggc-zone.c (lookup_page_table_if_allocated): New function.
4954         (zone_find_object_offset): Likewise.
4955         (gt_ggc_m_S): Likewise.
4956         (highest_bit): Likewise.
4957         * ggc-page.c (gt_ggc_m_S): New function.
4958         * stringpool.c (string_stack): Remove.
4959         (init_stringpool): Update.
4960         (ggc_alloc_string): Use ggc_alloc.
4961         (maybe_delete_ident): New function.
4962         (ggc_purge_stringpool): Likewise.
4963         (gt_ggc_m_S): Remove.
4964         * ggc-common.c (ggc_protect_identifiers): New global.
4965         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
4966         ggc_protect_identifiers.
4967         * ggc.h (ggc_protect_identifiers): Declare.
4968         (gt_ggc_m_S): Update.
4969         (ggc_purge_stringpool): Declare.
4970         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
4971         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
4972         special case.
4973         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
4975 2008-05-21  David S. Miller  <davem@davemloft.net>
4977         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
4978         tmake_file.
4980 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4982         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
4983         once finished.
4985 2008-05-20  David Daney  <ddaney@avtrex.com>
4987         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
4988         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
4989         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4990         UNSPEC_UPDATE_GOT_VERSION): Renumber.
4991         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
4992         (atomic_hiqi_op): New define_code_iterator.
4993         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
4994         mips_expand_compare_and_swap_12.
4995         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
4996         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
4997         (sync_<optab><mode>, sync_old_<optab><mode>,
4998         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
4999         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5000         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5001         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5002         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5003         (test_and_set_12): New insn.
5004         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5005         sync_new_<optab><mode>, sync_old_nand<mode>,
5006         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
5007         clobber to operand 0 for SI and DI mode insns.
5008         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5009         mips_gen_fn_4): New typedefs.
5010         (mips_gen_fn_ptrs): Define new union type.
5011         (mips_expand_compare_and_swap_12): Remove declaration.
5012         (mips_expand_atomic_qihi): Declare function.
5013         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5014         (mips_expand_atomic_qihi): ... this.  Use new generator function
5015         parameter.
5016         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5017         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5018         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5019         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5020         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5021         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5022         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5023         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5024         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5025         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5026         New macros.
5028 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5030         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5031         the missing break.
5033 2008-05-20  Anatoly Sokolov <aesok@post.ru>
5035         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5036         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5037         (avr_attribute_table): Add 'OS_main' function attribute.
5038         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5039         functions with 'OS_main' attribute.
5041 2008-05-20  Richard Guenther  <rguenther@suse.de>
5043         PR tree-optimization/35204
5044         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5045         helper, split out from ...
5046         (DFS): ... here.  Make the DFS walk non-recursive.
5048 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
5049             Jan Sjodin  <jan.sjodin@amd.com>
5051         PR tree-optimization/36181
5052         * tree-parloops.c (loop_has_vector_phi_nodes): New.
5053         (parallelize_loops): Don't parallelize when the loop has vector
5054         phi nodes.
5056 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5057             Sebastian Pop  <sebastian.pop@amd.com>
5059         * tree-loop-linear.c (gather_interchange_stats): Look in the access
5060         matrix, and never look at the tree representation of the memory
5061         accesses.
5062         (linear_transform_loops): Computes parameters and access matrices.
5063         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5064         when fails.
5065         (access_matrix_get_index_for_parameter): New.
5066         * tree-data-ref.h (struct access_matrix): New.
5067         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5068         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5069         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5070         am_vector_index_for_loop): New.
5071         (struct data_reference): Add field access_matrix.
5072         (DR_ACCESS_MATRIX): New.
5073         (compute_data_dependences_for_loop): Update declaration.
5074         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5075         * lambda.h (lambda_vector_vec_p): Declared.
5076         * lambda-code.c: Depend on pointer-set.h.
5077         (lambda_collect_parameters_from_af, lambda_collect_parameters,
5078         av_for_af_base, av_for_af, build_access_matrix,
5079         lambda_compute_access_matrices): New.
5080         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5082 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
5084         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5085         $SOURCEDIR/include.
5087 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5088             Sebastian Pop  <sebastian.pop@amd.com>
5090         PR tree-optimization/36206
5091         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5092         FOLD_CONVERSIONS.
5093         (instantiate_scev_1): Rename flags to fold_conversions.
5094         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5095         outeside instantiation_loop.
5096         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5097         (evolution_function_is_affine_or_constant_p): Removed.
5098         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5099         instantiate_scev.
5100         (analyze_siv_subscript): Pass in the loop nest number.
5101         Call evolution_function_is_affine_in_loop instead of 
5102         evolution_function_is_affine_p.
5103         (analyze_overlapping_iterations): Pass in the loop nest number.
5105 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5106             Sebastian Pop  <sebastian.pop@amd.com>
5108         PR tree-optimization/36206
5109         * tree-chrec.h (chrec_fold_op): New.
5110         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5111         and other trees.
5113 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
5115         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5116         (DIRS_EQ): New.
5117         (remove_duplicates): Do not set inode on non-inode systems.
5118         Use DIRS_EQ.
5120 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5122         * config.gcc (tm_file): Update comments about relative pathnames.
5124 2008-05-20  Richard Guenther  <rguenther@suse.de>
5126         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5127         * tree-ssa-sccvn.c (process_scc): Likewise.
5128         * tree-ssa-sink.c (execute_sink_code): Likewise.
5129         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5130         * tree-vrp.c (process_assert_insertions): Likewise.
5131         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5132         (perform_tree_ssa_dce): Likewise.
5133         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5134         (dump_dominator_optimization_stats): Likewise.
5135         * tree-vectorizer.c (vectorize_loops): Likewise.
5137 2008-05-20  Richard Guenther  <rguenther@suse.de>
5139         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5141 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
5143         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5144         (ix86_i386elf_return_in_memory): Likewise.
5145         (ix86_i386interix_return_in_memory): Likewise.
5146         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5147         (SUBTARGET_RETURN_IN_MEMORY): New.
5148         * config/i386/i386elf.h: Likewise.
5149         * config/i386/ptx4-i.h: Likewise.
5150         * config/i386/sol2-10.h: Likewise.
5151         * config/i386/sysv4.h: Likewise.
5152         * config/i386/vx-common.h: Likewise.
5153         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5154         * config/i386/i386.c (ix86_return_in_memory): Made static and
5155         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5156         (ix86_i386elf_return_in_memory): Removed.
5157         (ix86_i386interix_return_in_memory): Removed.
5158         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5159         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5161 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
5163         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5165 2008-05-19  Xinliang David Li  <davidxl@google.com>
5167         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
5168         * opts.c: Ditto.
5169         * common.opt: Ditto.
5170         * doc/invoke.texi: Ditto.
5172 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5174         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5175         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5177 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5179         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5180         sizes of operand array from 8/4 to 4/2.
5181         (ix86_expand_vector_init_general): Change size of operand array
5182         from 32 to 16.  Remove op0, op1 and half_mode.
5184 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5186         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5187         (ix86_expand_vector_init_interleave): Likewise.
5188         (ix86_expand_vector_init_general): Use them.  Assert
5189         word_mode == SImode when n_words == 4.
5191 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
5193         * config/i386/i386.c (ix86_secondary_reload): New static function.
5194         (TARGET_SECONDARY_RELOAD): New define.
5195         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5196         * config/i386/i386.md (reload_outqi): Remove.
5198 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5200         PR middle-end/35509
5201         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5202         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
5203         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5204         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5205         (fold_builtin_1): Likewise.
5206         * builtins.def (BUILT_IN_ISINF_SIGN): New.
5207         c-common.c (check_builtin_function_arguments): Handle
5208         BUILT_IN_ISINF_SIGN.
5209         * doc/extend.texi: Document __builtin_isinf_sign.
5210         * fold-const.c (operand_equal_p): Handle COND_EXPR.
5212 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
5214         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5215         EH cleanup at the end of the pass, search for those that have been
5216         turned into forwarder blocks and do the cleanup on their successor.
5218 2008-05-18  Richard Guenther  <rguenther@suse.de>
5220         * tree-cfg.c (verify_gimple_expr): Allow conversions from
5221         pointers to sizetype and vice versa.
5223 2008-05-18 Xinliang David Li   <davidxl@google.com>
5225         * gcc/tree-ssa-dce.c: Coding style fix.
5226         (check_pow): Documentation comment. 
5227         (check_log): Documenation comment. Coding style fix.
5228         (is_unnecessary_except_errno_call): Ditto.
5229         (gen_conditions_for_pow): Ditto.
5230         (gen_conditions_for_log): Ditto.
5231         (gen_shrink_wrap_conditions): Ditto.
5232         (shrink_wrap_one_built_in_calls): Ditto.
5233         * gcc/doc/invoke.texi: Better documentation string.
5234         * ChangeLog: Fix wrong change log entries from 
5235         May 17 checkin on function call DCE.
5237 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5239         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5241 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
5243         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5244         * df-problems.c (simulation routines): Fixed block comment to
5245         properly say how to add forwards scanning functions.
5246         
5247 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5249         * tree-inline.c (setup_one_parameter): Remove dead code.
5251 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5253         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5254         a BIT_AND_EXPR only for an INTEGER_TYPE.
5256 2008-05-17 Xinliang David Li   <davidxl@google.com>
5258         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5259         (check_pow, check_log, is_unnecessary_except_errno_call): New 
5260         functions to check for eliminating math functions that are pure 
5261         except for setting errno.
5262         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5263         general condition expressions for shrink-wrapping pow/log calls.
5264         (gen_shrink_wrap_conditions): Ditto.
5265         (shrink_wrap_one_built_in_call): Ditto.
5266         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5267         (mark_operand_necessary): If debugging, output if OP is necessary.
5268         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5269         unnecessary.
5270         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5271         opt level >= 2.
5272         * gcc/common.opt: New user flag -ftree-builtin-dce.
5273         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5275 2008-05-16  David S. Miller  <davem@davemloft.net>
5277         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5278         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5280 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
5282         PR target/36246
5283         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5285 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5287         * ifcvt.c (dead_or_predicable): Rename
5288         df_simulate_one_insn_backwards to df_simulate_one_insn.
5289         * recog.c (peephole2_optimize): Ditto.
5290         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5291         Ditto.
5292         * df.h: Rename df_simulate_one_insn_backwards to
5293         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
5294         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5295         scanning of defs and uses.
5296         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5297         (df_simulate_one_insn_forwards): Removed.
5299 2008-05-16  Doug Kwan  <dougkwan@google.com>
5301         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5302         QNaN & SNaN.
5303         (real_from_string): Handle NaNs and Inf as approriate.
5305 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5307         * doc/gty.texi (Source Files Containing Type Information): Note
5308         that headers should appear first in the gtfiles list.
5310 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5312         * tree.def (COND_EXEC): Properly documented this code.
5314 2008-05-16  Diego Novillo  <dnovillo@google.com>
5316         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5317         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5318         the new field.
5320 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5322         * tree-ssa-dse (max_stmt_uid): Removed.
5323         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
5324         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5325         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5326         * function.h (cfun.last_stmt_uid): New field.
5327         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5328         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5329         New functions.
5330         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5331         (create_stmt_ann): Initialize the ann->uid field.
5332         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5333         with new calls.
5334         * tree-flow.h (renumber_gimple_stmt_uids): New function.
5336 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5338         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5339         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5340         (init_empty_tree_cfg): Call it.
5342 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5344         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
5345         Update all users.
5347 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5349         * doc/invoke.text (-fdump-tree-*-verbose): New option.
5350         * tree-dump.c (dump_options): New verbose option.
5351         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5352         Add verbose dump.
5353         * tree-pass.h (TDF_VERBOSE): New dump flag.
5354         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5355         (tree-flow.h): Added include.
5356         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
5358 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
5360         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5362         From Jie Zhang  <jie.zhang@analog.com>
5363         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5364         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5365         mcpu=bf561-none and mcpu=bf561-0.2.
5366         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5367         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5368         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5369         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5370         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5371         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5372         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
5373         option.
5374         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5375         (cputype_selected): Remove.
5376         (bfin_handle_option): Don't use cputype_selected.
5377         (override_options): When no mcpu option, enable all workarounds.
5378         Don't use bfin_workarounds.
5379         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5380         processor type.
5381         (DEFAULT_CPU_TYPE): Don't define.
5383 2008-05-16  Richard Guenther  <rguenther@suse.de>
5385         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5386         on deletion of the last stmt.
5388 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5390         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5391         V8HImode for SSE2 and V16QImode for SSE4.1.
5393 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
5395         * cgraph.h (compute_inline_parameters): Made public.
5396         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5397         variable_generate_summary, function_write_summary,
5398         variable_write_summary, variable_read_summary.  Added generate_summary,
5399         write_summary, read_summary.
5400         * cgraphunit.c (cgraph_process_new_functions): Changed call from
5401         pass_ipa_inline.function_generate_summary, to
5402         compute_inline_parameters. 
5403         * ipa-inline.c (compute_inline_parameters): Made public and added
5404         node parameter.
5405         (compute_inline_parameters_for_current): New function.
5406         (pass_inline_param): Now calls compute_inline_parameters_for_current.
5407         (inline_generate_summary): Removed parameter and made to loop over
5408         all cgraph nodes.
5409         (pass_ipa_inline): Updated for new IPA_PASS structure.
5410         * passes.c (execute_ipa_summary_passes): Now is called once per
5411         pass rather than once per node*pass.
5412         
5413 2008-05-15  Anatoly Sokolov <aesok@post.ru>
5415         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
5416         avr_have_mul_p, avr_asm_only_p): Remove variables.
5417         (avr_override_options): Remove initialization of removed variables.
5418         (avr_file_start):  Convert removed variables to fields of 
5419         'struct base_arch_s *avr_current_arch'. 
5420         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5421         (AVR_HAVE_MUL): (Ditto.).
5422         (AVR_HAVE_MOVW): (Ditto.).
5423         (AVR_HAVE_LPMX): (Ditto.). 
5424         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
5425         avr_asm_only_p): Remove declaration.
5427 2008-05-15  Diego Novillo  <dnovillo@google.com>
5429         * config/arm/arm.c (arm_return_in_memory): Fix return type.
5430         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5432 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
5434         PR middle-end/36194
5435         * combine.c (check_conversion): Rename back to check_promoted_subreg.
5436         Don't call record_truncated_value from here.
5437         (record_truncated_value): Turn it into a for_each_rtx callback.
5438         (record_truncated_values): New function.
5439         (combine_instructions): Call note_uses with record_truncated_values.
5440         Change name of check_conversion to check_promoted_subreg. 
5442 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5444         * doc/sourcebuild.texi: Document support for torture tests.
5446 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5448         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5449         to alternative 4 of operand 2.
5451 2008-05-15  Richard Guenther  <rguenther@suse.de>
5453         * tree-pass.h (current_pass): Declare.
5454         (get_pass_for_id): Likewise.
5455         * passes.c (passes_by_id, passes_by_id_size): New globals.
5456         (set_pass_for_id): New function.
5457         (get_pass_for_id): Likewise.
5458         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5459         (execute_function_todo): Flush per function statistics.
5460         * toplev.c (compile_file): Init statistics.
5461         (general_init): Do early statistics initialization.
5462         (finalize): Finish statistics.
5463         * statistics.h (statistics_early_init): Declare.
5464         (statistics_init): Likewise.
5465         (statistics_fini): Likewise.
5466         (statistics_fini_pass): Likewise.
5467         (statistics_counter_event): Likewise.
5468         (statistics_histogram_event): Likewise.
5469         * statistics.c: New file.
5470         * Makefile.in (OBJS-common): Add statistics.o.
5471         (statistics.o): Add dependencies.
5472         * doc/invoke.texi (-fdump-statistics): Document.
5474         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5475         (insert): Likewise.
5476         (execute_pre): Use statistics_counter_event.
5477         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5478         (substitute_and_fold): Increment it.  Use statistics_counter_event.
5480 2008-05-15  Diego Novillo  <dnovillo@google.com>
5482         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5484         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5485         * tree-ssa-alias.c (new_type_alias): Remove references to
5486         sub-variables from comment.
5487         * tree-ssa-operands.c (swap_tree_operands): Likewise.
5489 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5491         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5492         attribute to 1 only for insertps alternative.
5494 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5496         * config/bfin/bfin.md (loadbytes): New pattern.
5497         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5498         (bfin_init_builtins): Initialize it.
5499         (bdesc_1arg): Add it.
5501 2008-05-15  Sa Liu  <saliu@de.ibm.com>
5503         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5504         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5505         * testsuite/lib/target-supports.exp: Add
5506         check_effective_target_fortran_integer_16.
5508 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5510         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5511         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5512         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
5513         (TARGET_RETURN_IN_MEMORY): Define.
5515 2008-05-15  Richard Guenther  <rguenther@suse.de>
5517         PR middle-end/36244
5518         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5519         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5520         represent unmodifiable vars.
5522 2008-05-15  Richard Guenther  <rguenther@suse.de>
5524         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5525         INDIRECT_REF and TARGET_MEM_REF.
5526         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5527         TARGET_MEM_REF.
5529 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5530             H.J. Lu  <hongjiu.lu@intel.com>
5532         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5533         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5534         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
5535         insn alternatives.  Add missing alternatives.
5536         (*vec_concatv2di_rex64_sse4_1): Likewise.
5537         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5538         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5539         Require TARGET_SSE.
5541 2008-05-15  Richard Guenther  <rguenther@suse.de>
5543         PR tree-optimization/36009
5544         PR tree-optimization/36204
5545         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5546         (determine_invariantness_stmt): Record the loop a store is
5547         always executed in.
5548         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5549         dependency.
5551 2008-05-15  Richard Guenther  <rguenther@suse.de>
5553         PR tree-optimization/34330
5554         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5555         through the pointer will alias the SMT.
5557 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
5559         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5561 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5563         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5565 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5566             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5568         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5569         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5570         (vashl_optab): New optab for vector/vector shifts.
5571         (vashr_optab): Ditto.
5572         (vlshr_optab): Ditto.
5573         (vrotl_optab): Ditto.
5574         (vrotr_optab): Ditto.
5575         (optab_subtype): New enum for optab_for_tree_code call.
5576         (optab_for_tree_code): Add enum optab_subtype argument.
5578         * optabs.c (optab_for_tree_code): Take an additional argument to
5579         distinguish between a vector shift by a scalar and vector shift by
5580         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
5581         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
5582         vector shift by a vector.
5583         (expand_widen_pattern_expr): Pass additional argument to
5584         optab_for_tree_code.
5586         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5587         vrotl_optab, vrotr_optab.
5589         * expr.c (expand_expr_real_1): Update calls to
5590         optab_for_tree_code to distinguish between vector shifted by a
5591         scalar and vector shifted by a vector.
5592         * tree-vectorizer.c (supportable_widening_operation): Ditto.
5593         (supportable_narrowing_operation): Ditto.
5594         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5595         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5596         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5597         (vect_create_epilog_for_reduction): Ditto.
5598         (vectorizable_reduction): Ditto.
5599         (vectorizable_operation): Ditto.
5600         (vect_strided_store_supported): Ditto.
5601         (vect_strided_load_supported): Ditto.
5602         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5603         * expmed.c (expand_shift): Ditto.
5605         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5606         scalar type.
5607         (ashr@var{m}3): Ditto.
5608         (vashl@var{m}3): Document new vector/vector shift standard name.
5609         (vashr@var{m}3): Ditto.
5610         (vlshr@var{m}3): Ditto.
5611         (vrotl@var{m}3): Ditto.
5612         (vrotr@var{m}3): Ditto.
5614         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5615         (PPERM_INVERT): Ditto.
5616         (PPERM_REVERSE): Ditto.
5617         (PPERM_REV_INV): Ditto.
5618         (PPERM_ZERO): Ditto.
5619         (PPERM_ONES): Ditto.
5620         (PPERM_SIGN): Ditto.
5621         (PPERM_INV_SIGN): Ditto.
5622         (PPERM_SRC1): Ditto.
5623         (PPERM_SRC2): Ditto.
5625         * config/i386/sse.md (mulv2di3): Add SSE5 support.
5626         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5627         allows a memory operand to be the value being added, and split it
5628         to improve vectorization.
5629         (sse5_pmacsdqh_mem): Ditto.
5630         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5631         (sse5_mulv2div2di3_high): Ditto.
5632         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5633         (vec_pack_trunc_v4si): Ditto.
5634         (vec_pack_trunc_v2di): Ditto.
5635         (sse5_pcmov_<mode>): Remove code that tried to use use
5636         andps/andnps instead of pcmov.
5637         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5638         pmacsdqh instructions.
5639         (vec_widen_smult_lo_v4si): Ditto.
5641         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5642         (PPERM_INVERT): Ditto.
5643         (PPERM_REVERSE): Ditto.
5644         (PPERM_REV_INV): Ditto.
5645         (PPERM_ZERO): Ditto.
5646         (PPERM_ONES): Ditto.
5647         (PPERM_SIGN): Ditto.
5648         (PPERM_INV_SIGN): Ditto.
5649         (PPERM_SRC1): Ditto.
5650         (PPERM_SRC2): Ditto.
5651         (ix86_expand_sse_movcc): Move the SSE5 test after the if
5652         true/false tests.
5653         (ix86_expand_int_vcond): If SSE5 generate all possible integer
5654         comparisons.
5655         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5656         says ignore whether the last reference is a memory operand.
5658 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5659             Paolo Bonzini <bonzini at gnu dot org>
5661         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5662         shift patterns.
5664         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5665         (vlshr<mode>3): Rename from vlshr<mode>3.
5666         (vashr<mode>3): Rename from vashr<mode>3.
5667         (mulv4sf3): Change the names of vector shift patterns.
5668         (mulv4si3): Ditto.
5669         (negv4sf2): Ditt.
5671         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5672         shift insns.
5674         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5675         (SI_SHLHI): Ditto.
5676         (SI_SHL): Ditto.
5677         (SI_SHLI): Ditto.
5678         (SI_ROTH): Ditto.
5679         (SI_ROTHI): Ditto.
5680         (SI_ROT): Ditto.
5681         (SI_ROTI): Ditto.
5682         (SPU_RL_0): Ditto.
5683         (SPU_RL_1): Ditto.
5684         (SPU_RL_2): Ditto.
5685         (SPU_RL_3): Ditto.
5686         (SPU_RL_4): Ditto.
5687         (SPU_RL_5): Ditto.
5688         (SPU_RL_6): Ditto.
5689         (SPU_RL_7): Ditto.
5690         (SPU_SL_0): Ditto.
5691         (SPU_SL_1): Ditto.
5692         (SPU_SL_2): Ditto.
5693         (SPU_SL_3): Ditto.
5694         (SPU_SL_4): Ditto.
5695         (SPU_SL_5): Ditto.
5696         (SPU_SL_6): Ditto.
5697         (SPU_SL_7): Ditto.
5699         * config/spu/spu.md (v): New iterator macro to add v for vector types.
5700         (floatunssidf2_internal): Change vector/vector shift names.
5701         (floatunsdidf2_internal): Ditto.
5702         (mulv8hi3): Ditto.
5703         (ashrdi3): Ditto.
5704         (ashrti3): Ditto.
5705         (cgt_df): Ditto.
5706         (cgt_v2df): Ditto.
5707         (dftsv): Ditto.
5708         (vashl<mode>3): Rename from ashl<mode>3.
5709         (vashr<mode>3): Rename from ashr<mode>3.
5710         (vlshr<mode>3): Rename from lshr<mode>3.
5711         (vrotl<mode>3): Rename from rotl<mode>3.
5713 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5715         PR target/36224
5716         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
5717         multiply gives the wrong value when doing widening multiplies.
5718         (vec_widen_smult_lo_v4si): Ditto.
5720 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5722         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
5723         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
5724         emit_library_call_value. 
5725         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
5726         * tree.h (ECF_LIBCALL_BLOCK): Removed.
5727         * calls.c (initialize_argument_information, precompute_arguments, 
5728         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
5729         (precompute_arguments): Removed flags parameter.
5730         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
5731         
5732 2008-05-14  Richard Guenther  <rguenther@suse.de>
5734         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
5735         Make sure to register the store if the use is a PHI_NODE.
5737 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5739         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
5740         memory if the component is to be referenced in BLKmode according
5741         to get_inner_reference.
5743 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
5745         * calls.c (emit_library_call_value_1): Restore code clearing
5746         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
5748 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5749             Nicolas Roche  <roche@adacore.com>
5751         * configure.ac: Add support for a "gcc_subdir" variable in
5752         config-lang.in, to denote a subdirectory where the language/GCC
5753         integration files are to be found.
5754         * configure: Regenerate.
5756 2008-05-14  Ira Rosen  <irar@il.ibm.com>
5758         PR tree-optimization/36098
5759         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
5760         value for the first load in the group in case of a gap.
5761         (vect_build_slp_tree): Check that there are no gaps in loads.
5763 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5765         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
5766         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
5767         expand_copysign_bit, ): Change call to emit_no_conflict_block to
5768         emit_insn and remove unneeded code to construct extra args.
5769         (emit_no_conflict_block): Removed.
5770         * optabls.h: (emit_no_conflict_block): Removed.
5771         * cse.c (cse_extended_basic_block): Remove search for
5772         REG_NO_CONFLICT note.
5773         * global.c: Removed incorrect comment added in revision 117.
5774         * expr.c (convert_move): Change call to emit_no_conflict_block to
5775         emit_insn.
5776         * recog.c: Change comments so that they do not mention
5777         REG_NO_CONFLICT.
5778         * local_alloc.c (combine_regs): Removed last parameter.
5779         (no_conflict_p): Removed.
5780         (block_alloc): Removed note, no_conflict_combined_regno and set
5781         local vars. Removed all code to process REG_NO_CONFLICT blocks.
5782         (combine_regs): Removed already_dead and code to look for
5783         REG_NO_CONFLICT notes.
5784         * lower_subreg (remove_retval_note): Removed code to look for
5785         REG_NO_CONFLICT block.
5786         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
5787         (resolve_clobber): Remove code to process libcalls that have
5788         REG_NO_CONFLICT notes.
5789         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
5790         case.
5791         * combine.c (can_combine_p, distribute_notes):  Removed
5792         REG_NO_CONFLICT case.
5793         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
5794         to emit_insns.
5795         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
5796         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
5797         Ditto.
5798         * reg-notes.def (NO_CONFLICT): Removed.
5800 2008-05-14  David S. Miller  <davem@davemloft.net>
5802         * config/sparc/sparc.c (sparc_profile_hook): If
5803         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
5804         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
5805         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5807 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5809         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
5811 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
5813         PR target/36222
5814         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
5815         and op1 expansion before vector concat to have less live pseudos.
5817 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5819         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
5820         ix86_expand_vector_set if supported.
5822 2008-05-13  Diego Novillo  <dnovillo@google.com>
5823             Kenneth Zadeck  <zadeck@naturalbridge.com>
5825         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
5827         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
5828         phinodes_print_statistics, init_ssanames, fini_ssanames,
5829         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
5830         release_ssa_name, release_defs, replace_ssa_name_symbol,
5831         ssanames_print_statistics): Move ...
5832         * tree-flow.h: ... here.
5833         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
5834         Use FN instead of cfun.
5835         (make_ssa_name_fn): Rename from make_ssa_name.
5836         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
5837         * tree-flow-inline.h (make_ssa_name): Move from
5838         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
5839         * omp-low.c (expand_omp_parallel):
5840         * tree-flow-inline.h (redirect_edge_var_map_result):
5841         * tree-ssa.c (init_tree_ssa): Add argument FN.
5842         Use it instead of cfun.  Update all users.
5844 2008-05-13  Tom Tromey  <tromey@redhat.com>
5846         PR preprocessor/22168:
5847         * doc/cpp.texi (Top): Update menu.
5848         (Alternatives to Wrapper #ifndef): New node.
5849         (Other Directives): Document deprecation.
5850         (Obsolete Features): Remove menu.
5851         (Assertions): Merge node into Obsolete Features.
5852         (Obsolete once-only headers): Move earlier; rename to Alternatives
5853         to Wrapper #ifndef.
5854         * doc/cppopts.texi: Update.
5855         * c.opt (Wdeprecated): Enable for C and ObjC.
5856         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
5857         (C++ Dialect Options): Move -Wno-deprecated from here to...
5858         (Warning Options): ... here.
5860 2008-05-13  Richard Guenther  <rguenther@suse.de>
5862         PR middle-end/36227
5863         * fold-const.c (fold_sign_changed_comparison): Do not allow
5864         changes in pointer-ness.
5866 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5868         PR target/24713
5869         * config/sh/sh.c (sh_expand_prologue): Don't clear
5870         RTX_FRAME_RELATED_P for push insns.
5872 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
5874         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
5876 2008-05-12  Anatoly Sokolov <aesok@post.ru>
5878         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
5879         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
5880         Use 'machine->is_leaf' instead of 'leaf_func_p'.
5882 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5884         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
5885         (*vec_concatv4sf_sse): This.
5886         (*sse2_concatv2si): Renamed to ...
5887         (*vec_concatv2si_sse2): This.
5888         (*sse1_concatv2si): Renamed to ...
5889         (*vec_concatv2si_sse): This.
5890         (*vec_concatv2di_rex): Renamed to ...
5891         (*vec_concatv2di_rex64): This.
5892         (*vec_concatv2si_sse4_1): New.
5893         (*vec_concatv2di_rex64_sse4_1): Likewise.
5895 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
5897         PR rtl-optimization/36111
5898         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
5899         that was created for swappable operands.
5901 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
5903         PR ada/36001
5904         * Makefile.in: Substitute GNATMAKE and GNATBIND.
5905         * configure.ac: Add call to ACX_PROG_GNAT.
5907 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
5909         * optc-gen.awk: Fix comment typo.
5911 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5913         * pretty-print.c (pp_integer_with_precision): Use
5914         HOST_LONG_LONG_FORMAT.
5916 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
5918         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
5919                 
5920 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5922         * config/i386/i386.c (bdesc_ptest): Removed.
5923         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
5924         (bdesc_args): Add __builtin_ia32_ptestz128,
5925         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
5926         (ix86_init_mmx_sse_builtins): Updated.
5927         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
5928         (ix86_expand_builtin): Updated.
5930 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
5932         * tree-cfg.c (valid_fixed_convert_types_p): New function.
5933         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
5935 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
5937         * value-prof.c (interesting_stringop_to_profile): Do not
5938         return early for BUILT_IN_MEMPCPY.
5940 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5942         * calls.c (expand_call): Don't use callgraph to increase
5943         preferred_stack_boundary.
5945         * cgraph.h (cgraph_rtl_info): Use unsigned on
5946         preferred_incoming_stack_boundary.
5948         * final.c (rest_of_clean_state): Use unsigned on
5949         preferred_stack_boundary.
5951 2008-05-09  Tom Tromey  <tromey@redhat.com>
5953         PR preprocessor/22231:
5954         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
5955         proceeding.
5957 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
5959         PR tree-optimization/36129
5960         * tree-ssa-ccp.c: Include value-prof.h.
5961         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
5962         built-in function was folded to a constant.
5963         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
5965 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
5966             Sebastian Pop  <sebastian.pop@amd.com>
5968         * tree-scalar-evolution.c: Document instantiate_scev.
5969         (instantiate_parameters_1): Renamed instantiate_scev_1.
5970         Don't use the same loop for instantiation_loop and evolution_loop.
5971         (instantiate_scev): New.
5972         (instantiate_parameters): Moved...
5973         (resolve_mixers): Update call to instantiate_scev_1 to pass the
5974         same loop twice.  Maintains the semantics for this function.
5975         * tree-scalar-evolution.h (instantiate_scev): Declare.
5976         (instantiate_parameters): ...here.  Now static inline.
5977         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
5978         instead of resolve_mixers.
5980 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5982         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
5984 2008-05-09  Tomas Bily  <tbily@suse.cz>
5986         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
5987         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
5988         * tree-ssa-structalias.c (get_constraint_for): Likewise.
5989         * c-common.c (c_common_truthvalue_conversion): Likewise.
5990         * tree-object-size.c (compute_object_offset): Likewise.
5991         * tree-inline.c (estimate_num_insns_1): Likewise.
5992         * varasm.c (const_hash_1, compare_constant, copy_constant)
5993         (compute_reloc_for_constant, output_addressed_constants)
5994         (initializer_constant_valid_p): Likewise.
5995         * c-omp.c (check_omp_for_incr_expr): Likewise.
5996         * gimplify.c (gimplify_expr): Likewise.
5997         * c-typeck.c (c_finish_return): Likewise.
5998         * tree-vectorizer.c (supportable_widening_operation)
5999         (supportable_narrowing_operation): Likewise.
6000         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6001         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6002         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6003         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6004         (descr_info_loc): Likewise.
6005         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6006         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6007         (fold_unary): Likewise.
6008         * builtins.c (get_pointer_alignment): Likewise.
6009         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6010         (instantiate_parameters_1): Likewise.
6011         * tree.c (expr_align, stabilize_reference): Likewise.
6012         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6013         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6014         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6015         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6016         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6017         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6018         Likewise.
6019         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6020         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6021         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6022         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6023         (forward_propagate_comparison)
6024         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6025         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6026         * emit-rtl.c (component_ref_for_mem_expr)
6027         (set_mem_attributes_minus_bitpos): Likewise.
6028         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6029         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6030         Likewise.
6031         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6032         (build_function_call, pointer_diff, build_compound_expr)
6033         (c_finish_return): Likewise.
6034         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6035         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6036         Likewise.
6037         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6038         * expr.c (is_aligning_offset): Likewise.
6039         * tree-ssa-alias.c (is_escape_site): Likewise.
6040         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6041         (check_all_va_list_escapes): Likewise.
6042         * tree-ssa-loop-ivopts.c (determine_base_object)
6043         (determine_common_wider_type): Likewise.
6044         * dojump.c (do_jump): Likewise.
6045         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6046         * tree-gimple.c (is_gimple_cast): Likewise.
6047         * fold-const.c (decode_field_reference, )
6048         (fold_sign_changed_comparison, fold_unary, fold_comparison)
6049         (fold_binary): Likewise.
6050         * tree-ssa-alias-warnings.c (find_alias_site_helper)
6051         (already_warned_in_frontend_p): Likewise.
6052         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6053         * tree.c (really_constant_p, get_unwidened): Likewise.
6054         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6055         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6056         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6057         Likewise.
6058         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6059         CONVERT_EXPR_P.
6060         (CONVERT_EXPR_P): Define.
6061         (CASE_CONVERT): Define.
6062         
6063 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
6065         PR middle-end/36117
6066         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6067         (delete_unmarked_insns): When deleting a call, call
6068         delete_unreachable_blocks.
6069         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6070         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6072 2008-05-08  Richard Guenther  <rguenther@suse.de>
6074         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6075         (-ftree-salias): Likewise.
6076         (salias-max-implicit-fields): Remove param documentation.
6077         (salias-max-array-elements): Likewise.
6078         * tree-pass.h (pass_create_structure_vars): Remove.
6079         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6080         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6081         * tree-ssa-alias.c (create_structure_vars): Remove.
6082         (gate_structure_vars): Likewise.
6083         (pass_create_structure_vars): Likewise.
6084         (gate_build_alias): Likewise.
6085         (pass_build_alias): Adjust to run always and dump the function.
6086         * common.opt (ftree-salias): Hide.
6087         * passes.c (init_optimization_passes): Remove
6088         pass_create_structure_vars, adjust comment.
6089         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6090         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6091         * opts.c (decode_options): Do not set flag_tree_salias.
6092         (common_handle_option): Add OPT_ftree_salias to the backward
6093         compatibility section.
6095 2008-05-08  Richard Guenther  <rguenther@suse.de>
6097         * tree-flow-inline.h (var_can_have_subvars): Move ...
6098         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6099         * tree-flow.h (var_can_have_subvars): Remove.
6100         (push_fields_onto_fieldstack): Remove.
6101         (sort_fieldstack): Likewise.
6102         (struct fieldoff): Move ...
6103         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
6104         alias_set and base_for_components fields.
6105         (sort_fieldstack): Make static.
6106         (push_fields_onto_fieldstack): Likewise.  Remove code that
6107         handles anything but RECORD_TYPEs.  Remove alias_set and
6108         base_for_components handling.
6109         (create_variable_info_for): Adjust.
6111 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
6113         * common.opt (Wframe-larger-than=): Shorten the help message
6114         to one line.
6115         * doc/invoke.texi (Wframe-larger-than=): Add more description.
6117 2008-05-08  Rafael Espindola  <espindola@google.com>
6119         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6120         trap.
6121         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6122         trap and that both operands are gimple values.
6123         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6124         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6125         is a fp operation.
6127 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6129         * read-rtl.c (join_c_conditions): Return the first string if the
6130         two strings are equal.
6132 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6134         * gensupport.h (pred_data): Add a "num_codes" field.
6135         (add_predicate_code): Declare.
6136         * gensupport.c (add_predicate_code): New function.
6137         (std_pred_table): Add an "allows_const_p" field.
6138         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6139         Remove the (incomplete) list of such codes from the codes field.
6140         (init_predicate_table): Use add_predicate_code.  Add all
6141         RTX_CONST_OBJs if allows_const_p is true.
6142         * genrecog.c (process_define_predicate): Use add_predicate_code.
6144 2008-05-08  David Daney  <ddaney@avtrex.com>
6145             Richard Sandiford  <rsandifo@nildram.co.uk>
6146         
6147         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6148         special case of constant zero operands.
6149         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6150         old and new values.  Special case constant zero values.
6151         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6152         fails.
6153         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6154         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6156 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
6158         PR target/36090
6159         * simplify-rtx.c (simplify_plus_minus): Create CONST of
6160         similar RTX_CONST_OBJ before CONST_INT.
6162 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
6164         * stmt.c (expand_stack_restore): Change sa mode if needed.
6166 2008-05-08  Richard Guenther  <rguenther@suse.de>
6168         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6169         return type to bool.
6170         (ix86_sol10_return_in_memory): Likewise.
6171         (ix86_i386elf_return_in_memory): Likewise.
6172         (ix86_i386interix_return_in_memory): Likewise.
6173         * config/i386/i386.c (ix86_return_in_memory): Likewise.
6174         (ix86_sol10_return_in_memory): Likewise.
6175         (ix86_i386elf_return_in_memory): Likewise.
6176         (ix86_i386interix_return_in_memory): Likewise.
6178 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6180         PR bootstrap/36180
6181         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6182         fndecl argument.
6183         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6184         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6185         declared in front.
6187 2008-05-08  Richard Guenther  <rguenther@suse.de>
6189         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6190         * tree-data-ref.h (struct dr_alias): Remove subvars field.
6191         (DR_SUBVARS): Remove.
6192         * tree-dfa.c (dump_subvars_for): Remove.
6193         (debug_subvars_for): Likewise.
6194         (dump_variable): Do not dump subvars.
6195         (remove_referenced_var): Do not remove subvars.
6196         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6197         (lookup_subvars_for_var): Remove.
6198         (get_subvars_for_var): Likewise.
6199         (get_subvars_at): Likewise.
6200         (get_first_overlapping_subvar): Likewise.
6201         (overlap_subvar): Likewise.
6202         * tree-flow.h (subvar_t): Remove.
6203         (struct var_ann_d): Remove subvars field.
6204         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6205         argument.  Remove special handling of SFTs.
6206         (compute_tag_properties): Likewise.
6207         (set_initial_properties): Likewise.
6208         (compute_call_clobbered): Likewise.
6209         (count_mem_refs): Likewise.
6210         (compute_memory_partitions): Likewise.
6211         (compute_flow_insensitive_aliasing): Likewise.
6212         (setup_pointers_and_addressables): Likewise.
6213         (new_type_alias): Likewise.
6214         (struct used_part): Remove.
6215         (used_portions): Likewise.
6216         (struct used_part_map): Likewise.
6217         (used_part_map_eq): Likewise.
6218         (used_part_map_hash): Likewise.
6219         (free_used_part_map): Likewise.
6220         (up_lookup): Likewise.
6221         (up_insert): Likewise.
6222         (get_or_create_used_part_for): Likewise.
6223         (create_sft): Likewise.
6224         (create_overlap_variables_for): Likewise.
6225         (find_used_portions): Likewise.
6226         (create_structure_vars): Likewise.
6227         * tree.def (STRUCT_FIELD_TAG): Remove.
6228         * tree.h (MTAG_P): Adjust.
6229         (struct tree_memory_tag): Remove base_for_components and
6230         unpartitionable flags.
6231         (struct tree_struct_field_tag): Remove.
6232         (SFT_PARENT_VAR): Likewise.
6233         (SFT_OFFSET): Likewise.
6234         (SFT_SIZE): Likewise.
6235         (SFT_NONADDRESSABLE_P): Likewise.
6236         (SFT_ALIAS_SET): Likewise.
6237         (SFT_UNPARTITIONABLE_P): Likewise.
6238         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6239         (union tree_node): Remove sft field.
6240         * alias.c (get_alias_set): Remove special handling of SFTs.
6241         * print-tree.c (print_node): Remove handling of SFTs.
6242         * tree-dump.c (dequeue_and_dump): Likewise.
6243         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6244         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6245         * tree-predcom.c (set_alias_info): Do not set subvars.
6246         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6247         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6248         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6249         (add_vars_for_offset): Remove.
6250         (add_virtual_operand): Remove special handling of SFTs.
6251         (add_call_clobber_ops): Likewise.
6252         (add_call_read_ops): Likewise.
6253         (get_asm_expr_operands): Likewise.
6254         (get_modify_stmt_operands): Likewise.
6255         (get_expr_operands): Likewise.
6256         (add_to_addressable_set): Likewise.
6257         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6258         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6259         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6260         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6261         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6262         (tree_node_structure): Likewise.
6263         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6264         handling of SFTs.
6265         (find_what_p_points_to): Likewise.
6267 2008-05-08  Sa Liu  <saliu@de.ibm.com>
6269         * config/spu/spu.md: Fixed subti3 pattern.
6271 2008-05-08  Richard Guenther  <rguenther@suse.de>
6273         PR middle-end/36154
6274         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6275         sure to create a representative for trailing arrays for PTA.
6277 2008-05-08  Richard Guenther  <rguenther@suse.de>
6279         PR middle-end/36172
6280         * fold-const.c (operand_equal_p): Two objects which types
6281         differ in pointerness are not equal.
6283 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6285         * calls.c (compute_argument_block_size): Add argument tree fndecl.
6286         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6287         (emit_library_call_value_1): Add new variable fndecl initialized by
6288         NULL_TREE. It should be the decl type of orgfun, but this information
6289         seems not to be available here, so it uses the default calling abi.
6290         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6291         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6292         by TARGET_RETURN_IN_MEMORY.
6293         * config/i386/i386-interix.h: Likewise.
6294         * config/i386/i386.h: Likewise.
6295         * config/i386/i386elf.h: Likewise.
6296         * config/i386/ptx4-i.h: Likewise.
6297         * config/i386/sol2-10.h: Likewise.
6298         * config/i386/sysv4.h: Likewise.
6299         * config/i386/vx-common.h: Likewise.
6300         * config/cris/cris.h: Removed #if 0 clause.
6301         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6302         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6303         argument.
6304         (ix86_sol10_return_in_memory): Likewise.
6305         (ix86_i386elf_return_in_memory): New.
6306         (ix86_i386interix_return_in_memory): New.
6307         * config/mt/mt-protos.h (mt_return_in_memory): New.
6308         * config/mt/mt.c: Likewise.
6309         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6310         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
6311         * config/bfin/bfin.h: Likewise.
6312         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6313         argument.
6314         * config/bfin/bfin.c: Likewise.
6315         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6316         * config/alpha/unicosmk.h: Likewise.
6317         * config/i386/cygming.h: Likewise.
6318         * config/iq2000/iq2000.h: Likewise.
6319         * config/mips/mips.h: Likewise.
6320         * config/mn10300/mn10300.h: Likewise.
6321         * config/rs6000/rs6000.h: Likewise.
6322         * config/score/score.h: Likewise.
6323         * config/spu/spu.h: Likewise.
6324         * config/v850/v850.h: Likewise.
6325         * defaults.h: Likewise.
6326         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6327         * expr.c (emit_block_move): Adjust use of
6328         OUTGOING_REG_PARM_STACK_SPACE.
6329         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6330         OUTGOING_REG_PARM_STACK_SPACE.
6331         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6333 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
6335         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6336         on OMP_RETURN for OMP_FOR.
6338         PR debug/35896
6339         * dwarf2out.c (dw_expand_expr, common_check): Removed.
6340         (fortran_common): New function.
6341         (gen_variable_die): Call fortran_common instead of common_check,
6342         adjust for it returning tree instead of rtx.  Formatting.
6344 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6346         PR rtl/7335
6347         PR rtl/33826
6348         * see.c (see_copy_insn): Copy new pure const attributes for new call.
6349         * c-decl.c (merge_decls): Ditto.
6350         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6351         to RTL_CONST_OR_PURE_CALL_P.
6352         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6353         Initialized DECL_LOOPING_CONST_PURE.
6354         (process_call_operands): Set tree_side_effects properly.
6355         * tree.h (TREE_READONLY_DECL_P): Removed.
6356         (DECL_IS_PURE): Renamed to DECL_PURE_P.
6357         (DECL_LOOPING_OR_CONST_P): New macro.
6358         (struct tree_function_decl): Added looping_const_or_pure_p.
6359         (ECF_*) Renumbered.
6360         (ECF_LOOPING_OR_CONST_P): New macro.
6361         * rtlanal.c (pure_const_p): Removed.
6362         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6363         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6364         to RTL_CONST_CALL_P.
6365         * ipa-pure-const.c (pure_const_state_e): Added looping field.
6366         (check_decl, check_tree, check_call, scan_function): Initialize
6367         looping.
6368         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6369         (static_execute): Set looping true for recursive functions.
6370         Undo setting state to IPA_NEITHER for recursive functions.
6371         * cse.c (cse_insn): 
6372         * ifcvt.c (noce_can_store_speculate_p): Changed
6373         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
6374         RTL_CONST_OR_PURE_CALL_P.
6375         * dse.c (scan_insn): Ditto.
6376         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6377         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6378         RTL_CONST_OR_PURE_CALL_P.
6379         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6380         pure_call_p to RTL_CONST_CALL_P.
6381         * gimplify.c (gimplify_call_expr): Clear side effects for
6382         non-looping pure and constant calls.
6383         * calls.c (emit_call_1): Set rtl flags from ecf flags.
6384         (flags_from_decl_or_type): Set ecf flags from decl flags.
6385         (initialize_argument_information): Turn off
6386         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6387         Change const to pure if callee_copies is true rather than just
6388         turning off const.
6389         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6390         way of marking pure calls.
6391         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6392         Remove hack that was supposed to fix pr7335 and remove old
6393         way of marking pure calls.
6394         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6395         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6396         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6397         RTL_CONST_OR_PURE_CALL_P.
6398         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6399         * loop-invariant.c (find_exits, find_invariant_bb): Changed
6400         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6401         * sched-deps.c (schedule_analyze): Ditto.
6402         * rtl.h (struct rtx_def): Use call field, unchanging field, and
6403         return_val field of calls to represent pure and const function info.
6404         (CONST_OR_PURE_CALL_P): Deleted macro.
6405         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6406         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6407         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6408         TREE_READONLY.
6409         * tree-optimize.c (execute_fixup_cfg): Added test for
6410         ECF_LOOPING_CONST_OR_PURE.
6411         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6412         DECL_PURE_P.
6413         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6414         effects for looping pure or const calls.
6415         (verify_gimple_expr): Added verification code. 
6416         * config/alpha/alpha.c (alpha_legitimize_address,
6417         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6418         RTL_CONST_CALL_P.
6419         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6420         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6421         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6422         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6423         RTL_CONST_OR_PURE_CALL_P.
6424         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6425         and const calls to be deleted.
6427 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6429         PR target/35714
6430         * config/i386/mmx.md (mmx_subv2sf3): New expander.
6431         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6432         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6433         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6434         to handle nonimmediate operands.
6435         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6436         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
6437         to handle nonimmediate operands.
6438         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6439         (mmx_pmulhrwv4hi3): New expander.  Use
6440         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6441         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6442         (sse2_umulv1siv1di3): New expander.  Use
6443         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6444         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6445         (mmx_eq<mode>3): New expander.  Use
6446         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6447         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6448         (mmx_uavgv8qi3): New expander.  Use
6449         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6450         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6451         (mmx_uavgv4hi3): New expander.  Use
6452         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6454         * config/i386/sse.md
6455         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
6456         to handle nonimmediate operands.
6457         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
6458         to handle nonimmediate operands.
6459         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
6460         to handle nonimmediate operands.
6461         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
6462         to handle nonimmediate operands.
6463         (sse2_unpckhpd_exp): New expander.  Use
6464         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6465         (sse2_unpcklpd_exp): New expander.  Use
6466         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6467         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
6468         to handle nonimmediate operands.
6469         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
6470         to handle nonimmediate operands.
6471         (*sse2_<plusminus_insn><mode>3): Rename from
6472         sse2_<plusminus_insn><mode>3 insn pattern.
6473         (sse2_<plusminus_insn><mode>3): New expander.  Use
6474         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6475         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6476         (sse2_umulv2siv2di3): New expander.  Use
6477         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6478         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6479         (sse4_1_mulv2siv2di3): New expander.  Use
6480         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6481         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6482         (sse2_pmaddwd): New expander.  Use
6483         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6484         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6485         (sse2_eq<mode>3): New expander.  Use
6486         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6487         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6488         (sse4_1_eqv2di3): New expander.  Use
6489         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6490         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6491         (sse2_uavgv16qi3): New expander.  Use
6492         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6493         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6494         (sse2_uavgv16qi3): New expander.  Use
6495         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6496         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6497         (sse2_uavgv8hi3): New expander.  Use
6498         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6499         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6500         (ssse3_pmulhrswv8hi3): New expander.  Use
6501         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6502         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6503         (ssse3_pmulhrswv4hi3): New expander.  Use
6504         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6506         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6507         (<sse>_vmmul<mode>3): Ditto.
6508         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6509         (divv2df3): Ditto.
6510         (ssse3_pmaddubsw128): Use register_operand for operand 1.
6511         (ssse3_pmaddubsw): Ditto.
6513         * config/i386/i386.c (struct_builtin_description)
6514         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6515         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6516         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6517         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6518         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6519         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6520         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6521         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6522         (ix86_fixup_binary_operands): Assert that src1
6523         and src2 must have the same mode when swapped.
6524         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6525         and ix86_binary_operator_ok.  Do not force operands in registers
6526         when optimizing.
6528 2008-05-07  Jan Hubicka  <jh@suse.cz>
6530         * cgraph.c (dump_cgraph_node): Update.
6531         * cgraph.h (cgraph_local_info): Break out inline summary.
6532         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6533         hook.
6534         * ipa-inline (inline_summary): New accestor function.
6535         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6536         cgraph_decide_inlining, compute_inline_parameters): Update.
6537         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6539 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
6541         Cleanup ColdFire scheduling support and add V4 pipeline model.
6543         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6544         (define_attr cpu): Add cfv4 value.
6545         (define_attr type, define_attr type1): Merge into a single 'type'
6546         attribute.  Update all uses.
6547         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6548         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
6549         Update all uses.
6550         (define_attr opx_mem, define_attr opy_mem): Remove.
6551         (define_attr op_mem): Clean up, update comment.
6552         (define_attr size): Use specific values instead of general int.
6553         (define_attr guess, define_attr split): Remove.  Update all uses.
6554         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6555         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6556         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6557         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6558         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6559         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6560         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6561         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6562         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6563         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6564         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6565         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6566         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6567         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6568         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6569         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6570         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6571         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6572         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6573         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6574         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6575         Update or set attributes.
6576         (stack_tie): New fake instruction.
6578         * config/m68k/m68k.h (TUNE_CFV4): New macro.
6579         (m68k_sched_attr_size): Update declaration.
6580         (m68k_sched_attr_type2): Remove.
6581         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6582         Declare new bypass predicates.
6584         * config/m68k/m68k.c (m68k_sched_issue_rate,
6585         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6586         implementations.
6587         (TARGET_SCHED_ISSUE_RATE,
6588         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6589         (override_options): Handle scheduling for ColdFire V4 core.
6590         (m68k_expand_prologue): Emit stack_tie.
6591         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6592         'OP_TYPE_FPN'.  Update all uses.
6593         (sched_guess_p): Remove.
6594         (sched_address_type): Handle symbolic addresses.
6595         (sched_get_operand): New static function.
6596         (sched_operand_type): Merge into sched_attr_op_type.
6597         (sched_attr_op_type): Handle FP registers, handle quick constants,
6598         update.
6599         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6600         (m68k_sched_attr_size): Update.  Move logic to ...
6601         (sched_get_attr_size_int): New static function.
6602         (sched_get_opxy_mem_type): New static function.
6603         (m68k_sched_attr_op_mem): Update.
6604         (m68k_sched_attr_type2): Remove.
6605         (sched_cfv4_bypass_data): New static variable.
6606         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6607         (m68k_sched_issue_rate): Implement scheduler hook.
6608         (struct _sched_ib: enabled_p): New field.
6609         (m68k_sched_variable_issue): Update.  Handle V4.
6610         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6611         sched_dump_class_func_t, sched_dump_split_class,
6612         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6613         sched_dump_dfa_class, m68k_sched_dump): Remove.
6614         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6615         hook.
6616         (m68k_sched_init_global): Remove statisctics dumping, introduce
6617         sanity check that all instructions have pipeline reservations.  Handle
6618         ColdFire V4 core.
6619         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6620         Handle ColdFire V4 core.
6621         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6622         New static functions.
6623         (m68k_sched_address_bypass_p): New bypass predicate.
6624         (sched_get_indexed_address_scale): New static function.
6625         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6627         * cf.md: Update comments.
6628         (define_attr type2): Remove.  Use 'type' attribute instead.
6629         Update all uses.
6630         (cf_ib): Rename to cfv123_ib.  Update all uses.
6631         (cf_oep): Rename to cfv123_oep.  Update all uses.
6632         (cf_chr): Rename to cfv123_chr.  Update all uses.
6633         (cf_mem): Rename to cfv123_mem.  Update all uses.
6634         (cf_mac): Move to more appropriate place.
6635         (cfv123_guess): New automaton and cpu_unit.
6636         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6637         Update uses of 'size' attribute.  Handle before reload scheduling.
6638         (cfv123_guess): New dummy reservation for unhandled instructions.
6639         (cfv4_*): Pipeline description of ColdFire V4 core.
6640         (ignore): New reservation to handle 'ignore' type.
6642 2008-05-07  Ian Lance Taylor  <iant@google.com>
6644         PR middle-end/36013
6645         * gimplify.c (find_single_pointer_decl_1): Don't look through
6646         indirections.
6647         (find_single_pointer_decl): Adjust comments.
6649 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
6651         PR middle-end/36137
6652         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6653         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6655         PR middle-end/36106
6656         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6657         integral type rather than floating point, then VIEW_CONVERT_EXPR
6658         to the floating point type.
6660 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6662         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6663         TFmode op0 to register.
6665 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
6667         * c-decl.c (grokdeclarator): Comment typo.
6669 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
6671         * tree-flow.h: Remove prototype for computed_goto_p.
6672         * tree-cfg.c (computed_goto_p): Make static.
6674 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
6676         PR target/35657
6677         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6678         (contains_aligned_value_p): This.  Handle _Decimal128.
6679         (ix86_function_arg_boundary): Only align _Decimal128 to its
6680         natural boundary and handle it properly.
6682 2008-05-06  Martin Jambor  <mjambor@suse.cz>
6684         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6685         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6686         (ipcp_method_set_orig_node): Removed.
6687         (ipcp_cval_get_cvalue_type): Removed.
6688         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6689         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6690         (ipcp_cval_set_cvalue_type): Removed.
6691         (ipcp_cval_get_cvalue): Removed.
6692         (ipcp_cval_set_cvalue): Removed.
6693         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6694         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6695         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6696         (ipcp_cval_meet): Renamed to ipa_lattice_meet
6697         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6698         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6699         (ipcp_get_ith_lattice): Changed parameters.
6700         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6701         (ipcp_lattice_from_jfunc): Changed parameters.
6702         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6703         (ipcp_method_cval_print): Added temporary variable info.
6704         (ipcp_redirect): Removed already unused local variable caller.
6705         (ipcp_redirect): New temporary variable orig_callee_info
6706         (ipcp_redirect): Removed newly unused local variable callee.
6707         (ipcp_redirect): Removed (a bit confusing) local variable type.
6708         (ipcp_insert_stage): Added local variable info.
6709         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
6710         renamed too
6711         (ipcp_formal_create): Removed.
6712         (ipcp_method_cval_set): Removed.
6713         (ipcp_propagate_stage): Renamed lattice variables.
6714         (ipcp_method_cval_set_cvalue_type): Removed.
6715         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
6716         (ipcp_print_all_lattices): Changed printed strings to refer to 
6717         lattices rather than cvals.
6718         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
6719         (ipcp_propagate_const): Changed formal parameters.
6720         (build_const_val): Changed formal parameters.
6721         (ipcp_insert_stage): Removed useless variable cvalue
6722         (build_const_val): Changed formal parameters.
6723         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
6724         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
6725         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
6726         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
6727         (ipcp_print_func_profile_counts): Changed string from "method" to 
6728         "function"
6729         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
6730         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
6731         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
6732         (ipcp_structures_print): Renamed to ipcp_print_all_structures
6733         (ipcp_profile_print): Renamed to ipcp_print_profile_data
6734         (ipcp_lat_is_const): Changed parameters and made inline.
6735         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
6736         (ipcp_redirect): Renamed to ipcp_need_redirect_p
6737         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
6738         the predicate condition directly
6739         (ipcp_propagate_stage): Added local variable args. Removed local
6740         variable callee.  (Both are mere code simplifications.)
6741         (ipcp_method_dont_insert_const): Renamed to
6742         ipcp_node_not_modifiable_p.
6743         (ipcp_node_not_modifiable_p): Made inline.
6744         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
6745         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
6746         (ipcp_print_all_lattices): Removed variable cvalue
6747         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
6748         Updated comments.
6750 2008-05-06  Olivier Hainque  <hainque@adacore.com>
6752         * tree-sra.c (try_instantiate_multiple_fields): Early return
6753         if field has POINTER_TYPE.
6755 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
6757         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
6758         by using 'q' specifier for instruction.
6759         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
6761 2008-05-06  Anatoly Sokolov <aesok@post.ru>
6763         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6764         Change mode of zero_extract from QImode to HImode.
6765         (sign bit tests peepholes): (Ditto.).
6767 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
6769         * config/i386/mmx.md: Remove double backslashes from asm templates.
6770         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
6771         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6772         to handle nonimmediate operands.
6773         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
6774         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6775         to handle nonimmediate operands.
6776         (*mmx_<code>v2sf3_finite): New insn pattern.
6777         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
6778         (mmx_<code>v2sf3): New expander.  Use
6779         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6780         (mmx_<plusminus_insn><mode>3): New expander.  Use
6781         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6782         (*mmx_<plusminus_insn><mode>3): New insn pattern.
6783         (mmx_add<mode>3): Removed.
6784         (mmx_ssadd<mode>3): Ditto.
6785         (mmx_usadd<mode>3): Ditto.
6786         (mmx_sub<mode>3): Ditto.
6787         (mmx_sssub<mode>3): Ditto.
6788         (mmx_ussub<mode>3): Ditto.
6789         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
6790         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
6791         to handle nonimmediate operands.
6792         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
6793         insn pattern.
6794         (mmx_smulv4hi3_highpart): New expander.  Use
6795         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6796         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
6797         insn pattern.
6798         (mmx_umulv4hi3_highpart): New expander.  Use
6799         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6800         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
6801         (mmx_<code>v4hi3): New expander.  Use
6802         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6803         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
6804         (mmx_<code>v8qi3): New expander.  Use
6805         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6806         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
6807         (mmx_<code><mode>3): New expander.  Use
6808         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6810 2008-05-05  Jan Hubicka  <jh@suse.cz>
6812         PR tree-optimization/36118
6813         * passes.c (pass_init_dump_file): Fix dump header.
6815 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6817         PR middle-end/36141
6818         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
6819         VCE for function decls.
6821 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6823         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
6825 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6827         * config/i386/i386.md (sat_plusminus): New.
6828         (plusminus_insn): Likewise.
6829         (plusminus_mnemonic): Likewise.
6830         (addsub): Removed.
6831         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
6832         (*<addsub><mode>3_cc_overflow): Renamed to ...
6833         (*<plusminus_insn><mode>3_cc_overflow): This.
6834         (*<addsub>si3_zext_cc_overflow): Renamed to ...
6835         (*<plusminus_insn>si3_zext_cc_overflow): This.
6837         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
6838         (<plusminus_insn><mode>3): This.
6839         (*<addsub><mode>3): Renamed to ...
6840         (*<plusminus_insn><mode>3): This.
6841         (<sse>_vm<addsub><mode>3): Renamed to ...
6842         (<sse>_vm<plusminus_insn><mode>3): This.
6843         (sse3_h<addsub>v4sf3): Renamed to ...
6844         (sse3_h<plusminus_insn>v4sf3): This.
6845         (sse3_h<addsub>v2df3): Renamed to ...
6846         (sse3_h<plusminus_insn>v2df3): This.
6847         (<plusminus_insn><mode>3): New.
6848         (*<plusminus_insn><mode>3): Likewise.
6849         (sse2_<plusminus_insn><mode>3): Likewise.
6850         (add<mode>): Removed.
6851         (*add<mode>3): Likewise.
6852         (sse2_ssadd<mode>3): Likewise.
6853         (sse2_usadd<mode>3): Likewise.
6854         (sub<mode>3): Likewise.
6855         (*sub<mode>3): Likewise.
6856         (sse2_sssub<mode>3): Likewise.
6857         (sse2_ussub<mode>3): Likewise.
6859 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
6861         * gthr-single.h: Add in required interface elements as per gthr.h.
6862         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
6863         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
6864         Generalize UNUSED macro. 
6865         (__gthread_once): Add.
6866         (__gthread_key_create): Add.
6867         (__gthread_key_delete): Add.
6868         (__gthread_getspecific): Add.
6869         (__gthread_setspecific): Add.
6870         
6871 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
6873         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
6874         the same size types for the indirect reference on the rhs, then
6875         create a VCE.
6877 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
6879         * config/i386/i386.md
6880         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
6881         one insn template instead of template series.
6882         (*xordi_1_rex64): Ditto.
6883         (*xordi_2_rex64): Ditto.
6885 2008-05-05  Ira Rosen  <irar@il.ibm.com>
6887         PR tree-optimization/36119
6888         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
6889         in case of SLP.
6891 2008-06-04  Jan Hubicka  <jh@suse.cz>
6893         tree-optimization/36100
6894         * tree-pass.h (pass_O0_always_inline): Declare.
6895         * ipa-inline.c (inline_transform): Remove dead code.
6896         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6897         pass_O0_always_inline): New.
6898         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
6900 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
6902         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
6903         mnemonic in this_param move for TARGET_64BIT.
6905 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
6907         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
6908         (*strmovsi_rex_1): Ditto.
6909         (*strsetsi_1): Ditto.
6910         (*strsetsi_rex_1): Ditto.
6912         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
6913         adddicc expanders using SWI mode iterator.
6915 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6917         PR target/36121
6918         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
6919         argument handling.
6921 2008-05-04  David S. Miller  <davem@davemloft.net>
6923         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
6924         (sparc*-*-linux*): Use linux.h in tm_file.
6925         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
6926         compiler defaulting to 32-bit.
6927         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
6928         no longer needed.
6929         * config/sparc/linux.h: Remove definitions now obtained
6930         properly from linux.h
6931         * config/sparc/linux64.h: Likewise.
6932         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
6933         don't want this setting for 32-bit builds in a biarch compiler.
6934         * doc/install.texi: Add sparc-linux to list of targets
6935         supporting --enable-targets=all.
6937 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
6939         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
6941 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
6943         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
6944         after V4SI_FTYPE_V8HI.
6945         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
6946         case V4SI_FTYPE_V2DF.
6948 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
6950         * doc/invoke.texi (max-flow-memory-locations): Removed.
6951         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
6952         
6953 2008-05-03  Richard Guenther  <rguenther@suse.de>
6955         PR middle-end/34973
6956         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
6958 2008-05-02  David S. Miller  <davem@davemloft.net>
6960         * config.gcc (need_64bit_hwint): Document libcpp dependency.
6962 2008-05-02  Simon Baldwin <simonb@google.com>
6964         PR bootstrap/36108
6965         * c-common.h (warn_array_subscript_range): Removed.
6966         * c-common.c (warn_array_subscript_range): Ditto.
6967         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
6968         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
6970 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6972         * config/i386/i386.c (ix86_special_builtin_type): New.
6973         (bdesc_special_args): Likewise.
6974         (ix86_expand_special_args_builtin): Likewise.
6975         (ix86_init_mmx_sse_builtins): Updated.
6976         (ix86_expand_builtin): Updated.
6977         (ix86_expand_store_builtin): Removed.
6978         (ix86_expand_unop_builtin): Likewise.
6980         * config/i386/mm3dnow.h (__v2sf): Moved to ...
6981         * config/i386/mmintrin.h (__v2sf): Here.
6983         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
6984         const __v2sf.
6985         (_mm_loadl_pi): Likewise.
6986         (_mm_storeh_pi): Replace __v2si with __v2sf.
6987         (_mm_storel_pi): Likewise.
6989         * doc/extend.texi: Correct __builtin_ia32_loadhps,
6990         __builtin_ia32_loadlps, __builtin_ia32_storehps,
6991         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
6992         __builtin_ia32_loadlpd.
6994 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6996         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
6997         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
6998         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
6999         (ix86_init_mmx_sse_builtins): Updated.
7000         (ix86_expand_args_builtin): Likewise.
7001         (ix86_expand_builtin): Likewise.
7002         (ix86_expand_unop1_builtin): Renamed to ...
7003         (ix86_expand_unop_vec_merge_builtin): This.
7005 2008-05-01  Jan Hubicka  <jh@suse.cz>
7007         PR bootstrap/36100
7008         * ipa-inline.c (inline_generate_summary): Make static.
7009         (inline_transform): Do not call inlining at -O0; make static.
7010         * passes.c (execute_todo): Add sanity check.
7011         (execute_one_ipa_transform_pass): Execute proper flags.
7013 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7015         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7016         (DECL_NONADDRESSABLE_P): Likewise.
7017         * alias.c (record_component_aliases): Fix comment.
7019 2008-05-01  Simon Baldwin <simonb@google.com>
7021         * c-common.h (warn_array_subscript_range): New function.
7022         * c-common.c (warn_array_subscript_range): Ditto.
7023         * tree-vrp.c (check_array_ref): Corrected code to agree with
7024         comment, ignoring only arrays of size 0 or size 1.
7025         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7027 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7029         * config/i386/i386.c (ix86_builtin_type): Replace
7030         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7031         (bdesc_args): Updated.
7032         (ix86_init_mmx_sse_builtins): Likewise.
7033         (ix86_expand_args_builtin): Likewise.
7035         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7036         with __v1di.
7038         * doc/extend.texi: Correct __builtin_ia32_palignr.
7040 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7042         PR target/36095
7043         * config/i386/i386.c (bdesc_crc32): Removed.
7044         (ix86_expand_crc32): Likewise.
7045         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7046         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7047         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
7048         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7049         UINT_FTYPE_UINT_UCHAR.
7050         (bdesc_args): Updated. Add crc32 builtins.
7051         (ix86_init_mmx_sse_builtins): Updated.
7052         (ix86_expand_args_builtin): Updated to support subreg.
7054         * doc/extend.texi: Correct __builtin_ia32_crc32di.
7056 2008-05-01  Jan Hubicka  <jh@suse.cz>
7058         * tree-pass.h (opt_pass): Add IPA_PASS.
7059         (varpool_node, cgraph_node): Forward declare.
7060         (ipa_opt_pass): Define.
7061         (pass_ipa_inline): Turn into ipa_opt_pass.
7062         (pass_apply_inline): Remove.
7063         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7064         (apply_inline): Turn into ....
7065         (inline_transform): ... this one.
7066         (inline_generate_summary): New function.
7067         (pass_apply_inline): Remove.
7068         * function.h (ipa_opt_pass): Forward declare structure; typedef;
7069         vector.
7070         (struct function): Add ipa_transforms_to_apply.
7071         * passes.c (register_one_dump_file): Work on IPA_PASS.
7072         (init_optimization_passes): Remove pass_inline_parameters and
7073         pass_apply_inline.
7074         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7075         (execute_one_pass) ... here; apply transforms when possible.
7076         (add_ipa_transform_pass, execute_ipa_summary_asses,
7077         execute_one_ipa_transform_pass): New.
7078         (execute_ipa_pass_list): Update for IPA_PASS type.
7080 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7082         * config/i386/i386.c (ix86_builtin_type): Add
7083         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7084         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7085         (bdesc_args): Add SSE4a builtins.
7086         (ix86_init_mmx_sse_builtins): Updated.
7087         (ix86_expand_args_builtin): Likewise.
7088         (ix86_expand_builtin): Likewise.
7090 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7092         * config/i386/i386.c (ix86_builtin_type): Add
7093         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7094         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7095         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7096         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7097         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7098         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7099         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7100         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7101         and DI_FTYPE_DI_DI_INT.
7102         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7103         (ix86_init_mmx_sse_builtins): Updated.
7104         (ix86_expand_args_builtin): Likewise.
7105         (ix86_expand_builtin): Likewise.
7106         (ix86_expand_binop_imm_builtin): Removed.
7108         * doc/extend.texi: Correct __builtin_ia32_palignr128.
7110 2008-04-30  Richard Guenther  <rguenther@suse.de>
7112         PR tree-optimization/32921
7113         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7115 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7117         * config/arm/arm.c (arm_unwind_emit): Use
7118         crtl->all_throwers_are_sibcalls instead of
7119         cfun->all_throwers_are_sibcalls.
7120         (arm_output_fn_unwind): Likewise.
7121         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7122         instead of cfun->uses_pic_offset_table.
7123         (frv_expand_prologue): Likewise.
7124         (frv_frame_pointer_required): Likewise.
7125         (frv_expand_fdpic_call): Likewise.
7126         (frv_emit_movsi): Likewise.
7127         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7128         cfun->returns_pcc_struct instead of
7129         current_function_returns_pcc_struct.
7130         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7131         instead of cfun->calls_eh_return.
7132         (m32c_pushm_popm): Likewise.
7133         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7134         "extern" declaration.
7136 2008-04-30  Richard Guenther  <rguenther@suse.de>
7138         PR tree-optimization/21636
7139         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7140         constant address.
7141         (evaluate_stmt): Print the likely value.
7142         (ccp_visit_stmt): Avoid excessive vertical spacing.
7144 2008-04-30  Rafael Espindola  <espindola@google.com>
7146         * builtins.c (fold_call_expr): Return realret.
7147         * tree-ssa-threadedge.c
7148         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7149         __builtin_object_size.
7151 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
7153         * gcc.c (wrapper_string): New variable.
7154         (insert_wrapper): New function.
7155         (execute): New option -wrapper.
7156         * doc/invoke.texi (Overall Options): New driver option -wrapper.
7158 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
7160         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7161         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7162         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7163         from...
7164         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
7165         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7166         config/rs6000/e500crtres64gprctr.asm,
7167         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7168         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7169         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7170         config/rs6000/e500crtsav64gprctr.asm,
7171         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7172         config/rs6000/e500crtsavg64gprctr.asm: New files.
7173         * config/rs6000/t-ppccomm: Add build rules for new files.
7174         (LIB2FUNCS_STATIC_EXTRA): Add new files.
7175         * config/rs6000/t-netbsd: Add build rules for new files.
7176         (LIB2FUNCS_STATIC_EXTRA): New variable.
7177         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7178         (CRTSAVRES_DEFAULT_SPEC): Likewise.
7179         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7181 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
7183         * config/i386/i386.c (ix86_builtin_type): Add
7184         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7185         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7186         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7187         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7188         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7189         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7190         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7191         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7192         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7193         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7194         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7195         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7196         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7197         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7198         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7199         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7200         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7201         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7202         V1DI_FTYPE_V2SI_V2SI.
7203         (bdesc_2arg): Moved to ...
7204         (bdesc_args): Here.
7205         (ix86_init_mmx_sse_builtins): Updated.
7206         (ix86_expand_args_builtin): Updated.  Take a pointer
7207         to const struct builtin_description.  Handle comparison
7208         builtin functions.
7209         (ix86_expand_sse_compare): Take a new argument for swapping operands.
7210         (ix86_expand_builtin): Updated.
7212         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7213         (ssse3_pmaddubsw128): This.
7214         (ssse3_pmaddubswv4hi3): Renamed to ...
7215         (ssse3_pmaddubsw): This.
7217         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7218         (__builtin_ia32_packssdw128): Likewise.
7219         (__builtin_ia32_packuswb128): Likewise.
7220         (__builtin_ia32_pmaddubsw): Likewise.
7221         (__builtin_ia32_pmaddubsw128): Likewise.
7223 2008-04-30  Richard Guenther  <rguenther@suse.de>
7225         PR tree-optimization/14847
7226         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7227         (recognize_bits_test): Use it.
7228         (recognize_single_bit_test): Likewise.
7230 2008-04-30  Martin Jambor  <mjambor@suse.cz>
7232         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7233         instead of setting number of formal parameters to zero.
7234         (ipcp_init_stage): Do not set the number of actual parameters to zero 
7235         either.
7236         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7237         which are called with variable number of arguments.
7238         (ipcp_insert_stage): Explicitely skipping all nodes which are
7239         called with variable number of arguments.
7240         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
7241         number of parameters.
7243         * ipa-prop.h (struct ipa_node_params): Added flag
7244         called_with_var_arguments
7245         (ipa_set_param_count): Added.  Changed sole setter to use it.
7246         (ipa_get_param_count): Added.  All readers of param_count
7247         converted to use it instead.
7248         (ipa_set_called_with_variable_arg): Added.
7249         (ipa_is_called_with_var_arguments): Added.
7250         (ipa_get_ith_param): Added.  All readers of param_decls converted
7251         to use it instead.
7252         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
7253         changed to use it. 
7254         (ipa_get_cs_argument_count): Added, all readers of argument_count
7255         changed to cal it.
7256         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
7257         to use it.
7258         
7259         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7260         (struct ipcp_lattice): Renamed cval_type to type
7261         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7263         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7264         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7265         (ipcp_insert_stage): Changed the type of variable cvalue to tree
7266         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7267         (build_const_val): Changed the type of parameter cvalue to tree
7268         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7269         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7270         
7271         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
7272         constant 
7274         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7275         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7276         (ipa_add_method): Renamed to ipa_push_func_to_list
7277         (ipa_remove_method): Renamed to ipa_pop_func_from_list
7278         (ipa_callsite_param_count): Removed.
7279         (ipa_callsite_param_count_set): Removed.
7280         (ipa_callsite_param): Removed.
7281         (ipa_callsite_callee): Removed.
7282         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7283         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7284         (ipa_method_formal_count): Removed.
7285         (ipa_method_formal_count_set): Removed.
7286         (ipa_method_get_tree): Removed.
7287         (ipa_method_tree_map_create): Removed.
7288         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7289         (ipa_create_param_decls_array): Creates the array itself
7290         (ipa_create_param_decls_array): Temporary variable info instead of 
7291         a few dereferences.
7292         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7293         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7294         (get_type): Removed.
7295         (ipa_jf_get_info_type): Removed.
7296         (ipa_node_create): Renamed to ipa_create_node_params
7297         (ipa_free): Renamed to ipa_free_all_node_params
7298         (ipa_nodes_create): Renamed to ipa_create_all_node_params
7299         (ipa_edges_create): Renamed to ipa_create_all_edge_args
7300         (ipa_edges_free): Renamed to ipa_free_all_edge_args
7301         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7302         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
7303         ipa_free_all_edge_args
7304         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7305         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7306         (ipa_create_methodlist_node): Removed.
7307         (ipa_methodlist_method): Removed.
7308         (ipa_methodlist_method_set): Removed.
7309         (ipa_methodlist_next_method): Removed.
7310         (ipa_methodlist_next_method_set): Removed.
7311         (ipa_method_is_modified): Removed.
7312         (ipa_method_modify_create): Removed.
7313         (ipa_method_modify_init): Temporary variable info instead of a few 
7314         dereferences.
7315         (ipa_detect_param_modifications): Temporary variable info instead of 
7316         a few dereferences.
7317         (ipa_compute_jump_functions): Temporary variable info instead of 
7318         a few dereferences.
7319         (ipa_method_modify_set): Removed.
7320         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7321         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
7322         than craph_node as the first parameter.
7323         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7324         (ipa_method_modify_init): Removed.
7325         (ipa_compute_jump_functions): Added a temp variable instead of 
7326         repeatadly dereferencing the cgraph_edge.aux pointer
7327         (ipa_callsite_param_set_type): Removed.
7328         (ipa_compute_jump_functions): i renamed to index and moved to 
7329         an inner block
7330         (ipa_callsite_param_set_info_type_formal): Removed.
7331         (ipa_callsite_param_set_info_type): Removed.
7332         (ipa_callsite_param_map_create): Removed.
7333         (ipa_callsite_tree): Removed.
7334         (ipa_callsite_caller): Removed.
7335         (ipa_pop_func_from_list): return_method removed to return_func
7337         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7338         prefixed all values with IPA_. Changed all users.
7339         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
7340         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
7341         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
7342         (union parameter_info): Renamed to jump_func_value.
7343         (union jump_func_value): Renamed value to constant
7344         (struct ipa_jump_func): Renamed info_type to value
7345         (struct ipa_node): Renamed to ipa_node_params
7346         (struct ipa_node_params): Renamed ipa_arg_num to param_count
7347         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7348         (struct ipa_node_params): Renamed ipa_mod to modified_flags
7349         (struct ipa_edge): Renamed to ipa_edge_args
7350         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7351         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7352         (struct ipa_methodlist): Renamed to ipa_func_list
7353         (struct ipa_func_list): method_p renamed to node, next_method
7354         renamed to next
7355         (ipa_methodlist_p): Removed, switched all users to struct pointer
7356         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7358 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
7360         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7361         (rs6000_emit_epilogue): Use backchain to restore only when we
7362         have a large frame.  Make use of frame pointer to restore if we
7363         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7365 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
7367         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7368         Add mode to zero_extract.
7369         (sign bit tests peepholes): (Ditto.).
7371 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7373         * config/i386/i386.c (ix86_builtins): Replace Prescott New
7374         Instructions in comments with SSE3.
7375         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
7376         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7377         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7378         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7379         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7380         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7381         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7382         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7383         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7384         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7385         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7386         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7387         (bdesc_sse_args): Renamed to ...
7388         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7389         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7390         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7391         IX86_BUILTIN_FABSQ.
7392         (bdesc_1arg): Moved to ...
7393         (bdesc_args): Here.
7394         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
7395         Instructions in comments with SSE3.
7396         (ix86_expand_sse_operands_builtin): Renamed to ...
7397         (ix86_expand_args_builtin): This.  Updated.
7398         (ix86_expand_unop1_builtin): Update comments.
7399         (ix86_expand_builtin): Updated.
7401 2008-04-29  Richard Guenther  <rguenther@suse.de>
7403         PR tree-optimization/36078
7404         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7405         Update virtual SSA form after cleaning up the CFG.
7407 2008-04-29  Richard Guenther  <rguenther@suse.de>
7409         PR middle-end/15255
7410         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7412 2008-04-29  Richard Guenther  <rguenther@suse.de>
7414         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7415         (compute_may_aliases): Do not call finalize_ref_all_pointers.
7416         (compute_flow_insensitive_aliasing): Do not treat
7417         PTR_IS_REF_ALL pointers special.
7418         (get_smt_for): Likewise.
7419         (may_alias_p): Re-structure.
7420         (is_escape_site): A ref-all pointer conversion is not an escape site.
7421         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7422         PTR_IS_REF_ALL pointers special.
7423         * tree-ssa-structalias.h (struct alias_info): Remove
7424         ref_all_symbol_mem_tag field.
7425         (PTR_IS_REF_ALL): Remove.
7427 2008-04-29  Richard Guenther  <rguenther@suse.de>
7429         PR middle-end/36077
7430         * fold-const.c (extract_muldiv_1): In combining division constants
7431         make sure to never overflow.
7433 2008-04-29  Nick Clifton  <nickc@redhat.com>
7435         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7437 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7439         PR bootstrap/35169
7440         * optc-gen.awk: Work around HP-UX/IA awk bug.
7442 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
7444         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7445         2008-04-25 commit.
7447 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7449         PR target/36073
7450         * config/i386/i386.md
7451         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7452         Change operand 1 predicate to nonimmediate_operand.
7454 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
7456         PR debug/36060
7457         * dwarf2out.c (struct die_struct): Mark as chain_circular through
7458         die_sub field.
7459         * gengtype.c (walk_type, write_func_for_structure): Handle
7460         chain_circular.
7461         * doc/gty.texi: Document chain_circular.
7463 2008-04-28  Richard Guenther  <rguenther@suse.de>
7465         PR tree-optimization/36066
7466         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7467         SCEV and loop.
7469 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7471         PR target/36064
7472         * config/i386/i386.md
7473         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7474         Use match_scratch instead of match_operand for operands 3 and 4.
7476 2008-04-27  Richard Guenther  <rguenther@suse.de>
7478         PR tree-optimization/18754
7479         PR tree-optimization/34223
7480         * tree-pass.h (pass_complete_unrolli): Declare.
7481         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7482         loop size before and after unconditionally of UL_NO_GROWTH in effect.
7483         Rewrite loop into loop closed SSA form if it is not already.
7484         (tree_unroll_loops_completely): Re-structure to iterate over
7485         innermost loops with intermediate CFG cleanups.
7486         Unroll outermost loops only if requested or the code does not grow
7487         doing so.
7488         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7489         loops are available.
7490         (tree_vectorize): Instead do so here.
7491         (tree_complete_unroll): Also unroll outermost loops.
7492         (tree_complete_unroll_inner): New function.
7493         (gate_tree_complete_unroll_inner): Likewise.
7494         (pass_complete_unrolli): New pass.
7495         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7496         uses outside of the loop.
7497         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7498         form if it is available.  
7499         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7500         * passes.c (init_optimization_passes): Schedule complete inner
7501         loop unrolling pass before the first CCP pass after final inlining.
7503 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
7505         * targhooks.h (default_emutls_var_fields,
7506         default_emutls_var_init): Declare.
7507         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7508         * target.h (struct gcc_target): Add struct emutls member.
7509         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7510         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7511         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7512         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7513         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7514         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7515         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7516         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7517         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7518         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7519         emit debug information.
7520         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7521         * varasm.c: Include targhooks.h.
7522         (emutls_object_section, emutls_tmpl_section): New.
7523         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7524         (EMUTLS_SEPARATOR): New.
7525         (prefix_name): New.
7526         (get_emutls_object_name): New.
7527         (default_emutls_var_fields): New, broken out of ...
7528         (get_emutls_object_type): ... here.  Adjust to use target hooks.
7529         (get_emutls_init_templ_addr): Adjust to use target hooks.
7530         (emutls_decl): Adjust to use target hooks.
7531         (emutls_finish): Likewise.
7532         (default_emutls_var_init): New, broken out of ...
7533         (assemble_variable): ... here.  Adjust to use target hooks.
7534         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7535         SECCAT_EMUTLS_TMPL.
7536         * c-common.c (handle_section_attribute): Prevent overriding
7537         sections for emulated tls with special sections.
7538         * config/i386/i386.c (x86_64_elf_select_section): Add
7539         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7540         (x86_64_elf_unique_section): Likewise.
7541         * config/vxworks.c: Include tree.h.
7542         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7543         (vxworks_override_options): Set TLS scheme.
7544         * doc/tm.texi (Emulated TLS): New node.
7546 2008-04-26  Simon Baldwin <simonb@google.com>
7548         PR c/35652
7549         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7550         with propagated string constants.
7552 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
7554         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7555         constraint for operand 2 when operand 0 is memory operand.
7556         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7557         operand 0 is memory operand.
7558         (fix_trunc<mode>_i387_with_temp): Ditto.
7559         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7560         operand 2 when operand 1 is memory operand.
7561         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7562         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7563         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7564         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7565         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7566         operands 2,3 and 4 when operand 1 is memory operand.
7567         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7568         is memory operand.
7569         (fistdi2_floor_with_temp): Ditto.
7570         (fist<mode>2_floor_with_temp): Ditto.
7571         (fistdi2_ceil_with_temp): Ditto.
7572         (fist<mode>2_ceil_with_temp): Ditto.
7573         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7575 2008-04-26  David Daney  <ddaney@avtrex.com>
7577         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7578         unspec_volitile.
7579         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7580         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7581         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7582         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7583         (compare_and_swap_12): New insn.
7584         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7585         * config/mips/mips.c (mips_force_binary): New function.
7586         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7587         (mips_expand_compare_and_swap_12): New function.
7588         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7590 2008-04-25  Jan Hubicka  <jh@suse.cz>
7592         PR testsuite/35843
7593         * cfgexpand.c (pass_expand): Turn into RTL pass.
7594         * passes.c (execute_one_pass): Do pass typechecking after execution.
7595         * tree-pass.h (pass_expand): Turn into RTL pass.
7597         * function.h (struct rtl_data): Move here fields
7598         accesses_prior_frames, calls_eh_return, saves_all_registers,
7599         has_nonlocal_goto, has_asm_statement, is_thunk,
7600         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7601         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7602         arg_pointer_save_area_init from struct function; turn into bool.
7603         (struct function): Move
7604         calls_eh_return, saves_all_registers, has_nonlocal_goto,
7605         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7606         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7607         tail_call_emit, arg_pointer_save_area_init
7608         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
7609         (current_function_returns_struct, current_function_returns_pcc_struct,
7610         current_function_calls_setjmp, current_function_calls_alloca,
7611         current_function_accesses_prior_frames,
7612         current_function_calls_eh_return, current_function_is_thunk,
7613         current_function_stdarg, current_function_profile,
7614         current_function_limit_stack, current_function_uses_pic_offset_table,
7615         current_function_uses_const_pool, current_function_has_nonlocal_label,
7616         current_function_saves_all_registers,
7617         current_function_has_nonlocal_goto,
7618         current_function_has_asm_statement): Remove accesor macros.
7619         * ra-conflict.c (global_conflicts): Update.
7620         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7621         (suitable_for_tail_call_opt_p): Update.
7622         * builtins.c (expand_builtin_return_addr): Update.
7623         (expand_builtin_setjmp_setup): Update.
7624         (expand_builtin_nonlocal_goto): Update.
7625         * final.c (final_start_function): Update.
7626         (profile_function): Update.
7627         (leaf_function_p): Update.
7628         (only_leaf_regs_used): Update.
7629         * df-scan.c (df_get_exit_block_use_set): Update.
7630         * dojump.c (clear_pending_stack_adjust): Update.
7631         * tree-stdarg.c (gate_optimize_stdarg): Update.
7632         * gimple-low.c (lower_function_body): Update.
7633         * global.c (compute_regsets): Update.
7634         (global_alloc): Update.
7635         * dwarf2out.c (dwarf2out_begin_prologue): Update.
7636         * expr.c (expand_assignment): Update.
7637         * dse.c (dse_step0): Update.
7638         (dse_step1): Update.
7639         * c-decl.c (store_parm_decls): Update.
7640         * local-alloc.c (combine_regs): Update.
7641         (find_free_reg): Update.
7642         * function.c (assign_parms_augmented_arg_list): Update.
7643         (assign_parm_find_data_types): Update.
7644         (assign_parms): Update.
7645         (allocate_struct_function): Update.
7646         (expand_function_start): Update.
7647         (expand_function_end): Update.
7648         (get_arg_pointer_save_area): Update.
7649         (thread_prologue_and_epilogue_insns): Update.
7650         (rest_of_match_asm_constraints): Update.
7651         * stor-layout.c (variable_size): Update.
7652         * gcse.c (gcse_main): Update.
7653         (bypass_jumps): Update.
7654         * gimplify.c (gimplify_function_tree): Update.
7655         * calls.c (emit_call_1): Update.
7656         (expand_call): Update.
7657         * bt-load.c (compute_defs_uses_and_gen): Update.
7658         * except.c (sjlj_assign_call_site_values): Update.
7659         (sjlj_emit_function_enter): Update.
7660         (can_throw_external): Update.
7661         (set_nothrow_function_flags): Update.
7662         (expand_builtin_unwind_init): Update.
7663         (expand_eh_return): Update.
7664         (convert_to_eh_region_ranges): Update.
7665         (output_function_exception_table): Update.
7666         * emit-rtl.c (gen_tmp_stack_mem): Update.
7667         * cfgexpand.c (expand_used_vars): Update.
7668         (tree_expand_cfg): Update.
7669         * cfgcleanup.c (rest_of_handle_jump): Update.
7670         * explow.c (allocate_dynamic_stack_space): Update.
7671         * varasm.c (assemble_start_function): Update.
7672         (force_const_mem): Update.
7673         (mark_constant_pool): Update.
7674         * tree-optimize.c (tree_rest_of_compilation): Update.
7675         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7676         * tree-cfg.c (notice_special_calls): Update.
7677         (is_ctrl_altering_stmt): Update.
7678         (tree_can_make_abnormal_goto): Update.
7679         (tree_purge_dead_abnormal_call_edges): Update.
7680         * config/alpha/predicates.md: Update.
7681         * config/alpha/alpha.c (alpha_sa_mask): Update.
7682         (alpha_sa_size): Update.
7683         (alpha_does_function_need_gp): Update.
7684         (alpha_expand_prologue): Update.
7685         (alpha_start_function): Update.
7686         (alpha_output_function_end_prologue): Update.
7687         (alpha_expand_epilogue): Update.
7688         * config/frv/frv.c (frv_stack_info): Update.
7689         (frv_expand_epilogue): Update.
7690         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7691         (s390_register_info): Update.
7692         (s390_frame_info): Update.
7693         (s390_init_frame_layout): Update.
7694         (s390_can_eliminate): Update.
7695         (save_gprs): Update.
7696         * config/spu/spu.c (spu_split_immediate): Update.
7697         (need_to_save_reg): Update.
7698         (spu_expand_prologue): Update.
7699         (spu_expand_epilogue): Update.
7700         * config/sparc/sparc.md: Update.
7701         * config/sparc/sparc.c (eligible_for_return_delay): Update.
7702         (sparc_tls_got): Update.
7703         (legitimize_pic_address): Update.
7704         (sparc_emit_call_insn): Update.
7705         (sparc_expand_prologue): Update.
7706         (output_return): Update.
7707         (print_operand): Update.
7708         (sparc_function_ok_for_sibcall): Update.
7709         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
7710         * config/m32r/m32r.md: Update.
7711         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
7712         (m32r_compute_frame_size): Update.
7713         (m32r_expand_prologue): Update.
7714         (m32r_expand_epilogue): Update.
7715         (m32r_legitimize_pic_address): Update.
7716         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
7717         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7718         * config/i386/i386.c (ix86_frame_pointer_required): Update.
7719         (gen_push): Update.
7720         (ix86_save_reg): Update.
7721         (ix86_compute_frame_layout): Update.
7722         (ix86_expand_prologue): Update.
7723         (ix86_expand_epilogue): Update.
7724         * config/sh/sh.c (output_stack_adjust): Update.
7725         (calc_live_regs): Update.
7726         (sh5_schedule_saves): Update.
7727         (sh_expand_prologue): Update.
7728         (sh_expand_epilogue): Update.
7729         (sh_setup_incoming_varargs): Update.
7730         (sh_allocate_initial_value): Update.
7731         (sh_get_pr_initial_val): Update.
7732         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
7733         * config/sh/sh.md (label:): Update.
7734         * config/avr/avr.c (out_movhi_mr_r): Update.
7735         * config/crx/crx.h (enum): Update.
7736         * config/xtensa/xtensa.h (along): Update.
7737         * config/stormy16/stormy16.c Update.
7738         (xstormy16_compute_stack_layout): Update.
7739         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
7740         (fr30_expand_prologue): Update.
7741         * config/cris/cris.c (cris_conditional_register_usage): Update.
7742         (cris_reg_saved_in_regsave_area): Update.
7743         (cris_initial_frame_pointer_offset): Update.
7744         (cris_simple_epilogue): Update.
7745         (cris_expand_prologue): Update.
7746         (cris_expand_epilogue): Update.
7747         (cris_expand_pic_call_address): Update.
7748         (cris_asm_output_symbol_ref): Update.
7749         (cris_asm_output_label_ref): Update.
7750         * config/cris/cris.md Update.
7751         * config/iq2000/iq2000.c (compute_frame_size): Update.
7752         (iq2000_expand_epilogue): Update.
7753         * config/mt/mt.h (save_direction): Update.
7754         * config/mn10300/mn10300.c (mn10300_function_value): Update.
7755         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7756         (ia64_secondary_reload_class): Update.
7757         * config/m68k/m68k.c (m68k_save_reg): Update.
7758         (m68k_expand_prologue): Update.
7759         (m68k_expand_epilogue): Update.
7760         (legitimize_pic_address): Update.
7761         * config/rs6000/rs6000.c (rs6000_got_register): Update.
7762         (first_reg_to_save): Update.
7763         (first_altivec_reg_to_save): Update.
7764         (compute_vrsave_mask): Update.
7765         (compute_save_world_info): Update.
7766         (rs6000_stack_info): Update.
7767         (spe_func_has_64bit_regs_p): Update.
7768         (rs6000_ra_ever_killed): Update.
7769         (rs6000_emit_eh_reg_restore): Update.
7770         (rs6000_emit_allocate_stack): Update.
7771         (rs6000_emit_prologue): Update.
7772         (rs6000_emit_epilogue): Update.
7773         (rs6000_output_function_epilogue): Update.
7774         (output_profile_hook): Update.
7775         (rs6000_elf_declare_function_name): Update.
7776         * config/rs6000/rs6000.h (rs6000_args): Update.
7777         * config/rs6000/rs6000.md: Update.
7778         * config/mcore/mcore.c (mcore_expand_prolog): Update.
7779         * config/arc/arc.c (arc_output_function_epilogue): Update.
7780         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
7781         * config/darwin.c (machopic_function_base_name): Update.
7782         * config/score/score3.c (score3_compute_frame_size): Update.
7783         (rpush): Update.
7784         (rpop): Update.
7785         (score3_epilogue): Update.
7786         * config/score/score7.c (score7_compute_frame_size): Update.
7787         (score7_prologue): Update.
7788         (score7_epilogue): Update.
7789         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
7790         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7791         * config/arm/arm.c (use_return_insn): Update.
7792         (require_pic_register): Update.
7793         (arm_load_pic_register): Update.
7794         (arm_compute_save_reg0_reg12_mask): Update.
7795         (arm_compute_save_reg_mask): Update.
7796         (thumb1_compute_save_reg_mask): Update.
7797         (output_return_instruction): Update.
7798         (arm_output_function_prologue): Update.
7799         (arm_output_epilogue): Update.
7800         (arm_get_frame_offsets): Update.
7801         (arm_expand_prologue): Update.
7802         (thumb_pushpop): Update.
7803         (thumb_exit): Update.
7804         (thumb1_expand_prologue): Update.
7805         (thumb1_expand_epilogue): Update.
7806         (arm_unwind_emit): Update.
7807         (arm_output_fn_unwind): Update.
7808         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
7809         * config/arm/arm.md: Update.
7810         * config/pa/pa.md: Update.
7811         * config/pa/pa.c (legitimize_pic_address): Update.
7812         (compute_frame_size): Update.
7813         (hppa_expand_prologue): Update.
7814         (hppa_expand_epilogue): Update.
7815         (borx_reg_operand): Update.
7816         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
7817         (HARD_REGNO_RENAME_OK): Update.
7818         * config/mips/mips.c (mips_global_pointer): Update.
7819         (mips_save_reg_p): Update.
7820         (mips_compute_frame_info): Update.
7821         (mips_frame_pointer_required): Update.
7822         (mips_expand_prologue): Update.
7823         (mips_expand_epilogue): Update.
7824         (mips_can_use_return_insn): Update.
7825         (mips_reorg_process_insns): Update.
7826         * config/v850/v850.c (compute_register_save_size): Update.
7827         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
7828         * config/mmix/mmix.c (along): Update.
7829         (mmix_expand_epilogue): Update.
7830         * config/bfin/bfin.c (legitimize_pic_address): Update.
7831         (must_save_p): Update.
7832         (stack_frame_needed_p): Update.
7833         (add_to_reg): Update.
7834         (bfin_expand_prologue): Update.
7835         * stmt.c (expand_asm_operands): Update.
7836         * reload1.c (reload): Update.
7837         (init_elim_table): Update.
7839 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
7840         
7841         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
7842         
7843 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
7845         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
7846         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
7847         (mov<mode>): Removed.
7848         (*movv4sf_internal): Likewise.
7849         (*movv2df_internal): Likewise.
7851 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
7853         * config.gcc (crx-*-elf): Remove deprecation.
7855 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
7857         * config/i386/cygming-crtend.c (register_frame_ctor): Register
7858         __gcc_deregister_frame with atexit.
7859         (deregister_frame_dtor): Remove.
7861 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
7862             Nathan Sidwell  <nathan@codesourcery.com>
7864         * config/rs6000/rs6000.opt (mspe): Remove Var property.
7865         (misel): Likewise.
7866         * config/rs6000/rs6000.h (rs6000_spe): Declare.
7867         (rs6000_isel): Likewise.
7868         * config/rs6000/rs6000.c (rs6000_spe): New variable.
7869         (rs6000_isel): New variable.
7870         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
7872 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7874         PR c++/35758
7875         * c-common.c (handle_vector_size_attribute): Call
7876         lang_hooks.types.reconstruct_complex_type instead of
7877         reconstruct_complex_type.
7878         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
7879         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
7880         * langhooks.h (struct lang_hooks_for_types): Add
7881         reconstruct_complex_type hook.
7882         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
7883         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
7885 2008-04-24  Richard Guenther  <rguenther@suse.de>
7887         * c-common.h (check_builtin_function_arguments): Declare.
7888         * c-common.c (validate_nargs): New function.
7889         (check_builtin_function_arguments): Likewise.
7890         * c-typeck.c (build_function_call): Call
7891         check_builtin_function_arguments.
7892         * builtins.c (fold_builtin_classify): Remove error reporting code.
7893         (fold_builtin_unordered_cmp): Likewise.
7894         (fold_builtin_1): Likewise.
7895         (fold_builtin_n): Likewise.
7897 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7899         PR tree-optimization/36008
7900         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
7901         the original op1, rather than delta by step.
7903 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
7904             Sebastian Pop  <sebastian.pop@amd.com>
7906         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7907         eliminate_local_variables_stmt, eliminate_local_variables,
7908         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7909         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7910         of code delimited by two edges in the CFG.
7911         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7912         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7913         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
7914         the case of parallelisation of reductions.
7915         (expr_invariant_in_region_p): New.
7917         * tree-flow.h (gather_blocks_in_sese_region): Declared.
7918         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7920 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7921             Richard Guenther  <rguenther@suse.de>
7923         PR tree-optimization/36034
7924         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
7925         incapable of dealing with loads with gaps.
7927 2008-04-24  Rafael Espindola  <espindola@google.com>
7929         * tree-flow.h (vrp_evaluate_conditional): Change signature.
7930         * tree-ssa-propagate.c (fold_predicate_in): Update call to
7931         vrp_evaluate_conditional.
7932         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
7933         (vrp_evaluate_conditional): Split the cond argument.
7934         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
7935         (simplify_stmt_for_jump_threading): Update call to
7936         vrp_evaluate_conditional.
7938 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7940         PR tree-optimization/35982
7941         * tree-vect-analyze.c (vect_check_interleaving): Check that the
7942         interleaved data-refs are of the same type.
7944 2008-04-24  Danny Smith  <dannysmith@users.net>
7946         * c-format.c (check_format_info_main): Use strncmp rather than a
7947         magic prefix to handle multichar length specs.
7948         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
7949         Don't prefix "I64" and "I32" with '\0'.
7951 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7953         PR target/36015
7954         * config/i386/i386.c (init_cumulative_args): Don't pass anything
7955         in registers for -m32 only if stdarg_p (fntype).
7957 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
7959         PR rtl-optimization/36006
7960         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
7961         temp to op0 in order to avoid invalid rtx sharing.
7963 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
7965         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
7966         check TREE_INVARIANT.
7967         * tree-gimple.c (is_gimple_address): New.
7968         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
7969         * tree-gimple.h (is_gimple_address): New.
7970         * tree.h (decl_address_invariant_p): New.
7971         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
7972         (build_string): Likewise.
7973         (decl_address_invariant_p): New, from is_gimple_invariant_address.
7974         (tree_invariant_p_1): Likewise.
7975         (save_expr): Use it.
7976         (tree_invariant_p): New.
7977         (skip_simple_arithmetic): Use it.
7978         (stabilize_reference_1): Use it.
7979         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
7980         simplify.
7981         (build1_stat): Drop code to compute TREE_INVARIANT.
7982         (build2_stat): Drop code to compute TREE_INVARIANT.
7983         (build3_stat): Drop code to compute TREE_INVARIANT.
7984         (build4_stat): Drop code to compute TREE_INVARIANT.
7985         (build5_stat): Drop code to compute TREE_INVARIANT.
7986         (build7_stat): Drop code to compute TREE_INVARIANT.
7987         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
7988         * tree.h (struct tree_base): Remove invariant_flag.
7989         (TREE_INVARIANT): Remove.
7990         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
7991         (fold_builtin_expect): Check TREE_CONSTANT.
7992         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
7993         * c-tree.h (c_expr_to_decl): Drop third parameter.
7994         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
7995         (build_c_cast): Don't set TREE_INVARIANT.
7996         (pop_init_level): Don't set TREE_INVARIANT.
7997         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
7998         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
7999         TREE_CONSTANT.
8000         (gimplify_init_constructor): Don't set TREE_INVARIANT.
8001         (gimplify_addr_expr): Adjust comment.
8002         * tree-mudflap.c (mf_build_string):
8003         * print-tree.c (print_node): Don't print TREE_INVARIANT.
8004         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8005         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8006         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8007         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8008         * langhooks.h (struct lang_hooks): Drop third parameter from
8009         expr_to_decl.
8011 2008-04-23  Richard Guenther  <rguenther@suse.de>
8013         PR tree-optimization/27799
8014         PR tree-optimization/32921
8015         PR tree-optimization/32624
8016         * tree-ssa-structalias.c (merge_smts_into): Only merge the
8017         SMTs aliases and the tag itself into the solution.
8018         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8019         merge the points-to solution back into the SMT aliases.
8020         (may_alias_p): Use alias_set_subset_of instead of
8021         aliases_conflict_p.  A pointer which points to
8022         memory with alias set zero may access any variable.
8024 2008-04-23  Richard Guenther  <rguenther@suse.de>
8026         * alias.c (alias_set_subset_of): Correctly handle asking
8027         if zero is a subset of an alias set with zero child.
8028         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8029         (compute_flow_insensitive_aliasing): Correctly walk all
8030         pointers.  Do not unnecessarily union sets.
8032 2008-04-23  Richard Guenther  <rguenther@suse.de>
8034         PR middle-end/36021
8035         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8037 2008-04-22  Tomas Bily  <tbily@suse.cz>
8039         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8040         unreachable case.
8041         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8042         NON_LVALUE_EXPR.
8043         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8044         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8045         * tree-inline.c (estimate_num_insns_1): Likewise.
8046         * varasm.c (const_hash_1, compare_constant, copy_constant)
8047         (compute_reloc_for_constant, output_addressed_constants): Likewise.
8048         * emit-rtl.c (component_ref_for_mem_expr)
8049         (set_mem_attributes_minus_bitpos): Likewise.
8050         * expr.c (highest_pow2_factor, expand_expr_real_1, )
8051         (is_aligning_offset): Likewise.
8052         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8053         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8054         * dojump.c (do_jump): Likewise.
8055         * builtins.c (get_pointer_alignment, get_memory_rtx)
8056         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8057         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8059 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
8061         PR rtl-optimization/36017
8062         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8063         expanding the library call.
8065 2008-04-22  Ian Lance Taylor  <iant@google.com>
8067         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8068         than size_in_bytes.
8070 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
8072         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8073         of LR/CTR moves for Power6.
8075 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8077         PR middle-end/36003
8078         * passes.c (init_optimization_passes): Remove
8079         pass_fast_rtl_byte_dce.
8080         
8081 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
8083         PR target/29096
8084         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8085         builtin functions to generate faster code.
8086         (_mm_cvtpu16_ps): Ditto.
8087         (_mm_cvtpi32x2_ps): Ditto.
8089 2008-04-22  Nick Clifton  <nickc@redhat.com>
8091         * common.opt (ftree-loop-distribution): Add Optimization
8092         attribute.
8094         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8095         (frv_expand_builtin_va_start): Likewise.
8097         * config/arm/arm.c (thumb_find_work_register): Fix location of
8098         argument register count.
8100 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8102         Support scheduling for ColdFire V1 and V3 microarchitecture.
8103         Improve scheduling of multiplication instructions.
8105         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
8106         (mac): New instruction attribute.
8107         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8108         (m68k_sched_mac): New variable.
8109         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8110         Handle cfv1 and cfv3.
8111         (max_insn_size): New static variable.
8112         (struct _sched_ib): New type.
8113         (sched_ib): New static variable.
8114         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8115         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
8116         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8117         Update.
8118         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8119         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
8120         new variables.  Update.
8121         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8122         Add modeling of cfv3 instruction buffer.  Update.
8123         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8124         * config/m68k/m68k.h (TUNE_CFV3): New macro.
8125         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8126         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8127         a particular reservation applies to.
8128         (type2): Reorganize attribute values.  Rename alu to alu_reg,
8129         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
8130         to mul_l and mul_w.
8131         (cf_ib_*): Simplify description of instruction buffer.
8132         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8133         (cf_mem): Split into cf_mem1 and cf_mem2.
8134         (cf_v2_move_??): Rename to cfv12_alu_??.
8135         (cf_v2_move_l_??): Rename to cfv12_omove_??.
8136         (cf_v2_mul_??): Remove reservations.
8137         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8138         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8139         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8140         appropriate place.
8141         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8142         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8143         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8144         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8145         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8146         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8147         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8148         expansions of the above reservations for instructions of sizes
8149         1, 2 and 3 words.
8151 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8153         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8155 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
8157         * coverage.c: Include tree-pass.h.
8158         (coverage_counter_alloc): Print da_file_name to the dump file.
8160 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
8162         * sbitmap.c (sbitmap_range_empty_p): New function.
8163         * sbitmap.h (sbitmap_range_empty_p): New function.
8164         * bitmap.h: Now includes obstack.h.
8166 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
8167             Kenneth Zadeck  <zadeck@naturalbridge.com>
8169         * dbgcnt.def (ra_byte_scan): Added.
8170         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8171         when the last hit happens for a counter.  
8172         * timevar.def (TV_DF_BYTE_LR): New variable.
8173         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8174         * passes.c (pass_fast_rtl_byte_dce): New pass.
8175         * fwprop.c (update_df): Added mode to call df_ref_create.
8176         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8177         DF_REF_EXTRACT_OFFSET.
8178         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
8179         DF_BYTE_LR_OUT, df_byte_lr): New macro.
8180         (df_mm): New enum.
8181         (df_ref_extract): Added mode field.
8182         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8183         DF_REF_EXTRACT_OFFSET.
8184         (DF_REF_EXTRACT_MODE): New macro.
8185         (df_byte_lr_bb_info): New structure.
8186         (df_print_byte_regset, df_compute_accessed_bytes, 
8187         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8188         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8189         df_byte_lr_simulate_uses,
8190         df_byte_lr_simulate_artificial_refs_at_top,
8191         df_byte_lr_simulate_artificial_refs_at_end,
8192         df_compute_accessed_bytes): New function.
8193         (df_ref_create): Add parameter.
8194         (df_byte_lr_get_bb_info): New inline function.
8195         * df-scan.c (df_ref_record, df_uses_record,
8196         df_ref_create_structure): Added mode parameter.
8197         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
8198         df_defs_record, df_uses_record, df_get_conditional_uses,
8199         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
8200         df_entry_block_defs_collect, df_exit_block_uses_collect):
8201         Added mode parameter to calls to df_ref_record, df_uses_record,
8202         df_ref_create_structure.
8203         (df_ref_equal_p, df_ref_compare): Added test for modes.
8204         (df_ref_create_structure): Added code to set mode.  Renamed
8205         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8206         DF_REF_EXTRACT_OFFSET.
8207         * df-core.c (df_print_byte_regset): New function.
8208         * df-byte-scan.c: New file.
8209         * df-problems.c (df_rd_transfer_function): Removed unnecessary
8210         calls to BITMAP_FREE.  
8211         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8212         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8213         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
8214         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
8215         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8216         df_byte_lr_local_compute, df_byte_lr_init,
8217         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
8218         df_byte_lr_transfer_function, df_byte_lr_free, 
8219         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8220         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
8221         df_byte_lr_simulate_uses,
8222         df_byte_lr_simulate_artificial_refs_at_top,
8223         df_byte_lr_simulate_artificial_refs_at_end): New function.
8224         * dce.c (byte_dce_process_block): New function.
8225         (dce_process_block): au is now passed in rather than computed
8226         locally.  Changed loops that look at artificial defs to not look
8227         for conditional or partial ones, because there never are any.  
8228         (fast_dce): Now is able to drive byte_dce_process_block or 
8229         dce_process_block depending on the kind of dce being done.
8230         (rest_of_handle_fast_dce): Add parameter to fast_dce.
8231         (rest_of_handle_fast_byte_dce): New function.
8232         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8233         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8235 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
8237         PR fortran/35019
8238         * gcc.h: Added fortran options that take arguments to
8239         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8240         macros.
8242 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8244         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8245         scalarization if on the LHS and not a full access.
8247 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8249         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8251 2008-04-18  Rafael Espindola  <espindola@google.com>
8253         * tree-vrp.c (find_case_label_index): Fix the binary search.
8254         (find_case_label_range): New.
8255         (vrp_visit_switch_stmt): Use find_case_label_range.
8256         (simplify_switch_using_ranges): Use find_case_label_range.
8258 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8260         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8261         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8263 2008-04-18  Tom Tromey  <tromey@redhat.com>
8265         PR libcpp/15500:
8266         * doc/cpp.texi (Implementation-defined behavior): Mention
8267         -finput-charset.
8269 2008-04-18  Ian Lance Taylor  <iant@google.com>
8271         * fold-const.c (pointer_may_wrap_p): New static function.
8272         (fold_comparison): Add another test for pointer overflow.  Use
8273         pointer_may_wrap_p to disable some false positives.
8275 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
8276           
8277         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8278         (fname_as_string): Match updated cpp_interpret_string prototype.
8279         (fix_string_type): Support char16_t* and char32_t*.
8280         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8281         derivative) nodes.  Register as builtin if C++0x.
8282         (c_parse_error): Support CPP_CHAR{16,32}.
8283         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
8284         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8285         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8286         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8287         CTI_CHAR32_ARRAY_TYPE>: New elements.
8288         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8289         char32_type_node, signed_char32_type_node, char16_array_type_node,
8290         char32_array_type_node): New defines.
8291         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8292         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8293         (lex_string): Support CPP_STRING{16,32}, match updated
8294         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8295         (lex_charconst): Support CPP_CHAR{16,32}.
8296         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8297         and CPP_STRING{16,32}.
8299 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
8301         PR bootstrap/35457
8302         * aclocal.m4: Regenerate.
8303         * configure: Regenerate.
8305 2008-04-18  Jan Hubicka  <jh@suse.cz>
8307         * except.c (dw2_size_of_call_site_table,
8308         sjlj_size_of_call_site_table): Use vector API for call_site_record.
8310         * cgraphbuild.c (build_cgraph_edges): Update.
8311         * tree-pass.h: Update comment.
8312         * final.c (leaf_function_p): Update.
8313         (leaf_renumber_regs): Update.
8314         (rest_of_clean_state): Update.
8315         * omp-low.c (expand_omp_parallel): Update.
8316         * ipa-reference.c (analyze_function): Update.
8317         * reorg.c (find_end_label): Update.
8318         (optimize_skip): Update.
8319         (fill_simple_delay_slots): Update.
8320         (fill_simple_delay_slots): Update.
8321         (make_return_insns): Update.
8322         (dbr_schedule): Update.
8323         * gimple-low.c (record_vars_into): Update.
8324         * cfgbuild.c (make_edges): Update.
8325         * function.c (assign_stack_local): Update.
8326         (assign_parm_adjust_stack_rtl): Update.
8327         (locate_and_pad_parm): Update.
8328         (allocate_struct_function): Do not initialize stack_alignment_needed
8329         and preferred_stack_boundary here.
8330         (stack_protect_prologue): Update.
8331         (stack_protect_epilogue): Update.
8332         (expand_function_start): Initialize stack_alignment_needed,
8333         preferred_stack_boundary and max_jumptable_ents.
8334         (expand_function_end): Update.
8335         (free_after_compilation): Do not NULLify epilogue_delay_list.
8336         * function.h (struct rtl_data): Add stack_protect_guard,
8337         stack_alignment_needed,
8338         preferred_stack_boundary, epilogue_delay_list.
8339         (struct function): Remove value_histograms, stack_alignment_needed,
8340         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8341         last_label_uid,
8342         unexpanded_var_list, stack_protect_guard.
8343         (current_function_epilogue_delay_list): Remove.
8344         * ipa-type-escape.c (analyze_function): Update.
8345         * gimplify.c (pop_gimplify_context): Update comment.
8346         * calls.c (expand_call): Update.
8347         (emit_library_call_value_1): Update.
8348         * except.c (set_nothrow_function_flags): Update.
8349         * cfgexpand.c (get_decl_align_unit): Update.
8350         (create_stack_guard): Update.
8351         (estimated_stack_frame_size): Update.
8352         (expand_used_vars): Update.
8353         (tree_expand_cfg): Free histogram earliers, init expansion variables.
8354         * explow.c (allocate_dynamic_stack_space): Update.
8355         * tree-ssa-live.c (remove_unused_locals): Update.
8356         * varasm.c (mark_constant_pool): Update.
8357         * tree-inline.c (remap_decls): Update.
8358         (initialize_cfun): Update.
8359         (declare_return_variable): Update.
8360         (inline_forbidden_p): Update.
8361         (expand_call_inline): Update.
8362         (declare_inline_vars): Update.
8363         (tree_function_versioning): Update.
8364         * tree-flow.h (value_histograms): New.
8365         (VALUE_HISTOGRAMS): New macro.
8366         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8367         last_label_uid.
8368         * tree-cfg.c (set_bb_for_stmt): Update.
8369         (replace_by_duplicate_decl): Update.
8370         (move_block_to_fn): Update.
8371         (new_label_mapper): Update.
8372         (dump_function_to_file): Update.
8373         * ipa-struct-reorg.c (build_data_structure): Update.
8374         * cfgrtl.c (print_rtl_with_bb): Update.
8375         * reload1.c (reload): Update.
8376         (reload): Update.
8377         * config/i386/i386.c (setup_incoming_varargs_64,
8378         ix86_compute_frame_layout): Update.
8379         * config/arc/arc.c (arc_output_function_epilogue): Update.
8381 2008-04-18  Marius Strobl <marius@FreeBSD.org>
8383         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8384         for FreeBSD as well.
8385         * gthr-posix95.h: Likewise.
8387 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
8389         PR rtl-optimization/35838
8390         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8391         out the byte offset of the first subreg.
8393 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
8395         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8396         to split_ti instead of three separate calls with single member arrays.
8397         (subti3 splitter): Ditto.
8398         (adddi3 splitter): Ditto with split_di.
8399         (subdi3 splitter): Ditto.
8400         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8401         two separate calls with single member arrays.  Swap match_dup
8402         operands 1 and 2 to better fit into the array.
8403         (negdi2 splitter): Ditto with split_di.
8404         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
8405         two separate calls with single member arrays.  Swap match_dup operands
8406         6 and 7 to better fit into the array.
8408 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8410         * config/i386/i386.c (sse_builtin_type): New.
8411         (bdesc_sse_args): Likewise.
8412         (bdesc_sse_3arg): Removed.
8413         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8414         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8415         IX86_BUILTIN_ROUNDPS.
8416         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
8417         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
8418         IX86_BUILTIN_ROUNDPS.
8419         (ix86_expand_sse_4_operands_builtin): Removed.
8420         (ix86_expand_sse_operands_builtin): New.
8421         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8422         and CODE_FOR_sse4_1_roundps.
8423         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8424         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
8426 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
8428         PR target/35907
8429         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8430         regs before frame pop when needed.  If use_backchain_to_restore_sp
8431         then load backchain into a temp reg to restore vr and vrsave.  Add
8432         code to restore vr after frame pop if possible.
8434 2008-04-17  Richard Guenther  <rguenther@suse.de>
8436         * tree-vn.c (expressions_equal_p): Do not check type
8437         equality or compatibility before calling operand_equal_p.
8438         * fold-const.c (operand_equal_p): Check equivalence of
8439         integer constants before bailing out due to signedness or
8440         precision differences.
8441         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8442         spurious differences in type qualification.  Ignore types
8443         for COMPONENT_REFs at all.
8445 2008-04-17  Christian Bruel  <christian.bruel@st.com>
8447         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8448         msw_skip comparison.
8449         
8450 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
8452         PR c/35739
8453         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8454         reg type.
8456         PR tree-optimization/35899
8457         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8458         rather than TREE_OPERAND.
8460 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
8462         PR target/35944
8463         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8464         temporary registers.  Change operand predicate to general_operand.
8465         (remainderxf3): Ditto.
8467 2008-04-16  Richard Guenther  <rguenther@suse.de>
8469         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8470         * tree-affine.c (aff_combination_expand): Look through some
8471         conversions.
8473 2008-04-15  Doug Kwan  <dougkwan@google.com>
8475         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8476         for hex printing.
8477         * tree-pretty-print.c (dump_generic_node): Ditto.
8478         * final.c (output_addr_const): Ditto.
8479         * dwarf2out.c (output_cfi): Ditto.
8480         * c-pretty-print.c (pp_c_integer_constant): Ditto.
8481         * print-rtl.c (print_rtx): Ditto.
8482         * print-tree.c (print_node_brief, print_node): Ditto.
8483         * c-common.c (match_case_to_enum_1): Ditto.
8484         * sched-vis.c (print_value): Ditto.
8485         * config/i386/i386.c (print_operand): Cast to long unsigned int
8486         for hex printing.
8488 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
8489         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
8490         MS Windows VirtualProtect function.
8492 2008-04-15  Jan Hubicka  <jh@suse.cz>
8494         * gengtype.c (write_root): Param_is argument is OK.
8495         * expr.c (expand_expr_real_1): Update call of get_exception_*.
8496         * function.h: Include varray.h
8497         (rtl_eh): New stucture based on except.c one.
8498         (call_site_record): New forward declaration and vector type.
8499         * calls.c (emit_call_1): Do not call
8500         note_current_region_may_contain_throw.
8501         * except.c (eh_status): Remove cur_region, try_region since they are
8502         unused.
8503         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8504         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8505         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
8506         Remove call_site_data_used, call_site_data_size.
8507         Turn call_site_record into vector in function.h.
8508         (note_current_region_may_contain_throw): Remove.
8509         (get_exception_pointer, get_exception_filter): Do not take struct
8510         function argument; update.
8511         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8512         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8513         build_post_landing_pads, dw2_build_landing_pads,
8514         sjlj_assign_call_site_values, sjlj_mark_call_sites,
8515         sjlj_emit_function_enter, sjlj_emit_function_enter, 
8516         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8517         sjlj_build_landing_pads, finish_eh_generation,
8518         remove_exception_handler_label, remove_eh_handler,
8519         maybe_remove_eh_handler, add_reachable_handler,
8520         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8521         add_action_record, collect_one_action_chain, add_call_site,
8522         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8523         sjlj_output_call_site_table, output_function_exception_table,
8524         * except.h (note_current_region_may_contain_throw): Remove
8525         (get_exception_pointer, get_exception_filter): Do not take struct
8526         function argument.
8527         * Makefile.in (GTFILES): Put varargs before struct function.
8529 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8531         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8532         punt for STRING_CST.
8533         (get_constraint_for): Deal with STRING_CST here instead.
8535 2008-04-15  Richard Guenther  <rguenther@suse.de>
8537         * tree-ssa-propagate.c (substitute_and_fold): Substitute
8538         statements in a basic-block with a backward walk.  Do not
8539         substitute into dead statements but instead remove those.
8541 2008-04-15  Richard Guenther  <rguenther@suse.de>
8543         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8544         to zero, thus disable creation of SFTs.
8546 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8548         * tree-predcom.c (suitable_reference_p): Return false if the
8549         reference can throw.
8551 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
8553         PR c/35751
8554         * c-decl.c (finish_decl): If extern or static var has variable
8555         size, set TREE_TYPE (decl) to error_mark_node.
8557 2008-04-15  Rafael Espindola  <espindola@google.com>
8559         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8560         variable arg1.
8562 2008-04-15  Richard Guenther  <rguenther@suse.de>
8564         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8565         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8566         (visit_reference_op_load): Do walk vuse-vdef chains on
8567         vn_reference_lookup.
8568         (visit_reference_op_store): But do not here.
8569         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8570         vn_reference_lookup.
8571         (vn_lookup_with_vuses): But do so here.
8573 2008-04-14  Ian Lance Taylor  <iant@google.com>
8575         * fold-const.c (fold_overflow_warning): Remove assertion.
8577 2008-04-15  Ben Elliston  <bje@au.ibm.com>
8579         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8580         temp1 local variables.
8582 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
8584         PR target/35661
8585         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8586         ".text.unlikely" section as executable.
8588 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
8590         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8591         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8592         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8593         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8594         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8595         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8596         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8598 2008-04-14  Ian Lance Taylor  <iant@google.com>
8600         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8601         * fold-const.c (fold_comparison): If appropriate, test
8602         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8603         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8604         reassociating a pointer type.
8605         * doc/invoke.texi (Optimize Options): Document that
8606         -fstrict-overflow applies to pointer wraparound.
8608 2008-04-13  Jan Hubicka  <jh@suse.cz>
8610         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8612 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
8614         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8615         we are going to "save the world".
8617 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
8619         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8620         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8621         operand 0 constraint, not "=".
8623 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
8625         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8627 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8629         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8630         of size of positions_needed * CHAR_BIT.
8632 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8634         PR middle-end/35897
8635         * dse.c (store_info): Change positions_needed to unsigned
8636         HOST_WIDE_INT.
8637         (lowpart_bitmask): New.
8638         (record_store): Cast to unsigned HOST_WIDE_INT for
8639         positions_needed.  Assert width <= size of positions_needed *
8640         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
8641         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
8642         lowpart_bitmask to set mask.
8644 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8646         * config/bfin/constraints.md: New file.
8647         * config/bfin/bfin.md: Include it.
8648         (adddi3): Use satisfies_constraint functions instead of the old macros.
8649         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8650         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8651         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8652         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8653         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8654         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8655         EXTRA_CONSTRAINT): Delete.
8656         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8657         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8658         of the old macros.
8659         * config/bfin/bfin.c: Include "tm-constrs.h".
8660         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8661         Use satisfies_constraint functions instead of the old macros.
8662         * doc/md.texi (Blackfin Constraints): Update file name reference.
8664 2008-04-11  Richard Guenther  <rguenther@suse.de>
8666         PR tree-optimization/35869
8667         * tree-vrp.c (execute_vrp): Move switch statement update after
8668         jump threading.  Schedule another cfg cleanup run.
8670 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
8672         PR c/35744
8673         * attribs.c (decl_attributes): Return early on errorneous node.
8675 2008-04-10  Oleg Ryjkov  <olegr@google.com>
8677         * tree.h (struct tree_base): Added a new flag default_def_flag.
8678         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8680 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8682         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8684 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8686         PR target/35768
8687         * pa.md: Define mode iterator P.  Define mode attribute dwc.
8688         (dcacheflush): Update pattern to use iterator P and attribute dwc.
8689         (icacheflush): Likewise.
8690         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8691         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8693 2008-04-11  Ben Elliston  <bje@au.ibm.com>
8695         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8697 2008-04-10  Rafael Espindola  <espindola@google.com>
8699         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8700         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8701         (extract_range_from_expr): The same.
8703 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8705         * config/mips/mips.md (GPR2): New mode iterator.
8706         (seq): Add comment.
8707         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
8708         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
8709         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8710         Rewrite these to take two modes, the mode of comparison and the
8711         mode of the destination.
8712         * config/mips/mips.c (mips_expand_scc): Instead of having
8713         paradoxical subreg as destination, expand "narrowing" scc if mode
8714         of comparison is SI and target is requested in DI mode.
8715         (mips_emit_int_order_test): Update comment.  Make mode of
8716         comparison match CMP0 rather than TARGET.  When creating inverse
8717         target use mode of TARGET.
8719 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8721         * gcov-dump.c (tag_summary): Only print summaries for the first
8722         GCOV_COUNTERS_SUMMABLE counters.
8724 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
8726         * config/i386/i386.md (absneg): New code iterator.
8727         (absnegprefix): New code attribute.
8728         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
8729         patterns using absneg code iterator.
8730         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
8731         using absneg code iterator.
8732         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
8733         *neg<mode>2 patterns using absneg code iterator.
8734         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8735         *negextendsfdf2 patterns using absneg code iterator.
8736         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
8737         *negextendsfxf2 patterns using absneg code iterator.
8738         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8739         *negextendsfdf2 patterns using absneg code iterator.
8740         * config/i386/sse.md (<code><mode>2): Macroize expander from
8741         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
8743 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
8745         * config/s390/s390.h: Remove the remains of the recent search
8746         & replace action of current_function_outgoing_args_size.
8748 2008-04-10  Ira Rosen  <irar@il.ibm.com>
8750         PR tree-optimization/35821
8751         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
8752         NEW_STMT_LIST is not NULL.
8754 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
8756         PR libstdc++/35597
8757         * toplev.c (process_options): Remove -ffunction-sections debugging
8758         warning.
8760 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
8762         PR middle-end/PR28690
8763         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
8764         than gen_rtx_fmt_ee to perform more canonicalizations.
8766 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8768         PR driver/35665
8769         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
8771 2008-04-09  Richard Guenther  <rguenther@suse.de>
8773         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
8774         (dump_function_to_file): Dump function arguments with types.
8776 2008-04-08  Richard Guenther  <rguenther@suse.de>
8778         * fold-const.c (fold_widened_comparison): Do not allow
8779         sign-changes that change the result.
8781 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
8783         PR target/35839
8784         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
8785         kinds of indirect references.
8787 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
8789         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
8790         GNU Fortran language string.
8792 2008-04-08  Rafael Espindola  <espindola@google.com>
8794         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
8795         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
8796         * tree.h (tree_call_nonnegative_warnv_p): New.
8798 2008-04-08  Jan Hubicka  <jh@suse.cz>
8800         * function.c (free_after_compilation): Clear out regno_reg_rtx
8801         pointer.
8803 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
8805         Revert
8806         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8808         PR middle-end/PR28690
8809         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
8810         same precedence as REG_POINTER and MEM_POINTER operands.
8812 2008-04-08  Richard Guenther  <rguenther@suse.de>
8814         PR middle-end/35834
8815         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
8816         for adding index to base.
8818 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
8820         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
8821         (MINGW_ENABLE_EXECUTE_STACK): New.
8822         (IN_LIBGCC2): For libgcc include windows.h file for
8823         function declarations.
8825 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
8827         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
8828         and tem2 if tem1 is not a REG or MULT.
8830 2008-04-08  Jan Hubicka  <jh@suse.cz>
8832         * function.h (incomming_args): Break out of struct function.
8833         (function_subsections): Break out of struct function.
8834         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
8835         return_rtx and hard_reg_initial_vals from struct function.
8836         Kill inl_max_label_num.
8837         (current_function_pops_args, current_function_args_info,
8838         current_function_args_size, current_function_args_size,
8839         current_function_pretend_args_size,
8840         current_function_outgoing_args_size,
8841         current_function_internal_arg_pointer, current_function_return_rtx):
8842         Kill compatibility accestor macros.
8843         * builtins.c (expand_builtin_apply_args_1): Update.
8844         (expand_builtin_next_arg): Update.
8845         * df-scan.c (df_get_call_refs): Update.
8846         * dbxout.c (dbxout_function_end): Update.
8847         * dwarf2out.c (dwarf2out_switch_text_section): Update.
8848         (output_line_info): Update.
8849         (secname_for_decl): Update.
8850         (dwarf2out_var_location): Update.
8851         * function.c (free_after_compilation): Update.
8852         (assign_parm_find_stack_rtl): Update.
8853         (assign_parms): Update.
8854         (expand_dummy_function_end): Update.
8855         (expand_function_end): Update.
8856         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
8857         (expand_call): Update.
8858         (emit_library_call_value_1): Update.
8859         (store_one_arg): Update.
8860         * varasm.c (initialize_cold_section_name): Update.
8861         (unlikely_text_section): Update.
8862         (unlikely_text_section_p): Update.
8863         (assemble_start_function): Update.
8864         (assemble_end_function): Update.
8865         (default_section_type_flags): Update.
8866         (switch_to_section): Update.
8867         * integrate.c (set_decl_abstract_flags): Update.
8868         (get_hard_reg_initial_val): Update.
8869         (has_hard_reg_initial_val): Update.
8870         (allocate_initial_values): Update.
8871         * resource.c (init_resource_info): Update.
8872         * config/alpha/alpha.c (NUM_ARGS): Update.
8873         (direct_return): Update.
8874         (alpha_va_start): Update.
8875         (alpha_sa_size): Update.
8876         (alpha_initial_elimination_offset): Update.
8877         (alpha_expand_prologue): Update.
8878         (alpha_start_function): Update.
8879         (alpha_expand_epilogue): Update.
8880         (unicosmk_initial_elimination_offset):
8881         * config/alpha/alpha.md (call expander): Update.
8882         * config/s390/s390.c (s390_register_info): Update.
8883         (s390_register_info): Update.
8884         (s390_frame_info): Update.
8885         (s390_initial_elimination_offset): Update.
8886         (s390_build_builtin_va_list): Update.
8887         (s390_va_start): Update.
8888         * config/spu/spu.c (direct_return): Update.
8889         (spu_expand_prologue): Update.
8890         (spu_initial_elimination_offset): Update.
8891         (spu_build_builtin_va_list): Update.
8892         (spu_va_start): Update.
8893         * config/sparc/sparc.c (sparc_init_modes): Update.
8894         (sparc_compute_frame_size): Update.
8895         (function_value): Update.
8896         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
8897         * config/i386/i386.md (return expander): Update.
8898         * config/i386/i386.c (ix86_va_start): Update.
8899         (ix86_can_use_return_insn_p): Update.
8900         (ix86_compute_frame_layout): Update.
8901         (ix86_expand_epilogue): Update.
8902         * config/sh/sh.c (output_stack_adjust): Update.
8903         (calc_live_regs): Update.
8904         (sh_expand_prologue): Update.
8905         (sh_builtin_saveregs): Update.
8906         (sh_va_start): Update.
8907         (initial_elimination_offset): Update.
8908         (sh_allocate_initial_value): Update.
8909         (sh_function_ok_for_sibcall): Update.
8910         (sh_get_pr_initial_val): Update.
8911         * config/sh/sh.md (return expander): Update.
8912         * config/avr/avr.c (frame_pointer_required_p): UPdate.
8913         * config/crx/crx.c (crx_compute_frame): UPdate.
8914         (crx_initial_elimination_offset): UPdate.
8915         * config/xtensa/xtensa.c (compute_frame_size): Update
8916         (xtensa_builtin_saveregs): Update.
8917         (xtensa_va_start): Update.
8918         (order_regs_for_local_alloc): Update.
8919         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
8920         (xstormy16_expand_builtin_va_start): Update.
8921         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
8922         * config/m68hc11/m68hc11.md (return expanders): Update.
8923         * config/m68hc11/m68hc11.c (expand_prologue): Update.
8924         (expand_epilogue): Update.
8925         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
8926         (cris_simple_epilogue): Update.
8927         (cris_expand_prologue): Update.
8928         (cris_expand_epilogue): Update.
8929         * config/iq2000/iq2000.c (iq2000_va_start): Update.
8930         (compute_frame_size): Update.
8931         * config/mt/mt.c (mt_compute_frame_size): Update.
8932         * config/mn10300/mn10300.c (expand_prologue): Update.
8933         (expand_epilogue): Update.
8934         (initial_offset): Update.
8935         (mn10300_builtin_saveregs):
8936         * config/mn10300/mn10300.md (return expander): Update.
8937         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8938         (ia64_initial_elimination_offset): Update.
8939         (ia64_initial_elimination_offset): Update.
8940         (ia64_expand_prologue): Update.
8941         * config/m68k/m68k.md (return expander): Update.
8942         * config/rs6000/rs6000.c (rs6000_va_start): Update.
8943         (rs6000_stack_info): Update.
8944         * config/mcore/mcore.c (layout_mcore_frame): Update.
8945         (mcore_expand_prolog): Update.
8946         * config/arc/arc.c (arc_compute_frame_size): Update.
8947         * config/score/score3.c (score3_compute_frame_size): Update.
8948         * config/score/score7.c (score7_compute_frame_size): Update.
8949         * config/arm/arm.c (use_return_insn): Update.
8950         (thumb_find_work_register): Update.
8951         (arm_compute_save_reg_mask): Update.
8952         (arm_output_function_prologue): Update.
8953         (arm_output_epilogue): Update.
8954         (arm_size_return_regs): Update.
8955         (arm_get_frame_offsets): Update.
8956         (arm_expand_prologue): Update.
8957         (thumb_exit): Update.
8958         (thumb_unexpanded_epilogue): Update.
8959         (thumb1_output_function_prologue): Update.
8960         * config/pa/pa.md (return expander): Update.
8961         * config/pa/pa.c (compute_frame_size): Update.
8962         (hppa_builtin_saveregs): Update.
8963         * config/mips/mips.c (mips_va_start): Update.
8964         (mips16_build_function_stub): Update.
8965         (mips_compute_frame_info): Update.
8966         (mips_restore_gp): Update.
8967         (mips_output_function_prologue): Update.
8968         (mips_expand_prologue): Update.
8969         * config/v850/v850.c (compute_frame_size): Update.
8970         (expand_prologue): * config/mmix/mmix.c (along): update.
8971         (mmix_initial_elimination_offset): update.
8972         (mmix_reorg): update.
8973         (mmix_use_simple_return): update.
8974         (mmix_expand_prologue): update.
8975         (mmix_expand_epilogue): Update.
8976         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
8977         (emit_link_insn): Update.
8979 2008-04-08  Anatoly Sokolov <aesok@post.ru>
8981         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
8982         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
8983         instructions.
8984         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
8985         atmega103 device.
8987 2008-04-07  Jan Hubicka  <jh@suse.cz>
8989         * function.h (rtl): Rename to x_rtl.
8990         (crtl): New define.
8991         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
8992         frame_offset, stack_check_probe_note, arg_pointer_save_area,
8993         used_temp_slots avail_temp_slots, temp_slot_level,
8994         nonlocal_goto_handler_labels): Update accesstors.
8995         (rtl): New global variable.
8996         (struct function): Move some fileds to rtl_data.
8997         (get_arg_pointer_save_area): Update prototype.
8998         * builtins.c (expand_builtin_setjmp_receiver): Update call of
8999         get_arg_pointer_save_area.
9000         * expr.c (init_expr): Update
9001         * function.c (get_frame_size): Update
9002         (assign_stack_local): Update
9003         (expand_function_end): Update.
9004         (get_art_pointer_save_area): Update
9005         * function.h 
9006         * emit-rtl.c (rtl): Declare.
9007         (regno_reg_rtx): Declare.
9008         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9009         Update.
9010         (gen_reg_rtx): Update.
9011         * varasm.c (n_deferred_constatns): Update accestor.
9012         (init_varasm_status): Do not allocate varasm_status.
9013         (force_const_mem, get_pool_size, output_constant_pool): Update.
9014         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9015         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9016         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9017         * sparc/sparc.h (INIT_EXPANDERS): Update.
9018         * ia64/ia64.h (INIT_EXPANDERS): Update.
9020 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
9022         * reload.c (push_secondary_reload): Add missing break to for loop.
9024 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9026         PR middle-end/PR28690
9027         * rtlanal.c: Update copyright years.
9028         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9029         as REG_POINTER and MEM_POINTER operands.
9030         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9031         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9032         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9033         * gcse.c: Update copyright years.
9034         (pre_delete): Call gen_reg_rtx_and_attrs.
9035         (hoist_code): Likewise.
9036         (build_store_vectors): Likewise.
9037         (delete_store): Likewise.
9038         * loop-invariant.c (move_invariant_reg): Likewise.
9039         Update copyright years.
9041 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
9043         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9044         control string instead of quoted.
9046 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9048         * doc/rtl.texi: Rewrite of subreg section.
9050 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
9052         PR/35842
9053         * config/i386/i386.c (legitimize_pic_address): Add treating
9054         of dllimport SYM_REF's.
9055         (legitimize_dllimport_symbol): Add prototype.
9057 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9059         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
9060         reference in constructor with non self-referential type.
9062 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9064         Removal of Return with Depressed Stack Pointer support
9065         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9066         (ECF_SP_DEPRESSED): Likewise.
9067         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9068         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9069         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9070         (expand_call): Do not test ECF_SP_DEPRESSED.
9071         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9072         * function.c (keep_stack_depressed): Delete.
9073         (handle_epilogue_set): Likewise.
9074         (update_epilogue_consts): Likewise.
9075         (emit_equiv_load): Likewise.
9076         (thread_prologue_and_epilogue_insns): Remove support for Return with
9077         Depressed Stack Pointer.
9078         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9080 2008-04-06  Richard Guenther  <rguenther@suse.de>
9082         PR tree-optimization/35400
9083         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9084         information from SSA_NAMEs.
9086 2008-04-06  Anatoly Sokolov <aesok@post.ru>
9088         * config/avr/avr.h (avr_mega_p): Remove declaration.
9089         (AVR_MEGA): Remove macro.
9090         * config/avr/avr.c (avr_mega_p): Remove variable.
9091         (avr_override_options): Remove inicializion of avr_mega_p.
9092         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9093         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9094         (avr_jump_mode): (Ditto.).
9095         (avr_output_progmem_section_asm_op): (Ditto.).
9096         (avr_asm_init_sections): (Ditto.).
9097         (avr_asm_init_sections): (Ditto.).
9098         (avr_rtx_costs): (Ditto.).
9099         * config/avr/avr.md: (Ditto.).
9100         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
9101         '__AVR_MEGA__'.
9103 2008-04-06  Richard Guenther  <rguenther@suse.de>
9105         PR tree-optimization/35842
9106         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9107         is_gimple_invariant_address.
9109 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9111         * gcc.c (default_compilers): Sync Fortran extensions list with
9112         that in fortran/lang-specs.h.
9113         * doc/invoke.texi: Likewise.
9114         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9115         * dwarf2out.c (gen_compile_unit_die): Likewise.
9117 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
9119         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9121 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
9123         PR target/12329
9124         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9125         attribute is used for nested functions.
9127 2008-04-05  Jan Hubicka  <jh@suse.cz>
9129         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9131         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9132         letter argument.
9133         (dump_files): Update.
9134         (enable_rtl_dump_file): Do not accept letter argument.
9135         * tree-pass.h (dump_file_info): Remove letter argument.
9136         * toplev.c (decode_d_option): Update -da handling.
9137         * toplev.h (enable_rtl_dump_file): Update prototype.
9138         * passes.c (register_one_dump_file): Do not accept IPA argument; work
9139         it out based on pass type.
9140         (register_dump_files_1): Likewise.
9141         (init_optimization_passes): Update register_one_dump_file calls.
9142         (execute_one_pass): Sanity check that IPA passes are called at IPA
9143         level and RTL passes at RTL level.
9144         (execute_pass_list): IPA pass can not be after or subpass of
9145         GIMPLE/RTL pass.
9146         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9147         disallov RTL subpasses of IPA subpasses.
9149 2008-04-05  Ben Elliston  <bje@au.ibm.com>
9151         * tree-cfg.c (need_fake_edge_p): Return false for calls to
9152         builtins that return exactly once and do not throw. Cache call to
9153         call_expr_flags.
9155 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9157         PR rtl-optimization/34916
9158         PR middle-end/35519
9159         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9160         between instruction pairs.
9162 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
9164         * doc/invoke.texi: Document -mbitops for SH.
9165         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9166         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9167         * config/sh/sh.c (print_operand): Add %t operand code.
9168         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9169         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9170         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9171         (extendqihi2): Likewise.
9172         (movqi_i): Likewise.
9173         (insv): Use bset, bclr and bst instructions for SH2A if possible.
9174         (extv): Use bld instruction for SH2A if possible.
9175         (extzv): Likewise.
9176         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9177         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9178         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9179         (bset.b, bclr.b): Define peepholes.
9180         * config/sh/sh.opt (mbitops): New option.
9182 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
9184         PR target/35620
9185         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9186         and view convert expression.
9188 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9190         PR target/35364
9191         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9193 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
9195         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9197         * config/i386/cpuid.h (bit_AES): New.
9198         (bit_PCLMUL): Likewise.
9200         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9201         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
9202         SSE2 if AES or PCLMUL is enabled.
9203         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9204         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9205         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9206         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9207         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9208         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9209         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9210         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9211         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9212         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9213         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9214         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9215         __builtin_ia32_aeskeygenassist128 and
9216         __builtin_ia32_pclmulqdq128.
9217         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9218         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9219         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
9221         * config/i386/i386.h (TARGET_AES): New.
9222         (TARGET_PCLMUL): Likewise.
9223         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9225         * config/i386/i386.md (UNSPEC_AESENC): New.
9226         (UNSPEC_AESENCLAST): Likewise.
9227         (UNSPEC_AESDEC): Likewise.
9228         (UNSPEC_AESDECLAST): Likewise.
9229         (UNSPEC_AESIMC): Likewise.
9230         (UNSPEC_AESKEYGENASSIST): Likewise.
9231         (UNSPEC_PCLMUL): Likewise.
9233         * config/i386/i386.opt (maes): New.
9234         (mpclmul): Likewise.
9236         * config/i386/sse.md (aesenc): New pattern.
9237         (aesenclast): Likewise.
9238         (aesdec): Likewise.
9239         (aesdeclast): Likewise.
9240         (aesimc): Likewise.
9241         (aeskeygenassist): Likewise.
9242         (pclmulqdq): Likewise.
9244         * config/i386/wmmintrin.h: New.
9246         * doc/extend.texi: Document AES and PCLMUL built-in function.
9248         * doc/invoke.texi: Document -maes and -mpclmul.
9250 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
9252         * function.c (free_after_parsing): Replace with
9253         cxx_push_function_context from C++ front-end.
9254         (allocate_struct_function): Don't call langhook.
9255         * langhooks.h (struct lang_hooks_for_functions): Delete.
9256         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9257         member "function".
9258         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9259         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9260         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9261         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9262         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9263         remove LANG_HOOKS_FUNCTION_INITIALIZER.
9264         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9266         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9267         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9268         
9269 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9271         PR c/35440
9272         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9273         for all types.
9275 2008-04-04  Richard Guenther  <rguenther@suse.de>
9277         PR middle-end/35823
9278         * fold-const.c (optimize_minmax_comparison): Use the correct
9279         type for the constant in the simplified comparison.
9281 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
9283         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9284         Pass L2 size as "--param l2-cache-size" to the compiler.
9285         (decode_l2_cache): New function to decode L2 cache parameters using
9286         0x8000006 extended cpuid function.
9287         (detect_caches_amd): Determine parameters of L2 cache using
9288         decode_l2_caches function.
9289         (decode_caches_intel): Decode L2 cache parameters.
9290         (detect_caches_intel): Determine L2 cache parameters using
9291         decode_caches_intel and decode_l2_caches functions.
9293 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
9295         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9296         secondary input reload for subword loads from the constant pool.
9298 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
9300         PR target/35713
9301         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9302           constants of the appropriate size for runtime calculations.
9304         PR c/35712
9305         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9306           decimal-float literal constant zero.
9308 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
9310         PR c/35738
9311         * c-parser.c (c_parser_omp_atomic): Call
9312         default_function_array_conversion on the RHS.
9314         PR middle-end/35818
9315         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9316         call is_variable_sized if decl has incomplete type.
9318 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
9320         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9322 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
9324         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9325         iterators.
9326         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9327         (sgt<u>): Merge sgt and sgtu into new expander.
9328         (sgt, sgtu): Remove expanders.
9329         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9330         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9331         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9332         *sgtu_<mode>_mips16 into new pattern.
9333         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9334         (sge<u>): Merge sge and sgeu into new expander.
9335         (sge, sgeu): Remove expanders.
9336         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9337         new pattern.
9338         (*sge_<mode>, second *sge_<mode>): Remove patterns.
9339         (slt<u>): Merge slt and sltu into new expander.
9340         (slt, sltu): Remove expanders.
9341         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9342         (*slt_<mode>, *sltu_<mode>): Remove patterns.
9343         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9344         *sltu_<mode>_mips16 into new pattern.
9345         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9346         (sle<u>): Merge sle and sleu into new expander.
9347         (sle, sleu): Remove expanders.
9348         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9349         (*sle_<mode>, *sleu_<mode>): Remove patterns.
9350         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9351         *sleu_<mode>_mips16 into new pattern.
9352         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9354 2008-04-03  Jan Hubicka  <jh@suse.cz>
9356         PR tree-optimization/35795
9357         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9358         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9359         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9360         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9361         * score/score3.c (score3_output_mi_thunk): Likewise.
9362         * score/score7.c (score7_output_mi_thunk): Likewise.
9363         * mips/mips.c (mips_output_mi_thunk): Likewise.
9365 2008-04-03  Richard Guenther  <rguenther@suse.de>
9367         * tree-vrp.c (extract_range_from_unary_expr): Handle all
9368         conversions.  Simplify code.
9370 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9372         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9374 2008-04-03  Tom Tromey  <tromey@redhat.com>
9375             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9377         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9378         * config/bfin/t-bfin-linux (generated_files): Add
9379         linux-sysroot-suffix.h.
9380         * doc/install.texi (Prerequisites): Require make 3.80.
9381         * doc/sourcebuild.texi (Front End Directory): Document new
9382         variable.
9383         * Makefile.in (generated_files): New variable.
9384         (ALL_HOST_OBJS): New variable.
9385         ($(ALL_HOST_OBJS)): New target.
9387 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9389         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9390         (remap_block): Call id->transform_lang_insert_block instead
9391         of langhook.
9392         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9393         Set id.transform_lang_insert_block to NULL.
9394         (clone_body): Move to cp/optimize.c
9395         * tree-inline.h (struct copy_body_data): Change
9396         transform_lang_insert_block to function pointer.
9397         (copy_generic_body, copy_decl_no_change): Export.
9398         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9399         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9400         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9402         * c-tree.h (insert_block): Kill.
9403         * c-decl.c (insert_block): Kill.
9405 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9407         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9408         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9409         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9410         argument.
9411         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9412         argument, call {push,pop}_function_context from here.
9413         * c-parser.c: Use c_{push,pop}_function_context.
9415         * function.c (push_function_context_to): Move meat ...
9416         (push_function_context): ... here.  Simplify.
9417         * function.c (pop_function_context_from): Move meat ...
9418         (pop_function_context): ... here.  Simplify.
9419         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9420         leave_nested).
9421         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9422         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9423         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9424         * tree.h (push_function_context_to, pop_function_context_from): Remove.
9426 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9428         * expmed.c (extract_force_align_mem_bit_field): Remove.
9430 2008-04-03  Richard Guenther  <rguenther@suse.de>
9432         PR middle-end/35800
9433         * expr.h (try_casesi): Adjust prototype.
9434         * expr.c (try_casesi): Take fallback label as extra parameter.
9435         Use that for gen_casesi if default_label is NULL.
9436         * stmt.c (expand_case): Pass fallback label to try_casesi,
9437         make sure to fill gaps with a fallback label if default_label
9438         is not present.
9440 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
9442         PR target/35801
9443         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9445 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9447         * expmed.c (extract_split_bit_field): Remove if (0) code.
9448         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9449         (do_ds_constraint): Likewise.
9451 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
9453         * doc/cppopts.texi (-dU): Document.
9454         * c-common.h (flag_dump_macros): Update comment.
9455         * c-opts.c (handle_OPT_d): Handle -dU.
9456         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9457         dump_queued_macros, cb_used_define, cb_used_undef): New.
9458         (init_pp_output): Handle -dU.
9459         (cb_line_change): Call dump_queued_macros.
9460         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9462 2008-04-02  Anatoly Sokolov <aesok@post.ru>
9464         * config/avr/predicates.md (io_address_operand): New predicate. 
9465         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9466         * config/avr/avr.c (avr_io_address_p): Remove function.
9467         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
9468         'avr_io_address_p' function.
9469         (out_movhi_r_mr): (Ditto.).
9470         (out_movqi_mr_r): (Ditto.).
9471         (out_movhi_mr_r): (Ditto.).
9472         (avr_address_cost): (Ditto.).
9474 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
9476         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9477         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9478         in 32bit mode when XMM registers are available to avoid store
9479         forwarding stalls.
9480         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9481         corresponding post-reload splitters.
9483 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9485         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9486         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
9487         __builtin_ia32_roundss.
9488         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9489         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9490         __builtin_ia32_roundss.
9491         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9492         IX86_BUILTIN_SHUFPD here.
9494 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9496         * config/i386/i386.md (plogic): New.
9497         (plogicprefix): Likewise.
9499         * config/i386/mmx.md (mmx_<code><mode>3): New.
9500         (mmx_and<mode>3): Removed.
9501         (mmx_ior<mode>3): Likewise.
9502         (mmx_xor<mode>3): Likewise.
9504         * config/i386/sse.md (<code><mode>3): New.
9505         (*<code><mode>3): Likewise.
9506         (*<code><mode>3): Likewise.
9507         (<code><mode>3): Likewise.
9508         (*sse_<code><mode>3): Likewise.
9509         (*sse2_<code><mode>3): Likewise.
9510         (<code>tf3): Likewise.
9511         (*<code>tf3): Likewise.
9512         (and<mode>3): Likewise.
9513         (*and<mode>3): Likewise.
9514         (ior<mode>3): Removed.
9515         (*ior<mode>3): Likewise.
9516         (xor<mode>3): Likewise.
9517         (*xor<mode>3): Likewise.
9518         (*and<mode>3): Likewise.
9519         (*ior<mode>3): Likewise.
9520         (*xor<mode>3): Likewise.
9521         (and<mode>3): Likewise.
9522         (*sse_and<mode>3): Likewise.
9523         (*sse2_and<mode>3): Likewise.
9524         (andtf3): Likewise.
9525         (*andtf3): Likewise.
9526         (ior<mode>3): Likewise.
9527         (*sse_ior<mode>3): Likewise.
9528         (*sse2_ior<mode>3): Likewise.
9529         (iortf3): Likewise.
9530         (*iortf3): Likewise.
9531         (xor<mode>3): Likewise.
9532         (*sse_xor<mode>3): Likewise.
9533         (*sse2_xor<mode>3): Likewise.
9534         (xortf3): Likewise.
9535         (*xortf3): Likewise.
9537 2008-04-02  Richard Guenther  <rguenther@suse.de>
9539         PR tree-optimization/14495
9540         PR tree-optimization/34793
9541         * tree-vrp.c (struct switch_update): New structure.
9542         (to_remove_edges, to_update_switch_stmts): New VECs.
9543         (simplify_switch_using_ranges): New function.  Remove not taken
9544         case labels and edges.
9545         (simplify_stmt_using_ranges): Call it.
9546         (identify_jump_threads): Mark edges we have queued for removal
9547         so we don't thread them.
9548         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9549         case label vector.
9550         * tree-cfg.c (group_case_labels): Deal with missing default label.
9551         (tree_verify_flow_info): Allow missing default label.
9552         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9553         (emit_case_nodes): Likewise.
9554         (expand_case): Do not rely on the default label to be present.
9555         * expr.c (try_casesi): Deal with NULL default_label.
9556         (do_tablejump): Likewise.
9558 2008-04-02  Richard Guenther  <rguenther@suse.de>
9560         PR tree-optimization/14495
9561         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9562         SWITCH_EXPR here ...
9563         (vrp_visit_switch_stmt): ... but here (new function).
9564         (find_case_label_index): New helper function.
9565         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9567 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9569         * fwprop.c: Fix ISO-C99ism.
9571 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9573         PR bootstrap/35752
9574         * Makefile.in (objdir): Set it here.
9575         * configure.ac: Not here.  Find dynamic linker characteristics.
9576         * exec-tool.in: Use them.
9577         * aclocal.m4: Regenerate.
9578         * configure: Regenerate.
9580 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9582         * expr.c (expand_var): Delete it.
9583         * expr.h (expand_var): Delete prototype.
9584         * function.c (expand_function_start): Use expand_decl instead.
9585         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9586         langhook.
9588 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
9590         PR rtl-optimization/35542
9591         * fwprop.c (forward_propagate_and_simplify): Replace
9592         loc_reg_mentioned_in_p with reg_mentioned_p.
9594 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9596         PR rtl-optimization/35281
9597         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9598         (propagate_rtx_1): Handle PR_HANDLE_MEM.
9599         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9600         (varying_mem_p): Move above propagate_rtx.
9601         (all_uses_available_at): Do not check MEMs.
9603 2008-04-02  Rafael Espindola  <espindola@google.com>
9605         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9606         (register_edge_assert_for_2): Split the cond argument.
9607         (register_edge_assert_for_1): Adjust for the change in
9608         register_edge_assert_for_2.
9609         (register_edge_assert_for): Split the cond argument.
9610         (find_switch_asserts): Adjust for the change in
9611         register_edge_assert_for.
9613 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
9615         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9616         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9617         offsets for 64-bit mingw.
9618         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9619         abi for x86_64-pc-mingw.
9621 2008-04-02  Richard Guenther  <rguenther@suse.de>
9623         * tree-vrp.c (extract_range_from_assert): Make sure to not
9624         produce range min/max with TREE_OVERFOW set.
9625         If merging a anti-range and a range keep the anti-range if
9626         the range covers all values of the type.
9627         (register_edge_assert_for_2): Only allow sign-changing
9628         conversions in detecting canonical range checks.  Also
9629         register an assert for the unsigned name if useful.
9631         PR tree-optimization/35787
9632         * tree-vrp.c (vrp_val_max): New function.
9633         (vrp_val_min): Likewise.
9634         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9635         (vrp_val_is_min): Likewise.
9636         (supports_overflow_infinity): Use vrp_val_{min,max}.
9637         (negative_overflow_infinity): Likewise.
9638         (positive_overflow_infinity): Likewise.
9639         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9640         (is_positive_overflow_infinity): Likewise.
9641         (is_overflow_infinity): Likewise.
9642         (avoid_overflow_infinity): Use vrp_val_{min,max} and
9643         vrp_val_is_{min,max}.
9644         (set_and_canonicalize_value_range): Canonicalize anti-ranges
9645         to ranges if possible.  Avoid empty ranges.
9647 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9649         PR middle-end/35705
9650         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9651         the expression is a function address.
9653 2008-04-01  George Helffrich  <george@gcc.gnu.org>
9655         PR fortran/35154, fortran/23057
9656         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9657         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9658         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9659         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9660         in common.
9661         (dbxout_syms): Check for COMMON-based symbol and wrap in
9662         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9663         in bracket for efficiency.
9665         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9666         using DW_TAG_common_block + member offset.
9667         (add_pubname_string): New function.
9668         (dw_expand_expr): New function to find block name and offset for
9669         COMMON var.
9670         (common_check): New function to check whether symbol in Fortran COMMON.
9671         (gen_variable_die): If COMMON, use DW_TAG_common_block.
9673 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
9675         PR c/35436
9676         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9678 2008-04-02  Ben Elliston  <bje@au.ibm.com>
9680         * config/v850/v850.md (casesi): Remove if (0) code.
9681         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9682         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9684 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
9686         * config/i386/i386.md (rex64suffix): New mode attribute.
9687         (floathi<mode>2): Disable expander for SSE math.
9688         (*floathi<mode>2_1): New insn insn_and_split pattern.
9689         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9690         corresponding post-reload splitters.
9691         (*floathi<mode>2_i387): New macroized insn pattern.
9692         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9693         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9694         insn_and_split pattern.
9695         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9696         New macroized instruction patterns and corresponding post-reload
9697         splitters.
9698         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9699         and corresponding post-reload splitters.
9700         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9701         New macroized instruction patterns.
9702         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9703         macroized instruction patterns and corresponding post-reload splitters.
9704         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9705         corresponding post-reload splitters.
9706         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9707         New macroized instruction patterns.
9708         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
9709         corresponding post-reload splitters.
9710         (*floatsi<mode>2_i387): New macroized instruction patterns.
9712 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9714         * config/i386/i386.md (smaxmin): New.
9715         (umaxmin): Likewise.
9716         (maxminiprefix): Likewise.
9717         (maxminfprefix): Likewise.
9718         (<code><mode>3): Likewise.
9719         (smin<mode>3): Removed.
9720         (smax<mode>3): Likewise.
9722         * config/i386/mmx.md (mmx_<code>v2sf3): New.
9723         (mmx_<code>v4hi3): Likewise.
9724         (mmx_<code>v8qi3): Likewise.
9725         (mmx_smaxv2sf3): Removed.
9726         (mmx_sminv2sf3): Likewise.
9727         (mmx_umaxv8qi3): Likewise.
9728         (mmx_smaxv4hi3): Likewise.
9729         (mmx_uminv8qi3): Likewise.
9730         (mmx_sminv4hi3): Likewise.
9732         * config/i386/sse.md (<addsub><mode>3): New.
9733         (*<addsub><mode>3): Likewise.
9734         (<sse>_vm<addsub><mode>3): Likewise.
9735         (<maxmin><mode>3): Likewise.
9736         (*<maxmin><mode>3_finite): Likewise.
9737         (*<maxmin><mode>3): Likewise.
9738         (<sse>_vm<maxmin><mode>3): Likewise.
9739         (sse3_h<addsub>v4sf3): Likewise.
9740         (sse3_h<addsub>v2df3): Likewise.
9741         (<maxmin>v16qi3): Likewise.
9742         (*<maxmin>v16qi3): Likewise.
9743         (<maxmin>v8hi3): Likewise.
9744         (*<maxmin>v8hi3): Likewise.
9745         (*sse4_1_<maxmin><mode>3): Likewise.
9746         (*sse4_1_<maxmin><mode>3): Likewise.
9747         (add<mode>3): Removed.
9748         (*add<mode>3): Likewise.
9749         (<sse>_vmadd<mode>3): Likewise.
9750         (sub<mode>3): Likewise.
9751         (*sub<mode>3): Likewise.
9752         (<sse>_vmsub<mode>3): Likewise.
9753         (smin<mode>3): Likewise.
9754         (*smin<mode>3_finite): Likewise.
9755         (*smin<mode>3): Likewise.
9756         (<sse>_vmsmin<mode>3): Likewise.
9757         (smax<mode>3): Likewise.
9758         (*smax<mode>3_finite): Likewise.
9759         (*smax<mode>3): Likewise.
9760         (<sse>_vmsmax<mode>3): Likewise.
9761         (sse3_haddv4sf3): Likewise.
9762         (sse3_haddv2df3): Likewise.
9763         (sse3_hsubv4sf3): Likewise.
9764         (sse3_hsubv2df3): Likewise.
9765         (umaxv16qi3): Likewise.
9766         (*umaxv16qi3): Likewise.
9767         (smaxv8hi3): Likewise.
9768         (*smaxv8hi3): Likewise.
9769         (*sse4_1_smax<mode>3): Likewise.
9770         (*sse4_1_umax<mode>3): Likewise.
9771         (uminv16qi3): Likewise.
9772         (*uminv16qi3): Likewise.
9773         (sminv8hi3): Likewise.
9774         (*sminv8hi3): Likewise.
9775         (*sse4_1_smin<mode>3): Likewise.
9776         (*sse4_1_umin<mode>3): Likewise.
9778 2008-04-01  Rafael Espindola  <espindola@google.com>
9780         * tree-cfg.c (verify_expr): remove in_phi.
9781         (verify_stmt): Don't call walk_tree with verify_expr. Use
9782         is_gimple_min_invariant instead of is_gimple_val.
9784 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
9786         * doc/include/gpl_v3.texi: Update for manpage generation.
9787         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
9788         gpl.texi.
9789         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
9790         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
9791         gpl_v3.texi instead of gpl.texi.
9792         (gpl.pod): New.
9794 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
9796         PR pch/13675
9797         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
9799 2008-04-01  Rafael Espindola  <espindola@google.com>
9801         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
9802         (extract_code_and_val_from_cond): Use
9803         extract_code_and_val_from_cond_with_ops.
9805 2008-04-01  Jan Hubicka  <jh@suse.cz>
9807         * function.c (free_after_compilation): Free epilogue_delay_list.
9808         (prepare_function_start): Assert that previous compilation was freed.
9810 2008-04-01  Jan Hubicka  <jh@suse.cz>
9811             Jim Wilson  <wilson@tuliptree.org>
9812             Andreas Tobler <andreast@gcc.gnu.org>
9814         PR middle-end/35781
9815         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
9816         rtl.emit instead cfun->emit.
9817         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
9818         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
9820 2008-04-01  Ben Elliston  <bje@au.ibm.com>
9822         * doc/c-tree.texi (Function Basics): Fix grammatical error.
9824 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
9826         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
9827         New options
9828         (fprofile-use): Add var flag_profile_use
9829         * coverage.c (coverage_begin_output): Do not open a gcno file for
9830         output only if -ftest-coverage is set.
9831         Do not add getpwd() to gcda file path.
9832         (build_gcov_info): Check the new flag
9833         flag_profile_datafile_relative_path.
9834         (coverage_init): Use profile_data_prefix.
9835         Read profile counter only if flag_profile_use is set.
9836         * opts.c (common_handle_option): New option fprofile-use=,
9837         fprofile-dir=, fprofile-generate=.
9838         * toplev.c (profile_data_prefix): New variable definition.
9839         * toplev.h (profile_data_prefix): New declaration.
9840         * doc/invoke.tex (Option Summary, Optimization Options):
9841         Add new options.
9843 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
9845         * varasm.c (output_constant_pool_1): In LABEL_REF check,
9846         use tmp consistently.
9848         PR target/35695
9849         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
9850         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9851         UNSPEC_FR_RECIP_APPROX_RES.
9852         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
9854 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
9856         PR c/35750
9857         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
9859 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9861         PR middle-end/30186
9862         * fold-const.c (fold_indirect_ref_1): Support accessing non first
9863         element of the vector via a pointer.
9865 2008-03-31  Ian Lance Taylor  <iant@google.com>
9867         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
9869 2008-03-31  Jan Hubicka  <jh@suse.cz>
9871         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9872         get_arg_pointer_save_area.
9873         * expr.c (init_expr): Just clear out rtl.expr.
9874         * function.c (free_after_compilation): Clear out whole RTL structure.
9875         (get_func_frame_size): Merge into ...
9876         (get_frame_size): ... this one.
9877         (assign_stack_local_1): Merge into ...
9878         (assign_stack_local): ... this one.
9879         (expand_function_end): Update call of get_arg_pointer_save_area.
9880         (get_art_pointer_save_area): Remove cfun argument.
9881         * function.h (emit_status): regno_pointer_align does not need length
9882         attribute. Move x_regno_reg_rtx to ...
9883         (regno_reg_rtx): ... new global array.
9884         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
9885         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
9886         apply_args_value, forced_labels, stack_pointer_delta):
9887         Update accestors.
9888         (struct varasm_status): Move here from varasm.c
9889         (struct rtl_data): New. Move here some fields from struct function.
9890         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9891         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9892         used_temp_slots avail_temp_slots, temp_slot_level,
9893         nonlocal_goto_handler_labels): Update accesstors.
9894         (rtl): New global variable.
9895         (struct function): Move some fileds to rtl_data.
9896         (get_arg_pointer_save_area): Update prototype.
9897         * emit-rtl.c (rtl): Declare.
9898         (regno_reg_rtx): Declare.
9899         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9900         Update.
9901         (gen_reg_rtx): Update.
9902         (init_virtual_regs): Do not tate emit_status argument.
9903         (init_emit): Do not allocate emit.
9904         * varasm.c (varasm_statuc): Move to function.h.
9905         (n_deferred_constatns): Update accestor.
9906         (init_varasm_status): Do not allocate varasm_status.
9907         (force_const_mem, get_pool_size, output_constant_pool): Update.
9908         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9909         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9911 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
9913         PR rtl-optimization/35729
9914         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
9915         references.
9917 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9919         PR target/32000
9920         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
9921         load/store if memory is unaligned.
9922         (*movti_rex64): Likewise.
9924         * config/i386/predicates.md (misaligned_operand): New.
9926 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
9928         PR tree-opt/35431
9929         * tree-ssa-phiopt.c (conditional_replacement): Return early for
9930         complex types.
9932 2008-03-31  Jan Beulich  <jbeulich@novell.com>
9934         * config/ia64/constraints.md: Add 'j' constraint.
9935         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
9936         (movdi_internal): Likewise.
9938 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
9940         PR c/35748
9941         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
9943 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9945         PR target/35757
9946         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
9947         proper error message for the third argument on blendpd and
9948         blendps.
9950         * config/i386/sse.md (blendbits): New.
9951         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
9953 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9955         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
9957 2008-03-30  Richard Guenther  <rguenther@suse.de>
9959         PR middle-end/31023
9960         * fold-const.c (fold_sign_changed_comparison): Do leave
9961         conversions to base-types alone.
9963 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9965         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
9966         the link register if one altivec register is be saved.
9968 2008-03-30  Ben Elliston  <bje@au.ibm.com>
9970         * final.c (final_scan_insn): Remove if (0) code.
9972 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
9974         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
9976 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9978         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
9979         of V4SFmode to ix86_binary_operator_ok.
9981 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
9983         * config/i386/i386.c (override_options): Initialize
9984         ix86_veclib_handler to ix86_veclibabi_svml when
9985         -mveclibabi=svml is used.
9986         (ix86_veclibabi_svml): New function for SVML ABI style
9987         vectorization support.
9988         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
9990 2008-03-28  Rafael Espindola  <espindola@google.com>
9992         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
9993         (tree_binary_nonnegative_warnv_p): Make it public.
9994         (tree_single_nonnegative_warnv_p): Make it public.
9995         (tree_invalid_nonnegative_warnv_p): Make it public.
9996         (tree_unary_nonzero_warnv_p): Make it public.
9997         (tree_binary_nonzero_warnv_p): Make it public
9998         (tree_single_nonzero_warnv_p): Make it public.
9999         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10000         (extract_range_from_binary_expr): Split the expr argument.
10001         (extract_range_from_unary_expr): Split the expr argument.
10002         (extract_range_from_comparison): Split the expr argument.
10003         (extract_range_from_expr): Use the new aux functions.
10004         (vrp_evaluate_conditional_warnv): Use
10005         vrp_evaluate_conditional_warnv_with_ops.
10006         * tree.h (tree_unary_nonzero_warnv_p): Declare.
10007         (tree_binary_nonzero_warnv_p): Declare.
10008         (tree_single_nonzero_warnv_p): Declare.
10009         (tree_expr_nonzero_warnv_p): Declare.
10010         (tree_unary_nonnegative_warnv_p): Declare.
10011         (tree_binary_nonnegative_warnv_p): Declare.
10012         (tree_single_nonnegative_warnv_p): Declare.
10013         (tree_invalid_nonnegative_warnv_p): Declare.
10015 2008-03-28  Richard Guenther  <rguenther@suse.de>
10017         PR tree-optimization/30317
10018         PR tree-optimization/30911
10019         PR tree-optimization/34793
10020         * tree-vrp.c (set_and_canonicalize_value_range): New function.
10021         (struct assert_locus_d): New member EXPR.
10022         (register_new_assert_for): Add EXPR parameter to support
10023         ASSERT_EXPR <name, expr OP limit>.
10024         (register_edge_assert_for_1): Adjust callers.
10025         (find_assert_locations): Likewise.
10026         (process_assert_insertions_for): Build condition from expression.
10027         (extract_range_from_assert): Handle ASSERT_EXPRs
10028         of the form ASSERT_EXPR <name, expr OP limit>.
10029         (register_edge_assert_for_2): New helper registering
10030         asserts for comparisons.  Recognize range tests of the form
10031         (unsigned)i - CST1 OP CST2.
10032         (register_edge_assert_for_1): Use it.
10033         (register_edge_assert_for): Likewise.
10034         (needs_overflow_infinity): Integer sub-types
10035         do not need overflow infinities.
10036         (vrp_val_is_max): The extreme values of integer sub-types
10037         are those of the base type.
10038         (vrp_val_is_min): Likewise.
10039         * tree.def (ASSERT_EXPR): Document extra allowed conditional
10040         expressions.
10042 2008-03-28  Nick Clifton  <nickc@redhat.com>
10044         PR target/31110
10045         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10046         Return GENERAL_REGS for stack adjustment reloads.
10048 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10050         PR target/31334
10051         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10052         const_vector when all the vectors are constant.
10054 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
10056         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10057         comparisons.
10058         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10059         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10060         (scc_sf): New.
10061         (s<code>_sf): Use new scc_sf attribute for opcode names.
10063 2008-03-27  Tom Tromey  <tromey@redhat.com>
10065         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10066         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10067         config/spu/t-spu-elf, config/i386/t-interix,
10068         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10069         config/i386/x-darwin, config/i386/x-mingw32,
10070         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10071         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10072         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10073         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10074         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10075         config/rs6000/x-darwin, config/rs6000/t-rs6000,
10076         config/score/t-score-elf, config/arm/t-strongarm-pe,
10077         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10078         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10079         Revert automatic dependency patch.
10081 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10083         PR target/35657
10084         * config/i386/i386.c (ix86_function_arg_boundary): Align
10085         decimal floating point to its natural boundary.
10087 2008-03-27  Richard Guenther  <rguenther@suse.de>
10089         PR middle-end/35716
10090         * fold-const.c (fold_comparison): Restrict distinct decl
10091         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
10092         solely rely on operand_equal_p.
10094 2008-03-27  Richard Guenther  <rguenther@suse.de>
10096         PR c/32511
10097         * c-common.c (handle_weak_attribute): Reject combination of
10098         weak and inline.
10100 2008-03-27  Richard Guenther  <rguenther@suse.de>
10102         PR tree-optimization/32810
10103         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10104         conversions from DECL_INITIAL.
10105         (fold_const_aggregate_ref): Likewise from constructor elements.
10107 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
10109         * tree-affine.h (aff_combination_expand): Declare.
10110         (get_inner_reference_aff): Likewise.
10111         * tree-affine.c (aff_combination_expand): Split out from
10112         tree_to_aff_combination_expand.
10113         (get_inner_reference_aff): New function.
10114         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10115         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10116         (struct lim_aux_data): sm_done field removed.
10117         (mem_ref_loc_p, mem_ref_locs_p): New types.
10118         (struct mem_ref): Added id, stored, accesses_in_loop,
10119         indep_loop, dep_loop, indep_ref, dep_ref fields.
10120         Removed is_stored, locs and next fields.
10121         (memory_accesses): New variable.
10122         (movement_possibility): Do not allow moving statements
10123         that store to memory.
10124         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10125         New functions.
10126         (determine_max_movement): For statements with memory references,
10127         find the outermost loop in that the reference is independent.
10128         (move_computations_stmt): Mark the virtual operands for renaming.
10129         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10130         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10131         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10132         add_vop_ref_mapping, create_vop_ref_mapping_loop,
10133         create_vop_ref_mapping, analyze_memory_references,
10134         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10135         get_all_locs_in_loop, ref_always_accessed_p,
10136         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10137         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10138         store_motion_loop, store_motion): New functions.
10139         (struct vop_to_refs_elt): New type.
10140         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10141         memref_hash, memref_eq, hoist_memory_references): Rewritten.
10142         (schedule_sm): Replaced by...
10143         (execute_sm): ... this.
10144         (determine_lsm_ref, hoist_memory_references,
10145         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10146         find_more_ref_vops, free_mem_ref, free_mem_refs,
10147         determine_lsm_loop, determine_lsm): Removed.
10148         (tree_ssa_lim_finalize): Free data structures used by store motion.
10149         (tree_ssa_lim): Call analyze_memory_references.  Use
10150         store_motion instead of determine_lsm.
10152 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10154         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10155         rename tmake_file to m68hc11/t-m68hc11.
10156         (mcore): Set inhibit_libc to true.
10157         * config.host (alpha*-dec-*vms*): Set extra_programs.
10158         (interix3*): Don't use host_xmake_file.
10159         * configure.ac: Let config.gcc override inhibit_libc.
10160         * configure: Regenerate.
10162         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10163         * config/t-openbsd-thread: Remove commented out lines.
10164         
10165         * config/x-interix: Remove.
10167         * config/m68hc11/t-m68hc11-gas: Rename to...
10168         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
10170         * config/mcore/t-mcore: Remove T_CFLAGS.
10171         * config/mcore/t-mcore-pe: Likewise.
10173 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10175         * configure.ac: Replace custom __GNU_SOURCE test with
10176         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
10177         * aclocal.m4: Regenerate.
10178         * configure: Regenerate.
10179         * config.in: Regenerate.
10181 2008-03-27  Richard Guenther  <rguenther@suse.de>
10183         * fold-const.c (target.h): Include.
10184         (fold_comparison): Fold comparison of addresses of decls
10185         that bind locally or of constants.  Consolidate address folding code.
10186         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10187         results from fold_binary_to_constant.
10188         (compare_values_warnv): Likewise.
10190 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
10192         PR middle-end/35429
10193         * fold-const.c (fold_truthop): Check for integeral types when folding
10194         a == 0 && b == 0 and a != 0 || b != 0 .
10196 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10198         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10200 2008-03-26  Andreas Schwab  <schwab@suse.de>
10202         * doc/invoke.texi: Fix use of @item vs. @itemx.
10204 2008-03-26  Tom Tromey  <tromey@redhat.com>
10206         * Makefile.in (build/gensupport.o, build/print-rtl.o,
10207         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10208         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10209         build/gencodes.o, build/genconditions.o, build/genconfig.o,
10210         build/genconstants.o, build/genemit.o, build/genextract.o,
10211         build/genflags.o, build/genmddeps.o, build/genopinit.o,
10212         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10213         options.h.
10215 2008-03-26  Richard Guenther  <rguenther@suse.de>
10217         Revert
10218         2008-03-26  Richard Guenther  <rguenther@suse.de>
10220         * fold-const.c (target.h): Include.
10221         (fold_comparison): Fold comparison of addresses of two decls
10222         that bind locally.  Consolidate address folding code.
10224 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10226         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10227         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10228         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10229         dconstsqrt2, dconstthird, dconste and/or dconst10.
10230         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10231         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10232         dconstsqrt2, dconste): Delete.
10233         (init_emit_once): Likewise.  Simplify initializing dconstm1.
10234         Constify variable.
10235         * real.c (get_real_const): New.
10236         * real.h (dconst3, dconst10, dconstm2, dconstthird,
10237         dconstsqrt2, dconste): Delete.
10238         (real_value_const, get_real_const): New.
10240 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10242         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10244         * config/i386/i386.c (ix86_function_arg_boundary): Check
10245         BIGGEST_ALIGNMENT instead of 128.
10246         (setup_incoming_varargs_64): Likewise.
10248 2008-03-26  Tom Tromey  <tromey@redhat.com>
10250         * Makefile.in (DEPFILES): Add missing '/'.
10252 2008-03-26  Richard Guenther  <rguenther@suse.de>
10254         * fold-const.c (target.h): Include.
10255         (fold_comparison): Fold comparison of addresses of two decls
10256         that bind locally.  Consolidate address folding code.
10258 2008-03-26  Nick Clifton  <nickc@redhat.com>
10260         PR target/31232
10261         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10262         not allow INT+INT as a legitimate addressing mode.
10264 2008-03-26  Richard Guenther  <rguenther@suse.de>
10266         * tree-flow.h (widen_bitfield): Remove declaration.
10267         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10268         (widen_bitfield): Remove function.
10269         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10270         code.
10272 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10274         PR target/31558
10275         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10276         error_mark_node's.
10278 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10280         PR rtl-optimization/35232
10281         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10282         (forget_old_reloads_1, forget_marked_reloads): Don't clear
10283         reg_reloaded_call_part_clobbered here.
10284         (reload_regs_reach_end_p): New function.
10285         (reload_reg_rtx_for_input): New variable.
10286         (reload_reg_rtx_for_output): Likewise.
10287         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10288         when reassigning a pseudo register.  Load reloadreg from 
10289         reload_reg_rtx_for_input, moving the mode and register
10290         calculation to...
10291         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
10292         instead of the original when deciding whether an input reload
10293         would be a no-op or whether an output reload can be deleted.
10294         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10295         when setting up new_spill_reg_store.  Load it from
10296         reload_reg_rtx_for_output, moving the mode and register
10297         calculation to...
10298         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
10299         instead of the original when deciding whether an output reload
10300         would be a no-op.  Do the same when modifying insn notes.
10301         Use rtx_equal_p instead of == to compare the registers.
10302         (inherit_piecemeal_p): Take a mode and two register numbers
10303         as argument.
10304         (emit_reload_insns): Clear new_spill_reg_store for every hard
10305         register in the reload register.  Remove spill registers
10306         from reg_reloaded_valid before considering whether to record
10307         inheritance information for them.  Use reload_reg_rtx_for_output
10308         instead of reg_rtx when recording output reloads.  Use
10309         reload_reg_rtx_for_input instead of reg_rtx when recording
10310         input reloads.  Set or clear reg_reloaded_call_part_clobbered
10311         at the same time as setting reg_reloaded_valid.
10312         (delete_output_reload): Add a new_reload_reg parameter and use it
10313         instead of rld[j].reg_rtx.
10314         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10315         calls accordingly.
10317 2008-03-25  Tom Tromey  <tromey@redhat.com>
10319         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10320         (build/genattr.o): Likewise.
10321         (build/genattrtab.o): Likewise.
10322         (build/gencodes.o): Likewise.
10323         (build/genconfig.o): Likewise.
10324         (build/genconstants.o): Likewise.
10325         (build/genemit.o): Likewise.
10326         (build/genextract.o): Likewise.
10327         (build/genflags.o): Likewise.
10329 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
10330         
10331         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10332         instead of size_int for integer types.
10333         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
10334         to match type of MINUS_EXPR.
10335         
10336 2008-03-25  Tom Tromey  <tromey@redhat.com>
10338         * configure: Rebuilt.
10339         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10340         Makefile.
10342 2008-03-25  Tom Tromey  <tromey@redhat.com>
10344         * config/x-solaris (host-solaris.o): Update.
10345         * config/x-linux (host-linux.o): Update.
10346         * config/x-hpux (host-hpux.o): Update.
10347         * config/x-darwin (host-darwin.o): Update.
10348         * config/v850/t-v850e (v850-c.o): Update.
10349         * config/v850/t-v850 (v850-c.o): Update.
10350         * config/t-vxworks (vxworks.o): Update.
10351         * config/t-sol2 (sol2-c.o, sol2.o): Update.
10352         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10353         * config/spu/t-spu-elf (spu-c.o): Update.
10354         (spu.o): Remove.
10355         * config/sh/t-symbian (sh-c.o): Update.
10356         (symbian.o): Update.
10357         * config/sh/t-sh (sh-c.o): Update.
10358         * config/score/t-score-elf (score7.o, score3.o): Update.
10359         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10360         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10361         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10362         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10363         (rs6000.o): Remove.
10364         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10365         * config/m32c/t-m32c (m32c-pragma.o): Update.
10366         * config/ia64/t-ia64 (ia64-c.o): Update.
10367         * config/i386/x-mingw32 (host-mingw32.o): Update.
10368         * config/i386/x-i386 (driver-i386.o): Update.
10369         * config/i386/x-darwin (host-i386-darwin.o): Update.
10370         * config/i386/x-cygwin (host-cygwin.o): Update.
10371         * config/i386/t-nwld (nwld.o): Update.
10372         * config/i386/t-netware (netware.o): Update.
10373         * config/i386/t-interix (winnt.o): Update.
10374         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10375         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10376         msformat-c.o): Update.
10377         * config/bfin/t-bfin-linux (generated_files): Add
10378         linux-sysroot-suffix.h.
10379         * config/arm/t-wince-pe (pe.o): Update.
10380         * config/arm/t-strongarm-pe (pe.o): Update.
10381         * config/arm/t-pe (pe.o): Update.
10382         * config/arm/t-arm (arm-c.o): Update.
10383         * doc/install.texi (Prerequisites): Require make 3.80.
10384         * Makefile.in: Remove .o targets.
10385         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10386         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10387         (simple_generated_h, simple_generated_c): Move earlier.
10388         (generated_files): New variable.
10389         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10390         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10391         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10392         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10393         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10394         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10395         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10396         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10397         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10398         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10399         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10400         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10401         (.c.o): Remove.
10402         (COMPILE.base, COMPILE): New variables.
10403         (%.o): New pattern rule.
10404         (ALL_HOST_OBJS): New variable.
10405         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10406         (dummy-checksum.o, cc1-checksum.o): Remove.
10407         (DRIVER_SHLIB): New variable.
10408         (DRIVER_DEFINES): Use it.
10409         (gencondmd.c): Move out of build/.
10410         (s-conditions): Update.
10411         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10412         (ALL_BUILD_OBJS): Likewise.
10413         (build/%.o): Use BUILDCOMPILE.
10414         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10415         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10416         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10417         build/gencheck.o, build/gencodes.o, build/genconditions.o,
10418         build/genconfig.o, build/genconstants.o, build/genemit.o,
10419         build/genextract.o, build/genflags.o, build/genmddeps.o,
10420         build/genopinit.o, build/genoutput.o, build/genpeep.o,
10421         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10422         build/gen-protos.o, build/scan.o, build/fix-header.o,
10423         build/scan-decls.o): Simplify.
10424         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10425         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10426         prefix.o, toplev.o): Reduce to variable setting.
10427         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
10428         ($(out_object_file), gcc-options.o): New targets.
10429         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
10430         * configure: Rebuilt.
10431         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10432         * doc/sourcebuild.texi (Front End Directory): Document new variable.
10434 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
10436         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10437         complain when we hit an error, return ERROR_MARK_NODE.
10439 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10441         * config/sh/constraints.md (Pso, Psz): New constraints.
10442         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10443         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10445 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10447         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10448         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10450 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10452         * config/sh/sh.md (prefetch): Add condition for SH2A target.
10453         (prefetch_sh2a): New.   
10455 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10456             Naveen.H.S  <naveen.hs@kpitcummins.com>
10458         * config/sh/constraints.md (I28): New constraint.
10459         * config/sh/sh.c (broken_move): Add support for movi20s.
10460         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10462 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
10463             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10464             Naveen.H.S  <naveen.hs@kpitcummins.com>
10466         * config/sh/sh.c (SH_ATTRIBUTES): Define.
10467         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10468         (print_operand): Handle resbank in %@ operand code.
10469         (sh_encode_section_info): New.
10470         (push_regs): Add conditions for resbank.
10471         (sh_expand_epilogue): Likewise.
10472         (sh_insert_attributes): Likewise.
10473         (sh_attribute_table): Likewise.
10474         (sh_handle_resbank_handler_attribute): New.
10475         (sh2a_handle_function_vector_handler_attribute): New.
10476         (sh2a_is_function_vector_call): New.
10477         (sh2a_get_function_vector_number): New.
10478         (sh2a_function_vector_p): New.
10479         (sh_cfun_resbank_handler_p): New.
10480         * config/sh/sh.md (calli): Emit jsr/n if possible.
10481         (calli_tbr_rel): New.
10482         (calli_pcrel): Emit jsr/n if possible.
10483         (return_i): Emit rts/n if possible.
10484         (call_valuei_tbr_rel): New.
10485         (call_valuei_pcrel): Add condition for SH2A target.
10486         (call_value): Likewise.
10487         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10488         (sh2a_get_function_vector_number): Likewise.
10489         (sh2a_is_function_vector_call): Likewise.
10490         * doc/extend.texi: Document TBR relative addressing of SH2A.
10491         (resbank): Add description for SH2A.
10493 2008-03-24  Richard Guenther  <rguenther@suse.de>
10495         PR c/22371
10496         * gimplify.c (gimplify_modify_expr): For frontend type-correct
10497         pointer assignments change conversions according to middle-end rules.
10498         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10499         * configure.ac: Include type checking in yes.
10500         * configure: Regenerate.
10502 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10504         * diagnostic.c (diagnostic_count_diagnostic): Delete.
10505         (diagnostic_report_diagnostic): Update. Handle ICEs here.
10506         
10507 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10509         * gthr-vxworks.h (UNUSED): Define.
10511 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10513         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10515 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
10517         * doc/extend.texi (Function Attributes): Add missing comma in the
10518         example of the "alloc_size" attribute.
10519         
10520 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
10522         Revert:
10523         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10525         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10526         32bit host.
10528         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10530         PR target/35496
10531         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10532         of the underlying type of a MS bitfield layout to the natural
10533         alignment of the type.
10535         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10537         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10538         to their natural alignment to avoid store forwarding stalls.
10540 2008-03-22  Richard Guenther  <rguenther@suse.de>
10542         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10543         For PHI nodes verify the address is invariant.
10544         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10545         (get_symbol_constant_value): Use is_gimple_min_invariant.
10546         (maybe_fold_stmt_indirect): Likewise.
10548 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10550         PR rtl-optimization/33927
10551         * Makefile.in (dse.o): Depend on $(TM_P_H).
10552         * expr.h (extract_low_bits): Declare.
10553         * expmed.c (extract_low_bits): New function.
10554         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10555         * dse.c: Include tm_p.h.
10556         (find_shift_sequence): Remove the read_reg argument and return the
10557         read value.  Emit the instructions instead of returning them.
10558         Iterate on new_mode rather than calculating it each time.
10559         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
10560         source to NEW_MODE and extract_low_bits to convert the shifted
10561         value to READ_MODE.
10562         (replace_read): Allow the load and store to have different mode
10563         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
10564         or extraction instructions before trying the replacement.  Update
10565         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10567 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10569         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10570         to their natural alignment to avoid store forwarding stalls.
10572 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10574         PR target/27946
10575         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10576         encouraging but not allowing gprs for input;
10577         change the input constraint to !f#r.
10578         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10579         gprs for output;
10580         change the output constraint to !f#r.
10582 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
10584         PR target/13958
10585         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10586         corresponding post-reload splitters.
10587         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10588         when x87 FP math is selected.
10589         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10590         New function prototype.
10591         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10592         unreachable function to ease macroization of insn patterns.
10594 2008-03-21  Martin Jambor  <mjambor@suse.cz>
10596         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10597         reference dumps if ddr is NULL or dependence is unknown.
10599 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10601         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10602         unsigned extension into account.
10603         (ATOMIC_COMPARE_AND_SWAP): Likewise.
10604         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10605         Do computations on a scratch register.
10607 2008-03-21  Richard Guenther  <rguenther@suse.de>
10609         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10610         Use is_gimple_min_invariant instead of TREE_INVARIANT.
10611         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10612         * tree-ssa-dom.c (record_equality): Likewise.
10613         * tree-inline.c (copy_body_r): Likewise.
10614         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10615         TREE_INVARIANT.
10617 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10619         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10620         as 'delete_unused' argument.
10622 2008-03-20  Richard Guenther  <rguenther@suse.de>
10624         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10625         special casing of constant qualifiers.
10626         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10627         care about them in general.
10628         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10629         regardless of their type.
10630         (fold_stmt_r): Forcefully fold *& if we end up with that.
10632 2008-03-20  Paul Brook  <paul@codesourcery.com>
10634         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10635         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10636         linker flags.
10637         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10638         definition.
10639         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10640         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10642 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
10644         * common.opt (Wmudflap): New option.
10645         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10646         (mx_register_decls): Likewise.
10647         (mudflap_finish_file): Likewise.
10648         * doc/invoke.texi: Document -Wno-mudflap.
10650 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
10652         * c-format.c (replace_format_name_to_system_name): New.
10653         (cmp_attribs): New.
10654         (convert_format_name_to_system_name): New.
10655         (decode_format_attr): Add use of convert_format_name_to_system_name.
10656         (format_types_orig): Add gnu_ prefix to names.
10657         (check_format_info_main): Special treating of \0 escaped names for
10658         supporting multi-character format specifiers as I32, I64.
10659         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10660         (gnu_target_overrides_format_attributes): New.
10661         * c-format.h: Add structure target_ovr_attr to hold
10662         system specific formatter names.
10663         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10664         msformat-c.o file to c_target_objs and cxx_target_objs.
10665         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10666         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10667         (TARGET_N_FORMAT_TYPES): New.
10668         * config/i386/msformat-c.c: New.
10669         * config/i386/t-cygming: Add build rule for msformat-c.o.
10670         * doc/extend.texi: Add new format names gnu_* and ms_* and
10671         further details.
10672         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10674 2008-03-20  Ira Rosen  <irar@il.ibm.com>
10676         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10677         optimizations turned on under -O3.
10678         (ftree-vectorize): Add that the flag is turned on with -O3.
10680 2008-03-20  Ben Elliston  <bje@au.ibm.com>
10682         * regmove.c (try_auto_increment): Fix spelling error in comment.
10683         * final.c (final_scan_insn): Likewise.
10685 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
10687         PR target/14552
10688         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10689         allocator preferences for "y" and "r" class registers.
10690         ("*mov<mode>_internal"): Ditto.
10691         ("*movv2sf_internal_rex64"): Ditto.
10692         ("*movv2sf_internal"): Ditto.
10694 2008-03-19  Michael Matz  <matz@suse.de>
10696         PR middle-end/35616
10697         * calls.c (expand_call): Check overlap of arguments with call
10698         address for sibcalls.
10700 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10702         PR target/35496
10703         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10704         of the underlying type of a MS bitfield layout to the natural
10705         alignment of the type.
10707 2008-03-19  Jan Hubicka  <jh@suse.cz>
10709         PR other/35094
10710         * toplev.c (decode_d_option): Handle all CPP flags.
10711         * tree-vrp.c: Update tree_pass descriptors.
10712         * regrename.c: Update tree_pass descriptors.
10713         * fwprop.c: Update tree_pass descriptors.
10714         * doc/invoke.texi: Remove documentation of dropped -d? flags.
10715         * tree-into-ssa.c: Update tree_pass descriptors.
10716         * tree-dump.c: Update tree_pass descriptors.
10717         * tree-complex.c: Update tree_pass descriptors.
10718         * tree-dump.h: Update tree_pass descriptors.
10719         * see.c: Update tree_pass descriptors.
10720         * cgraphbuild.c: Update tree_pass descriptors.
10721         * tracer.c: Update tree_pass descriptors.
10722         * tree-loop-distribution.c: Update tree_pass descriptors.
10723         * cgraph.c: Update tree_pass descriptors.
10724         * postreload-gcse.c: Update tree_pass descriptors.
10725         * postreload.c: Update tree_pass descriptors.
10726         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
10727         * tree-tailcall.c: Update tree_pass descriptors.
10728         * tree-pass.h (tree_opt_pass): Rename to ...
10729         (opt_pass) ... this one; add "type" field and remove letter field.
10730         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
10731         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
10732         all_lowering_passes): Update declaration.
10733         * ipa-cp.c: Update tree_pass descriptors.
10734         * final.c: Update tree_pass descriptors.
10735         * omp-low.c: Update tree_pass descriptors.
10736         * tree-ssa-dse.c: Update tree_pass descriptors.
10737         * ipa-reference.c: Update tree_pass descriptors.
10738         * tree-ssa-uncprop.c: Update tree_pass descriptors.
10739         * auto-inc-dec.c: Update tree_pass descriptors.
10740         * reorg.c: Update tree_pass descriptors.
10741         * cgraphunit.c: Update tree_pass descriptors.
10742         * tree-ssa-copyrename.c: Update tree_pass descriptors.
10743         * tree-ssa-ccp.c: Update tree_pass descriptors.
10744         * df-core.c: Update tree_pass descriptors.
10745         * mode-switching.c: Update tree_pass descriptors.
10746         * tree-nomudflap.c: Update tree_pass descriptors.
10747         * modulo-sched.c: Update tree_pass descriptors.
10748         * ipa-pure-const.c: Update tree_pass descriptors.
10749         * cse.c: Update tree_pass descriptors.
10750         * web.c: Update tree_pass descriptors.
10751         * tree-stdarg.c: Update tree_pass descriptors.
10752         * tree-ssa-math-opts.c: Update tree_pass descriptors.
10753         * tree-ssa-dom.c: Update tree_pass descriptors.
10754         * tree-nrv.c: Update tree_pass descriptors.
10755         * tree-ssa-alias.c: Update tree_pass descriptors.
10756         * loop-init.c: Update tree_pass descriptors.
10757         * gimple-low.c: Update tree_pass descriptors.
10758         * ipa-inline.c: Update tree_pass descriptors.
10759         * tree-ssa-sink.c: Update tree_pass descriptors.
10760         * global.c: Update tree_pass descriptors.
10761         * ifcvt.c: Update tree_pass descriptors.
10762         * jump.c: Update tree_pass descriptors.
10763         * predict.c: Update tree_pass descriptors.
10764         * tree-ssa-loop.c: Update tree_pass descriptors.
10765         * recog.c: Update tree_pass descriptors.
10766         * dse.c: Update tree_pass descriptors.
10767         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
10768         * tree-eh.c: Update tree_pass descriptors.
10769         * regmove.c: Update tree_pass descriptors.
10770         * local-alloc.c
10771         * function.c: Update tree_pass descriptors.
10772         * tree-vectorizer.c: Update tree_pass descriptors.
10773         * gcse.c: Update tree_pass descriptors.
10774         * ipa-type-escape.c: Update tree_pass descriptors.
10775         * tree-if-conv.c: Update tree_pass descriptors.
10776         * init-regs.c: Update tree_pass descriptors.
10777         * ipa.c: Update tree_pass descriptors.
10778         * tree-ssa-phiopt.c: Update tree_pass descriptors.
10779         * rtl-factoring.c: Update tree_pass descriptors.
10780         * lower-subreg.c: Update tree_pass descriptors.
10781         * bt-load.c: Update tree_pass descriptors.
10782         * tree-dfa.c: Update tree_pass descriptors.
10783         * except.c: Update tree_pass descriptors.
10784         * emit-rtl.c: Update tree_pass descriptors.
10785         * cfgexpand.c: Update tree_pass descriptors.
10786         * tree-cfgcleanup.c: Update tree_pass descriptors.
10787         * cfgcleanup.c: Update tree_pass descriptors.
10788         * tree-ssa-pre.c: Update tree_pass descriptors.
10789         * tree-sra.c: Update tree_pass descriptors.
10790         * tree-mudflap.c: Update tree_pass descriptors.
10791         * tree-ssa-copy.c: Update tree_pass descriptors.
10792         * cfglayout.c: Update tree_pass descriptors.
10793         * tree-ssa-forwprop.c: Update tree_pass descriptors.
10794         * tree-ssa-dce.c: Update tree_pass descriptors.
10795         * tree-ssa.c: Update tree_pass descriptors.
10796         * regclass.c: Update tree_pass descriptors.
10797         * integrate.c: Update tree_pass descriptors.
10798         * tree-optimize.c: Update tree_pass descriptors.
10799         * tree-ssa-phiprop.c: Update tree_pass descriptors.
10800         * tree-object-size.c: Update tree_pass descriptors.
10801         * combine.c: Update tree_pass descriptors.
10802         * tree-outof-ssa.c: Update tree_pass descriptors.
10803         * bb-reorder.c: Update tree_pass descriptors.
10804         * stack-ptr-mod.c: Update tree_pass descriptors.
10805         * var-tracking.c: Update tree_pass descriptors.
10806         * tree-profile.c: Update tree_pass descriptors.
10807         * tree-vect-generic.c: Update tree_pass descriptors.
10808         * reg-stack.c: Update tree_pass descriptors.
10809         * sched-rgn.c: Update tree_pass descriptors.
10810         * tree-ssa-structalias.c: Update tree_pass descriptors.
10811         * tree-cfg.c: Update tree_pass descriptors.
10812         * passes.c (current_pass): Update declaration.
10813         (finish_optimization_passes): Update.
10814         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
10815         (register_one_dump_file, register_dump_files_1, next_pass_1):
10816         Update arguments.
10817         (init_optimization_passes): Update handling of new types.
10818         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
10819         * ipa-struct-reorg.c: Update tree_pass descriptors.
10820         * tree-ssa-reassoc.c: Update tree_pass descriptors.
10821         * combine-stack-adj.c: Update tree_pass descriptors.
10822         * cfgrtl.c: Update tree_pass descriptors.
10823         * dce.c: Update tree_pass descriptors.
10824         * tree-ssanames.c: Update tree_pass descriptors.
10826 2008-03-19  Richard Guenther  <rguenther@suse.de>
10828         PR middle-end/35609
10829         * tree-ssa.c (walk_data): New structure.
10830         (warn_uninitialized_var): If not always_executed warn with "maybe"
10831         instead of "is".
10832         (execute_early_warn_uninitialized): Compute post-dominators.
10833         Initialize always_executed before processing each basic block.
10835 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10837         PR target/35504
10838         * config/i386/i386.c (x86_this_parameter): Calculate correct location
10839         of "this" pointer when "regparm = N" or "fastcall" is in effect.
10841 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10843         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
10845 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
10847         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
10848         is true.
10849         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
10850         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
10851         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
10852         target after ignore has been set, and move there also the commputation
10853         of subtarget and original_target.
10854         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10855         (LANG_HOOKS_INITIALIZER): Remove it.
10856         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
10858 2008-03-18  Richard Guenther  <rguenther@suse.de>
10860         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
10861         found an expression with constants, note that in the VN for the lhs.
10862         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
10863         fold them to constants if possible.  Run cleanup_cfg if done so.
10864         (execute_pre): Return todo.
10865         (do_pre): Likewise.
10866         (execute_fre): Likewise.
10867         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
10868         of constants.
10869         (get_prop_source_stmt): Look through pointer conversions.
10871 2008-03-18  Jan Hubicka  <jh@suse.cz>
10873         * tree-pretty-print.c: Include predict.h.
10874         (dump_generic_node): Dump predictor.
10875         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
10876         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
10877         * gimple-low.c (lower_stmt): Likewise.
10878         * expr.c (expand_expr_real): Likewise.
10879         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
10880         them.
10881         (build_predict_expr, build_predict_expr): New.
10882         * predict.h (predictor_name, build_predict_expr): Update.
10883         * c-typeck.c (c_finish_bc_stmt): Add prediction.
10884         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
10885         * predict.def (PRED_CONTINUE): Update hitrate.
10886         * tree.def (PREDICT_EXPR): Define.
10887         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
10888         do not handle BIND_EXPR.
10889         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
10890         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
10891         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
10892         operands.
10894 2008-03-18  Michael Matz  <matz@suse.de>
10896         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
10898 2008-03-18  Richard Guenther  <rguenther@suse.de>
10900         * tree-gimple.h (is_gimple_invariant_address): Declare.
10901         (is_gimple_constant): Likewise.
10902         * tree-gimple.c (is_gimple_constant): New function.
10903         (is_gimple_invariant_address): Likewise.
10904         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
10905         and is_gimple_invariant_address.
10906         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
10907         previous change.
10908         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
10909         an addressable base.
10911 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
10913         PR middle-end/35611
10914         * gimplify.c (gimplify_expr): Gimplify second operand of
10915         OMP_ATOMIC_LOAD.
10917 2008-03-17  Richard Guenther  <rguenther@suse.de>
10919         PR tree-optimization/19637
10920         * fold-const.c (fold_unary): Remove restrictions of removing
10921         intermediate pointer-conversions (P2)(P1)P0.
10922         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
10923         conversion to void pointer.
10924         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
10926 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
10928         PR debug/31510
10929         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
10930         emulated thread local variables.
10932 2008-03-16  Richard Guenther  <rguenther@suse.de>
10934         PR middle-end/35607
10935         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10936         expand TREE_INVARIANT operations that are not gimple invariant.
10938 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
10940         * doc/extend.texi (Alignment): Say that the ABI controls
10941         the __alignof__ for non-strict-alignment targets rather
10942         than being a recommendation.
10944 2008-03-15  Paul Brook  <paul@codesourcery.com>
10946         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
10947         annotations.
10948         (arm_output_fn_unwind): Mark functions that can not be unwound.
10950 2008-03-15  Paul Brook  <paul@codesourcery.com>
10952         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
10953         extension instructions.
10955 2008-03-15  Richard Guenther  <rguenther@suse.de>
10957         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
10958         and fold constant aggregate refs.
10959         (fold_const_aggregate_ref): Handle string constants
10960         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
10961         (evaluate_stmt): Simplify now that ccp_fold folds constant
10962         aggregate refs.
10964 2008-03-15  Paul Brook  <paul@codesourcery.com>
10966         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
10967         (extzv): Use gen_extzv_t2.
10968         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
10970 2008-03-15  Richard Guenther  <rguenther@suse.de>
10972         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
10973         (fold_const_aggregate_ref): Likewise.
10974         (get_value): Return NULL if we don't have any values.
10975         (ccp_finalize): Set const_val to NULL after freeing it.
10976         * tree-flow.h (get_symbol_constant_value): Declare.
10977         (fold_const_aggregate_ref): Likewise.
10978         * tree-ssa-sccvn.c (try_to_simplify): Use them.
10980 2008-03-15  Richard Guenther  <rguenther@suse.de>
10982         PR middle-end/35593
10983         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
10984         to not produce negative array indices if not allowed.  Add
10985         parameter to indicate that.
10986         (maybe_fold_offset_to_component_ref): Allow negative array
10987         indices only for the first member of a structure.
10988         (maybe_fold_offset_to_reference): Allow negative array indices.
10989         (maybe_fold_stmt_addition): Likewise.
10991 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
10992             Anatoly Sokolov <aesok@post.ru>
10994         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
10995         (avr_arch): Add ARCH_AVR6.
10996         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
10997         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
10998         instead of fixed value 2.
10999         (print_operand_address): Use gs() asm specifier instead of pm().
11000         (avr_assemble_integer): (Ditto.).
11001         (avr_output_addr_vec_elt): (Ditto.).
11002         (print_operand): Handle "!" code.
11003         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
11004         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11005         (AVR_HAVE_EIJMP_EICALL): Define.
11006         (AVR_3_BYTE_PC): Redefine.
11007         (AVR_2_BYTE_PC): (Ditto.).
11008         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11009         (LINK_SPEC): Add atmega2560 and atmega2561.
11010         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
11011         (crtm2561.o).
11012         * config/avr/avr.md (call_insn): Use eicall instead of icall 
11013         for 3 byte PC devices.
11014         (call_value_insn): (Ditto.).
11015         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11016         (indirect_jump): Use only for for 2 byte PC devices.
11017         (*tablejump): (Ditto.).
11018         (*indirect_jump_avr6): Add insn.
11019         (*tablejump_rjmp): Don't use for 3 byte PC devices.
11020         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
11021         instead of ijmp for 3 byte PC devices.
11022         (__tablejump2__): (Ditto.).
11023         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11024         (MULITLIB_DIRNAMES): (Ditto.). 
11025         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11027 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
11029         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11030         "sse2_umulsidi3".  Use V1DI mode for operand 0.
11031         ("mmx_psadbw"): Use V1DI mode for operand 0.
11032         * config/i386/i386-modes.def (V1SI): New vector mode.
11033         * config/i386/i386.c (struct builtin_description)
11034         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11035         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11036         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11037         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11038         v1di_ftype_v8qi_v8qi type.
11039         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11041         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11042         __builtin_ia32_pmuludq]: Fix the mode of return value.
11044 2008-03-15  Richard Guenther  <rguenther@suse.de>
11046         PR middle-end/35595
11047         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11048         being a PHI_NODE.
11050 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
11051         
11052         * doc/invoke.texi (Option Summary, Xtensa Options): Document
11053         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11054         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11055         unless TARGET_SERIALIZE_VOLATILE is enabled.
11056         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11057         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11058         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11060 2008-03-14  Richard Guenther  <rguenther@suse.de>
11062         PR tree-optimization/34172
11063         * tree-flow.h (refs_may_alias_p): Declare.
11064         (get_single_def_stmt): Likewise.
11065         (get_single_def_stmt_from_phi): Likewise.
11066         (get_single_def_stmt_with_phi): Likewise.
11067         * tree-dfa.c (refs_may_alias_p): New function.
11068         (get_single_def_stmt): Likewise.
11069         (get_single_def_stmt_from_phi): Likewise.
11070         (get_single_def_stmt_with_phi): Likewise.
11071         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11072         (vn_reference_lookup_1): New helper function.
11073         (vn_reference_lookup): Walk the virtual use-def chain to
11074         continue searching for a match if the def does not alias the
11075         reference we are looking for.
11077 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
11079         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
11080         archive and Perzl.  Update The Written Word listing.
11082 2008-03-14  Richard Guenther  <rguenther@suse.de>
11084         PR tree-optimization/34043
11085         PR tree-optimization/33989
11086         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11087         when doing FRE.
11088         (bitmap_find_leader): Use extra argument to verify dominance
11089         relationship inside a basic-block.
11090         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11091         (find_leader_in_sets): Adjust.
11092         (create_component_ref_by_pieces): Take extra argument for
11093         dominance check, handle lookup failures.
11094         (find_or_generate_expression): Likewise.
11095         (create_expression_by_pieces): Likewise.
11096         (insert_into_preds_of_block): Adjust.
11097         (create_value_expr_from): If asked for, verify all operands
11098         are in the blocks AVAIL_OUT set.
11099         (make_values_for_stmt): Check for SSA_NAMEs that are life
11100         over an abnormal edge.
11101         (compute_avail): Remove such check.
11102         (do_SCCVN_insertion): New function.
11103         (eliminate): If we do not find a leader suitable for replacement
11104         insert a replacement expression from SCCVN if available.
11105         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11106         (struct vn_ssa_aux): Add needs_insertion flag.
11107         * tree-ssa-sccvn.c (may_insert): New global flag.
11108         (copy_reference_ops_from_ref): Value-number union member access
11109         based on its size, not type and member if insertion is allowed.
11110         (visit_reference_op_load): For a weak match from union type
11111         punning lookup a view-converted value and insert a SSA_NAME
11112         for that value if that is not found.
11113         (visit_use): Make dumps shorter.  Do not disallow value numbering
11114         SSA_NAMEs that are life over an abnormal edge to constants.
11115         (free_scc_vn): Release inserted SSA_NAMEs.
11116         (run_scc_vn): New flag to specify whether insertion is allowed.
11117         Process SSA_NAMEs in forward order.
11118         * tree-ssa-loop-im.c (for_each_index): Handle invariant
11119         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11120         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11121         pointer type to/from integral types that do not change the
11122         precision to regular conversions.
11124 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11126         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11127         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11128         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11129         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11130         input arguments and the mode of return value.  Built-in functions
11131         that operate on whole 64-bit MMX register now use V1DI mode.
11133 2008-03-13  Alon Dayan  <alond@il.ibm.com>
11134             Olga Golovanevsky  <olga@il.ibm.com>
11136         PR tree-optimization/35041
11137         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11138         to locate the right position in a statement.
11140 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11142         PR target/34000
11143         PR target/35553
11144         * config/i386/xmmintrin.h:  Change all static inline functions to
11145         extern inline and add __gnu_inline__ attribute.
11146         * config/i386/bmintrin.h: Ditto.
11147         * config/i386/smmintrin.h: Ditto.
11148         * config/i386/tmmintrin.h: Ditto.
11149         * config/i386/mmintrin-common.h: Ditto.
11150         * config/i386/ammintrin.h: Ditto.
11151         * config/i386/emmintrin.h: Ditto.
11152         * config/i386/pmmintrin.h: Ditto.
11153         * config/i386/mmintrin.h: Ditto.
11154         * config/i386/mm3dnow.h: Ditto.
11156 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11158         PR middle-end/35185
11159         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11160         (lower_omp_2): New function.
11161         (lower_omp_1, lower_omp): Rewritten.
11163 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
11165         PR 35054
11166         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11167         with the phrase "Microsoft Windows compilers".
11168         (Push/Pop Macro Pragmas): New subsection. Document
11169         #pragma push_macro and pragma pop_macro.
11171 2008-03-12  Paul Brook  <paul@codesourcery.com>
11173         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11175 2008-03-12  Paul Brook  <paul@codesourcery.com>
11177         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11178         (thumb2_alusi3_short): Exclude PLUS and MINUS.
11179         (thumb2_addsi_shortim): Rename ...
11180         (thumb2_addsi_short): ... to this.  Allow register operands.
11181         (thumb2_subsi_short): New pattern.
11182         (thumb2_one_cmplsi2_short,
11183         thumb2_negsi2_short): New patterns and peepholes.
11185 2008-03-12  Paul Brook  <paul@codesourcery.com>
11187         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11189 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
11191         * config/i386/i386.md (int_cond): New code iterator.
11192         (fp_cond): Ditto.
11193         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11194         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11195         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11196         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11197         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11198         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11199         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11200         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11202 2008-03-12  Paul Brook  <paul@codesourcery.com>
11204         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11205         instead of {arm,thumb}_compute_save_reg_mask.
11206         (output_return_instruction): Ditto.
11207         (thumb_unexpanded_epilogue): Ditto.
11208         (thumb1_expand_prologue): Ditto.
11209         (thumb1_output_function_prologue): Ditto.
11210         (arm_set_return_address): Ditto.
11211         (thumb_set_return_address): Ditto.
11212         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
11213         regs to achieve stack alignment.
11214         (thumb1_compute_save_reg_mask): Fix compiler warning.
11215         (arm_output_epilogue): Use offsets->saved_regs_mask.
11216         Adjust stack pointer by poping call clobered registers.
11217         (arm_expand_prologue): Use offsets->saved_regs_mask.
11218         Adjust stack pointer by pushing extra registers.
11219         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11221 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
11223         PR tree-opt/35422
11224         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11225         conversion to the operands of a multiplication.
11227 2008-03-12  Richard Guenther  <rguenther@suse.de>
11229         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11230         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11231         * timevar.def (TV_TREE_PHIPROP): Add.
11232         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11233         pass description.  Use TV_TREE_PHIPROP.
11234         * tree-ssa-forwprop.c: Remove phiprop code.
11236 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11238         PR middle-end/35549
11239         * omp-low.c (maybe_lookup_decl): Constify first argument.
11240         (use_pointer_for_field): Change last argument from bool to
11241         omp_context *.  Disallow shared copy-in/out in nested
11242         parallel if decl is shared in outer parallel too.
11243         (build_outer_var_ref, scan_sharing_clauses,
11244         lower_rec_input_clauses, lower_copyprivate_clauses,
11245         lower_send_clauses, lower_send_shared_vars): Adjust callers.
11247 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
11248             Ira Rosen  <irar@il.ibm.com>
11250         * tree-vectorizer.c (free_stmt_vec_info): New function.
11251         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11252         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11253         * tree-vectorizer.h (free_stmt_vec_info): Declare.
11254         * tree-vect-transform.c (vectorizable_conversion): Free
11255         vec_oprnds0 if it was allocated.
11256         (vect_permute_store_chain): Remove unused VECs.
11257         (vectorizable_store): Free VECs that are allocated in the..
11258         function.
11259         (vect_transform_strided_load, vectorizable_load): Likewise.
11260         (vect_remove_stores): Simplify the code.
11261         (vect_transform_loop): Move code to vect_remove_stores().
11262         Call vect_remove_stores() and free_stmt_vec_info().
11264 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11266         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11267         TARGET_HPUX.  Revise comment.
11268         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11269         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11270         Use sr4 variant of `be' instruction when not generating PIC code.
11271         (attr_length_call): Adjust for above change.
11273 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11275         * ipa-reference.c (static_execute): Remove module_statics_const and
11276         associated setting code.
11278 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11280         PR target/35540
11281         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11282         predicate for operand 1.
11283         (paritysi2_cmp): Use register_operand predicate for operand 2.
11284         Use earlyclobber modifier for operand 1.  Remove support for
11285         memory operands.
11286         (paritydi2_cmp): Use register_operand predicate for operand 3.
11287         Use earlyclobber modifier for operand 1.  Remove support for
11288         memory operands.
11290 2008-03-11  Paul Brook  <paul@codesourcery.com>
11291             Vladimir Prus  <vladimir@codesourcery.com>
11293         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11294         (arm_compute_save_reg0_reg12_mask): Always
11295         check if register 11 must be saved.  Always safe hard frame pointer
11296         when frame_pointer_needeed.
11297         (arm_compute_save_reg_mask): Save IP and PC
11298         only with apcs frames.
11299         (arm_output_epilogue): Adjust Thumb2 codepath to
11300         be also invoked and work for ARM non-apcs frames.
11301         (arm_expand_prologue): Don't bother saving IP
11302         for non-apcs frame, since it's not clobbered by
11303         prologue code.  Implement non-apcs frame
11304         layout.
11306 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11308         PR rtl-optimization/35281
11309         * expr.c (convert_move): Use a new pseudo for the intermediate
11310         from_mode->word_mode result.
11312 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11314         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11315         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11316         * toplev.c (compile_file): Don't call it.
11318 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11320         PR middle-end/35526
11321         * expr.c (store_expr): Call emit_block_move if the mode
11322         of "temp" RTX is BLKmode.
11324 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11325             Richard Guenther  <rguenther@suse.de>
11327         PR tree-optimization/31358
11328         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11329         the step with a NULL_TREE.
11330         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11331         to sizetype if type is a pointer type.
11332         (add_candidate_1): Don't convert the base and step to
11333         the generic type if the orginal type is a pointer type.
11334         (add_iv_value_candidates): Use sizetype for the step
11335         if type is a pointer type.
11336         (cand_value_at): Likewise.
11337         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11338         for pointer types.
11339         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11340         Don't convert the tem affine to the type.
11341         (add_elt_to_tree): Use sizetype for the step if a pointer.
11342         Use POINTER_PLUS_EXPR for pointers.
11343         (aff_combination_to_tree): Use sizetype for the step if a
11344         pointer.
11346 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
11348         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11349         Remove commutativity hint.
11351 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
11353         PR c/35438
11354         PR c/35439
11355         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11356         errorneous type.  Check that v is a VAR_DECL.
11358         PR middle-end/35099
11359         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11361 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11363         PR tree-optimization/35494
11364         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11365         may be overriden at link and run time.
11367 2008-03-10  Richard Guenther  <rguenther@suse.de>
11369         PR tree-optimization/34677
11370         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11371         (poolify_tree): Likewise.
11372         (modify_expr_template): Likewise.
11373         (poolify_modify_stmt): Likewise.
11374         (insert_fake_stores): Handle all component-ref style stores
11375         in addition to INDIRECT_REF.  Also handle complex types.
11376         Do not poolify the inserted load.
11377         (realify_fake_stores): Do not rebuild the tree but only
11378         make it a SSA_NAME copy.
11379         (init_pre): Remove initialzation of modify_expr_template.
11380         Do not allocate modify_expr_node_pool.
11381         (fini_pre): Do not free modify_expr_node_pool.
11383 2008-03-10  Paul Brook  <paul@codesourcery.com>
11385         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11386         to avoid conflicts.
11388 2008-03-10  Paul Brook  <paul@codesourcery.com>
11389             Mark Shinwell  <shinwell@codesourcery.com>
11391         * config/arm/cortex-r4.md: New.
11392         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11393         insn attributes.
11394         * config/arm/arm.md: Include cortex-r4.md.
11395         (insn): Add smmls, sdiv and udiv values.
11396         (generic_sched): Don't use generic scheduling for Cortex-R4.
11397         (arm_issue_rate): New function.
11398         (TARGET_SCHED_ISSUE_RATE): Define.
11400 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
11402         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11404 2008-03-10  Richard Guenther  <rguenther@suse.de>
11406         * tree-ssa-pre.c (get_sccvn_value): Simplify.
11407         (compute_avail): Do not add stmt uses to AVAIL_OUT.
11409 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
11411         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11412         Set default to true.
11414 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11416         * c.opt (Wsynth): Deprecate.
11417         * doc/invoke.texi (Option Summary, Warning Options): Document
11418         -Wno-format-contains-nul.
11420 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
11422         PR target/35496
11423         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11424         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11426 2008-03-09  Ira Rosen  <irar@il.ibm.com>
11428         * config/rs6000/rs6000.c (builtin_description): Rename vector
11429         left shift operations.
11430         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11431         (altivec_vsl<VI_char>): Rename to ...
11432         (ashl<mode>3): ... new name.
11433         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11434         gen_ashlv4si3.
11435         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11437 2008-03-08  Richard Guenther  <rguenther@suse.de>
11439         * coverage.h (tree_coverage_counter_addr): Declare.
11440         * coverage.c (tree_coverage_counter_addr): New function.
11441         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11442         before using again.
11443         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11444         (tree_gen_one_value_profiler): Likewise.
11445         (tree_gen_ic_profiler): Likewise.
11446         (tree_gen_average_profiler): Likewise.
11447         (tree_gen_ior_profiler): Likewise.
11449 2008-03-08  Richard Guenther  <rguenther@suse.de>
11451         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11452         (vn_binary_op_insert): Likewise.
11453         (vn_unary_op_lookup): Likewise.
11454         (vn_unary_op_insert): Likewise.
11455         (vn_nary_op_lookup): Declare.
11456         (vn_nary_op_insert): Likewise.
11457         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11458         and binary hashes, use a single obstack for unary_op_pool
11459         and binary_op_pool.
11460         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11461         a single struct vn_nary_op_s.  Store tree code length and
11462         a variable number of operands.
11463         (struct vn_reference_op_struct): Remove unused op2.
11464         (vn_reference_op_eq): Do not compare op2.
11465         (vn_reference_op_compute_hash): Do not compute hash of op2.
11466         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11467         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11468         with vn_nary_op_compute_hash.
11469         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11470         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11471         vn_nary_op_lookup.
11472         (vn_unary_op_insert, vn_binary_op_insert): Replace with
11473         vn_nary_op_insert.
11474         (visit_unary_op): Call nary functions.
11475         (visit_binary_op): Likewise.
11476         (process_scc): Adjust for struct vn_tables_s changes.
11477         (allocate_vn_table): Likewise.
11478         (free_vn_table): Likewise.
11479         * tree-vn.c (vn_add): Call nary functions.
11480         (vn_lookup): Likewise.
11482 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
11484         PR target/35498
11485         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11486         wdst back after sync_compare_and_swapqhi_internal.
11488 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
11490         PR target/22152
11491         * config/i386/i386-modes.def (V1DI): New vector mode.
11492         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11493         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11494         (MMXMODE248): Ditto.
11495         (MMXMODE): Add V1DI mode.
11496         (mmxvecsize): Change DI mode to V1DI mode.
11497         ("mov<mode>): Use MMXMODEI8 mode iterator.
11498         ("*mov<mode>_internal_rex64"): Ditto.
11499         ("*mov<mode>_internal"): Ditto.
11500         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
11501         ("mmx_sub<mode>3"): Ditto.
11502         ("mmx_adddi3"): Remove insn pattern.
11503         ("mmx_subdi3"): Ditto.
11504         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11505         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11506         ("mmx_ashl<mode>3"): Ditto.
11507         ("mmx_lshrdi3"): Remove insn pattern.
11508         ("mmx_ashldi3"): Ditto.
11509         * config/i386/i386.c (classify_argument): Handle V1DImode.
11510         (function_arg_advance_32): Ditto.
11511         (function_arg_32): Ditto.
11512         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11513         mmx_addv1di3 insn pattern.
11514         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11515         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11516         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11517         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11518         Remove definitions of built-in functions.
11519         (V1DI_type_node): New node.
11520         (v1di_ftype_v1di_int): Ditto.
11521         (v1di_ftype_v1di_v1di): Ditto.
11522         (v2si_ftype_v2si_si): Ditto.
11523         (v4hi_ftype_v4hi_di): Remove node.
11524         (v2si_ftype_v2si_di): Ditto.
11525         (ix86_init_mmx_sse_builtins): Handle V1DImode.
11526         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11527         Redefine builtins using def_builtin_const with *_ftype_*_int node.
11528         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11529         Add new builtins using def_builtin_const.
11530         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11531         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11532         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11533         * config/i386/mmintrin.h (__v1di): New typedef.
11534         (_mm_add_si64): Cast arguments to __v1di type.
11535         (_mm_sub_si64): Ditto.
11536         (_mm_sll_pi16): Cast __count to __v4hi type.
11537         (_mm_sll_pi32): Cast __count to __v2si type.
11538         (_mm_sll_si64): Cast arguments to __v1di type.
11539         (_mm_srl_pi16): Cast __count to __v4hi type.
11540         (_mm_srl_pi32): Cast __count to __v2si type.
11541         (_mm_srl_si64): Cast arguments to __v1di type.
11542         (_mm_sra_pi16): Cast __count to __v4hi type.
11543         (_mm_sra_pi32): Cast __count to __v2si type.
11544         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11545         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11546         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11547         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11548         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11549         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11550         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11551         (_mm_srai_pi32): Use __builtin_ia32_psradi.
11552         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11553         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11554         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11555         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11557 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
11559         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11561 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
11563         PR target/35373
11564         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11565         reg+const addressing for Altivec modes.  Don't generate reg+reg
11566         addressing for TFmode or TDmode quantities.
11568 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
11570         * c-common.c (vector_types_convertible_p): Call langhook
11571         instead of comptypes.
11573 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11575         PR tree-opt/35402
11576         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11577         integral and scalar float variables which have a
11578         NULL DECL_INITIAL.
11580 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
11582         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11583         dwarf_register_span hook when emitting unwind information for
11584         register-to-memory saves.
11585         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11586         (rs6000_frame_related): Remove call to spe_synthesize_frame.
11588 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11590         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11591         for the same VAR_DECL.
11593 2008-03-06  Tom Tromey  <tromey@redhat.com>
11595         * treelang: Delete.
11596         * doc/standards.texi (Standards): Don't mention treelang.
11597         * doc/invoke.texi (Overall Options): Don't mention treelang.
11598         * doc/install.texi (Prerequisites): Don't mention bison or
11599         treelang.
11600         (Configuration): Don't mention treelang.
11601         (Building): Likewise.
11602         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11604 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
11606         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11607         word-extractions out of a multi-word object.
11609 2008-03-06  Richard Guenther  <rguenther@suse.de>
11611         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11612         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11613         result type and precision.
11614         * expr.c (get_inner_reference): Set unsignedp based on the result
11615         type of BIT_FIELD_REF.
11616         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11617         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11618         (try_instantiate_multiple_fields): Likewise.  Use the correct type
11619         for BIT_FIELD_REF.
11620         (sra_build_assignment): Likewise.
11621         (sra_build_elt_assignment): Likewise.
11622         (sra_explode_bitfield_assignment): Likewise.
11623         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11624         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11625         set BIT_FIELD_REF_UNSIGNED.
11626         (vectorizable_load): Likewise.
11628 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11630         * cse.c (cse_extended_basic_block): Invalidate artificial defs
11631         at bb start.
11633 2008-03-06  Richard Guenther  <rguenther@suse.de>
11635         * alias.c (struct alias_set_entry): Move has_zero_child field
11636         to pack with alias_set.
11638 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11640         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11641         32bit host.
11643 2008-03-05  Ian Lance Taylor  <iant@google.com>
11645         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11647 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
11649         * fwprop.c (update_df): Support width and offset parameters of
11650         df_ref_create.
11651         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11652         global_conflicts): Change DF_REF_EXTRACT to either
11653         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11654         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11655         * df-scan.c (df_ref_record, df_defs_record,
11656         df_ref_create_structure, df_def_record_1, df_uses_record,
11657         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11658         df_bb_refs_collect, df_entry_block_defs_collect,
11659         df_exit_block_uses_collect): Support new width and offset fields.
11660         (ref_extract_pool): New storage pool.
11661         (df_free_ref): New function.
11662         (df_reg_chain_unlink, df_free_collection_rec,
11663         df_sort_and_compress_refs): Call df_free_ref.
11664         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11665         of df_ref_extract.
11666         (df_ref_create_structure): Allocate df_ref_extract if offset and
11667         width fields are used.
11668         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11669         (df_uses_record): Get offset and width from ZERO_EXTRACT 
11670         and SIGN_EXTRACT.
11671         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11672         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11673         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11674         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11675         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11676         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11677         (df_ref_extract): New structure.
11678         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11679         (df_ref_create): Add width and offset parameters.
11680         
11681 2008-03-05  Richard Guenther  <rguenther@suse.de>
11683         * tree-ssa-structalias.c (get_constraint_for_component_ref):
11684         Use ranges_overlap_p.
11685         (offset_overlaps_with_access): Rename
11686         to ranges_overlap_p and move ...
11687         * tree-flow-inline.h (ranges_overlap_p): ... here.
11689         * tree.h (get_inner_reference, handled_component_p): Update
11690         comments.
11692         * tree.h (record_component_aliases, get_alias_set,
11693         alias_sets_conflict_p, alias_sets_must_conflict_p,
11694         objects_must_conflict_p): Move declarations ...
11695         * alias.h (record_component_aliases, get_alias_set,
11696         alias_sets_conflict_p, alias_sets_must_conflict_p,
11697         objects_must_conflict_p): ... here.
11698         Include coretypes.h.
11699         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11701 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
11703         * cfg.c: Include tree-flow.h.
11704         (remove_edge_raw): Call redirect_edge_var_map_clear.
11705         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11706         * tree-flow-inline.h (redirect_edge_var_map_def): New.
11707         (redirect_edge_var_map_result): New.
11708         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
11709         PENDING_STMT use with redirect_edge_var_map_*.
11710         * tree-ssa.c (edge_var_maps): New definition.
11711         (redirect_edge_var_map_add): New.
11712         (redirect_edge_var_map_clear): New.
11713         (redirect_edge_var_map_dup): New.
11714         (redirect_edge_var_map_vector): New.
11715         (redirect_edge_var_map_destroy): New.
11716         (ssa_redirect_edge): Replace PENDING_STMT use with
11717         redirect_edge_var_map_*.
11718         (flush_pending_stmts): Same.
11719         (delete_tree_ssa): Destroy edge var map.
11720         * tree-flow.h (struct _edge_var_map): New.
11721         Define edge_var_map vector type.
11722         Declare redirect_edge_var_map_* prototypes.
11723         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
11724         * tree-cfg.c (reinstall_phi_args): Replace
11725         PENDING_STMT use with redirect_edge_var_map_*.
11727 2008-03-05  Richard Guenther  <rguenther@suse.de>
11729         PR tree-optimization/35472
11730         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
11731         whose single use_stmt has a overlapping set of loaded and
11732         stored symbols as that use_stmt might be a noop assignment then.
11734 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
11736         * gthr-rtems.h: Implement __gthread_mutex_destroy.
11738 2008-03-05  Richard Guenther  <rguenther@suse.de>
11740         PR c++/35336
11741         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
11742         should be constants.
11743         * tree-cfg.c (verify_expr): Verify it.
11744         * fold-const.c (fold_truthop): Remove code generating
11745         BIT_FIELD_REFs of structure bases.
11746         (fold_binary): Likewise.
11747         (fold_ternary): Position and size of BIT_FIELD_REFs are
11748         always host integers.
11749         (make_bit_field_ref): Remove.
11750         (optimize_bit_field_compare): Remove.
11751         (all_ones_mask_p): Remove.
11753 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
11755         PR gcc/33009
11756         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
11757         (split_block_and_df_analyze): New. Split basic block and rebuild
11758         dataflow.
11759         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
11760         SPLIT_BLOCK.
11761         (split_pattern_seq): Likewise.
11762         (erase_matching_seqs): Likewise.
11763         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
11765 2008-03-04  Geoff Keating  <geoffk@apple.com>
11767         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
11768         declaration and code.
11769         (tree_invalid_nonnegative_warnv_p): Likewise.
11771 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11773         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
11774         examples.  Truncate option-names then causing overfull hbox.
11776 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11778         PR target/35222
11779         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
11780         on hpux10.
11781         * configure: Rebuilt.
11783 2008-03-04  Rafael Espindola  <espindola@google.com>
11785         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
11786         (tree_unary_nonnegative_warnv_p): New.
11787         (tree_binary_nonnegative_warnv_p): New.
11788         (tree_single_nonnegative_warnv_p): New.
11789         (tree_invalid_nonnegative_warnv_p): New.
11790         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
11792 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11794         PR 28322
11795         * opts.c (handle_option): Postpone 'unknown option' errors only for
11796         warning options.
11798 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11800         PR target/35453
11801         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
11802         (_SIDD_XXX): This.
11804 2008-03-04  Rafael Espindola  <espindola@google.com>
11806         * fold-const.c (tree_unary_nonzero_warnv_p): New.
11807         (tree_binary_nonzero_warnv_p): New.
11808         (tree_single_nonzero_warnv_p): New.
11809         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
11811 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
11813         PR middle-end/35456
11814         * fold-const.c (fold_cond_expr_with_comparison): Prevent
11815         transformations for modes that have signed zeros.
11816         * ifcvt.c (noce_try_abs): Ditto.
11818 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
11820         * config/i386/i386.c (override_options): Force
11821         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
11823 2008-03-04  Jan Hubicka  <jh@suse.cz>
11825         PR c++/35262
11826         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
11827         in last commit.
11829 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11831         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
11832         label to probe the stack.
11834 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11836         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
11837         (__gthr_win32_mutex_destroy): Declare.
11838         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
11839         __gthr_win32_mutex_destroy.
11840         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
11842 2008-03-03  Jan Hubicka  <jh@suse.cz>
11844         PR c++/35262
11845         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
11846         aggressive on inlining cold calls.
11848 2008-03-03  Richard Guenther  <rguenther@suse.de>
11850         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
11851         struct copies into the expression table.
11852         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
11853         (try_to_simplify): Likewise.
11854         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
11855         integral and pointer arguments which do not change the
11856         precision to NOP_EXPRs.
11857         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
11858         VIEW_CONVERT_EXPR case.
11860 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
11862         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
11863         defined in a loop at depth 0 is invariant.
11864         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
11865         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
11866         be called at loop depth 0.
11868 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
11870         PR driver/35420
11871         * gcc.c (process_command): Update copyright notice dates.
11872         * gcov.c (print_version): Likewise.
11873         * gcov-dump.c (print_version): Likewise.
11874         * mips-tfile.c (main): Likewise.
11875         * mips-tdump.c (main): Likewise.
11877 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11879         PR 24924
11880         * c-common.c (flag_permissive): Delete.
11881         (constant_expression_warnings): Check flags first.
11882         (constant_expression_error): New.
11883         * c-common.h (flag_permissive): Delete.
11884         (constant_expression_error): Declare.
11885         * flags.h (flag_permissive): Declare. Update description.
11886         * diagnostic.c (pedwarn): Update.
11887         (permerror): New.
11888         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
11889         (permissive_error_kind): New.
11890         * toplev.c (flag_permissive): Define. Update description.
11891         * toplev.h (permissive_error_kind): Declare.
11892         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
11893         (pedwarn_c90): Use pedantic_warning_kind.
11894         * c-opts.c (c_common_post_options): flag_permissive does not affect
11895         flag_pedantic_errors.
11897 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
11899         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
11900         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
11901         __absvsi2, __absvDI2): Use unsigned arithmetic.
11903 2008-03-02  Andi Kleen  <ak@suse.de>
11904             Richard Guenther  <rguenther@suse.de>
11906         * struct-equiv.c: Remove file.
11907         * cfg_cleanup.c (condjump_equiv_p): Remove.
11908         * Makefile.in (OBJS-common): Remove struct-equiv.o.
11909         (struct-equiv.o): Remove rule.
11910         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
11911         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
11912         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
11914 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11916         * ifcvt.c (noce_process_if_block): Try to handle only the then
11917         block if the else block exists but isn't suitable.
11919 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11921         PR gcc/35063
11922         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
11923         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
11924         regression from previous patch.
11926 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11928         PR gcc/35063
11929         * gthr.h: Add __gthread_mutex_destroy as a function that must be
11930         implemented.
11931         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
11932         * gthr-single.h (__gthread_mutex_destroy): Likewise.
11933         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
11934         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
11935         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
11936         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
11937         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
11938         (__gthread_mutex_destroy_function): Rename to
11939         __gthread_mutex_destroy.
11940         * gthr-dce.h (__gthread_mutex_destroy): Call
11941         pthread_mutex_destroy.
11942         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
11943         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
11944         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
11946 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11948         * df-scan.c (df_ref_chain_change_bb): Simplify.
11949         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
11950         set_block_for_insn if there's any change.
11951         * df.h ((df_insn_change_bb): Fix prototype.
11952         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
11953         df_insn_change_bb, don't call set_block_for_insn.
11954         * emit-rtl.c (reorder_insns): Likewise.
11955         * haifa-sched.c (move_insn): Likewise.
11957 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11959         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
11961 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11963         * tree-flow-inline.h (next_readonly_imm_use): Return
11964         NULL_USE_OPERAND_P after the end.
11966 2008-03-01  Richard Guenther  <rguenther@suse.de>
11968         PR tree-optimization/35411
11969         * tree-sra.c (sra_build_assignment): Split conversion to
11970         final type to a separate statement if we are not assigning
11971         to a register.
11973 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11975         * fold-const.c (fold_convertible_p): Correct the logic to follow
11976         that in fold_convert().
11978 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
11980         PR c++/35315
11981         * tree-inline.c (build_duplicate_type): When we make a
11982         duplicate type, make it unique in the canonical types system.
11984 2008-02-29  Tom Tromey  <tromey@redhat.com>
11986         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
11987         input_file_stack_history, input_file_stack_restored): Remove.
11988         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11989         * input.h (struct file_stack): Remove.
11990         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11991         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
11992         Likewise.
11993         * diagnostic.h (struct diagnostic_context) <last_module>: Change
11994         type.
11995         (diagnostic_last_module_changed): Add 'map' argument.
11996         (diagnostic_set_last_function): Likewise.
11997         * diagnostic.c (undiagnostic_report_current_module): Iterate using
11998         line map, not input_file_stack.
11999         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12001 2008-02-29  Paul Brook  <paul@codesourcery.com>
12003         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12005 2008-02-29  Paul Brook  <paul@codesourcery.com>
12007         * config/arm/ieee754-df.S (muldf3): Use RET macros.
12009 2008-02-29  Richard Guenther  <rguenther@suse.de>
12011         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12012         vn_lookup_or_add.
12013         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12014         value for comparing for a store match.
12015         (simplify_unary_expression): Do nothing for SSA_NAMEs.
12016         (try_to_simplify): Do not do a full-blown reference lookup.
12018 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12020         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12021         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12023         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12025 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
12027         * tree-loop-linear.c (try_interchange_loops): Compare memory access
12028         strides against cache sizes.
12030 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12032         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12033         constant to fpul.
12035 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
12037         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12038         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12039         is smaller than the original promoted value.
12040         (simplify_subreg): If OP is a SUBREG, try to preserve its
12041         SUBREG_PROMOTED_VAR_P information.
12043 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
12045         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12046         (VN_INFO_GET): Allocate new objects on the obstack.
12047         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
12048         for rpo_numbers_temp, for consistency.
12049         (free_scc_vn): Free the obstack.
12051 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
12053         * doc/invoke.texi: Document -ftree-loop-distribution.
12054         * tree-loop-distribution.c: New.
12055         * tree-pass.h (pass_loop_distribution): New.
12056         * graphds.h (struct graph): Add htab_t indices.
12057         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12058         * tree-vectorizer.c (rename_variables_in_loop): Extern.
12059         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12060         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12061         * tree-data-ref.c (debug_data_dependence_relations): New.
12062         (dump_data_dependence_relation): Also print data references.
12063         (free_data_ref): Extern.
12064         (same_access_functions): Moved...
12065         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12066         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12067         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12068         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12069         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12070         (stmts_from_loop): Skip LABEL_EXPR.
12071         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12072         New.
12073         (build_rdg): Initialize rdg->indices htab.
12074         (free_rdg, stores_from_loop, ref_base_address,
12075         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12076         have_similar_memory_accesses_1, ref_base_address_1,
12077         remove_similar_memory_refs): New.
12078         * tree-data-ref.h: Depend on tree-chrec.h.
12079         (debug_data_dependence_relations, free_data_ref): Declared.
12080         (same_access_functions): ... here.
12081         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12082         New.
12083         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12084         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12085         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12086         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12087         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12088         rdg_vertex_for_stmt): Declared.
12089         (struct rdg_edge): Add level.
12090         (RDGE_LEVEL): New.
12091         (free_rdg, stores_from_loop, remove_similar_memory_refs,
12092         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12093         Declared.
12094         (rdg_has_similar_memory_accesses): New.
12095         * tree-vect-analyze.c: Remove unused static decls.
12096         * lambda.h (dependence_level): New.
12097         * common.opt (ftree-loop-distribution): New.
12098         * tree-flow.h (mark_virtual_ops_in_bb, 
12099         slpeel_tree_duplicate_loop_to_edge_cfg,
12100         rename_variables_in_loop): Declared.
12101         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12102         (OBJS-common): Add tree-loop-distribution.o.
12103         (tree-loop-distribution.o): New rule.
12104         * tree-cfg.c (mark_virtual_ops_in_bb): New.
12105         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12106         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12108 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
12110         PR target/33963
12111         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12112         other than structures and unions.
12114 2008-02-28  Richard Guenther  <rguenther@suse.de>
12116         Revert:
12117         2008-02-26  Richard Guenther  <rguenther@suse.de>
12119         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12120         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12121         (lookup_decl_from_uid): Declare.
12122         (remove_decl_from_map): Likewise.
12123         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12124         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12125         (decl_for_uid_map): New global hashtable mapping DECL_UID
12126         to the decl tree.
12127         (init_ttree): Allocate it.
12128         (insert_decl_to_uid_decl_map): New helper function.
12129         (make_node_stat): Insert new decls into the map.
12130         (copy_node_stat): Likewise.
12131         (lookup_decl_from_uid): New function.
12132         (remove_decl_from_map): Likewise.
12133         (print_decl_for_uid_map_statistics): New helper.
12134         (dump_tree_statistics): Call it.
12136         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12137         (referenced_var_iterator): Adjust.
12138         (FOR_EACH_REFERENCED_VAR): Adjust.
12139         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12140         (num_referenced_vars): Adjust.
12141         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12142         (first_referenced_var): Remove.
12143         (end_referenced_vars_p): Likewise.
12144         (next_referenced_var): Likewise.
12145         (referenced_var_iterator_set): New helper function.
12146         * tree-dfa.c (referenced_var_lookup): Adjust.
12147         (referenced_var_check_and_insert): Likewise.
12148         (remove_referenced_var): Likewise.
12149         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12150         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12151         (verify_call_clobbering): Likewise.
12152         (verify_memory_partitions): Likewise.
12153         (init_tree_ssa): Allocate bitmap instead of hashtable for
12154         referenced_vars.
12155         (delete_tree_ssa): Adjust.
12156         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12157         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12158         (compute_tag_properties): Likewise.
12159         (set_initial_properties): Likewise.
12160         (find_partition_for): Likewise.
12161         (update_reference_counts): Likewise.
12162         (dump_may_aliases_for): Likewise.
12163         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12164         (add_call_clobber_ops): Likewise.
12165         (add_call_read_ops): Likewise.
12166         (get_asm_expr_operands): Likewise.
12167         * tree-into-ssa.c (dump_decl_set): Likewise.
12168         (update_ssa): Likewise.
12169         * tree-sra.c (scan_function): Likewise.
12170         (decide_instantiations): Likewise.
12171         (scalarize_parms): Likewise.
12172         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12173         (dsa_named_for): Likewise.
12174         * tree-ssa-structalias.c (update_alias_info): Likewise.
12175         (merge_smts_into): Likewise.
12177 2008-02-27  David Daney  <ddaney@avtrex.com>
12179         PR target/34409
12180         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12181         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12182         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12183         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12184         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12186 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
12188         PR target/25477
12189         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12190         (BUILT_IN_NEXTTOWARD): Remove.
12191         (BUILT_IN_NEXTTOWARDF): Ditto.
12192         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12193         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
12195 2008-02-27  Tom Tromey  <tromey@redhat.com>
12197         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12198         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12200 2008-02-27  Jan Beulich  <jbeulich@novell.com>
12202         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12203         update the respective field on newdecl.
12205 2008-02-27  Revital Eres  <eres@il.ibm.com>
12207         PR rtl-optimization/34999
12208         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12209         crossing edges that ends with a call insn.
12210         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12211         call insn and clear the EDGE_CROSSING flag of the crossing edge
12212         when fixing fallthru edges.
12214 2008-02-27  Richard Guenther  <rguenther@suse.de>
12216         PR middle-end/35390
12217         * fold-const.c (fold_unary): Return the correct argument,
12218         converted to the result type.
12220 2008-02-27  Richard Guenther  <rguenther@suse.de>
12222         PR middle-end/34971
12223         * expr.c (expand_expr_real_1): Assert on rotates that operate
12224         on partial modes.
12225         * fold-const.c (fold_binary): Use the types precision, not the
12226         bitsize of the mode if folding rotate expressions.  Build rotates
12227         only for full modes.
12229 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
12231         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12232         and CPP_PRAGMA_EOL.
12233         * c-pragma.c (pragma_ns_name): New typedef.
12234         (registered_pp_pragmas): New variable.
12235         (c_pp_lookup_pragma): New function.
12236         (c_register_pragma_1): If flag_preprocess_only, do nothing
12237         for non-expanded pragmas, for expanded ones push pragma's
12238         namespace and name into registered_pp_pragmas vector.
12239         (c_invoke_pragma_handler): Register OpenMP pragmas even when
12240         flag_preprocess_only, don't register GCC pch_preprocess
12241         pragma if flag_preprocess_only.
12242         * c-opts.c (c_common_init): Call init_pragma even if
12243         flag_preprocess_only.
12244         * c-pragma.c (c_pp_lookup_pragma): New prototype.
12245         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12246         cpp_register_pragma if flag_preprocess_only.
12248 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12250         PR c/28800
12251         * c-parser.c (c_parser_translation_unit): Warn for empty
12252         translation unit, not empty source file.
12254 2008-02-26  Paul Brook  <paul@codesourcery.com>
12256         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12257         operand for Thumb-2.
12258         * config/arm/arm.h (reg_class): Add CORE_REGS.
12259         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12260         (BASE_REG_CLASS): Use CORE_REGS.
12261         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12262         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12263         (REGNO_OK_FOR_INDEX_P): Exclude SP.
12264         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
12265         ARM_REGNO_OK_FOR_INDEX_P.
12266         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12267         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12268         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12269         (ldm/stm peepholes): Ditto.
12270         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12271         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12272         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12273         * config/arm/constraints.md: Enable "k" constraint on ARM.
12275 2008-02-27  Ben Elliston  <bje@au.ibm.com>
12277         * config/rs6000/rs6000.c: Annotate cache line size field in all
12278         instances of struct processor_costs.
12280 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
12282         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12283         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12284         jump_bypass): New counters.
12285         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12286         * dce.c (gate_ud_dce): Same.
12287         (gate_fast_dce): Same.
12288         * dse.c (gate_dse1): New function.
12289         (gate_dse2): New function.
12290         (gate_dse): Merge results of new gate functions.
12291         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12292         (gate_handle_jump_bypass): Add dbg_cnt.
12293         (gate_handle_gcse): Add dbg_cnt.
12294         * ifcvt.c (gate_handle_if_conversion): Same.
12295         (gate_handle_if_after_combine): Same.
12296         (gate_handle_if_after_reload): Same.
12297         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12299 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
12301         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12302         line sizes.
12303         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12305 2008-02-26  Jason Merrill  <jason@redhat.com>
12307         PR c++/35315
12308         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
12309         alone if it's the naming decl for the type's main variant.
12311 2008-02-26  Tom Tromey  <tromey@redhat.com>
12313         * system.h (USE_MAPPED_LOCATION): Poison.
12314         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12315         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12316         (make_goto_expr_edges): Likewise.
12317         (remove_bb): Likewise.
12318         (execute_warn_function_return): Likewise.
12319         * basic-block.h (struct edge_def) <goto_locus>: Change type to
12320         location_t.
12321         * c-common.c (fname_decl): Remove old location code.
12322         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12323         location code.
12324         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12325         variant.
12326         (ASM_INPUT_SOURCE_LOCATION): Likewise.
12327         (gen_rtx_ASM_INPUT): Likewise.
12328         (gen_rtx_ASM_INPUT_loc): Likewise.
12329         (get_rtx_asm_OPERANDS): Remove.
12330         * cfglayout.c (insn_locators_alloc): Remove old location code.
12331         (set_curr_insn_source_location): Likewise.
12332         (curr_insn_locator): Likewise.
12333         * print-tree.c (print_node): Remove old location code.
12334         * tree-mudflap.c (mf_varname_tree): Remove old location code.
12335         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12336         * cfgexpand.c (expand_gimple_cond_expr): Don't use
12337         location_from_locus.
12338         (construct_exit_block): Remove old location code.
12339         * emit-rtl.c (force_next_line_note): Remove old location code.
12340         * profile.c (branch_prob): Remove old location code.
12341         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12342         LOC_LINE): Remove old-location variants.
12343         * langhooks.c (lhd_print_error_function): Remove old location
12344         code.
12345         * configure, config.in: Rebuilt.
12346         * configure.ac (--enable-mapped-location): Remove.
12347         * c-decl.c (c_init_decl_processing): Remove old location code.
12348         (finish_function): Likewise.
12349         * recog.c (decode_asm_operands): Remove old location code.
12350         * c-pch.c (c_common_read_pch): Remove old location code.
12351         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12352         variants.
12353         * gimple-low.c (lower_function_body): Remove old location code.
12354         * toplev.c (unknown_location): Remove.
12355         (push_srcloc): Remove old-location variant.
12356         (process_options): Remove old location code.
12357         (lang_dependent_init): Likewise.
12358         * input.h (UNKNOWN_LOCATION): Move definition.
12359         (location_t): Undeprecate.
12360         (source_locus): Remove.
12361         (location_from_locus): Remove.
12362         (struct location_s): Remove.
12363         Remove all old-location code.
12364         (input_line, input_filename): Remove.
12365         * final.c (final_scan_insn): Remove old location code.
12366         * diagnostic.c (diagnostic_build_prefix): Remove
12367         USE_MAPPED_LOCATION test.
12368         * tree.h (gimple_stmt) <locus>: Now a location_t.
12369         (tree_exp) <locus>: Likewise.
12370         (DECL_IS_BUILTIN): Remove old-location variant.
12371         (annotate_with_file_line, annotate_with_locus): Likewise.
12372         (expr_locus, set_expr_locus): Update.
12373         * tree.c (build1_stat): Remove old location code.
12374         (last_annotated_node): Remove.
12375         (annotate_with_file_line): Remove old-location variant.
12376         (annotate_with_locus): Likewise.
12377         (expr_location): Remove old location code.
12378         (set_expr_location): Likewise.
12379         (expr_has_location): Likewise.
12380         (expr_locus): Likewise.
12381         (set_expr_locus): Likewise.
12382         (expr_filename): Don't use location_from_locus.
12383         (expr_lineno): Likewise.
12384         * rtl-error.c (location_for_asm): Remove old location code.
12385         * c-lex.c (cb_line_change): Remove old location code.
12386         (fe_file_change): Likewise.
12387         (cb_def_pragma): Likewise.
12388         (c_lex_with_flags): Likewise.
12389         * gengtype.c (do_typedef): Don't special-case location types.
12390         (define_location_structures): Remove.
12391         (main): Don't call define_location_structures.
12392         * tree-pretty-print.c (dump_implicit_edges): Remove old location
12393         code.
12395 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12397         PR 26264
12398         * builtins.def (BUILT_IN_STDARG_START): Remove.
12399         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12400         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12401         * tree-inline.c (inline_forbidden_p_1): Likewise.
12402         
12403 2008-02-26  Richard Guenther  <rguenther@suse.de>
12405         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12406         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12407         (lookup_decl_from_uid): Declare.
12408         (remove_decl_from_map): Likewise.
12409         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12410         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12411         (decl_for_uid_map): New global hashtable mapping DECL_UID
12412         to the decl tree.
12413         (init_ttree): Allocate it.
12414         (insert_decl_to_uid_decl_map): New helper function.
12415         (make_node_stat): Insert new decls into the map.
12416         (copy_node_stat): Likewise.
12417         (lookup_decl_from_uid): New function.
12418         (remove_decl_from_map): Likewise.
12419         (print_decl_for_uid_map_statistics): New helper.
12420         (dump_tree_statistics): Call it.
12422         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12423         (referenced_var_iterator): Adjust.
12424         (FOR_EACH_REFERENCED_VAR): Adjust.
12425         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12426         (num_referenced_vars): Adjust.
12427         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12428         (first_referenced_var): Remove.
12429         (end_referenced_vars_p): Likewise.
12430         (next_referenced_var): Likewise.
12431         (referenced_var_iterator_set): New helper function.
12432         * tree-dfa.c (referenced_var_lookup): Adjust.
12433         (referenced_var_check_and_insert): Likewise.
12434         (remove_referenced_var): Likewise.
12435         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12436         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12437         (verify_call_clobbering): Likewise.
12438         (verify_memory_partitions): Likewise.
12439         (init_tree_ssa): Allocate bitmap instead of hashtable for
12440         referenced_vars.
12441         (delete_tree_ssa): Adjust.
12442         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12443         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12444         (compute_tag_properties): Likewise.
12445         (set_initial_properties): Likewise.
12446         (find_partition_for): Likewise.
12447         (update_reference_counts): Likewise.
12448         (dump_may_aliases_for): Likewise.
12449         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12450         (add_call_clobber_ops): Likewise.
12451         (add_call_read_ops): Likewise.
12452         (get_asm_expr_operands): Likewise.
12453         * tree-into-ssa.c (dump_decl_set): Likewise.
12454         (update_ssa): Likewise.
12455         * tree-sra.c (scan_function): Likewise.
12456         (decide_instantiations): Likewise.
12457         (scalarize_parms): Likewise.
12458         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12459         (dsa_named_for): Likewise.
12460         * tree-ssa-structalias.c (update_alias_info): Likewise.
12461         (merge_smts_into): Likewise.
12463 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12465         PR 34351
12466         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12467         * c-opts.c (c_common_handle_option): Wall enables
12468         Wvolatile-register-var.
12469         * common.opt: Move Wvolatile-register-var to...
12470         * c.opt: ...here.
12471         
12472 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12474         * common.opt (Wlarger-than=): New.
12475         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12476         -Wlarger-than=.
12477         * opts.c (common_handle_option): Handle -Wlarger-than=.
12478         * optc-gen.awk: Likewise.
12479         * opth-gen.awk: Likewise.
12480         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12481         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12482         
12483 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12485         * c-common.c (match_case_to_enum_1): Add appropriate
12486         OPT_W* parameter to warning.
12487         (c_do_switch_warnings): Likewise.
12488         * c-typeck.c (warning_init): Add one more parameter following
12489         'warning' function.
12490         (push_init_level): Update call to warning_init.
12491         (pop_init_level): Likewise.
12492         (add_pending_init): Likewise.
12493         (output_init_element: Likewise.
12495 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12497         PR 28322
12498         * toplev.c (toplev_main): If there are warnings or error, print
12499         errors for ignored options.
12500         * opts.c (ignored_options): New static variable.
12501         (postpone_unknown_option_error): New.
12502         (print_ignored_options): New.
12503         (handle_option): Postpone errors for unknown -Wno-* options.
12504         * opts.h (print_ignored_options): Declare.
12505         
12506 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12508         * config/mips/mips.md (loadgp_blockage, blockage): Change type
12509         to "ghost".
12511 2008-02-25  Richard Guenther  <rguenther@suse.de>
12513         Revert:
12514         2008-02-25  Richard Guenther  <rguenther@suse.de>
12516         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12517         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12518         (lookup_decl_from_uid): Declare.
12519         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12520         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12521         (decl_for_uid_map): New global hashtable mapping DECL_UID
12522         to the decl tree.
12523         (init_ttree): Allocate it.
12524         (insert_decl_to_uid_decl_map): New helper function.
12525         (make_node_stat): Insert new decls into the map.
12526         (copy_node_stat): Likewise.
12527         (lookup_decl_from_uid): New function.
12528         (print_decl_for_uid_map_statistics): New helper.
12529         (dump_tree_statistics): Call it.
12531         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12532         (referenced_var_iterator): Adjust.
12533         (FOR_EACH_REFERENCED_VAR): Adjust.
12534         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12535         (num_referenced_vars): Adjust.
12536         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12537         (first_referenced_var): Remove.
12538         (end_referenced_vars_p): Likewise.
12539         (next_referenced_var): Likewise.
12540         (referenced_var_iterator_set): New helper function.
12541         * tree-dfa.c (referenced_var_lookup): Adjust.
12542         (referenced_var_check_and_insert): Likewise.
12543         (remove_referenced_var): Likewise.
12544         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12545         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12546         (verify_call_clobbering): Likewise.
12547         (verify_memory_partitions): Likewise.
12548         (init_tree_ssa): Allocate bitmap instead of hashtable for
12549         referenced_vars.
12550         (delete_tree_ssa): Adjust.
12551         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12552         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12553         (compute_tag_properties): Likewise.
12554         (set_initial_properties): Likewise.
12555         (find_partition_for): Likewise.
12556         (update_reference_counts): Likewise.
12557         (dump_may_aliases_for): Likewise.
12558         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12559         (add_call_clobber_ops): Likewise.
12560         (add_call_read_ops): Likewise.
12561         (get_asm_expr_operands): Likewise.
12562         * tree-into-ssa.c (dump_decl_set): Likewise.
12563         (update_ssa): Likewise.
12564         * tree-sra.c (scan_function): Likewise.
12565         (decide_instantiations): Likewise.
12566         (scalarize_parms): Likewise.
12567         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12568         (dsa_named_for): Likewise.
12569         * tree-ssa-structalias.c (update_alias_info): Likewise.
12570         (merge_smts_into): Likewise.
12572 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12574         PR fortran/29549
12575         * doc/invoke.texi (-fcx-limited-range): Document new option.
12576         * toplev.c (process_options): Handle -fcx-fortran-rules.
12577         * common.opt: Add documentation for -fcx-fortran-rules.
12579 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12581         PR c/35162
12582         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12583         actual behaviour and C99.
12584         
12585 2008-02-26  Ben Elliston  <bje@au.ibm.com>
12587         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12588         (ASM_CPU_POWER6_SPEC): Likewise.
12589         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12590         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12591         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12593 2008-02-25  Richard Guenther  <rguenther@suse.de>
12595         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12596         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12597         (lookup_decl_from_uid): Declare.
12598         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12599         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12600         (decl_for_uid_map): New global hashtable mapping DECL_UID
12601         to the decl tree.
12602         (init_ttree): Allocate it.
12603         (insert_decl_to_uid_decl_map): New helper function.
12604         (make_node_stat): Insert new decls into the map.
12605         (copy_node_stat): Likewise.
12606         (lookup_decl_from_uid): New function.
12607         (print_decl_for_uid_map_statistics): New helper.
12608         (dump_tree_statistics): Call it.
12610         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12611         (referenced_var_iterator): Adjust.
12612         (FOR_EACH_REFERENCED_VAR): Adjust.
12613         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12614         (num_referenced_vars): Adjust.
12615         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12616         (first_referenced_var): Remove.
12617         (end_referenced_vars_p): Likewise.
12618         (next_referenced_var): Likewise.
12619         (referenced_var_iterator_set): New helper function.
12620         * tree-dfa.c (referenced_var_lookup): Adjust.
12621         (referenced_var_check_and_insert): Likewise.
12622         (remove_referenced_var): Likewise.
12623         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12624         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12625         (verify_call_clobbering): Likewise.
12626         (verify_memory_partitions): Likewise.
12627         (init_tree_ssa): Allocate bitmap instead of hashtable for
12628         referenced_vars.
12629         (delete_tree_ssa): Adjust.
12630         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12631         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12632         (compute_tag_properties): Likewise.
12633         (set_initial_properties): Likewise.
12634         (find_partition_for): Likewise.
12635         (update_reference_counts): Likewise.
12636         (dump_may_aliases_for): Likewise.
12637         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12638         (add_call_clobber_ops): Likewise.
12639         (add_call_read_ops): Likewise.
12640         (get_asm_expr_operands): Likewise.
12641         * tree-into-ssa.c (dump_decl_set): Likewise.
12642         (update_ssa): Likewise.
12643         * tree-sra.c (scan_function): Likewise.
12644         (decide_instantiations): Likewise.
12645         (scalarize_parms): Likewise.
12646         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12647         (dsa_named_for): Likewise.
12648         * tree-ssa-structalias.c (update_alias_info): Likewise.
12649         (merge_smts_into): Likewise.
12651 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
12653         PR target/35258
12654         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12655         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12656         * alias.h (nonoverlapping_memrefs_p): Likewise.
12658 2008-02-25  Jan Beulich  <jbeulich@novell.com>
12660         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12661         * config/i386/netware-libgcc.exp: Add __bswap?i2,
12662         __emultls_get_address, __emultls_register_common,
12663         __floatundi?f, and _Unwind_GetIPInfo.
12664         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12665         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12666         (gen_regparm_prefix): Likewise.
12667         (i386_nlm_encode_section_info): Sync with
12668         config/i386/winnt.c:i386_pe_encode_section_info().
12669         (i386_nlm_maybe_mangle_decl_assembler_name): New.
12670         i386_nlm_mangle_decl_assembler_name): New.
12671         (netware_override_options): New.
12672         * config/i386/netware.h (netware_override_options): Declare.
12673         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12674         (i386_nlm_mangle_decl_assembler_name): Declare.
12675         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12677 2008-02-25  Ben Elliston  <bje@au.ibm.com>
12679         PR other/32948
12680         * c-decl.c (grokdeclarator): Remove unused local variables
12681         `typedef_type' and `type_as_written'.
12682         * bb-reorder.c
12683         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12684         unused local variable `has_hot_blocks'.
12685         (fix_crossing_conditional_branches): Remove unused local variable
12686         `prev_bb'.
12687         
12688 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
12690         PR middle-end/19984
12691         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12692         using DEF_C99_BUILTIN.
12693         (BUILT_IN_NANF): Ditto.
12694         (BUILT_IN_NANL): Ditto.
12696 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
12697             Revital Eres  <eres@il.ibm.com>
12699         * modulo-sched.c (calculate_must_precede_follow): Address TODO
12700         regarding the order of two dependent insns in the same row.
12702 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12704         * stor-layout.c (layout_decl): Do not bump the alignment of a
12705         bit-field to more than byte alignment if it is packed.
12707 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
12709         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
12710         e300c2 and e300c3.
12712 2008-02-24  Diego Novillo  <dnovillo@google.com>
12714         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
12716         PR 33738
12717         * tree-vrp.c (vrp_evaluate_conditional): With
12718         -Wtype-limits, emit a warning when comparing against a
12719         constant outside the natural range of OP0's type.
12720         * c.opt (Wtype-limits): Move ...
12721         * common.opt (Wtype-limits): ... here.
12723 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
12725         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
12726         * config/rs6000/e300c2c3.md: New file.
12727         * config/rs6000/rs6000.c (processor_costs): Add new costs for
12728         e300c2 and e300c3.
12729         (rs6000_override_options): Add e300c2 and e300c3 cases to
12730         processor_target_table. Do not allow usage of Altivec or Spe
12731         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
12732         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
12733         * config/rs6000/rs6000.h (processor_type): Add
12734         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
12735         (ASM_CPU_SPEC): Add e300c2 and e300c3.
12736         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
12737         and ppce300c3. Include e300c2c3.md.
12739 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
12741         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
12742         instead of TARGET_STRICT_ALIGN.
12744 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
12746         * explow.c (memory_address): Assert that the generated address is
12747         valid.
12749 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12751         PR target/25477
12752         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
12753         * config/darwin-ppc-ldouble-patch.def: New file.
12754         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
12755         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
12756         SUBTARGET_INIT_BUILTINS if defined.
12757         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
12758         New functions.
12760 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12762         PR rtl-opt/33512
12763         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
12764         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
12766 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12768         PR pch/35027
12769         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
12770         file" warning condtional on -Winvalid-PCH.
12772 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
12774         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
12776 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
12778         PR target/22076
12779         PR target/34256 
12780         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
12781         prevent reload from using MMX registers.
12782         (*mov<mode>_internal): Ditto.
12783         (*movv2sf_internal_rex64): Ditto.
12784         (*movv2sf_internal): Ditto.
12786 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12788         PR documentation/31569
12789         * doc/install.texi2html: Use makeinfo --no-number-sections.
12791 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12793         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
12794         ensure that we can address an entire entity > 8 bytes.  Don't
12795         generate reg+reg addressing for such data.
12797 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12799         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
12800         strings when optimizing for size, unless the target cares about
12801         alignment.
12803 2008-02-22  Tom Tromey  <tromey@redhat.com>
12805         * regclass.c (current_pass): Remove declaration.
12807 2008-02-22  Anatoly Sokolov <aesok@post.ru>
12809         * config/avr/libgcc.S (__RAMPZ__): Define.
12810         (__do_copy_data): Add for devices with 128KB code memory.
12812 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12814         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12815         Use spe_abi.
12816         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12818 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
12820         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
12821         GENNONACR_REGS.
12823 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12825         PR c/19999
12826         * c-typeck.c (build_binary_op): Warn about floating point
12827         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
12829 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
12831         PR target/34526
12832         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
12833         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
12834         add vrsave.
12835         (rs6000_override_options): Set altivec_abi as default, not override,
12836         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
12837         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
12838         is used; use new member spe_abi.
12839         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
12840         spe_abi and altivec_abi.
12842 2008-02-22  Tomas Bily  <tbily@suse.cz>
12844         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
12846 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12848         PR bootstrap/35273
12849         * config.build (build_file_translate): Set to `CMD //c' only if
12850         it works.
12851         * Makefile.in (build_file_translate): Improve comment.
12853 2008-02-21  Jan Hubicka  <jh@suse.cz>
12855         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
12856         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
12857         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
12859 2008-02-21  Michael Matz  <matz@suse.de>
12861         PR target/35264
12862         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
12864 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
12866         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
12867         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
12868         as insn constraint.
12869         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
12870         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
12871         SSE_VEC_FLOAT_MODE_P as insn constraint.
12872         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
12873         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
12874         sse4a_movntdf using MODEF mode iterator.
12875         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
12876         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
12877         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
12878         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
12879         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
12880         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
12881         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
12883 2008-02-21  Richard Guenther  <rguenther@suse.de>
12885         * tree.def (PAREN_EXPR): New tree code.
12886         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
12887         and PAREN_EXPR.
12888         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
12889         * expr.c (expand_expr_real_1): Likewise.
12890         * tree-inline.c (estimate_num_insns_1): Likewise.
12891         * tree-complex.c (expand_complex_move): Likewise.
12892         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
12893         as plain x.
12895 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12897         PR target/35225
12898         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
12900 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12902         PR target/35190
12903         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
12905         * config/sh/sh.c (find_barrier): Don't go past
12906         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
12908 2008-02-20  DJ Delorie  <dj@redhat.com>
12910         * config/h8300/h8300.md (insv): Force source operand to be a register.
12912         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
12913         as a jump, not as a plain insn.
12914         
12915 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
12917         * doc/invoke.texi (Warning Options): Add new option
12918         -Wframe-larger-than=.
12919         (-Wframe-larger-than): Document.
12921         * flags.h (warn_frame_larger_than, frame_larger_than_size):
12922         Add declarations for new option variables.
12924         * final.c (final_start_function): Check the frame size
12925         before emission and issue a Wframe-larger-than warning.
12927         * opts.c (warn_frame_larger_than, frame_larger_than_size):
12928         Add definitions for new option variables.
12929         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
12931         * common.opt (Wframe-larger-than=): New option.
12933 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12935         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
12936         (<sse>_div<mode>3): Ditto.
12937         (<sse>_vmdiv<mode>3): Ditto.
12938         (<sse>_vmsqrt<mode>2): Ditto.
12939         (*smax<mode>3): Ditto.
12940         (sse5_frcz<mode>2): Ditto.
12941         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
12942         as insn constraint.
12944 2008-02-20  Richard Guenther  <rguenther@suse.de>
12946         PR middle-end/35265
12947         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
12948         be happy with INTEGRAL_TYPE_P.
12950 2008-02-20  Richard Guenther  <rguenther@suse.de>
12952         * fold-const.c (split_tree): Associate floatig-point expressions
12953         if flag_associative_math is set.
12955 2008-02-20  Richard Guenther  <rguenther@suse.de>
12957         * tree.h (fold_real_zero_addition_p): Declare.
12958         * fold-const.c (fold_real_zero_addition_p): Export.
12959         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
12960         floating-point operations with zero and one.
12962 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
12964         * doc/install.texi: Correct references to CFLAGS, replacing them
12965         with BOOT_CFLAGS.  Document flags used during bootstrap for
12966         target libraries.
12967                                 
12968 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12970         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
12971         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
12972         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
12973         insn constraint.
12974         (smin<mode>3): Ditto from similar patterns.
12975         (smax<mode>3): Ditto.
12976         (*ieee_smin<mode>3): Ditto.
12977         (*ieee_smax<mode>3): Ditto.
12978         * config/i386/sse.md (sse): New mode attribute.
12979         (mov<mode>): Macroize expander from movv4sf and movv2df using
12980         SSEMODEF2P mode iterator.
12981         (<sse>_movnt<mode>): Ditto from similar patterns. Use
12982         SSE_VEC_FLOAT_MODE_P as insn constraint.
12983         (storent<mode>): Ditto.
12984         (storent<mode>): Macroize expander from storentsf and storentdf using
12985         MODEF mode iterator.
12986         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
12987         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
12988         (abs<mode>2): Ditto from similar patterns.
12989         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
12990         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
12991         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
12992         (<sse>_vmsqrt<mode>2): Ditto.
12993         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
12994         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
12995         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
12996         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
12997         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
12998         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
12999         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13000         insn constraint.
13001         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13002         iterator and SSE_FLOAT_MODE_P as insn constraint.
13003         (<sse>_ucomi): Ditto from similar patterns.
13004         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13005         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13006         SSE_VEC_FLOAT_MODE_P as insn constraint.
13007         (vcond<mode>): Ditto from similar patterns.
13008         (and<mode>3, *and<mode>3): Ditto.
13009         (<sse>_nand<mode>3): Ditto.
13010         (ior<mode>3, *ior<mode>3): Ditto.
13011         (xor<mode>3, *xor<mode>3): Ditto.
13012         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13013         iterator and SSE_FLOAT_MODE_P as insn constraint.
13014         (*nand<mode>3): Ditto from similar patterns.
13015         (*ior<mode>3): Ditto.
13016         (*xor<mode>3): Ditto.
13018 2008-02-20  Ira Rosen  <irar@il.ibm.com>
13020         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13021         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13022         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13024 2008-02-19  Jan Hubicka  <jh@suse.cz>
13026         * predict.c (tree_bb_level_predictions): Remove variable next
13027         mistakely introduced by previous commit.
13029 2008-02-19  Jan Hubicka  <jh@suse.cz>
13031         * predict.c (predict_paths_leading_to): Rewrite.
13032         (predict_paths_for_bb): New.
13033         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13035 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13037         PR bootstrap/35218
13038         * Makefile.in (build_file_translate): New.
13039         (gcc-vers.texi): Use it for translating $(abs_srcdir).
13040         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13041         * configure.ac (build_file_translate): Substitute it.
13042         * configure: Regenerate.
13044 2008-02-19  Jan Hubicka  <jh@suse.cz>
13046         PR rtl-optimization/34408
13047         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13048         invalid sharing.
13050 2008-02-19  Jan Hubicka  <jh@suse.cz>
13052         PR middle-end/28779
13053         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13054         call_expr.
13056 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13058         PR Ada/35186
13059         * config/i386/i386-modes.def: Revert the last DI alignment
13060         change until Ada people can look into it.
13062 2008-02-19  Nick Clifton  <nickc@redhat.com>
13064         * opts.c (print_specific_help): Fix typo in --help text.
13066 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
13068         PR target/35239
13069         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13070         32-bit inline asm without asm alternatives for host GCC < 3.0.
13072 2008-02-19  Richard Guenther  <rguenther@suse.de>
13074         PR tree-optimization/34989
13075         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13076         Allow propagation to INDIRECT_REF if we can simplify only.
13078 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13080         * c-common.c (warn_for_collisions_1): Use appropriate option when
13081         warning.
13083 2008-02-19  Nick Clifton  <nickc@redhat.com>
13085         PR other/31349
13086         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13087         (handle_options): Fix indentation.
13088         (print_filtered_help): If no language-specific options were
13089         displayed tell the user how to list all the options supported by
13090         the language's front-end.
13091         (print_specific_help): Fix indentation and remove duplicate line.
13092         (common_handle_option): Handle the -v option.
13093         For --help enable the display of undocumented options if the -v
13094         switch has been included on the command line.
13095         For --help= check for overlaps in the arguments between the option
13096         classes and the language names and issue a warning when they
13097         cannot be disambiguated.
13098         * c.opt (v): Pass on to the common option handler.
13100 2008-02-19  Revital Eres  <eres@il.ibm.com> 
13102         * modulo-sched.c (sms_schedule): Change dump message when
13103         create_ddg function fails.
13104         (try_scheduling_node_in_cycle): Rename row to cycle.
13105         (print_partial_schedule): Rename CYCLE to ROW.
13107 2008-02-19  Christian Bruel  <christian.bruel@st.com>
13108             Zdenek Dvorak  <ook@ucw.cz>
13110         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13112 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13114         PR target/33555
13115         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13116         (*x86_movdicc_0_m1_se): Ditto.
13118 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13120         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13121         (CMPtype): Define as __gcc_CMPtype.
13122         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13123         (CMPtype): Define as __gcc_CMPtype.
13125 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
13127         Support valgrind 3.3 for --enable-checking=valgrind.
13128         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13129         here.
13130         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13131         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13132         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13133         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13134         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13135         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13136         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13137         respectively.
13138         * ggc-zone.c: Similar.
13139         * ggc-page.c: Similar.
13141 2008-02-19  Paul Brook  <paul@codesourcery.com>
13143         PR target/35071
13144         * config/arm/ieee754-df.S: Fix do_it typo.
13145         * config/arm/ieee754-sf.S: Fix do_it typo.
13147 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13149         PR target/35189
13150         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13151         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13152         (OPTION_MASK_ISA_SSE_SET): Likewise.
13153         (OPTION_MASK_ISA_SSE2_SET): Likewise.
13154         (OPTION_MASK_ISA_SSE3_SET): Likewise.
13155         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13156         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13157         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13158         (OPTION_MASK_ISA_SSE4_SET): Likewise.
13159         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13160         (OPTION_MASK_ISA_SSE5_SET): Likewise.
13161         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13162         (OPTION_MASK_ISA_MMX_UNSET): Updated.
13163         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13164         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13165         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13166         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13167         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13168         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13169         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13170         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13171         (OPTION_MASK_ISA_SSE4): Removed.
13172         (ix86_handle_option): Turn on bits in ix86_isa_flags and
13173         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13174         (override_options): Don't turn on implied SSE/MMX bits in
13175         ix86_isa_flags.
13177 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13179         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13180         32bit host.
13182 2008-02-18  Joey Ye  <joey.ye@intel.com>
13184         PR middle-end/34921
13185         * tree-nested.c (insert_field_into_struct): Set type alignment
13186         to field alignment if the former is less than the latter.
13188 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
13190         * BASE-VER: Set to 4.4.0.
13192 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13194         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13195         * doc/cfg.texi: Likewise.
13196         * doc/extend.texi: Likewise.
13197         * doc/gty.texi: Likewise.
13198         * doc/invoke.texi: Likewise.
13199         * doc/loop.texi: Likewise.
13200         * doc/md.texi: Likewise.
13201         * doc/passes.texi: Likewise.
13202         * doc/rtl.texi: Likewise.
13203         * doc/sourcebuild.texi: Likewise.
13204         * doc/tm.texi: Likewise.
13205         * doc/tree-ssa.texi: Likewise.
13207 2008-02-17  Richard Guenther  <rguenther@suse.de>
13209         PR middle-end/35227
13210         * tree-complex.c (init_parameter_lattice_values): Handle parameters
13211         without default definition.
13213 2008-02-17  Richard Guenther  <rguenther@suse.de>
13215         PR tree-optimization/35231
13216         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13217         if A | B != 1.
13219 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
13221         Revert:
13222         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
13223         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13224         libgcc_cmp_return mode.
13226 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13228         PR c/28368
13229         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13231 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
13233         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13234         multilibs.
13236 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13238         * doc/c-tree.texi: Use `@.' where appropriate.
13239         * doc/extend.texi: Likewise.
13240         * doc/install.texi: Likewise.
13241         * doc/invoke.texi: Likewise.
13242         * doc/loop.texi: Likewise.
13243         * doc/makefile.texi: Likewise.
13244         * doc/md.texi: Likewise.
13245         * doc/passes.texi: Likewise.
13246         * doc/standards.texi: Likewise.
13247         * doc/tm.texi: Likewise.
13249 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13251         PR middle-end/35196
13252         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13253         in entry_bb.
13254         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13255         rather than in entry_bb.
13257 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13259         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13260         libgcc_cmp_return mode.
13262 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13264         PR middle-end/35130
13265         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13266         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13268 2008-02-15  Richard Guenther  <rguenther@suse.de>
13269             Zdenek Dvorak  <ook@ucw.cz>
13271         PR tree-optimization/35164
13272         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13273         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13274         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13275         Only propagate addresses which do not have abnormal SSA_NAMEs
13276         in their operands.
13278 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
13280         PR target/35088
13281         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13283 2008-02-15  Jan Hubicka  <jh@suse.cz>
13285         PR middle-end/35149
13286         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13288 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13290         PR middle-end/34621
13291         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13292         when calculating alignment_pad.
13294 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13296         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13297         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13298         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13299         and STACK_BOUNDARY define.
13301 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
13303         PR preprocessor/35061
13304         * c-pragma.c (handle_pragma_pop_macro): Check that
13305         pushed_macro_table has been allocated.
13307 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13309         PR middle-end/35136
13310         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13311         (force_gimple_operand): Likewise.
13312         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13313         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13314         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13315         (find_interesting_uses_address): Check addressability and alignment
13316         of the base expression only after substituting bases of IVs into it.
13318 2008-02-14  Michael Matz  <matz@suse.de>
13320         PR target/34930
13321         * function.c (instantiate_virtual_regs_in_insn): Reload address
13322         before falling back to reloading the whole operand.
13324 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13326         * config/s390/s390.c (s390_mainpool_start): Emit the pool
13327         before the first section switch note.
13329 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13331         * doc/bugreport.texi: Update copyright years.
13332         * doc/c-tree.texi: Likewise.
13333         * doc/cfg.texi: Likewise.
13334         * doc/cpp.texi: Likewise.
13335         * doc/cppinternals.texi: Likewise.
13336         * doc/fragments.texi: Likewise.
13337         * doc/frontends.texi: Likewise.
13338         * doc/gcc.texi: Likewise.
13339         * doc/gty.texi: Likewise.
13340         * doc/hostconfig.texi: Likewise.
13341         * doc/implement-c.texi: Likewise.
13342         * doc/libgcc.texi: Likewise.
13343         * doc/loop.texi: Likewise.
13344         * doc/makefile.texi: Likewise.
13345         * doc/options.texi: Likewise.
13346         * doc/passes.texi: Likewise.
13347         * doc/rtl.texi: Likewise.
13348         * doc/sourcebuild.texi: Likewise.
13349         * doc/standards.texi: Likewise.
13350         * doc/tree-ssa.texi: Likewise.
13351         * doc/trouble.texi: Likewise.
13353         * doc/extend.texi: Use @: or add comma where appropriate.
13354         * doc/invoke.texi: Likewise.
13355         * doc/tm.texi: Likewise.
13357 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
13359         PR target/34393
13360         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13361         to a reg.
13363 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
13365         * doc/md.texi (clz, ctz): Add reference.
13366         * doc/rtl.texi (clz, ctz): Likewise.
13368 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13370         PR other/35148
13371         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13372         srcdir.
13374 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
13376         * config/s390/s390.c (struct constant_pool): New field
13377         emit_pool_after added.
13378         (s390_mainpool_start): Set the emit_pool_after flag according
13379         to the section switch notes.
13380         (s390_mainpool_finish): Consider emit_pool_after when emitting
13381         the literal pool at the end of the function.
13382         (s390_chunkify_start): Force literal pool splits at section
13383         switch notes.
13385 2008-02-13  Michael Matz  <matz@suse.de>
13387         PR debug/35065
13388         * var-tracking.c (clobber_variable_part): Correctly traverse the
13389         list.
13391 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13393         PR 29673
13394         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13395         Add -fdump-ipa-inline.
13396         * tree-dump.c (dump_files): Remove tree-inlined dump.
13397         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13398         
13399 2008-02-12  Richard Guenther  <rguenther@suse.de>
13401         PR tree-optimization/35171
13402         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13403         default defs.
13405 2008-02-12  Richard Guenther  <rguenther@suse.de>
13407         PR middle-end/35163
13408         * fold-const.c (fold_widened_comparison): Use get_unwidened in
13409         value-preserving mode.  Disallow final truncation.
13411 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13413         PR middle-end/35136
13414         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13415         code from here to...
13416         (force_gimple_operand): ...here.
13418 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
13420         PR c++/35144
13421         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13422         non-compatible pointers.
13423         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13424         different FIELD_DECLs, try harder by comparing field offsets, sizes
13425         and types.
13427         PR inline-asm/35160
13428         * function.c (match_asm_constraints_1): Don't replace the same input
13429         multiple times.
13431 2008-02-12  Anatoly Sokolov <aesok@post.ru>
13433         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13434         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13435         (expand_epilogue): Restore RAMPZ register.
13436         * config/avr/avr.md (RAMPZ_ADDR): New constant.
13438 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
13440         * config/i386/cygwin.asm: (__alloca): Correct calling
13441         convention and alignment.
13442         (__chkstk): Force 8 byte stack alignment.
13444 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
13445             Richard Guenther  <rguenther@suse.de>
13447         PR tree-optimization/33992
13448         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13449         the zero we compare against.
13451 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
13453         PR libfortran/35063
13454         * gthr-win32.h (__gthread_mutex_destroy_function): New function
13455         to CloseHandle after unlocking to prevent accumulation of handle
13456         count.
13458 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13460         PR middle_end/34150
13461         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13462         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
13463         and update LABEL_NUSES during and after reload.
13465 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13467         PR middle-end/34627
13468         * combine.c (simplify_if_then_else): Make sure the comparison is
13469         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13471 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13473         PR bootstrap/35051
13474         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13475         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13476         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13477         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13478         * tree.h (get_type_static_bounds): Likewise.
13480 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13482         * doc/invoke.texi (Option Summary, C++ Dialect Options)
13483         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13484         Make -Wfoo language annotations match what the compiler outputs.
13486 2008-02-08  Sa Liu  <saliu@de.ibm.com>
13488         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
13489         intrinsics spu_convts, spu_convtu, spu_convtf.
13491 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
13493         * doc/extend.texi (Function Attributes) <noinline>: Mention
13494         asm ("") as method to keep calls.
13496 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13498         PR other/32754
13499         * doc/options.texi (Options): Replace references to opts.sh with
13500         optc-gen.awk.
13501         * opts-common.c: Likewise.
13502         * optc-gen.awk: Likewise.
13503         
13504 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13506         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13508 2008-02-07  Richard Henderson  <rth@redhat.com>
13510         PR rtl-opt/33410
13511         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13512         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
13513         funny mode.
13515 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
13517         PR tree-optimization/35085
13518         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13519         for operand entry oe2 in addition to operand entry oe3 in order to
13520         expose more opportunities for vectorizer sum reduction.
13522 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13524         PR other/35107
13525         * Makefile.in (LIBS): Remove $(GMPLIBS).
13526         (cc1-dummy, cc1): Add $(GMPLIBS).
13528 2008-02-06  Jan Hubicka  <jh@suse.cz>
13530         PR target/23322
13531         * i386.md (moddf_integer): Do not produce partial memory stalls for
13532         targets where it hurts.
13534 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
13536         PR target/35083
13537         * optabs.c (expand_float): Do not check for decimal modes when
13538         expanding unsigned integer through signed conversion.
13540 2008-02-06  Nick Clifton  <nickc@redhat.com>
13542         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13543         inside the clobber with a match_operand and duplicated operand
13544         number in the constraint.
13545         (ineqbranchsi): Delete redundant comment.
13547 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
13549         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
13550         builtin_define ("__USE_INIT_FINI__").
13551         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13552         -msx multilibs.
13553         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13555 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13557         PR documentation/30330
13558         * doc/invoke.texi (C++ Dialect Options)
13559         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13560         For each warning option -Wfoo that allows -Wno-foo, ensure both
13561         -Wfoo and -Wno-foo are listed in the option index.  Fix index
13562         entry of -Wswitch-default, index -Wnormalized= including the
13563         `=', and -Wlarger-than-@var{len} including @var{len}.
13565 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13567         * config/i386/i386.md (floatunssisf2): Use
13568         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13569         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13570         Macroize expander using MODEF mode iterator.
13572 2008-02-05  Diego Novillo  <dnovillo@google.com>
13574         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13576         PR 33738
13577         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13579 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13581         PR other/35070
13582         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13584 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
13586         PR target/35084
13587         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13588         to indicate if a message should be generated.
13589         (init_cumulative_args): Updated.
13590         (function_value_32): Likewise.
13592 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
13594         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13596 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13598         PR target/35083
13599         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13600         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13602 2008-02-04  Diego Novillo  <dnovillo@google.com>
13604         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13606         PR 33738
13607         * tree-vrp.c (vrp_evaluate_conditional): With
13608         -Wtype-limits, emit a warning when comparing against a
13609         constant outside the natural range of OP0's type.
13611 2008-02-04  Richard Guenther  <rguenther@suse.de>
13613         PR middle-end/33631
13614         * expr.c (count_type_elements): Give for unions instead of
13615         guessing.
13617 2008-02-04  Richard Guenther  <rguenther@suse.de>
13619         PR middle-end/35043
13620         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13621         to TYPE_DOMAINs base type instead of using bitsizetype here.
13623 2008-02-03  Jason Merrill  <jason@redhat.com>
13625         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13627 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13629         PR other/29972
13630         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13631         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13632         (RS/6000 and PowerPC Options): Fix typos and markup.
13633         * doc/passes.texi (Tree-SSA passes): Likewise.
13635 2008-02-02  Michael Matz  <matz@suse.de>
13637         PR target/35045
13638         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13639         from record_last_reg_set_info.
13640         (record_last_reg_set_info): Take an RTX argument, iterate over all
13641         constituent hardregs.
13642         (record_last_set_info, record_opr_changes): Change calls to
13643         new signature or to record_last_reg_set_info_regno.
13645 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13647         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13649 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
13651         PR rtl-optimization/34773
13652         * reg-notes.def (EQUAL): Mention significance of combination of
13653         REG_EQUAL and REG_RETVAL.
13654         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13655         insn that has a REG_RETVAL.
13657 2008-02-01  Roger Sayle  <roger@eyesopen.com>
13659         PR bootstrap/33781
13660         * configure.ac (--enable-fixed-point): Disable unless explicitly
13661         requested on IRIX.
13662         * configure: Regenerate.
13664 2008-02-01  Richard Guenther  <rguenther@suse.de>
13666         PR other/35042
13667         * invoke.texi (-finline-limit): Remove no longer true parts
13668         of the documentation.  Note that there is no default value.
13670 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
13671             Mark Mitchell  <mark@codesourcery.com>
13672             Ben Elliston  <bje@au.ibm.com>
13674         PR c/29326
13675         * doc/extend.texi (Other Builtins): Document.
13677 2008-01-31  Tom Browder <tom.browder@gmail.com>
13679         * doc/c-tree.texi (Types): Fix grammar.
13680         (Expression trees): Ditto.
13681         * doc/passes.texi (Tree-SSA passes): Ditto.
13682         
13683         * doc/configterms.texi (Configure Terms): Fix typo.
13684         * doc/cpp.texi (Common Predefined Macros): Ditto.
13685         * doc/md.texi (Machine Constraints): Ditto.
13686         
13687         * doc/makefile.texi (Makefile): Add comma.
13689 2008-01-31  Tom Browder  <tom.browder@gmail.com>
13690             Gerald Pfeifer  <gerald@pfeifer.com>
13691         
13692         * doc/sourcebuild.texi (Front End): Remove references to CVS
13693         and CVSROOT/modules.
13694         (Texinfo Manuals): Replace reference to CVS by one to SVN.
13695         (Back End): Remove reference to CVS.
13697 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13699         PR target/34900
13700         * config/mips/mips.c (gen_load_const_gp): New function, taking a
13701         comment from...
13702         (mips16_gp_pseudo_reg): ...here.
13703         * config/mips/mips.md (load_const_gp): Replace with...
13704         (load_const_gp_<mode>): ...this :P-based insn.
13706 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13708         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
13709         options. Minor fixes.
13710         (-std): Move reference to standards closer to where language
13711         standards are first mentioned.
13712         
13713 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13715         PR rtl-optimization/34995
13716         * reload.c (alternative_allows_const_pool_ref): Take an rtx
13717         parameter and return a bool.  If the rtx parameter is nonnull,
13718         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
13719         (find_reloads): Update call accordingly.  Pass the new operand
13720         if it needed no address reloads, otherwise pass null.
13722 2008-01-30  Richard Henderson  <rth@redhat.com>
13724         PR c/34993
13725         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
13726         for unbounded arrays.
13728 2008-01-30  Silvius Rus  <rus@google.com>
13730         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
13732 2008-01-30  Jan Hubicka  <jh@suse.cz>
13734         PR target/34982
13735         * i386.c (init_cumulative_args): Use real function declaration when
13736         calling locally.
13738 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
13740         PR rtl-optimization/34998
13741         * global.c (build_insn_chain): Treat non-subreg_lowpart
13742         SUBREGs of pseudos as clobbering all the words covered by the
13743         SUBREG, not just all the bytes.
13744         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
13745         original df_ref rather than an extract parameter.
13746         (global_conflicts): Update call accordingly.
13748 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
13750         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
13751         the overflow check to make it easier to read.
13752         (__fixtfdi): Change the type of the ll member in union
13753         long_double to UDItype_x.
13755 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
13757         PR middle-end/34969
13758         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
13759         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
13760         * tree-inline.c (fold_marked_statements): Call
13761         cgraph_update_edges_for_call_stmt if folding a call statement.
13762         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
13763         debug_generic_stmt calls, reset it back afterwards.
13765         PR c/35017
13766         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
13767         static decls.
13768         * c-typeck.c (build_external_ref): Don't pedwarn about
13769         static vars in current function's scope.
13771 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
13773         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
13775 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
13777         PR c/35002
13778         * ipa-struct-reorg.c: Fix spelling.
13779         * params.def: Ditto.
13781 2008-01-29  Richard Guenther  <rguenther@suse.de>
13783         PR middle-end/35006
13784         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
13785         field.
13786         * tree-inline.c (remap_type): Increment remapping_type_depth
13787         around remapping types.
13788         (copy_body_r): Only add referenced variables if they are referenced
13789         from code, not types.
13791 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
13793         PR c++/34055
13794         PR c++/34103
13795         PR c++/34219
13796         PR c++/34606
13797         PR c++/34753
13798         PR c++/34754
13799         PR c++/34755
13800         PR c++/34919
13801         PR c++/34961
13802         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
13803         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
13805 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
13807         PR target/34412
13808         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
13809         pointer for tiny stack.
13811 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13813         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
13815 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13817         * config/vx-common.h: Fix typo in comment.
13819 2008-01-28  Ian Lance Taylor  <iant@google.com>
13821         PR c++/34862
13822         PR c++/33407
13823         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13824         coalesce pointers if they have different DECL_NO_TBAA_P values.
13825         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
13826         between variables with different DECL_NO_TBAA_P values.
13828 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
13830         PR 31535
13831         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
13832         are not legitimate small data references on SPE targets.
13834 2008-01-28  David Daney  <ddaney@avtrex.com>
13836         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
13838 2008-01-28  David Daney  <ddaney@avtrex.com>
13840         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
13842 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
13844         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
13845         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
13846         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
13847         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
13848         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13849         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
13850         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
13851         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
13853 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13855         * basic-block.h (condjump_equiv_p): Fix comment.
13857 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13859         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
13860         print_generic_stmt_indented): Fix comment.
13862 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13864         * configure.ac (__stack_chk_fail): Add detecion for availability
13865         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
13866         * configure: Regenerate.
13868 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
13870         PR middle-end/34688
13871         * final.c (output_addr_const): Handle TRUNCATE.
13873 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
13875         PR target/34711
13876         * tree-ssa-loop-ivopts.c (comp_cost): New type.
13877         (zero_cost, infinite_cost): New constants.
13878         (struct cost_pair): Change type of cost to comp_cost.
13879         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
13880         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
13881         New functions.
13882         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
13883         split_address_cost, ptr_difference_cost, difference_cost,
13884         get_computation_cost_at, get_computation_cost,
13885         determine_use_iv_cost_generic, determine_use_iv_cost_address,
13886         determine_use_iv_cost_condition, determine_use_iv_costs,
13887         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
13888         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
13889         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
13890         Change type of cost to comp_cost.
13891         (determine_iv_cost): Increase cost of non-original ivs, instead
13892         of decreasing the cost of original ones.
13893         (get_address_cost): Indicate the complexity of the addressing mode 
13894         in comp_cost.
13895         (try_add_cand_for): Prefer using ivs not specific to some object.
13896         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
13898 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
13899             Janis Johnson  <janis187@us.ibm.com>
13901         PR target/34814
13902         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
13903         (TARGET_INSTANTIATE_DECLS): Likewise.
13904         * target.h (expand_to_rtl_hook): New target hook.
13905         (instantiate_decls): Likewise.
13906         * function.c (instantiate_decl): Make non-static.  Rename to...
13907         (instantiate_decl_rtl): ... this.
13908         (instantiate_expr): Use instantiate_decl_rtl.
13909         (instantiate_decls_1): Likewise.
13910         (instantiate_decls): Likewise.
13911         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
13912         * function.h (instantiate_decl_rtl): Add prototype.
13913         * cfgexpand.c (target.h): New include.
13914         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
13915         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
13916         (TARGET_INSTANTIATE_DECLS): Likewise.
13917         (TARGET_INITIALIZER): New target hooks added.
13918         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
13919         New prototype.
13920         * config/rs6000/rs6000.c (tree-flow.h): New include.
13921         (machine_function): Add sdmode_stack_slot field.
13922         (rs6000_alloc_sdmode_stack_slot): New function.
13923         (rs6000_instantiate_decls): Likewise.
13924         (rs6000_secondary_memory_needed_rtx): Likewise.
13925         (rs6000_check_sdmode): Likewise.
13926         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
13927         (TARGET_INSTANTIATE_DECLS): Likewise.
13928         (rs6000_hard_regno_mode_ok): Allow SDmode.
13929         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
13930         (rs6000_emit_move): Handle SDmode.
13931         (function_arg_advance): Likewise.
13932         (function_arg): Likewise.
13933         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
13934         SDmode var args for 32-bit compiles.
13935         (rs6000_secondary_reload_class): Handle SDmode.
13936         (rs6000_output_function_epilogue): Likewise.
13937         (rs6000_function_value): Simplify if statement.
13938         (rs6000_libcall_value): Likewise.
13939         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
13940         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
13941         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
13942         (movsd_hardfloat): New define_insn.
13943         (movsd_softfloat): Likewise.
13944         (movsd_store): Likewise.
13945         (movsd_load): Likewise.
13946         (extendsddd2): Likewise.
13947         (extendsdtd2): Likewise.
13948         (truncddsd2): Likewise.
13949         (movdd_hardfloat64): Fixup comment.
13950         (UNSPEC_MOVSD_LOAD): New constant.
13951         (UNSPEC_MOVSD_STORE): Likewise.
13953 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
13955         PR c++/34965
13956         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
13957         TRUTH_XOR_EXPR.
13958         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
13959         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
13960         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
13961         and TRUTH_XOR_EXPR.
13963 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
13965         PR target/34794
13966         * config.gcc: Separate AIX 5.3 from AIX 6.1.
13967         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13968         __LONGDOUBLE128 too.
13969         * config/rs6000/aix61.h: New file.
13971 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13973         PR rtl-optimization/34959
13974         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
13975         popcount and parity rtxes the same mode as their operand.
13976         Truncate or extend the result to the return value's mode
13977         if necessary.
13979 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13981         PR target/34981
13982         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
13983         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
13984         to GOT_VERSION_REGNUM.
13985         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
13986         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
13987         * config/mips/mips.c (mips_emit_call_insn): New function.
13988         (mips_call_tls_get_addr): Call mips_expand_call directly.
13989         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
13990         emit_call_insn.
13991         (mips16_build_call_stub): Likewise.  Return the call insn or null.
13992         (mips_expand_call): Update the call to mips16_build_call_stub
13993         accordingly and a remove redundant condition.  Assert that MIPS16
13994         stubs do not use lazy binding.  Use mips_emit_call_insn and return
13995         the call insn.
13996         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
13997         TARGET_USE_GOT.
13998         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
13999         (mips_avoid_hazard): Remove hazard_set handling.
14000         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14001         (UNSPEC_RESTORE_GP): ...this.
14002         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14003         (FAKE_CALL_REGNO): Rename to...
14004         (GOT_VERSION_REGNUM): ...this.
14005         (type): Add "ghost" value.  Add an associated insn reservation.
14006         (hazard_set): Remove.
14007         (exception_receiver): Rename to...
14008         (restore_gp): ...this and update the unspec identifier accordingly.
14009         (exception_receiver, nonlocal_got_receiver): New expanders.
14010         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
14011         FAKE_CALL_REGNO.  Remove hazard_set attribute.
14012         (set_got_version, update_got_version): New patterns.
14014 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
14016         PR target/34970
14017         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14019 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14021         PR other/31955
14022         * doc/install.texi2html: Generate gcc-vers.texi.
14024 2008-01-25  DJ Delorie  <dj@redhat.com>
14026         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14028 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14030         * config/c4x: Remove directory.
14031         * config.gcc (crx-*, mt-*): Mark obsolete.
14032         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14033         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14034         sh-*-rtemscoff*): Remove cases.
14035         * defaults.h (C4X_FLOAT_FORMAT): Remove.
14036         * real.c (encode_c4x_single, decode_c4x_single,
14037         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14038         c4x_extended_format): Remove.
14039         * real.h (c4x_single_format, c4x_extended_format): Remove.
14040         * doc/extend.texi (interrupt, naked): Remove mention of attributes
14041         on C4x.
14042         (Pragmas): Remove comment about c4x pragmas.
14043         * doc/install.texi (c4x): Remove target-specific instructions.
14044         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14045         * doc/md.texi (Machine Constraints): Remove C4x documentation.
14046         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14047         refer to C4x source files as examples.
14048         (C4X_FLOAT_FORMAT): Remove documentation.
14050 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14052         * config/bfin/bfin.c (override_options): Reorder tests so that
14053         flag_pic gets enabled for -msep-data.
14055 2008-01-25  Richard Guenther  <rguenther@suse.de>
14057         PR middle-end/32244
14058         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14059         to its bitfield precision if required.
14061 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14063         PR middle-end/33880
14064         * tree-nested.c (walk_omp_for): New function.
14065         (convert_nonlocal_reference, convert_local_reference): Call
14066         walk_omp_for on OMP_FOR.
14067         (convert_call_expr): Call walk_body on OMP_FOR's
14068         OMP_FOR_PRE_INIT_BODY.
14070 2008-01-25  Richard Guenther  <rguenther@suse.de>
14072         PR tree-optimization/34966
14073         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14074         default defs and PHI_NODEs we have to insert after the
14075         defining statement.
14077 2008-01-24  Nick Clifton  <nickc@redhat.com>
14079         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14080         Provide a default definition.
14081         (LIBGCC2_UNITS_PER_WORD): Likewise.
14083         * config/stormy16/stormy16.c: Include df.h for the prototype
14084         for df_regs_ever_live_p.
14085         (xstormy16_expand_builtin_va_start): Convert the stack offset
14086         into a component_ref and then use POINTER_PLUS_EXPR to add it
14087         to the incoming_virtual_args_rtx.
14088         (xstormy16_gimplify_va_arg_expr): Rename to
14089         xstormy16_gimplify_va_arg_expr.
14090         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14091         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14092         xstormy16_gimplify_va_arg_expr.
14093         Fix up some formatting issues.
14095         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14096         Move to predicates.md.
14097         (xs_hi_general_operand): Likewise.
14098         (xs_hi_nonmemory_operand): Likewise.
14099         * config/stormy16/predicates.md:
14100         (xstormy16_carry_plus_operand): New predicate.
14101         (xs_hi_general_operand): New predicate.
14102         (xs_hi_nonmemory_operand): New predicate.
14103         * config/stormy16/stormy16-protos.h:
14104         (xstormy16_carry_plus_operand): Delete prototype.
14105         (xs_hi_general_operand): Likewise.
14106         (xs_hi_nonmemory_operand): Likewise.
14108         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14109         modifiers as they are no longer needed and they can trigger
14110         reload spill failures.
14112         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14113         with a match_operand in order to help reload.
14115         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14116         constraint with 'e' for the 8th alternative as this version of
14117         the mov.w instruction only accepts the lower 8 registers.
14119 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
14121         PR target/34856
14122         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14123         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14124         vector elements.
14126 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14128         PR middle-end/33333
14129         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14131 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14133         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14134         New functions.
14135         (remove_structure): Update allocations list before removing structure.
14136         
14137 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14139         * ipa-struct-reorg.c (is_safe_cond_expr, 
14140         create_new_stmts_for_cond_expr): Use integer_zerop function,
14141         that recognize not only zero-pointer, but zero-integer too.
14143 2008-01-25  Ben Elliston  <bje@au.ibm.com>
14145         PR other/22232
14146         * fixproto: Escape "." in sed expression that strips leading "./".
14148 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14150         PR driver/34904
14151         * gcc.c (SWITCH_OK): Removed.
14152         (SWITCH_LIVE): Changed to bit.
14153         (SWITCH_FALSE): Likewise.
14154         (SWITCH_IGNORE): Likewise.
14155         (switchstr): Change live_cond to unsigned int.
14156         (process_command): Replace SWITCH_OK with 0.
14157         (do_self_spec): Likewise.
14158         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14159         (give_switch): Likewise.
14160         (used_arg): Likewise.
14161         (do_spec_1): Set the SWITCH_IGNORE bit.
14162         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14163         bits.  Set the SWITCH_LIVE bit.
14165 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14167         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14169 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14171         PR tree-optimization/34472
14172         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14173         parameter to a "bool *" and set *DATA to false if there is
14174         an unsafe access.  Do not delete the structure here.
14175         (check_cond_exprs): Delete it here instead.
14176         (check_cond_exprs, exclude_cold_structs): Do not increase
14177         I when removing a structure.
14179 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
14181         PR target/34856
14182         * config/i386/i386.c (ix86_expand_vector_init): Consider only
14183         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14185 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
14187         PR middle-end/34934
14188         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14189         a fixed vector for stack.
14191 2008-01-24  Ben Elliston  <bje@au.ibm.com>
14193         PR c++/25701
14194         * doc/gcc.texi (Software development): Add a direntry for g++.
14195         
14196 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
14198         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14199         stale and straggling -fforce-addr comments above.
14201         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14202         define.
14203         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14204         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14206 2008-01-23  Michael Matz  <matz@suse.de>
14208         PR debug/34895
14209         * dwarf2out.c (force_type_die): Use modified_type_die instead of
14210         gen_type_die.
14212 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14214         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14215         malloc result type.
14217 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14219         * config/avr/avr.c (avr_current_arch): New variable.
14220         (avr_arch_types): Add 'avr31' and 'avr51' entries.
14221         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14222         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14223         (avr_override_options): Init 'avr_current_arch'. 
14224         (base_arch_s): Move from here...
14225         * config/avr/avr.h (base_arch_s): ... here. Add new members 
14226         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
14227         'mega' to 'have_jmp_call'.
14228         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
14229         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
14230         macros.
14231         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
14232         architectures.
14233         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
14234         MULTILIB_MATCHES): (Ditto.).
14236 2008-01-23  Richard Guenther  <rguenther@suse.de>
14238         PR middle-end/31529
14239         * cgraphunit.c (cgraph_reset_node): Always mark the node
14240         not reachable if it is not queued already.
14242 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14244         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14245         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14246         (cputype_selected): New static variable.
14247         (bfin_handle_option): Set it if -mcpu is used.
14248         (override_option): Select default set of workarounds if no cpu type
14249         selected on the command line.
14250         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14252         From  Michael Frysinger  <michael.frysinger@analog.com>
14253         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14254         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14256         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14257         for bf547, bf523, bf524, and bf526.
14258         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
14259         bf526.
14260         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14261         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14262         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14263         __ADSPBF547__ and __ADSPBF54x__ for bf547.
14264         * doc/invoke.texi (Blackfin Options): Document that
14265         -mcpu now accept bf547, bf523, bf524, and bf526.
14267 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14269         PR rtl-optimization/34628
14270         * combine.c (try_combine): Stop and undo after the first combination
14271         if an autoincrement side-effect on the first insn has effectively
14272         been lost.
14274 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
14276         PR target/34529
14277         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14278         Offset addresses are not valid for Altivec or paired float modes.
14280 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
14282         PR c++/34607
14283         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14284         if DECL_INITIAL (decl) is error_mark_node.
14286         PR c++/34914
14287         * c-common.c (handle_vector_size_attribute): Only allow
14288         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
14289         the same way as pointer, array etc. types.
14290         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14292         PR c++/34917
14293         * tree.c (build_type_attribute_qual_variant): Call
14294         build_qualified_type if attributes are equal, but quals are not.
14296 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14298         PR 32102
14299         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14300         * flags.h (warn_strict_aliasing): Remove.
14301         (warn_strict_overflow): Remove.
14302         * opts.c (warn_strict_aliasing): Remove.
14303         (warn_strict_overflow): Remove.
14304         * c-opts.c (c_common_handle_option): -Wall only sets
14305         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14306         (c_common_post_options): Give default values to -Wstrict-aliasing
14307         and -Wstrict-overflow if they are uninitialized.
14308         * common.opt (Wstrict-aliasing): Specify Var and Init.
14309         (Wstrict-overflow): Likewise.
14311 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14313         PR rtl-optimization/26854
14314         PR rtl-optimization/34400
14315         PR rtl-optimization/34884
14316         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14317         DF_RD->gen.
14318         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14319         (df_rd_bb_info.expanded_lr_out): Deleted
14320         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14321         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
14322         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14323         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14324         Removed code to allocate, initialize or free expanded_lr_out.
14325         (df_rd_bb_local_compute_process_def): Restructured to make more
14326         understandable.
14327         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14328         sets if the sets are being trimmed.
14330 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14332         PR bootstrap/32287
14333         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14334         (as_vers): Likewise.
14335         * configure: Regenerated.
14337 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14339         PR middle-end/33092
14340         * tree-pass.h (pass_build_alias): New pass.
14341         * tree-ssa-alias.c (gate_build_alias): New.
14342         (pass_build_alias): New.
14343         * passes.c (init_optimization_passes): Add pass_build_alias after
14344         pass_create_structure_vars.
14346 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
14348         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14349         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14350         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14351         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14352         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14353         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14354         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14355         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14356         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14357         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14358         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14359         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14360         * config/s390/s390.md (FP_ALL): New mode iterator.
14361         (_d): New mode attribute.
14362         ("*signbit<mode>2>"): Changed mode of first operand.
14363         ("isinf<mode>2"): Changed mode of first operand.
14364         ("*TDC_insn"): Adaptation for DFP modes.
14366 2008-01-22  Ben Elliston  <bje@au.ibm.com>
14368         * tree.c (check_qualified_type): Improve function description.
14370 2008-01-21  Jason Merrill  <jason@redhat.com>
14372         PR c++/34196
14373         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14374         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14375         if it is set.
14377 2008-01-21  DJ Delorie  <dj@redhat.com>
14379         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14380         return zero.
14382 2008-01-21  Richard Guenther  <rguenther@suse.de>
14384         PR middle-end/34856
14385         * tree-cfg.c (verify_expr): Allow all invariant expressions
14386         instead of just constant class ones as reference argument.
14387         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14388         like any other constant.
14389         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14391 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14393         * regmove.c (fixup_match_1): Update call crossed frequencies.
14395 2008-01-21  Richard Guenther  <rguenther@suse.de>
14397         PR c/34885
14398         * tree-inline.c (setup_one_parameter): Deal with mismatched
14399         types using a VIEW_CONVERT_EXPR.
14401 2008-01-21  Alon Dayan  <alond@il.ibm.com>
14402             Olga Golovanevsky  <olga@il.ibm.com>
14403         
14404         PR tree-optimization/34701
14405         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14406         when the structure size is not a power of 2.
14408 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14410         * doc/install.texi: Add doc for --enable-checking=df.
14411         
14412 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14414         PR rtl-optimization/34808
14415         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14417 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14419         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14420         input.
14422 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
14424         PR rtl-optimization/26854
14425         PR rtl-optimization/34400
14426         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14427         DF_RD->gen.
14428         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14429         (df_rd_bb_info.expanded_lr_out): New.
14430         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14431         * loop_iv.c (iv_analysis_loop_init): Ditto.
14432         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14433         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14434         Added code to allocate, initialize or free expanded_lr_out.
14435         (df_rd_bb_local_compute_process_def): Restructured to make
14436         more understandable.
14437         (df_rd_confluence_n): Add code to do nothing with fake edges and
14438         code to no apply invalidate_by_call sets if the sets are being trimmed.
14439         (df_lr_local_finalize): Renamed to df_lr_finalize.
14440         (df_live_local_finalize): Renamed to df_live_finalize.
14442 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14444         PR target/34831
14445         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14446         deciding whether to use reciprocal instructions.
14448 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
14450         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14451         dwarf2out_note_section_used if cold_text_section is NULL.
14453 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
14455         PR gcov-profile/34610
14456         * tree-cfg.c (make_edges): Mark both outgoing edges from
14457         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14458         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14459         from OMP_FOR and OMP_CONTINUE outgoing edges.
14461         * tree-profile.c (tree_profiling): Return early if
14462         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
14463         at the end.
14464         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14465         from cfun to child_cfun.
14466         * function.h (struct function): Add after_tree_profile bit.
14468 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14470         * config/avr/avr.S (_exit): Disable interrupt.
14472 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
14473             Steven Bosscher  <stevenb.gcc@gmail.com>
14475         PR rtl-optimization/26854
14476         PR rtl-optimization/34400
14477         * df-problems.c (df_live_scratch): New scratch bitmap.
14478         (df_live_alloc): Allocate df_live_scratch when doing df_live.
14479         (df_live_reset): Clear the proper bitmaps.
14480         (df_live_bb_local_compute): Only process the artificial defs once
14481         since the order is not important.
14482         (df_live_init): Init the df_live sets only with the variables
14483         found live by df_lr.
14484         (df_live_transfer_function): Use the df_lr sets to prune the
14485         df_live sets as they are being computed.  
14486         (df_live_free): Free df_live_scratch.
14488 2008-01-18  Ian Lance Taylor  <iant@google.com>
14490         * common.opt: Add fmerge-debug-strings.
14491         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14492         flag_merge_debug_strings rather than flag_merge_constants.
14493         * doc/invoke.texi (Option Summary): Mention
14494         -fmerge-debug-strings.
14495         (Debugging Options): Document -fmerge-debug-strings.
14497 2008-01-18  Ian Lance Taylor  <iant@google.com>
14499         PR c++/33407
14500         * tree.h (DECL_IS_OPERATOR_NEW): Define.
14501         (struct tree_function_decl): Add new field operator_new_flag.
14502         * tree-inline.c (expand_call_inline): When inlining a call to
14503         operator new, force the return value to go into a variable, and
14504         set DECL_NO_TBAA_P on that variable.
14505         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14507 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
14509         PR debug/34484
14510         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14511         DWARF2_DEBUGGING_INFO.
14512         (dwarf2out_note_section_used): Ditto.  Add prototype.
14513         (have_multiple_function_sections, text_section_used,
14514         cold_text_section_used, *cold_text_sections): Move declarations
14515         before their uses.
14517 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
14519         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14520         field and add signal_ra.
14521         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14522         assignments to frame state pc.  Move end of stack check after
14523         MD_FALLBACK_FRAME_STATE_FOR.
14524         (uw_update_context_1): Use frame state signal_regs if set, instead
14525         of checking signal_frame flag.
14526         (uw_update_context): Use frame state signal_ra if set.
14527         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14528         * config/xtensa/linux-unwind.h: New file.
14530 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
14532         * modulo-sched.c (get_sched_window): Fix comment typo.
14534 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
14536         PR tree-optimization/34648
14537         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14539 2008-01-17  Anatoly Sokolov <aesok@post.ru>
14541         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14542         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14544 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
14546         PR rtl-optimization/34400
14547         * df-core.c (df_worklist_dataflow_overeager,
14548         df_worklist_dataflow_doublequeue): New functions.
14549         (df_worklist_dataflow): Two different worklist solvers.
14550         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14551         New param.
14553 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14555         PR testsuite/34821
14556         * doc/invoke.texi: Document the dependence on pthread for fopenmp
14557         and ftree-parallelize-loops.
14559 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
14561         PR rtl-optimization/34826
14562         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14564 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14566         * global.c (find_reg): Mark the eh regs as used if necessary.
14567         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14568         * ra.h (struct allocno): no_eh_reg field added.  Changed
14569         no_stack_reg type to bitfield.
14571 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14573         * tree.c (substitute_in_expr): Add missing 'break'.
14575 2008-01-17  Richard Guenther  <rguenther@suse.de>
14577         PR tree-optimization/34825
14578         * tree-ssa-math-opts.c (is_division_by): Do not recognize
14579         x / x as division to handle.
14581 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14583         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14584         "-pthread" is specified.
14585         * pa-hpux11.h (LIB_SPEC): Likewise.
14587 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
14588             Peter Bergner  <bergner@vnet.ibm.com>
14590         PR rtl-optimization/33796
14591         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14593 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14595         PR libgfortran/34699
14596         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14597         static links.
14598         * pa-hpux10.h (LINK_SPEC): Likewise.
14599         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14601 2008-01-16  Richard Guenther  <rguenther@suse.de>
14603         PR middle-end/32628
14604         * fold-const.c (fold_convert_const_int_from_int): Do not
14605         set overflow if that occured only because of a sign extension
14606         change when converting from/to a sizetype with the same
14607         precision and signedness.
14609 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14611         PR debug/34249
14612         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14613         location address to the correct place.  Update copyright year.
14615 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14617         * lambda-code.c (lambda_transform_legal_p): Handle the case of
14618         no dependences in the dependence_relations vector.
14620 2008-01-16  Jan Hubicka  <jh@suse.cz>
14622         PR rtl-optimization/31396
14623         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14624         * cfg.c (dump_reg_info): Print it.
14625         * regs.h (struct reg_info_t): add freq_calls_crossed.
14626         (REG_FREQ_CALLS_CROSSED): New macro.
14627         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14628         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14629         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14630         regmove_optimize): Update call crossed frequencies.
14631         * local-alloc.c (struct qty): Add freq_calls_crossed.
14632         (alloc_qty): Copute freq_calls_crossed.
14633         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14634         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14635         * ra.h (struct allocno): Add freq_calls_crossed.
14637 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14639         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14640         libgomp when compiling with ftree-parallelize-loops.
14641         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14643 2008-01-16  Richard Guenther  <rguenther@suse.de>
14645         PR tree-optimization/34769
14646         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14647         * tree.c (int_cst_value): Instead make this function more
14648         permissive in what it accepts as valid input.  Document this
14649         function always sign-extends the value.
14651 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
14652             Richard Guenther  <rguenther@suse.de>
14654         PR c/34668
14655         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14656         (gimple_fold_indirect_ref_rhs): ... this.
14657         (gimple_fold_indirect_ref): New function with foldings
14658         that preserve lvalueness.
14659         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14660         * tree-flow.h (gimple_fold_indirect_ref): Declare.
14661         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14662         to fold an INDIRECT_REF, fall back to the old use of
14663         fold_indirect_ref_1.
14665 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14667         * tree-data-ref.c (subscript_dependence_tester_1): Call 
14668         free_conflict_function.
14669         (compute_self_dependence): Same.
14671 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14673         PR debug/34249
14674         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14675         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
14676         function global.
14677         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14678         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14679         for DWARF2_UNWIND_INFO targets.
14681 2008-01-16  Richard Guenther  <rguenther@suse.de>
14683         PR c/34768
14684         * c-typeck.c (common_pointer_type): Do not merge inconsistent
14685         type qualifiers for function types.
14687 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14689         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14690         loop_iterator li from previous commit.
14692 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14694         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14696 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14698         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14699         (parallelize_loops): Don't parallelize irreducible components.
14701 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14703         PR c++/24924
14704         * c-opts (c_common_post_options): Do not enable CPP
14705         flag_pedantic_errors by default.
14706         
14707 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
14709         PR rtl-optimization/31944
14710         * cse.c (remove_pseudo_from_table): New function.
14711         (merge_equiv_classes): Use above function to remove pseudo-registers.
14712         (invalidate): Likewise.
14714 2008-01-13  Richard Guenther  <rguenther@suse.de>
14716         PR middle-end/34601
14717         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
14718         instead of TYPE_MODE to deal with calls from expand_one_error_var.
14720 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
14722         * gcse.c (cprop_jump): Call validate_unshare_change instead of
14723         validate_change to unshare the source of the PC set.
14725 2008-01-12  Jan Hubicka  <jh@suse.cz>
14727         PR middle-end/32135
14728         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
14729         references above array bounds.  This might trigger bounds checks for
14730         pointers to arrays.
14732 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14734         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
14735         new_replaceable_dependencies.
14737 2008-01-12  Doug Kwan  <dougkwan@google.com>
14739         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
14740         instead of OPT_Wreturn_type in warning due to ignored return type
14741         qualifiers.
14742         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
14743         options included in -Wextra.
14744         * c.opt: New option -Wignored_qualifiers.
14745         * doc/invoke.texi (Warning Options, -Wextra): Add new option
14746         -Wignore_qualifiers.
14747         (-Wignored-qualifiers): Document.
14748         (-Wreturn-type): Remove description of functionality now handled
14749         by -Wignored-qualifiers.
14751 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
14753         PR ada/33788
14754         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
14755         NOP_EXPR if it is between integral types with the same precision.
14757 2008-01-12  Jan Hubicka  <jh@suse.cz>
14759         PR other/28023
14760         * invoke.texi (max-inline-recursive-depth): Fix default value.
14762 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
14764         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
14765         correct type.
14767 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
14768         
14769         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
14770         
14771 2008-01-11  James E. Wilson  <wilson@specifix.com>
14773         PR target/26015
14774         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
14776 2008-01-11  Anatoly Sokolov <aesok@post.ru>
14778         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
14779         save/restore frame pointer register and don't use 'call-prologues' 
14780         optimization in function with "OS_task" attribute.
14782 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14784         PR middle-end/31309
14785         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
14786         when copying to memory.
14788 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
14790         PR rtl-optimization/30905
14791         * cfgcleanup.c: Include dce.h
14792         (crossjumps_occured): New global variable.
14793         (try_crossjump_bb): Exit loop after finding a fallthru edge.
14794         If something changed, set crossjumps_occured to true.
14795         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
14796         Don't add/remove fake edges to exit here...
14797         (cleanup_cfg): ...but do it here, when crossjumping.
14798         Run a fast DCE when successful crossjumps occured in the latest
14799         iteration of try_optimize_cfg.
14801 2008-01-11  Richard Guenther  <rguenther@suse.de>
14803         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
14804         (struct vn_unary_op_s): Likewise.
14805         (vn_reference_insert): Free old reference on hash collision.
14807 2008-01-10  Raksit Ashok  <raksit@google.com>
14809         PR rtl-optimization/27971
14810         * combine.c (find_split_point): Split PLUS expressions which are
14811         inside a MEM rtx, and whose first operand is complex.
14813 2008-01-10  DJ Delorie  <dj@redhat.com>
14815         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
14816         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
14817         (m32c_hard_regno_ok): Call the underlying function.
14819 2008-01-10  Richard Guenther  <rguenther@suse.de>
14821         PR middle-end/34683
14822         * tree-cfg.c (tree_merge_blocks): Do not go through the
14823         full-blown folding and stmt updating path if we just deal
14824         with virtual operands.
14825         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
14826         test for abnormal SSA_NAMEs.
14828 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
14830         PR middle-end/34641
14831         * reload.c (push_reload): Add assertions.  All constants from
14832         reg_equiv_constant should have been used for replacing the respective
14833         pseudo earlier.
14834         (find_reloads_address): Invoke find_reloads_address_part for
14835         constant taken from the reg_equiv_constant array.
14837 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
14839         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
14840         field (valnum) the first in the struct.  Replace bools with
14841         unit bit fields.
14843 2008-01-10  Richard Guenther  <rguenther@suse.de>
14845         PR tree-optimization/34651
14846         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
14847         types and ordering for masking and converting.
14849 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
14851         PR tree-optimization/34017
14852         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
14853         also for PHI_NODE expressions.
14855 2008-01-09  Jan Hubicka  <jh@suse.cz>
14857         PR tree-optimization/34708
14858         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
14859         based on number of case labels.
14860         (init_inline_once): Remove switch_cost.
14861         * tree-inline.h (eni_weights_d): Remove switch_cost.
14863 2008-01-09  Richard Guenther  <rguenther@suse.de>
14864         Andrew Pinski  <andrew_pinski@playstation.sony.com>
14866         PR middle-end/30132
14867         * gimplify.c (gimplify_cond_expr): Do not create an addressable
14868         temporary if an rvalue is ok or an lvalue is not required.
14870 2008-01-09  Richard Guenther  <rguenther@suse.de>
14872         PR middle-end/34458
14873         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
14874         adjust return type.
14876 2008-01-09  Richard Guenther  <rguenther@suse.de>
14878         PR middle-end/34679
14879         * tree.c (host_integerp): Check for sizetype only if the
14880         type is an integer type.
14882 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
14884         PR debug/26364
14885         * opts.c (decode_options): Disable inlining of functions called
14886         once if not in unit-at-a-time mode.
14888 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
14890         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
14892 2008-01-08  Richard Guenther  <rguenther@suse.de>
14894         PR middle-end/31863
14895         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
14896         out early if the result will be unused.
14898 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14900         PR target/34709
14901         Revert:
14903         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14904         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14905         for TARGET_RECIP.       
14906         
14907 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
14908         
14909         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
14910         for vectorization tuned.
14911         
14912 2008-01-08  Richard Guenther  <rguenther@suse.de>
14914         PR tree-optimization/34683
14915         * tree-ssa-operands.c (operand_build_cmp): Export.
14916         * tree-ssa-operands.h (operand_build_cmp): Declare.
14917         * tree-vn.c (vuses_compare): Remove.
14918         (sort_vuses): Use operand_build_cmp.
14919         (sort_vuses_heap): Likewise.
14920         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
14921         to re-use old VEC if available.  Do not sort already sorted VUSEs.
14922         (vdefs_to_vec): Do not sort already sorted VDEFs.
14924 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14926         PR middle-end/34694
14927         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
14929 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14931         PR target/34702
14932         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
14933         limitations of reciprocal sequences on x86 targets.
14935 2008-01-08  Richard Guenther  <rguenther@suse.de>
14937         PR tree-optimization/34683
14938         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
14940 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
14942         PR target/34622
14943         * config/darwin.c (darwin_mergeable_string_section): Don't use
14944         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
14946 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
14948         PR target/34682
14949         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
14950         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
14951         predicates of op0 and op1 to register_operand.
14952         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
14953         expander using X87MODEF mode iterator.  Change predicates of
14954         op0 and op1 to register_operand.
14955         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
14956         corresponding patterns and macroize using MODEF macro.  Change
14957         predicates of op0 and op1 to register_operand and remove
14958         "m" constraint. Disparage "r" alternative with "!".
14959         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
14960         macroize using X87MODEF macro.  Change predicates of op0 and op1
14961         to register_operand and remove "m" constraint.  Disparage "r"
14962         alternative with "!".
14963         (absneg splitter with memory operands): Remove.
14964         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
14965         patterns and macroize using X87MODEF mode iterator.
14966         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
14967         Change predicate of op1 to register_operand.
14968         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
14969         for memory operands.
14971 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
14973         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
14975 2008-01-07  Richard Guenther  <rguenther@suse.de>
14977         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
14978         fields.
14980 2008-01-07  Richard Guenther  <rguenther@suse.de>
14982         PR tree-optimization/34683
14983         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
14984         VOPs of the needed size to save memory.  Use VEC_quick_push
14985         to save compile-time.
14986         (vdefs_to_vec): Likewise.
14988 2008-01-07  Sa Liu  <saliu@de.ibm.com>
14990         * config/spu/spu.md (divdf3): Genetate inline code for double
14991         division.  The implementation doesn't handle INF or NAN, therefore it
14992         only applies when -ffinite-math-only is given.
14994 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
14996         PR libstdc++/34680
14997         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
14998         * doc/cpp.texi ([Common Predefined Macros]): Document.
15000 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
15002         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15003         order to use commutative addition instead of subtraction.
15005 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15006             Mircea Namolaru  <namolaru@il.ibm.com>
15007             Vladimir Yanovsky  <yanov@il.ibm.com>
15008             Revital Eres  <eres@il.ibm.com>
15010         PR tree-optimization/34263
15011         * tree-outof-ssa.c (process_single_block_loop_latch,
15012         contains_tree_r): New functions.
15013         (analyze_edges_for_bb): Call process_single_block_loop_latch
15014         function to empty single-basic-block latch block if possible.
15016 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15018         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15019         for TARGET_RECIP.
15020         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15022 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15024         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15026 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15028         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15030 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
15032         PR tree-optimization/34618
15033         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15034         flag from T.
15036 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15038         PR target/34673
15039         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15040         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
15041         Update copyright year.
15043         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15044         Update copyright year.
15045         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15046         using NR fixup.
15048 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
15050         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15051         edge does not point to current bb before changing need_assert.
15053 2008-01-04  Richard Guenther  <rguenther@suse.de>
15055         PR middle-end/34029
15056         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15057         for verifying purposes if they are is_gimple_min_invariant.
15059 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
15061         PR tree-optimization/34448
15062         PR tree-optimization/34465
15063         * gimplify.c (gimplify_init_constructor): Add new parameter
15064         notify_temp_creation.  Use it.
15065         (gimplify_modify_expr_rhs): Take volatiles into account when
15066         optimizing constructors.
15067         Do not optimize constructors if gimplify_init_constructor will dump to
15068         memory.
15069         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15070         * gcc.c-torture/compile/pr34448.c: New.
15072 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
15074         PR gcov-profile/34609
15075         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15076         return_slot if result is TREE_ADDRESSABLE.
15078 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
15080         * config/mips/mips.md (sqrt_condition): Tweak comment.
15081         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
15083 2008-01-03  Tom Tromey  <tromey@redhat.com>
15085         PR c/34457
15086         * c-common.c (c_type_hash): Handle VLAs.
15088 2008-01-03  Jan Hubicka  <jh@suse.cz>
15090         PR tree-optimization/31081
15091         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15092         0 when inlining and not inlining to first basic block.
15093         (remap_decl): When var is initialized to 0, don't set default_def.
15094         (expand_call_inline): Set entry_bb.
15095         * tree-inline.h (copy_body_data): Add entry_bb.
15097 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15099         PR c++/34619
15100         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15101         before returning.
15103         PR tree-optimization/29484
15104         * tree-inline.c (inline_forbidden_p_2): New function.
15105         (inline_forbidden_p): Disallow inlining if some static var
15106         has an address of a local LABEL_DECL in its initializer.
15107         * doc/extend.texi (Labels as Values): Document &&foo behaviour
15108         vs. inlining.
15110 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15112         PR tree-optimization/34635
15113         * tree-data-ref.c (add_other_self_distances): Make sure that the
15114         evolution step is constant.
15116 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15118         PR middle-end/34608
15119         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15121 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
15123         * tree-sra.c (scalarize_init): Insert the generate_element_init
15124         statements after the generate_element_zero statements.
15126 2008-01-02  Richard Guenther  <rguenther@suse.de>
15128         PR middle-end/34093
15129         PR middle-end/31976
15130         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15131         for very large number of operands instead of ICEing.
15133 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
15135         PR target/34013
15136         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15137         while stack probing.
15139 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
15141         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15142         in C++0x mode.
15144 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
15146         PR libmudflap/26442
15147         * tree-mudflap.c (mx_register_decls): Guard warning by
15148         !DECL_ARTIFICIAL check.
15150 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
15152         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15153         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15154         sse5_perm<mode>): Fix constraints.