OSDN Git Service

PR rtl-optimization/36006
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
2
3         PR rtl-optimization/36006
4         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
5         temp to op0 in order to avoid invalid rtx sharing.
6
7 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
8
9         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
10         check TREE_INVARIANT.
11         * tree-gimple.c (is_gimple_address): New.
12         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
13         * tree-gimple.h (is_gimple_address): New.
14         * tree.h (decl_address_invariant_p): New.
15         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
16         (build_string): Likewise.
17         (decl_address_invariant_p): New, from is_gimple_invariant_address.
18         (tree_invariant_p_1): Likewise.
19         (save_expr): Use it.
20         (tree_invariant_p): New.
21         (skip_simple_arithmetic): Use it.
22         (stabilize_reference_1): Use it.
23         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
24         simplify.
25         (build1_stat): Drop code to compute TREE_INVARIANT.
26         (build2_stat): Drop code to compute TREE_INVARIANT.
27         (build3_stat): Drop code to compute TREE_INVARIANT.
28         (build4_stat): Drop code to compute TREE_INVARIANT.
29         (build5_stat): Drop code to compute TREE_INVARIANT.
30         (build7_stat): Drop code to compute TREE_INVARIANT.
31         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
32         * tree.h (struct tree_base): Remove invariant_flag.
33         (TREE_INVARIANT): Remove.
34         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
35         (fold_builtin_expect): Check TREE_CONSTANT.
36         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
37         * c-tree.h (c_expr_to_decl): Drop third parameter.
38         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
39         (build_c_cast): Don't set TREE_INVARIANT.
40         (pop_init_level): Don't set TREE_INVARIANT.
41         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
42         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
43         TREE_CONSTANT.
44         (gimplify_init_constructor): Don't set TREE_INVARIANT.
45         (gimplify_addr_expr): Adjust comment.
46         * tree-mudflap.c (mf_build_string):
47         * print-tree.c (print_node): Don't print TREE_INVARIANT.
48         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
49         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
50         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
51         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
52         * langhooks.h (struct lang_hooks): Drop third parameter from
53         expr_to_decl.
54
55 2008-04-23  Richard Guenther  <rguenther@suse.de>
56
57         PR tree-optimization/27799
58         PR tree-optimization/32921
59         PR tree-optimization/32624
60         * tree-ssa-structalias.c (merge_smts_into): Only merge the
61         SMTs aliases and the tag itself into the solution.
62         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
63         merge the points-to solution back into the SMT aliases.
64         (may_alias_p): Use alias_set_subset_of instead of
65         aliases_conflict_p.  A pointer which points to
66         memory with alias set zero may access any variable.
67
68 2008-04-23  Richard Guenther  <rguenther@suse.de>
69
70         * alias.c (alias_set_subset_of): Correctly handle asking
71         if zero is a subset of an alias set with zero child.
72         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
73         (compute_flow_insensitive_aliasing): Correctly walk all
74         pointers.  Do not unnecessarily union sets.
75
76 2008-04-23  Richard Guenther  <rguenther@suse.de>
77
78         PR middle-end/36021
79         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
80
81 2008-04-22  Tomas Bily  <tbily@suse.cz>
82
83         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
84         unreachable case.
85         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
86         NON_LVALUE_EXPR.
87         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
88         * tree-ssa-structalias.c (get_constraint_for): Likewise.
89         * tree-inline.c (estimate_num_insns_1): Likewise.
90         * varasm.c (const_hash_1, compare_constant, copy_constant)
91         (compute_reloc_for_constant, output_addressed_constants): Likewise.
92         * emit-rtl.c (component_ref_for_mem_expr)
93         (set_mem_attributes_minus_bitpos): Likewise.
94         * expr.c (highest_pow2_factor, expand_expr_real_1, )
95         (is_aligning_offset): Likewise.
96         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
97         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
98         * dojump.c (do_jump): Likewise.
99         * builtins.c (get_pointer_alignment, get_memory_rtx)
100         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
101         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
102
103 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
104
105         PR rtl-optimization/36017
106         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
107         expanding the library call.
108
109 2008-04-22  Ian Lance Taylor  <iant@google.com>
110
111         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
112         than size_in_bytes.
113
114 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
115
116         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
117         of LR/CTR moves for Power6.
118
119 2008-04-22  Kenneth Zadeck <zadeck@naturalbridge.com>
120
121         PR middle-end/36003
122         * passes.c (init_optimization_passes): Remove
123         pass_fast_rtl_byte_dce.
124         
125 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
126
127         PR target/29096
128         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
129         builtin functions to generate faster code.
130         (_mm_cvtpu16_ps): Ditto.
131         (_mm_cvtpi32x2_ps): Ditto.
132
133 2008-04-22  Nick Clifton  <nickc@redhat.com>
134
135         * common.opt (ftree-loop-distribution): Add Optimization
136         attribute.
137
138         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
139         (frv_expand_builtin_va_start): Likewise.
140
141         * config/arm/arm.c (thumb_find_work_register): Fix location of
142         argument register count.
143
144 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
145
146         Support scheduling for ColdFire V1 and V3 microarchitecture.
147         Improve scheduling of multiplication instructions.
148
149         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
150         (mac): New instruction attribute.
151         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
152         (m68k_sched_mac): New variable.
153         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
154         Handle cfv1 and cfv3.
155         (max_insn_size): New static variable.
156         (struct _sched_ib): New type.
157         (sched_ib): New static variable.
158         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
159         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
160         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
161         Update.
162         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
163         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
164         new variables.  Update.
165         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
166         Add modeling of cfv3 instruction buffer.  Update.
167         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
168         * config/m68k/m68k.h (TUNE_CFV3): New macro.
169         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
170         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
171         a particular reservation applies to.
172         (type2): Reorganize attribute values.  Rename alu to alu_reg,
173         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
174         to mul_l and mul_w.
175         (cf_ib_*): Simplify description of instruction buffer.
176         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
177         (cf_mem): Split into cf_mem1 and cf_mem2.
178         (cf_v2_move_??): Rename to cfv12_alu_??.
179         (cf_v2_move_l_??): Rename to cfv12_omove_??.
180         (cf_v2_mul_??): Remove reservations.
181         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
182         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
183         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
184         appropriate place.
185         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
186         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
187         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
188         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
189         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
190         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
191         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
192         expansions of the above reservations for instructions of sizes
193         1, 2 and 3 words.
194
195 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
196
197         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
198
199 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
200
201         * coverage.c: Include tree-pass.h.
202         (coverage_counter_alloc): Print da_file_name to the dump file.
203
204 2008-04-21  Kenneth Zadeck <zadeck@naturalbridge.com>
205
206         * sbitmap.c (sbitmap_range_empty_p): New function.
207         * sbitmap.h (sbitmap_range_empty_p): New function.
208         * bitmap.h: Now includes obstack.h.
209
210 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
211             Kenneth Zadeck <zadeck@naturalbridge.com>
212
213         * dbgcnt.def (ra_byte_scan): Added.
214         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
215         when the last hit happens for a counter.  
216         * timevar.def (TV_DF_BYTE_LR): New variable.
217         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
218         * passes.c (pass_fast_rtl_byte_dce): New pass.
219         * fwprop.c (update_df): Added mode to call df_ref_create.
220         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
221         DF_REF_EXTRACT_OFFSET.
222         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
223         DF_BYTE_LR_OUT, df_byte_lr): New macro.
224         (df_mm): New enum.
225         (df_ref_extract): Added mode field.
226         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
227         DF_REF_EXTRACT_OFFSET.
228         (DF_REF_EXTRACT_MODE): New macro.
229         (df_byte_lr_bb_info): New structure.
230         (df_print_byte_regset, df_compute_accessed_bytes, 
231         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
232         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
233         df_byte_lr_simulate_uses,
234         df_byte_lr_simulate_artificial_refs_at_top,
235         df_byte_lr_simulate_artificial_refs_at_end,
236         df_compute_accessed_bytes): New function.
237         (df_ref_create): Add parameter.
238         (df_byte_lr_get_bb_info): New inline function.
239         * df-scan.c (df_ref_record, df_uses_record,
240         df_ref_create_structure): Added mode parameter.
241         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
242         df_defs_record, df_uses_record, df_get_conditional_uses,
243         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
244         df_entry_block_defs_collect, df_exit_block_uses_collect):
245         Added mode parameter to calls to df_ref_record, df_uses_record,
246         df_ref_create_structure.
247         (df_ref_equal_p, df_ref_compare): Added test for modes.
248         (df_ref_create_structure): Added code to set mode.  Renamed
249         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
250         DF_REF_EXTRACT_OFFSET.
251         * df-core.c (df_print_byte_regset): New function.
252         * df-byte-scan.c: New file.
253         * df-problems.c (df_rd_transfer_function): Removed unnecessary
254         calls to BITMAP_FREE.  
255         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
256         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
257         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
258         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
259         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
260         df_byte_lr_local_compute, df_byte_lr_init,
261         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
262         df_byte_lr_transfer_function, df_byte_lr_free, 
263         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
264         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
265         df_byte_lr_simulate_uses,
266         df_byte_lr_simulate_artificial_refs_at_top,
267         df_byte_lr_simulate_artificial_refs_at_end): New function.
268         * dce.c (byte_dce_process_block): New function.
269         (dce_process_block): au is now passed in rather than computed
270         locally.  Changed loops that look at artificial defs to not look
271         for conditional or partial ones, because there never are any.  
272         (fast_dce): Now is able to drive byte_dce_process_block or 
273         dce_process_block depending on the kind of dce being done.
274         (rest_of_handle_fast_dce): Add parameter to fast_dce.
275         (rest_of_handle_fast_byte_dce): New function.
276         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
277         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
278
279 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
280
281         PR fortran/35019
282         * gcc.h: Added fortran options that take arguments to
283         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
284         macros.
285
286 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
287
288         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
289         scalarization if on the LHS and not a full access.
290
291 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
292
293         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
294
295 2008-04-18  Rafael Espindola  <espindola@google.com>
296
297         * tree-vrp.c (find_case_label_index): Fix the binary search.
298         (find_case_label_range): New.
299         (vrp_visit_switch_stmt): Use find_case_label_range.
300         (simplify_switch_using_ranges): Use find_case_label_range.
301
302 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
303
304         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
305         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
306
307 2008-04-18  Tom Tromey  <tromey@redhat.com>
308
309         PR libcpp/15500:
310         * doc/cpp.texi (Implementation-defined behavior): Mention
311         -finput-charset.
312
313 2008-04-18  Ian Lance Taylor  <iant@google.com>
314
315         * fold-const.c (pointer_may_wrap_p): New static function.
316         (fold_comparison): Add another test for pointer overflow.  Use
317         pointer_may_wrap_p to disable some false positives.
318
319 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
320           
321         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
322         (fname_as_string): Match updated cpp_interpret_string prototype.
323         (fix_string_type): Support char16_t* and char32_t*.
324         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
325         derivative) nodes.  Register as builtin if C++0x.
326         (c_parse_error): Support CPP_CHAR{16,32}.
327         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
328         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
329         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
330         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
331         CTI_CHAR32_ARRAY_TYPE>: New elements.
332         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
333         char32_type_node, signed_char32_type_node, char16_array_type_node,
334         char32_array_type_node): New defines.
335         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
336         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
337         (lex_string): Support CPP_STRING{16,32}, match updated
338         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
339         (lex_charconst): Support CPP_CHAR{16,32}.
340         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
341         and CPP_STRING{16,32}.
342
343 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
344
345         PR bootstrap/35457
346         * aclocal.m4: Regenerate.
347         * configure: Regenerate.
348
349 2008-04-18  Jan Hubicka  <jh@suse.cz>
350
351         * except.c (dw2_size_of_call_site_table,
352         sjlj_size_of_call_site_table): Use vector API for call_site_record.
353
354         * cgraphbuild.c (build_cgraph_edges): Update.
355         * tree-pass.h: Update comment.
356         * final.c (leaf_function_p): Update.
357         (leaf_renumber_regs): Update.
358         (rest_of_clean_state): Update.
359         * omp-low.c (expand_omp_parallel): Update.
360         * ipa-reference.c (analyze_function): Update.
361         * reorg.c (find_end_label): Update.
362         (optimize_skip): Update.
363         (fill_simple_delay_slots): Update.
364         (fill_simple_delay_slots): Update.
365         (make_return_insns): Update.
366         (dbr_schedule): Update.
367         * gimple-low.c (record_vars_into): Update.
368         * cfgbuild.c (make_edges): Update.
369         * function.c (assign_stack_local): Update.
370         (assign_parm_adjust_stack_rtl): Update.
371         (locate_and_pad_parm): Update.
372         (allocate_struct_function): Do not initialize stack_alignment_needed
373         and preferred_stack_boundary here.
374         (stack_protect_prologue): Update.
375         (stack_protect_epilogue): Update.
376         (expand_function_start): Initialize stack_alignment_needed,
377         preferred_stack_boundary and max_jumptable_ents.
378         (expand_function_end): Update.
379         (free_after_compilation): Do not NULLify epilogue_delay_list.
380         * function.h (struct rtl_data): Add stack_protect_guard,
381         stack_alignment_needed,
382         preferred_stack_boundary, epilogue_delay_list.
383         (struct function): Remove value_histograms, stack_alignment_needed,
384         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
385         last_label_uid,
386         unexpanded_var_list, stack_protect_guard.
387         (current_function_epilogue_delay_list): Remove.
388         * ipa-type-escape.c (analyze_function): Update.
389         * gimplify.c (pop_gimplify_context): Update comment.
390         * calls.c (expand_call): Update.
391         (emit_library_call_value_1): Update.
392         * except.c (set_nothrow_function_flags): Update.
393         * cfgexpand.c (get_decl_align_unit): Update.
394         (create_stack_guard): Update.
395         (estimated_stack_frame_size): Update.
396         (expand_used_vars): Update.
397         (tree_expand_cfg): Free histogram earliers, init expansion variables.
398         * explow.c (allocate_dynamic_stack_space): Update.
399         * tree-ssa-live.c (remove_unused_locals): Update.
400         * varasm.c (mark_constant_pool): Update.
401         * tree-inline.c (remap_decls): Update.
402         (initialize_cfun): Update.
403         (declare_return_variable): Update.
404         (inline_forbidden_p): Update.
405         (expand_call_inline): Update.
406         (declare_inline_vars): Update.
407         (tree_function_versioning): Update.
408         * tree-flow.h (value_histograms): New.
409         (VALUE_HISTOGRAMS): New macro.
410         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
411         last_label_uid.
412         * tree-cfg.c (set_bb_for_stmt): Update.
413         (replace_by_duplicate_decl): Update.
414         (move_block_to_fn): Update.
415         (new_label_mapper): Update.
416         (dump_function_to_file): Update.
417         * ipa-struct-reorg.c (build_data_structure): Update.
418         * cfgrtl.c (print_rtl_with_bb): Update.
419         * reload1.c (reload): Update.
420         (reload): Update.
421         * config/i386/i386.c (setup_incoming_varargs_64,
422         ix86_compute_frame_layout): Update.
423         * config/arc/arc.c (arc_output_function_epilogue): Update.
424
425 2008-04-18  Marius Strobl <marius@FreeBSD.org>
426
427         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
428         for FreeBSD as well.
429         * gthr-posix95.h: Likewise.
430
431 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
432
433         PR rtl-optimization/35838
434         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
435         out the byte offset of the first subreg.
436
437 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
438
439         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
440         to split_ti instead of three separate calls with single member arrays.
441         (subti3 splitter): Ditto.
442         (adddi3 splitter): Ditto with split_di.
443         (subdi3 splitter): Ditto.
444         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
445         two separate calls with single member arrays.  Swap match_dup
446         operands 1 and 2 to better fit into the array.
447         (negdi2 splitter): Ditto with split_di.
448         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
449         two separate calls with single member arrays.  Swap match_dup operands
450         6 and 7 to better fit into the array.
451
452 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
453
454         * config/i386/i386.c (sse_builtin_type): New.
455         (bdesc_sse_args): Likewise.
456         (bdesc_sse_3arg): Removed.
457         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
458         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
459         IX86_BUILTIN_ROUNDPS.
460         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
461         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
462         IX86_BUILTIN_ROUNDPS.
463         (ix86_expand_sse_4_operands_builtin): Removed.
464         (ix86_expand_sse_operands_builtin): New.
465         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
466         and CODE_FOR_sse4_1_roundps.
467         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
468         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
469
470 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
471
472         PR target/35907
473         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
474         regs before frame pop when needed.  If use_backchain_to_restore_sp
475         then load backchain into a temp reg to restore vr and vrsave.  Add
476         code to restore vr after frame pop if possible.
477
478 2008-04-17  Richard Guenther  <rguenther@suse.de>
479
480         * tree-vn.c (expressions_equal_p): Do not check type
481         equality or compatibility before calling operand_equal_p.
482         * fold-const.c (operand_equal_p): Check equivalence of
483         integer constants before bailing out due to signedness or
484         precision differences.
485         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
486         spurious differences in type qualification.  Ignore types
487         for COMPONENT_REFs at all.
488
489 2008-04-17  Christian Bruel  <christian.bruel@st.com>
490
491         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
492         msw_skip comparison.
493         
494 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
495
496         PR c/35739
497         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
498         reg type.
499
500         PR tree-optimization/35899
501         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
502         rather than TREE_OPERAND.
503
504 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
505
506         PR target/35944
507         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
508         temporary registers.  Change operand predicate to general_operand.
509         (remainderxf3): Ditto.
510
511 2008-04-16  Richard Guenther  <rguenther@suse.de>
512
513         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
514         * tree-affine.c (aff_combination_expand): Look through some
515         conversions.
516
517 2008-04-15  Doug Kwan  <dougkwan@google.com>
518
519         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
520         for hex printing.
521         * tree-pretty-print.c (dump_generic_node): Ditto.
522         * final.c (output_addr_const): Ditto.
523         * dwarf2out.c (output_cfi): Ditto.
524         * c-pretty-print.c (pp_c_integer_constant): Ditto.
525         * print-rtl.c (print_rtx): Ditto.
526         * print-tree.c (print_node_brief, print_node): Ditto.
527         * c-common.c (match_case_to_enum_1): Ditto.
528         * sched-vis.c (print_value): Ditto.
529         * config/i386/i386.c (print_operand): Cast to long unsigned int
530         for hex printing.
531
532 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
533         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
534         MS Windows VirtualProtect function.
535
536 2008-04-15  Jan Hubicka  <jh@suse.cz>
537
538         * gengtype.c (write_root): Param_is argument is OK.
539         * expr.c (expand_expr_real_1): Update call of get_exception_*.
540         * function.h: Include varray.h
541         (rtl_eh): New stucture based on except.c one.
542         (call_site_record): New forward declaration and vector type.
543         * calls.c (emit_call_1): Do not call
544         note_current_region_may_contain_throw.
545         * except.c (eh_status): Remove cur_region, try_region since they are
546         unused.
547         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
548         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
549         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
550         Remove call_site_data_used, call_site_data_size.
551         Turn call_site_record into vector in function.h.
552         (note_current_region_may_contain_throw): Remove.
553         (get_exception_pointer, get_exception_filter): Do not take struct
554         function argument; update.
555         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
556         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
557         build_post_landing_pads, dw2_build_landing_pads,
558         sjlj_assign_call_site_values, sjlj_mark_call_sites,
559         sjlj_emit_function_enter, sjlj_emit_function_enter, 
560         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
561         sjlj_build_landing_pads, finish_eh_generation,
562         remove_exception_handler_label, remove_eh_handler,
563         maybe_remove_eh_handler, add_reachable_handler,
564         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
565         add_action_record, collect_one_action_chain, add_call_site,
566         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
567         sjlj_output_call_site_table, output_function_exception_table,
568         * except.h (note_current_region_may_contain_throw): Remove
569         (get_exception_pointer, get_exception_filter): Do not take struct
570         function argument.
571         * Makefile.in (GTFILES): Put varargs before struct function.
572
573 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
574
575         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
576         punt for STRING_CST.
577         (get_constraint_for): Deal with STRING_CST here instead.
578
579 2008-04-15  Richard Guenther  <rguenther@suse.de>
580
581         * tree-ssa-propagate.c (substitute_and_fold): Substitute
582         statements in a basic-block with a backward walk.  Do not
583         substitute into dead statements but instead remove those.
584
585 2008-04-15  Richard Guenther  <rguenther@suse.de>
586
587         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
588         to zero, thus disable creation of SFTs.
589
590 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
591
592         * tree-predcom.c (suitable_reference_p): Return false if the
593         reference can throw.
594
595 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
596
597         PR c/35751
598         * c-decl.c (finish_decl): If extern or static var has variable
599         size, set TREE_TYPE (decl) to error_mark_node.
600
601 2008-04-15  Rafael Espindola  <espindola@google.com>
602
603         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
604         variable arg1.
605
606 2008-04-15  Richard Guenther  <rguenther@suse.de>
607
608         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
609         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
610         (visit_reference_op_load): Do walk vuse-vdef chains on
611         vn_reference_lookup.
612         (visit_reference_op_store): But do not here.
613         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
614         vn_reference_lookup.
615         (vn_lookup_with_vuses): But do so here.
616
617 2008-04-14  Ian Lance Taylor  <iant@google.com>
618
619         * fold-const.c (fold_overflow_warning): Remove assertion.
620
621 2008-04-15  Ben Elliston  <bje@au.ibm.com>
622
623         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
624         temp1 local variables.
625
626 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
627
628         PR target/35661
629         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
630         ".text.unlikely" section as executable.
631
632 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
633
634         * config/ia64/ia64.c (rtx_needs_barrier): Handle
635         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
636         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
637         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
638         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
639         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
640         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
641
642 2008-04-14  Ian Lance Taylor  <iant@google.com>
643
644         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
645         * fold-const.c (fold_comparison): If appropriate, test
646         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
647         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
648         reassociating a pointer type.
649         * doc/invoke.texi (Optimize Options): Document that
650         -fstrict-overflow applies to pointer wraparound.
651
652 2008-04-13  Jan Hubicka  <jh@suse.cz>
653
654         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
655
656 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
657
658         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
659         we are going to "save the world".
660
661 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
662
663         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
664         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
665         operand 0 constraint, not "=".
666
667 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
668
669         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
670
671 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
672
673         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
674         of size of positions_needed * CHAR_BIT.
675
676 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
677
678         PR middle-end/35897
679         * dse.c (store_info): Change positions_needed to unsigned
680         HOST_WIDE_INT.
681         (lowpart_bitmask): New.
682         (record_store): Cast to unsigned HOST_WIDE_INT for
683         positions_needed.  Assert width <= size of positions_needed *
684         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
685         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
686         lowpart_bitmask to set mask.
687
688 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
689
690         * config/bfin/constraints.md: New file.
691         * config/bfin/bfin.md: Include it.
692         (adddi3): Use satisfies_constraint functions instead of the old macros.
693         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
694         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
695         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
696         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
697         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
698         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
699         EXTRA_CONSTRAINT): Delete.
700         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
701         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
702         of the old macros.
703         * config/bfin/bfin.c: Include "tm-constrs.h".
704         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
705         Use satisfies_constraint functions instead of the old macros.
706         * doc/md.texi (Blackfin Constraints): Update file name reference.
707
708 2008-04-11  Richard Guenther  <rguenther@suse.de>
709
710         PR tree-optimization/35869
711         * tree-vrp.c (execute_vrp): Move switch statement update after
712         jump threading.  Schedule another cfg cleanup run.
713
714 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
715
716         PR c/35744
717         * attribs.c (decl_attributes): Return early on errorneous node.
718
719 2008-04-10  Oleg Ryjkov  <olegr@google.com>
720
721         * tree.h (struct tree_base): Added a new flag default_def_flag.
722         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
723
724 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
725
726         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
727
728 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
729
730         PR target/35768
731         * pa.md: Define mode iterator P.  Define mode attribute dwc.
732         (dcacheflush): Update pattern to use iterator P and attribute dwc.
733         (icacheflush): Likewise.
734         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
735         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
736
737 2008-04-11  Ben Elliston  <bje@au.ibm.com>
738
739         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
740
741 2008-04-10  Rafael Espindola  <espindola@google.com>
742
743         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
744         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
745         (extract_range_from_expr): The same.
746
747 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
748
749         * config/mips/mips.md (GPR2): New mode iterator.
750         (seq): Add comment.
751         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
752         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
753         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
754         Rewrite these to take two modes, the mode of comparison and the
755         mode of the destination.
756         * config/mips/mips.c (mips_expand_scc): Instead of having
757         paradoxical subreg as destination, expand "narrowing" scc if mode
758         of comparison is SI and target is requested in DI mode.
759         (mips_emit_int_order_test): Update comment.  Make mode of
760         comparison match CMP0 rather than TARGET.  When creating inverse
761         target use mode of TARGET.
762
763 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
764
765         * gcov-dump.c (tag_summary): Only print summaries for the first
766         GCOV_COUNTERS_SUMMABLE counters.
767
768 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
769
770         * config/i386/i386.md (absneg): New code iterator.
771         (absnegprefix): New code attribute.
772         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
773         patterns using absneg code iterator.
774         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
775         using absneg code iterator.
776         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
777         *neg<mode>2 patterns using absneg code iterator.
778         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
779         *negextendsfdf2 patterns using absneg code iterator.
780         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
781         *negextendsfxf2 patterns using absneg code iterator.
782         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
783         *negextendsfdf2 patterns using absneg code iterator.
784         * config/i386/sse.md (<code><mode>2): Macroize expander from
785         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
786
787 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
788
789         * config/s390/s390.h: Remove the remains of the recent search
790         & replace action of current_function_outgoing_args_size.
791
792 2008-04-10  Ira Rosen  <irar@il.ibm.com>
793
794         PR tree-optimization/35821
795         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
796         NEW_STMT_LIST is not NULL.
797
798 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
799
800         PR libstdc++/35597
801         * toplev.c (process_options): Remove -ffunction-sections debugging
802         warning.
803
804 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
805
806         PR middle-end/PR28690
807         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
808         than gen_rtx_fmt_ee to perform more canonicalizations.
809
810 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
811
812         PR driver/35665
813         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
814
815 2008-04-09  Richard Guenther  <rguenther@suse.de>
816
817         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
818         (dump_function_to_file): Dump function arguments with types.
819
820 2008-04-08  Richard Guenther  <rguenther@suse.de>
821
822         * fold-const.c (fold_widened_comparison): Do not allow
823         sign-changes that change the result.
824
825 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
826
827         PR target/35839
828         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
829         kinds of indirect references.
830
831 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
832
833         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
834         GNU Fortran language string.
835
836 2008-04-08  Rafael Espindola  <espindola@google.com>
837
838         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
839         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
840         * tree.h (tree_call_nonnegative_warnv_p): New.
841
842 2008-04-08  Jan Hubicka  <jh@suse.cz>
843
844         * function.c (free_after_compilation): Clear out regno_reg_rtx
845         pointer.
846
847 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
848
849         Revert
850         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
851
852         PR middle-end/PR28690
853         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
854         same precedence as REG_POINTER and MEM_POINTER operands.
855
856 2008-04-08  Richard Guenther  <rguenther@suse.de>
857
858         PR middle-end/35834
859         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
860         for adding index to base.
861
862 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
863
864         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
865         (MINGW_ENABLE_EXECUTE_STACK): New.
866         (IN_LIBGCC2): For libgcc include windows.h file for
867         function declarations.
868
869 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
870
871         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
872         and tem2 if tem1 is not a REG or MULT.
873
874 2008-04-08  Jan Hubicka  <jh@suse.cz>
875
876         * function.h (incomming_args): Break out of struct function.
877         (function_subsections): Break out of struct function.
878         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
879         return_rtx and hard_reg_initial_vals from struct function.
880         Kill inl_max_label_num.
881         (current_function_pops_args, current_function_args_info,
882         current_function_args_size, current_function_args_size,
883         current_function_pretend_args_size,
884         current_function_outgoing_args_size,
885         current_function_internal_arg_pointer, current_function_return_rtx):
886         Kill compatibility accestor macros.
887         * builtins.c (expand_builtin_apply_args_1): Update.
888         (expand_builtin_next_arg): Update.
889         * df-scan.c (df_get_call_refs): Update.
890         * dbxout.c (dbxout_function_end): Update.
891         * dwarf2out.c (dwarf2out_switch_text_section): Update.
892         (output_line_info): Update.
893         (secname_for_decl): Update.
894         (dwarf2out_var_location): Update.
895         * function.c (free_after_compilation): Update.
896         (assign_parm_find_stack_rtl): Update.
897         (assign_parms): Update.
898         (expand_dummy_function_end): Update.
899         (expand_function_end): Update.
900         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
901         (expand_call): Update.
902         (emit_library_call_value_1): Update.
903         (store_one_arg): Update.
904         * varasm.c (initialize_cold_section_name): Update.
905         (unlikely_text_section): Update.
906         (unlikely_text_section_p): Update.
907         (assemble_start_function): Update.
908         (assemble_end_function): Update.
909         (default_section_type_flags): Update.
910         (switch_to_section): Update.
911         * integrate.c (set_decl_abstract_flags): Update.
912         (get_hard_reg_initial_val): Update.
913         (has_hard_reg_initial_val): Update.
914         (allocate_initial_values): Update.
915         * resource.c (init_resource_info): Update.
916         * config/alpha/alpha.c (NUM_ARGS): Update.
917         (direct_return): Update.
918         (alpha_va_start): Update.
919         (alpha_sa_size): Update.
920         (alpha_initial_elimination_offset): Update.
921         (alpha_expand_prologue): Update.
922         (alpha_start_function): Update.
923         (alpha_expand_epilogue): Update.
924         (unicosmk_initial_elimination_offset):
925         * config/alpha/alpha.md (call expander): Update.
926         * config/s390/s390.c (s390_register_info): Update.
927         (s390_register_info): Update.
928         (s390_frame_info): Update.
929         (s390_initial_elimination_offset): Update.
930         (s390_build_builtin_va_list): Update.
931         (s390_va_start): Update.
932         * config/spu/spu.c (direct_return): Update.
933         (spu_expand_prologue): Update.
934         (spu_initial_elimination_offset): Update.
935         (spu_build_builtin_va_list): Update.
936         (spu_va_start): Update.
937         * config/sparc/sparc.c (sparc_init_modes): Update.
938         (sparc_compute_frame_size): Update.
939         (function_value): Update.
940         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
941         * config/i386/i386.md (return expander): Update.
942         * config/i386/i386.c (ix86_va_start): Update.
943         (ix86_can_use_return_insn_p): Update.
944         (ix86_compute_frame_layout): Update.
945         (ix86_expand_epilogue): Update.
946         * config/sh/sh.c (output_stack_adjust): Update.
947         (calc_live_regs): Update.
948         (sh_expand_prologue): Update.
949         (sh_builtin_saveregs): Update.
950         (sh_va_start): Update.
951         (initial_elimination_offset): Update.
952         (sh_allocate_initial_value): Update.
953         (sh_function_ok_for_sibcall): Update.
954         (sh_get_pr_initial_val): Update.
955         * config/sh/sh.md (return expander): Update.
956         * config/avr/avr.c (frame_pointer_required_p): UPdate.
957         * config/crx/crx.c (crx_compute_frame): UPdate.
958         (crx_initial_elimination_offset): UPdate.
959         * config/xtensa/xtensa.c (compute_frame_size): Update
960         (xtensa_builtin_saveregs): Update.
961         (xtensa_va_start): Update.
962         (order_regs_for_local_alloc): Update.
963         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
964         (xstormy16_expand_builtin_va_start): Update.
965         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
966         * config/m68hc11/m68hc11.md (return expanders): Update.
967         * config/m68hc11/m68hc11.c (expand_prologue): Update.
968         (expand_epilogue): Update.
969         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
970         (cris_simple_epilogue): Update.
971         (cris_expand_prologue): Update.
972         (cris_expand_epilogue): Update.
973         * config/iq2000/iq2000.c (iq2000_va_start): Update.
974         (compute_frame_size): Update.
975         * config/mt/mt.c (mt_compute_frame_size): Update.
976         * config/mn10300/mn10300.c (expand_prologue): Update.
977         (expand_epilogue): Update.
978         (initial_offset): Update.
979         (mn10300_builtin_saveregs):
980         * config/mn10300/mn10300.md (return expander): Update.
981         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
982         (ia64_initial_elimination_offset): Update.
983         (ia64_initial_elimination_offset): Update.
984         (ia64_expand_prologue): Update.
985         * config/m68k/m68k.md (return expander): Update.
986         * config/rs6000/rs6000.c (rs6000_va_start): Update.
987         (rs6000_stack_info): Update.
988         * config/mcore/mcore.c (layout_mcore_frame): Update.
989         (mcore_expand_prolog): Update.
990         * config/arc/arc.c (arc_compute_frame_size): Update.
991         * config/score/score3.c (score3_compute_frame_size): Update.
992         * config/score/score7.c (score7_compute_frame_size): Update.
993         * config/arm/arm.c (use_return_insn): Update.
994         (thumb_find_work_register): Update.
995         (arm_compute_save_reg_mask): Update.
996         (arm_output_function_prologue): Update.
997         (arm_output_epilogue): Update.
998         (arm_size_return_regs): Update.
999         (arm_get_frame_offsets): Update.
1000         (arm_expand_prologue): Update.
1001         (thumb_exit): Update.
1002         (thumb_unexpanded_epilogue): Update.
1003         (thumb1_output_function_prologue): Update.
1004         * config/pa/pa.md (return expander): Update.
1005         * config/pa/pa.c (compute_frame_size): Update.
1006         (hppa_builtin_saveregs): Update.
1007         * config/mips/mips.c (mips_va_start): Update.
1008         (mips16_build_function_stub): Update.
1009         (mips_compute_frame_info): Update.
1010         (mips_restore_gp): Update.
1011         (mips_output_function_prologue): Update.
1012         (mips_expand_prologue): Update.
1013         * config/v850/v850.c (compute_frame_size): Update.
1014         (expand_prologue): * config/mmix/mmix.c (along): update.
1015         (mmix_initial_elimination_offset): update.
1016         (mmix_reorg): update.
1017         (mmix_use_simple_return): update.
1018         (mmix_expand_prologue): update.
1019         (mmix_expand_epilogue): Update.
1020         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
1021         (emit_link_insn): Update.
1022
1023 2008-04-08  Anatoly Sokolov <aesok@post.ru>
1024
1025         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
1026         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
1027         instructions.
1028         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
1029         atmega103 device.
1030
1031 2008-04-07  Jan Hubicka  <jh@suse.cz>
1032
1033         * function.h (rtl): Rename to x_rtl.
1034         (crtl): New define.
1035         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1036         frame_offset, stack_check_probe_note, arg_pointer_save_area,
1037         used_temp_slots avail_temp_slots, temp_slot_level,
1038         nonlocal_goto_handler_labels): Update accesstors.
1039         (rtl): New global variable.
1040         (struct function): Move some fileds to rtl_data.
1041         (get_arg_pointer_save_area): Update prototype.
1042         * builtins.c (expand_builtin_setjmp_receiver): Update call of
1043         get_arg_pointer_save_area.
1044         * expr.c (init_expr): Update
1045         * function.c (get_frame_size): Update
1046         (assign_stack_local): Update
1047         (expand_function_end): Update.
1048         (get_art_pointer_save_area): Update
1049         * function.h 
1050         * emit-rtl.c (rtl): Declare.
1051         (regno_reg_rtx): Declare.
1052         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1053         Update.
1054         (gen_reg_rtx): Update.
1055         * varasm.c (n_deferred_constatns): Update accestor.
1056         (init_varasm_status): Do not allocate varasm_status.
1057         (force_const_mem, get_pool_size, output_constant_pool): Update.
1058         * stmt.c (force_label_rtx): Do not use x_ prefixes.
1059         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1060         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
1061         * sparc/sparc.h (INIT_EXPANDERS): Update.
1062         * ia64/ia64.h (INIT_EXPANDERS): Update.
1063
1064 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
1065
1066         * reload.c (push_secondary_reload): Add missing break to for loop.
1067
1068 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
1069
1070         PR middle-end/PR28690
1071         * rtlanal.c: Update copyright years.
1072         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
1073         as REG_POINTER and MEM_POINTER operands.
1074         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
1075         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
1076         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
1077         * gcse.c: Update copyright years.
1078         (pre_delete): Call gen_reg_rtx_and_attrs.
1079         (hoist_code): Likewise.
1080         (build_store_vectors): Likewise.
1081         (delete_store): Likewise.
1082         * loop-invariant.c (move_invariant_reg): Likewise.
1083         Update copyright years.
1084
1085 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
1086
1087         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
1088         control string instead of quoted.
1089
1090 2008-04-07  Kenneth Zadeck <zadeck@naturalbridge.com>
1091
1092         * doc/rtl.texi: Rewrite of subreg section.
1093
1094 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
1095
1096         PR/35842
1097         * config/i386/i386.c (legitimize_pic_address): Add treating
1098         of dllimport SYM_REF's.
1099         (legitimize_dllimport_symbol): Add prototype.
1100
1101 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1102
1103         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
1104         reference in constructor with non self-referential type.
1105
1106 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1107
1108         Removal of Return with Depressed Stack Pointer support
1109         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
1110         (ECF_SP_DEPRESSED): Likewise.
1111         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
1112         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
1113         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1114         (expand_call): Do not test ECF_SP_DEPRESSED.
1115         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1116         * function.c (keep_stack_depressed): Delete.
1117         (handle_epilogue_set): Likewise.
1118         (update_epilogue_consts): Likewise.
1119         (emit_equiv_load): Likewise.
1120         (thread_prologue_and_epilogue_insns): Remove support for Return with
1121         Depressed Stack Pointer.
1122         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1123
1124 2008-04-06  Richard Guenther  <rguenther@suse.de>
1125
1126         PR tree-optimization/35400
1127         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
1128         information from SSA_NAMEs.
1129
1130 2008-04-06  Anatoly Sokolov <aesok@post.ru>
1131
1132         * config/avr/avr.h (avr_mega_p): Remove declaration.
1133         (AVR_MEGA): Remove macro.
1134         * config/avr/avr.c (avr_mega_p): Remove variable.
1135         (avr_override_options): Remove inicializion of avr_mega_p.
1136         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1137         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1138         (avr_jump_mode): (Ditto.).
1139         (avr_output_progmem_section_asm_op): (Ditto.).
1140         (avr_asm_init_sections): (Ditto.).
1141         (avr_asm_init_sections): (Ditto.).
1142         (avr_rtx_costs): (Ditto.).
1143         * config/avr/avr.md: (Ditto.).
1144         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
1145         '__AVR_MEGA__'.
1146
1147 2008-04-06  Richard Guenther  <rguenther@suse.de>
1148
1149         PR tree-optimization/35842
1150         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
1151         is_gimple_invariant_address.
1152
1153 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1154
1155         * gcc.c (default_compilers): Sync Fortran extensions list with
1156         that in fortran/lang-specs.h.
1157         * doc/invoke.texi: Likewise.
1158         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
1159         * dwarf2out.c (gen_compile_unit_die): Likewise.
1160
1161 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
1162
1163         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
1164
1165 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
1166
1167         PR target/12329
1168         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
1169         attribute is used for nested functions.
1170
1171 2008-04-05  Jan Hubicka  <jh@suse.cz>
1172
1173         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
1174
1175         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
1176         letter argument.
1177         (dump_files): Update.
1178         (enable_rtl_dump_file): Do not accept letter argument.
1179         * tree-pass.h (dump_file_info): Remove letter argument.
1180         * toplev.c (decode_d_option): Update -da handling.
1181         * toplev.h (enable_rtl_dump_file): Update prototype.
1182         * passes.c (register_one_dump_file): Do not accept IPA argument; work
1183         it out based on pass type.
1184         (register_dump_files_1): Likewise.
1185         (init_optimization_passes): Update register_one_dump_file calls.
1186         (execute_one_pass): Sanity check that IPA passes are called at IPA
1187         level and RTL passes at RTL level.
1188         (execute_pass_list): IPA pass can not be after or subpass of
1189         GIMPLE/RTL pass.
1190         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
1191         disallov RTL subpasses of IPA subpasses.
1192
1193 2008-04-05  Ben Elliston  <bje@au.ibm.com>
1194
1195         * tree-cfg.c (need_fake_edge_p): Return false for calls to
1196         builtins that return exactly once and do not throw. Cache call to
1197         call_expr_flags.
1198
1199 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
1200
1201         PR rtl-optimization/34916
1202         PR middle-end/35519
1203         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
1204         between instruction pairs.
1205
1206 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
1207
1208         * doc/invoke.texi: Document -mbitops for SH.
1209         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
1210         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
1211         * config/sh/sh.c (print_operand): Add %t operand code.
1212         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
1213         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
1214         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
1215         (extendqihi2): Likewise.
1216         (movqi_i): Likewise.
1217         (insv): Use bset, bclr and bst instructions for SH2A if possible.
1218         (extv): Use bld instruction for SH2A if possible.
1219         (extzv): Likewise.
1220         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
1221         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
1222         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
1223         (bset.b, bclr.b): Define peepholes.
1224         * config/sh/sh.opt (mbitops): New option.
1225
1226 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
1227
1228         PR target/35620
1229         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
1230         and view convert expression.
1231
1232 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
1233
1234         PR target/35364
1235         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1236
1237 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1238
1239         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
1240
1241         * config/i386/cpuid.h (bit_AES): New.
1242         (bit_PCLMUL): Likewise.
1243
1244         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
1245         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
1246         SSE2 if AES or PCLMUL is enabled.
1247         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
1248         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1249         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
1250         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
1251         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
1252         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
1253         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1254         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
1255         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
1256         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
1257         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
1258         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
1259         __builtin_ia32_aeskeygenassist128 and
1260         __builtin_ia32_pclmulqdq128.
1261         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
1262         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
1263         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
1264
1265         * config/i386/i386.h (TARGET_AES): New.
1266         (TARGET_PCLMUL): Likewise.
1267         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
1268
1269         * config/i386/i386.md (UNSPEC_AESENC): New.
1270         (UNSPEC_AESENCLAST): Likewise.
1271         (UNSPEC_AESDEC): Likewise.
1272         (UNSPEC_AESDECLAST): Likewise.
1273         (UNSPEC_AESIMC): Likewise.
1274         (UNSPEC_AESKEYGENASSIST): Likewise.
1275         (UNSPEC_PCLMUL): Likewise.
1276
1277         * config/i386/i386.opt (maes): New.
1278         (mpclmul): Likewise.
1279
1280         * config/i386/sse.md (aesenc): New pattern.
1281         (aesenclast): Likewise.
1282         (aesdec): Likewise.
1283         (aesdeclast): Likewise.
1284         (aesimc): Likewise.
1285         (aeskeygenassist): Likewise.
1286         (pclmulqdq): Likewise.
1287
1288         * config/i386/wmmintrin.h: New.
1289
1290         * doc/extend.texi: Document AES and PCLMUL built-in function.
1291
1292         * doc/invoke.texi: Document -maes and -mpclmul.
1293
1294 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
1295
1296         * function.c (free_after_parsing): Replace with
1297         cxx_push_function_context from C++ front-end.
1298         (allocate_struct_function): Don't call langhook.
1299         * langhooks.h (struct lang_hooks_for_functions): Delete.
1300         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
1301         member "function".
1302         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
1303         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
1304         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1305         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
1306         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
1307         remove LANG_HOOKS_FUNCTION_INITIALIZER.
1308         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
1309
1310         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
1311         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
1312         
1313 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
1314
1315         PR c/35440
1316         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
1317         for all types.
1318
1319 2008-04-04  Richard Guenther  <rguenther@suse.de>
1320
1321         PR middle-end/35823
1322         * fold-const.c (optimize_minmax_comparison): Use the correct
1323         type for the constant in the simplified comparison.
1324
1325 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
1326
1327         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
1328         Pass L2 size as "--param l2-cache-size" to the compiler.
1329         (decode_l2_cache): New function to decode L2 cache parameters using
1330         0x8000006 extended cpuid function.
1331         (detect_caches_amd): Determine parameters of L2 cache using
1332         decode_l2_caches function.
1333         (decode_caches_intel): Decode L2 cache parameters.
1334         (detect_caches_intel): Determine L2 cache parameters using
1335         decode_caches_intel and decode_l2_caches functions.
1336
1337 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
1338
1339         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
1340         secondary input reload for subword loads from the constant pool.
1341
1342 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
1343
1344         PR target/35713
1345         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
1346           constants of the appropriate size for runtime calculations.
1347
1348         PR c/35712
1349         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
1350           decimal-float literal constant zero.
1351
1352 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
1353
1354         PR c/35738
1355         * c-parser.c (c_parser_omp_atomic): Call
1356         default_function_array_conversion on the RHS.
1357
1358         PR middle-end/35818
1359         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
1360         call is_variable_sized if decl has incomplete type.
1361
1362 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
1363
1364         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
1365
1366 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
1367
1368         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
1369         iterators.
1370         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
1371         (sgt<u>): Merge sgt and sgtu into new expander.
1372         (sgt, sgtu): Remove expanders.
1373         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
1374         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
1375         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
1376         *sgtu_<mode>_mips16 into new pattern.
1377         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
1378         (sge<u>): Merge sge and sgeu into new expander.
1379         (sge, sgeu): Remove expanders.
1380         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
1381         new pattern.
1382         (*sge_<mode>, second *sge_<mode>): Remove patterns.
1383         (slt<u>): Merge slt and sltu into new expander.
1384         (slt, sltu): Remove expanders.
1385         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
1386         (*slt_<mode>, *sltu_<mode>): Remove patterns.
1387         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
1388         *sltu_<mode>_mips16 into new pattern.
1389         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
1390         (sle<u>): Merge sle and sleu into new expander.
1391         (sle, sleu): Remove expanders.
1392         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
1393         (*sle_<mode>, *sleu_<mode>): Remove patterns.
1394         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
1395         *sleu_<mode>_mips16 into new pattern.
1396         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
1397
1398 2008-04-03  Jan Hubicka  <jh@suse.cz>
1399
1400         PR tree-optimization/35795
1401         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
1402         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1403         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1404         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1405         * score/score3.c (score3_output_mi_thunk): Likewise.
1406         * score/score7.c (score7_output_mi_thunk): Likewise.
1407         * mips/mips.c (mips_output_mi_thunk): Likewise.
1408
1409 2008-04-03  Richard Guenther  <rguenther@suse.de>
1410
1411         * tree-vrp.c (extract_range_from_unary_expr): Handle all
1412         conversions.  Simplify code.
1413
1414 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1415
1416         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
1417
1418 2008-04-03  Tom Tromey  <tromey@redhat.com>
1419             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1420
1421         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1422         * config/bfin/t-bfin-linux (generated_files): Add
1423         linux-sysroot-suffix.h.
1424         * doc/install.texi (Prerequisites): Require make 3.80.
1425         * doc/sourcebuild.texi (Front End Directory): Document new
1426         variable.
1427         * Makefile.in (generated_files): New variable.
1428         (ALL_HOST_OBJS): New variable.
1429         ($(ALL_HOST_OBJS)): New target.
1430
1431 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
1432
1433         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
1434         (remap_block): Call id->transform_lang_insert_block instead
1435         of langhook.
1436         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
1437         Set id.transform_lang_insert_block to NULL.
1438         (clone_body): Move to cp/optimize.c
1439         * tree-inline.h (struct copy_body_data): Change
1440         transform_lang_insert_block to function pointer.
1441         (copy_generic_body, copy_decl_no_change): Export.
1442         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
1443         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
1444         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
1445
1446         * c-tree.h (insert_block): Kill.
1447         * c-decl.c (insert_block): Kill.
1448
1449 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
1450
1451         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1452         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1453         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
1454         argument.
1455         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
1456         argument, call {push,pop}_function_context from here.
1457         * c-parser.c: Use c_{push,pop}_function_context.
1458
1459         * function.c (push_function_context_to): Move meat ...
1460         (push_function_context): ... here.  Simplify.
1461         * function.c (pop_function_context_from): Move meat ...
1462         (pop_function_context): ... here.  Simplify.
1463         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
1464         leave_nested).
1465         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1466         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1467         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
1468         * tree.h (push_function_context_to, pop_function_context_from): Remove.
1469
1470 2008-04-03  Ben Elliston  <bje@au.ibm.com>
1471
1472         * expmed.c (extract_force_align_mem_bit_field): Remove.
1473
1474 2008-04-03  Richard Guenther  <rguenther@suse.de>
1475
1476         PR middle-end/35800
1477         * expr.h (try_casesi): Adjust prototype.
1478         * expr.c (try_casesi): Take fallback label as extra parameter.
1479         Use that for gen_casesi if default_label is NULL.
1480         * stmt.c (expand_case): Pass fallback label to try_casesi,
1481         make sure to fill gaps with a fallback label if default_label
1482         is not present.
1483
1484 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
1485
1486         PR target/35801
1487         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
1488
1489 2008-04-03  Ben Elliston  <bje@au.ibm.com>
1490
1491         * expmed.c (extract_split_bit_field): Remove if (0) code.
1492         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
1493         (do_ds_constraint): Likewise.
1494
1495 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
1496
1497         * doc/cppopts.texi (-dU): Document.
1498         * c-common.h (flag_dump_macros): Update comment.
1499         * c-opts.c (handle_OPT_d): Handle -dU.
1500         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
1501         dump_queued_macros, cb_used_define, cb_used_undef): New.
1502         (init_pp_output): Handle -dU.
1503         (cb_line_change): Call dump_queued_macros.
1504         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
1505
1506 2008-04-02  Anatoly Sokolov <aesok@post.ru>
1507
1508         * config/avr/predicates.md (io_address_operand): New predicate. 
1509         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
1510         * config/avr/avr.c (avr_io_address_p): Remove function.
1511         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
1512         'avr_io_address_p' function.
1513         (out_movhi_r_mr): (Ditto.).
1514         (out_movqi_mr_r): (Ditto.).
1515         (out_movhi_mr_r): (Ditto.).
1516         (avr_address_cost): (Ditto.).
1517
1518 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
1519
1520         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
1521         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
1522         in 32bit mode when XMM registers are available to avoid store
1523         forwarding stalls.
1524         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
1525         corresponding post-reload splitters.
1526
1527 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
1528
1529         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
1530         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
1531         __builtin_ia32_roundss.
1532         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
1533         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
1534         __builtin_ia32_roundss.
1535         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
1536         IX86_BUILTIN_SHUFPD here.
1537
1538 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
1539
1540         * config/i386/i386.md (plogic): New.
1541         (plogicprefix): Likewise.
1542
1543         * config/i386/mmx.md (mmx_<code><mode>3): New.
1544         (mmx_and<mode>3): Removed.
1545         (mmx_ior<mode>3): Likewise.
1546         (mmx_xor<mode>3): Likewise.
1547
1548         * config/i386/sse.md (<code><mode>3): New.
1549         (*<code><mode>3): Likewise.
1550         (*<code><mode>3): Likewise.
1551         (<code><mode>3): Likewise.
1552         (*sse_<code><mode>3): Likewise.
1553         (*sse2_<code><mode>3): Likewise.
1554         (<code>tf3): Likewise.
1555         (*<code>tf3): Likewise.
1556         (and<mode>3): Likewise.
1557         (*and<mode>3): Likewise.
1558         (ior<mode>3): Removed.
1559         (*ior<mode>3): Likewise.
1560         (xor<mode>3): Likewise.
1561         (*xor<mode>3): Likewise.
1562         (*and<mode>3): Likewise.
1563         (*ior<mode>3): Likewise.
1564         (*xor<mode>3): Likewise.
1565         (and<mode>3): Likewise.
1566         (*sse_and<mode>3): Likewise.
1567         (*sse2_and<mode>3): Likewise.
1568         (andtf3): Likewise.
1569         (*andtf3): Likewise.
1570         (ior<mode>3): Likewise.
1571         (*sse_ior<mode>3): Likewise.
1572         (*sse2_ior<mode>3): Likewise.
1573         (iortf3): Likewise.
1574         (*iortf3): Likewise.
1575         (xor<mode>3): Likewise.
1576         (*sse_xor<mode>3): Likewise.
1577         (*sse2_xor<mode>3): Likewise.
1578         (xortf3): Likewise.
1579         (*xortf3): Likewise.
1580
1581 2008-04-02  Richard Guenther  <rguenther@suse.de>
1582
1583         PR tree-optimization/14495
1584         PR tree-optimization/34793
1585         * tree-vrp.c (struct switch_update): New structure.
1586         (to_remove_edges, to_update_switch_stmts): New VECs.
1587         (simplify_switch_using_ranges): New function.  Remove not taken
1588         case labels and edges.
1589         (simplify_stmt_using_ranges): Call it.
1590         (identify_jump_threads): Mark edges we have queued for removal
1591         so we don't thread them.
1592         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
1593         case label vector.
1594         * tree-cfg.c (group_case_labels): Deal with missing default label.
1595         (tree_verify_flow_info): Allow missing default label.
1596         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
1597         (emit_case_nodes): Likewise.
1598         (expand_case): Do not rely on the default label to be present.
1599         * expr.c (try_casesi): Deal with NULL default_label.
1600         (do_tablejump): Likewise.
1601
1602 2008-04-02  Richard Guenther  <rguenther@suse.de>
1603
1604         PR tree-optimization/14495
1605         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
1606         SWITCH_EXPR here ...
1607         (vrp_visit_switch_stmt): ... but here (new function).
1608         (find_case_label_index): New helper function.
1609         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
1610
1611 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
1612
1613         * fwprop.c: Fix ISO-C99ism.
1614
1615 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
1616
1617         PR bootstrap/35752
1618         * Makefile.in (objdir): Set it here.
1619         * configure.ac: Not here.  Find dynamic linker characteristics.
1620         * exec-tool.in: Use them.
1621         * aclocal.m4: Regenerate.
1622         * configure: Regenerate.
1623
1624 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
1625
1626         * expr.c (expand_var): Delete it.
1627         * expr.h (expand_var): Delete prototype.
1628         * function.c (expand_function_start): Use expand_decl instead.
1629         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
1630         langhook.
1631
1632 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
1633
1634         PR rtl-optimization/35542
1635         * fwprop.c (forward_propagate_and_simplify): Replace
1636         loc_reg_mentioned_in_p with reg_mentioned_p.
1637
1638 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
1639
1640         PR rtl-optimization/35281
1641         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
1642         (propagate_rtx_1): Handle PR_HANDLE_MEM.
1643         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
1644         (varying_mem_p): Move above propagate_rtx.
1645         (all_uses_available_at): Do not check MEMs.
1646
1647 2008-04-02  Rafael Espindola  <espindola@google.com>
1648
1649         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
1650         (register_edge_assert_for_2): Split the cond argument.
1651         (register_edge_assert_for_1): Adjust for the change in
1652         register_edge_assert_for_2.
1653         (register_edge_assert_for): Split the cond argument.
1654         (find_switch_asserts): Adjust for the change in
1655         register_edge_assert_for.
1656
1657 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
1658
1659         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
1660         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
1661         offsets for 64-bit mingw.
1662         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
1663         abi for x86_64-pc-mingw.
1664
1665 2008-04-02  Richard Guenther  <rguenther@suse.de>
1666
1667         * tree-vrp.c (extract_range_from_assert): Make sure to not
1668         produce range min/max with TREE_OVERFOW set.
1669         If merging a anti-range and a range keep the anti-range if
1670         the range covers all values of the type.
1671         (register_edge_assert_for_2): Only allow sign-changing
1672         conversions in detecting canonical range checks.  Also
1673         register an assert for the unsigned name if useful.
1674
1675         PR tree-optimization/35787
1676         * tree-vrp.c (vrp_val_max): New function.
1677         (vrp_val_min): Likewise.
1678         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
1679         (vrp_val_is_min): Likewise.
1680         (supports_overflow_infinity): Use vrp_val_{min,max}.
1681         (negative_overflow_infinity): Likewise.
1682         (positive_overflow_infinity): Likewise.
1683         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
1684         (is_positive_overflow_infinity): Likewise.
1685         (is_overflow_infinity): Likewise.
1686         (avoid_overflow_infinity): Use vrp_val_{min,max} and
1687         vrp_val_is_{min,max}.
1688         (set_and_canonicalize_value_range): Canonicalize anti-ranges
1689         to ranges if possible.  Avoid empty ranges.
1690
1691 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1692
1693         PR middle-end/35705
1694         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
1695         the expression is a function address.
1696
1697 2008-04-01  George Helffrich  <george@gcc.gnu.org>
1698
1699         PR fortran/PR35154, fortran/PR23057
1700         * fortran/trans-common.c (create_common):  Add decl to function
1701         chain to preserve identifier scope in debug output.
1702
1703         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
1704         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
1705         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
1706         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
1707         in common.
1708         (dbxout_syms): Check for COMMON-based symbol and wrap in
1709         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
1710         in bracket for efficiency.
1711
1712         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
1713         using DW_TAG_common_block + member offset.
1714         (add_pubname_string): New function.
1715         (dw_expand_expr): New function to find block name and offset for
1716         COMMON var.
1717         (common_check): New function to check whether symbol in Fortran COMMON.
1718         (gen_variable_die): If COMMON, use DW_TAG_common_block.
1719
1720         * testsuite/gcc.dg/debug/pr35154.c:  New test to check that non-Fortran
1721         use of common is unchanged.
1722
1723         * testsuite/lib/gfortran-dg.exp:  New harness to compile Fortran progs
1724         with all combinations of debug options available on target.
1725         * testsuite/gfortran.dg/debug/debug.exp:  Ditto.
1726         * testsuite/gfortran.dg/debug/trivial.f:  Ditto.
1727         * testsuite/gfortran.dg/debug/pr35154-stabs.f:  New test case for
1728         .stabs functionality.
1729         * testsuite/gfortran.dg/debug/pr35154-dwarf2.f:  New test case for
1730         DWARF functionality.
1731
1732 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
1733
1734         PR c/35436
1735         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
1736
1737 2008-04-02  Ben Elliston  <bje@au.ibm.com>
1738
1739         * config/v850/v850.md (casesi): Remove if (0) code.
1740         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1741         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
1742
1743 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
1744
1745         * config/i386/i386.md (rex64suffix): New mode attribute.
1746         (floathi<mode>2): Disable expander for SSE math.
1747         (*floathi<mode>2_1): New insn insn_and_split pattern.
1748         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
1749         corresponding post-reload splitters.
1750         (*floathi<mode>2_i387): New macroized insn pattern.
1751         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
1752         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
1753         insn_and_split pattern.
1754         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
1755         New macroized instruction patterns and corresponding post-reload
1756         splitters.
1757         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
1758         and corresponding post-reload splitters.
1759         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
1760         New macroized instruction patterns.
1761         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
1762         macroized instruction patterns and corresponding post-reload splitters.
1763         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
1764         corresponding post-reload splitters.
1765         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
1766         New macroized instruction patterns.
1767         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
1768         corresponding post-reload splitters.
1769         (*floatsi<mode>2_i387): New macroized instruction patterns.
1770
1771 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
1772
1773         * config/i386/i386.md (smaxmin): New.
1774         (umaxmin): Likewise.
1775         (maxminiprefix): Likewise.
1776         (maxminfprefix): Likewise.
1777         (<code><mode>3): Likewise.
1778         (smin<mode>3): Removed.
1779         (smax<mode>3): Likewise.
1780
1781         * config/i386/mmx.md (mmx_<code>v2sf3): New.
1782         (mmx_<code>v4hi3): Likewise.
1783         (mmx_<code>v8qi3): Likewise.
1784         (mmx_smaxv2sf3): Removed.
1785         (mmx_sminv2sf3): Likewise.
1786         (mmx_umaxv8qi3): Likewise.
1787         (mmx_smaxv4hi3): Likewise.
1788         (mmx_uminv8qi3): Likewise.
1789         (mmx_sminv4hi3): Likewise.
1790
1791         * config/i386/sse.md (<addsub><mode>3): New.
1792         (*<addsub><mode>3): Likewise.
1793         (<sse>_vm<addsub><mode>3): Likewise.
1794         (<maxmin><mode>3): Likewise.
1795         (*<maxmin><mode>3_finite): Likewise.
1796         (*<maxmin><mode>3): Likewise.
1797         (<sse>_vm<maxmin><mode>3): Likewise.
1798         (sse3_h<addsub>v4sf3): Likewise.
1799         (sse3_h<addsub>v2df3): Likewise.
1800         (<maxmin>v16qi3): Likewise.
1801         (*<maxmin>v16qi3): Likewise.
1802         (<maxmin>v8hi3): Likewise.
1803         (*<maxmin>v8hi3): Likewise.
1804         (*sse4_1_<maxmin><mode>3): Likewise.
1805         (*sse4_1_<maxmin><mode>3): Likewise.
1806         (add<mode>3): Removed.
1807         (*add<mode>3): Likewise.
1808         (<sse>_vmadd<mode>3): Likewise.
1809         (sub<mode>3): Likewise.
1810         (*sub<mode>3): Likewise.
1811         (<sse>_vmsub<mode>3): Likewise.
1812         (smin<mode>3): Likewise.
1813         (*smin<mode>3_finite): Likewise.
1814         (*smin<mode>3): Likewise.
1815         (<sse>_vmsmin<mode>3): Likewise.
1816         (smax<mode>3): Likewise.
1817         (*smax<mode>3_finite): Likewise.
1818         (*smax<mode>3): Likewise.
1819         (<sse>_vmsmax<mode>3): Likewise.
1820         (sse3_haddv4sf3): Likewise.
1821         (sse3_haddv2df3): Likewise.
1822         (sse3_hsubv4sf3): Likewise.
1823         (sse3_hsubv2df3): Likewise.
1824         (umaxv16qi3): Likewise.
1825         (*umaxv16qi3): Likewise.
1826         (smaxv8hi3): Likewise.
1827         (*smaxv8hi3): Likewise.
1828         (*sse4_1_smax<mode>3): Likewise.
1829         (*sse4_1_umax<mode>3): Likewise.
1830         (uminv16qi3): Likewise.
1831         (*uminv16qi3): Likewise.
1832         (sminv8hi3): Likewise.
1833         (*sminv8hi3): Likewise.
1834         (*sse4_1_smin<mode>3): Likewise.
1835         (*sse4_1_umin<mode>3): Likewise.
1836
1837 2008-04-01  Rafael Espindola  <espindola@google.com>
1838
1839         * tree-cfg.c (verify_expr): remove in_phi.
1840         (verify_stmt): Don't call walk_tree with verify_expr. Use
1841         is_gimple_min_invariant instead of is_gimple_val.
1842
1843 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
1844
1845         * doc/include/gpl_v3.texi: Update for manpage generation.
1846         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
1847         gpl.texi.
1848         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
1849         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
1850         gpl_v3.texi instead of gpl.texi.
1851         (gpl.pod): New.
1852
1853 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
1854
1855         PR pch/13675
1856         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
1857
1858 2008-04-01  Rafael Espindola  <espindola@google.com>
1859
1860         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
1861         (extract_code_and_val_from_cond): Use
1862         extract_code_and_val_from_cond_with_ops.
1863
1864 2008-04-01  Jan Hubicka  <jh@suse.cz>
1865
1866         * function.c (free_after_compilation): Free epilogue_delay_list.
1867         (prepare_function_start): Assert that previous compilation was freed.
1868
1869 2008-04-01  Jan Hubicka  <jh@suse.cz>
1870             Jim Wilson  <wilson@tuliptree.org>
1871             Andreas Tobler <andreast@gcc.gnu.org>
1872
1873         PR middle-end/35781
1874         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
1875         rtl.emit instead cfun->emit.
1876         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
1877         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
1878
1879 2008-04-01  Ben Elliston  <bje@au.ibm.com>
1880
1881         * doc/c-tree.texi (Function Basics): Fix grammatical error.
1882
1883 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
1884
1885         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
1886         New options
1887         (fprofile-use): Add var flag_profile_use
1888         * coverage.c (coverage_begin_output): Do not open a gcno file for
1889         output only if -ftest-coverage is set.
1890         Do not add getpwd() to gcda file path.
1891         (build_gcov_info): Check the new flag
1892         flag_profile_datafile_relative_path.
1893         (coverage_init): Use profile_data_prefix.
1894         Read profile counter only if flag_profile_use is set.
1895         * opts.c (common_handle_option): New option fprofile-use=,
1896         fprofile-dir=, fprofile-generate=.
1897         * toplev.c (profile_data_prefix): New variable definition.
1898         * toplev.h (profile_data_prefix): New declaration.
1899         * doc/invoke.tex (Option Summary, Optimization Options):
1900         Add new options.
1901
1902 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
1903
1904         * varasm.c (output_constant_pool_1): In LABEL_REF check,
1905         use tmp consistently.
1906
1907         PR target/35695
1908         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
1909         * config/ia64/ia64.c (rtx_needs_barrier): Handle
1910         UNSPEC_FR_RECIP_APPROX_RES.
1911         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
1912
1913 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
1914
1915         PR c/35750
1916         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
1917
1918 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1919
1920         PR middle-end/30186
1921         * fold-const.c (fold_indirect_ref_1): Support accessing non first
1922         element of the vector via a pointer.
1923
1924 2008-03-31  Ian Lance Taylor  <iant@google.com>
1925
1926         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
1927
1928 2008-03-31  Jan Hubicka  <jh@suse.cz>
1929
1930         * builtins.c (expand_builtin_setjmp_receiver): Update call of
1931         get_arg_pointer_save_area.
1932         * expr.c (init_expr): Just clear out rtl.expr.
1933         * function.c (free_after_compilation): Clear out whole RTL structure.
1934         (get_func_frame_size): Merge into ...
1935         (get_frame_size): ... this one.
1936         (assign_stack_local_1): Merge into ...
1937         (assign_stack_local): ... this one.
1938         (expand_function_end): Update call of get_arg_pointer_save_area.
1939         (get_art_pointer_save_area): Remove cfun argument.
1940         * function.h (emit_status): regno_pointer_align does not need length
1941         attribute. Move x_regno_reg_rtx to ...
1942         (regno_reg_rtx): ... new global array.
1943         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
1944         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
1945         apply_args_value, forced_labels, stack_pointer_delta):
1946         Update accestors.
1947         (struct varasm_status): Move here from varasm.c
1948         (struct rtl_data): New. Move here some fields from struct function.
1949         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1950         frame_offset, stack_check_probe_note, arg_pointer_save_area,
1951         used_temp_slots avail_temp_slots, temp_slot_level,
1952         nonlocal_goto_handler_labels): Update accesstors.
1953         (rtl): New global variable.
1954         (struct function): Move some fileds to rtl_data.
1955         (get_arg_pointer_save_area): Update prototype.
1956         * emit-rtl.c (rtl): Declare.
1957         (regno_reg_rtx): Declare.
1958         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1959         Update.
1960         (gen_reg_rtx): Update.
1961         (init_virtual_regs): Do not tate emit_status argument.
1962         (init_emit): Do not allocate emit.
1963         * varasm.c (varasm_statuc): Move to function.h.
1964         (n_deferred_constatns): Update accestor.
1965         (init_varasm_status): Do not allocate varasm_status.
1966         (force_const_mem, get_pool_size, output_constant_pool): Update.
1967         * stmt.c (force_label_rtx): Do not use x_ prefixes.
1968         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1969
1970 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
1971
1972         PR rtl-optimization/35729
1973         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
1974         references.
1975
1976 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1977
1978         PR target/32000
1979         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
1980         load/store if memory is unaligned.
1981         (*movti_rex64): Likewise.
1982
1983         * config/i386/predicates.md (misaligned_operand): New.
1984
1985 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
1986
1987         PR tree-opt/35431
1988         * tree-ssa-phiopt.c (conditional_replacement): Return early for
1989         complex types.
1990
1991 2008-03-31  Jan Beulich  <jbeulich@novell.com>
1992
1993         * config/ia64/constraints.md: Add 'j' constraint.
1994         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
1995         (movdi_internal): Likewise.
1996
1997 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
1998
1999         PR c/35748
2000         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
2001
2002 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2003
2004         PR target/35757
2005         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
2006         proper error message for the third argument on blendpd and
2007         blendps.
2008
2009         * config/i386/sse.md (blendbits): New.
2010         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
2011
2012 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
2013
2014         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
2015
2016 2008-03-30  Richard Guenther  <rguenther@suse.de>
2017
2018         PR middle-end/31023
2019         * fold-const.c (fold_sign_changed_comparison): Do leave
2020         conversions to base-types alone.
2021
2022 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2023
2024         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
2025         the link register if one altivec register is be saved.
2026
2027 2008-03-30  Ben Elliston  <bje@au.ibm.com>
2028
2029         * final.c (final_scan_insn): Remove if (0) code.
2030
2031 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
2032
2033         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
2034
2035 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
2036
2037         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
2038         of V4SFmode to ix86_binary_operator_ok.
2039
2040 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
2041
2042         * config/i386/i386.c (override_options): Initialize
2043         ix86_veclib_handler to ix86_veclibabi_svml when
2044         -mveclibabi=svml is used.
2045         (ix86_veclibabi_svml): New function for SVML ABI style
2046         vectorization support.
2047         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
2048
2049 2008-03-28  Rafael Espindola  <espindola@google.com>
2050
2051         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
2052         (tree_binary_nonnegative_warnv_p): Make it public.
2053         (tree_single_nonnegative_warnv_p): Make it public.
2054         (tree_invalid_nonnegative_warnv_p): Make it public.
2055         (tree_unary_nonzero_warnv_p): Make it public.
2056         (tree_binary_nonzero_warnv_p): Make it public
2057         (tree_single_nonzero_warnv_p): Make it public.
2058         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
2059         (extract_range_from_binary_expr): Split the expr argument.
2060         (extract_range_from_unary_expr): Split the expr argument.
2061         (extract_range_from_comparison): Split the expr argument.
2062         (extract_range_from_expr): Use the new aux functions.
2063         (vrp_evaluate_conditional_warnv): Use
2064         vrp_evaluate_conditional_warnv_with_ops.
2065         * tree.h (tree_unary_nonzero_warnv_p): Declare.
2066         (tree_binary_nonzero_warnv_p): Declare.
2067         (tree_single_nonzero_warnv_p): Declare.
2068         (tree_expr_nonzero_warnv_p): Declare.
2069         (tree_unary_nonnegative_warnv_p): Declare.
2070         (tree_binary_nonnegative_warnv_p): Declare.
2071         (tree_single_nonnegative_warnv_p): Declare.
2072         (tree_invalid_nonnegative_warnv_p): Declare.
2073
2074 2008-03-28  Richard Guenther  <rguenther@suse.de>
2075
2076         PR tree-optimization/30317
2077         PR tree-optimization/30911
2078         PR tree-optimization/34793
2079         * tree-vrp.c (set_and_canonicalize_value_range): New function.
2080         (struct assert_locus_d): New member EXPR.
2081         (register_new_assert_for): Add EXPR parameter to support
2082         ASSERT_EXPR <name, expr OP limit>.
2083         (register_edge_assert_for_1): Adjust callers.
2084         (find_assert_locations): Likewise.
2085         (process_assert_insertions_for): Build condition from expression.
2086         (extract_range_from_assert): Handle ASSERT_EXPRs
2087         of the form ASSERT_EXPR <name, expr OP limit>.
2088         (register_edge_assert_for_2): New helper registering
2089         asserts for comparisons.  Recognize range tests of the form
2090         (unsigned)i - CST1 OP CST2.
2091         (register_edge_assert_for_1): Use it.
2092         (register_edge_assert_for): Likewise.
2093         (needs_overflow_infinity): Integer sub-types
2094         do not need overflow infinities.
2095         (vrp_val_is_max): The extreme values of integer sub-types
2096         are those of the base type.
2097         (vrp_val_is_min): Likewise.
2098         * tree.def (ASSERT_EXPR): Document extra allowed conditional
2099         expressions.
2100
2101 2008-03-28  Nick Clifton  <nickc@redhat.com>
2102
2103         PR target/31110
2104         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2105         Return GENERAL_REGS for stack adjustment reloads.
2106
2107 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2108
2109         PR target/31334
2110         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
2111         const_vector when all the vectors are constant.
2112
2113 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
2114
2115         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
2116         comparisons.
2117         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
2118         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
2119         (scc_sf): New.
2120         (s<code>_sf): Use new scc_sf attribute for opcode names.
2121
2122 2008-03-27  Tom Tromey  <tromey@redhat.com>
2123
2124         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2125         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2126         config/spu/t-spu-elf, config/i386/t-interix,
2127         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2128         config/i386/x-darwin, config/i386/x-mingw32,
2129         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2130         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2131         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2132         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2133         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2134         config/rs6000/x-darwin, config/rs6000/t-rs6000,
2135         config/score/t-score-elf, config/arm/t-strongarm-pe,
2136         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2137         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2138         Revert automatic dependency patch.
2139
2140 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2141
2142         PR target/35657
2143         * config/i386/i386.c (ix86_function_arg_boundary): Align
2144         decimal floating point to its natural boundary.
2145
2146 2008-03-27  Richard Guenther  <rguenther@suse.de>
2147
2148         PR middle-end/35716
2149         * fold-const.c (fold_comparison): Restrict distinct decl
2150         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
2151         solely rely on operand_equal_p.
2152
2153 2008-03-27  Richard Guenther  <rguenther@suse.de>
2154
2155         PR c/32511
2156         * c-common.c (handle_weak_attribute): Reject combination of
2157         weak and inline.
2158
2159 2008-03-27  Richard Guenther  <rguenther@suse.de>
2160
2161         PR tree-optimization/32810
2162         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2163         conversions from DECL_INITIAL.
2164         (fold_const_aggregate_ref): Likewise from constructor elements.
2165
2166 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
2167
2168         * tree-affine.h (aff_combination_expand): Declare.
2169         (get_inner_reference_aff): Likewise.
2170         * tree-affine.c (aff_combination_expand): Split out from
2171         tree_to_aff_combination_expand.
2172         (get_inner_reference_aff): New function.
2173         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2174         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2175         (struct lim_aux_data): sm_done field removed.
2176         (mem_ref_loc_p, mem_ref_locs_p): New types.
2177         (struct mem_ref): Added id, stored, accesses_in_loop,
2178         indep_loop, dep_loop, indep_ref, dep_ref fields.
2179         Removed is_stored, locs and next fields.
2180         (memory_accesses): New variable.
2181         (movement_possibility): Do not allow moving statements
2182         that store to memory.
2183         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2184         New functions.
2185         (determine_max_movement): For statements with memory references,
2186         find the outermost loop in that the reference is independent.
2187         (move_computations_stmt): Mark the virtual operands for renaming.
2188         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2189         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2190         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2191         add_vop_ref_mapping, create_vop_ref_mapping_loop,
2192         create_vop_ref_mapping, analyze_memory_references,
2193         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2194         get_all_locs_in_loop, ref_always_accessed_p,
2195         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2196         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2197         store_motion_loop, store_motion): New functions.
2198         (struct vop_to_refs_elt): New type.
2199         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2200         memref_hash, memref_eq, hoist_memory_references): Rewritten.
2201         (schedule_sm): Replaced by...
2202         (execute_sm): ... this.
2203         (determine_lsm_ref, hoist_memory_references,
2204         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2205         find_more_ref_vops, free_mem_ref, free_mem_refs,
2206         determine_lsm_loop, determine_lsm): Removed.
2207         (tree_ssa_lim_finalize): Free data structures used by store motion.
2208         (tree_ssa_lim): Call analyze_memory_references.  Use
2209         store_motion instead of determine_lsm.
2210
2211 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
2212
2213         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2214         rename tmake_file to m68hc11/t-m68hc11.
2215         (mcore): Set inhibit_libc to true.
2216         * config.host (alpha*-dec-*vms*): Set extra_programs.
2217         (interix3*): Don't use host_xmake_file.
2218         * configure.ac: Let config.gcc override inhibit_libc.
2219         * configure: Regenerate.
2220
2221         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2222         * config/t-openbsd-thread: Remove commented out lines.
2223         
2224         * config/x-interix: Remove.
2225
2226         * config/m68hc11/t-m68hc11-gas: Rename to...
2227         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
2228
2229         * config/mcore/t-mcore: Remove T_CFLAGS.
2230         * config/mcore/t-mcore-pe: Likewise.
2231
2232 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
2233
2234         * configure.ac: Replace custom __GNU_SOURCE test with
2235         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
2236         * aclocal.m4: Regenerate.
2237         * configure: Regenerate.
2238         * config.in: Regenerate.
2239
2240 2008-03-27  Richard Guenther  <rguenther@suse.de>
2241
2242         * fold-const.c (target.h): Include.
2243         (fold_comparison): Fold comparison of addresses of decls
2244         that bind locally or of constants.  Consolidate address folding code.
2245         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2246         results from fold_binary_to_constant.
2247         (compare_values_warnv): Likewise.
2248
2249 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
2250
2251         PR middle-end/35429
2252         * fold-const.c (fold_truthop): Check for integeral types when folding
2253         a == 0 && b == 0 and a != 0 || b != 0 .
2254
2255 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
2256
2257         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2258
2259 2008-03-26  Andreas Schwab  <schwab@suse.de>
2260
2261         * doc/invoke.texi: Fix use of @item vs. @itemx.
2262
2263 2008-03-26  Tom Tromey  <tromey@redhat.com>
2264
2265         * Makefile.in (build/gensupport.o, build/print-rtl.o,
2266         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2267         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2268         build/gencodes.o, build/genconditions.o, build/genconfig.o,
2269         build/genconstants.o, build/genemit.o, build/genextract.o,
2270         build/genflags.o, build/genmddeps.o, build/genopinit.o,
2271         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2272         options.h.
2273
2274 2008-03-26  Richard Guenther  <rguenther@suse.de>
2275
2276         Revert
2277         2008-03-26  Richard Guenther  <rguenther@suse.de>
2278
2279         * fold-const.c (target.h): Include.
2280         (fold_comparison): Fold comparison of addresses of two decls
2281         that bind locally.  Consolidate address folding code.
2282
2283 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2284
2285         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2286         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2287         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2288         dconstsqrt2, dconstthird, dconste and/or dconst10.
2289         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2290         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2291         dconstsqrt2, dconste): Delete.
2292         (init_emit_once): Likewise.  Simplify initializing dconstm1.
2293         Constify variable.
2294         * real.c (get_real_const): New.
2295         * real.h (dconst3, dconst10, dconstm2, dconstthird,
2296         dconstsqrt2, dconste): Delete.
2297         (real_value_const, get_real_const): New.
2298
2299 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
2300
2301         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2302
2303         * config/i386/i386.c (ix86_function_arg_boundary): Check
2304         BIGGEST_ALIGNMENT instead of 128.
2305         (setup_incoming_varargs_64): Likewise.
2306
2307 2008-03-26  Tom Tromey  <tromey@redhat.com>
2308
2309         * Makefile.in (DEPFILES): Add missing '/'.
2310
2311 2008-03-26  Richard Guenther  <rguenther@suse.de>
2312
2313         * fold-const.c (target.h): Include.
2314         (fold_comparison): Fold comparison of addresses of two decls
2315         that bind locally.  Consolidate address folding code.
2316
2317 2008-03-26  Nick Clifton  <nickc@redhat.com>
2318
2319         PR target/31232
2320         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2321         not allow INT+INT as a legitimate addressing mode.
2322
2323 2008-03-26  Richard Guenther  <rguenther@suse.de>
2324
2325         * tree-flow.h (widen_bitfield): Remove declaration.
2326         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2327         (widen_bitfield): Remove function.
2328         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2329         code.
2330
2331 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2332
2333         PR target/31558
2334         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2335         error_mark_node's.
2336
2337 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
2338
2339         PR rtl-optimization/35232
2340         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2341         (forget_old_reloads_1, forget_marked_reloads): Don't clear
2342         reg_reloaded_call_part_clobbered here.
2343         (reload_regs_reach_end_p): New function.
2344         (reload_reg_rtx_for_input): New variable.
2345         (reload_reg_rtx_for_output): Likewise.
2346         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2347         when reassigning a pseudo register.  Load reloadreg from 
2348         reload_reg_rtx_for_input, moving the mode and register
2349         calculation to...
2350         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
2351         instead of the original when deciding whether an input reload
2352         would be a no-op or whether an output reload can be deleted.
2353         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2354         when setting up new_spill_reg_store.  Load it from
2355         reload_reg_rtx_for_output, moving the mode and register
2356         calculation to...
2357         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
2358         instead of the original when deciding whether an output reload
2359         would be a no-op.  Do the same when modifying insn notes.
2360         Use rtx_equal_p instead of == to compare the registers.
2361         (inherit_piecemeal_p): Take a mode and two register numbers
2362         as argument.
2363         (emit_reload_insns): Clear new_spill_reg_store for every hard
2364         register in the reload register.  Remove spill registers
2365         from reg_reloaded_valid before considering whether to record
2366         inheritance information for them.  Use reload_reg_rtx_for_output
2367         instead of reg_rtx when recording output reloads.  Use
2368         reload_reg_rtx_for_input instead of reg_rtx when recording
2369         input reloads.  Set or clear reg_reloaded_call_part_clobbered
2370         at the same time as setting reg_reloaded_valid.
2371         (delete_output_reload): Add a new_reload_reg parameter and use it
2372         instead of rld[j].reg_rtx.
2373         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2374         calls accordingly.
2375
2376 2008-03-25  Tom Tromey  <tromey@redhat.com>
2377
2378         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2379         (build/genattr.o): Likewise.
2380         (build/genattrtab.o): Likewise.
2381         (build/gencodes.o): Likewise.
2382         (build/genconfig.o): Likewise.
2383         (build/genconstants.o): Likewise.
2384         (build/genemit.o): Likewise.
2385         (build/genextract.o): Likewise.
2386         (build/genflags.o): Likewise.
2387
2388 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
2389         
2390         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2391         instead of size_int for integer types.
2392         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
2393         to match type of MINUS_EXPR.
2394         
2395 2008-03-25  Tom Tromey  <tromey@redhat.com>
2396
2397         * configure: Rebuilt.
2398         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2399         Makefile.
2400
2401 2008-03-25  Tom Tromey  <tromey@redhat.com>
2402
2403         * config/x-solaris (host-solaris.o): Update.
2404         * config/x-linux (host-linux.o): Update.
2405         * config/x-hpux (host-hpux.o): Update.
2406         * config/x-darwin (host-darwin.o): Update.
2407         * config/v850/t-v850e (v850-c.o): Update.
2408         * config/v850/t-v850 (v850-c.o): Update.
2409         * config/t-vxworks (vxworks.o): Update.
2410         * config/t-sol2 (sol2-c.o, sol2.o): Update.
2411         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2412         * config/spu/t-spu-elf (spu-c.o): Update.
2413         (spu.o): Remove.
2414         * config/sh/t-symbian (sh-c.o): Update.
2415         (symbian.o): Update.
2416         * config/sh/t-sh (sh-c.o): Update.
2417         * config/score/t-score-elf (score7.o, score3.o): Update.
2418         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2419         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2420         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2421         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2422         (rs6000.o): Remove.
2423         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2424         * config/m32c/t-m32c (m32c-pragma.o): Update.
2425         * config/ia64/t-ia64 (ia64-c.o): Update.
2426         * config/i386/x-mingw32 (host-mingw32.o): Update.
2427         * config/i386/x-i386 (driver-i386.o): Update.
2428         * config/i386/x-darwin (host-i386-darwin.o): Update.
2429         * config/i386/x-cygwin (host-cygwin.o): Update.
2430         * config/i386/t-nwld (nwld.o): Update.
2431         * config/i386/t-netware (netware.o): Update.
2432         * config/i386/t-interix (winnt.o): Update.
2433         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2434         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2435         msformat-c.o): Update.
2436         * config/bfin/t-bfin-linux (generated_files): Add
2437         linux-sysroot-suffix.h.
2438         * config/arm/t-wince-pe (pe.o): Update.
2439         * config/arm/t-strongarm-pe (pe.o): Update.
2440         * config/arm/t-pe (pe.o): Update.
2441         * config/arm/t-arm (arm-c.o): Update.
2442         * doc/install.texi (Prerequisites): Require make 3.80.
2443         * Makefile.in: Remove .o targets.
2444         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2445         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2446         (simple_generated_h, simple_generated_c): Move earlier.
2447         (generated_files): New variable.
2448         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2449         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2450         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2451         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2452         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2453         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2454         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2455         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2456         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2457         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2458         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2459         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2460         (.c.o): Remove.
2461         (COMPILE.base, COMPILE): New variables.
2462         (%.o): New pattern rule.
2463         (ALL_HOST_OBJS): New variable.
2464         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2465         (dummy-checksum.o, cc1-checksum.o): Remove.
2466         (DRIVER_SHLIB): New variable.
2467         (DRIVER_DEFINES): Use it.
2468         (gencondmd.c): Move out of build/.
2469         (s-conditions): Update.
2470         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2471         (ALL_BUILD_OBJS): Likewise.
2472         (build/%.o): Use BUILDCOMPILE.
2473         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2474         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2475         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2476         build/gencheck.o, build/gencodes.o, build/genconditions.o,
2477         build/genconfig.o, build/genconstants.o, build/genemit.o,
2478         build/genextract.o, build/genflags.o, build/genmddeps.o,
2479         build/genopinit.o, build/genoutput.o, build/genpeep.o,
2480         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2481         build/gen-protos.o, build/scan.o, build/fix-header.o,
2482         build/scan-decls.o): Simplify.
2483         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2484         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2485         prefix.o, toplev.o): Reduce to variable setting.
2486         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
2487         ($(out_object_file), gcc-options.o): New targets.
2488         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
2489         * configure: Rebuilt.
2490         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2491         * doc/sourcebuild.texi (Front End Directory): Document new variable.
2492
2493 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
2494
2495         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2496         complain when we hit an error, return ERROR_MARK_NODE.
2497
2498 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
2499
2500         * config/sh/constraints.md (Pso, Psz): New constraints.
2501         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2502         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2503
2504 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
2505
2506         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2507         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2508
2509 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
2510
2511         * config/sh/sh.md (prefetch): Add condition for SH2A target.
2512         (prefetch_sh2a): New.   
2513
2514 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
2515             Naveen.H.S  <naveen.hs@kpitcummins.com>
2516
2517         * config/sh/constraints.md (I28): New constraint.
2518         * config/sh/sh.c (broken_move): Add support for movi20s.
2519         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2520
2521 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
2522             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
2523             Naveen.H.S  <naveen.hs@kpitcummins.com>
2524
2525         * config/sh/sh.c (SH_ATTRIBUTES): Define.
2526         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2527         (print_operand): Handle resbank in %@ operand code.
2528         (sh_encode_section_info): New.
2529         (push_regs): Add conditions for resbank.
2530         (sh_expand_epilogue): Likewise.
2531         (sh_insert_attributes): Likewise.
2532         (sh_attribute_table): Likewise.
2533         (sh_handle_resbank_handler_attribute): New.
2534         (sh2a_handle_function_vector_handler_attribute): New.
2535         (sh2a_is_function_vector_call): New.
2536         (sh2a_get_function_vector_number): New.
2537         (sh2a_function_vector_p): New.
2538         (sh_cfun_resbank_handler_p): New.
2539         * config/sh/sh.md (calli): Emit jsr/n if possible.
2540         (calli_tbr_rel): New.
2541         (calli_pcrel): Emit jsr/n if possible.
2542         (return_i): Emit rts/n if possible.
2543         (call_valuei_tbr_rel): New.
2544         (call_valuei_pcrel): Add condition for SH2A target.
2545         (call_value): Likewise.
2546         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2547         (sh2a_get_function_vector_number): Likewise.
2548         (sh2a_is_function_vector_call): Likewise.
2549         * doc/extend.texi: Document TBR relative addressing of SH2A.
2550         (resbank): Add description for SH2A.
2551
2552 2008-03-24  Richard Guenther  <rguenther@suse.de>
2553
2554         PR c/22371
2555         * gimplify.c (gimplify_modify_expr): For frontend type-correct
2556         pointer assignments change conversions according to middle-end rules.
2557         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2558         * configure.ac: Include type checking in yes.
2559         * configure: Regenerate.
2560
2561 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2562
2563         * diagnostic.c (diagnostic_count_diagnostic): Delete.
2564         (diagnostic_report_diagnostic): Update. Handle ICEs here.
2565         
2566 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
2567
2568         * gthr-vxworks.h (UNUSED): Define.
2569
2570 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2571
2572         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
2573
2574 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
2575
2576         * doc/extend.texi (Function Attributes): Add missing comma in the
2577         example of the "alloc_size" attribute.
2578         
2579 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
2580
2581         Revert:
2582         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2583
2584         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2585         32bit host.
2586
2587         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
2588
2589         PR target/35496
2590         * stor-layout.c (update_alignment_for_field): Set minimum alignment
2591         of the underlying type of a MS bitfield layout to the natural
2592         alignment of the type.
2593
2594         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
2595
2596         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2597         to their natural alignment to avoid store forwarding stalls.
2598
2599 2008-03-22  Richard Guenther  <rguenther@suse.de>
2600
2601         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2602         For PHI nodes verify the address is invariant.
2603         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2604         (get_symbol_constant_value): Use is_gimple_min_invariant.
2605         (maybe_fold_stmt_indirect): Likewise.
2606
2607 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
2608
2609         PR rtl-optimization/33927
2610         * Makefile.in (dse.o): Depend on $(TM_P_H).
2611         * expr.h (extract_low_bits): Declare.
2612         * expmed.c (extract_low_bits): New function.
2613         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2614         * dse.c: Include tm_p.h.
2615         (find_shift_sequence): Remove the read_reg argument and return the
2616         read value.  Emit the instructions instead of returning them.
2617         Iterate on new_mode rather than calculating it each time.
2618         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
2619         source to NEW_MODE and extract_low_bits to convert the shifted
2620         value to READ_MODE.
2621         (replace_read): Allow the load and store to have different mode
2622         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
2623         or extraction instructions before trying the replacement.  Update
2624         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
2625
2626 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
2627
2628         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2629         to their natural alignment to avoid store forwarding stalls.
2630
2631 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2632
2633         PR target/27946
2634         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
2635         encouraging but not allowing gprs for input;
2636         change the input constraint to !f#r.
2637         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
2638         gprs for output;
2639         change the output constraint to !f#r.
2640
2641 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
2642
2643         PR target/13958
2644         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
2645         corresponding post-reload splitters.
2646         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
2647         when x87 FP math is selected.
2648         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
2649         New function prototype.
2650         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
2651         unreachable function to ease macroization of insn patterns.
2652
2653 2008-03-21  Martin Jambor  <mjambor@suse.cz>
2654
2655         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
2656         reference dumps if ddr is NULL or dependence is unknown.
2657
2658 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2659
2660         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
2661         unsigned extension into account.
2662         (ATOMIC_COMPARE_AND_SWAP): Likewise.
2663         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
2664         Do computations on a scratch register.
2665
2666 2008-03-21  Richard Guenther  <rguenther@suse.de>
2667
2668         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2669         Use is_gimple_min_invariant instead of TREE_INVARIANT.
2670         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2671         * tree-ssa-dom.c (record_equality): Likewise.
2672         * tree-inline.c (copy_body_r): Likewise.
2673         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
2674         TREE_INVARIANT.
2675
2676 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2677
2678         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
2679         as 'delete_unused' argument.
2680
2681 2008-03-20  Richard Guenther  <rguenther@suse.de>
2682
2683         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2684         special casing of constant qualifiers.
2685         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
2686         care about them in general.
2687         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
2688         regardless of their type.
2689         (fold_stmt_r): Forcefully fold *& if we end up with that.
2690
2691 2008-03-20  Paul Brook  <paul@codesourcery.com>
2692
2693         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
2694         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
2695         linker flags.
2696         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
2697         definition.
2698         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
2699         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
2700
2701 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
2702
2703         * common.opt (Wmudflap): New option.
2704         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
2705         (mx_register_decls): Likewise.
2706         (mudflap_finish_file): Likewise.
2707         * doc/invoke.texi: Document -Wno-mudflap.
2708
2709 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
2710
2711         * c-format.c (replace_format_name_to_system_name): New.
2712         (cmp_attribs): New.
2713         (convert_format_name_to_system_name): New.
2714         (decode_format_attr): Add use of convert_format_name_to_system_name.
2715         (format_types_orig): Add gnu_ prefix to names.
2716         (check_format_info_main): Special treating of \0 escaped names for
2717         supporting multi-character format specifiers as I32, I64.
2718         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
2719         (gnu_target_overrides_format_attributes): New.
2720         * c-format.h: Add structure target_ovr_attr to hold
2721         system specific formatter names.
2722         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
2723         msformat-c.o file to c_target_objs and cxx_target_objs.
2724         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2725         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
2726         (TARGET_N_FORMAT_TYPES): New.
2727         * config/i386/msformat-c.c: New.
2728         * config/i386/t-cygming: Add build rule for msformat-c.o.
2729         * doc/extend.texi: Add new format names gnu_* and ms_* and
2730         further details.
2731         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2732
2733 2008-03-20  Ira Rosen  <irar@il.ibm.com>
2734
2735         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
2736         optimizations turned on under -O3.
2737         (ftree-vectorize): Add that the flag is turned on with -O3.
2738
2739 2008-03-20  Ben Elliston  <bje@au.ibm.com>
2740
2741         * regmove.c (try_auto_increment): Fix spelling error in comment.
2742         * final.c (final_scan_insn): Likewise.
2743
2744 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
2745
2746         PR target/14552
2747         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2748         allocator preferences for "y" and "r" class registers.
2749         ("*mov<mode>_internal"): Ditto.
2750         ("*movv2sf_internal_rex64"): Ditto.
2751         ("*movv2sf_internal"): Ditto.
2752
2753 2008-03-19  Michael Matz  <matz@suse.de>
2754
2755         PR middle-end/35616
2756         * calls.c (expand_call): Check overlap of arguments with call
2757         address for sibcalls.
2758
2759 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
2760
2761         PR target/35496
2762         * stor-layout.c (update_alignment_for_field): Set minimum alignment
2763         of the underlying type of a MS bitfield layout to the natural
2764         alignment of the type.
2765
2766 2008-03-19  Jan Hubicka  <jh@suse.cz>
2767
2768         PR other/35094
2769         * toplev.c (decode_d_option): Handle all CPP flags.
2770         * tree-vrp.c: Update tree_pass descriptors.
2771         * regrename.c: Update tree_pass descriptors.
2772         * fwprop.c: Update tree_pass descriptors.
2773         * doc/invoke.texi: Remove documentation of dropped -d? flags.
2774         * tree-into-ssa.c: Update tree_pass descriptors.
2775         * tree-dump.c: Update tree_pass descriptors.
2776         * tree-complex.c: Update tree_pass descriptors.
2777         * tree-dump.h: Update tree_pass descriptors.
2778         * see.c: Update tree_pass descriptors.
2779         * cgraphbuild.c: Update tree_pass descriptors.
2780         * tracer.c: Update tree_pass descriptors.
2781         * tree-loop-distribution.c: Update tree_pass descriptors.
2782         * cgraph.c: Update tree_pass descriptors.
2783         * postreload-gcse.c: Update tree_pass descriptors.
2784         * postreload.c: Update tree_pass descriptors.
2785         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2786         * tree-tailcall.c: Update tree_pass descriptors.
2787         * tree-pass.h (tree_opt_pass): Rename to ...
2788         (opt_pass) ... this one; add "type" field and remove letter field.
2789         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2790         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2791         all_lowering_passes): Update declaration.
2792         * ipa-cp.c: Update tree_pass descriptors.
2793         * final.c: Update tree_pass descriptors.
2794         * omp-low.c: Update tree_pass descriptors.
2795         * tree-ssa-dse.c: Update tree_pass descriptors.
2796         * ipa-reference.c: Update tree_pass descriptors.
2797         * tree-ssa-uncprop.c: Update tree_pass descriptors.
2798         * auto-inc-dec.c: Update tree_pass descriptors.
2799         * reorg.c: Update tree_pass descriptors.
2800         * cgraphunit.c: Update tree_pass descriptors.
2801         * tree-ssa-copyrename.c: Update tree_pass descriptors.
2802         * tree-ssa-ccp.c: Update tree_pass descriptors.
2803         * df-core.c: Update tree_pass descriptors.
2804         * mode-switching.c: Update tree_pass descriptors.
2805         * tree-nomudflap.c: Update tree_pass descriptors.
2806         * modulo-sched.c: Update tree_pass descriptors.
2807         * ipa-pure-const.c: Update tree_pass descriptors.
2808         * cse.c: Update tree_pass descriptors.
2809         * web.c: Update tree_pass descriptors.
2810         * tree-stdarg.c: Update tree_pass descriptors.
2811         * tree-ssa-math-opts.c: Update tree_pass descriptors.
2812         * tree-ssa-dom.c: Update tree_pass descriptors.
2813         * tree-nrv.c: Update tree_pass descriptors.
2814         * tree-ssa-alias.c: Update tree_pass descriptors.
2815         * loop-init.c: Update tree_pass descriptors.
2816         * gimple-low.c: Update tree_pass descriptors.
2817         * ipa-inline.c: Update tree_pass descriptors.
2818         * tree-ssa-sink.c: Update tree_pass descriptors.
2819         * global.c: Update tree_pass descriptors.
2820         * ifcvt.c: Update tree_pass descriptors.
2821         * jump.c: Update tree_pass descriptors.
2822         * predict.c: Update tree_pass descriptors.
2823         * tree-ssa-loop.c: Update tree_pass descriptors.
2824         * recog.c: Update tree_pass descriptors.
2825         * dse.c: Update tree_pass descriptors.
2826         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2827         * tree-eh.c: Update tree_pass descriptors.
2828         * regmove.c: Update tree_pass descriptors.
2829         * local-alloc.c
2830         * function.c: Update tree_pass descriptors.
2831         * tree-vectorizer.c: Update tree_pass descriptors.
2832         * gcse.c: Update tree_pass descriptors.
2833         * ipa-type-escape.c: Update tree_pass descriptors.
2834         * tree-if-conv.c: Update tree_pass descriptors.
2835         * init-regs.c: Update tree_pass descriptors.
2836         * ipa.c: Update tree_pass descriptors.
2837         * tree-ssa-phiopt.c: Update tree_pass descriptors.
2838         * rtl-factoring.c: Update tree_pass descriptors.
2839         * lower-subreg.c: Update tree_pass descriptors.
2840         * bt-load.c: Update tree_pass descriptors.
2841         * tree-dfa.c: Update tree_pass descriptors.
2842         * except.c: Update tree_pass descriptors.
2843         * emit-rtl.c: Update tree_pass descriptors.
2844         * cfgexpand.c: Update tree_pass descriptors.
2845         * tree-cfgcleanup.c: Update tree_pass descriptors.
2846         * cfgcleanup.c: Update tree_pass descriptors.
2847         * tree-ssa-pre.c: Update tree_pass descriptors.
2848         * tree-sra.c: Update tree_pass descriptors.
2849         * tree-mudflap.c: Update tree_pass descriptors.
2850         * tree-ssa-copy.c: Update tree_pass descriptors.
2851         * cfglayout.c: Update tree_pass descriptors.
2852         * tree-ssa-forwprop.c: Update tree_pass descriptors.
2853         * tree-ssa-dce.c: Update tree_pass descriptors.
2854         * tree-ssa.c: Update tree_pass descriptors.
2855         * regclass.c: Update tree_pass descriptors.
2856         * integrate.c: Update tree_pass descriptors.
2857         * tree-optimize.c: Update tree_pass descriptors.
2858         * tree-ssa-phiprop.c: Update tree_pass descriptors.
2859         * tree-object-size.c: Update tree_pass descriptors.
2860         * combine.c: Update tree_pass descriptors.
2861         * tree-outof-ssa.c: Update tree_pass descriptors.
2862         * bb-reorder.c: Update tree_pass descriptors.
2863         * stack-ptr-mod.c: Update tree_pass descriptors.
2864         * var-tracking.c: Update tree_pass descriptors.
2865         * tree-profile.c: Update tree_pass descriptors.
2866         * tree-vect-generic.c: Update tree_pass descriptors.
2867         * reg-stack.c: Update tree_pass descriptors.
2868         * sched-rgn.c: Update tree_pass descriptors.
2869         * tree-ssa-structalias.c: Update tree_pass descriptors.
2870         * tree-cfg.c: Update tree_pass descriptors.
2871         * passes.c (current_pass): Update declaration.
2872         (finish_optimization_passes): Update.
2873         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2874         (register_one_dump_file, register_dump_files_1, next_pass_1):
2875         Update arguments.
2876         (init_optimization_passes): Update handling of new types.
2877         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2878         * ipa-struct-reorg.c: Update tree_pass descriptors.
2879         * tree-ssa-reassoc.c: Update tree_pass descriptors.
2880         * combine-stack-adj.c: Update tree_pass descriptors.
2881         * cfgrtl.c: Update tree_pass descriptors.
2882         * dce.c: Update tree_pass descriptors.
2883         * tree-ssanames.c: Update tree_pass descriptors.
2884
2885 2008-03-19  Richard Guenther  <rguenther@suse.de>
2886
2887         PR middle-end/35609
2888         * tree-ssa.c (walk_data): New structure.
2889         (warn_uninitialized_var): If not always_executed warn with "maybe"
2890         instead of "is".
2891         (execute_early_warn_uninitialized): Compute post-dominators.
2892         Initialize always_executed before processing each basic block.
2893
2894 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
2895
2896         PR target/35504
2897         * config/i386/i386.c (x86_this_parameter): Calculate correct location
2898         of "this" pointer when "regparm = N" or "fastcall" is in effect.
2899
2900 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2901
2902         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2903
2904 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
2905
2906         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2907         is true.
2908         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2909         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2910         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
2911         target after ignore has been set, and move there also the commputation
2912         of subtarget and original_target.
2913         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2914         (LANG_HOOKS_INITIALIZER): Remove it.
2915         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2916
2917 2008-03-18  Richard Guenther  <rguenther@suse.de>
2918
2919         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2920         found an expression with constants, note that in the VN for the lhs.
2921         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2922         fold them to constants if possible.  Run cleanup_cfg if done so.
2923         (execute_pre): Return todo.
2924         (do_pre): Likewise.
2925         (execute_fre): Likewise.
2926         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2927         of constants.
2928         (get_prop_source_stmt): Look through pointer conversions.
2929
2930 2008-03-18  Jan Hubicka  <jh@suse.cz>
2931
2932         * tree-pretty-print.c: Include predict.h.
2933         (dump_generic_node): Dump predictor.
2934         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2935         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2936         * gimple-low.c (lower_stmt): Likewise.
2937         * expr.c (expand_expr_real): Likewise.
2938         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2939         them.
2940         (build_predict_expr, build_predict_expr): New.
2941         * predict.h (predictor_name, build_predict_expr): Update.
2942         * c-typeck.c (c_finish_bc_stmt): Add prediction.
2943         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2944         * predict.def (PRED_CONTINUE): Update hitrate.
2945         * tree.def (PREDICT_EXPR): Define.
2946         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2947         do not handle BIND_EXPR.
2948         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2949         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2950         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2951         operands.
2952
2953 2008-03-18  Michael Matz  <matz@suse.de>
2954
2955         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2956
2957 2008-03-18  Richard Guenther  <rguenther@suse.de>
2958
2959         * tree-gimple.h (is_gimple_invariant_address): Declare.
2960         (is_gimple_constant): Likewise.
2961         * tree-gimple.c (is_gimple_constant): New function.
2962         (is_gimple_invariant_address): Likewise.
2963         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2964         and is_gimple_invariant_address.
2965         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2966         previous change.
2967         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2968         an addressable base.
2969
2970 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2971
2972         PR middle-end/35611
2973         * gimplify.c (gimplify_expr): Gimplify second operand of
2974         OMP_ATOMIC_LOAD.
2975
2976 2008-03-17  Richard Guenther  <rguenther@suse.de>
2977
2978         PR tree-optimization/19637
2979         * fold-const.c (fold_unary): Remove restrictions of removing
2980         intermediate pointer-conversions (P2)(P1)P0.
2981         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
2982         conversion to void pointer.
2983         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
2984
2985 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
2986
2987         PR debug/31510
2988         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
2989         emulated thread local variables.
2990
2991 2008-03-16  Richard Guenther  <rguenther@suse.de>
2992
2993         PR middle-end/35607
2994         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2995         expand TREE_INVARIANT operations that are not gimple invariant.
2996
2997 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
2998
2999         * doc/extend.texi (Alignment): Say that the ABI controls
3000         the __alignof__ for non-strict-alignment targets rather
3001         than being a recommendation.
3002
3003 2008-03-15  Paul Brook  <paul@codesourcery.com>
3004
3005         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
3006         annotations.
3007         (arm_output_fn_unwind): Mark functions that can not be unwound.
3008
3009 2008-03-15  Paul Brook  <paul@codesourcery.com>
3010
3011         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
3012         extension instructions.
3013
3014 2008-03-15  Richard Guenther  <rguenther@suse.de>
3015
3016         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
3017         and fold constant aggregate refs.
3018         (fold_const_aggregate_ref): Handle string constants
3019         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
3020         (evaluate_stmt): Simplify now that ccp_fold folds constant
3021         aggregate refs.
3022
3023 2008-03-15  Paul Brook  <paul@codesourcery.com>
3024
3025         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
3026         (extzv): Use gen_extzv_t2.
3027         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
3028
3029 2008-03-15  Richard Guenther  <rguenther@suse.de>
3030
3031         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
3032         (fold_const_aggregate_ref): Likewise.
3033         (get_value): Return NULL if we don't have any values.
3034         (ccp_finalize): Set const_val to NULL after freeing it.
3035         * tree-flow.h (get_symbol_constant_value): Declare.
3036         (fold_const_aggregate_ref): Likewise.
3037         * tree-ssa-sccvn.c (try_to_simplify): Use them.
3038
3039 2008-03-15  Richard Guenther  <rguenther@suse.de>
3040
3041         PR middle-end/35593
3042         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
3043         to not produce negative array indices if not allowed.  Add
3044         parameter to indicate that.
3045         (maybe_fold_offset_to_component_ref): Allow negative array
3046         indices only for the first member of a structure.
3047         (maybe_fold_offset_to_reference): Allow negative array indices.
3048         (maybe_fold_stmt_addition): Likewise.
3049
3050 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
3051             Anatoly Sokolov <aesok@post.ru>
3052
3053         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
3054         (avr_arch): Add ARCH_AVR6.
3055         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
3056         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
3057         instead of fixed value 2.
3058         (print_operand_address): Use gs() asm specifier instead of pm().
3059         (avr_assemble_integer): (Ditto.).
3060         (avr_output_addr_vec_elt): (Ditto.).
3061         (print_operand): Handle "!" code.
3062         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
3063         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
3064         (AVR_HAVE_EIJMP_EICALL): Define.
3065         (AVR_3_BYTE_PC): Redefine.
3066         (AVR_2_BYTE_PC): (Ditto.).
3067         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
3068         (LINK_SPEC): Add atmega2560 and atmega2561.
3069         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
3070         (crtm2561.o).
3071         * config/avr/avr.md (call_insn): Use eicall instead of icall 
3072         for 3 byte PC devices.
3073         (call_value_insn): (Ditto.).
3074         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
3075         (indirect_jump): Use only for for 2 byte PC devices.
3076         (*tablejump): (Ditto.).
3077         (*indirect_jump_avr6): Add insn.
3078         (*tablejump_rjmp): Don't use for 3 byte PC devices.
3079         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
3080         instead of ijmp for 3 byte PC devices.
3081         (__tablejump2__): (Ditto.).
3082         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
3083         (MULITLIB_DIRNAMES): (Ditto.). 
3084         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
3085
3086 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
3087
3088         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
3089         "sse2_umulsidi3".  Use V1DI mode for operand 0.
3090         ("mmx_psadbw"): Use V1DI mode for operand 0.
3091         * config/i386/i386-modes.def (V1SI): New vector mode.
3092         * config/i386/i386.c (struct builtin_description)
3093         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
3094         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
3095         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
3096         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
3097         v1di_ftype_v8qi_v8qi type.
3098         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
3099
3100         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
3101         __builtin_ia32_pmuludq]: Fix the mode of return value.
3102
3103 2008-03-15  Richard Guenther  <rguenther@suse.de>
3104
3105         PR middle-end/35595
3106         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
3107         being a PHI_NODE.
3108
3109 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
3110         
3111         * doc/invoke.texi (Option Summary, Xtensa Options): Document
3112         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
3113         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
3114         unless TARGET_SERIALIZE_VOLATILE is enabled.
3115         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3116         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
3117         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
3118
3119 2008-03-14  Richard Guenther  <rguenther@suse.de>
3120
3121         PR tree-optimization/34172
3122         * tree-flow.h (refs_may_alias_p): Declare.
3123         (get_single_def_stmt): Likewise.
3124         (get_single_def_stmt_from_phi): Likewise.
3125         (get_single_def_stmt_with_phi): Likewise.
3126         * tree-dfa.c (refs_may_alias_p): New function.
3127         (get_single_def_stmt): Likewise.
3128         (get_single_def_stmt_from_phi): Likewise.
3129         (get_single_def_stmt_with_phi): Likewise.
3130         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3131         (vn_reference_lookup_1): New helper function.
3132         (vn_reference_lookup): Walk the virtual use-def chain to
3133         continue searching for a match if the def does not alias the
3134         reference we are looking for.
3135
3136 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
3137
3138         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
3139         archive and Perzl.  Update The Written Word listing.
3140
3141 2008-03-14  Richard Guenther  <rguenther@suse.de>
3142
3143         PR tree-optimization/34043
3144         PR tree-optimization/33989
3145         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3146         when doing FRE.
3147         (bitmap_find_leader): Use extra argument to verify dominance
3148         relationship inside a basic-block.
3149         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3150         (find_leader_in_sets): Adjust.
3151         (create_component_ref_by_pieces): Take extra argument for
3152         dominance check, handle lookup failures.
3153         (find_or_generate_expression): Likewise.
3154         (create_expression_by_pieces): Likewise.
3155         (insert_into_preds_of_block): Adjust.
3156         (create_value_expr_from): If asked for, verify all operands
3157         are in the blocks AVAIL_OUT set.
3158         (make_values_for_stmt): Check for SSA_NAMEs that are life
3159         over an abnormal edge.
3160         (compute_avail): Remove such check.
3161         (do_SCCVN_insertion): New function.
3162         (eliminate): If we do not find a leader suitable for replacement
3163         insert a replacement expression from SCCVN if available.
3164         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3165         (struct vn_ssa_aux): Add needs_insertion flag.
3166         * tree-ssa-sccvn.c (may_insert): New global flag.
3167         (copy_reference_ops_from_ref): Value-number union member access
3168         based on its size, not type and member if insertion is allowed.
3169         (visit_reference_op_load): For a weak match from union type
3170         punning lookup a view-converted value and insert a SSA_NAME
3171         for that value if that is not found.
3172         (visit_use): Make dumps shorter.  Do not disallow value numbering
3173         SSA_NAMEs that are life over an abnormal edge to constants.
3174         (free_scc_vn): Release inserted SSA_NAMEs.
3175         (run_scc_vn): New flag to specify whether insertion is allowed.
3176         Process SSA_NAMEs in forward order.
3177         * tree-ssa-loop-im.c (for_each_index): Handle invariant
3178         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3179         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3180         pointer type to/from integral types that do not change the
3181         precision to regular conversions.
3182
3183 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
3184
3185         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3186         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3187         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3188         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3189         input arguments and the mode of return value.  Built-in functions
3190         that operate on whole 64-bit MMX register now use V1DI mode.
3191
3192 2008-03-13  Alon Dayan  <alond@il.ibm.com>
3193             Olga Golovanevsky  <olga@il.ibm.com>
3194
3195         PR tree-optimization/35041
3196         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3197         to locate the right position in a statement.
3198
3199 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
3200
3201         PR target/34000
3202         PR target/35553
3203         * config/i386/xmmintrin.h:  Change all static inline functions to
3204         extern inline and add __gnu_inline__ attribute.
3205         * config/i386/bmintrin.h: Ditto.
3206         * config/i386/smmintrin.h: Ditto.
3207         * config/i386/tmmintrin.h: Ditto.
3208         * config/i386/mmintrin-common.h: Ditto.
3209         * config/i386/ammintrin.h: Ditto.
3210         * config/i386/emmintrin.h: Ditto.
3211         * config/i386/pmmintrin.h: Ditto.
3212         * config/i386/mmintrin.h: Ditto.
3213         * config/i386/mm3dnow.h: Ditto.
3214
3215 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
3216
3217         PR middle-end/35185
3218         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3219         (lower_omp_2): New function.
3220         (lower_omp_1, lower_omp): Rewritten.
3221
3222 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
3223
3224         PR 35054
3225         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3226         with the phrase "Microsoft Windows compilers".
3227         (Push/Pop Macro Pragmas): New subsection. Document
3228         #pragma push_macro and pragma pop_macro.
3229
3230 2008-03-12  Paul Brook  <paul@codesourcery.com>
3231
3232         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3233
3234 2008-03-12  Paul Brook  <paul@codesourcery.com>
3235
3236         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3237         (thumb2_alusi3_short): Exclude PLUS and MINUS.
3238         (thumb2_addsi_shortim): Rename ...
3239         (thumb2_addsi_short): ... to this.  Allow register operands.
3240         (thumb2_subsi_short): New pattern.
3241         (thumb2_one_cmplsi2_short,
3242         thumb2_negsi2_short): New patterns and peepholes.
3243
3244 2008-03-12  Paul Brook  <paul@codesourcery.com>
3245
3246         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3247
3248 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
3249
3250         * config/i386/i386.md (int_cond): New code iterator.
3251         (fp_cond): Ditto.
3252         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3253         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3254         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3255         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3256         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3257         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3258         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3259         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3260
3261 2008-03-12  Paul Brook  <paul@codesourcery.com>
3262
3263         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3264         instead of {arm,thumb}_compute_save_reg_mask.
3265         (output_return_instruction): Ditto.
3266         (thumb_unexpanded_epilogue): Ditto.
3267         (thumb1_expand_prologue): Ditto.
3268         (thumb1_output_function_prologue): Ditto.
3269         (arm_set_return_address): Ditto.
3270         (thumb_set_return_address): Ditto.
3271         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
3272         regs to achieve stack alignment.
3273         (thumb1_compute_save_reg_mask): Fix compiler warning.
3274         (arm_output_epilogue): Use offsets->saved_regs_mask.
3275         Adjust stack pointer by poping call clobered registers.
3276         (arm_expand_prologue): Use offsets->saved_regs_mask.
3277         Adjust stack pointer by pushing extra registers.
3278         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3279
3280 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
3281
3282         PR tree-opt/35422
3283         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3284         conversion to the operands of a multiplication.
3285
3286 2008-03-12  Richard Guenther  <rguenther@suse.de>
3287
3288         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3289         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3290         * timevar.def (TV_TREE_PHIPROP): Add.
3291         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
3292         pass description.  Use TV_TREE_PHIPROP.
3293         * tree-ssa-forwprop.c: Remove phiprop code.
3294
3295 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
3296
3297         PR middle-end/35549
3298         * omp-low.c (maybe_lookup_decl): Constify first argument.
3299         (use_pointer_for_field): Change last argument from bool to
3300         omp_context *.  Disallow shared copy-in/out in nested
3301         parallel if decl is shared in outer parallel too.
3302         (build_outer_var_ref, scan_sharing_clauses,
3303         lower_rec_input_clauses, lower_copyprivate_clauses,
3304         lower_send_clauses, lower_send_shared_vars): Adjust callers.
3305
3306 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
3307             Ira Rosen  <irar@il.ibm.com>
3308
3309         * tree-vectorizer.c (free_stmt_vec_info): New function.
3310         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
3311         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
3312         * tree-vectorizer.h (free_stmt_vec_info): Declare.
3313         * tree-vect-transform.c (vectorizable_conversion): Free
3314         vec_oprnds0 if it was allocated.
3315         (vect_permute_store_chain): Remove unused VECs.
3316         (vectorizable_store): Free VECs that are allocated in the..
3317         function.
3318         (vect_transform_strided_load, vectorizable_load): Likewise.
3319         (vect_remove_stores): Simplify the code.
3320         (vect_transform_loop): Move code to vect_remove_stores().
3321         Call vect_remove_stores() and free_stmt_vec_info().
3322
3323 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3324
3325         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
3326         TARGET_HPUX.  Revise comment.
3327         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
3328         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
3329         Use sr4 variant of `be' instruction when not generating PIC code.
3330         (attr_length_call): Adjust for above change.
3331
3332 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3333
3334         * ipa-reference.c (static_execute): Remove module_statics_const and
3335         associated setting code.
3336
3337 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
3338
3339         PR target/35540
3340         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
3341         predicate for operand 1.
3342         (paritysi2_cmp): Use register_operand predicate for operand 2.
3343         Use earlyclobber modifier for operand 1.  Remove support for
3344         memory operands.
3345         (paritydi2_cmp): Use register_operand predicate for operand 3.
3346         Use earlyclobber modifier for operand 1.  Remove support for
3347         memory operands.
3348
3349 2008-03-11  Paul Brook  <paul@codesourcery.com>
3350             Vladimir Prus  <vladimir@codesourcery.com>
3351
3352         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
3353         (arm_compute_save_reg0_reg12_mask): Always
3354         check if register 11 must be saved.  Always safe hard frame pointer
3355         when frame_pointer_needeed.
3356         (arm_compute_save_reg_mask): Save IP and PC
3357         only with apcs frames.
3358         (arm_output_epilogue): Adjust Thumb2 codepath to
3359         be also invoked and work for ARM non-apcs frames.
3360         (arm_expand_prologue): Don't bother saving IP
3361         for non-apcs frame, since it's not clobbered by
3362         prologue code.  Implement non-apcs frame
3363         layout.
3364
3365 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
3366
3367         PR rtl-optimization/35281
3368         * expr.c (convert_move): Use a new pseudo for the intermediate
3369         from_mode->word_mode result.
3370
3371 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
3372
3373         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
3374         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
3375         * toplev.c (compile_file): Don't call it.
3376
3377 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
3378
3379         PR middle-end/35526
3380         * expr.c (store_expr): Call emit_block_move if the mode
3381         of "temp" RTX is BLKmode.
3382
3383 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3384             Richard Guenther  <rguenther@suse.de>
3385
3386         PR tree-optimization/31358
3387         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
3388         the step with a NULL_TREE.
3389         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
3390         to sizetype if type is a pointer type.
3391         (add_candidate_1): Don't convert the base and step to
3392         the generic type if the orginal type is a pointer type.
3393         (add_iv_value_candidates): Use sizetype for the step
3394         if type is a pointer type.
3395         (cand_value_at): Likewise.
3396         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
3397         for pointer types.
3398         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
3399         Don't convert the tem affine to the type.
3400         (add_elt_to_tree): Use sizetype for the step if a pointer.
3401         Use POINTER_PLUS_EXPR for pointers.
3402         (aff_combination_to_tree): Use sizetype for the step if a
3403         pointer.
3404
3405 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
3406
3407         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3408         Remove commutativity hint.
3409
3410 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
3411
3412         PR c/35438
3413         PR c/35439
3414         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
3415         errorneous type.  Check that v is a VAR_DECL.
3416
3417         PR middle-end/35099
3418         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
3419
3420 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3421
3422         PR tree-optimization/35494
3423         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
3424         may be overriden at link and run time.
3425
3426 2008-03-10  Richard Guenther  <rguenther@suse.de>
3427
3428         PR tree-optimization/34677
3429         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
3430         (poolify_tree): Likewise.
3431         (modify_expr_template): Likewise.
3432         (poolify_modify_stmt): Likewise.
3433         (insert_fake_stores): Handle all component-ref style stores
3434         in addition to INDIRECT_REF.  Also handle complex types.
3435         Do not poolify the inserted load.
3436         (realify_fake_stores): Do not rebuild the tree but only
3437         make it a SSA_NAME copy.
3438         (init_pre): Remove initialzation of modify_expr_template.
3439         Do not allocate modify_expr_node_pool.
3440         (fini_pre): Do not free modify_expr_node_pool.
3441
3442 2008-03-10  Paul Brook  <paul@codesourcery.com>
3443
3444         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3445         to avoid conflicts.
3446
3447 2008-03-10  Paul Brook  <paul@codesourcery.com>
3448             Mark Shinwell  <shinwell@codesourcery.com>
3449
3450         * config/arm/cortex-r4.md: New.
3451         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3452         insn attributes.
3453         * config/arm/arm.md: Include cortex-r4.md.
3454         (insn): Add smmls, sdiv and udiv values.
3455         (generic_sched): Don't use generic scheduling for Cortex-R4.
3456         (arm_issue_rate): New function.
3457         (TARGET_SCHED_ISSUE_RATE): Define.
3458
3459 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
3460
3461         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3462
3463 2008-03-10  Richard Guenther  <rguenther@suse.de>
3464
3465         * tree-ssa-pre.c (get_sccvn_value): Simplify.
3466         (compute_avail): Do not add stmt uses to AVAIL_OUT.
3467
3468 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
3469
3470         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3471         Set default to true.
3472
3473 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3474
3475         * c.opt (Wsynth): Deprecate.
3476         * doc/invoke.texi (Option Summary, Warning Options): Document
3477         -Wno-format-contains-nul.
3478
3479 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
3480
3481         PR target/35496
3482         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3483         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3484
3485 2008-03-09  Ira Rosen  <irar@il.ibm.com>
3486
3487         * config/rs6000/rs6000.c (builtin_description): Rename vector
3488         left shift operations.
3489         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3490         (altivec_vsl<VI_char>): Rename to ...
3491         (ashl<mode>3): ... new name.
3492         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3493         gen_ashlv4si3.
3494         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3495
3496 2008-03-08  Richard Guenther  <rguenther@suse.de>
3497
3498         * coverage.h (tree_coverage_counter_addr): Declare.
3499         * coverage.c (tree_coverage_counter_addr): New function.
3500         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
3501         before using again.
3502         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
3503         (tree_gen_one_value_profiler): Likewise.
3504         (tree_gen_ic_profiler): Likewise.
3505         (tree_gen_average_profiler): Likewise.
3506         (tree_gen_ior_profiler): Likewise.
3507
3508 2008-03-08  Richard Guenther  <rguenther@suse.de>
3509
3510         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
3511         (vn_binary_op_insert): Likewise.
3512         (vn_unary_op_lookup): Likewise.
3513         (vn_unary_op_insert): Likewise.
3514         (vn_nary_op_lookup): Declare.
3515         (vn_nary_op_insert): Likewise.
3516         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
3517         and binary hashes, use a single obstack for unary_op_pool
3518         and binary_op_pool.
3519         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
3520         a single struct vn_nary_op_s.  Store tree code length and
3521         a variable number of operands.
3522         (struct vn_reference_op_struct): Remove unused op2.
3523         (vn_reference_op_eq): Do not compare op2.
3524         (vn_reference_op_compute_hash): Do not compute hash of op2.
3525         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
3526         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
3527         with vn_nary_op_compute_hash.
3528         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
3529         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
3530         vn_nary_op_lookup.
3531         (vn_unary_op_insert, vn_binary_op_insert): Replace with
3532         vn_nary_op_insert.
3533         (visit_unary_op): Call nary functions.
3534         (visit_binary_op): Likewise.
3535         (process_scc): Adjust for struct vn_tables_s changes.
3536         (allocate_vn_table): Likewise.
3537         (free_vn_table): Likewise.
3538         * tree-vn.c (vn_add): Call nary functions.
3539         (vn_lookup): Likewise.
3540
3541 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
3542
3543         PR target/35498
3544         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
3545         wdst back after sync_compare_and_swapqhi_internal.
3546
3547 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
3548
3549         PR target/22152
3550         * config/i386/i386-modes.def (V1DI): New vector mode.
3551         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
3552         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
3553         (MMXMODE248): Ditto.
3554         (MMXMODE): Add V1DI mode.
3555         (mmxvecsize): Change DI mode to V1DI mode.
3556         ("mov<mode>): Use MMXMODEI8 mode iterator.
3557         ("*mov<mode>_internal_rex64"): Ditto.
3558         ("*mov<mode>_internal"): Ditto.
3559         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
3560         ("mmx_sub<mode>3"): Ditto.
3561         ("mmx_adddi3"): Remove insn pattern.
3562         ("mmx_subdi3"): Ditto.
3563         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
3564         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
3565         ("mmx_ashl<mode>3"): Ditto.
3566         ("mmx_lshrdi3"): Remove insn pattern.
3567         ("mmx_ashldi3"): Ditto.
3568         * config/i386/i386.c (classify_argument): Handle V1DImode.
3569         (function_arg_advance_32): Ditto.
3570         (function_arg_32): Ditto.
3571         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
3572         mmx_addv1di3 insn pattern.
3573         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
3574         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
3575         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
3576         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
3577         Remove definitions of built-in functions.
3578         (V1DI_type_node): New node.
3579         (v1di_ftype_v1di_int): Ditto.
3580         (v1di_ftype_v1di_v1di): Ditto.
3581         (v2si_ftype_v2si_si): Ditto.
3582         (v4hi_ftype_v4hi_di): Remove node.
3583         (v2si_ftype_v2si_di): Ditto.
3584         (ix86_init_mmx_sse_builtins): Handle V1DImode.
3585         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
3586         Redefine builtins using def_builtin_const with *_ftype_*_int node.
3587         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
3588         Add new builtins using def_builtin_const.
3589         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
3590         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
3591         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
3592         * config/i386/mmintrin.h (__v1di): New typedef.
3593         (_mm_add_si64): Cast arguments to __v1di type.
3594         (_mm_sub_si64): Ditto.
3595         (_mm_sll_pi16): Cast __count to __v4hi type.
3596         (_mm_sll_pi32): Cast __count to __v2si type.
3597         (_mm_sll_si64): Cast arguments to __v1di type.
3598         (_mm_srl_pi16): Cast __count to __v4hi type.
3599         (_mm_srl_pi32): Cast __count to __v2si type.
3600         (_mm_srl_si64): Cast arguments to __v1di type.
3601         (_mm_sra_pi16): Cast __count to __v4hi type.
3602         (_mm_sra_pi32): Cast __count to __v2si type.
3603         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
3604         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
3605         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
3606         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
3607         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
3608         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
3609         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
3610         (_mm_srai_pi32): Use __builtin_ia32_psradi.
3611         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
3612         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3613         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3614         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
3615
3616 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
3617
3618         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
3619
3620 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
3621
3622         PR target/35373
3623         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
3624         reg+const addressing for Altivec modes.  Don't generate reg+reg
3625         addressing for TFmode or TDmode quantities.
3626
3627 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
3628
3629         * c-common.c (vector_types_convertible_p): Call langhook
3630         instead of comptypes.
3631
3632 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3633
3634         PR tree-opt/35402
3635         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
3636         integral and scalar float variables which have a
3637         NULL DECL_INITIAL.
3638
3639 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
3640
3641         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
3642         dwarf_register_span hook when emitting unwind information for
3643         register-to-memory saves.
3644         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
3645         (rs6000_frame_related): Remove call to spe_synthesize_frame.
3646
3647 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
3648
3649         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
3650         for the same VAR_DECL.
3651
3652 2008-03-06  Tom Tromey  <tromey@redhat.com>
3653
3654         * treelang: Delete.
3655         * doc/standards.texi (Standards): Don't mention treelang.
3656         * doc/invoke.texi (Overall Options): Don't mention treelang.
3657         * doc/install.texi (Prerequisites): Don't mention bison or
3658         treelang.
3659         (Configuration): Don't mention treelang.
3660         (Building): Likewise.
3661         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
3662
3663 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
3664
3665         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
3666         word-extractions out of a multi-word object.
3667
3668 2008-03-06  Richard Guenther  <rguenther@suse.de>
3669
3670         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
3671         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
3672         result type and precision.
3673         * expr.c (get_inner_reference): Set unsignedp based on the result
3674         type of BIT_FIELD_REF.
3675         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
3676         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
3677         (try_instantiate_multiple_fields): Likewise.  Use the correct type
3678         for BIT_FIELD_REF.
3679         (sra_build_assignment): Likewise.
3680         (sra_build_elt_assignment): Likewise.
3681         (sra_explode_bitfield_assignment): Likewise.
3682         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
3683         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
3684         set BIT_FIELD_REF_UNSIGNED.
3685         (vectorizable_load): Likewise.
3686
3687 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
3688
3689         * cse.c (cse_extended_basic_block): Invalidate artificial defs
3690         at bb start.
3691
3692 2008-03-06  Richard Guenther  <rguenther@suse.de>
3693
3694         * alias.c (struct alias_set_entry): Move has_zero_child field
3695         to pack with alias_set.
3696
3697 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
3698
3699         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3700         32bit host.
3701
3702 2008-03-05  Ian Lance Taylor  <iant@google.com>
3703
3704         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
3705
3706 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3707
3708         * fwprop.c (update_df): Support width and offset parameters of
3709         df_ref_create.
3710         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
3711         global_conflicts): Change DF_REF_EXTRACT to either
3712         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
3713         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3714         * df-scan.c (df_ref_record, df_defs_record,
3715         df_ref_create_structure, df_def_record_1, df_uses_record,
3716         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
3717         df_bb_refs_collect, df_entry_block_defs_collect,
3718         df_exit_block_uses_collect): Support new width and offset fields.
3719         (ref_extract_pool): New storage pool.
3720         (df_free_ref): New function.
3721         (df_reg_chain_unlink, df_free_collection_rec,
3722         df_sort_and_compress_refs): Call df_free_ref.
3723         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
3724         of df_ref_extract.
3725         (df_ref_create_structure): Allocate df_ref_extract if offset and
3726         width fields are used.
3727         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
3728         (df_uses_record): Get offset and width from ZERO_EXTRACT 
3729         and SIGN_EXTRACT.
3730         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
3731         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
3732         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3733         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
3734         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
3735         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3736         (df_ref_extract): New structure.
3737         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
3738         (df_ref_create): Add width and offset parameters.
3739         
3740 2008-03-05  Richard Guenther  <rguenther@suse.de>
3741
3742         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3743         Use ranges_overlap_p.
3744         (offset_overlaps_with_access): Rename
3745         to ranges_overlap_p and move ...
3746         * tree-flow-inline.h (ranges_overlap_p): ... here.
3747
3748         * tree.h (get_inner_reference, handled_component_p): Update
3749         comments.
3750
3751         * tree.h (record_component_aliases, get_alias_set,
3752         alias_sets_conflict_p, alias_sets_must_conflict_p,
3753         objects_must_conflict_p): Move declarations ...
3754         * alias.h (record_component_aliases, get_alias_set,
3755         alias_sets_conflict_p, alias_sets_must_conflict_p,
3756         objects_must_conflict_p): ... here.
3757         Include coretypes.h.
3758         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
3759
3760 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
3761
3762         * cfg.c: Include tree-flow.h.
3763         (remove_edge_raw): Call redirect_edge_var_map_clear.
3764         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
3765         * tree-flow-inline.h (redirect_edge_var_map_def): New.
3766         (redirect_edge_var_map_result): New.
3767         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
3768         PENDING_STMT use with redirect_edge_var_map_*.
3769         * tree-ssa.c (edge_var_maps): New definition.
3770         (redirect_edge_var_map_add): New.
3771         (redirect_edge_var_map_clear): New.
3772         (redirect_edge_var_map_dup): New.
3773         (redirect_edge_var_map_vector): New.
3774         (redirect_edge_var_map_destroy): New.
3775         (ssa_redirect_edge): Replace PENDING_STMT use with
3776         redirect_edge_var_map_*.
3777         (flush_pending_stmts): Same.
3778         (delete_tree_ssa): Destroy edge var map.
3779         * tree-flow.h (struct _edge_var_map): New.
3780         Define edge_var_map vector type.
3781         Declare redirect_edge_var_map_* prototypes.
3782         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
3783         * tree-cfg.c (reinstall_phi_args): Replace
3784         PENDING_STMT use with redirect_edge_var_map_*.
3785
3786 2008-03-05  Richard Guenther  <rguenther@suse.de>
3787
3788         PR tree-optimization/35472
3789         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
3790         whose single use_stmt has a overlapping set of loaded and
3791         stored symbols as that use_stmt might be a noop assignment then.
3792
3793 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
3794
3795         * gthr-rtems.h: Implement __gthread_mutex_destroy.
3796
3797 2008-03-05  Richard Guenther  <rguenther@suse.de>
3798
3799         PR c++/35336
3800         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
3801         should be constants.
3802         * tree-cfg.c (verify_expr): Verify it.
3803         * fold-const.c (fold_truthop): Remove code generating
3804         BIT_FIELD_REFs of structure bases.
3805         (fold_binary): Likewise.
3806         (fold_ternary): Position and size of BIT_FIELD_REFs are
3807         always host integers.
3808         (make_bit_field_ref): Remove.
3809         (optimize_bit_field_compare): Remove.
3810         (all_ones_mask_p): Remove.
3811
3812 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
3813
3814         PR gcc/33009
3815         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
3816         (split_block_and_df_analyze): New. Split basic block and rebuild
3817         dataflow.
3818         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
3819         SPLIT_BLOCK.
3820         (split_pattern_seq): Likewise.
3821         (erase_matching_seqs): Likewise.
3822         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
3823
3824 2008-03-04  Geoff Keating  <geoffk@apple.com>
3825
3826         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
3827         declaration and code.
3828         (tree_invalid_nonnegative_warnv_p): Likewise.
3829
3830 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
3831
3832         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
3833         examples.  Truncate option-names then causing overfull hbox.
3834
3835 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3836
3837         PR target/35222
3838         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
3839         on hpux10.
3840         * configure: Rebuilt.
3841
3842 2008-03-04  Rafael Espindola  <espindola@google.com>
3843
3844         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3845         (tree_unary_nonnegative_warnv_p): New.
3846         (tree_binary_nonnegative_warnv_p): New.
3847         (tree_single_nonnegative_warnv_p): New.
3848         (tree_invalid_nonnegative_warnv_p): New.
3849         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3850
3851 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3852
3853         PR 28322
3854         * opts.c (handle_option): Postpone 'unknown option' errors only for
3855         warning options.
3856
3857 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
3858
3859         PR target/35453
3860         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3861         (_SIDD_XXX): This.
3862
3863 2008-03-04  Rafael Espindola  <espindola@google.com>
3864
3865         * fold-const.c (tree_unary_nonzero_warnv_p): New.
3866         (tree_binary_nonzero_warnv_p): New.
3867         (tree_single_nonzero_warnv_p): New.
3868         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3869
3870 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
3871
3872         PR middle-end/35456
3873         * fold-const.c (fold_cond_expr_with_comparison): Prevent
3874         transformations for modes that have signed zeros.
3875         * ifcvt.c (noce_try_abs): Ditto.
3876
3877 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
3878
3879         * config/i386/i386.c (override_options): Force
3880         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3881
3882 2008-03-04  Jan Hubicka  <jh@suse.cz>
3883
3884         PR c++/35262
3885         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3886         in last commit.
3887
3888 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3889
3890         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
3891         label to probe the stack.
3892
3893 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3894
3895         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3896         (__gthr_win32_mutex_destroy): Declare.
3897         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3898         __gthr_win32_mutex_destroy.
3899         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
3900
3901 2008-03-03  Jan Hubicka  <jh@suse.cz>
3902
3903         PR c++/35262
3904         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3905         aggressive on inlining cold calls.
3906
3907 2008-03-03  Richard Guenther  <rguenther@suse.de>
3908
3909         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3910         struct copies into the expression table.
3911         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3912         (try_to_simplify): Likewise.
3913         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3914         integral and pointer arguments which do not change the
3915         precision to NOP_EXPRs.
3916         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3917         VIEW_CONVERT_EXPR case.
3918
3919 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
3920
3921         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3922         defined in a loop at depth 0 is invariant.
3923         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3924         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3925         be called at loop depth 0.
3926
3927 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
3928
3929         PR driver/35420
3930         * gcc.c (process_command): Update copyright notice dates.
3931         * gcov.c (print_version): Likewise.
3932         * gcov-dump.c (print_version): Likewise.
3933         * mips-tfile.c (main): Likewise.
3934         * mips-tdump.c (main): Likewise.
3935
3936 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3937
3938         PR 24924
3939         * c-common.c (flag_permissive): Delete.
3940         (constant_expression_warnings): Check flags first.
3941         (constant_expression_error): New.
3942         * c-common.h (flag_permissive): Delete.
3943         (constant_expression_error): Declare.
3944         * flags.h (flag_permissive): Declare. Update description.
3945         * diagnostic.c (pedwarn): Update.
3946         (permerror): New.
3947         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3948         (permissive_error_kind): New.
3949         * toplev.c (flag_permissive): Define. Update description.
3950         * toplev.h (permissive_error_kind): Declare.
3951         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3952         (pedwarn_c90): Use pedantic_warning_kind.
3953         * c-opts.c (c_common_post_options): flag_permissive does not affect
3954         flag_pedantic_errors.
3955
3956 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
3957
3958         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3959         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3960         __absvsi2, __absvDI2): Use unsigned arithmetic.
3961
3962 2008-03-02  Andi Kleen  <ak@suse.de>
3963             Richard Guenther  <rguenther@suse.de>
3964
3965         * struct-equiv.c: Remove file.
3966         * cfg_cleanup.c (condjump_equiv_p): Remove.
3967         * Makefile.in (OBJS-common): Remove struct-equiv.o.
3968         (struct-equiv.o): Remove rule.
3969         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
3970         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
3971         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
3972
3973 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3974
3975         * ifcvt.c (noce_process_if_block): Try to handle only the then
3976         block if the else block exists but isn't suitable.
3977
3978 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3979
3980         PR gcc/35063
3981         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
3982         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
3983         regression from previous patch.
3984
3985 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3986
3987         PR gcc/35063
3988         * gthr.h: Add __gthread_mutex_destroy as a function that must be
3989         implemented.
3990         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
3991         * gthr-single.h (__gthread_mutex_destroy): Likewise.
3992         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
3993         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
3994         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
3995         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
3996         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
3997         (__gthread_mutex_destroy_function): Rename to
3998         __gthread_mutex_destroy.
3999         * gthr-dce.h (__gthread_mutex_destroy): Call
4000         pthread_mutex_destroy.
4001         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
4002         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
4003         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
4004
4005 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
4006
4007         * df-scan.c (df_ref_chain_change_bb): Simplify.
4008         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
4009         set_block_for_insn if there's any change.
4010         * df.h ((df_insn_change_bb): Fix prototype.
4011         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
4012         df_insn_change_bb, don't call set_block_for_insn.
4013         * emit-rtl.c (reorder_insns): Likewise.
4014         * haifa-sched.c (move_insn): Likewise.
4015
4016 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
4017
4018         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
4019
4020 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
4021
4022         * tree-flow-inline.h (next_readonly_imm_use): Return
4023         NULL_USE_OPERAND_P after the end.
4024
4025 2008-03-01  Richard Guenther  <rguenther@suse.de>
4026
4027         PR tree-optimization/35411
4028         * tree-sra.c (sra_build_assignment): Split conversion to
4029         final type to a separate statement if we are not assigning
4030         to a register.
4031
4032 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4033
4034         * fold-const.c (fold_convertible_p): Correct the logic to follow
4035         that in fold_convert().
4036
4037 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
4038
4039         PR c++/35315
4040         * tree-inline.c (build_duplicate_type): When we make a
4041         duplicate type, make it unique in the canonical types system.
4042
4043 2008-02-29  Tom Tromey  <tromey@redhat.com>
4044
4045         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
4046         input_file_stack_history, input_file_stack_restored): Remove.
4047         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4048         * input.h (struct file_stack): Remove.
4049         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4050         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
4051         Likewise.
4052         * diagnostic.h (struct diagnostic_context) <last_module>: Change
4053         type.
4054         (diagnostic_last_module_changed): Add 'map' argument.
4055         (diagnostic_set_last_function): Likewise.
4056         * diagnostic.c (undiagnostic_report_current_module): Iterate using
4057         line map, not input_file_stack.
4058         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
4059
4060 2008-02-29  Paul Brook  <paul@codesourcery.com>
4061
4062         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
4063
4064 2008-02-29  Paul Brook  <paul@codesourcery.com>
4065
4066         * config/arm/ieee754-df.S (muldf3): Use RET macros.
4067
4068 2008-02-29  Richard Guenther  <rguenther@suse.de>
4069
4070         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
4071         vn_lookup_or_add.
4072         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
4073         value for comparing for a store match.
4074         (simplify_unary_expression): Do nothing for SSA_NAMEs.
4075         (try_to_simplify): Do not do a full-blown reference lookup.
4076
4077 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4078
4079         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
4080         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4081
4082         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
4083
4084 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
4085
4086         * tree-loop-linear.c (try_interchange_loops): Compare memory access
4087         strides against cache sizes.
4088
4089 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4090
4091         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
4092         constant to fpul.
4093
4094 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
4095
4096         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
4097         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
4098         is smaller than the original promoted value.
4099         (simplify_subreg): If OP is a SUBREG, try to preserve its
4100         SUBREG_PROMOTED_VAR_P information.
4101
4102 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
4103
4104         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
4105         (VN_INFO_GET): Allocate new objects on the obstack.
4106         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
4107         for rpo_numbers_temp, for consistency.
4108         (free_scc_vn): Free the obstack.
4109
4110 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
4111
4112         * doc/invoke.texi: Document -ftree-loop-distribution.
4113         * tree-loop-distribution.c: New.
4114         * tree-pass.h (pass_loop_distribution): New.
4115         * graphds.h (struct graph): Add htab_t indices.
4116         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4117         * tree-vectorizer.c (rename_variables_in_loop): Extern.
4118         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
4119         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4120         * tree-data-ref.c (debug_data_dependence_relations): New.
4121         (dump_data_dependence_relation): Also print data references.
4122         (free_data_ref): Extern.
4123         (same_access_functions): Moved...
4124         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4125         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4126         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4127         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
4128         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
4129         (stmts_from_loop): Skip LABEL_EXPR.
4130         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
4131         New.
4132         (build_rdg): Initialize rdg->indices htab.
4133         (free_rdg, stores_from_loop, ref_base_address,
4134         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4135         have_similar_memory_accesses_1, ref_base_address_1,
4136         remove_similar_memory_refs): New.
4137         * tree-data-ref.h: Depend on tree-chrec.h.
4138         (debug_data_dependence_relations, free_data_ref): Declared.
4139         (same_access_functions): ... here.
4140         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
4141         New.
4142         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
4143         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
4144         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
4145         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4146         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4147         rdg_vertex_for_stmt): Declared.
4148         (struct rdg_edge): Add level.
4149         (RDGE_LEVEL): New.
4150         (free_rdg, stores_from_loop, remove_similar_memory_refs,
4151         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
4152         Declared.
4153         (rdg_has_similar_memory_accesses): New.
4154         * tree-vect-analyze.c: Remove unused static decls.
4155         * lambda.h (dependence_level): New.
4156         * common.opt (ftree-loop-distribution): New.
4157         * tree-flow.h (mark_virtual_ops_in_bb, 
4158         slpeel_tree_duplicate_loop_to_edge_cfg,
4159         rename_variables_in_loop): Declared.
4160         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
4161         (OBJS-common): Add tree-loop-distribution.o.
4162         (tree-loop-distribution.o): New rule.
4163         * tree-cfg.c (mark_virtual_ops_in_bb): New.
4164         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4165         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
4166
4167 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
4168
4169         PR target/33963
4170         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
4171         other than structures and unions.
4172
4173 2008-02-28  Richard Guenther  <rguenther@suse.de>
4174
4175         Revert:
4176         2008-02-26  Richard Guenther  <rguenther@suse.de>
4177
4178         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4179         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4180         (lookup_decl_from_uid): Declare.
4181         (remove_decl_from_map): Likewise.
4182         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4183         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4184         (decl_for_uid_map): New global hashtable mapping DECL_UID
4185         to the decl tree.
4186         (init_ttree): Allocate it.
4187         (insert_decl_to_uid_decl_map): New helper function.
4188         (make_node_stat): Insert new decls into the map.
4189         (copy_node_stat): Likewise.
4190         (lookup_decl_from_uid): New function.
4191         (remove_decl_from_map): Likewise.
4192         (print_decl_for_uid_map_statistics): New helper.
4193         (dump_tree_statistics): Call it.
4194
4195         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4196         (referenced_var_iterator): Adjust.
4197         (FOR_EACH_REFERENCED_VAR): Adjust.
4198         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4199         (num_referenced_vars): Adjust.
4200         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4201         (first_referenced_var): Remove.
4202         (end_referenced_vars_p): Likewise.
4203         (next_referenced_var): Likewise.
4204         (referenced_var_iterator_set): New helper function.
4205         * tree-dfa.c (referenced_var_lookup): Adjust.
4206         (referenced_var_check_and_insert): Likewise.
4207         (remove_referenced_var): Likewise.
4208         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4209         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4210         (verify_call_clobbering): Likewise.
4211         (verify_memory_partitions): Likewise.
4212         (init_tree_ssa): Allocate bitmap instead of hashtable for
4213         referenced_vars.
4214         (delete_tree_ssa): Adjust.
4215         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4216         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4217         (compute_tag_properties): Likewise.
4218         (set_initial_properties): Likewise.
4219         (find_partition_for): Likewise.
4220         (update_reference_counts): Likewise.
4221         (dump_may_aliases_for): Likewise.
4222         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4223         (add_call_clobber_ops): Likewise.
4224         (add_call_read_ops): Likewise.
4225         (get_asm_expr_operands): Likewise.
4226         * tree-into-ssa.c (dump_decl_set): Likewise.
4227         (update_ssa): Likewise.
4228         * tree-sra.c (scan_function): Likewise.
4229         (decide_instantiations): Likewise.
4230         (scalarize_parms): Likewise.
4231         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4232         (dsa_named_for): Likewise.
4233         * tree-ssa-structalias.c (update_alias_info): Likewise.
4234         (merge_smts_into): Likewise.
4235
4236 2008-02-27  David Daney  <ddaney@avtrex.com>
4237
4238         PR target/34409
4239         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
4240         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
4241         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
4242         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
4243         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
4244
4245 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
4246
4247         PR target/25477
4248         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
4249         (BUILT_IN_NEXTTOWARD): Remove.
4250         (BUILT_IN_NEXTTOWARDF): Ditto.
4251         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
4252         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
4253
4254 2008-02-27  Tom Tromey  <tromey@redhat.com>
4255
4256         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
4257         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
4258
4259 2008-02-27  Jan Beulich  <jbeulich@novell.com>
4260
4261         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
4262         update the respective field on newdecl.
4263
4264 2008-02-27  Revital Eres  <eres@il.ibm.com>
4265
4266         PR rtl-optimization/34999
4267         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
4268         crossing edges that ends with a call insn.
4269         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
4270         call insn and clear the EDGE_CROSSING flag of the crossing edge
4271         when fixing fallthru edges.
4272
4273 2008-02-27  Richard Guenther  <rguenther@suse.de>
4274
4275         PR middle-end/35390
4276         * fold-const.c (fold_unary): Return the correct argument,
4277         converted to the result type.
4278
4279 2008-02-27  Richard Guenther  <rguenther@suse.de>
4280
4281         PR middle-end/34971
4282         * expr.c (expand_expr_real_1): Assert on rotates that operate
4283         on partial modes.
4284         * fold-const.c (fold_binary): Use the types precision, not the
4285         bitsize of the mode if folding rotate expressions.  Build rotates
4286         only for full modes.
4287
4288 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
4289
4290         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
4291         and CPP_PRAGMA_EOL.
4292         * c-pragma.c (pragma_ns_name): New typedef.
4293         (registered_pp_pragmas): New variable.
4294         (c_pp_lookup_pragma): New function.
4295         (c_register_pragma_1): If flag_preprocess_only, do nothing
4296         for non-expanded pragmas, for expanded ones push pragma's
4297         namespace and name into registered_pp_pragmas vector.
4298         (c_invoke_pragma_handler): Register OpenMP pragmas even when
4299         flag_preprocess_only, don't register GCC pch_preprocess
4300         pragma if flag_preprocess_only.
4301         * c-opts.c (c_common_init): Call init_pragma even if
4302         flag_preprocess_only.
4303         * c-pragma.c (c_pp_lookup_pragma): New prototype.
4304         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
4305         cpp_register_pragma if flag_preprocess_only.
4306
4307 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4308
4309         PR c/28800
4310         * c-parser.c (c_parser_translation_unit): Warn for empty
4311         translation unit, not empty source file.
4312
4313 2008-02-26  Paul Brook  <paul@codesourcery.com>
4314
4315         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
4316         operand for Thumb-2.
4317         * config/arm/arm.h (reg_class): Add CORE_REGS.
4318         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
4319         (BASE_REG_CLASS): Use CORE_REGS.
4320         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
4321         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
4322         (REGNO_OK_FOR_INDEX_P): Exclude SP.
4323         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
4324         ARM_REGNO_OK_FOR_INDEX_P.
4325         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
4326         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
4327         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
4328         (ldm/stm peepholes): Ditto.
4329         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
4330         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
4331         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
4332         * config/arm/constraints.md: Enable "k" constraint on ARM.
4333
4334 2008-02-27  Ben Elliston  <bje@au.ibm.com>
4335
4336         * config/rs6000/rs6000.c: Annotate cache line size field in all
4337         instances of struct processor_costs.
4338
4339 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
4340
4341         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
4342         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
4343         jump_bypass): New counters.
4344         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
4345         * dce.c (gate_ud_dce): Same.
4346         (gate_fast_dce): Same.
4347         * dse.c (gate_dse1): New function.
4348         (gate_dse2): New function.
4349         (gate_dse): Merge results of new gate functions.
4350         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
4351         (gate_handle_jump_bypass): Add dbg_cnt.
4352         (gate_handle_gcse): Add dbg_cnt.
4353         * ifcvt.c (gate_handle_if_conversion): Same.
4354         (gate_handle_if_after_combine): Same.
4355         (gate_handle_if_after_reload): Same.
4356         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
4357
4358 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
4359
4360         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
4361         line sizes.
4362         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
4363
4364 2008-02-26  Jason Merrill  <jason@redhat.com>
4365
4366         PR c++/35315
4367         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
4368         alone if it's the naming decl for the type's main variant.
4369
4370 2008-02-26  Tom Tromey  <tromey@redhat.com>
4371
4372         * system.h (USE_MAPPED_LOCATION): Poison.
4373         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
4374         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
4375         (make_goto_expr_edges): Likewise.
4376         (remove_bb): Likewise.
4377         (execute_warn_function_return): Likewise.
4378         * basic-block.h (struct edge_def) <goto_locus>: Change type to
4379         location_t.
4380         * c-common.c (fname_decl): Remove old location code.
4381         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
4382         location code.
4383         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
4384         variant.
4385         (ASM_INPUT_SOURCE_LOCATION): Likewise.
4386         (gen_rtx_ASM_INPUT): Likewise.
4387         (gen_rtx_ASM_INPUT_loc): Likewise.
4388         (get_rtx_asm_OPERANDS): Remove.
4389         * cfglayout.c (insn_locators_alloc): Remove old location code.
4390         (set_curr_insn_source_location): Likewise.
4391         (curr_insn_locator): Likewise.
4392         * print-tree.c (print_node): Remove old location code.
4393         * tree-mudflap.c (mf_varname_tree): Remove old location code.
4394         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
4395         * cfgexpand.c (expand_gimple_cond_expr): Don't use
4396         location_from_locus.
4397         (construct_exit_block): Remove old location code.
4398         * emit-rtl.c (force_next_line_note): Remove old location code.
4399         * profile.c (branch_prob): Remove old location code.
4400         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4401         LOC_LINE): Remove old-location variants.
4402         * langhooks.c (lhd_print_error_function): Remove old location
4403         code.
4404         * configure, config.in: Rebuilt.
4405         * configure.ac (--enable-mapped-location): Remove.
4406         * c-decl.c (c_init_decl_processing): Remove old location code.
4407         (finish_function): Likewise.
4408         * recog.c (decode_asm_operands): Remove old location code.
4409         * c-pch.c (c_common_read_pch): Remove old location code.
4410         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
4411         variants.
4412         * gimple-low.c (lower_function_body): Remove old location code.
4413         * toplev.c (unknown_location): Remove.
4414         (push_srcloc): Remove old-location variant.
4415         (process_options): Remove old location code.
4416         (lang_dependent_init): Likewise.
4417         * input.h (UNKNOWN_LOCATION): Move definition.
4418         (location_t): Undeprecate.
4419         (source_locus): Remove.
4420         (location_from_locus): Remove.
4421         (struct location_s): Remove.
4422         Remove all old-location code.
4423         (input_line, input_filename): Remove.
4424         * final.c (final_scan_insn): Remove old location code.
4425         * diagnostic.c (diagnostic_build_prefix): Remove
4426         USE_MAPPED_LOCATION test.
4427         * tree.h (gimple_stmt) <locus>: Now a location_t.
4428         (tree_exp) <locus>: Likewise.
4429         (DECL_IS_BUILTIN): Remove old-location variant.
4430         (annotate_with_file_line, annotate_with_locus): Likewise.
4431         (expr_locus, set_expr_locus): Update.
4432         * tree.c (build1_stat): Remove old location code.
4433         (last_annotated_node): Remove.
4434         (annotate_with_file_line): Remove old-location variant.
4435         (annotate_with_locus): Likewise.
4436         (expr_location): Remove old location code.
4437         (set_expr_location): Likewise.
4438         (expr_has_location): Likewise.
4439         (expr_locus): Likewise.
4440         (set_expr_locus): Likewise.
4441         (expr_filename): Don't use location_from_locus.
4442         (expr_lineno): Likewise.
4443         * rtl-error.c (location_for_asm): Remove old location code.
4444         * c-lex.c (cb_line_change): Remove old location code.
4445         (fe_file_change): Likewise.
4446         (cb_def_pragma): Likewise.
4447         (c_lex_with_flags): Likewise.
4448         * gengtype.c (do_typedef): Don't special-case location types.
4449         (define_location_structures): Remove.
4450         (main): Don't call define_location_structures.
4451         * tree-pretty-print.c (dump_implicit_edges): Remove old location
4452         code.
4453
4454 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4455
4456         PR 26264
4457         * builtins.def (BUILT_IN_STDARG_START): Remove.
4458         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4459         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4460         * tree-inline.c (inline_forbidden_p_1): Likewise.
4461         
4462 2008-02-26  Richard Guenther  <rguenther@suse.de>
4463
4464         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4465         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4466         (lookup_decl_from_uid): Declare.
4467         (remove_decl_from_map): Likewise.
4468         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4469         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4470         (decl_for_uid_map): New global hashtable mapping DECL_UID
4471         to the decl tree.
4472         (init_ttree): Allocate it.
4473         (insert_decl_to_uid_decl_map): New helper function.
4474         (make_node_stat): Insert new decls into the map.
4475         (copy_node_stat): Likewise.
4476         (lookup_decl_from_uid): New function.
4477         (remove_decl_from_map): Likewise.
4478         (print_decl_for_uid_map_statistics): New helper.
4479         (dump_tree_statistics): Call it.
4480
4481         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4482         (referenced_var_iterator): Adjust.
4483         (FOR_EACH_REFERENCED_VAR): Adjust.
4484         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4485         (num_referenced_vars): Adjust.
4486         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4487         (first_referenced_var): Remove.
4488         (end_referenced_vars_p): Likewise.
4489         (next_referenced_var): Likewise.
4490         (referenced_var_iterator_set): New helper function.
4491         * tree-dfa.c (referenced_var_lookup): Adjust.
4492         (referenced_var_check_and_insert): Likewise.
4493         (remove_referenced_var): Likewise.
4494         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4495         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4496         (verify_call_clobbering): Likewise.
4497         (verify_memory_partitions): Likewise.
4498         (init_tree_ssa): Allocate bitmap instead of hashtable for
4499         referenced_vars.
4500         (delete_tree_ssa): Adjust.
4501         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4502         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4503         (compute_tag_properties): Likewise.
4504         (set_initial_properties): Likewise.
4505         (find_partition_for): Likewise.
4506         (update_reference_counts): Likewise.
4507         (dump_may_aliases_for): Likewise.
4508         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4509         (add_call_clobber_ops): Likewise.
4510         (add_call_read_ops): Likewise.
4511         (get_asm_expr_operands): Likewise.
4512         * tree-into-ssa.c (dump_decl_set): Likewise.
4513         (update_ssa): Likewise.
4514         * tree-sra.c (scan_function): Likewise.
4515         (decide_instantiations): Likewise.
4516         (scalarize_parms): Likewise.
4517         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4518         (dsa_named_for): Likewise.
4519         * tree-ssa-structalias.c (update_alias_info): Likewise.
4520         (merge_smts_into): Likewise.
4521
4522 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4523
4524         PR 34351
4525         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
4526         * c-opts.c (c_common_handle_option): Wall enables
4527         Wvolatile-register-var.
4528         * common.opt: Move Wvolatile-register-var to...
4529         * c.opt: ...here.
4530         
4531 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4532
4533         * common.opt (Wlarger-than=): New.
4534         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
4535         -Wlarger-than=.
4536         * opts.c (common_handle_option): Handle -Wlarger-than=.
4537         * optc-gen.awk: Likewise.
4538         * opth-gen.awk: Likewise.
4539         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
4540         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4541         
4542 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4543
4544         * c-common.c (match_case_to_enum_1): Add appropriate
4545         OPT_W* parameter to warning.
4546         (c_do_switch_warnings): Likewise.
4547         * c-typeck.c (warning_init): Add one more parameter following
4548         'warning' function.
4549         (push_init_level): Update call to warning_init.
4550         (pop_init_level): Likewise.
4551         (add_pending_init): Likewise.
4552         (output_init_element: Likewise.
4553
4554 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4555
4556         PR 28322
4557         * toplev.c (toplev_main): If there are warnings or error, print
4558         errors for ignored options.
4559         * opts.c (ignored_options): New static variable.
4560         (postpone_unknown_option_error): New.
4561         (print_ignored_options): New.
4562         (handle_option): Postpone errors for unknown -Wno-* options.
4563         * opts.h (print_ignored_options): Declare.
4564         
4565 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
4566
4567         * config/mips/mips.md (loadgp_blockage, blockage): Change type
4568         to "ghost".
4569
4570 2008-02-25  Richard Guenther  <rguenther@suse.de>
4571
4572         Revert:
4573         2008-02-25  Richard Guenther  <rguenther@suse.de>
4574
4575         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4576         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4577         (lookup_decl_from_uid): Declare.
4578         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4579         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4580         (decl_for_uid_map): New global hashtable mapping DECL_UID
4581         to the decl tree.
4582         (init_ttree): Allocate it.
4583         (insert_decl_to_uid_decl_map): New helper function.
4584         (make_node_stat): Insert new decls into the map.
4585         (copy_node_stat): Likewise.
4586         (lookup_decl_from_uid): New function.
4587         (print_decl_for_uid_map_statistics): New helper.
4588         (dump_tree_statistics): Call it.
4589
4590         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4591         (referenced_var_iterator): Adjust.
4592         (FOR_EACH_REFERENCED_VAR): Adjust.
4593         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4594         (num_referenced_vars): Adjust.
4595         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4596         (first_referenced_var): Remove.
4597         (end_referenced_vars_p): Likewise.
4598         (next_referenced_var): Likewise.
4599         (referenced_var_iterator_set): New helper function.
4600         * tree-dfa.c (referenced_var_lookup): Adjust.
4601         (referenced_var_check_and_insert): Likewise.
4602         (remove_referenced_var): Likewise.
4603         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4604         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4605         (verify_call_clobbering): Likewise.
4606         (verify_memory_partitions): Likewise.
4607         (init_tree_ssa): Allocate bitmap instead of hashtable for
4608         referenced_vars.
4609         (delete_tree_ssa): Adjust.
4610         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4611         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4612         (compute_tag_properties): Likewise.
4613         (set_initial_properties): Likewise.
4614         (find_partition_for): Likewise.
4615         (update_reference_counts): Likewise.
4616         (dump_may_aliases_for): Likewise.
4617         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4618         (add_call_clobber_ops): Likewise.
4619         (add_call_read_ops): Likewise.
4620         (get_asm_expr_operands): Likewise.
4621         * tree-into-ssa.c (dump_decl_set): Likewise.
4622         (update_ssa): Likewise.
4623         * tree-sra.c (scan_function): Likewise.
4624         (decide_instantiations): Likewise.
4625         (scalarize_parms): Likewise.
4626         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4627         (dsa_named_for): Likewise.
4628         * tree-ssa-structalias.c (update_alias_info): Likewise.
4629         (merge_smts_into): Likewise.
4630
4631 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
4632
4633         PR fortran/29549
4634         * doc/invoke.texi (-fcx-limited-range): Document new option.
4635         * toplev.c (process_options): Handle -fcx-fortran-rules.
4636         * common.opt: Add documentation for -fcx-fortran-rules.
4637
4638 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
4639
4640         PR c/35162
4641         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
4642         actual behaviour and C99.
4643         
4644 2008-02-26  Ben Elliston  <bje@au.ibm.com>
4645
4646         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
4647         (ASM_CPU_POWER6_SPEC): Likewise.
4648         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
4649         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
4650         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
4651
4652 2008-02-25  Richard Guenther  <rguenther@suse.de>
4653
4654         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4655         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4656         (lookup_decl_from_uid): Declare.
4657         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4658         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4659         (decl_for_uid_map): New global hashtable mapping DECL_UID
4660         to the decl tree.
4661         (init_ttree): Allocate it.
4662         (insert_decl_to_uid_decl_map): New helper function.
4663         (make_node_stat): Insert new decls into the map.
4664         (copy_node_stat): Likewise.
4665         (lookup_decl_from_uid): New function.
4666         (print_decl_for_uid_map_statistics): New helper.
4667         (dump_tree_statistics): Call it.
4668
4669         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4670         (referenced_var_iterator): Adjust.
4671         (FOR_EACH_REFERENCED_VAR): Adjust.
4672         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4673         (num_referenced_vars): Adjust.
4674         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4675         (first_referenced_var): Remove.
4676         (end_referenced_vars_p): Likewise.
4677         (next_referenced_var): Likewise.
4678         (referenced_var_iterator_set): New helper function.
4679         * tree-dfa.c (referenced_var_lookup): Adjust.
4680         (referenced_var_check_and_insert): Likewise.
4681         (remove_referenced_var): Likewise.
4682         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4683         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4684         (verify_call_clobbering): Likewise.
4685         (verify_memory_partitions): Likewise.
4686         (init_tree_ssa): Allocate bitmap instead of hashtable for
4687         referenced_vars.
4688         (delete_tree_ssa): Adjust.
4689         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4690         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4691         (compute_tag_properties): Likewise.
4692         (set_initial_properties): Likewise.
4693         (find_partition_for): Likewise.
4694         (update_reference_counts): Likewise.
4695         (dump_may_aliases_for): Likewise.
4696         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4697         (add_call_clobber_ops): Likewise.
4698         (add_call_read_ops): Likewise.
4699         (get_asm_expr_operands): Likewise.
4700         * tree-into-ssa.c (dump_decl_set): Likewise.
4701         (update_ssa): Likewise.
4702         * tree-sra.c (scan_function): Likewise.
4703         (decide_instantiations): Likewise.
4704         (scalarize_parms): Likewise.
4705         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4706         (dsa_named_for): Likewise.
4707         * tree-ssa-structalias.c (update_alias_info): Likewise.
4708         (merge_smts_into): Likewise.
4709
4710 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
4711
4712         PR target/35258
4713         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
4714         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
4715         * alias.h (nonoverlapping_memrefs_p): Likewise.
4716
4717 2008-02-25  Jan Beulich  <jbeulich@novell.com>
4718
4719         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
4720         * config/i386/netware-libgcc.exp: Add __bswap?i2,
4721         __emultls_get_address, __emultls_register_common,
4722         __floatundi?f, and _Unwind_GetIPInfo.
4723         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
4724         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
4725         (gen_regparm_prefix): Likewise.
4726         (i386_nlm_encode_section_info): Sync with
4727         config/i386/winnt.c:i386_pe_encode_section_info().
4728         (i386_nlm_maybe_mangle_decl_assembler_name): New.
4729         i386_nlm_mangle_decl_assembler_name): New.
4730         (netware_override_options): New.
4731         * config/i386/netware.h (netware_override_options): Declare.
4732         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
4733         (i386_nlm_mangle_decl_assembler_name): Declare.
4734         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
4735
4736 2008-02-25  Ben Elliston  <bje@au.ibm.com>
4737
4738         PR other/32948
4739         * c-decl.c (grokdeclarator): Remove unused local variables
4740         `typedef_type' and `type_as_written'.
4741         * bb-reorder.c
4742         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
4743         unused local variable `has_hot_blocks'.
4744         (fix_crossing_conditional_branches): Remove unused local variable
4745         `prev_bb'.
4746         
4747 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
4748
4749         PR middle-end/19984
4750         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
4751         using DEF_C99_BUILTIN.
4752         (BUILT_IN_NANF): Ditto.
4753         (BUILT_IN_NANL): Ditto.
4754
4755 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
4756             Revital Eres  <eres@il.ibm.com>
4757
4758         * modulo-sched.c (calculate_must_precede_follow): Address TODO
4759         regarding the order of two dependent insns in the same row.
4760
4761 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
4762
4763         * stor-layout.c (layout_decl): Do not bump the alignment of a
4764         bit-field to more than byte alignment if it is packed.
4765
4766 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
4767
4768         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
4769         e300c2 and e300c3.
4770
4771 2008-02-24  Diego Novillo  <dnovillo@google.com>
4772
4773         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
4774
4775         PR 33738
4776         * tree-vrp.c (vrp_evaluate_conditional): With
4777         -Wtype-limits, emit a warning when comparing against a
4778         constant outside the natural range of OP0's type.
4779         * c.opt (Wtype-limits): Move ...
4780         * common.opt (Wtype-limits): ... here.
4781
4782 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
4783
4784         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
4785         * config/rs6000/e300c2c3.md: New file.
4786         * config/rs6000/rs6000.c (processor_costs): Add new costs for
4787         e300c2 and e300c3.
4788         (rs6000_override_options): Add e300c2 and e300c3 cases to
4789         processor_target_table. Do not allow usage of Altivec or Spe
4790         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
4791         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
4792         * config/rs6000/rs6000.h (processor_type): Add
4793         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
4794         (ASM_CPU_SPEC): Add e300c2 and e300c3.
4795         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
4796         and ppce300c3. Include e300c2c3.md.
4797
4798 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
4799
4800         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
4801         instead of TARGET_STRICT_ALIGN.
4802
4803 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
4804
4805         * explow.c (memory_address): Assert that the generated address is
4806         valid.
4807
4808 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4809
4810         PR target/25477
4811         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
4812         * config/darwin-ppc-ldouble-patch.def: New file.
4813         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
4814         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
4815         SUBTARGET_INIT_BUILTINS if defined.
4816         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
4817         New functions.
4818
4819 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4820
4821         PR rtl-opt/33512
4822         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
4823         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
4824
4825 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4826
4827         PR pch/35027
4828         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
4829         file" warning condtional on -Winvalid-PCH.
4830
4831 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
4832
4833         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
4834
4835 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
4836
4837         PR target/22076
4838         PR target/34256 
4839         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
4840         prevent reload from using MMX registers.
4841         (*mov<mode>_internal): Ditto.
4842         (*movv2sf_internal_rex64): Ditto.
4843         (*movv2sf_internal): Ditto.
4844
4845 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4846
4847         PR documentation/31569
4848         * doc/install.texi2html: Use makeinfo --no-number-sections.
4849
4850 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4851
4852         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
4853         ensure that we can address an entire entity > 8 bytes.  Don't
4854         generate reg+reg addressing for such data.
4855
4856 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4857
4858         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4859         strings when optimizing for size, unless the target cares about
4860         alignment.
4861
4862 2008-02-22  Tom Tromey  <tromey@redhat.com>
4863
4864         * regclass.c (current_pass): Remove declaration.
4865
4866 2008-02-22  Anatoly Sokolov <aesok@post.ru>
4867
4868         * config/avr/libgcc.S (__RAMPZ__): Define.
4869         (__do_copy_data): Add for devices with 128KB code memory.
4870
4871 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4872
4873         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4874         Use spe_abi.
4875         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4876
4877 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
4878
4879         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4880         GENNONACR_REGS.
4881
4882 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4883
4884         PR c/19999
4885         * c-typeck.c (build_binary_op): Warn about floating point
4886         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4887
4888 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
4889
4890         PR target/34526
4891         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4892         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4893         add vrsave.
4894         (rs6000_override_options): Set altivec_abi as default, not override,
4895         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4896         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4897         is used; use new member spe_abi.
4898         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4899         spe_abi and altivec_abi.
4900
4901 2008-02-22  Tomas Bily  <tbily@suse.cz>
4902
4903         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4904
4905 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4906
4907         PR bootstrap/35273
4908         * config.build (build_file_translate): Set to `CMD //c' only if
4909         it works.
4910         * Makefile.in (build_file_translate): Improve comment.
4911
4912 2008-02-21  Jan Hubicka  <jh@suse.cz>
4913
4914         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4915         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4916         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4917
4918 2008-02-21  Michael Matz  <matz@suse.de>
4919
4920         PR target/35264
4921         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4922
4923 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
4924
4925         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4926         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4927         as insn constraint.
4928         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4929         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4930         SSE_VEC_FLOAT_MODE_P as insn constraint.
4931         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4932         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4933         sse4a_movntdf using MODEF mode iterator.
4934         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4935         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4936         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4937         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4938         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4939         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4940         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4941
4942 2008-02-21  Richard Guenther  <rguenther@suse.de>
4943
4944         * tree.def (PAREN_EXPR): New tree code.
4945         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
4946         and PAREN_EXPR.
4947         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
4948         * expr.c (expand_expr_real_1): Likewise.
4949         * tree-inline.c (estimate_num_insns_1): Likewise.
4950         * tree-complex.c (expand_complex_move): Likewise.
4951         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
4952         as plain x.
4953
4954 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4955
4956         PR target/35225
4957         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
4958
4959 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4960
4961         PR target/35190
4962         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
4963
4964         * config/sh/sh.c (find_barrier): Don't go past
4965         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
4966
4967 2008-02-20  DJ Delorie  <dj@redhat.com>
4968
4969         * config/h8300/h8300.md (insv): Force source operand to be a register.
4970
4971         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
4972         as a jump, not as a plain insn.
4973         
4974 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
4975
4976         * doc/invoke.texi (Warning Options): Add new option
4977         -Wframe-larger-than=.
4978         (-Wframe-larger-than): Document.
4979
4980         * flags.h (warn_frame_larger_than, frame_larger_than_size):
4981         Add declarations for new option variables.
4982
4983         * final.c (final_start_function): Check the frame size
4984         before emission and issue a Wframe-larger-than warning.
4985
4986         * opts.c (warn_frame_larger_than, frame_larger_than_size):
4987         Add definitions for new option variables.
4988         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
4989
4990         * common.opt (Wframe-larger-than=): New option.
4991
4992 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
4993
4994         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
4995         (<sse>_div<mode>3): Ditto.
4996         (<sse>_vmdiv<mode>3): Ditto.
4997         (<sse>_vmsqrt<mode>2): Ditto.
4998         (*smax<mode>3): Ditto.
4999         (sse5_frcz<mode>2): Ditto.
5000         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
5001         as insn constraint.
5002
5003 2008-02-20  Richard Guenther  <rguenther@suse.de>
5004
5005         PR middle-end/35265
5006         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
5007         be happy with INTEGRAL_TYPE_P.
5008
5009 2008-02-20  Richard Guenther  <rguenther@suse.de>
5010
5011         * fold-const.c (split_tree): Associate floatig-point expressions
5012         if flag_associative_math is set.
5013
5014 2008-02-20  Richard Guenther  <rguenther@suse.de>
5015
5016         * tree.h (fold_real_zero_addition_p): Declare.
5017         * fold-const.c (fold_real_zero_addition_p): Export.
5018         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
5019         floating-point operations with zero and one.
5020
5021 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
5022
5023         * doc/install.texi: Correct references to CFLAGS, replacing them
5024         with BOOT_CFLAGS.  Document flags used during bootstrap for
5025         target libraries.
5026                                 
5027 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
5028
5029         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
5030         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
5031         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
5032         insn constraint.
5033         (smin<mode>3): Ditto from similar patterns.
5034         (smax<mode>3): Ditto.
5035         (*ieee_smin<mode>3): Ditto.
5036         (*ieee_smax<mode>3): Ditto.
5037         * config/i386/sse.md (sse): New mode attribute.
5038         (mov<mode>): Macroize expander from movv4sf and movv2df using
5039         SSEMODEF2P mode iterator.
5040         (<sse>_movnt<mode>): Ditto from similar patterns. Use
5041         SSE_VEC_FLOAT_MODE_P as insn constraint.
5042         (storent<mode>): Ditto.
5043         (storent<mode>): Macroize expander from storentsf and storentdf using
5044         MODEF mode iterator.
5045         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
5046         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
5047         (abs<mode>2): Ditto from similar patterns.
5048         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
5049         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
5050         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
5051         (<sse>_vmsqrt<mode>2): Ditto.
5052         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
5053         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
5054         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
5055         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
5056         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
5057         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
5058         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
5059         insn constraint.
5060         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
5061         iterator and SSE_FLOAT_MODE_P as insn constraint.
5062         (<sse>_ucomi): Ditto from similar patterns.
5063         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
5064         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
5065         SSE_VEC_FLOAT_MODE_P as insn constraint.
5066         (vcond<mode>): Ditto from similar patterns.
5067         (and<mode>3, *and<mode>3): Ditto.
5068         (<sse>_nand<mode>3): Ditto.
5069         (ior<mode>3, *ior<mode>3): Ditto.
5070         (xor<mode>3, *xor<mode>3): Ditto.
5071         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
5072         iterator and SSE_FLOAT_MODE_P as insn constraint.
5073         (*nand<mode>3): Ditto from similar patterns.
5074         (*ior<mode>3): Ditto.
5075         (*xor<mode>3): Ditto.
5076
5077 2008-02-20  Ira Rosen  <irar@il.ibm.com>
5078
5079         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
5080         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
5081         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
5082
5083 2008-02-19  Jan Hubicka  <jh@suse.cz>
5084
5085         * predict.c (tree_bb_level_predictions): Remove variable next
5086         mistakely introduced by previous commit.
5087
5088 2008-02-19  Jan Hubicka  <jh@suse.cz>
5089
5090         * predict.c (predict_paths_leading_to): Rewrite.
5091         (predict_paths_for_bb): New.
5092         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
5093
5094 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5095
5096         PR bootstrap/35218
5097         * Makefile.in (build_file_translate): New.
5098         (gcc-vers.texi): Use it for translating $(abs_srcdir).
5099         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
5100         * configure.ac (build_file_translate): Substitute it.
5101         * configure: Regenerate.
5102
5103 2008-02-19  Jan Hubicka  <jh@suse.cz>
5104
5105         PR rtl-optimization/34408
5106         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
5107         invalid sharing.
5108
5109 2008-02-19  Jan Hubicka  <jh@suse.cz>
5110
5111         PR middle-end/28779
5112         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
5113         call_expr.
5114
5115 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5116
5117         PR Ada/35186
5118         * config/i386/i386-modes.def: Revert the last DI alignment
5119         change until Ada people can look into it.
5120
5121 2008-02-19  Nick Clifton  <nickc@redhat.com>
5122
5123         * opts.c (print_specific_help): Fix typo in --help text.
5124
5125 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
5126
5127         PR target/35239
5128         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
5129         32-bit inline asm without asm alternatives for host GCC < 3.0.
5130
5131 2008-02-19  Richard Guenther  <rguenther@suse.de>
5132
5133         PR tree-optimization/34989
5134         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
5135         Allow propagation to INDIRECT_REF if we can simplify only.
5136
5137 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5138
5139         * c-common.c (warn_for_collisions_1): Use appropriate option when
5140         warning.
5141
5142 2008-02-19  Nick Clifton  <nickc@redhat.com>
5143
5144         PR other/31349
5145         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
5146         (handle_options): Fix indentation.
5147         (print_filtered_help): If no language-specific options were
5148         displayed tell the user how to list all the options supported by
5149         the language's front-end.
5150         (print_specific_help): Fix indentation and remove duplicate line.
5151         (common_handle_option): Handle the -v option.
5152         For --help enable the display of undocumented options if the -v
5153         switch has been included on the command line.
5154         For --help= check for overlaps in the arguments between the option
5155         classes and the language names and issue a warning when they
5156         cannot be disambiguated.
5157         * c.opt (v): Pass on to the common option handler.
5158
5159 2008-02-19  Revital Eres  <eres@il.ibm.com> 
5160
5161         * modulo-sched.c (sms_schedule): Change dump message when
5162         create_ddg function fails.
5163         (try_scheduling_node_in_cycle): Rename row to cycle.
5164         (print_partial_schedule): Rename CYCLE to ROW.
5165
5166 2008-02-19  Christian Bruel  <christian.bruel@st.com>
5167             Zdenek Dvorak  <ook@ucw.cz>
5168
5169         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
5170
5171 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
5172
5173         PR target/33555
5174         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
5175         (*x86_movdicc_0_m1_se): Ditto.
5176
5177 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
5178
5179         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
5180         (CMPtype): Define as __gcc_CMPtype.
5181         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
5182         (CMPtype): Define as __gcc_CMPtype.
5183
5184 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
5185
5186         Support valgrind 3.3 for --enable-checking=valgrind.
5187         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
5188         here.
5189         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
5190         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
5191         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
5192         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
5193         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
5194         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
5195         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
5196         respectively.
5197         * ggc-zone.c: Similar.
5198         * ggc-page.c: Similar.
5199
5200 2008-02-19  Paul Brook  <paul@codesourcery.com>
5201
5202         PR target/35071
5203         * config/arm/ieee754-df.S: Fix do_it typo.
5204         * config/arm/ieee754-sf.S: Fix do_it typo.
5205
5206 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5207
5208         PR target/35189
5209         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
5210         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
5211         (OPTION_MASK_ISA_SSE_SET): Likewise.
5212         (OPTION_MASK_ISA_SSE2_SET): Likewise.
5213         (OPTION_MASK_ISA_SSE3_SET): Likewise.
5214         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
5215         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
5216         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
5217         (OPTION_MASK_ISA_SSE4_SET): Likewise.
5218         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
5219         (OPTION_MASK_ISA_SSE5_SET): Likewise.
5220         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
5221         (OPTION_MASK_ISA_MMX_UNSET): Updated.
5222         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
5223         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5224         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5225         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5226         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5227         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5228         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5229         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
5230         (OPTION_MASK_ISA_SSE4): Removed.
5231         (ix86_handle_option): Turn on bits in ix86_isa_flags and
5232         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
5233         (override_options): Don't turn on implied SSE/MMX bits in
5234         ix86_isa_flags.
5235
5236 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5237
5238         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5239         32bit host.
5240
5241 2008-02-18  Joey Ye  <joey.ye@intel.com>
5242
5243         PR middle-end/34921
5244         * tree-nested.c (insert_field_into_struct): Set type alignment
5245         to field alignment if the former is less than the latter.
5246
5247 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
5248
5249         * BASE-VER: Set to 4.4.0.
5250
5251 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5252
5253         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
5254         * doc/cfg.texi: Likewise.
5255         * doc/extend.texi: Likewise.
5256         * doc/gty.texi: Likewise.
5257         * doc/invoke.texi: Likewise.
5258         * doc/loop.texi: Likewise.
5259         * doc/md.texi: Likewise.
5260         * doc/passes.texi: Likewise.
5261         * doc/rtl.texi: Likewise.
5262         * doc/sourcebuild.texi: Likewise.
5263         * doc/tm.texi: Likewise.
5264         * doc/tree-ssa.texi: Likewise.
5265
5266 2008-02-17  Richard Guenther  <rguenther@suse.de>
5267
5268         PR middle-end/35227
5269         * tree-complex.c (init_parameter_lattice_values): Handle parameters
5270         without default definition.
5271
5272 2008-02-17  Richard Guenther  <rguenther@suse.de>
5273
5274         PR tree-optimization/35231
5275         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
5276         if A | B != 1.
5277
5278 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
5279
5280         Revert:
5281         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
5282         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5283         libgcc_cmp_return mode.
5284
5285 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5286
5287         PR c/28368
5288         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
5289
5290 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
5291
5292         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
5293         multilibs.
5294
5295 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5296
5297         * doc/c-tree.texi: Use `@.' where appropriate.
5298         * doc/extend.texi: Likewise.
5299         * doc/install.texi: Likewise.
5300         * doc/invoke.texi: Likewise.
5301         * doc/loop.texi: Likewise.
5302         * doc/makefile.texi: Likewise.
5303         * doc/md.texi: Likewise.
5304         * doc/passes.texi: Likewise.
5305         * doc/standards.texi: Likewise.
5306         * doc/tm.texi: Likewise.
5307
5308 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
5309
5310         PR middle-end/35196
5311         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
5312         in entry_bb.
5313         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
5314         rather than in entry_bb.
5315
5316 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5317
5318         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5319         libgcc_cmp_return mode.
5320
5321 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
5322
5323         PR middle-end/35130
5324         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
5325         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
5326
5327 2008-02-15  Richard Guenther  <rguenther@suse.de>
5328             Zdenek Dvorak  <ook@ucw.cz>
5329
5330         PR tree-optimization/35164
5331         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
5332         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
5333         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5334         Only propagate addresses which do not have abnormal SSA_NAMEs
5335         in their operands.
5336
5337 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
5338
5339         PR target/35088
5340         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
5341
5342 2008-02-15  Jan Hubicka  <jh@suse.cz>
5343
5344         PR middle-end/35149
5345         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
5346
5347 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5348
5349         PR middle-end/34621
5350         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
5351         when calculating alignment_pad.
5352
5353 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5354
5355         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
5356         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
5357         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
5358         and STACK_BOUNDARY define.
5359
5360 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
5361
5362         PR preprocessor/35061
5363         * c-pragma.c (handle_pragma_pop_macro): Check that
5364         pushed_macro_table has been allocated.
5365
5366 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
5367
5368         PR middle-end/35136
5369         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
5370         (force_gimple_operand): Likewise.
5371         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
5372         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
5373         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
5374         (find_interesting_uses_address): Check addressability and alignment
5375         of the base expression only after substituting bases of IVs into it.
5376
5377 2008-02-14  Michael Matz  <matz@suse.de>
5378
5379         PR target/34930
5380         * function.c (instantiate_virtual_regs_in_insn): Reload address
5381         before falling back to reloading the whole operand.
5382
5383 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5384
5385         * config/s390/s390.c (s390_mainpool_start): Emit the pool
5386         before the first section switch note.
5387
5388 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5389
5390         * doc/bugreport.texi: Update copyright years.
5391         * doc/c-tree.texi: Likewise.
5392         * doc/cfg.texi: Likewise.
5393         * doc/cpp.texi: Likewise.
5394         * doc/cppinternals.texi: Likewise.
5395         * doc/fragments.texi: Likewise.
5396         * doc/frontends.texi: Likewise.
5397         * doc/gcc.texi: Likewise.
5398         * doc/gty.texi: Likewise.
5399         * doc/hostconfig.texi: Likewise.
5400         * doc/implement-c.texi: Likewise.
5401         * doc/libgcc.texi: Likewise.
5402         * doc/loop.texi: Likewise.
5403         * doc/makefile.texi: Likewise.
5404         * doc/options.texi: Likewise.
5405         * doc/passes.texi: Likewise.
5406         * doc/rtl.texi: Likewise.
5407         * doc/sourcebuild.texi: Likewise.
5408         * doc/standards.texi: Likewise.
5409         * doc/tree-ssa.texi: Likewise.
5410         * doc/trouble.texi: Likewise.
5411
5412         * doc/extend.texi: Use @: or add comma where appropriate.
5413         * doc/invoke.texi: Likewise.
5414         * doc/tm.texi: Likewise.
5415
5416 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
5417
5418         PR target/34393
5419         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
5420         to a reg.
5421
5422 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
5423
5424         * doc/md.texi (clz, ctz): Add reference.
5425         * doc/rtl.texi (clz, ctz): Likewise.
5426
5427 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5428
5429         PR other/35148
5430         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
5431         srcdir.
5432
5433 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
5434
5435         * config/s390/s390.c (struct constant_pool): New field
5436         emit_pool_after added.
5437         (s390_mainpool_start): Set the emit_pool_after flag according
5438         to the section switch notes.
5439         (s390_mainpool_finish): Consider emit_pool_after when emitting
5440         the literal pool at the end of the function.
5441         (s390_chunkify_start): Force literal pool splits at section
5442         switch notes.
5443
5444 2008-02-13  Michael Matz  <matz@suse.de>
5445
5446         PR debug/35065
5447         * var-tracking.c (clobber_variable_part): Correctly traverse the
5448         list.
5449
5450 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5451
5452         PR 29673
5453         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5454         Add -fdump-ipa-inline.
5455         * tree-dump.c (dump_files): Remove tree-inlined dump.
5456         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5457         
5458 2008-02-12  Richard Guenther  <rguenther@suse.de>
5459
5460         PR tree-optimization/35171
5461         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5462         default defs.
5463
5464 2008-02-12  Richard Guenther  <rguenther@suse.de>
5465
5466         PR middle-end/35163
5467         * fold-const.c (fold_widened_comparison): Use get_unwidened in
5468         value-preserving mode.  Disallow final truncation.
5469
5470 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
5471
5472         PR middle-end/35136
5473         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5474         code from here to...
5475         (force_gimple_operand): ...here.
5476
5477 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
5478
5479         PR c++/35144
5480         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5481         non-compatible pointers.
5482         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5483         different FIELD_DECLs, try harder by comparing field offsets, sizes
5484         and types.
5485
5486         PR inline-asm/35160
5487         * function.c (match_asm_constraints_1): Don't replace the same input
5488         multiple times.
5489
5490 2008-02-12  Anatoly Sokolov <aesok@post.ru>
5491
5492         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5493         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5494         (expand_epilogue): Restore RAMPZ register.
5495         * config/avr/avr.md (RAMPZ_ADDR): New constant.
5496
5497 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
5498
5499         * config/i386/cygwin.asm: (__alloca): Correct calling
5500         convention and alignment.
5501         (__chkstk): Force 8 byte stack alignment.
5502
5503 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
5504             Richard Guenther  <rguenther@suse.de>
5505
5506         PR tree-optimization/33992
5507         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
5508         the zero we compare against.
5509
5510 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
5511
5512         PR libfortran/35063
5513         * gthr-win32.h (__gthread_mutex_destroy_function): New function
5514         to CloseHandle after unlocking to prevent accumulation of handle
5515         count.
5516
5517 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5518
5519         PR middle_end/34150
5520         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
5521         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
5522         and update LABEL_NUSES during and after reload.
5523
5524 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
5525
5526         PR middle-end/34627
5527         * combine.c (simplify_if_then_else): Make sure the comparison is
5528         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
5529
5530 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
5531
5532         PR bootstrap/35051
5533         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
5534         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
5535         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
5536         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
5537         * tree.h (get_type_static_bounds): Likewise.
5538
5539 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5540
5541         * doc/invoke.texi (Option Summary, C++ Dialect Options)
5542         (Objective-C and Objective-C++ Dialect Options, Warning Options):
5543         Make -Wfoo language annotations match what the compiler outputs.
5544
5545 2008-02-08  Sa Liu  <saliu@de.ibm.com>
5546
5547         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
5548         intrinsics spu_convts, spu_convtu, spu_convtf.
5549         * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
5550
5551 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
5552
5553         * doc/extend.texi (Function Attributes) <noinline>: Mention
5554         asm ("") as method to keep calls.
5555
5556 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5557
5558         PR other/32754
5559         * doc/options.texi (Options): Replace references to opts.sh with
5560         optc-gen.awk.
5561         * opts-common.c: Likewise.
5562         * optc-gen.awk: Likewise.
5563         
5564 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5565
5566         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
5567
5568 2008-02-07  Richard Henderson  <rth@redhat.com>
5569
5570         PR rtl-opt/33410
5571         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
5572         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
5573         funny mode.
5574
5575 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
5576
5577         PR tree-optimization/35085
5578         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
5579         for operand entry oe2 in addition to operand entry oe3 in order to
5580         expose more opportunities for vectorizer sum reduction.
5581
5582 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5583
5584         PR other/35107
5585         * Makefile.in (LIBS): Remove $(GMPLIBS).
5586         (cc1-dummy, cc1): Add $(GMPLIBS).
5587
5588 2008-02-06  Jan Hubicka  <jh@suse.cz>
5589
5590         PR target/23322
5591         * i386.md (moddf_integer): Do not produce partial memory stalls for
5592         targets where it hurts.
5593
5594 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
5595
5596         PR target/35083
5597         * optabs.c (expand_float): Do not check for decimal modes when
5598         expanding unsigned integer through signed conversion.
5599
5600 2008-02-06  Nick Clifton  <nickc@redhat.com>
5601
5602         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
5603         inside the clobber with a match_operand and duplicated operand
5604         number in the constraint.
5605         (ineqbranchsi): Delete redundant comment.
5606
5607 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
5608
5609         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
5610         builtin_define ("__USE_INIT_FINI__").
5611         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
5612         -msx multilibs.
5613         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
5614
5615 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5616
5617         PR documentation/30330
5618         * doc/invoke.texi (C++ Dialect Options)
5619         (Objective-C and Objective-C++ Dialect Options, Warning Options):
5620         For each warning option -Wfoo that allows -Wno-foo, ensure both
5621         -Wfoo and -Wno-foo are listed in the option index.  Fix index
5622         entry of -Wswitch-default, index -Wnormalized= including the
5623         `=', and -Wlarger-than-@var{len} including @var{len}.
5624
5625 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
5626
5627         * config/i386/i386.md (floatunssisf2): Use
5628         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
5629         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
5630         Macroize expander using MODEF mode iterator.
5631
5632 2008-02-05  Diego Novillo  <dnovillo@google.com>
5633
5634         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
5635
5636         PR 33738
5637         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
5638
5639 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5640
5641         PR other/35070
5642         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
5643
5644 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
5645
5646         PR target/35084
5647         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
5648         to indicate if a message should be generated.
5649         (init_cumulative_args): Updated.
5650         (function_value_32): Likewise.
5651
5652 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
5653
5654         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
5655
5656 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
5657
5658         PR target/35083
5659         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
5660         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
5661
5662 2008-02-04  Diego Novillo  <dnovillo@google.com>
5663
5664         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
5665
5666         PR 33738
5667         * tree-vrp.c (vrp_evaluate_conditional): With
5668         -Wtype-limits, emit a warning when comparing against a
5669         constant outside the natural range of OP0's type.
5670
5671 2008-02-04  Richard Guenther  <rguenther@suse.de>
5672
5673         PR middle-end/33631
5674         * expr.c (count_type_elements): Give for unions instead of
5675         guessing.
5676
5677 2008-02-04  Richard Guenther  <rguenther@suse.de>
5678
5679         PR middle-end/35043
5680         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
5681         to TYPE_DOMAINs base type instead of using bitsizetype here.
5682
5683 2008-02-03  Jason Merrill  <jason@redhat.com>
5684
5685         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
5686
5687 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5688
5689         PR other/29972
5690         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
5691         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
5692         (RS/6000 and PowerPC Options): Fix typos and markup.
5693         * doc/passes.texi (Tree-SSA passes): Likewise.
5694
5695 2008-02-02  Michael Matz  <matz@suse.de>
5696
5697         PR target/35045
5698         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
5699         from record_last_reg_set_info.
5700         (record_last_reg_set_info): Take an RTX argument, iterate over all
5701         constituent hardregs.
5702         (record_last_set_info, record_opr_changes): Change calls to
5703         new signature or to record_last_reg_set_info_regno.
5704
5705 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
5706
5707         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
5708
5709 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
5710
5711         PR rtl-optimization/34773
5712         * reg-notes.def (EQUAL): Mention significance of combination of
5713         REG_EQUAL and REG_RETVAL.
5714         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
5715         insn that has a REG_RETVAL.
5716
5717 2008-02-01  Roger Sayle  <roger@eyesopen.com>
5718
5719         PR bootstrap/33781
5720         * configure.ac (--enable-fixed-point): Disable unless explicitly
5721         requested on IRIX.
5722         * configure: Regenerate.
5723
5724 2008-02-01  Richard Guenther  <rguenther@suse.de>
5725
5726         PR other/35042
5727         * invoke.texi (-finline-limit): Remove no longer true parts
5728         of the documentation.  Note that there is no default value.
5729
5730 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
5731             Mark Mitchell  <mark@codesourcery.com>
5732             Ben Elliston  <bje@au.ibm.com>
5733
5734         PR c/29326
5735         * doc/extend.texi (Other Builtins): Document.
5736
5737 2008-01-31  Tom Browder <tom.browder@gmail.com>
5738
5739         * doc/c-tree.texi (Types): Fix grammar.
5740         (Expression trees): Ditto.
5741         * doc/passes.texi (Tree-SSA passes): Ditto.
5742         
5743         * doc/configterms.texi (Configure Terms): Fix typo.
5744         * doc/cpp.texi (Common Predefined Macros): Ditto.
5745         * doc/md.texi (Machine Constraints): Ditto.
5746         
5747         * doc/makefile.texi (Makefile): Add comma.
5748
5749 2008-01-31  Tom Browder  <tom.browder@gmail.com>
5750             Gerald Pfeifer  <gerald@pfeifer.com>
5751         
5752         * doc/sourcebuild.texi (Front End): Remove references to CVS
5753         and CVSROOT/modules.
5754         (Texinfo Manuals): Replace reference to CVS by one to SVN.
5755         (Back End): Remove reference to CVS.
5756
5757 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
5758
5759         PR target/34900
5760         * config/mips/mips.c (gen_load_const_gp): New function, taking a
5761         comment from...
5762         (mips16_gp_pseudo_reg): ...here.
5763         * config/mips/mips.md (load_const_gp): Replace with...
5764         (load_const_gp_<mode>): ...this :P-based insn.
5765
5766 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5767
5768         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
5769         options. Minor fixes.
5770         (-std): Move reference to standards closer to where language
5771         standards are first mentioned.
5772         
5773 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
5774
5775         PR rtl-optimization/34995
5776         * reload.c (alternative_allows_const_pool_ref): Take an rtx
5777         parameter and return a bool.  If the rtx parameter is nonnull,
5778         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
5779         (find_reloads): Update call accordingly.  Pass the new operand
5780         if it needed no address reloads, otherwise pass null.
5781
5782 2008-01-30  Richard Henderson  <rth@redhat.com>
5783
5784         PR c/34993
5785         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
5786         for unbounded arrays.
5787
5788 2008-01-30  Silvius Rus  <rus@google.com>
5789
5790         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
5791
5792 2008-01-30  Jan Hubicka  <jh@suse.cz>
5793
5794         PR target/34982
5795         * i386.c (init_cumulative_args): Use real function declaration when
5796         calling locally.
5797
5798 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
5799
5800         PR rtl-optimization/34998
5801         * global.c (build_insn_chain): Treat non-subreg_lowpart
5802         SUBREGs of pseudos as clobbering all the words covered by the
5803         SUBREG, not just all the bytes.
5804         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
5805         original df_ref rather than an extract parameter.
5806         (global_conflicts): Update call accordingly.
5807
5808 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
5809
5810         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
5811         the overflow check to make it easier to read.
5812         (__fixtfdi): Change the type of the ll member in union
5813         long_double to UDItype_x.
5814
5815 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
5816
5817         PR middle-end/34969
5818         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
5819         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
5820         * tree-inline.c (fold_marked_statements): Call
5821         cgraph_update_edges_for_call_stmt if folding a call statement.
5822         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
5823         debug_generic_stmt calls, reset it back afterwards.
5824
5825         PR c/35017
5826         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
5827         static decls.
5828         * c-typeck.c (build_external_ref): Don't pedwarn about
5829         static vars in current function's scope.
5830
5831 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
5832
5833         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
5834
5835 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
5836
5837         PR c/35002
5838         * ipa-struct-reorg.c: Fix spelling.
5839         * params.def: Ditto.
5840
5841 2008-01-29  Richard Guenther  <rguenther@suse.de>
5842
5843         PR middle-end/35006
5844         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
5845         field.
5846         * tree-inline.c (remap_type): Increment remapping_type_depth
5847         around remapping types.
5848         (copy_body_r): Only add referenced variables if they are referenced
5849         from code, not types.
5850
5851 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
5852
5853         PR c++/34055
5854         PR c++/34103
5855         PR c++/34219
5856         PR c++/34606
5857         PR c++/34753
5858         PR c++/34754
5859         PR c++/34755
5860         PR c++/34919
5861         PR c++/34961
5862         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
5863         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
5864
5865 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
5866
5867         PR target/34412
5868         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
5869         pointer for tiny stack.
5870
5871 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
5872
5873         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
5874
5875 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
5876
5877         * config/vx-common.h: Fix typo in comment.
5878
5879 2008-01-28  Ian Lance Taylor  <iant@google.com>
5880
5881         PR c++/34862
5882         PR c++/33407
5883         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5884         coalesce pointers if they have different DECL_NO_TBAA_P values.
5885         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
5886         between variables with different DECL_NO_TBAA_P values.
5887
5888 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
5889
5890         PR 31535
5891         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
5892         are not legitimate small data references on SPE targets.
5893
5894 2008-01-28  David Daney  <ddaney@avtrex.com>
5895
5896         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
5897
5898 2008-01-28  David Daney  <ddaney@avtrex.com>
5899
5900         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
5901
5902 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
5903
5904         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
5905         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
5906         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
5907         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
5908         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5909         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
5910         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
5911         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
5912
5913 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5914
5915         * basic-block.h (condjump_equiv_p): Fix comment.
5916
5917 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5918
5919         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
5920         print_generic_stmt_indented): Fix comment.
5921
5922 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5923
5924         * configure.ac (__stack_chk_fail): Add detecion for availability
5925         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
5926         * configure: Regenerate.
5927
5928 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
5929
5930         PR middle-end/34688
5931         * final.c (output_addr_const): Handle TRUNCATE.
5932
5933 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
5934
5935         PR target/34711
5936         * tree-ssa-loop-ivopts.c (comp_cost): New type.
5937         (zero_cost, infinite_cost): New constants.
5938         (struct cost_pair): Change type of cost to comp_cost.
5939         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
5940         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
5941         New functions.
5942         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
5943         split_address_cost, ptr_difference_cost, difference_cost,
5944         get_computation_cost_at, get_computation_cost,
5945         determine_use_iv_cost_generic, determine_use_iv_cost_address,
5946         determine_use_iv_cost_condition, determine_use_iv_costs,
5947         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
5948         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
5949         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
5950         Change type of cost to comp_cost.
5951         (determine_iv_cost): Increase cost of non-original ivs, instead
5952         of decreasing the cost of original ones.
5953         (get_address_cost): Indicate the complexity of the addressing mode 
5954         in comp_cost.
5955         (try_add_cand_for): Prefer using ivs not specific to some object.
5956         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
5957
5958 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
5959             Janis Johnson  <janis187@us.ibm.com>
5960
5961         PR target/34814
5962         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
5963         (TARGET_INSTANTIATE_DECLS): Likewise.
5964         * target.h (expand_to_rtl_hook): New target hook.
5965         (instantiate_decls): Likewise.
5966         * function.c (instantiate_decl): Make non-static.  Rename to...
5967         (instantiate_decl_rtl): ... this.
5968         (instantiate_expr): Use instantiate_decl_rtl.
5969         (instantiate_decls_1): Likewise.
5970         (instantiate_decls): Likewise.
5971         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
5972         * function.h (instantiate_decl_rtl): Add prototype.
5973         * cfgexpand.c (target.h): New include.
5974         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
5975         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
5976         (TARGET_INSTANTIATE_DECLS): Likewise.
5977         (TARGET_INITIALIZER): New target hooks added.
5978         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
5979         New prototype.
5980         * config/rs6000/rs6000.c (tree-flow.h): New include.
5981         (machine_function): Add sdmode_stack_slot field.
5982         (rs6000_alloc_sdmode_stack_slot): New function.
5983         (rs6000_instantiate_decls): Likewise.
5984         (rs6000_secondary_memory_needed_rtx): Likewise.
5985         (rs6000_check_sdmode): Likewise.
5986         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
5987         (TARGET_INSTANTIATE_DECLS): Likewise.
5988         (rs6000_hard_regno_mode_ok): Allow SDmode.
5989         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
5990         (rs6000_emit_move): Handle SDmode.
5991         (function_arg_advance): Likewise.
5992         (function_arg): Likewise.
5993         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
5994         SDmode var args for 32-bit compiles.
5995         (rs6000_secondary_reload_class): Handle SDmode.
5996         (rs6000_output_function_epilogue): Likewise.
5997         (rs6000_function_value): Simplify if statement.
5998         (rs6000_libcall_value): Likewise.
5999         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
6000         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
6001         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
6002         (movsd_hardfloat): New define_insn.
6003         (movsd_softfloat): Likewise.
6004         (movsd_store): Likewise.
6005         (movsd_load): Likewise.
6006         (extendsddd2): Likewise.
6007         (extendsdtd2): Likewise.
6008         (truncddsd2): Likewise.
6009         (movdd_hardfloat64): Fixup comment.
6010         (UNSPEC_MOVSD_LOAD): New constant.
6011         (UNSPEC_MOVSD_STORE): Likewise.
6012
6013 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
6014
6015         PR c++/34965
6016         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
6017         TRUTH_XOR_EXPR.
6018         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
6019         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
6020         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
6021         and TRUTH_XOR_EXPR.
6022
6023 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
6024
6025         PR target/34794
6026         * config.gcc: Separate AIX 5.3 from AIX 6.1.
6027         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6028         __LONGDOUBLE128 too.
6029         * config/rs6000/aix61.h: New file.
6030
6031 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
6032
6033         PR rtl-optimization/34959
6034         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
6035         popcount and parity rtxes the same mode as their operand.
6036         Truncate or extend the result to the return value's mode
6037         if necessary.
6038
6039 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
6040
6041         PR target/34981
6042         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
6043         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
6044         to GOT_VERSION_REGNUM.
6045         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
6046         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
6047         * config/mips/mips.c (mips_emit_call_insn): New function.
6048         (mips_call_tls_get_addr): Call mips_expand_call directly.
6049         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
6050         emit_call_insn.
6051         (mips16_build_call_stub): Likewise.  Return the call insn or null.
6052         (mips_expand_call): Update the call to mips16_build_call_stub
6053         accordingly and a remove redundant condition.  Assert that MIPS16
6054         stubs do not use lazy binding.  Use mips_emit_call_insn and return
6055         the call insn.
6056         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
6057         TARGET_USE_GOT.
6058         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
6059         (mips_avoid_hazard): Remove hazard_set handling.
6060         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
6061         (UNSPEC_RESTORE_GP): ...this.
6062         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
6063         (FAKE_CALL_REGNO): Rename to...
6064         (GOT_VERSION_REGNUM): ...this.
6065         (type): Add "ghost" value.  Add an associated insn reservation.
6066         (hazard_set): Remove.
6067         (exception_receiver): Rename to...
6068         (restore_gp): ...this and update the unspec identifier accordingly.
6069         (exception_receiver, nonlocal_got_receiver): New expanders.
6070         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
6071         FAKE_CALL_REGNO.  Remove hazard_set attribute.
6072         (set_got_version, update_got_version): New patterns.
6073
6074 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
6075
6076         PR target/34970
6077         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
6078
6079 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
6080
6081         PR other/31955
6082         * doc/install.texi2html: Generate gcc-vers.texi.
6083
6084 2008-01-25  DJ Delorie  <dj@redhat.com>
6085
6086         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6087
6088 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
6089
6090         * config/c4x: Remove directory.
6091         * config.gcc (crx-*, mt-*): Mark obsolete.
6092         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
6093         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
6094         sh-*-rtemscoff*): Remove cases.
6095         * defaults.h (C4X_FLOAT_FORMAT): Remove.
6096         * real.c (encode_c4x_single, decode_c4x_single,
6097         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
6098         c4x_extended_format): Remove.
6099         * real.h (c4x_single_format, c4x_extended_format): Remove.
6100         * doc/extend.texi (interrupt, naked): Remove mention of attributes
6101         on C4x.
6102         (Pragmas): Remove comment about c4x pragmas.
6103         * doc/install.texi (c4x): Remove target-specific instructions.
6104         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
6105         * doc/md.texi (Machine Constraints): Remove C4x documentation.
6106         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
6107         refer to C4x source files as examples.
6108         (C4X_FLOAT_FORMAT): Remove documentation.
6109
6110 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
6111
6112         * config/bfin/bfin.c (override_options): Reorder tests so that
6113         flag_pic gets enabled for -msep-data.
6114
6115 2008-01-25  Richard Guenther  <rguenther@suse.de>
6116
6117         PR middle-end/32244
6118         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
6119         to its bitfield precision if required.
6120
6121 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
6122
6123         PR middle-end/33880
6124         * tree-nested.c (walk_omp_for): New function.
6125         (convert_nonlocal_reference, convert_local_reference): Call
6126         walk_omp_for on OMP_FOR.
6127         (convert_call_expr): Call walk_body on OMP_FOR's
6128         OMP_FOR_PRE_INIT_BODY.
6129
6130 2008-01-25  Richard Guenther  <rguenther@suse.de>
6131
6132         PR tree-optimization/34966
6133         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
6134         default defs and PHI_NODEs we have to insert after the
6135         defining statement.
6136
6137 2008-01-24  Nick Clifton  <nickc@redhat.com>
6138
6139         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
6140         Provide a default definition.
6141         (LIBGCC2_UNITS_PER_WORD): Likewise.
6142
6143         * config/stormy16/stormy16.c: Include df.h for the prototype
6144         for df_regs_ever_live_p.
6145         (xstormy16_expand_builtin_va_start): Convert the stack offset
6146         into a component_ref and then use POINTER_PLUS_EXPR to add it
6147         to the incoming_virtual_args_rtx.
6148         (xstormy16_gimplify_va_arg_expr): Rename to
6149         xstormy16_gimplify_va_arg_expr.
6150         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
6151         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
6152         xstormy16_gimplify_va_arg_expr.
6153         Fix up some formatting issues.
6154
6155         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
6156         Move to predicates.md.
6157         (xs_hi_general_operand): Likewise.
6158         (xs_hi_nonmemory_operand): Likewise.
6159         * config/stormy16/predicates.md:
6160         (xstormy16_carry_plus_operand): New predicate.
6161         (xs_hi_general_operand): New predicate.
6162         (xs_hi_nonmemory_operand): New predicate.
6163         * config/stormy16/stormy16-protos.h:
6164         (xstormy16_carry_plus_operand): Delete prototype.
6165         (xs_hi_general_operand): Likewise.
6166         (xs_hi_nonmemory_operand): Likewise.
6167
6168         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
6169         modifiers as they are no longer needed and they can trigger
6170         reload spill failures.
6171
6172         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
6173         with a match_operand in order to help reload.
6174
6175         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
6176         constraint with 'e' for the 8th alternative as this version of
6177         the mov.w instruction only accepts the lower 8 registers.
6178
6179 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
6180
6181         PR target/34856
6182         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
6183         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
6184         vector elements.
6185
6186 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
6187
6188         PR middle-end/33333
6189         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
6190
6191 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
6192
6193         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
6194         New functions.
6195         (remove_structure): Update allocations list before removing structure.
6196         
6197 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
6198
6199         * ipa-struct-reorg.c (is_safe_cond_expr, 
6200         create_new_stmts_for_cond_expr): Use integer_zerop function,
6201         that recognize not only zero-pointer, but zero-integer too.
6202
6203 2008-01-25  Ben Elliston  <bje@au.ibm.com>
6204
6205         PR other/22232
6206         * fixproto: Escape "." in sed expression that strips leading "./".
6207
6208 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6209
6210         PR driver/34904
6211         * gcc.c (SWITCH_OK): Removed.
6212         (SWITCH_LIVE): Changed to bit.
6213         (SWITCH_FALSE): Likewise.
6214         (SWITCH_IGNORE): Likewise.
6215         (switchstr): Change live_cond to unsigned int.
6216         (process_command): Replace SWITCH_OK with 0.
6217         (do_self_spec): Likewise.
6218         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
6219         (give_switch): Likewise.
6220         (used_arg): Likewise.
6221         (do_spec_1): Set the SWITCH_IGNORE bit.
6222         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
6223         bits.  Set the SWITCH_LIVE bit.
6224
6225 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6226
6227         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
6228
6229 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
6230
6231         PR tree-optimization/34472
6232         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
6233         parameter to a "bool *" and set *DATA to false if there is
6234         an unsafe access.  Do not delete the structure here.
6235         (check_cond_exprs): Delete it here instead.
6236         (check_cond_exprs, exclude_cold_structs): Do not increase
6237         I when removing a structure.
6238
6239 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
6240
6241         PR target/34856
6242         * config/i386/i386.c (ix86_expand_vector_init): Consider only
6243         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
6244
6245 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
6246
6247         PR middle-end/34934
6248         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
6249         a fixed vector for stack.
6250
6251 2008-01-24  Ben Elliston  <bje@au.ibm.com>
6252
6253         PR c++/25701
6254         * doc/gcc.texi (Software development): Add a direntry for g++.
6255         
6256 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
6257
6258         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
6259         stale and straggling -fforce-addr comments above.
6260
6261         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
6262         define.
6263         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
6264         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
6265
6266 2008-01-23  Michael Matz  <matz@suse.de>
6267
6268         PR debug/34895
6269         * dwarf2out.c (force_type_die): Use modified_type_die instead of
6270         gen_type_die.
6271
6272 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
6273
6274         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
6275         malloc result type.
6276
6277 2008-01-23 Anatoly Sokolov <aesok@post.ru>
6278
6279         * config/avr/avr.c (avr_current_arch): New variable.
6280         (avr_arch_types): Add 'avr31' and 'avr51' entries.
6281         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
6282         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
6283         (avr_override_options): Init 'avr_current_arch'. 
6284         (base_arch_s): Move from here...
6285         * config/avr/avr.h (base_arch_s): ... here. Add new members 
6286         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
6287         'mega' to 'have_jmp_call'.
6288         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
6289         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
6290         macros.
6291         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
6292         architectures.
6293         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
6294         MULTILIB_MATCHES): (Ditto.).
6295
6296 2008-01-23  Richard Guenther  <rguenther@suse.de>
6297
6298         PR middle-end/31529
6299         * cgraphunit.c (cgraph_reset_node): Always mark the node
6300         not reachable if it is not queued already.
6301
6302 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
6303
6304         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
6305         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
6306         (cputype_selected): New static variable.
6307         (bfin_handle_option): Set it if -mcpu is used.
6308         (override_option): Select default set of workarounds if no cpu type
6309         selected on the command line.
6310         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
6311
6312         From  Michael Frysinger  <michael.frysinger@analog.com>
6313         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
6314         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
6315
6316         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
6317         for bf547, bf523, bf524, and bf526.
6318         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
6319         bf526.
6320         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6321         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
6322         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
6323         __ADSPBF547__ and __ADSPBF54x__ for bf547.
6324         * doc/invoke.texi (Blackfin Options): Document that
6325         -mcpu now accept bf547, bf523, bf524, and bf526.
6326
6327 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
6328
6329         PR rtl-optimization/34628
6330         * combine.c (try_combine): Stop and undo after the first combination
6331         if an autoincrement side-effect on the first insn has effectively
6332         been lost.
6333
6334 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
6335
6336         PR target/34529
6337         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
6338         Offset addresses are not valid for Altivec or paired float modes.
6339
6340 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
6341
6342         PR c++/34607
6343         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
6344         if DECL_INITIAL (decl) is error_mark_node.
6345
6346         PR c++/34914
6347         * c-common.c (handle_vector_size_attribute): Only allow
6348         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
6349         the same way as pointer, array etc. types.
6350         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
6351
6352         PR c++/34917
6353         * tree.c (build_type_attribute_qual_variant): Call
6354         build_qualified_type if attributes are equal, but quals are not.
6355
6356 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6357
6358         PR 32102
6359         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
6360         * flags.h (warn_strict_aliasing): Remove.
6361         (warn_strict_overflow): Remove.
6362         * opts.c (warn_strict_aliasing): Remove.
6363         (warn_strict_overflow): Remove.
6364         * c-opts.c (c_common_handle_option): -Wall only sets
6365         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
6366         (c_common_post_options): Give default values to -Wstrict-aliasing
6367         and -Wstrict-overflow if they are uninitialized.
6368         * common.opt (Wstrict-aliasing): Specify Var and Init.
6369         (Wstrict-overflow): Likewise.
6370
6371 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
6372
6373         PR rtl-optimization/26854
6374         PR rtl-optimization/34400
6375         PR rtl-optimization/34884
6376         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
6377         DF_RD->gen.
6378         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
6379         (df_rd_bb_info.expanded_lr_out): Deleted
6380         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
6381         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
6382         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6383         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6384         Removed code to allocate, initialize or free expanded_lr_out.
6385         (df_rd_bb_local_compute_process_def): Restructured to make more
6386         understandable.
6387         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
6388         sets if the sets are being trimmed.
6389
6390 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         PR bootstrap/32287
6393         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
6394         (as_vers): Likewise.
6395         * configure: Regenerated.
6396
6397 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6398
6399         PR middle-end/33092
6400         * tree-pass.h (pass_build_alias): New pass.
6401         * tree-ssa-alias.c (gate_build_alias): New.
6402         (pass_build_alias): New.
6403         * passes.c (init_optimization_passes): Add pass_build_alias after
6404         pass_create_structure_vars.
6405
6406 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
6407
6408         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
6409         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
6410         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
6411         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
6412         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
6413         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
6414         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
6415         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
6416         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
6417         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
6418         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
6419         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
6420         * config/s390/s390.md (FP_ALL): New mode iterator.
6421         (_d): New mode attribute.
6422         ("*signbit<mode>2>"): Changed mode of first operand.
6423         ("isinf<mode>2"): Changed mode of first operand.
6424         ("*TDC_insn"): Adaptation for DFP modes.
6425
6426 2008-01-22  Ben Elliston  <bje@au.ibm.com>
6427
6428         * tree.c (check_qualified_type): Improve function description.
6429
6430 2008-01-21  Jason Merrill  <jason@redhat.com>
6431
6432         PR c++/34196
6433         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
6434         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
6435         if it is set.
6436
6437 2008-01-21  DJ Delorie  <dj@redhat.com>
6438
6439         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
6440         return zero.
6441
6442 2008-01-21  Richard Guenther  <rguenther@suse.de>
6443
6444         PR middle-end/34856
6445         * tree-cfg.c (verify_expr): Allow all invariant expressions
6446         instead of just constant class ones as reference argument.
6447         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
6448         like any other constant.
6449         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6450
6451 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
6452
6453         * regmove.c (fixup_match_1): Update call crossed frequencies.
6454
6455 2008-01-21  Richard Guenther  <rguenther@suse.de>
6456
6457         PR c/34885
6458         * tree-inline.c (setup_one_parameter): Deal with mismatched
6459         types using a VIEW_CONVERT_EXPR.
6460
6461 2008-01-21  Alon Dayan  <alond@il.ibm.com>
6462             Olga Golovanevsky  <olga@il.ibm.com>
6463         
6464         PR tree-optimization/34701
6465         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
6466         when the structure size is not a power of 2.
6467
6468 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
6469
6470         * doc/install.texi: Add doc for --enable-checking=df.
6471         
6472 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6473
6474         PR rtl-optimization/34808
6475         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
6476
6477 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
6478
6479         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
6480         input.
6481
6482 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
6483
6484         PR rtl-optimization/26854
6485         PR rtl-optimization/34400
6486         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
6487         DF_RD->gen.
6488         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
6489         (df_rd_bb_info.expanded_lr_out): New.
6490         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
6491         * loop_iv.c (iv_analysis_loop_init): Ditto.
6492         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6493         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6494         Added code to allocate, initialize or free expanded_lr_out.
6495         (df_rd_bb_local_compute_process_def): Restructured to make
6496         more understandable.
6497         (df_rd_confluence_n): Add code to do nothing with fake edges and
6498         code to no apply invalidate_by_call sets if the sets are being trimmed.
6499         (df_lr_local_finalize): Renamed to df_lr_finalize.
6500         (df_live_local_finalize): Renamed to df_live_finalize.
6501
6502 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
6503
6504         PR target/34831
6505         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
6506         deciding whether to use reciprocal instructions.
6507
6508 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
6509
6510         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
6511         dwarf2out_note_section_used if cold_text_section is NULL.
6512
6513 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
6514
6515         PR gcov-profile/34610
6516         * tree-cfg.c (make_edges): Mark both outgoing edges from
6517         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
6518         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
6519         from OMP_FOR and OMP_CONTINUE outgoing edges.
6520
6521         * tree-profile.c (tree_profiling): Return early if
6522         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
6523         at the end.
6524         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
6525         from cfun to child_cfun.
6526         * function.h (struct function): Add after_tree_profile bit.
6527
6528 2008-01-19 Anatoly Sokolov <aesok@post.ru>
6529
6530         * config/avr/avr.S (_exit): Disable interrupt.
6531
6532 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
6533             Steven Bosscher  <stevenb.gcc@gmail.com>
6534
6535         PR rtl-optimization/26854
6536         PR rtl-optimization/34400
6537         * df-problems.c (df_live_scratch): New scratch bitmap.
6538         (df_live_alloc): Allocate df_live_scratch when doing df_live.
6539         (df_live_reset): Clear the proper bitmaps.
6540         (df_live_bb_local_compute): Only process the artificial defs once
6541         since the order is not important.
6542         (df_live_init): Init the df_live sets only with the variables
6543         found live by df_lr.
6544         (df_live_transfer_function): Use the df_lr sets to prune the
6545         df_live sets as they are being computed.  
6546         (df_live_free): Free df_live_scratch.
6547
6548 2008-01-18  Ian Lance Taylor  <iant@google.com>
6549
6550         * common.opt: Add fmerge-debug-strings.
6551         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
6552         flag_merge_debug_strings rather than flag_merge_constants.
6553         * doc/invoke.texi (Option Summary): Mention
6554         -fmerge-debug-strings.
6555         (Debugging Options): Document -fmerge-debug-strings.
6556
6557 2008-01-18  Ian Lance Taylor  <iant@google.com>
6558
6559         PR c++/33407
6560         * tree.h (DECL_IS_OPERATOR_NEW): Define.
6561         (struct tree_function_decl): Add new field operator_new_flag.
6562         * tree-inline.c (expand_call_inline): When inlining a call to
6563         operator new, force the return value to go into a variable, and
6564         set DECL_NO_TBAA_P on that variable.
6565         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
6566
6567 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
6568
6569         PR debug/34484
6570         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
6571         DWARF2_DEBUGGING_INFO.
6572         (dwarf2out_note_section_used): Ditto.  Add prototype.
6573         (have_multiple_function_sections, text_section_used,
6574         cold_text_section_used, *cold_text_sections): Move declarations
6575         before their uses.
6576
6577 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
6578
6579         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
6580         field and add signal_ra.
6581         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
6582         assignments to frame state pc.  Move end of stack check after
6583         MD_FALLBACK_FRAME_STATE_FOR.
6584         (uw_update_context_1): Use frame state signal_regs if set, instead
6585         of checking signal_frame flag.
6586         (uw_update_context): Use frame state signal_ra if set.
6587         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
6588         * config/xtensa/linux-unwind.h: New file.
6589
6590 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
6591
6592         * modulo-sched.c (get_sched_window): Fix comment typo.
6593
6594 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
6595
6596         PR tree-optimization/34648
6597         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
6598
6599 2008-01-17  Anatoly Sokolov <aesok@post.ru>
6600
6601         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
6602         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
6603
6604 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
6605
6606         PR rtl-optimization/34400
6607         * df-core.c (df_worklist_dataflow_overeager,
6608         df_worklist_dataflow_doublequeue): New functions.
6609         (df_worklist_dataflow): Two different worklist solvers.
6610         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
6611         New param.
6612
6613 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6614
6615         PR testsuite/34821
6616         * doc/invoke.texi: Document the dependence on pthread for fopenmp
6617         and ftree-parallelize-loops.
6618
6619 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
6620
6621         PR rtl-optimization/34826
6622         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
6623
6624 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
6625
6626         * global.c (find_reg): Mark the eh regs as used if necessary.
6627         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
6628         * ra.h (struct allocno): no_eh_reg field added.  Changed
6629         no_stack_reg type to bitfield.
6630
6631 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6632
6633         * tree.c (substitute_in_expr): Add missing 'break'.
6634
6635 2008-01-17  Richard Guenther  <rguenther@suse.de>
6636
6637         PR tree-optimization/34825
6638         * tree-ssa-math-opts.c (is_division_by): Do not recognize
6639         x / x as division to handle.
6640
6641 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6642
6643         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
6644         "-pthread" is specified.
6645         * pa-hpux11.h (LIB_SPEC): Likewise.
6646
6647 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
6648             Peter Bergner  <bergner@vnet.ibm.com>
6649
6650         PR rtl-optimization/33796
6651         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
6652
6653 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6654
6655         PR libgfortran/34699
6656         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
6657         static links.
6658         * pa-hpux10.h (LINK_SPEC): Likewise.
6659         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
6660
6661 2008-01-16  Richard Guenther  <rguenther@suse.de>
6662
6663         PR middle-end/32628
6664         * fold-const.c (fold_convert_const_int_from_int): Do not
6665         set overflow if that occured only because of a sign extension
6666         change when converting from/to a sizetype with the same
6667         precision and signedness.
6668
6669 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
6670
6671         PR debug/34249
6672         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
6673         location address to the correct place.  Update copyright year.
6674
6675 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6676
6677         * lambda-code.c (lambda_transform_legal_p): Handle the case of
6678         no dependences in the dependence_relations vector.
6679
6680 2008-01-16  Jan Hubicka  <jh@suse.cz>
6681
6682         PR rtl-optimization/31396
6683         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
6684         * cfg.c (dump_reg_info): Print it.
6685         * regs.h (struct reg_info_t): add freq_calls_crossed.
6686         (REG_FREQ_CALLS_CROSSED): New macro.
6687         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
6688         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
6689         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
6690         regmove_optimize): Update call crossed frequencies.
6691         * local-alloc.c (struct qty): Add freq_calls_crossed.
6692         (alloc_qty): Copute freq_calls_crossed.
6693         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
6694         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
6695         * ra.h (struct allocno): Add freq_calls_crossed.
6696
6697 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6698
6699         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
6700         libgomp when compiling with ftree-parallelize-loops.
6701         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
6702
6703 2008-01-16  Richard Guenther  <rguenther@suse.de>
6704
6705         PR tree-optimization/34769
6706         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
6707         * tree.c (int_cst_value): Instead make this function more
6708         permissive in what it accepts as valid input.  Document this
6709         function always sign-extends the value.
6710
6711 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
6712             Richard Guenther  <rguenther@suse.de>
6713
6714         PR c/34668
6715         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
6716         (gimple_fold_indirect_ref_rhs): ... this.
6717         (gimple_fold_indirect_ref): New function with foldings
6718         that preserve lvalueness.
6719         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
6720         * tree-flow.h (gimple_fold_indirect_ref): Declare.
6721         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
6722         to fold an INDIRECT_REF, fall back to the old use of
6723         fold_indirect_ref_1.
6724
6725 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6726
6727         * tree-data-ref.c (subscript_dependence_tester_1): Call 
6728         free_conflict_function.
6729         (compute_self_dependence): Same.
6730
6731 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
6732
6733         PR debug/34249
6734         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
6735         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
6736         function global.
6737         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
6738         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
6739         for DWARF2_UNWIND_INFO targets.
6740
6741 2008-01-16  Richard Guenther  <rguenther@suse.de>
6742
6743         PR c/34768
6744         * c-typeck.c (common_pointer_type): Do not merge inconsistent
6745         type qualifiers for function types.
6746
6747 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
6748
6749         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
6750         loop_iterator li from previous commit.
6751
6752 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
6753
6754         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
6755
6756 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
6757
6758         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
6759         (parallelize_loops): Don't parallelize irreducible components.
6760
6761 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6762
6763         PR c++/24924
6764         * c-opts (c_common_post_options): Do not enable CPP
6765         flag_pedantic_errors by default.
6766         
6767 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
6768
6769         PR rtl-optimization/31944
6770         * cse.c (remove_pseudo_from_table): New function.
6771         (merge_equiv_classes): Use above function to remove pseudo-registers.
6772         (invalidate): Likewise.
6773
6774 2008-01-13  Richard Guenther  <rguenther@suse.de>
6775
6776         PR middle-end/34601
6777         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
6778         instead of TYPE_MODE to deal with calls from expand_one_error_var.
6779
6780 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
6781
6782         * gcse.c (cprop_jump): Call validate_unshare_change instead of
6783         validate_change to unshare the source of the PC set.
6784
6785 2008-01-12  Jan Hubicka  <jh@suse.cz>
6786
6787         PR middle-end/32135
6788         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
6789         references above array bounds.  This might trigger bounds checks for
6790         pointers to arrays.
6791
6792 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
6793
6794         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
6795         new_replaceable_dependencies.
6796
6797 2008-01-12  Doug Kwan  <dougkwan@google.com>
6798
6799         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
6800         instead of OPT_Wreturn_type in warning due to ignored return type
6801         qualifiers.
6802         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
6803         options included in -Wextra.
6804         * c.opt: New option -Wignored_qualifiers.
6805         * doc/invoke.texi (Warning Options, -Wextra): Add new option
6806         -Wignore_qualifiers.
6807         (-Wignored-qualifiers): Document.
6808         (-Wreturn-type): Remove description of functionality now handled
6809         by -Wignored-qualifiers.
6810
6811 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6812
6813         PR ada/33788
6814         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
6815         NOP_EXPR if it is between integral types with the same precision.
6816
6817 2008-01-12  Jan Hubicka  <jh@suse.cz>
6818
6819         PR other/28023
6820         * invoke.texi (max-inline-recursive-depth): Fix default value.
6821
6822 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
6823
6824         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
6825         correct type.
6826
6827 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
6828         
6829         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
6830         
6831 2008-01-11  James E. Wilson  <wilson@specifix.com>
6832
6833         PR target/26015
6834         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
6835
6836 2008-01-11  Anatoly Sokolov <aesok@post.ru>
6837
6838         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
6839         save/restore frame pointer register and don't use 'call-prologues' 
6840         optimization in function with "OS_task" attribute.
6841
6842 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6843
6844         PR middle-end/31309
6845         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
6846         when copying to memory.
6847
6848 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
6849
6850         PR rtl-optimization/30905
6851         * cfgcleanup.c: Include dce.h
6852         (crossjumps_occured): New global variable.
6853         (try_crossjump_bb): Exit loop after finding a fallthru edge.
6854         If something changed, set crossjumps_occured to true.
6855         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
6856         Don't add/remove fake edges to exit here...
6857         (cleanup_cfg): ...but do it here, when crossjumping.
6858         Run a fast DCE when successful crossjumps occured in the latest
6859         iteration of try_optimize_cfg.
6860
6861 2008-01-11  Richard Guenther  <rguenther@suse.de>
6862
6863         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
6864         (struct vn_unary_op_s): Likewise.
6865         (vn_reference_insert): Free old reference on hash collision.
6866
6867 2008-01-10  Raksit Ashok  <raksit@google.com>
6868
6869         PR rtl-optimization/27971
6870         * combine.c (find_split_point): Split PLUS expressions which are
6871         inside a MEM rtx, and whose first operand is complex.
6872
6873 2008-01-10  DJ Delorie  <dj@redhat.com>
6874
6875         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
6876         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
6877         (m32c_hard_regno_ok): Call the underlying function.
6878
6879 2008-01-10  Richard Guenther  <rguenther@suse.de>
6880
6881         PR middle-end/34683
6882         * tree-cfg.c (tree_merge_blocks): Do not go through the
6883         full-blown folding and stmt updating path if we just deal
6884         with virtual operands.
6885         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
6886         test for abnormal SSA_NAMEs.
6887
6888 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
6889
6890         PR middle-end/34641
6891         * reload.c (push_reload): Add assertions.  All constants from
6892         reg_equiv_constant should have been used for replacing the respective
6893         pseudo earlier.
6894         (find_reloads_address): Invoke find_reloads_address_part for
6895         constant taken from the reg_equiv_constant array.
6896
6897 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
6898
6899         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
6900         field (valnum) the first in the struct.  Replace bools with
6901         unit bit fields.
6902
6903 2008-01-10  Richard Guenther  <rguenther@suse.de>
6904
6905         PR tree-optimization/34651
6906         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
6907         types and ordering for masking and converting.
6908
6909 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
6910
6911         PR tree-optimization/34017
6912         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
6913         also for PHI_NODE expressions.
6914
6915 2008-01-09  Jan Hubicka  <jh@suse.cz>
6916
6917         PR tree-optimization/34708
6918         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
6919         based on number of case labels.
6920         (init_inline_once): Remove switch_cost.
6921         * tree-inline.h (eni_weights_d): Remove switch_cost.
6922
6923 2008-01-09  Richard Guenther  <rguenther@suse.de>
6924         Andrew Pinski  <andrew_pinski@playstation.sony.com>
6925
6926         PR middle-end/30132
6927         * gimplify.c (gimplify_cond_expr): Do not create an addressable
6928         temporary if an rvalue is ok or an lvalue is not required.
6929
6930 2008-01-09  Richard Guenther  <rguenther@suse.de>
6931
6932         PR middle-end/34458
6933         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
6934         adjust return type.
6935
6936 2008-01-09  Richard Guenther  <rguenther@suse.de>
6937
6938         PR middle-end/34679
6939         * tree.c (host_integerp): Check for sizetype only if the
6940         type is an integer type.
6941
6942 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
6943
6944         PR debug/26364
6945         * opts.c (decode_options): Disable inlining of functions called
6946         once if not in unit-at-a-time mode.
6947
6948 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
6949
6950         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
6951
6952 2008-01-08  Richard Guenther  <rguenther@suse.de>
6953
6954         PR middle-end/31863
6955         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
6956         out early if the result will be unused.
6957
6958 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
6959
6960         PR target/34709
6961         Revert:
6962
6963         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
6964         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6965         for TARGET_RECIP.       
6966         
6967 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
6968         
6969         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
6970         for vectorization tuned.
6971         
6972 2008-01-08  Richard Guenther  <rguenther@suse.de>
6973
6974         PR tree-optimization/34683
6975         * tree-ssa-operands.c (operand_build_cmp): Export.
6976         * tree-ssa-operands.h (operand_build_cmp): Declare.
6977         * tree-vn.c (vuses_compare): Remove.
6978         (sort_vuses): Use operand_build_cmp.
6979         (sort_vuses_heap): Likewise.
6980         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
6981         to re-use old VEC if available.  Do not sort already sorted VUSEs.
6982         (vdefs_to_vec): Do not sort already sorted VDEFs.
6983
6984 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6985
6986         PR middle-end/34694
6987         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
6988
6989 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
6990
6991         PR target/34702
6992         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
6993         limitations of reciprocal sequences on x86 targets.
6994
6995 2008-01-08  Richard Guenther  <rguenther@suse.de>
6996
6997         PR tree-optimization/34683
6998         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
6999
7000 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
7001
7002         PR target/34622
7003         * config/darwin.c (darwin_mergeable_string_section): Don't use
7004         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
7005
7006 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
7007
7008         PR target/34682
7009         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
7010         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
7011         predicates of op0 and op1 to register_operand.
7012         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
7013         expander using X87MODEF mode iterator.  Change predicates of
7014         op0 and op1 to register_operand.
7015         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
7016         corresponding patterns and macroize using MODEF macro.  Change
7017         predicates of op0 and op1 to register_operand and remove
7018         "m" constraint. Disparage "r" alternative with "!".
7019         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
7020         macroize using X87MODEF macro.  Change predicates of op0 and op1
7021         to register_operand and remove "m" constraint.  Disparage "r"
7022         alternative with "!".
7023         (absneg splitter with memory operands): Remove.
7024         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
7025         patterns and macroize using X87MODEF mode iterator.
7026         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
7027         Change predicate of op1 to register_operand.
7028         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
7029         for memory operands.
7030
7031 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
7032
7033         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
7034
7035 2008-01-07  Richard Guenther  <rguenther@suse.de>
7036
7037         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
7038         fields.
7039
7040 2008-01-07  Richard Guenther  <rguenther@suse.de>
7041
7042         PR tree-optimization/34683
7043         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
7044         VOPs of the needed size to save memory.  Use VEC_quick_push
7045         to save compile-time.
7046         (vdefs_to_vec): Likewise.
7047
7048 2008-01-07  Sa Liu  <saliu@de.ibm.com>
7049
7050         * config/spu/spu.md (divdf3): Genetate inline code for double
7051         division.  The implementation doesn't handle INF or NAN, therefore it
7052         only applies when -ffinite-math-only is given.
7053
7054 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
7055
7056         PR libstdc++/34680
7057         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
7058         * doc/cpp.texi ([Common Predefined Macros]): Document.
7059
7060 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
7061
7062         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
7063         order to use commutative addition instead of subtraction.
7064
7065 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7066             Mircea Namolaru  <namolaru@il.ibm.com>
7067             Vladimir Yanovsky  <yanov@il.ibm.com>
7068             Revital Eres  <eres@il.ibm.com>
7069
7070         PR tree-optimization/34263
7071         * tree-outof-ssa.c (process_single_block_loop_latch,
7072         contains_tree_r): New functions.
7073         (analyze_edges_for_bb): Call process_single_block_loop_latch
7074         function to empty single-basic-block latch block if possible.
7075
7076 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
7077
7078         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
7079         for TARGET_RECIP.
7080         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
7081
7082 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
7083
7084         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
7085
7086 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
7087
7088         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
7089
7090 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7091
7092         PR tree-optimization/34618
7093         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
7094         flag from T.
7095
7096 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
7097
7098         PR target/34673
7099         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
7100         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
7101         Update copyright year.
7102
7103         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
7104         Update copyright year.
7105         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
7106         using NR fixup.
7107
7108 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
7109
7110         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
7111         edge does not point to current bb before changing need_assert.
7112
7113 2008-01-04  Richard Guenther  <rguenther@suse.de>
7114
7115         PR middle-end/34029
7116         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
7117         for verifying purposes if they are is_gimple_min_invariant.
7118
7119 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
7120
7121         PR tree-optimization/34448
7122         PR tree-optimization/34465
7123         * gimplify.c (gimplify_init_constructor): Add new parameter
7124         notify_temp_creation.  Use it.
7125         (gimplify_modify_expr_rhs): Take volatiles into account when
7126         optimizing constructors.
7127         Do not optimize constructors if gimplify_init_constructor will dump to
7128         memory.
7129         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
7130         * gcc.c-torture/compile/pr34448.c: New.
7131
7132 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
7133
7134         PR gcov-profile/34609
7135         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
7136         return_slot if result is TREE_ADDRESSABLE.
7137
7138 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
7139
7140         * config/mips/mips.md (sqrt_condition): Tweak comment.
7141         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
7142
7143 2008-01-03  Tom Tromey  <tromey@redhat.com>
7144
7145         PR c/34457
7146         * c-common.c (c_type_hash): Handle VLAs.
7147
7148 2008-01-03  Jan Hubicka  <jh@suse.cz>
7149
7150         PR tree-optimization/31081
7151         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
7152         0 when inlining and not inlining to first basic block.
7153         (remap_decl): When var is initialized to 0, don't set default_def.
7154         (expand_call_inline): Set entry_bb.
7155         * tree-inline.h (copy_body_data): Add entry_bb.
7156
7157 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7158
7159         PR c++/34619
7160         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
7161         before returning.
7162
7163         PR tree-optimization/29484
7164         * tree-inline.c (inline_forbidden_p_2): New function.
7165         (inline_forbidden_p): Disallow inlining if some static var
7166         has an address of a local LABEL_DECL in its initializer.
7167         * doc/extend.texi (Labels as Values): Document &&foo behaviour
7168         vs. inlining.
7169
7170 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
7171
7172         PR tree-optimization/34635
7173         * tree-data-ref.c (add_other_self_distances): Make sure that the
7174         evolution step is constant.
7175
7176 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7177
7178         PR middle-end/34608
7179         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
7180
7181 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
7182
7183         * tree-sra.c (scalarize_init): Insert the generate_element_init
7184         statements after the generate_element_zero statements.
7185
7186 2008-01-02  Richard Guenther  <rguenther@suse.de>
7187
7188         PR middle-end/34093
7189         PR middle-end/31976
7190         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
7191         for very large number of operands instead of ICEing.
7192
7193 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
7194
7195         PR target/34013
7196         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
7197         while stack probing.
7198
7199 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
7200
7201         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
7202         in C++0x mode.
7203
7204 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
7205
7206         PR libmudflap/26442
7207         * tree-mudflap.c (mx_register_decls): Guard warning by
7208         !DECL_ARTIFICIAL check.
7209
7210 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
7211
7212         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
7213         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
7214         sse5_perm<mode>): Fix constraints.