OSDN Git Service

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