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