1 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4 * c-typeck.c (build_component_ref): Do not copy qualifiers from
5 non-lvalue to component.
7 2009-03-29 Joseph Myers <joseph@codesourcery.com>
10 * Makefile.in (c-opts.o): Depend on c-tree.h.
11 * c-common.c: Move down include of diagnostic.h.
12 (done_lexing, c_cpp_error): New.
13 * c-common.h (done_lexing): Declare.
14 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
16 * c-opts.c: Include c-tree.h.
17 (c_common_init_options): Set preprocessor error callback.
18 (c_common_handle_option): Do not set preprocessor
19 inhibit_warnings, warnings_are_errors, warn_system_headers,
20 pedantic_errors or inhibit_warnings flags.
21 (c_common_post_options): Do not check cpp_errors (parse_in).
22 (c_common_finish): Do not output dependencies if there were
23 errors. Do not check return value of cpp_finish.
24 * c-ppoutput.c (pp_file_change): Set input_location.
25 * c-tree.h (c_cpp_error): Declare.
26 * diagnostic.c (diagnostic_set_info_translated): Also initialize
28 (diagnostic_build_prefix): Check override_column.
29 * diagnostic.h (diagnostic_info): Add override_column field.
30 (diagnostic_override_column): Define.
32 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
34 * c-common.c (c_expand_expr, c_staticp): Remove.
35 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
36 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
37 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
38 * c-gimplify.c (gimplify_compound_literal_expr,
39 optimize_compound_literals_in_ctor): Remove.
40 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
41 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
42 * c-semantics.c (emit_local_var): Remove.
44 * langhooks-def.h (lhd_expand_expr): Remove.
45 * langhooks.c (lhd_expand_expr): Remove.
46 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
48 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
49 handling from c-semantics.c; don't call into langhook.
50 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
51 * gimplify.c (gimplify_compound_literal_expr,
52 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
53 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
54 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
55 as was done in c-gimplify.c.
56 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
57 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
59 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
61 * tree.c (staticp): Do not call langhook.
62 * langhooks.c (lhd_staticp): Delete.
63 * langhooks-def.h (lhd_staticp): Delete prototype.
64 (LANG_HOOKS_STATICP): Delete.
65 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
67 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
68 instead of DECL_STMTs.
70 2009-03-29 Joseph Myers <joseph@codesourcery.com>
78 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
80 (fold_call_expr): Return a NOP_EXPR from folding rather than the
82 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
83 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
84 conditional expressions for C.
85 (decl_constant_value_for_optimization): Move from
86 decl_constant_value_for_broken_optimization in c-typeck.c. Check
87 whether optimizing and that the expression is a VAR_DECL not of
88 array type instead of doing such checks in the caller. Do not
89 check pedantic. Call gcc_unreachable for C++.
90 * c-common.def (C_MAYBE_CONST_EXPR): New.
91 * c-common.h (c_fully_fold, c_save_expr,
92 decl_constant_value_for_optimization): New prototypes.
93 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
94 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
95 EXPR_INT_CONST_OPERANDS): Define.
96 * c-convert.c (convert): Strip nops from expression.
97 * c-decl.c (groktypename): Take extra parameters expr and
98 expr_const_operands. Update call to grokdeclarator.
99 (start_decl): Update call to grokdeclarator. Add statement for
100 expressions used in type of decl.
101 (grokparm): Update call to grokdeclarator.
102 (push_parm_decl): Update call to grokdeclarator.
103 (build_compound_literal): Add parameter non_const and build a
104 C_MAYBE_COSNT_EXPR if applicable.
105 (grokdeclarator): Take extra parameters expr and
106 expr_const_operands. Track expressions used in declaration
107 specifiers and declarators. Fold array sizes and track whether
108 they are constant expressions and whether they are integer
109 constant expressions.
110 (parser_xref_tag): Set expr and expr_const_operands fields in
112 (grokfield): Update call to grokdeclarator.
113 (start_function): Update call to grokdeclarator.
114 (build_null_declspecs): Set expr and expr_const_operands fields in
116 (declspecs_add_type): Handle expressions in typeof specifiers.
117 * c-parser.c (c_parser_declspecs): Set expr and
118 expr_const_operands fields for declaration specifiers.
119 (c_parser_enum_specifier): Likewise.
120 (c_parser_struct_or_union_specifier): Likewise.
121 (c_parser_typeof_specifier): Likewise. Update call to
122 groktypename. Fold expression as needed. Return expressions with
123 type instead of adding statements.
124 (c_parser_attributes): Update calls to c_parser_expr_list.
125 (c_parser_statement_after_labels): Fold expression before passing
126 to objc_build_throw_stmt.
127 (c_parser_condition): Fold expression.
128 (c_parser_asm_operands): Fold expression.
129 (c_parser_conditional_expression): Use c_save_expr. Update call
130 to build_conditional_expr.
131 (c_parser_alignof_expression): Update call to groktypename.
132 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
133 original_code. Fold expression argument of va_arg. Create
134 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
135 argument to va_arg. Update calls to groktypename. Fold array
136 index for offsetof. Verify that first argument to
137 __builtin_choose_expr has integer type.
138 (c_parser_postfix_expression_after_paren_type): Update calls to
139 groktypename and build_compound_literal. Handle expressions with
140 side effects in type name.
141 (c_parser_postfix_expression_after_primary): Update call to
142 c_parser_expr_list. Set original_code for calls to
143 __builtin_constant_p.
144 (c_parser_expr_list): Take extra parameter fold_p. Fold
145 expressions if requested.
146 (c_parser_objc_type_name): Update call to groktypename.
147 (c_parser_objc_synchronized_statement): Fold expression.
148 (c_parser_objc_receiver): Fold expression.
149 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
150 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
151 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
152 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
153 (struct c_typespec): Add elements expr and expr_const_operands.
154 (struct c_declspecs): Add elements expr and expr_const_operands.
155 (groktypename, build_conditional_expr, build_compound_literal):
157 (in_late_binary_op): Declare.
158 * c-typeck.c (note_integer_operands): New function.
159 (in_late_binary_op): New variable.
160 (decl_constant_value_for_broken_optimization): Move to c-common.c
161 and rename to decl_constant_value_for_optimization.
162 (default_function_array_conversion): Do not strip nops.
163 (default_conversion): Do not call
164 decl_constant_value_for_broken_optimization.
165 (build_array_ref): Do not fold result.
166 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
167 result when operand is a VLA.
168 (c_expr_sizeof_type): Update call to groktypename. Handle
169 expressions included in type name. Use C_MAYBE_CONST_EXPR for
170 result when operand names a VLA type.
171 (build_function_call): Update call to build_compound_literal.
172 Only fold result for calls to __builtin_* functions. Strip
173 NOP_EXPR from INTEGER_CST returned from such functions. Fold
174 the function designator.
175 (convert_arguments): Fold arguments. Update call to
176 convert_for_assignment.
177 (build_unary_op): Handle increment and decrement of
178 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
179 decrement earlier. Fold operand of increment and decrement.
180 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
181 built for integer operand. Wrap returns that are INTEGER_CSTs
182 without being integer constant expressions or that have integer
183 constant operands without being INTEGER_CSTs.
184 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
185 (build_conditional_expr): Add operand ifexp_bcp. Track whether
186 result is an integer constant expression or can be used in
187 unevaluated parts of one and avoid folding and wrap as
188 appropriate. Fold operands before possibly doing -Wsign-compare
190 (build_compound_expr): Wrap result for C99 if operands can be used
191 in integer constant expressions.
192 (build_c_cast): Update call to digest_init. Do not ignore
193 overflow from casting floating-point constants to integers. Wrap
194 results that could be confused with integer constant expressions,
195 null pointer constants or floating-point constants.
196 (c_cast_expr): Update call to groktypename. Handle expressions
197 included in type name.
198 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
199 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
200 Update calls to convert_for_assignment.
201 (convert_for_assignment): Take new parameter
202 null_pointer_constant. Do not strip nops or call
203 decl_constant_value_for_broken_optimization. Set
204 in_late_binary_op for conversions to boolean.
205 (store_init_value): Update call to digest_init.
206 (digest_init): Take new parameter null_pointer_constant. Do not
207 call decl_constant_value_for_broken_optimization. pedwarn for
208 initializers not constant expressions. Update calls to
209 convert_for_assignment.
210 (constructor_nonconst): New.
211 (struct constructor_stack): Add nonconst element.
212 (really_start_incremental_init, push_init_level, pop_init_level):
213 Handle constructor_nonconst and nonconst element.
214 (set_init_index): Call constant_expression_warning for array
216 (output_init_element): Fold value. Set constructor_nonconst as
217 applicable. pedwarn for initializers not constant expressions.
218 Update call to digest_init. Call constant_expression_warning
219 where constant initializers are required.
220 (process_init_element): Use c_save_expr.
221 (c_finish_goto_ptr): Fold expression.
222 (c_finish_return): Fold return value. Update call to
223 convert_for_assignment.
224 (c_start_case): Fold switch expression.
225 (c_process_expr_stmt): Fold expression.
226 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
227 ensure statement expression is not evaluated in constant expression.
228 (build_binary_op): Track whether results are integer constant
229 expressions or may occur in such, disable folding and wrap results
230 as applicable. Fold operands for -Wsign-compare warnings unless
232 (c_objc_common_truthvalue_conversion): Handle results folded to
233 integer constants that are not integer constant expressions.
234 * doc/extend.texi: Document when typeof operands are evaluated,
235 that condition of __builtin_choose_expr is an integer constant
236 expression, and more about use of __builtin_constant_p in
239 2009-03-29 Richard Guenther <rguenther@suse.de>
241 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
242 propagate addresses of array references.
244 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
246 * regmove.c (perhaps_ends_bb_p): Remove.
247 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
248 from INSN and check that the main loop stays within that basic block.
249 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
250 (regmove_forward_pass): Split out from regmove_optimize. Use
251 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
252 (regmove_backward_pass): Split out from regmove_optimize. Use
253 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
254 (regmove_optimize): Simplify.
256 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
259 * config/i386/i386.c (classify_argument): Ignore flexible array
260 member in struct and warn ABI change.
262 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
264 * config/i386/i386-protos.h (ix86_agi_dependent): New.
266 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
267 (ix86_adjust_cost): Updated.
269 2009-03-29 Jan Hubicka <jh@suse.cz>
272 * tree-pass.h (pass_cleanup_eh): New function.
273 (remove_unreachable_regions): Break code handling RTL
274 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
275 that can not be reached by runtime.
276 (can_be_reached_by_runtime): New function.
277 (label_to_region_map): New function.
278 (num_eh_regions): New function.
279 (rtl_remove_unreachable_regions): New function.
280 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
281 (remove_eh_region): New function.
282 * except.h: Include sbitmap and vecprim.
283 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
284 num_eh_regions): Declare.
285 * passes.c (init_optimization_passes): Schedule cleanup_eh.
286 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
287 * tree-eh.c (tree_remove_unreachable_handlers): New function.
288 (tree_empty_eh_handler_p): New function.
289 (cleanup_empty_eh): New function.
290 (cleanup_eh): New function.
291 (pass_cleanup_eh): New function.
293 2009-03-29 Jan Hubicka <jh@suse.cz>
295 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
298 2009-03-29 Jan Hubicka <jh@suse.cz>
300 * except.c (dump_eh_tree): Dump all datastructures.
302 2009-03-29 Jan Hubicka <jh@suse.cz>
304 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
305 (duplicate_eh_regions_1): Likewise.
306 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
307 vector; call EH verification.
308 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
309 Be ready for region being removed.
311 2009-03-29 Jan Hubicka <jh@suse.cz>
313 * bitmap.c (bitmap_last_set_bit): New function.
314 * bitmap.h (bitmap_last_set_bit): Declare.
316 2009-03-29 David Ayers <ayers@fsfe.org>
319 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
320 by calling objc_compare_types and surpress warnings about
321 incompatible C pointers that are compatible ObjC pointers.
323 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
325 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
326 call initialize_inline_failed.
327 (initialize_inline_failed): Move it from here ...
328 * cgraph.c (initialize_inline_failed): ... to here.
329 (cgraph_create_edge): Call initialize_inline_failed rather than
330 setting inline_failed directly.
332 2009-03-29 Ben Elliston <bje@au.ibm.com>
335 * sysv4.opt (msdata): Improve comment.
336 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
337 * sysv4.h (SVR4_ASM_SPEC): Likewise.
339 2009-03-29 Ben Elliston <bje@au.ibm.com>
342 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
343 load and store attributes.
345 2009-03-29 Ben Elliston <bje@au.ibm.com>
347 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
348 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
349 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
350 * doc/extend.texi (X86 Built-in Functions): Add index entries for
351 __builtin_infq and __builtin_huge_valq.
353 2009-03-28 Anatoly Sokolov <aesok@post.ru>
355 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
357 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
358 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
360 2009-03-28 Xinliang David Li <davidxl@google.com>
362 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
363 (do_dbg_cnt): New function.
365 2009-03-28 Jan Hubicka <jh@suse.cz>
367 Merge from pretty-ipa:
369 2009-03-27 Jan Hubicka <jh@suse.cz>
371 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
372 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
373 * passes.c (function_called_by_processed_nodes_p): New.
374 * ipa-pure-const.c (check_call): Fix handling of operands.
375 (analyze_function): Dump debug output for skipped bodies.
376 (local_pure_const): Use function_called_by_processed_nodes_p.
377 * dwarf2out.c (reference_to_unused): Use output.
378 * passes.c (do_per_function_toporder): Likewise.
380 2008-11-12 Jan Hubicka <jh@suse.cz>
382 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
383 * ipa-pure-const.c (funct_state_d): Add can throw field; make
384 state_set_in_source enum
385 (check_decl): Ignore memory tags; do not set fake looping flags;
387 (check_operand, check_tree, check_rhs_var, check_lhs_var,
388 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
389 (check_call, analyze_function): Rewrite.
391 (add_new_function): Update call of analyze_function.
392 (generate_summary): Add call of analyze_function.
393 (propagate): Propagate can_throw; handle state_set_in_source correctly.
394 (local_pure_const): New function.
395 (pass_local_pure_const): New pass.
396 * ipa-inline.c (inline_transform): Set after_inlining.
397 * tree-eh.c (stmt_can_throw_external): New.
398 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
399 work with aliasing built.
400 * tree-flow.h (stmt_can_throw_external): New.
401 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
402 and local pure/const pass in early and late optimization queue.
404 2009-03-28 Martin Jambor <mjambor@suse.cz>
406 * fold-const.c (get_pointer_modulus_and_residue): New parameter
408 (fold_binary): Allow function decl aligment consideration is the
409 second argument is integer constant one.
410 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
411 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
412 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
414 2009-03-28 Jan Hubicka <jh@suse.cz>
416 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
417 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
418 * function.h (rtl_data): Add nothrow flag.
419 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
420 set DECL_NOTHROW for AVAILABLE functions.
422 2009-03-28 Jakub Jelinek <jakub@redhat.com>
424 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
425 following vector keyword has expansion starting with pixel or bool
426 keyword, expand vector to __vector and pixel or bool to __pixel or
430 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
431 warn_if_disallowed_function_p): Removed.
432 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
433 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
434 warning_if_disallowed_function_p.
435 * flags.h (warn_if_disallowed_function_p,
436 warn_disallowed_functions): Removed.
437 * common.opt (Wdisallowed-function-list=): Removed.
438 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
440 2009-03-28 Richard Guenther <rguenther@suse.de>
442 PR tree-optimization/38723
443 * tree-ssa-pre.c (compute_avail): Add all default definitions to
446 2009-03-28 Jan Hubicka <jh@suse.cz>
448 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
449 test introduced by my previous patch.
451 2009-03-28 Richard Guenther <rguenther@suse.de>
453 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
454 the PHIs value undefined.
456 2009-03-28 Jan Hubicka <jh@suse.cz>
458 * tree-pass.h (pass_fixup_cfg): New pass.
459 * ipa-inline.c (inline_transform): Set
460 always_inline_functions_inlined/after_inlining.
461 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
462 (pass_fixup_cfg): New pass.
463 * passes.c (init_optimization_passes): Add fixup_cfg.
465 2009-03-28 Richard Guenther <rguenther@suse.de>
467 PR tree-optimization/38458
468 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
469 argument use the arguments copy-of value.
471 2009-03-28 Richard Guenther <rguenther@suse.de>
473 PR tree-optimization/38180
474 * tree-ssa-ccp.c (get_default_value): Simplify.
475 (likely_value): Likewise.
476 (surely_varying_stmt_p): Properly handle VOP case.
477 (ccp_initialize): Likewise.
478 (ccp_fold): Handle propagating through *&.
479 (fold_const_aggregate_ref): Also handle decls.
481 2009-03-28 Jan Hubicka <jh@suse.cz>
483 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
484 * cgraph.h (cgraph_node): Likewise.
485 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
486 (cgraph_reset_node): Use process flag.
487 (cgraph_mark_functions_to_output): Likewise.
488 (cgraph_expand_function): Likewise.
489 (cgraph_expand_all_functions): Likewise.
490 (cgraph_output_in_order): Likewise.
491 * dwarf2out.c (reference_to_unused): Likewise.
492 * passes.c do_per_function_toporder): Likewise.
494 2009-03-28 Jan Hubicka <jh@suse.cz>
496 Bring from lto-branch:
498 2008-09-03 Doug Kwan <dougkwan@google.com>
500 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
501 enums instead of reason strings.
502 * cgraph.c (cgraph_create_edge): Same.
503 (cgraph_inline_failed_string): New function.
504 * cgraph.h (cgraph_inline_failed_t): New enum type.
505 (cgraph_inline_failed_string): New prototype.
506 (struct cgraph_edge): Change type of INLINED_FAILED from constant
507 char pointer to cgraph_inline_failed_t.
508 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
509 (cgraph_default_inline_p): Ditto.
510 * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
511 to cgraph_inline_failed_t pointer.
512 * cif-code.def: New file.
513 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
515 (cgraph_check_inline_limits): Change type of REASON to pointer to
516 cgraph_inline_failed_t. Replace reason strings with enums.
517 (cgraph_default_inline_p): Ditto.
518 (cgraph_recursive_inlining_p): Ditto.
519 (update_caller_keys): Change type of FAILED_REASON to
520 cgraph_inline_failed_t.
521 (cgraph_set_inline_failed): Change type of REASON to pointer to
522 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
523 convert enums to strings for text output.
524 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
525 to be of type cgraph_inline_failed_t. Replace reason strings with
526 enums. Call cgraph_inline_failed_string to covert enums
527 to strings for text output.
528 (cgraph_decide_inlining): Replace reason strings with enums.
529 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
530 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
532 * tree-inline.c (expand_call_inline): Change type of REASON
533 to cgraph_inline_failed_t. Replace reason strings with enums.
534 Call cgraph_inline_failed_string for text output.
535 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
538 2009-03-28 Jan Hubicka <jh@suse.cz>
540 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
541 cgraph_clone_node): Remove master clone handling.
542 (cgraph_is_master_clone, cgraph_master_clone): Remove.
543 * cgraph.h (master_clone): Remove.
544 (cgraph_is_master_clone, cgraph_master_clone): Remove.
545 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
546 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
548 2009-03-28 Jan Hubicka <jh@suse.cz>
550 * cgraph.c (cgraph_function_body_availability): Functions declared
551 inline are always safe to assume that it is not going to be replaced.
553 2009-03-28 Richard Guenther <rguenther@suse.de>
555 PR tree-optimization/38513
556 * tree-ssa-pre.c (eliminate): Remove redundant stores.
557 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
558 EXC_PTR_EXPR and FILTER_EXPR.
559 (get_ref_from_reference_ops): Likewise.
561 2009-03-28 Richard Guenther <rguenther@suse.de>
563 PR tree-optimization/38968
564 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
565 Use FLOOR_MOD_EXPR to compute misalignment.
567 2009-03-28 Richard Guenther <rguenther@suse.de>
569 PR tree-optimization/37795
570 * tree.h (combine_comparisons): Declare.
571 * fold-const.c (combine_comparisons): Export.
572 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
574 (ifcombine_iforif): Use combine_comparisons.
576 2009-03-28 Jan Hubicka <jh@suse.cz>
578 * tree-eh.c (inlinable_call_p): New function.
579 (make_eh_edges): Use it.
580 (verify_eh_edges): Use it.
581 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
582 * except.c (reachable_next_level): Add inlinable_function argument
583 (sjlj_find_directly_reachable_regions): Update.
584 (add_reachable_handler): Do not set saw_any_handlers.
585 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
586 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
587 Add new inlinable call parameter.
588 (can_throw_internal, can_throw_external): Update.
589 * except.h (can_throw_internal_1, can_throw_external_1,
590 foreach_reachable_handler): Update declaration.
592 2009-03-28 Joseph Myers <joseph@codesourcery.com>
594 * config/arm/t-arm-coff, config/h8300/coff.h,
595 config/i386/i386-aout.h, config/i386/i386-coff.h,
596 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
597 config/pdp11/2bsd.h, config/rs6000/aix41.h,
598 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
599 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
600 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
602 * Makefile.in: Remove protoize and fixproto support and references
604 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
605 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
607 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
608 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
610 (rest.encap): Don't depend on $(STMP_FIXPROTO)
611 (.PHONY): Don't depend on proto.
612 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
613 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
614 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
615 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
616 build/gen-protos.o, build/scan.o, xsys-protos.h,
617 build/fix-header$(build_exeext), build/fix-header.o,
618 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
619 stmp-install-fixproto): Remove.
620 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
621 SYSCALLS.c or fixproto files.
622 (install-common): Don't install protoize.
623 (install-headers-tar, install-headers-cpio, install-headers-cp):
624 Don't depend on $(STMP_FIXPROTO).
625 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
626 install fixproto files or write out fixproto settings.
627 (uninstall): Don't uninstall protoize.
628 * config.gcc (use_fixproto): Remove.
629 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
630 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
631 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
632 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
633 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
634 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
635 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
636 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
637 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
638 * config/t-vxworks (STMP_FIXPROTO): Remove.
639 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
640 STMP_FIXPROTO): Remove.
641 * config.in, configure: Regenerate.
642 * crtstuff.c (gid_t, uid_t): Don't undefine.
643 * doc/install.texi: Change m68k-coff to m68k-elf in example.
644 (arm-*-coff, arm-*-aout: Remove target entries.
645 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
646 Remove mention of AIX 4.1.
647 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
648 * doc/invoke.texi (Running Protoize): Remove.
649 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
650 (Protoize Caveats): Remove.
651 * tsystem.h: Update comments on headers assumed to exist.
653 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
655 * genautomata.c: Add a new year to the copyright. Add a new
657 (struct insn_reserv_decl): Add comments for member bypass_list.
658 (find_bypass): Remove.
659 (insert_bypass): New.
660 (process_decls): Use insert_bypass.
661 (output_internal_insn_latency_func): Output all bypasses with the
662 same input insn in one switch case.
664 * rtl.def (define_bypass): Describe bypass choice.
665 * doc/md.texi (define_bypass): Ditto.
667 2009-03-27 Richard Guenther <rguenther@suse.de>
669 * gimplify.c (mark_addressable): Export.
670 * tree-flow.h (mark_addressable): Declare.
671 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
672 * tree-ssa.c (verify_phi_args): Verify that address taken
673 variables have TREE_ADDRESSABLE set.
675 2009-03-27 Richard Guenther <rguenther@suse.de>
677 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
678 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
679 Do not mark decls TREE_ADDRESSABLE.
680 (build_fold_addr_expr): Adjust.
681 (fold_addr_expr): Remove.
682 (fold_unary): Use build_fold_addr_expr.
683 (fold_comparison): Likewise.
684 (split_address_to_core_and_offset): Likewise.
685 * coverage.c (tree_coverage_counter_addr): Mark the array decl
687 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
688 (gimplify_modify_expr_to_memcpy): Mark source and destination
690 * omp-low.c (create_omp_child_function): Mark the object decl
692 (lower_rec_input_clauses): Mark the var we take the address of
694 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
696 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
699 * cfgexpand.c (expand_one_stack_var_at): Change alignment
700 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
702 2009-03-27 Richard Guenther <rguenther@suse.de>
704 PR tree-optimization/39120
705 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
707 (handle_lhs_call): Process return constraints. Add escape
708 constraints if necessary.
709 (handle_const_call): Fill out return constraints. Make nested
710 case more precise. Avoid consttmp if possible.
711 (handle_pure_call): Fill out return constraints. Avoid
712 callused if possible.
713 (find_func_aliases): Simplify call handling.
715 2009-03-27 Richard Guenther <rguenther@suse.de>
717 PR tree-optimization/39120
718 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
720 (solve_graph): Do propagate CALLUSED.
721 (handle_pure_call): Use a scalar constraint from CALLUSED for
723 (find_what_p_points_to): CALLUSED shall not appear in poins-to
726 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
729 * c-common.c (handle_aligned_attribute): Properly check alignment
730 overflow. Use (1U << i) instead of (1 << i).
732 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
734 * expr.h (get_mem_align_offset): Updated.
736 * tree.h (tree_decl_common): Change align to "unsigned int" and
737 move it before pointer_alias_set.
739 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
740 Jakub Jelinek <jakub@redhat.com>
743 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
744 gr_register_operand with gr_reg_or_0_operand.
745 (cmpxchg_rel_di): Likewise.
746 (sync_lock_test_and_set<mode>): Likewise.
748 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
750 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
751 (true_regnum): Likewise.
753 * rtlanal.c (subreg_info): Moved to ...
754 * rtl.h (subreg_info): Here. New.
755 (subreg_get_info): New.
757 * rtlanal.c (subreg_get_info): Make it extern.
759 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
762 * config/i386/i386.c (ix86_abi): New.
763 (override_options): Handle -mabi=.
764 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
765 (ix86_call_abi_override): Likewise.
766 (init_cumulative_args): Likewise.
767 (function_arg_advance): Likewise.
768 (function_arg_64): Likewise.
769 (function_arg): Likewise.
770 (ix86_pass_by_reference): Likewise.
771 (ix86_function_value_regno_p): Likewise.
772 (ix86_build_builtin_va_list_abi): Likewise.
773 (setup_incoming_varargs_64): Likewise.
774 (is_va_list_char_pointer): Likewise.
775 (ix86_init_machine_status): Likewise.
776 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
777 (ix86_function_type_abi): Return enum calling_abi. Rewrite
778 for 64bit. Replace DEFAULT_ABI with ix86_abi.
779 (ix86_function_abi): Make it static and return enum calling_abi.
780 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
782 (ix86_fn_abi_va_list): Updated.
784 * config/i386/i386.h (ix86_abi): New.
785 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
786 (CONDITIONAL_REGISTER_USAGE): Likewise.
787 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
788 (machine_function): Likewise.
790 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
792 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
793 (STACK_BOUNDARY): Likewise.
794 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
796 * config/i386/i386.opt (mabi=): New.
798 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
799 return enum calling_abi.
800 (ix86_function_type_abi): Likewise.
801 (ix86_function_abi): Removed.
803 * doc/invoke.texi: Document -mabi= option for x86.
805 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
807 * builtins.c (real_dconstp): Delete.
808 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
810 2009-03-27 Dodji Seketeli <dodji@redhat.com>
811 Jakub Jelinek <jakub@redhat.com>
814 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
815 (gen_subprogram_die): When a function is explicit, generate the
816 DW_AT_explicit attribute.
817 * langhooks.h (struct lang_hooks_for_decls): Add
818 function_decl_explicit_p langhook.
819 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
820 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
822 2009-03-27 Jakub Jelinek <jakub@redhat.com>
824 * builtins.c (fold_builtin_memory_op): Optimize memmove
825 into memcpy if we can prove source and destination don't overlap.
827 * tree-inline.c: Include gt-tree-inline.h.
828 (clone_fn_id_num): New variable.
829 (clone_function_name): New function.
830 (tree_function_versioning): Use it.
831 * Makefile.in (GTFILES): Add tree-inline.c.
833 2009-03-27 Mark Mitchell <mark@codesourcery.com>
835 * BASE-VER: Change to 4.5.0.
837 2009-03-27 Xinliang David Li <davidxl@google.com>
839 PR tree-optimization/39557
840 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
842 2009-03-27 Xinliang David Li <davidxl@google.com>
844 PR tree-optimization/39548
845 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
848 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
850 * c-common.c (pointer_int_sum): Use %wd on return from
853 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
855 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
856 on return from tree_low_cst.
858 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
861 * ginclude/stdarg.h (va_copy): Define also for
862 __GXX_EXPERIMENTAL_CXX0X__.
864 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
867 * builtins.h (c_strlen): Do not warn here.
868 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
869 * c-common.c (pointer_int_sum): Take an explicit location.
870 Warn about offsets out of bounds.
871 * c-common.h (pointer_int_sum): Adjust declaration.
873 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
875 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
878 2009-03-26 Jakub Jelinek <jakub@redhat.com>
881 * opts.c (warn_if_disallowed_function_p): Don't assume
882 get_callee_fndecl must return non-NULL.
884 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
886 PR rtl-optimization/39522
887 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
888 when reg_reloaded_valid is set.
890 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
892 * config/spu/divv2df3.c: New file.
893 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
894 (DPBIT_FUNCS): Filter out _div_df.
896 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
898 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
899 a jump insn, count that jump in the distance to the loop start.
901 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
904 * config/sh/sh.c (calc_live_regs): Fix condition for global
905 registers except PIC_OFFSET_TABLE_REGNUM.
907 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
910 * doc/invoke.texi (-mconsole): New.
914 (-mnop-fun-dllimport): New.
918 (sub section "i386 and x86-64 Windows Options"): New.
920 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
922 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
923 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
925 2009-03-25 Richard Guenther <rguenther@suse.de>
928 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
931 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
933 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
934 neither of haifa/selective schedulers are working.
936 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
938 * doc/invoke.texi (Debugging Options): Fix description of
939 -fno-merge-debug-strings.
941 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
943 * config/cris/libgcc.ver: New version-script.
944 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
946 * configure.ac <GAS features, nop mnemonic>: Add pattern
947 crisv32-*-* for "nop".
948 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
949 * configure: Regenerate.
951 2009-03-24 Ira Rosen <irar@il.ibm.com>
953 PR tree-optimization/39529
954 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
955 mark_sym_for_renaming for the tag copied to the new vector
958 2009-03-24 Arthur Loiret <aloiret@debian.org>
960 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
961 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
962 EXTRA_SPEC_FUNCTIONS.
963 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
964 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
965 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
966 -march and -mtune options.
968 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
970 * config/m68k/t-rtems: Add m5329 multilib.
972 2009-03-24 Dodji Seketeli <dodji@redhat.com>
973 Jakub Jelinek <jakub@redhat.com>
976 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
979 2009-03-23 Jakub Jelinek <jakub@redhat.com>
982 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
983 instead of c_parser_expression_conv, if original_code isn't one of the
984 4 allowed comparison codes, fail.
986 2009-03-23 Richard Guenther <rguenther@suse.de>
988 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
989 * tree.h (struct tree_type): Likewise.
990 * reload.h (struct insn_chain): Likewise.
991 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
992 * function.h (struct function): Likewise.
993 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
995 2009-03-23 Jakub Jelinek <jakub@redhat.com>
997 PR tree-optimization/39516
998 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
1000 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
1002 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
1003 should be set true if BITS_PER_WORD of target is bigger than 32
1005 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
1007 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
1008 Translate -B-options to -rpath-link. Correct existing
1009 rpath-link and conditionalize on !nostdlib.
1011 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1013 * doc/extend.texi (Function Attributes, Variable Attributes):
1015 * doc/invoke.texi (Debugging Options, Optimize Options)
1016 (i386 and x86-64 Options, MCore Options): Likewise.
1018 2009-03-20 Jakub Jelinek <jakub@redhat.com>
1021 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
1022 it for block local namespace aliases.
1023 (gen_decl_die): Pass context_die to gen_namespace_die.
1025 2009-03-19 Jakub Jelinek <jakub@redhat.com>
1028 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
1029 minimum or maximum value.
1031 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
1033 * reginfo.c (globalize_reg): Recompute derived reg sets.
1035 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
1038 * libgcc2.c (mprotect): Do not use signed arguments for
1039 VirtualProtect, use DWORD arguments. Also fix the 'may
1040 be used uninitialized' warning for the np variable.
1042 2009-03-19 Jakub Jelinek <jakub@redhat.com>
1045 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
1046 functions using regparm calling conventions when not optimizing.
1047 (ix86_function_sseregparm): Similarly for sseregparm calling
1050 2009-03-19 Li Feng <nemokingdom@gmail.com>
1053 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
1054 dependence if the first conflict is after niter iterations.
1056 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
1059 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
1060 functions with dynamic stack-pointer adjustments.
1062 2009-03-19 Ben Elliston <bje@au.ibm.com>
1064 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
1065 option; change to -msdata=data.
1067 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1069 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
1072 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
1075 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
1077 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
1079 * doc/invoke.texi (Code Gen Options): Expand discussion of
1082 2009-03-18 Jakub Jelinek <jakub@redhat.com>
1084 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
1085 * matrix-reorg.c (struct matrix_info): Likewise.
1086 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
1087 * rtl.h (struct mem_attrs): Likewise.
1088 * df.h (struct df): Likewise.
1089 * tree-data-ref.h (struct data_dependence_relation): Likewise.
1090 * ira-int.h (struct ira_allocno): Likewise.
1091 * df-scan.c (struct df_collection_rec): Likewise.
1092 * ira.c (struct equivalence): Likewise.
1093 * function.c (struct temp_slot): Likewise.
1094 * cfgloop.h (struct loop): Likewise.
1097 * function.c (use_register_for_decl): When not optimizing, disregard
1098 register keyword for variables with types containing methods.
1100 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
1103 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
1104 (is_simple_operand): Call contains_component_ref_p before calling data
1105 reference analysis that would fail on COMPONENT_REFs.
1107 * tree-vrp.c (search_for_addr_array): Fix formatting.
1109 2009-03-18 Richard Guenther <rguenther@suse.de>
1111 * tree-vect-transform.c (vect_loop_versioning): Fold the
1112 generated comparisons.
1113 * tree-vectorizer.c (set_prologue_iterations): Likewise.
1114 (slpeel_tree_peel_loop_to_edge): Likewise.
1116 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1119 * opts.c (print_specific_help): In addition to `undocumented',
1120 accept `separate' and `joined' flags if passed alone. Describe
1121 output by the first matched one of those.
1122 (common_handle_option): Skip over empty strings.
1123 * gcc.c (display_help): Fix help string for `--help='.
1124 * doc/invoke.texi (Option Summary, Overall Options): With
1125 `--help=', classes and qualifiers can both be repeated, but
1126 only the latter can be negated. One should not pass only
1127 negated qualifiers. Fix markup and examples.
1130 2008-10-14 Jakub Jelinek <jakub@redhat.com>
1132 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
1133 and -fhelp=separate.
1135 2009-03-17 Jing Yu <jingyu@google.com>
1138 * function.h (struct rtl_data): Move is_thunk from here...
1139 (struct function): ...to here.
1140 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
1141 * varasm.c (assemble_start_function): Change is_thunk from crtl to
1143 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
1145 (alpha_does_function_need_gp, alpha_start_function): Likewise.
1146 (alpha_output_function_end_prologue): Likewise.
1147 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
1148 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
1149 (rs6000_output_function_epilogue): Likewise.
1150 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
1152 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
1155 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
1156 from different units in a single alternative.
1157 (*truncdfsf_i387): Ditto.
1158 (*truncxfsf2_mixed): Ditto.
1159 (*truncxfdf2_mixed): Ditto.
1161 2009-03-17 Jakub Jelinek <jakub@redhat.com>
1163 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
1164 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
1167 * tree-ssa-live.c (remove_unused_locals): Don't remove local
1168 unused non-artificial variables when not optimizing.
1171 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
1172 DW_TAG_imported_module even if decl is IMPORTED_DECL with
1173 NAMESPACE_DECL in its DECL_INITIAL.
1176 * optabs.c (set_user_assembler_libfunc): New function.
1177 * expr.h (set_user_assembler_libfunc): New prototype.
1178 * c-common.c: Include libfuncs.h.
1179 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
1180 for memcmp, memset, memcpy, memmove and abort.
1181 * Makefile.in (c-common.o): Depend on libfuncs.h.
1184 * dwarf2out.c (gen_inlined_enumeration_type_die,
1185 gen_inlined_structure_type_die, gen_inlined_union_type_die,
1186 gen_tagged_type_instantiation_die): Removed.
1187 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
1190 2009-03-17 Janis Johnson <janis187@us.ibm.com>
1193 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
1195 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
1196 (check-parallel-%): Ditto.
1197 (check-consistency): Ditto.
1199 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
1201 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
1202 local variable rhs by NULL_TREE.
1204 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
1207 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
1209 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
1212 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
1214 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
1217 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
1218 for ms->sysv ABI calls only in 64bit mode.
1220 * config/i386/i386.md (untyped_call): Support 32bit.
1222 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
1224 * doc/extend.texi: Replace x86_65 with x86_64.
1226 2009-03-16 Jakub Jelinek <jakub@redhat.com>
1228 PR tree-optimization/39455
1229 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
1230 mismatches for POINTER_TYPE_P (type).
1231 (number_of_iterations_le): Likewise.
1233 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
1235 * config/picochip/picochip.c: Removed profiling support.
1236 * config/picochip/picochip.md: Removed profiling instruction.
1237 * config/picochip/picochip.h: Removed profiling builtin.
1239 2009-03-16 Joseph Myers <joseph@codesourcery.com>
1241 * doc/install.texi (--with-host-libstdcxx): Document.
1243 2009-03-14 Anatoly Sokolov <aesok@post.ru>
1246 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
1247 generate a warning if the function name does not begin with
1248 "__vector" and the function has either the 'signal' or 'interrupt'
1249 attribute, from here to ...
1250 (avr_declare_function_name): ...here. New function.
1251 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
1252 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
1254 2009-03-14 Jakub Jelinek <jakub@redhat.com>
1257 * cse.c (fold_rtx): Don't modify original const_arg1 when
1258 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
1259 separate variable instead.
1260 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
1261 from out of range shift counts.
1262 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
1264 2008-03-13 Catherine Moore <clm@codesourcery.com>
1266 * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
1267 diagnostic.h with $(DIAGNOSTIC_H).
1269 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1272 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
1274 * config/i386/sync.md (sync_compare_and_swap<mode>,
1275 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
1276 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
1278 (sync_double_compare_and_swapdi_pic,
1279 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
1280 cmpxchg8b_pic_memory_operand instead of just memory_operand.
1282 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
1285 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
1287 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
1290 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
1291 (avx_addsubv4df3): Likewise.
1292 (*avx_addsubv4sf3): Likewise.
1293 (sse3_addsubv4sf3): Likewise.
1295 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
1298 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
1300 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
1303 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
1304 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
1305 registers for allocnos created from user-defined variables.
1307 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1310 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
1311 of non-integer mode as well.
1313 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
1315 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
1316 for functions for which the parameter types are unknown.
1318 2009-03-11 Jakub Jelinek <jakub@redhat.com>
1321 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
1322 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
1323 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
1324 * config/i386/i386.c (ix86_local_alignment): For
1325 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
1326 long long variables on the stack to avoid dynamic realignment.
1327 Allow the first argument to be a decl rather than type.
1328 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
1330 2009-03-11 Nick Clifton <nickc@redhat.com>
1333 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
1335 Add description to mno-lsim option.
1336 * config/mcore/mcore.h: Remove comment about deprecated m4align
1338 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
1339 * doc/invoke.texi: Add description of mno-lsim and
1340 mstack-increment options.
1342 * config/fr30/fr30.opt: Document the -mno-lsim option.
1343 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
1344 and -mno-lsim options.
1346 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1348 * fold-const.c (fold_comparison): Only call fold_inf_compare
1349 if the mode supports infinities.
1351 2009-03-11 Jason Merrill <jason@redhat.com>
1354 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
1355 end already did. Notice GIMPLE_CALL modifications of the result.
1356 Don't copy debug information from an ignored decl or a decl from
1359 2009-03-10 Richard Guenther <rguenther@suse.de>
1360 Nathan Froyd <froydnj@codesourcery.com>
1363 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
1364 (__divMODE3): Likewise.
1366 2009-03-09 Jakub Jelinek <jakub@redhat.com>
1368 PR tree-optimization/39394
1369 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
1370 DECL_SIZE_UNIT of variable length FIELD_DECLs.
1372 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1374 * recog.c (verfiy_changes): Disallow renaming of hard regs in
1375 inline asms for register asm ("") declarations.
1377 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
1379 * fold-const.c (fold_unary): Fix comment.
1381 2009-03-07 Jan Hubicka <jh@suse.cz>
1384 * tree-inline.c (setup_one_parameter): Do replacement of const
1385 argument by constant in SSA form.
1387 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1390 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
1391 determine alignment passed to assign_stack_local.
1392 (assign_parms_unsplit_complex): Likewise.
1393 * except.c (sjlj_build_landing_pads): Likewise.
1395 2009-03-06 Jakub Jelinek <jakub@redhat.com>
1398 * tree-flow.h (add_referenced_var): Return bool instead of void.
1399 * tree-dfa.c (add_referenced_var): Return result of
1400 referenced_var_check_and_insert call.
1401 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
1402 of referenced_var_check_and_insert.
1405 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
1406 (gen_variable_die): Emit DW_AT_location on abstract static variable's
1407 DIE, don't emit it if abstract origin already has it.
1408 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
1409 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
1411 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1413 * genpreds.c (needs_variable): Fix parentheses at variable name
1415 (write_tm_constrs_h): Indent generated code.
1417 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1419 * doc/extend.texi (Function Attributes): Add documentation
1422 2009-03-06 Jakub Jelinek <jakub@redhat.com>
1425 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
1426 take locus from its DECL_SOURCE_LOCATION instead of input_location.
1428 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
1430 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
1433 2009-03-05 Jakub Jelinek <jakub@redhat.com>
1436 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
1437 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
1439 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
1441 * config/i386/i386.md (R8_REG, R9_REG): New constants.
1442 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
1443 constants instead of magic numbers.
1444 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
1446 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
1447 (x86_64_ms_abi_int_parameter_registers): Ditto.
1448 (x86_64_int_return_registers): Ditto.
1449 (ix86_maybe_switch_abi): Ditto.
1450 (ix86_expand_call): Ditto for clobbered_registers array.
1451 (ix86_hard_regno_mode_ok): Ditto.
1452 (x86_extended_QIreg_mentioned_p): Ditto.
1454 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
1456 PR tree-optimization/39349
1457 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
1459 * combine.c (gen_lowpart_for_combine): Use omode when generating
1462 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
1464 PR rtl-optimization/39235
1465 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
1467 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
1469 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
1471 2009-03-04 Richard Guenther <rguenther@suse.de>
1473 PR tree-optimization/39362
1474 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
1475 that occur in abnormal PHIs should be varying.
1477 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
1479 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
1481 (simple_iv): Take loop as an argument instead of statement.
1482 * tree-scalar-evolution.h (simple_iv): Declaration changed.
1483 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
1485 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
1487 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
1488 * matrix-reorg.c (analyze_transpose): Ditto.
1489 * tree-data-ref.c (dr_analyze_innermost): Ditto.
1490 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
1491 * tree-predcom.c (ref_at_iteration): Ditto.
1492 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
1494 2009-03-04 Richard Guenther <rguenther@suse.de>
1496 PR tree-optimization/39358
1497 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
1498 escaped_id and callused_id.
1499 (solve_graph): Likewise.
1501 2009-03-04 Richard Guenther <rguenther@suse.de>
1503 PR tree-optimization/39339
1504 * tree-sra.c (try_instantiate_multiple_fields): Make it
1505 no longer ICE on the above.
1507 2009-03-03 Joseph Myers <joseph@codesourcery.com>
1509 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
1510 that fits within Pmode.
1512 2009-03-03 Steve Ellcey <sje@cup.hp.com>
1515 * tm.texi (LIBCALL_VALUE): Update description.
1517 2009-03-03 Steve Ellcey <sje@cup.hp.com>
1520 * doc/extend.texi (section): Update description.
1522 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
1525 * tree-inline.c (remapped_type): New.
1526 (can_be_nonlocal): Call remapped_type instead of remap_type.
1528 2009-03-03 Jakub Jelinek <jakub@redhat.com>
1531 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
1532 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
1534 2009-03-03 Richard Guenther <rguenther@suse.de>
1537 * tree.c (tree_nonartificial_location): New function.
1538 * tree.h (tree_nonartificial_location): Declare.
1539 * builtins.c (expand_builtin_memory_chk): Provide location
1540 of the call location for artificial function pieces.
1541 (maybe_emit_chk_warning): Likewise.
1542 (maybe_emit_sprintf_chk_warning): Likewise.
1543 (maybe_emit_free_warning): Likewise.
1544 * expr.c (expand_expr_real_1): Likewise.
1546 2009-03-03 Jakub Jelinek <jakub@redhat.com>
1548 PR tree-optimization/39343
1549 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
1550 COMPONENT_REF t has ARRAY_TYPE.
1552 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
1555 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
1556 when the type precision of the induction variable should be
1557 larger than the type precision of nit.
1558 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
1559 * graphite.c (graphite_loop_normal_form): Same.
1560 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
1562 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
1564 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
1565 (*call_1_rex64_ms_sysv): Use named constants instead of magic
1566 numbers to describe clobbered registers.
1567 (*call_value_0_rex64_ms_sysv): Ditto.
1568 * config/i386/mmx.md (mmx_emms): Ditto.
1571 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
1573 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
1576 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1578 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
1579 (spu_section_type_flags): New function.
1581 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
1583 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
1584 reg_class_contents of FLOAT_REGS into a temporary.
1586 2009-03-02 Richard Guenther <rguenther@suse.de>
1587 Ira Rosen <irar@il.ibm.com>
1589 PR tree-optimization/39318
1590 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
1591 information to the vectorized statement.
1593 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
1595 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
1596 variable. Use defined names instead of magic constants for REX SSE
1599 2009-03-01 Richard Guenther <rguenther@suse.de>
1601 PR tree-optimization/39331
1602 * omp-low.c (lower_send_shared_vars): Do not receive new
1603 values for the reference of DECL_BY_REFERENCE parms or results.
1605 2009-03-01 Jan Hubicka <jh@suse.cz>
1608 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
1609 BLOCK_NONLOCALIZED_VAR): New macros.
1610 (tree_block): Add nonlocalized_vars.
1611 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
1612 gen_decl_die): Add origin argument. Allow generation of die with
1613 origin at hand only.
1614 (gen_member_die, gen_type_die_with_usage, force_decl_die,
1615 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
1617 (gen_block_die): Fix checking for unused blocks.
1618 (process_scope_var): Break out from .... ; work with origins only.
1619 (decls_for_scope) ... here; process nonlocalized list.
1620 (dwarf2out_ignore_block): Look for nonlocalized vars.
1621 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
1623 (dump_scope_block): Dump them.
1624 * tree-inline.c (remap_decls): Handle nonlocalized vars.
1625 (remap_block): Likewise.
1626 (can_be_nonlocal): New predicate.
1627 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
1629 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1631 * configure: Regenerate.
1633 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1635 * optc-gen.awk: No need to duplicate option flags twice.
1636 Reuse help texts for duplicate options which do not have any.
1638 * gcc.c (display_help): Document --version.
1640 * gcc.c (main): If print_help_list and verbose_flag, ensure
1641 driver output comes before subprocess output.
1643 * optc-gen.awk: Assign all remaining fields to help string,
1644 space-separated, for multi-line help in *.opt.
1646 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
1647 -Wno-pedantic-ms-format is for MinGW targets only.
1649 * doc/options.texi (Option file format): Fix bad indentation,
1650 restoring dropped sentence.
1652 2009-02-28 Jan Hubicka <jh@suse.cz>
1654 * tree-inline.c (tree_function_versioning): Output debug info.
1656 2009-02-28 Jan Hubicka <jh@suse.cz>
1659 * tree-inline.c (setup_one_parameter): Do not copy propagate
1660 arguments when not optimizing.
1662 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
1665 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
1666 (avx_addsubv4df3): Likewise.
1667 (*avx_addsubv4sf3): Likewise.
1668 (sse3_addsubv4sf3): Likewise.
1669 (*avx_addsubv2df3): Likewise.
1670 (sse3_addsubv2df3): Likewise.
1671 (avx_unpckhps256): Correct item selectors.
1672 (avx_unpcklps256): Likewise.
1673 (avx_unpckhpd256): Likewise.
1674 (avx_unpcklpd256): Likewise.
1676 2009-02-28 Jan Hubicka <jh@suse.cz>
1678 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
1680 (copy_arguments_for_versioning): If var is declared don't declare it.
1681 (tree_function_versioning): First setup substitutions and then copy
1684 2009-02-27 Jan Hubicka <jh@suse.cz>
1687 * cgraph.h (varpool_output_debug_info): Remove.
1688 * cgraphunit.c (varpool_output_debug_info): Remove.
1689 * dwarf2out.c (deferred_locations_struct): New struct
1690 (deferred_locations): New type.
1691 (deferred_locations_list): New static var.
1692 (deffer_location): New function.
1693 (gen_variable_die): Use it.
1694 (decls_for_scope): Output info on local static vars.
1695 (dwarf2out_finish): Process deferred locations.
1696 * varpool.c (varpool_output_debug_info): Remove.
1698 2009-02-27 Jan Hubicka <jh@suse.cz>
1701 * tree.h (TREE_PROTECTED): Fix comment.
1702 (BLOCK_HANDLER_BLOCK): Remove.
1703 (struct tree_block): Remove handler_block add body_block.
1704 (inlined_function_outer_scope_p): New.
1705 (is_body_block): Remove.
1706 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
1707 * dwarf2out.c (is_inlined_entry_point): Remove.
1708 (add_high_low_attributes): Use inlined_function_outer_scope_p.
1709 (gen_block_die): Use is_inlined_entry_point check. Remove body block
1711 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
1712 * gimplify.c (gimplify_expr): Gimplify body blocks.
1713 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
1714 block with multiple subblocks.
1715 (dump_scope_block): Prettier output; dump more flags and info.
1716 (dump_scope_blocks): New.
1717 (remove_unused_locals): Use dump_scope_blocks.
1718 * tree-flow.h (dump_scope_blocks): Declare.
1719 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
1720 * stmt.c (is_body_block): Remove.
1721 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
1722 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
1724 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
1727 * graphite.c (graphite_loop_normal_form): Do not call
1728 number_of_iterations_exit from a gcc_assert.
1730 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1732 * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
1733 jumps if COND is NULL.
1734 (find_cond_jump): New function.
1735 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
1736 * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
1738 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
1740 * config/alpha/alpha.h (alpha_expand_mov): Return false if
1741 force_const_mem returns NULL_RTX.
1743 2009-02-26 Jan Hubicka <jh@suse.cz>
1746 * cgraph.h (varpool_output_debug_info): Remove.
1747 * cgraphunit.c (varpool_output_debug_info): Remove.
1748 * dwarf2out.c (deferred_locations_struct): New struct
1749 (deferred_locations): New type.
1750 (deferred_locations_list): New static var.
1751 (deffer_location): New function.
1752 (gen_variable_die): Use it.
1753 (decls_for_scope): Output info on local static vars.
1754 (dwarf2out_finish): Process deferred locations.
1755 * varpool.c (varpool_output_debug_info): Remove.
1757 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
1759 PR rtl-optimization/39241
1760 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
1761 to subreg_offset_representable_p.
1763 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
1765 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
1766 execute function prototype. Get f and nregs from max_reg_num
1767 and get_insns. Remove the first backward pass as it's dead,
1768 guard the forward pass by flag_expensive_optimizations.
1769 (rest_of_handle_regmove): Delete.
1770 (pass_regmove): Replace it with regmove_optimize.
1772 2009-02-25 Martin Jambor <mjambor@suse.cz>
1774 PR tree-optimization/39259
1775 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
1776 calls_alloca function flags.
1777 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
1780 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
1782 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
1783 flags_set_1_rtx, flags_set_1_set): Delete.
1784 (regmove_optimize): Do not call mark_flags_life_zones.
1786 2009-02-24 Julian Brown <julian@codesourcery.com>
1789 * config/arm/arm.c (require_pic_register): Only set
1790 cfun->machine->pic_reg once per function.
1792 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
1794 * doc/invoke.texi (Link Options): Document an easier way to pass
1795 options that take arguments to the GNU linker using -Xlinker and -Wl.
1797 2009-02-24 Steve Ellcey <sje@cup.hp.com>
1800 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
1802 2009-02-24 Richard Guenther <rguenther@suse.de>
1805 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
1807 2009-02-24 Richard Guenther <rguenther@suse.de>
1808 Zdenek Dvorak <ook@ucw.cz>
1810 PR tree-optimization/39233
1811 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
1812 from converting them to a generic type.
1814 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
1816 PR tree-optimization/39260
1817 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
1818 contains a condition with a real type.
1819 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
1821 2009-02-23 Jason Merrill <jason@redhat.com>
1824 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
1825 narrowing_initializer_constant_valid_p.
1826 (narrowing_initializer_constant_valid_p): Don't return
1827 null_pointer_node for adding a pointer to itself.
1829 2009-02-23 Jan Hubicka <jh@suse.cz>
1832 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
1835 2009-02-23 Jan Hubicka <jh@suse.cz>
1837 PR tree-optimization/37709
1838 * tree.c (block_ultimate_origin): Move here from dwarf2out.
1839 * tree.h (block_ultimate_origin): Declare.
1840 * dwarf2out.c (block_ultimate_origin): Move to tree.c
1841 * tree-ssa-live.c (remove_unused_scope_block_p):
1842 Eliminate blocks containig no instructions nor live variables nor
1844 (dump_scope_block): New function.
1845 (remove_unused_locals): Enable removal of dead blocks by default;
1846 enable dumping at TDF_DETAILS.
1848 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
1850 * config/i386/i386.c (classify_argument): Don't allow COImode
1852 (function_arg_advance_32): Don't allow OImode.
1853 (function_arg_32): Likewise.
1854 (function_value_32): Likewise.
1855 (return_in_memory_32): Likewise.
1856 (function_arg_64): Remove OImode comment.
1858 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
1861 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
1862 ix86_expand_vector_set for V4DImode in 64bit mode only.
1863 (ix86_expand_vector_init_one_var): Likewise.
1865 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
1867 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
1869 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
1872 * loop-iv.c: Revert last change.
1873 * emit-rtl.c: Likewise.
1875 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
1878 * config/i386/i386.c (type_natural_mode): Remove an extra
1879 space in the warning message.
1880 (function_value_32): Handle 32-byte vector modes.
1881 (return_in_memory_32): Likewise.
1883 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
1885 * loop-iv.c (truncate_value): New function.
1886 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
1888 (lowpart_subreg): Move to...
1889 * emit-rtl.c: ...here.
1891 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
1893 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
1894 accidental and undocumented change at revision 140860.
1896 2009-02-21 Joseph Myers <joseph@codesourcery.com>
1898 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
1899 take gimple_seq * arguments.
1900 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
1901 types_compatible_p langhook.
1903 2009-02-20 Mark Mitchell <mark@codesourcery.com>
1904 Joseph Myers <joseph@codesourcery.com>
1906 * config/arm/arm.c (arm_builtin_va_list): New function.
1907 (arm_expand_builtin_va_start): Likewise.
1908 (arm_gimplify_va_arg_expr): Likewise.
1909 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
1910 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
1911 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
1912 (va_list_type): New variable.
1913 (arm_mangle_type): Mangle va_list_type appropriately.
1915 2009-02-20 Jakub Jelinek <jakub@redhat.com>
1918 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
1919 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
1920 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
1921 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
1922 parameter to 1000 for -O1 by default.
1923 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
1925 * loop-invariant.c: Include params.h.
1926 (move_loop_invariants): Don't call move_single_loop_invariants on
1929 2009-02-20 Jaka Mocnik <jaka@xlab.si>
1931 * calls.c (emit_library_call_value_1): Use slot_offset instead of
1932 offset when calculating bounds for indexing stack_usage_map. Fixes
1933 a buffer overflow with certain target setups.
1935 2009-02-20 Jakub Jelinek <jakub@redhat.com>
1938 * calls.c (expand_call): Clear try_tail_call if caller and callee
1939 disagree in promotion of function return value.
1941 2009-02-19 Jakub Jelinek <jakub@redhat.com>
1944 * c-common.c (c_determine_visibility): If visibility changed and
1945 DECL_RTL has been already set, call make_decl_rtl to update symbol
1948 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
1951 * varasm.c (assemble_variable): Don't check DECL_NAME when
1952 globalizing a variable.
1954 2009-02-19 Joseph Myers <joseph@codesourcery.com>
1957 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
1958 expression before any __builtin_trap call.
1959 * c-typeck.c (build_function_call): Convert and check function
1960 arguments before generating a call to a trap. Evaluate the
1961 function arguments before the trap.
1963 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
1966 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
1967 (UNSPEC_FXAM_MEM): New unspec.
1968 (fxam<mode>2_i387_with_temp): New insn and split pattern.
1969 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
1970 memory using fxam<mode>2_i387_with_temp to remove excess precision.
1972 2009-02-19 Richard Guenther <rguenther@suse.de>
1974 PR tree-optimization/39207
1975 PR tree-optimization/39074
1976 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
1977 storedanything_tree): New.
1978 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
1979 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
1980 (build_succ_graph): Add edges from STOREDANYTHING to all
1982 (init_base_vars): Initialize STOREDANYTHING.
1983 (compute_points_to_sets): Free substitution info after
1984 building the succ graph.
1985 (ipa_pta_execute): Likewise.
1987 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
1989 (do_ds_constraint): Do not add to special var or non-pointer
1991 (type_could_have_pointers): Split out from ...
1992 (could_have_pointers): ... here. For arrays use the element type.
1993 (create_variable_info_for): Initialize may_have_pointers.
1994 (new_var_info): Likewise.
1995 (handle_lhs_call): Make the HEAP variable unknown-sized.
1996 (intra_create_variable_infos): Use a type with pointers for
1997 PARM_NOALIAS, make it unknown-sized.
1999 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
2002 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
2004 2009-02-18 Jason Merrill <jason@redhat.com>
2007 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
2008 value if DECL_EXTERNAL.
2009 * tree-sra.c (sra_walk_gimple_assign): Likewise.
2010 * target.h (gcc_target::binds_local_p): Clarify "module".
2011 * tree.h (TREE_PUBLIC): Clarify "module".
2013 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
2016 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
2017 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
2019 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
2022 * c.opt (Wabi): Support C and ObjC.
2025 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
2027 * config/i386/i386.c (classify_argument): Warn once about the ABI
2028 change when passing union with long double.
2030 * doc/invoke.texi: Update -Wabi for warning psABI changes.
2032 2009-02-18 Joseph Myers <joseph@codesourcery.com>
2035 * c-parser.c (c_parser_compound_statement): Always enter and leave
2038 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2041 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
2043 2009-02-18 Jakub Jelinek <jakub@redhat.com>
2045 PR tree-optimization/36922
2046 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
2047 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
2050 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
2052 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2055 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
2057 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
2059 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
2061 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
2064 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
2065 Richard Sandiford <rdsandiford@googlemail.com>
2067 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
2068 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
2069 (loongson_biadd): ...this.
2071 2009-02-17 Richard Guenther <rguenther@suse.de>
2073 PR tree-optimization/39202
2074 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
2075 a var make sure to follow existing collapses.
2077 2009-02-17 Richard Guenther <rguenther@suse.de>
2080 * langhooks.c (lhd_print_error_function): Check for NULL block.
2082 2009-02-17 Richard Guenther <rguenther@suse.de>
2084 PR tree-optimization/39204
2085 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
2088 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
2090 * config/soft-fp/double.h: Update from glibc CVS.
2092 2009-02-17 Richard Guenther <rguenther@suse.de>
2094 PR tree-optimization/39207
2095 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
2096 strict-aliasing warnings for pointers pointing to NULL.
2098 2009-02-16 Joseph Myers <joseph@codesourcery.com>
2101 * c-parser.c (c_parser_braced_init): Call pop_init_level when
2102 skipping until next close brace.
2104 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
2107 * config/i386/i386.c (ix86_expand_push): Set memory alignment
2108 to function argument boundary.
2110 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
2112 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
2113 in the lea_add. Reload eventually constraints it properly.
2114 * config/picochip/constraints.md : Remove the target constraint
2115 "b", since it is not needed anymore.
2117 2009-02-16 Jakub Jelinek <jakub@redhat.com>
2119 * gthr-dce.h: Uglify function parameter and local variable names.
2120 * gthr-gnat.h: Likewise.
2121 * gthr-mipssde.h: Likewise.
2122 * gthr-nks.h: Likewise.
2123 * gthr-posix95.h: Likewise.
2124 * gthr-posix.h: Likewise.
2125 * gthr-rtems.h: Likewise.
2126 * gthr-single.h: Likewise.
2127 * gthr-solaris.h: Likewise.
2128 * gthr-tpf.h: Likewise.
2129 * gthr-vxworks.h: Likewise.
2130 * gthr-win32.h: Likewise.
2132 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
2135 * config/i386/i386.md: Restrict the new peephole2 to move
2136 between MMX/SSE registers.
2138 2009-02-15 Richard Guenther <rguenther@suse.de>
2141 2009-02-13 Richard Guenther <rguenther@suse.de>
2143 * configure.ac: Enable LFS.
2144 * configure: Re-generate.
2145 * config.in: Likewise.
2147 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2149 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
2150 spu_srqwbyte, spu_srqwbytebc): Define.
2151 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
2152 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
2153 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
2154 "shrqby_<mode>"): New insn-and-split patterns.
2155 * config/spu/spu.c (expand_builtin_args): Determine and return
2156 number of operands using spu_builtin_description data.
2157 (spu_expand_builtin_1): Use it.
2159 2009-02-13 Steve Ellcey <sje@cup.hp.com>
2162 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
2165 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
2168 * config/i386/i386.c (override_options): Correct warning
2169 messages for -malign-loops, -malign-jumps and -malign-functions.
2171 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
2174 * config/i386/i386.md: Restrict the new peephole2 to move
2175 between the general purpose registers.
2177 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
2180 * config/i386/i386.c (type_natural_mode): Add a new argument.
2181 Return the original mode and warn ABI change if vector size is 32byte.
2182 (function_arg_advance): Updated.
2183 (function_arg): Likewise.
2184 (ix86_function_value): Likewise.
2185 (ix86_return_in_memory): Likewise.
2186 (ix86_sol10_return_in_memory): Likewise.
2187 (ix86_gimplify_va_arg): Likewise.
2188 (function_arg_32): Don't warn ABX ABI change here.
2189 (function_arg_64): Likewise.
2191 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
2193 * loop-iv.c (implies_p): In the final case, test that operands 0
2194 of the two comparisons match.
2196 * config/bfin/bfin.c (find_prev_insn_start): New function.
2197 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
2198 (find_next_insn_start): Move.
2200 2009-02-13 Richard Guenther <rguenther@suse.de>
2202 * configure.ac: Enable LFS.
2203 * configure: Re-generate.
2204 * config.in: Likewise.
2206 2009-02-13 Joseph Myers <joseph@codesourcery.com>
2209 * c-parser.c (c_parser_parms_list_declarator): Discard pending
2210 sizes on syntax error after some arguments have been parsed.
2212 2009-02-12 Jakub Jelinek <jakub@redhat.com>
2214 * doc/invoke.texi (-fira): Remove.
2216 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
2218 * caller-save.c: Replace regclass.c with reginfo.c in comments.
2219 * recog.c: Likewise.
2222 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
2224 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
2225 (umul_ppmm): Likewise.
2226 (count_leading_zeros): Likewise.
2227 (count_trailing_zeros): Likewise.
2228 (UMUL_TIME): Likewise.
2230 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
2232 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
2233 soft-fp/t-softfp to tmake_file.
2235 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
2236 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
2237 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
2238 IA64_BUILTIN_INFQ]: New.
2239 (ia64_init_builtins): Initialize __builtin_infq,
2240 __builtin_fabsq and __builtin_copysignq if not HPUX.
2241 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
2242 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
2244 * config/ia64/lib1funcs.asm (__divtf3): Define only if
2246 (__fixtfti): Likewise.
2247 (__fixunstfti): Likewise.
2248 (__floattitf): Likewise.
2250 * config/ia64/libgcc-glibc.ver: New.
2251 * config/ia64/t-fprules-softfp: Likewise.
2252 * config/ia64/sfp-machine.h: Likewise.
2254 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
2255 (LIBGCC2_TF_CEXT): Likewise.
2256 (TF_SIZE): Likewise.
2257 (TARGET_INIT_LIBFUNCS): Likewise.
2259 * config/ia64/t-glibc (SHLINB_MAPFILES):
2260 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
2262 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
2264 * config/i386/i386.c (construct_container): Rewrite processing
2265 BLKmode with X86_64_SSE_CLASS.
2267 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
2270 * config/i386/i386.md: Replace simplify_replace_rtx with
2271 replace_rtx in the new peephole2.
2273 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
2275 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
2276 loop unrolling do not happen at -O2.
2278 2009-02-12 Michael Matz <matz@suse.de>
2280 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
2282 2009-02-12 Jakub Jelinek <jakub@redhat.com>
2284 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
2287 2009-02-12 Ben Elliston <bje@au.ibm.com>
2289 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
2290 patterns when updating the back chain. Missed in the 2009-02-10
2293 2009-02-11 Janis Johnson <janis187@us.ibm.com>
2295 * doc/extend.texi (Decimal Floating Types): Update identifier of
2296 draft TR and list of missing support.
2298 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2301 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
2302 bit to variable length decl's flags, add it also to its
2303 pointer replacement variable.
2305 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
2306 Jakub Jelinek <jakub@redhat.com>
2309 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
2310 (memory_blockage): New expander.
2311 (*memory_blockage): New insn pattern.
2312 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
2313 instead of general blockage at the end of function prologue when
2314 frame pointer is used to access red zone area. Do not emit blockage
2315 when profiling, it is emitted in generic code.
2316 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
2317 function epilogue when frame pointer is used to access red zone area.
2319 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
2322 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
2323 by arithmetic with memory operands.
2324 * config/i386/predicates.md (commutative_operator): New.
2326 2009-02-10 Janis Johnson <janis187@us.ibm.com>
2328 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
2331 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
2333 * alias.h (record_alias_subset): Declare.
2334 * alias.c (record_alias_subset): Make global.
2336 2009-02-10 Nick Clifton <nickc@redhat.com>
2338 * tree-parloops.c: Change license to GPLv3.
2339 * ipa-struct-reorg.c: Change license to GPLv3.
2340 * ipa-struct-reorg.h: Change license to GPLv3.
2342 2009-02-10 Steve Ellcey <sje@cup.hp.com>
2345 * c-decl.c (start_struct): Return NULL on error.
2347 2009-02-10 Jakub Jelinek <jakub@redhat.com>
2350 * cfgloopmanip.c (remove_path): Call remove_bbs after
2351 cancel_loop_tree, not before it.
2354 * function.h (struct function): Add has_local_explicit_reg_vars bit.
2355 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
2356 VAR_DECLs were seen.
2357 * tree-ssa-live.c (remove_unused_locals): Recompute
2358 cfun->has_local_explicit_reg_vars.
2359 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
2360 copies or clearings if cfun->has_local_explicit_reg_vars.
2362 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
2365 * config/i386/i386.c (expand_prologue): Emit blockage at the end
2366 of function prologue when frame pointer is used to access
2369 2009-02-10 Richard Guenther <rguenther@suse.de>
2372 * gimplify.c (gimple_regimplify_operands): Always look if
2373 we need to create a temporary.
2375 2009-02-10 Richard Guenther <rguenther@suse.de>
2377 PR tree-optimization/39132
2378 * tree-loop-distribution.c (todo): New global var.
2379 (generate_memset_zero): Trigger TODO_rebuild_alias.
2380 (tree_loop_distribution): Return todo.
2382 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
2385 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
2386 (x86_64_reg_class_name): Removed.
2387 (classify_argument): Return 0 if bytes > 32. Return 0 if the
2388 first one isn't X86_64_SSE_CLASS or any other ones aren't
2389 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
2390 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
2391 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
2392 and 3 X86_64_SSEUP_CLASS.
2393 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
2394 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
2396 2009-02-10 Ben Elliston <bje@au.ibm.com>
2398 * config/rs6000/rs6000.md (allocate_stack): Always use an update
2399 form instruction to update the stack back chain word, even if the
2400 user has disabled the generation of update instructions.
2401 (movdi_<mode>_update_stack): New.
2402 (movsi_update_stack): Likewise.
2403 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
2404 always use an update form instruction to update the stack back
2407 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
2410 * graphite.c (if_region_set_false_region): After moving a region in
2411 the false branch of a condition, remove the empty dummy basic block.
2412 (gloog): Remove wrong fix for PR38953.
2414 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2416 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
2417 generation due to implicit sign extension.
2419 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
2422 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
2423 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
2425 2009-02-09 Richard Guenther <rguenther@suse.de>
2428 * convert.c (convert_to_real): Disable (float)fn((double)x)
2429 to fnf(x) conversion if errno differences may occur and
2430 -fmath-errno is set.
2432 2009-02-07 Anatoly Sokolov <aesok@post.ru>
2434 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
2435 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2436 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2438 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2441 * c-common.c (handle_alias_attribute): Disallow attribute for
2442 anything not a FUNCTION_DECL or VAR_DECL.
2444 2009-02-06 Janis Johnson <janis187@us.ibm.com>
2447 * real.c (do_compare): Special-case compare of zero against
2448 decimal float value.
2450 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2453 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
2454 as indicating flexible array members unless the field itself is
2455 being declarared as the incomplete array.
2457 2009-02-06 Jan Hubicka <jh@suse.cz>
2459 PR tree-optimization/38844
2460 * ipa-inline.c (try_inline): Stop inlining recursion when edge
2463 2009-02-06 Richard Guenther <rguenther@suse.de>
2466 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
2467 fork because we may expand it as __gcov_fork.
2469 2009-02-06 Nick Clifton <nickc@redhat.com>
2471 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
2473 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
2475 PR tree-optimization/35659
2476 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
2477 vn_phi_eq): Shortcut if hashcode does not match.
2478 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
2480 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
2481 and avoid iterative_hash_expr.
2482 (FOR_EACH_VALUE_ID_IN_SET): New.
2483 (value_id_compare): Remove.
2484 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
2485 sort expressions by value id.
2487 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
2490 * config/sh/predicates.md (general_movsrc_operand): Don't check
2491 the subreg of system registers here.
2493 2009-02-05 Jakub Jelinek <jakub@redhat.com>
2496 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
2499 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
2501 PR rtl-optimization/39110
2502 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
2503 addresses, not aligned ones.
2505 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
2506 Richard Guenther <rguenther@suse.de>
2508 PR tree-optimization/39100
2509 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
2510 comment says and add edges.
2512 2009-02-05 Joseph Myers <joseph@codesourcery.com>
2515 * c-common.c (handle_tls_model_attribute): Ignore attribute for
2516 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
2518 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
2520 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
2521 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
2522 register_bb_in_sese, new_sese, free_sese): Moved.
2523 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
2524 outermost_loop_in_scop, build_scop_iteration_domain,
2525 expand_scalar_variables_ssa_name, get_vdef_before_scop,
2526 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
2527 Use loop_in_sese_p instead of loop_in_scop_p.
2528 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
2529 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
2530 (scopdet_basic_block_info): Fix bug in scop detection.
2531 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
2532 eq_loop_to_cloog_loop): Remove.
2533 (nb_loops_around_loop_in_scop, nb_loop
2534 ref_nb_loops): Moved here...
2535 * graphite.h (ref_nb_loops): ... from here.
2536 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
2537 (loop_domain_dim, loop_iteration_vector_dim): Remove.
2538 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
2539 * testsuite/gcc.dg/graphite/scop-19.c: New
2541 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
2542 Hans-Peter Nilsson <hp@axis.com>
2544 PR rtl-optimization/37889
2545 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
2546 Move offset handling from PLUS to before the switch. Use new
2547 arguments when considering SYMBOL_REFs too.
2548 (rtx_addr_can_trap_p): Pass dummy offset and size.
2549 (enum may_trap_p_flags): Remove.
2550 (may_trap_p_1): Pass size from MEM_SIZE.
2552 PR rtl-optimization/38921
2553 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
2554 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
2555 * rtlanal.c (may_trap_after_code_motion_p): Delete.
2556 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
2558 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
2560 AVX Programming Reference (January, 2009)
2561 * config/i386/sse.md (*vpclmulqdq): New.
2563 2009-02-04 Jakub Jelinek <jakub@redhat.com>
2565 PR tree-optimization/38977
2566 PR gcov-profile/38292
2567 * calls.c (special_function_p): Disregard __builtin_ prefix.
2569 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
2571 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
2572 non-indexable addresses even before reload.
2574 2009-02-03 Joseph Myers <joseph@codesourcery.com>
2577 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
2578 as having variable size. Do not give an error for unnamed
2579 parameters with [*] declarators. Give a warning for type names
2580 with [*] declarators and mark them as variable size.
2581 * c-parser.c (c_parser_sizeof_expression): Do not give an error
2582 for sizeof applied to [*] type names.
2584 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2587 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
2589 2009-02-03 Jakub Jelinek <jakub@redhat.com>
2591 * gcc.c (process_command): Update copyright notice dates.
2592 * gcov.c (print_version): Likewise.
2593 * gcov-dump.c (print_version): Likewise.
2594 * mips-tfile.c (main): Likewise.
2595 * mips-tdump.c (main): Likewise.
2597 2009-02-03 Joseph Myers <joseph@codesourcery.com>
2600 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
2601 for composite type involving a zero-length array type.
2603 2009-02-03 Jakub Jelinek <jakub@redhat.com>
2606 * function.c (match_asm_constraints_1): Skip over
2607 initial optional % in the constraint.
2610 * c-parser.c (c_parser_postfix_expression): If fixed point is not
2611 supported, don't accept FIXED_CSTs.
2612 * c-decl.c (finish_declspecs): Error if fixed point is not supported
2613 and _Sat is used without _Fract/_Accum. Set specs->type to
2614 integer_type_node for cts_fract/cts_accum if fixed point is not
2617 2009-02-02 Catherine Moore <clm@codesourcery.com>
2619 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
2621 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
2623 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
2624 (ABI_HAS_64BIT_SYMBOLS): Use it.
2625 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
2627 2009-02-02 Paul Brook <paul@codesourcery.com>
2629 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
2631 2009-02-02 Jakub Jelinek <jakub@redhat.com>
2634 * recog.h (asm_operand_ok): Add constraints argument.
2635 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
2636 recurse on matching constraint.
2637 (check_asm_operands): Pass constraints as 3rd argument to
2638 asm_operand_ok. Don't look up matching constraint here.
2639 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
2642 2009-02-02 Ben Elliston <bje@au.ibm.com>
2644 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
2645 TARGET_NARROW_VOLATILE_BITFIELD macro names.
2647 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2649 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
2650 information. Remove some obsolete information. Reorganize.
2652 * config/pa/fptr.c: Revert license to GPL 2.
2653 * config/pa/milli64.S: Likewise.
2655 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
2658 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
2659 LIBRARY name in, instead of hard-coding it.
2660 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
2661 extra target make frag to tmake_files according to EH model.
2662 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
2663 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
2664 frags that define makefile variable EH_MODEL appropriately.
2665 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
2666 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
2667 to "-sjlj" according to type of EH configured.
2668 (LIBGCC_SONAME): Concatenate it to shared library base name.
2669 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
2670 to "_sjlj" according to type of EH configured.
2671 (LIBGCC_SONAME): Concatenate it to shared library base name.
2672 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
2673 (SHLIB_LINK): Add missing semicolon to if-else construct.
2674 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
2675 string value of "pe_dll" command-line option.
2676 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
2677 (SHLIB_SONAME): Use it when overriding t-cygming default.
2678 (SHLIB_IMPLIB): Override t-cygming default.
2679 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
2680 string value of "pe_dll" command-line option.
2682 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
2685 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
2686 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
2688 2009-01-31 Richard Guenther <rguenther@suse.de>
2690 PR tree-optimization/38937
2691 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
2692 computing the transitive closure.
2694 2009-01-30 Richard Guenther <rguenther@suse.de>
2696 PR tree-optimization/39041
2697 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
2698 Propagate variable indices only if the types match for this stmt.
2700 2009-01-30 Jakub Jelinek <jakub@redhat.com>
2703 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
2704 inline but never defined.
2706 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
2708 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
2709 (*insv_h_di_reg_extimm): New insn.
2710 (*insv_l<mode>_reg_extimm): New insn.
2712 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2714 * config/picochip/picochip.c (flag_conserve_stack): set
2715 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
2716 fconserve-stack. Reduce call-overhead used by inliner.
2718 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2721 * common.opt (flag_conserve_stack): Initialised to zero.
2723 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
2726 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
2727 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
2730 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
2732 * ira-color.c (allocno_reload_assign): Update comments.
2733 * regmove.c (regmove_optimize): Likewise.
2737 2009-01-29 Robert Millan <rmh@aybabtu.com>
2739 * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
2740 * gcc/config/i386/kopensolaris-gnu.h: New file. Undefine
2741 `MD_UNWIND_SUPPORT'.
2742 * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
2744 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
2746 PR tree-optimization/39007
2747 * tree-loop-distribution.c (generate_builtin): Use
2748 recompute_dominator to compute the immediate dominator of the
2749 basic block just after the loop.
2751 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2753 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
2754 (ASM_OUTPUT_DWARF_PCREL): Define.
2756 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2758 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
2759 * doc/passes.texi: Remove entries about regclass, local-alloc, and
2760 global. Modify entries about regmove and IRA.
2762 * ra-conflict.c: Remove the file.
2764 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
2766 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
2767 (pass_regclass_init): Rename to pass_reginfo_init.
2769 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
2771 * toplev.h (flag_ira): Remove.
2773 * caller-save.c (setup_save_areas): Remove flag_ira.
2775 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2777 * global.c: Remove the file.
2779 * opts.c (decode_options): Remove flag_ira.
2781 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
2783 * regmove.c: Modify file description.
2784 (find_use_as_address, try_auto_increment): Define them only if
2785 AUTO_INC_DEC is defined.
2786 (replacement_quality, replace_in_call_usage, fixup_match_1,
2787 stable_and_no_regs_but_for_p): Remove.
2788 (reg_set_in_bb): Make it static.
2789 (regmove_optimize): Remove flag_ira and code which worked for
2792 * local-alloc.c: Remove the file.
2794 * common.opt (fira): Remove.
2796 * ira.c: Include except.h.
2797 (eliminable_regset): Move from global.c.
2798 (mark_elimination): Ditto. Remove flag_ira.
2799 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
2800 equiv_mem_modified, validate_equiv_mem_from_store,
2801 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
2802 contains_replace_regs, memref_referenced_p, memref_used_between_p,
2803 no_equiv, recorded_label_ref): Move from local-alloc.c.
2804 (update_equiv_regs): Ditto. Make it static.
2805 (print_insn_chain, print_insn_chains): Move it from global.c.
2806 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2807 (build_insn_chain): Ditto. Make it static.
2808 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
2809 Rename to init_live_subregs.
2810 (gate_ira): Remove flag_ira.
2812 * regclass.c: Rename reginfo.c. Change file description.
2813 (FORBIDDEN_INC_DEC_CLASSES): Remove.
2814 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2815 (init_reg_sets_1): Remove code for evaluation of
2816 reg_class_superclasses and losing_caller_save_reg_set.
2817 (init_regs): Remove init_reg_autoinc.
2818 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
2819 ok_for_base_p_nonstrict): Remove.
2820 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2821 (pass_regclass_init): Rename to pass_reginfo_init. Modify
2822 corresponding entries.
2823 (dump_regclass, record_operand_costs, scan_one_insn,
2824 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
2825 record_address_regs, auto_inc_dec_reg_p): Remove.
2826 (gt-regclass.h): Rename to gt-reginfo.h.
2828 * rtl.h (dump_global_regs, retry_global_alloc,
2829 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2831 * Makefile.in (RA_H): Remove.
2832 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
2833 Rename regclass.o to reginfo.o.
2834 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
2836 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
2837 (GTFILES): Rename regclass.c to reginfo.c.
2839 * passes.c (init_optimization_passes): Remove pass_local_alloc and
2840 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2842 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
2843 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
2845 (finish_spills): Ditto. Remove code for !flag_ira.
2847 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
2850 * doc/invoke.texi (rtl debug options): Complete rewrite.
2851 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
2853 * mode-switching.c (pass_mode_switching): Rename pass from
2854 "mode-sw" to "mode_sw".
2855 * except.c (pass_convert_to_eh_ranges): Rename pass from
2856 "eh-ranges" to "eh_ranges".
2857 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
2861 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
2862 Alexander Monakov <amonakov@ispras.ru>
2865 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
2867 (move_exprs_to_boundary): Change return type and pass through
2868 should_move from move_op. Relax assert. Update usage ...
2869 (schedule_expr_on_boundary): ... here. Use should_move instead of
2871 (move_op_orig_expr_found): Indicate that insn was disconnected from
2873 (code_motion_process_successors): Do not call after_merge_succs
2874 callback if original expression was not found when traversing any of
2876 (code_motion_path_driver): Change return type. Update prototype.
2877 (move_op): Update comment. Add a new parameter (should_move). Update
2878 prototype. Set *should_move based on indication provided by
2879 move_op_orig_expr_found.
2881 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
2883 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
2884 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
2885 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
2886 * config/rs6000/rs6000.c (rs6000_override_options): Default
2887 avoid-indexed-addresses on for Power6, off for everything else.
2888 (avoiding_indexed_address_p): New function.
2889 (rs6000_legitimize_address): Use it.
2890 (rs6000_legitimate_address): Likewise.
2891 * config/rs6000/rs6000.md (movXX_updateX): Likewise
2893 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
2895 PR tree-optimization/38997
2896 * tree-loop-distribution.c (generate_memset_zero): Use
2897 POINTER_PLUS_EXPR for a pointer addition.
2899 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
2901 * config/s390/s390.md (bswap<mode>2): New pattern added.
2903 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
2905 * config/s390/s390.md (*tls_load_31): Added type attribute.
2907 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
2909 * config/s390/s390.md: Fix a few comments.
2911 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
2913 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
2914 (*tm<mode>_full): Fixed z10prop attribute.
2915 (*tst<mode>_extimm): Fixed z10prop attribute.
2916 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
2917 (*tstqiCCT_cconly): Fixed z10prop attribute.
2918 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
2919 (*movsi_larl): Fixed z10prop attribute.
2920 (*movsi_zarch): Fixed z10prop attribute.
2921 (*movsi_eas): Fixed z10prop attribute.
2922 (*movhi): Fixed z10prop attribute.
2923 (*movqi): Fixed z10prop attribute.
2924 (*movstrictqi): Fixed z10prop attribute.
2925 (*mov<mode>): Fixed z10prop attribute.
2926 (*movcc): Fixed z10prop attribute.
2927 (*sethighpartdi_64): Fixed z10prop attribute.
2928 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
2929 (*negdi2_sign_cc): Fixed z10prop attribute.
2930 (*negdi2_sign): Fixed z10prop attribute.
2931 (*absdi2_sign_cc): Fixed z10prop attribute.
2932 (*absdi2_sign): Fixed z10prop attribute.
2933 (*negabsdi2_sign_cc): Fixed z10prop attribute.
2934 (*negabsdi2_sign): Fixed z10prop attribute.
2935 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
2936 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
2937 (doloop_si64): Fixed z10prop attribute.
2938 (doloop_si31): Fixed z10prop attribute.
2939 (doloop_long): Fixed z10prop attribute.
2940 (indirect_jump): Fixed z10prop attribute.
2941 (nop): Fixed z10prop attribute.
2942 (main_base_64): Fixed z10prop attribute.
2943 (reload_base_64): Fixed z10prop attribute.
2945 2009-01-28 Jakub Jelinek <jakub@redhat.com>
2947 PR rtl-optimization/38740
2948 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
2950 * config/mips/mips.c (mips_reorg): Likewise.
2952 2009-01-28 Richard Guenther <rguenther@suse.de>
2954 PR tree-optimization/38926
2955 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
2956 with the correct value id to a value.
2957 (do_regular_insertion): Use the value number of edoubleprime
2958 for the value number of the expr.
2961 2008-08-21 Richard Guenther <rguenther@suse.de>
2963 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
2964 a PHI ask VN if it is already available.
2965 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
2966 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
2968 2009-01-28 Jakub Jelinek <jakub@redhat.com>
2971 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
2972 set to varying whenever max has TREE_OVERFLOW set, similarly
2973 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
2975 2009-01-28 Richard Guenther <rguenther@suse.de>
2978 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
2979 uninitialized aggregate uses in call arguments.
2981 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
2983 PR tree-optimization/38984
2984 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
2985 the nothing_id variable if -fno-delete-null-pointer-checks.
2987 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
2990 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
2991 (set_got_offset_rex64): Ditto.
2993 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
2996 * doc/extend.texi: Improve local variable with asm reg.
2998 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
3000 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
3001 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
3002 was not supplied then set warn_packed_bitfield_compat to the
3004 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
3007 2009-01-27 Richard Guenther <rguenther@suse.de>
3009 PR tree-optimization/38503
3010 * cfgexpand.c (expand_gimple_basic_block): Ignore
3011 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
3012 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
3013 variables that cannot have TBAA applied.
3014 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
3017 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
3020 * calls.c (initialize_argument_information): Do not wrap complex
3021 arguments in SAVE_EXPR.
3023 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
3025 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
3026 (INSTALL_LIBGCC): Revert typo commit.
3028 2009-01-26 Richard Guenther <rguenther@suse.de>
3030 PR tree-optimization/38745
3031 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
3032 from special handling.
3034 2009-01-26 Richard Guenther <rguenther@suse.de>
3036 PR tree-optimization/38745
3037 * tree-ssa.c (execute_update_addresses_taken): Do not include
3038 variables that cannot possibly be a register in not_reg_needs.
3039 Do not clear TREE_ADDRESSABLE on vars that may not become
3041 * tree-ssa.c (update_alias_info_1): Include those in the set
3042 of addressable vars.
3044 2009-01-26 Richard Guenther <rguenther@suse.de>
3047 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
3048 * tree-ssa-dse.c: Include langhooks.h
3049 (execute_simple_dse): Remove stores with zero size.
3051 2009-01-24 Jakub Jelinek <jakub@redhat.com>
3054 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
3057 2009-01-24 Julian Brown <julian@codesourcery.com>
3059 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
3060 config/arm/linux-atomic.c.
3061 * config/arm/linux-atomic.c: New.
3063 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
3065 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
3066 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
3067 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
3069 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
3072 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
3075 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
3077 PR tree-optimization/38953
3078 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
3079 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
3080 (gloog): Split the exit of the scop when the scop exit is a loop exit.
3081 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
3084 2009-01-24 Paul Brook <paul@codesourcery.com>
3086 * config/arm/neon.md (neon_type): Move to arm.md.
3087 (neon_mov<VSTRUCT>): Add neon_type attribute.
3088 * config/arm/arm.md (neon_type): Move to here.
3089 (conds): Add "unconditioal" and use as default for NEON insns.
3091 2009-01-24 Ben Elliston <bje@au.ibm.com>
3093 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
3094 void *' warning from -Wc++-compat.
3095 * Makefile.in (dominance.o-warn): Remove.
3097 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
3099 PR tree-optimization/38932
3100 * fold-const.c (fold_unary_ignore_overflow): New.
3101 * tree.h (fold_unary_ignore_overflow): Declare.
3102 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
3103 * tree-ssa-sccvn.c (visit_reference_op_load,
3104 simplify_unary_expression): Likewise.
3106 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
3108 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
3109 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
3110 regardless of their type.
3111 * c-common.c (handle_packed_attribute): Don't ignore packed on
3113 * c.opt (Wpacked-bitfield-compat): New warning option.
3114 * stor-layout.c (place_field): Warn if offset of a field changed.
3115 * doc/extend.texi (packed): Mention the ABI change.
3116 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
3117 (Warning Options): Add it to the list.
3119 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
3121 * c-opts.c (c_common_post_options): Fix a typo in comments.
3123 2009-01-22 Steve Ellcey <sje@cup.hp.com>
3126 * gimplify.c (gimplify_init_constructor): Fix promotion of const
3127 variables to static.
3128 * doc/invoke.texi (-fmerge-all-constants): Update description.
3130 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
3133 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
3134 (*movdi_1_rex64): Use type "mmx" for alternative 5.
3136 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
3138 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
3140 (LOCAL_ALIGNMENT): Similarly.
3142 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
3143 Joseph Myers <joseph@codesourcery.com>
3145 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
3146 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
3147 * config/arm/arm-tune.md: Regenerate.
3148 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
3151 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
3153 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
3154 version number to five.
3156 2009-01-22 Dodji Seketeli <dodji@redhat.com>
3159 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
3160 * c-common.c (set_underlying_type): Likewise.
3161 (is_typedef_decl ): Likewise
3163 (set_underlying_type): Likewise.
3164 (is_typedef_type): Likewise.
3166 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
3169 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
3172 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
3175 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
3176 (LIBGCC_SPEC): Don't define.
3177 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
3179 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
3181 PR rtl-optimization/38879
3182 * alias.c (base_alias_check): Unaligned access via AND address can
3183 alias all surrounding object types except those with sizes equal
3184 or wider than the size of unaligned access.
3186 2009-01-21 Dodji Seketeli <dodji@redhat.com>
3189 * c-decl.c (clone_underlying_type): Move this ...
3190 * c-common.c (set_underlying_type): ... here.
3191 Also, make sure the function properly sets TYPE_STUB_DECL() on
3192 the newly created typedef variant type.
3193 (is_typedef_decl ): New entry point.
3194 * tree.h: Added a new member member_types_needing_access_check to
3195 struct tree_decl_non_common.
3196 (set_underlying_type): New entry point.
3197 (is_typedef_type): Likewise.
3199 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
3201 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
3202 Check whether two instructions have memory references that
3203 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
3204 are helper functions for traversing.
3205 * alias.h (insn_alias_sets_confilict_p): New prototypes.
3206 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
3207 not to draw dependency edge for instructions with non-conflicting
3210 2009-01-20 Joseph Myers <joseph@codesourcery.com>
3213 * longlong.h: Update copyright years. Use soft-fp license notice.
3214 Sync __clz_tab declaration with glibc.
3216 2009-01-20 Steve Ellcey <sje@cup.hp.com>
3219 * doc/extend.texi (syscall_linkage): New.
3220 (version_id): Modify.
3222 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
3223 Richard Guenther <rguenther@suse.de>
3225 PR tree-optimization/38747
3226 PR tree-optimization/38748
3227 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
3228 conversion if the base address is an indirect reference and the
3229 aliasing sets could cause issues.
3231 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
3233 * common.opt (fgraphite, fgraphite-identity): Add comment for
3234 explaining why these options are not documented.
3236 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
3238 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
3239 gimple_call_lhs is NULL.
3241 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
3244 * emit-rtl.c (adjust_address_1): Make sure memref is never
3247 2009-01-20 Ben Elliston <bje@au.ibm.com>
3249 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
3250 const qualifier from arg parameter. Remove unnecessary cast to char *.
3251 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
3252 const qualifier from arg 2.
3254 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3256 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
3258 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
3261 * rtl.h (reinit_regs): New prototype.
3262 * regclass.c: Include ira.h.
3264 * Makefile.in (regclass.o): Add ira.h.
3265 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
3267 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
3270 * c-common.c (handle_aligned_attribute): Use
3271 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
3272 default alignment value.
3274 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
3276 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
3277 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
3279 * doc/extend.texi: Update __attribute__ ((aligned)). Document
3280 __BIGGEST_ALIGNMENT__.
3282 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
3284 2009-01-18 Richard Guenther <rguenther@suse.de>
3286 PR tree-optimization/38819
3287 * tree-flow.h (operation_could_trap_helper_p): Declare.
3288 * tree-eh.c (operation_could_trap_helper_p): Export.
3289 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
3290 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
3291 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
3292 are about to insert a possibly trapping instruction and fail
3295 2009-01-18 Andreas Schwab <schwab@suse.de>
3297 * doc/install.texi (Configuration): Remove obsolete paragraph
3298 about use of --with-gnu-ld with --with-gnu-as.
3300 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
3302 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
3303 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
3304 Follow spelling conventions.
3306 2009-01-18 Ben Elliston <bje@au.ibm.com>
3308 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
3309 C++ warning about implicit conversion from void * to struct
3311 (bitmap_obstack_free): Likewise for bitmap_element *.
3312 * Makefile.in (bitmap.o-warn): Remove.
3314 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
3316 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
3318 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
3319 Tobias Grosser <tobi.grosser@amd.com>
3321 * graphite.c (graphite_trans_scop_block): Do not block single
3324 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
3326 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
3327 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
3328 test with assertion.
3330 2009-01-16 Richard Guenther <rguenther@suse.de>
3332 PR tree-optimization/38835
3334 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
3335 and INT + PTR -> (INT)(PTR p+ INT) folding.
3336 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
3338 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
3341 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
3342 the subreg from a lowpart subreg if it is also casting the value.
3344 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
3345 Tobias Grosser <tobi.grosser@amd.com>
3347 * graphite.c (compare_prefix_loops): New.
3348 (build_scop_canonical_schedules): Rewritten.
3349 (graphite_transform_loops): Move build_scop_canonical_schedules
3350 after build_scop_iteration_domain.
3352 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
3353 Tobias Grosser <tobi.grosser@amd.com>
3355 * graphite.c (add_conditions_to_domain): Add the loops to
3356 the dimension of the iteration domain. Do copy the domain
3357 only when it exists.
3358 (build_scop_conditions_1): Do not call add_conditions_to_domain.
3359 (add_conditions_to_constraints): New.
3360 (can_generate_code_stmt, can_generate_code): Removed.
3361 (gloog): Do not call can_generate_code.
3362 (graphite_transform_loops): Call add_conditions_to_constraints
3363 after building the iteration domain.
3365 2009-01-16 Jakub Jelinek <jakub@redhat.com>
3367 PR tree-optimization/38789
3368 * tree-ssa-threadedge.c
3369 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
3370 __builtin_constant_p.
3372 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
3374 * dce.c (delete_unmarked_insns): Reversed the order that insns are
3375 examined before deleting them.
3377 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
3379 * function.c (aggregate_value_p): Correctly extract the function
3380 type from CALL_EXPR_FN lookup.
3382 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
3384 * config/picochip/picochip.c (picochip_override_options): Revert
3385 CFI asm flag disable commited previously.
3387 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
3388 Tobias Grosser <tobi.grosser@amd.com>
3389 Jan Sjodin <jan.sjodin@amd.com>
3391 * graphite.c (scan_tree_for_params): On substractions negate
3392 all the coefficients of the term.
3393 (clast_to_gcc_expression_red): New. Handle reduction expressions
3394 of more than two operands.
3395 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
3396 (get_vdef_before_scop): Handle also the case of default definitions.
3398 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
3400 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
3401 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
3402 Also use them when walking CALL_INSN_FUNCTION_USAGE.
3404 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
3405 Joey Ye <joey.ye@intel.com>
3408 * cfgexpand.c (expand_stack_alignment): Don't update stack
3409 boundary nor check incoming stack boundary here.
3410 (gimple_expand_cfg): Update stack boundary and check incoming
3411 stack boundary here.
3413 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
3415 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
3417 2009-01-14 Jakub Jelinek <jakub@redhat.com>
3419 PR rtl-optimization/38245
3420 * calls.c (expand_call): Add stack arguments to
3421 CALL_INSN_FUNCTION_USAGE even for pure calls (when
3422 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
3423 in regs and partially in memory or BLKmode arguments.
3424 (emit_library_call_value_1): Add stack arguments to
3425 CALL_INSN_FUNCTION_USAGE even for pure calls (when
3426 ACCUMULATE_OUTGOING_ARGS).
3427 * dce.c: Include tm_p.h.
3428 (find_call_stack_args): New function.
3429 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
3431 (mark_insn): Call find_call_stack_args for CALL_Ps.
3432 (prescan_insns_for_dce): Walk insns backwards in bb rather than
3433 forwards. Allocate and free arg_stores bitmap if needed, pass it
3434 down to deletable_insn_p, don't mark stores set in arg_stores
3435 bitmap, clear the bitmap at the beginning of each bb.
3436 * Makefile.in (dce.o): Depend on $(TM_P_H).
3438 2009-01-14 Michael Meissner <gnu@the-meissners.org>
3441 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
3442 to make sure the insn is a conditional test (bug 22599). Reformat a
3445 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
3448 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
3449 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
3450 (gloog): Do not call cleanup_tree_cfg.
3451 (graphite_transform_loops): Call cleanup_tree_cfg after all
3452 scops have been code generated.
3454 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
3455 * doc/gty.texi (Invoking the garbage collector): Added new node
3456 and section documenting ggc_collect.
3458 2009-01-14 Richard Guenther <rguenther@suse.de>
3460 PR tree-optimization/38826
3462 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
3463 initialization notes only if we actually emitted a warning.
3464 (intra_create_variable_infos): Add constraints for a result decl
3465 that is passed by hidden reference.
3466 (build_pred_graph): Mark all related variables non-direct on
3469 2009-01-14 Nick Clifton <nickc@redhat.com>
3471 * ira-conflicts.c: Include addresses.h for the definition of
3473 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
3474 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
3476 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
3479 * Makefile.in (ira-lives.o): Add except.h.
3481 * ira-lives.c: Include except.h.
3482 (process_bb_node_lives): Process can_throw_internal.
3484 2009-01-13 Jakub Jelinek <jakub@redhat.com>
3486 PR rtl-optimization/38774
3487 * combine.c (simplify_set): When undoing cc_use change, don't do
3488 PUT_CODE on the newly created comparison, but instead put back the
3491 2009-01-13 Joseph Myers <joseph@codesourcery.com>
3493 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
3494 values. Remove duplicate arm8 entry.
3496 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
3498 PR tree-optimization/38786
3499 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
3500 the SSA_NAME case of expand_scalar_variables_expr.
3501 Set the type of an expression to the type of its assign statement.
3502 (expand_scalar_variables_expr): Also gather the scalar computation
3503 used to index the memory access. Do not pass loop_p.
3504 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
3505 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
3506 the gimple_stmt_iterator where it inserts new code.
3508 (copy_bb_and_scalar_dependences): Do not pass loop_p.
3509 (translate_clast): Update call to copy_bb_and_scalar_dependences.
3511 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
3513 * graphite.h (debug_value): Removed.
3514 * graphite.c (debug_value): Removed.
3516 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
3518 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
3519 ldrd/strd with two 32-bit instructions.
3521 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
3523 * config/arm/arm.c (struct processors): Pass for speed down into
3524 cost helper functions.
3525 (const_ok_for_op): Handle COMPARE and inequality nodes.
3526 (arm_rtx_costs_1): Rewrite.
3527 (arm_size_rtx_costs): Update prototype.
3528 (arm_rtx_costs): Pass speed down to helper functions.
3529 (arm_slowmul_rtx_costs): Rework cost calculations.
3530 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
3531 (arm_9e_rtx_costs): Likewise.
3533 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
3535 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
3536 relocations of local symbols wider than UNITS_PER_WORD are not valid.
3537 (alpha_legitimize_address): Do not split local symbols wider than
3538 UNITS_PER_WORD into HIGH/LO_SUM parts.
3540 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
3543 * gcc.c (process_command): Replace call to execvp with calls
3544 to pex_one and exit.
3546 2009-01-03 Anatoly Sokolov <aesok@post.ru>
3549 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
3550 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
3551 variant for devices with 3-byte PC.
3552 (__tablejump_elpm__): New.
3554 2009-01-12 Jakub Jelinek <jakub@redhat.com>
3557 * c-parser.c (c_parser_postfix_expression): Allow `->' in
3558 offsetof member-designator, handle it as `[0].'.
3560 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3562 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
3563 function when not using named sections on targets with named sections
3564 if branch distance is less than 262132.
3566 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
3568 * combine.c (combine_instructions): Recompute
3569 optimize_this_for_speed_p for each BB in the main combine loop.
3571 2009-01-12 Tomas Bily <tbily@suse.cz>
3574 * tree-loop-distribution.c (prop_phis): New function.
3575 (generate_builtin): Call prop_phis.
3576 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
3578 2009-01-12 Jakub Jelinek <jakub@redhat.com>
3580 PR tree-optimization/38807
3581 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
3582 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
3584 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
3586 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
3587 subreg of op0 to the original op0.
3589 2009-01-11 Laurent GUERBY <laurent@guerby.net>
3591 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
3593 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
3596 * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
3597 starting with digits.
3599 2009-01-10 Jakub Jelinek <jakub@redhat.com>
3602 * config/arm/arm.c (arm_is_long_call_p): Don't call
3603 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
3605 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
3607 * regrename.c (regrename_optimize): Fix dumping.
3608 (find_oldest_value_reg): Preserve REG_POINTER.
3609 (copy_hardreg_forward_1): Likewise.
3611 2009-01-09 Diego Novillo <dnovillo@google.com>
3613 * gimple.h (struct gimple_statement_base) <uid>: Document
3614 the restrictions on its use.
3616 (gimple_set_uid): Tidy.
3618 2009-01-09 Jakub Jelinek <jakub@redhat.com>
3620 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
3621 zero guard even if align_bytes != 0 and count is smaller than
3624 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
3626 PR rtl-optimization/38495
3627 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
3628 (add_range_and_copies_from_move_list): Print all added ranges.
3629 Add ranges to memory optimized destination.
3631 2009-01-09 Jakub Jelinek <jakub@redhat.com>
3635 * config/i386/i386.c (override_options): Reject
3636 -mstringop-strategy=rep_8byte with -m32.
3637 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
3638 to 1. Do count comparison against epilogue_size_needed at compile
3639 time even when count_exp was constant forced into register. For
3640 size_needed don't jump to epilogue, instead just avoid aligning
3641 and invoke the body algorithm. If need_zero_guard, add zero guard
3642 even if count is non-zero, but smaller than size_needed + number of
3643 bytes that could be stored for alignment.
3644 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
3645 to 1. If need_zero_guard, add zero guard even if count is non-zero,
3646 but smaller than size_needed + number of bytes that could be stored
3647 for alignment. Compare size_needed with epilogue_size_needed instead
3648 of desired_align - align, don't adjust size_needed, pass
3649 epilogue_size_needed to the epilogue expanders.
3652 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
3654 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3656 * pa.c (last_address): Change to unsigned.
3657 (update_total_code_bytes): Change argument to unsigned. Don't
3658 check if insn addresses are set.
3659 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
3660 addresses are not set.
3661 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
3663 2009-01-09 Nick Clifton <nickc@redhat.com>
3665 * config/sh/symbian.c: Replace uses of DECL_INLINE with
3666 DECL_DECLARED_INLINE_P.
3668 2009-01-09 Jakub Jelinek <jakub@redhat.com>
3671 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
3672 GET_MODE (op0) in operand_subword_force calls.
3675 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
3676 fold_convert arg0 operands to TREE_TYPE (op0) first.
3678 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
3680 * params.def (ira-max-conflict-table-size): Decrease default value
3683 2009-01-08 Jakub Jelinek <jakub@redhat.com>
3685 PR tree-optimization/37031
3686 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
3688 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
3689 allocate it using gc instead of heap, use VEC_quick_push instead of
3691 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
3692 instead of heap, use VEC_quick_push instead of VEC_safe_push.
3693 * tree-data-ref.h (struct access_matrix): Change matrix to gc
3694 allocated vector from heap allocated.
3695 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
3696 * tree-loop-linear.c (linear_transform_loops): Allocate nest
3697 vector only after perfect_loop_nest_depth call.
3699 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
3700 Jan Sjodin <jan.sjodin@amd.com>
3702 PR tree-optimization/38559
3703 * graphite.c (debug_value, copy_constraint,
3704 swap_constraint_variables, scale_constraint_variable, ): New.
3705 (get_lower_bound, get_upper_bound): Removed.
3706 (graphite_trans_bb_strip_mine): Clean up this code that works
3707 only for constant number of iterations. Fully copy upper and
3708 lower bound constraints, not only the constant part of them.
3709 * graphite.h (debug_value): Declared.
3711 2009-01-08 Ira Rosen <irar@il.ibm.com>
3713 PR tree-optimization/37194
3714 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
3715 Don't add the cost of cost model guard in prologue to scalar
3716 outside cost in case of known number of iterations.
3718 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
3719 Alan Modra <amodra@bigpond.net.au>
3721 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
3722 non-word-aligned REG+CONST addressing.
3724 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
3727 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
3728 free_after_compilation when outputting a thunk.
3729 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
3730 Do not call free_after_compilation here.
3732 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
3734 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
3735 (ix86_valid_target_attribute_inner_p): Ditto.
3737 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
3739 PR tree-optimization/38492
3740 PR tree-optimization/38498
3741 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
3742 * tree-chrec.h (scev_is_linear_expression): Declared.
3743 * graphite.c (graphite_cannot_represent_loop_niter): New.
3744 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
3745 (graphite_loop_normal_form): Use gcc_assert.
3746 (scan_tree_for_params): Use CASE_CONVERT.
3747 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
3748 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
3749 Use gcc_assert. Discard scops that contain unhandled cases.
3750 (build_scop_conditions): Return a boolean status for unhandled cases.
3751 (strip_mine_profitable_p): Print the loop number, not its depth.
3752 (is_interchange_valid): Pass the depth of the loop nest, don't
3753 recompute it wrongly.
3754 (graphite_trans_bb_block): Same.
3755 (graphite_trans_bb_block): Print tentative of loop blocking.
3756 (graphite_trans_scop_block): Do not print that the loop has been
3758 (graphite_transform_loops): Do not handle scops that contain condition
3761 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
3763 AVX Programming Reference (December, 2008)
3764 * config/i386/avxintrin.h (_mm256_stream_si256): New.
3765 (_mm256_stream_pd): Likewise.
3766 (_mm256_stream_ps): Likewise.
3768 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
3769 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
3770 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
3771 (bdesc_special_args): Add __builtin_ia32_movntdq256,
3772 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
3773 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
3774 (ix86_expand_special_args_builtin): Likewise.
3776 * config/i386/sse.md (AVXMODEDI): New.
3777 (avx_movnt<mode>): Likewise.
3778 (avx_movnt<mode>): Likewise.
3779 (<sse>_movnt<mode>): Remove AVX support.
3780 (sse2_movntv2di): Likewise.
3782 2009-01-07 Richard Guenther <rguenther@suse.de>
3785 * fold-const.c (extract_muldiv): Remove obsolete comment.
3786 (fold_plusminus_mult_expr): Undo MINUS_EXPR
3787 to PLUS_EXPR canonicalization for the canonicalization.
3789 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
3791 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
3792 hosted cross-compilers generating less efficient code.
3794 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3796 * function.h (rtl_data): Add a dbr_scheduled_p field.
3797 * reorg.c (dbr_schedule): Set it.
3798 (gate_handle_delay_slots): Check it.
3799 * config/mips/mips.c (mips_base_delayed_branch): Delete.
3800 (mips_reorg): Check flag_delayed_branch instead of
3801 mips_base_delayed_branch.
3802 (mips_override_options): Don't set mips_base_delayed_branch
3803 or flag_delayed_branch.
3805 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3807 PR rtl-optimization/38426.
3808 * ira.c (ira): Set current_function_is_leaf earlier.
3810 2009-01-06 Jakub Jelinek <jakub@redhat.com>
3812 PR rtl-optimization/38722
3813 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
3814 too early, only set a flag and modify after last possible
3817 2009-01-06 Janis Johnson <janis187@us.ibm.com>
3820 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
3821 * real.c (decimal_single_format): Correct values of emin and emax.
3822 (decimal_double_format): Ditto.
3823 (decimal_quad_format): Ditto.
3824 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
3825 computation of DECnn_MIN and DECnn_MAX for corrected values of
3826 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
3827 __DECnn_MIN__, and adjust its computation for the corrected value
3830 2009-01-06 Jan Hubicka <jh@suse.cz>
3833 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
3835 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
3837 * doc/contrib.texi (Contributors): Slightly adjust the end note.
3838 Add Robert Clark to the list of testers.
3840 2009-01-06 Jan Hubicka <jh@suse.cz>
3841 Kai Tietz <kai.tietz@onevision.com>
3843 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
3844 * config/i386/i386.c (ix86_expand_call): Add clobbers.
3846 2009-01-06 Jan Hubicka <jh@suse.cz>
3847 Kai Tietz <kai.tietz@onevision.com>
3849 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
3851 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
3852 (ix86_nsaved_regs): Count only general purpose regs.
3853 (ix86_nsaved_sseregs): New.
3854 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
3855 to 16 for w64; compute padding and size of sse reg save area.
3856 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
3857 general purpose regs.
3858 (ix86_emit_save_sse_regs_using_mov): New.
3859 (ix86_expand_prologue): Save SSE regs if needed.
3860 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
3861 (ix86_emit_restore_sse_regs_using_mov): New.
3862 (ix86_expand_epilogue): Save SSE regs if needed.
3864 2009-01-06 Jan Hubicka <jh@suse.cz>
3865 Kai Tietz <kai.tietz@onevision.com>
3867 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
3868 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
3869 functions when accumulate outgoing args is off.
3871 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
3874 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
3875 before using pseudos_have_intersected_live_ranges_p.
3877 * ira-int.h (ira_assert): Always define.
3879 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
3881 AVX Programming Reference (December, 2008)
3882 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
3883 (_mm256_permute2_pd): Likewise.
3884 (_mm_permute2_ps): Likewise.
3885 (_mm256_permute2_ps): Likewise.
3886 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
3887 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
3889 * config/i386/i386.c (ix86_builtins): Remove
3890 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
3891 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
3892 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
3893 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
3894 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
3895 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
3896 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
3897 __builtin_ia32_vpermil2ps256.
3898 (ix86_init_mmx_sse_builtins): Updated.
3899 (ix86_expand_args_builtin): Likewise.
3901 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3903 * pa.c (output_call): Relocate non-jump insns in the delay slot of
3904 long absolute calls when generating PA 2.0 code.
3906 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
3908 PR rtl-optimization/38583
3909 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
3911 * params.def (ira-max-conflict-table-size): New.
3913 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
3915 * ira.h (ira_conflicts_p): New external definition.
3917 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
3918 table. Report this. Return result of building.
3919 (ira_build_conflicts): Use ira_conflicts_p. Check result of
3920 building conflict table.
3922 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
3923 (ira_color): Use ira_conflicts_p.
3925 * global.c: Include ira.h.
3926 (pseudo_for_reload_consideration_p, build_insn_chain): Use
3929 * Makefile.in (global.o): Add ira.h.
3931 * ira-build.c (mark_all_loops_for_removal,
3932 propagate_some_info_from_allocno): New.
3933 (remove_unnecessary_allocnos): Call
3934 propagate_some_info_from_allocno.
3935 (remove_low_level_allocnos): New.
3936 (remove_unnecessary_regions): Add parameter. Call
3937 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
3938 parameter to remove_unnecessary_regions.
3939 (ira_build): Remove all regions but root if the conflict table was
3940 not built. Update conflict hard regs for allocnos crossing calls.
3942 * ira.c (ira_conflicts_p): New global.
3943 (ira): Define and use ira_conflicts_p.
3945 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
3946 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
3947 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
3949 2009-01-06 Ben Elliston <bje@au.ibm.com>
3951 * gengtype-lex.l (YY_NO_INPUT): Define.
3953 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3956 * c-common.c (handle_vector_size_attribute): Also reject
3959 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
3961 PR tree-optimization/38492
3962 * graphite.c (rename_map_elt, debug_rename_elt,
3963 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
3964 rename_map_elt_info, eq_rename_map_elts,
3965 get_new_name_from_old_name, bb_in_sese_p): Moved around.
3966 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
3967 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
3968 (sese_build_livein_liveouts): New.
3969 (new_sese, free_sese): New.
3970 (new_scop): Call new_sese.
3971 (free_scop): Call free_sese.
3972 (rename_variables_from_edge, rename_phis_end_scop): Removed.
3973 (register_old_new_names): Renamed register_old_and_new_names.
3974 (register_scop_liveout_renames, add_loop_exit_phis,
3975 insert_loop_close_phis, struct igp,
3976 default_liveout_before_guard, add_guard_exit_phis,
3977 insert_guard_phis, copy_renames): New.
3978 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
3979 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
3980 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
3981 (scop_adjust_phis_for_liveouts): New.
3982 (gloog): Call scop_adjust_phis_for_liveouts.
3984 * graphite.h (struct sese): Documented. Added fields liveout,
3986 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
3987 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
3988 (struct scop): Added field liveout_renames.
3989 (SCOP_LIVEOUT_RENAMES): New.
3991 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
3993 PR tree-optimization/38510
3994 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
3995 (translate_clast): Call recompute_all_dominators before
3997 (gloog): Call recompute_all_dominators before graphite_verify.
3999 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
4000 Jan Sjodin <jan.sjodin@amd.com>
4002 PR tree-optimization/38500
4003 * graphite.c (create_sese_edges): Call fix_loop_structure after
4006 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
4008 * config.gcc: Add m32r*-*-rtems*.
4009 * config/m32r/rtems.h: New file.
4011 2009-01-05 Ben Elliston <bje@au.ibm.com>
4013 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
4014 (.po.pox): Likewise.
4015 (po/gcc.pot): Likewise.
4017 2009-01-04 David S. Miller <davem@davemloft.net>
4019 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
4020 (STARTING_FRAME_OFFSET): Always set to zero.
4022 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
4024 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
4025 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
4026 fixed-point types, and vectors of the same.
4028 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
4030 * config/mips/sync.md (*mb_barrier): Rename to...
4031 (*memory_barrier): ...this.
4033 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4035 * doc/extend.texi (Function Attributes): Move @cindex after @item
4036 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
4037 and put in alphabetical order. Fix 'target' name and put in order.
4038 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
4041 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
4043 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
4044 (memory_barrier): Expand as unspec instead of unspec_volatile.
4045 Remove mem:BLK from insn operands. Use Pmode scratch register.
4046 (*memory_barrier): Define as unspec instead of unspec_volatile.
4047 Use (match_dup 0) as input operand.
4049 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
4050 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
4051 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
4052 scratch register. Remove operand 1.
4053 (*stbar): Define as unspec instead of unspec_volatile.
4054 Use (match_dup 0) as input operand, remove (const_int 8).
4055 (*membar): Define as unspec instead of unspec_volatile.
4056 Use (match_dup 0) as input operand, remove input operand 2.
4058 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
4059 (memory_barrier): Expand as unspec instead of unspec_volatile.
4060 Remove mem:BLK from insn operands. Use Pmode scratch register.
4061 (*memory_barrier): Define as unspec instead of unspec_volatile.
4062 Use (match_dup 0) as input operand.
4064 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
4065 Remove mem:BLK from insn operands. Use Pmode scratch register.
4066 Set volatile flag on operand 0.
4067 (*memory_barrier): New insn pattern.
4069 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
4071 (*memory_barrier): Use (match_dup 0) as input operand.
4073 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
4074 Remove mem:BLK from insn operands. Use Pmode scratch register.
4075 Set volatile flag on operand 0.
4076 (*mb_internal): New insn pattern.
4078 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
4080 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
4083 * function.c (struct temp_slot): Move to the section of the file
4084 that deals with temp slots. Remove field 'address'.
4085 (temp_slot_address_table): New hash table of address -> temp slot.
4086 (struct temp_slot_address_entry): New struct, items for the table.
4087 (temp_slot_address_compute_hash, temp_slot_address_hash,
4088 temp_slot_address_eq, insert_temp_slot_address): Support functions
4090 (find_temp_slot_from_address): Rewrite to use the new hash table.
4091 (remove_unused_temp_slot_addresses): Remove addresses of temp
4092 slots that have been made available.
4093 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
4094 worker function for remove_unused_temp_slot_addresses.
4095 (assign_stack_temp_for_type): Don't clear the temp slot address list.
4096 Add the temp slot address to the address -> temp slot map.
4097 (update_temp_slot_address): Update via insert_temp_slot_address.
4098 (free_temp_slots): Call remove_unused_temp_slot_addresses.
4099 (pop_temp_slots): Likewise.
4100 (init_temp_slots): Allocate the address -> temp slot map, or empty
4101 the map if it is already allocated.
4102 (prepare_function_start): Initialize temp slot processing.
4104 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
4107 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
4108 Calculate the size of all stack vars assuming no packing of stack
4109 vars will happen, replacing a quadratic algorithm with a linear one.
4111 2009-01-03 Jakub Jelinek <jakub@redhat.com>
4114 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
4117 2009-01-03 Diego Novillo <dnovillo@google.com>
4119 * doc/contrib.texi: Update contributions.
4121 2009-01-03 Jakub Jelinek <jakub@redhat.com>
4124 * builtins.c (fold_builtin_memory_op): Give up if either operand
4125 is volatile. Set srctype or desttype to non-qualified version
4129 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
4132 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
4134 PR rtl-optimization/35805
4135 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
4136 problem if fast dce is able to remove any instructions.
4137 * dce.c (dce_process_block): Fix dump message.
4139 2009-01-02 Mark Mitchell <mark@codesourcery.com>
4142 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
4144 2009-01-02 Jakub Jelinek <jakub@redhat.com>
4147 * tree-flow.h (op_code_prio, op_prio): New prototypes.
4148 * tree-pretty-print.c (op_code_prio): New function.
4149 (op_prio): No longer static. Use op_code_prio.
4150 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
4151 Use op_prio and op_code_prio to determine if () should be
4152 printed around operand(s) or not.
4154 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
4155 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
4156 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
4157 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
4158 pp_character instead of pp_string for single letter printing.
4160 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4162 * doc/extend.texi: Fix '#pragma GCC option' typo.
4164 2009-01-02 Richard Guenther <rguenther@suse.de>
4166 * doc/install.texi (--enable-checking): Mention different
4168 (--enable-stage1-checking): Document.
4170 2009-01-01 Andrew Pinski <pinskia@gmail.com>
4173 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
4174 case to be an error.
4176 2009-01-02 Ben Elliston <bje@au.ibm.com>
4178 * config/fp-bit.h (pack_d): Constify argument.
4179 * config/fp-bit.c (makenan): Constify return type. Remove casts.
4180 (isnan): Constify argument.
4184 (_fpadd_parts): Constify return type.
4185 (_fpmul_parts): Likewise.
4186 (_fpdiv_parts): Likewise.
4188 2009-01-01 Jakub Jelinek <jakub@redhat.com>
4191 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
4192 warn about overwriting initializer with side-effects or
4193 -Woverride-init if !IMPLICIT.
4194 (output_init_element): Likewise. Pass IMPLICIT down to
4196 (process_init_element): Add IMPLICIT argument. Pass it down
4197 to output_init_element.
4198 (push_init_element, pop_init_level, set_designator): Adjust
4199 process_init_element callers.
4200 (set_nonincremental_init, set_nonincremental_init_from_string):
4201 Adjust add_pending_init callers.
4202 (output_pending_init_elements): Adjust output_init_element callers.
4203 * c-tree.h (process_init_element): Adjust prototype.
4204 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
4205 process_init_element callers.