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