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