]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
PR c/35235
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
7666d572 12009-03-30 Joseph Myers <joseph@codesourcery.com>
2
3 PR c/35235
4 * c-typeck.c (build_component_ref): Do not copy qualifiers from
5 non-lvalue to component.
6
7f5f3953 72009-03-29 Joseph Myers <joseph@codesourcery.com>
8
9 PR preprocessor/34695
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
15 (parse_in).
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
27 override_column.
28 (diagnostic_build_prefix): Check override_column.
29 * diagnostic.h (diagnostic_info): Add override_column field.
30 (diagnostic_override_column): Define.
31
862f468c 322009-03-28 Paolo Bonzini <bonzini@gnu.org>
33
aca60c7b 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.
43
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.
47
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):
58 Move from c-common.h.
59 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
862f468c 60
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.
66
aca60c7b 67 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
68 instead of DECL_STMTs.
862f468c 69
a75b1c71 702009-03-29 Joseph Myers <joseph@codesourcery.com>
71
72 PR c/456
73 PR c/5675
74 PR c/19976
75 PR c/29116
76 PR c/31871
77 PR c/35198
78 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
79 void_type_node.
80 (fold_call_expr): Return a NOP_EXPR from folding rather than the
81 contained expression.
aca60c7b 82 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
a75b1c71 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
aca60c7b 86 decl_constant_value_for_broken_optimization in c-typeck.c. Check
a75b1c71 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
111 return value.
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
115 return value.
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):
156 Update prototypes.
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
189 warnings.
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
215 designators.
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
aca60c7b 227 ensure statement expression is not evaluated in constant expression.
a75b1c71 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
231 in_late_binary_op.
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
237 initializers.
238
088cc5d5 2392009-03-29 Richard Guenther <rguenther@suse.de>
240
241 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
242 propagate addresses of array references.
243
68e09621 2442009-03-29 Steven Bosscher <steven@gcc.gnu.org>
245
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.
255
40513f40 2562009-03-29 H.J. Lu <hongjiu.lu@intel.com>
257
258 PR target/39545
259 * config/i386/i386.c (classify_argument): Ignore flexible array
260 member in struct and warn ABI change.
261
0d3a7d37 2622009-03-29 H.J. Lu <hongjiu.lu@intel.com>
263
264 * config/i386/i386-protos.h (ix86_agi_dependent): New.
265
266 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
267 (ix86_adjust_cost): Updated.
268
4c5fcca6 2692009-03-29 Jan Hubicka <jh@suse.cz>
270
271 PR middle-end/28850
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.
aca60c7b 286 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4c5fcca6 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.
292
b8c0c866 2932009-03-29 Jan Hubicka <jh@suse.cz>
294
295 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
296 for removed regions.
297
bb22691b 2982009-03-29 Jan Hubicka <jh@suse.cz>
299
300 * except.c (dump_eh_tree): Dump all datastructures.
301
cd451a8b 3022009-03-29 Jan Hubicka <jh@suse.cz>
303
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.
310
ffa800d1 3112009-03-29 Jan Hubicka <jh@suse.cz>
312
313 * bitmap.c (bitmap_last_set_bit): New function.
314 * bitmap.h (bitmap_last_set_bit): Declare.
315
1cf4a36a 3162009-03-29 David Ayers <ayers@fsfe.org>
317
318 PR objc/27377
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.
322
3232009-03-29 Adam Nemet <anemet@caviumnetworks.com>
69428266 324
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.
331
d093f898 3322009-03-29 Ben Elliston <bje@au.ibm.com>
333
334 PR target/32542
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.
338
df6a567a 3392009-03-29 Ben Elliston <bje@au.ibm.com>
340
341 PR target/30451
342 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
343 load and store attributes.
344
29c63a97 3452009-03-29 Ben Elliston <bje@au.ibm.com>
346
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.
352
ec4b52e7 3532009-03-28 Anatoly Sokolov <aesok@post.ru>
354
355 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
356 atmega8m1 devices.
357 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
358 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
359
43fb76c1 3602009-03-28 Xinliang David Li <davidxl@google.com>
361
362 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
363 (do_dbg_cnt): New function.
364
b5cebd44 3652009-03-28 Jan Hubicka <jh@suse.cz>
366
367 Merge from pretty-ipa:
368
369 2009-03-27 Jan Hubicka <jh@suse.cz>
aca60c7b 370
b5cebd44 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.
379
380 2008-11-12 Jan Hubicka <jh@suse.cz>
381
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;
386 dump diagnostics.
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.
390 (check_stmt): New.
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.
aca60c7b 403
1c4607fd 4042009-03-28 Martin Jambor <mjambor@suse.cz>
405
406 * fold-const.c (get_pointer_modulus_and_residue): New parameter
407 allow_func_align.
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.
413
b0d29d1c 4142009-03-28 Jan Hubicka <jh@suse.cz>
415
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.
421
bf4a1edf 4222009-03-28 Jakub Jelinek <jakub@redhat.com>
423
69dfb43a 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
427 __bool.
428
bf4a1edf 429 PR c++/39554
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.
439
c256d781 4402009-03-28 Richard Guenther <rguenther@suse.de>
441
442 PR tree-optimization/38723
443 * tree-ssa-pre.c (compute_avail): Add all default definitions to
444 the entry block.
445
74a5c8eb 4462009-03-28 Jan Hubicka <jh@suse.cz>
447
448 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
449 test introduced by my previous patch.
450
59ce9604 4512009-03-28 Richard Guenther <rguenther@suse.de>
452
453 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
454 the PHIs value undefined.
455
6cb239e5 4562009-03-28 Jan Hubicka <jh@suse.cz>
457
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.
464
aeb38861 4652009-03-28 Richard Guenther <rguenther@suse.de>
466
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.
470
8edeb88b 4712009-03-28 Richard Guenther <rguenther@suse.de>
472
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.
480
09fc9532 4812009-03-28 Jan Hubicka <jh@suse.cz>
482
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.
493
326a9581 4942009-03-28 Jan Hubicka <jh@suse.cz>
495
496 Bring from lto-branch:
aca60c7b 497
326a9581 498 2008-09-03 Doug Kwan <dougkwan@google.com>
499
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
514 reason string.
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
531 for text output.
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.
536 (cgraph.o): Ditto.
537
77b5eabc 5382009-03-28 Jan Hubicka <jh@suse.cz>
539
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.
547
cc76f102 5482009-03-28 Jan Hubicka <jh@suse.cz>
549
550 * cgraph.c (cgraph_function_body_availability): Functions declared
551 inline are always safe to assume that it is not going to be replaced.
552
63295314 5532009-03-28 Richard Guenther <rguenther@suse.de>
554
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.
560
d360ad90 5612009-03-28 Richard Guenther <rguenther@suse.de>
562
563 PR tree-optimization/38968
564 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
565 Use FLOOR_MOD_EXPR to compute misalignment.
566
c82f3b60 5672009-03-28 Richard Guenther <rguenther@suse.de>
568
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
573 comparisons.
574 (ifcombine_iforif): Use combine_comparisons.
575
a5bfef5b 5762009-03-28 Jan Hubicka <jh@suse.cz>
577
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.
591
f2397fc4 5922009-03-28 Joseph Myers <joseph@codesourcery.com>
593
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,
601 sys-types.h: Remove.
602 * Makefile.in: Remove protoize and fixproto support and references
603 in comments.
604 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
605 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
606 Remove.
607 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
608 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
609 unprotoize$(exeext).
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.
652
08ed847d 6532009-03-27 Vladimir Makarov <vmakarov@redhat.com>
654
655 * genautomata.c: Add a new year to the copyright. Add a new
656 reference.
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.
663
664 * rtl.def (define_bypass): Describe bypass choice.
665 * doc/md.texi (define_bypass): Ditto.
666
8e353ea6 6672009-03-27 Richard Guenther <rguenther@suse.de>
668
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.
674
6752009-03-27 Richard Guenther <rguenther@suse.de>
676
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
686 TREE_ADDRESSABLE.
687 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
688 (gimplify_modify_expr_to_memcpy): Mark source and destination
689 addressable.
690 * omp-low.c (create_omp_child_function): Mark the object decl
691 TREE_ADDRESSABLE.
692 (lower_rec_input_clauses): Mark the var we take the address of
693 TREE_ADDRESSABLE.
694 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
695
16fe3089 6962009-03-27 H.J. Lu <hongjiu.lu@intel.com>
697
698 PR middle-end/39315
699 * cfgexpand.c (expand_one_stack_var_at): Change alignment
700 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
701
9d1d1fab 7022009-03-27 Richard Guenther <rguenther@suse.de>
703
704 PR tree-optimization/39120
705 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
706 constraints.
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.
714
7152009-03-27 Richard Guenther <rguenther@suse.de>
716
717 PR tree-optimization/39120
718 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
719 as a representative.
720 (solve_graph): Do propagate CALLUSED.
721 (handle_pure_call): Use a scalar constraint from CALLUSED for
722 the return value.
723 (find_what_p_points_to): CALLUSED shall not appear in poins-to
724 solutions.
725
7cfdc2f0 7262009-03-27 H.J. Lu <hongjiu.lu@intel.com>
727
728 PR c/39323
729 * c-common.c (handle_aligned_attribute): Properly check alignment
730 overflow. Use (1U << i) instead of (1 << i).
731
aca60c7b 732 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
7cfdc2f0 733
734 * expr.h (get_mem_align_offset): Updated.
735
736 * tree.h (tree_decl_common): Change align to "unsigned int" and
737 move it before pointer_alias_set.
738
3f863bef 7392009-03-27 H.J. Lu <hongjiu.lu@intel.com>
740 Jakub Jelinek <jakub@redhat.com>
741
742 PR target/38034
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.
747
9680c846 7482009-03-27 H.J. Lu <hongjiu.lu@intel.com>
749
750 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
751 (true_regnum): Likewise.
752
753 * rtlanal.c (subreg_info): Moved to ...
754 * rtl.h (subreg_info): Here. New.
755 (subreg_get_info): New.
756
757 * rtlanal.c (subreg_get_info): Make it extern.
758
0e4d11df 7592009-03-27 H.J. Lu <hongjiu.lu@intel.com>
760
761 PR target/39472
762 * config/i386/i386.c (ix86_abi): New.
763 (override_options): Handle -mabi=.
aca60c7b 764 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
0e4d11df 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.
aca60c7b 776 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
0e4d11df 777 (ix86_function_type_abi): Return enum calling_abi. Rewrite
778 for 64bit. Replace DEFAULT_ABI with ix86_abi.
aca60c7b 779 (ix86_function_abi): Make it static and return enum calling_abi.
0e4d11df 780 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
781 with ix86_abi.
782 (ix86_fn_abi_va_list): Updated.
783
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.
789
790 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
791 with ix86_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.
795
796 * config/i386/i386.opt (mabi=): New.
797
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.
802
803 * doc/invoke.texi: Document -mabi= option for x86.
804
656ec810 8052009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
806
807 * builtins.c (real_dconstp): Delete.
808 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
809
cb3582e7 8102009-03-27 Dodji Seketeli <dodji@redhat.com>
811 Jakub Jelinek <jakub@redhat.com>
812
813 PR debug/37959
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.
821
38150ede 8222009-03-27 Jakub Jelinek <jakub@redhat.com>
823
3f95c690 824 * builtins.c (fold_builtin_memory_op): Optimize memmove
825 into memcpy if we can prove source and destination don't overlap.
826
38150ede 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.
832
08da3d21 8332009-03-27 Mark Mitchell <mark@codesourcery.com>
834
835 * BASE-VER: Change to 4.5.0.
836
e19b015b 8372009-03-27 Xinliang David Li <davidxl@google.com>
838
839 PR tree-optimization/39557
840 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
841
b87f0847 8422009-03-27 Xinliang David Li <davidxl@google.com>
843
844 PR tree-optimization/39548
845 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
846 candidate check.
847
545ba0d7 8482009-03-27 H.J. Lu <hongjiu.lu@intel.com>
849
850 * c-common.c (pointer_int_sum): Use %wd on return from
851 tree_low_cst.
852
482c9a19 8532009-03-27 H.J. Lu <hongjiu.lu@intel.com>
854
855 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
856 on return from tree_low_cst.
857
1f1d68a6 8582009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
859
860 PR c++/36799
aca60c7b 861 * ginclude/stdarg.h (va_copy): Define also for
862 __GXX_EXPERIMENTAL_CXX0X__.
1f1d68a6 863
d924b670 8642009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
865
866 PR c++/35652
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.
872
1ab73152 8732009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
874
d924b670 875 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
876 markup glitch.
1ab73152 877
f4858d06 8782009-03-26 Jakub Jelinek <jakub@redhat.com>
879
880 PR c++/39554
881 * opts.c (warn_if_disallowed_function_p): Don't assume
882 get_callee_fndecl must return non-NULL.
883
d9cee1b1 8842009-03-26 Vladimir Makarov <vmakarov@redhat.com>
885
886 PR rtl-optimization/39522
887 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
888 when reg_reloaded_valid is set.
889
204cb876 8902009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
891
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.
895
1fd36c3a 8962009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
897
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.
900
dc9b0799 9012009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
902
903 PR target/39523
904 * config/sh/sh.c (calc_live_regs): Fix condition for global
905 registers except PIC_OFFSET_TABLE_REGNUM.
906
6609be22 9072009-03-25 Kai Tietz <kai.tietz@onevision.com>
908
909 PR/39518
910 * doc/invoke.texi (-mconsole): New.
911 (-mcygwin): New.
912 (-mno-cygwin): New.
913 (-mdll): New.
914 (-mnop-fun-dllimport): New.
915 (-mthread): New.
916 (-mwin32): New.
917 (-mwindows): New.
918 (sub section "i386 and x86-64 Windows Options"): New.
919
2ccb7f3f 9202009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
921
922 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
923 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
924
5211387e 9252009-03-25 Richard Guenther <rguenther@suse.de>
926
927 PR middle-end/39497
928 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
929 of -Wno-error.
930
686d79e0 9312009-03-25 Andrey Belevantsev <abel@ispras.ru>
932
933 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
934 neither of haifa/selective schedulers are working.
935
850fc3f0 9362009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
937
938 * doc/invoke.texi (Debugging Options): Fix description of
939 -fno-merge-debug-strings.
940
10178ded 9412009-03-24 Hans-Peter Nilsson <hp@axis.com>
942
d1640684 943 * config/cris/libgcc.ver: New version-script.
944 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
945
10178ded 946 * configure.ac <GAS features, nop mnemonic>: Add pattern
947 crisv32-*-* for "nop".
aca60c7b 948 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
10178ded 949 * configure: Regenerate.
950
416dafb3 9512009-03-24 Ira Rosen <irar@il.ibm.com>
952
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
956 pointer.
957
68ecbaec 9582009-03-24 Arthur Loiret <aloiret@debian.org>
959
aca60c7b 960 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
68ecbaec 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.
967
f8873a45 9682009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
969
970 * config/m68k/t-rtems: Add m5329 multilib.
971
ab977c1f 9722009-03-24 Dodji Seketeli <dodji@redhat.com>
973 Jakub Jelinek <jakub@redhat.com>
974
975 PR debug/39524
976 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
977 nodes.
978
4390875c 9792009-03-23 Jakub Jelinek <jakub@redhat.com>
980
981 PR c/39495
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.
985
9fac1c66 9862009-03-23 Richard Guenther <rguenther@suse.de>
987
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.
994
b7d1c9e6 9952009-03-23 Jakub Jelinek <jakub@redhat.com>
996
997 PR tree-optimization/39516
998 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
999
f824d860 10002009-03-23 Bingfeng Mei <bmei@broadcom.com>
1001
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
1004
f8cf5d4c 10052009-03-22 Hans-Peter Nilsson <hp@axis.com>
1006
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.
1010
8898b2ef 10112009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1012
1013 * doc/extend.texi (Function Attributes, Variable Attributes):
1014 Fix typos.
1015 * doc/invoke.texi (Debugging Options, Optimize Options)
1016 (i386 and x86-64 Options, MCore Options): Likewise.
1017
4b1ab129 10182009-03-20 Jakub Jelinek <jakub@redhat.com>
1019
1020 PR debug/37890
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.
1024
e060ba36 10252009-03-19 Jakub Jelinek <jakub@redhat.com>
1026
1027 PR c/39495
1028 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
1029 minimum or maximum value.
1030
42f43a38 10312009-03-19 Alexandre Oliva <aoliva@redhat.com>
1032
1033 * reginfo.c (globalize_reg): Recompute derived reg sets.
1034
76d89866 10352009-03-19 Ozkan Sezer <sezeroz@gmail.com>
1036
1037 PR target/39063
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.
1041
99198add 10422009-03-19 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR target/39496
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
1048 conventions.
1049
63ca8934 10502009-03-19 Li Feng <nemokingdom@gmail.com>
1051
1052 PR middle-end/39500
1053 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
1054 dependence if the first conflict is after niter iterations.
1055
c5fe58d7 10562009-03-19 Hans-Peter Nilsson <hp@axis.com>
1057
1058 PR middle-end/38609
1059 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
1060 functions with dynamic stack-pointer adjustments.
1061
d4669bca 10622009-03-19 Ben Elliston <bje@au.ibm.com>
1063
1064 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
1065 option; change to -msdata=data.
1066
286c29e2 10672009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1068
1069 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
1070 and -fopenmp.
1071
0e55c4d0 10722009-03-18 Eric Botcazou <ebotcazou@adacore.com>
1073
1074 PR target/35180
1075 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
1076
5de57ebe 10772009-03-18 Sandra Loosemore <sandra@codesourcery.com>
1078
1079 * doc/invoke.texi (Code Gen Options): Expand discussion of
1080 -fno-common.
1081
0ac758f7 10822009-03-18 Jakub Jelinek <jakub@redhat.com>
1083
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.
1095
f24ccada 1096 PR debug/39485
1097 * function.c (use_register_for_decl): When not optimizing, disregard
1098 register keyword for variables with types containing methods.
1099
8fa85fc5 11002009-03-18 Sebastian Pop <sebastian.pop@amd.com>
1101
1102 PR middle-end/39447
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.
1106
1107 * tree-vrp.c (search_for_addr_array): Fix formatting.
1108
a39f4102 11092009-03-18 Richard Guenther <rguenther@suse.de>
1110
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.
1115
b8048da5 11162009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1117
fad6b6bb 1118 PR middle-end/37805
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.
1128
b8048da5 1129 Revert
1130 2008-10-14 Jakub Jelinek <jakub@redhat.com>
1131 PR middle-end/37805
1132 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
1133 and -fhelp=separate.
1134
9247818a 11352009-03-17 Jing Yu <jingyu@google.com>
1136
1137 PR middle-end/39378
a3b7452d 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.
9247818a 1141 * varasm.c (assemble_start_function): Change is_thunk from crtl to
1142 cfun.
a3b7452d 1143 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
1144 cfun.
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.
9247818a 1151
d849db06 11522009-03-17 Uros Bizjak <ubizjak@gmail.com>
1153
1154 PR target/39482
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.
1160
31334434 11612009-03-17 Jakub Jelinek <jakub@redhat.com>
1162
169f8686 1163 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
1164 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
1165
4595b0f9 1166 PR debug/39474
1167 * tree-ssa-live.c (remove_unused_locals): Don't remove local
1168 unused non-artificial variables when not optimizing.
1169
157e283b 1170 PR debug/39471
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.
1174
979d3efc 1175 PR middle-end/39443
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.
1182
31334434 1183 PR debug/39412
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
1188 do nothing.
1189
c158ae09 11902009-03-17 Janis Johnson <janis187@us.ibm.com>
1191
1192 PR testsuite/38526
1193 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
1194 its use.
1195 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
1196 (check-parallel-%): Ditto.
1197 (check-consistency): Ditto.
1198
d4138574 11992009-03-17 Kai Tietz <kai.tietz@onevision.com>
1200
1201 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
1202 local variable rhs by NULL_TREE.
1203
dc8c96bb 12042009-03-17 H.J. Lu <hongjiu.lu@intel.com>
1205
1206 PR target/39477
d849db06 1207 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
dc8c96bb 1208
462bc935 12092009-03-17 H.J. Lu <hongjiu.lu@intel.com>
1210
1211 PR target/39476
d849db06 1212 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
462bc935 1213
12142009-03-17 H.J. Lu <hongjiu.lu@intel.com>
4543b422 1215
1216 PR target/39473
1217 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
1218 for ms->sysv ABI calls only in 64bit mode.
1219
1220 * config/i386/i386.md (untyped_call): Support 32bit.
1221
ff8d1746 12222009-03-16 H.J. Lu <hongjiu.lu@intel.com>
1223
1224 * doc/extend.texi: Replace x86_65 with x86_64.
1225
1095b81d 12262009-03-16 Jakub Jelinek <jakub@redhat.com>
1227
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.
1232
15d6a8ce 12332009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
1234
1235 * config/picochip/picochip.c: Removed profiling support.
1236 * config/picochip/picochip.md: Removed profiling instruction.
1237 * config/picochip/picochip.h: Removed profiling builtin.
1238
5bc96548 12392009-03-16 Joseph Myers <joseph@codesourcery.com>
1240
1241 * doc/install.texi (--with-host-libstdcxx): Document.
1242
7846db34 12432009-03-14 Anatoly Sokolov <aesok@post.ru>
1244
1245 PR target/34299
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.
1253
6026d749 12542009-03-14 Jakub Jelinek <jakub@redhat.com>
1255
1256 PR bootstrap/39454
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.
1263
747c6be5 12642008-03-13 Catherine Moore <clm@codesourcery.com>
1265
d849db06 1266 * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
747c6be5 1267 diagnostic.h with $(DIAGNOSTIC_H).
1268
1f477a18 12692008-03-12 Jakub Jelinek <jakub@redhat.com>
1270
1271 PR target/39431
1272 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
1273 predicate.
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
1277 into a register.
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.
1281
7e17a1bf 12822009-03-12 H.J. Lu <hongjiu.lu@intel.com>
1283
1284 PR target/39445
d849db06 1285 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
7e17a1bf 1286
01a3edef 12872009-03-12 H.J. Lu <hongjiu.lu@intel.com>
1288
1289 PR target/39327
1290 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
1291 (avx_addsubv4df3): Likewise.
1292 (*avx_addsubv4sf3): Likewise.
1293 (sse3_addsubv4sf3): Likewise.
1294
57183b55 12952009-03-12 H.J. Lu <hongjiu.lu@intel.com>
1296
1297 PR target/38824
d849db06 1298 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
57183b55 1299
3b95aad3 13002009-03-12 Vladimir Makarov <vmakarov@redhat.com>
1301
1302 PR debug/39432
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.
1306
8d72495d 13072009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1308
1309 PR target/39181
1310 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
1311 of non-integer mode as well.
1312
cf219ecd 13132009-03-11 Adam Nemet <anemet@caviumnetworks.com>
1314
1315 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
1316 for functions for which the parameter types are unknown.
1317
76cbc2a0 13182009-03-11 Jakub Jelinek <jakub@redhat.com>
1319
1320 PR target/39137
d849db06 1321 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
76cbc2a0 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.
1329
18061948 13302009-03-11 Nick Clifton <nickc@redhat.com>
1331
1332 PR target/5362
a37dec0c 1333 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
1334 options.
1335 Add description to mno-lsim option.
1336 * config/mcore/mcore.h: Remove comment about deprecated m4align
1337 option.
1338 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
1339 * doc/invoke.texi: Add description of mno-lsim and
1340 mstack-increment options.
1341
18061948 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.
1345
944017fd 13462009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1347
1348 * fold-const.c (fold_comparison): Only call fold_inf_compare
1349 if the mode supports infinities.
1350
93ef9154 13512009-03-11 Jason Merrill <jason@redhat.com>
1352
1353 PR debug/39086
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
1357 another function.
1358
e927e2b8 13592009-03-10 Richard Guenther <rguenther@suse.de>
1360 Nathan Froyd <froydnj@codesourcery.com>
1361
1362 PR middle-end/37850
d849db06 1363 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
e927e2b8 1364 (__divMODE3): Likewise.
1365
48855189 13662009-03-09 Jakub Jelinek <jakub@redhat.com>
1367
1368 PR tree-optimization/39394
1369 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
1370 DECL_SIZE_UNIT of variable length FIELD_DECLs.
1371
af7eac22 13722009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1373
1374 * recog.c (verfiy_changes): Disallow renaming of hard regs in
1375 inline asms for register asm ("") declarations.
1376
4ce9876e 13772009-03-09 Eric Botcazou <ebotcazou@adacore.com>
1378
1379 * fold-const.c (fold_unary): Fix comment.
1380
928059d5 13812009-03-07 Jan Hubicka <jh@suse.cz>
1382
1383 PR target/39361
0648196e 1384 * tree-inline.c (setup_one_parameter): Do replacement of const
1385 argument by constant in SSA form.
928059d5 1386
c9b50df7 13872009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1388
1389 PR middle-end/38028
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.
1394
ebcb0478 13952009-03-06 Jakub Jelinek <jakub@redhat.com>
1396
82eb5a11 1397 PR middle-end/39360
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.
1403
ebcb0478 1404 PR debug/39372
d849db06 1405 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
ebcb0478 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.
1410
6d92fc03 14112009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1412
aca60c7b 1413 * genpreds.c (needs_variable): Fix parentheses at variable name
6d92fc03 1414 detection.
1415 (write_tm_constrs_h): Indent generated code.
1416
1fe1c6f5 14172009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1418
1419 * doc/extend.texi (Function Attributes): Add documentation
1420 for isr attributes.
1421
5a798e1e 14222009-03-06 Jakub Jelinek <jakub@redhat.com>
1423
1424 PR debug/39387
1425 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
1426 take locus from its DECL_SOURCE_LOCATION instead of input_location.
1427
05f566a9 14282009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
1429
1430 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
1431 the loop as bad.
1432
227f485e 14332009-03-05 Jakub Jelinek <jakub@redhat.com>
1434
1435 PR debug/39379
1436 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
1437 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
1438
a6ccab35 14392009-03-05 Uros Bizjak <ubizjak@gmail.com>
1440
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.
1445 (QI_REG_P): 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.
0d22f439 1449 (ix86_maybe_switch_abi): Ditto.
a6ccab35 1450 (ix86_expand_call): Ditto for clobbered_registers array.
1451 (ix86_hard_regno_mode_ok): Ditto.
1452 (x86_extended_QIreg_mentioned_p): Ditto.
1453
ea138c98 14542009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
1455
a6ccab35 1456 PR tree-optimization/39349
1595fd95 1457 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
1458
ea138c98 1459 * combine.c (gen_lowpart_for_combine): Use omode when generating
1460 clobber.
1461
242753ba 14622009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
1463
a6ccab35 1464 PR rtl-optimization/39235
242753ba 1465 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
1466
7299be85 14672009-03-04 Zdenek Dvorak <ook@ucw.cz>
1468
1469 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
1470
a4c8b601 14712009-03-04 Richard Guenther <rguenther@suse.de>
1472
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.
1476
76610704 14772009-03-04 Zdenek Dvorak <ook@ucw.cz>
1478
1479 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
1480 Extend comments.
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
1484 to simple_iv.
1485 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
1486 Ditto.
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.
1493
f13e5f6d 14942009-03-04 Richard Guenther <rguenther@suse.de>
1495
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.
1500
0cb9a712 15012009-03-04 Richard Guenther <rguenther@suse.de>
1502
1503 PR tree-optimization/39339
1504 * tree-sra.c (try_instantiate_multiple_fields): Make it
1505 no longer ICE on the above.
1506
cfb75cdf 15072009-03-03 Joseph Myers <joseph@codesourcery.com>
1508
1509 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
1510 that fits within Pmode.
1511
838bd0ed 15122009-03-03 Steve Ellcey <sje@cup.hp.com>
1513
1514 PR middle-end/10109
1515 * tm.texi (LIBCALL_VALUE): Update description.
1516
e5e13288 15172009-03-03 Steve Ellcey <sje@cup.hp.com>
1518
1519 PR middle-end/34443
1520 * doc/extend.texi (section): Update description.
1521
463cc256 15222009-03-03 H.J. Lu <hongjiu.lu@intel.com>
1523
1524 PR middle-end/39345
1525 * tree-inline.c (remapped_type): New.
1526 (can_be_nonlocal): Call remapped_type instead of remap_type.
1527
072866b6 15282009-03-03 Jakub Jelinek <jakub@redhat.com>
1529
1530 PR fortran/39354
1531 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
1532 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
1533
b430e8d9 15342009-03-03 Richard Guenther <rguenther@suse.de>
1535
1536 PR middle-end/39272
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.
1545
bc79a76b 15462009-03-03 Jakub Jelinek <jakub@redhat.com>
1547
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.
1551
41c18990 15522009-03-02 Sebastian Pop <sebastian.pop@amd.com>
1553
1554 PR middle-end/39335
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.
1561
32096e82 15622009-03-02 Uros Bizjak <ubizjak@gmail.com>
1563
1564 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
1565 (*call_1_rex64_ms_sysv): Use named constants instead of magic
a6ccab35 1566 numbers to describe clobbered registers.
32096e82 1567 (*call_value_0_rex64_ms_sysv): Ditto.
a6ccab35 1568 * config/i386/mmx.md (mmx_emms): Ditto.
1569 (mmx_femms): Ditto.
32096e82 1570
b8f6667e 15712009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
1572
1573 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
1574 of ABI_64.
1575
a08dfd55 15762009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1577
1578 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
1579 (spu_section_type_flags): New function.
1580
c81d1104 15812009-03-02 Uros Bizjak <ubizjak@gmail.com>
1582
1583 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
1584 reg_class_contents of FLOAT_REGS into a temporary.
1585
ed243388 15862009-03-02 Richard Guenther <rguenther@suse.de>
c81d1104 1587 Ira Rosen <irar@il.ibm.com>
ed243388 1588
1589 PR tree-optimization/39318
1590 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
1591 information to the vectorized statement.
1592
c4bb7475 15932009-03-01 Uros Bizjak <ubizjak@gmail.com>
1594
4d5fae72 1595 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
1596 variable. Use defined names instead of magic constants for REX SSE
1597 registers.
c4bb7475 1598
d2263ebb 15992009-03-01 Richard Guenther <rguenther@suse.de>
1600
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.
1604
4b5d70fd 16052009-03-01 Jan Hubicka <jh@suse.cz>
1606
1607 PR debug/39267
1608 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
1609 BLOCK_NONLOCALIZED_VAR): New macros.
1610 (tree_block): Add nonlocalized_vars.
79283bdc 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.
4b5d70fd 1614 (gen_member_die, gen_type_die_with_usage, force_decl_die,
79283bdc 1615 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
1616 of gen_*.
4b5d70fd 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.
79283bdc 1621 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
1622 vars.
4b5d70fd 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.
1628
9af964d4 16292009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1630
1631 * configure: Regenerate.
1632
a43fd3a5 16332009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1634
e6a03973 1635 * optc-gen.awk: No need to duplicate option flags twice.
d849db06 1636 Reuse help texts for duplicate options which do not have any.
e6a03973 1637
53f9a00b 1638 * gcc.c (display_help): Document --version.
1639
0445c349 1640 * gcc.c (main): If print_help_list and verbose_flag, ensure
1641 driver output comes before subprocess output.
1642
1df76a79 1643 * optc-gen.awk: Assign all remaining fields to help string,
1644 space-separated, for multi-line help in *.opt.
1645
d7381490 1646 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
1647 -Wno-pedantic-ms-format is for MinGW targets only.
1648
a43fd3a5 1649 * doc/options.texi (Option file format): Fix bad indentation,
1650 restoring dropped sentence.
1651
3d280f42 16522009-02-28 Jan Hubicka <jh@suse.cz>
1653
1654 * tree-inline.c (tree_function_versioning): Output debug info.
1655
12e12890 16562009-02-28 Jan Hubicka <jh@suse.cz>
1657
1658 PR debug/39267
1659 * tree-inline.c (setup_one_parameter): Do not copy propagate
1660 arguments when not optimizing.
1661
5e56456b 16622009-02-28 H.J. Lu <hongjiu.lu@intel.com>
1663
1664 PR target/39327
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.
1675
a8305131 16762009-02-28 Jan Hubicka <jh@suse.cz>
1677
1678 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
1679 static vars.
1680 (copy_arguments_for_versioning): If var is declared don't declare it.
1681 (tree_function_versioning): First setup substitutions and then copy
1682 args.
1683
89f29a1b 16842009-02-27 Jan Hubicka <jh@suse.cz>
1685
1686 PR debug/39267
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.
1697
cee43f7e 16982009-02-27 Jan Hubicka <jh@suse.cz>
1699
1700 PR debug/39267
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.
a12d48b6 1709 (gen_block_die): Use is_inlined_entry_point check. Remove body block
1710 code.
cee43f7e 1711 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
1712 * gimplify.c (gimplify_expr): Gimplify body blocks.
a12d48b6 1713 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
1714 block with multiple subblocks.
cee43f7e 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.
1723
74e261f8 17242009-02-27 Sebastian Pop <sebastian.pop@amd.com>
1725
1726 PR middle-end/39308
1727 * graphite.c (graphite_loop_normal_form): Do not call
1728 number_of_iterations_exit from a gcc_assert.
1729
512d9edf 17302009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1731
aca60c7b 1732 * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
512d9edf 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.
1737
f8fff44e 17382009-02-26 Uros Bizjak <ubizjak@gmail.com>
1739
1740 * config/alpha/alpha.h (alpha_expand_mov): Return false if
1741 force_const_mem returns NULL_RTX.
1742
673c690d 17432009-02-26 Jan Hubicka <jh@suse.cz>
1744
1745 PR debug/39267
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.
1756
a330630f 17572009-02-25 H.J. Lu <hongjiu.lu@intel.com>
7216a350 1758
1759 PR rtl-optimization/39241
1760 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
1761 to subreg_offset_representable_p.
1762
1e176869 17632009-02-25 Paolo Bonzini <bonzini@gnu.org>
1764
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.
1771
28efe441 17722009-02-25 Martin Jambor <mjambor@suse.cz>
1773
1774 PR tree-optimization/39259
1775 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
a6ccab35 1776 calls_alloca function flags.
28efe441 1777 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
1778 calls are detected.
1779
e7dd8234 17802009-02-25 Paolo Bonzini <bonzini@gnu.org>
1781
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.
1785
3e0af691 17862009-02-24 Julian Brown <julian@codesourcery.com>
1787
1788 PR target/35965
1789 * config/arm/arm.c (require_pic_register): Only set
1790 cfun->machine->pic_reg once per function.
1791
95e9d9cd 17922009-02-24 Sandra Loosemore <sandra@codesourcery.com>
1793
1794 * doc/invoke.texi (Link Options): Document an easier way to pass
f8fff44e 1795 options that take arguments to the GNU linker using -Xlinker and -Wl.
95e9d9cd 1796
bbe1a1e9 17972009-02-24 Steve Ellcey <sje@cup.hp.com>
1798
1799 PR target/33785
1800 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
1801
dbc4ace1 18022009-02-24 Richard Guenther <rguenther@suse.de>
1803
1804 PR debug/39285
1805 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
1806
29474274 18072009-02-24 Richard Guenther <rguenther@suse.de>
7216a350 1808 Zdenek Dvorak <ook@ucw.cz>
29474274 1809
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.
1813
70c06b9d 18142009-02-23 Sebastian Pop <sebastian.pop@amd.com>
1815
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.
1820
a9d778f8 18212009-02-23 Jason Merrill <jason@redhat.com>
1822
1823 PR c++/38880
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.
1828
8b7d416a 18292009-02-23 Jan Hubicka <jh@suse.cz>
1830
1831 PR c/12245
f8fff44e 1832 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
1833 resizing.
8b7d416a 1834
36267649 18352009-02-23 Jan Hubicka <jh@suse.cz>
1836
f8fff44e 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
36267649 1841 * tree-ssa-live.c (remove_unused_scope_block_p):
1842 Eliminate blocks containig no instructions nor live variables nor
1843 nested blocks.
1844 (dump_scope_block): New function.
1845 (remove_unused_locals): Enable removal of dead blocks by default;
f8fff44e 1846 enable dumping at TDF_DETAILS.
36267649 1847
a330630f 18482009-02-21 H.J. Lu <hongjiu.lu@intel.com>
d9984eae 1849
1850 * config/i386/i386.c (classify_argument): Don't allow COImode
1851 and OImode.
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.
1857
a330630f 18582009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f65f962c 1859
1860 PR target/39261
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.
1864
c08b0c04 18652009-02-21 Sebastian Pop <sebastian.pop@amd.com>
1866
1867 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
1868
c0efe3c3 18692009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
1870
71cca459 1871 PR bootstrap/39257
c0efe3c3 1872 * loop-iv.c: Revert last change.
1873 * emit-rtl.c: Likewise.
1874
a330630f 18752009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6c37e539 1876
1877 PR target/39256
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.
1882
c2c24c89 18832009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
1884
1885 * loop-iv.c (truncate_value): New function.
1886 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
1887 of lowpart_subreg.
1888 (lowpart_subreg): Move to...
1889 * emit-rtl.c: ...here.
1890
59c236cd 18912009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
09869175 1892
59c236cd 1893 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
1894 accidental and undocumented change at revision 140860.
1895
54ad443f 18962009-02-21 Joseph Myers <joseph@codesourcery.com>
1897
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.
1902
fb20d2ee 19032009-02-20 Mark Mitchell <mark@codesourcery.com>
09869175 1904 Joseph Myers <joseph@codesourcery.com>
fb20d2ee 1905
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.
1914
86482d6b 19152009-02-20 Jakub Jelinek <jakub@redhat.com>
1916
1917 PR middle-end/39157
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
1924 parameter.
1925 * loop-invariant.c: Include params.h.
1926 (move_loop_invariants): Don't call move_single_loop_invariants on
1927 very large loops.
1928
9a0cf170 19292009-02-20 Jaka Mocnik <jaka@xlab.si>
1930
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.
1934
4681dd41 19352009-02-20 Jakub Jelinek <jakub@redhat.com>
1936
1937 PR target/39240
1938 * calls.c (expand_call): Clear try_tail_call if caller and callee
1939 disagree in promotion of function return value.
1940
2d9d8740 19412009-02-19 Jakub Jelinek <jakub@redhat.com>
1942
1943 PR target/39175
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
1946 flags.
1947
e3040053 19482009-02-19 H.J. Lu <hongjiu.lu@intel.com>
1949
1950 PR c++/39188
1951 * varasm.c (assemble_variable): Don't check DECL_NAME when
1952 globalizing a variable.
1953
ad0e7a06 19542009-02-19 Joseph Myers <joseph@codesourcery.com>
1955
1956 PR c/38483
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.
1962
a7a2dd08 19632009-02-19 Uros Bizjak <ubizjak@gmail.com>
1964
1965 PR target/39228
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.
1971
c5168a9e 19722009-02-19 Richard Guenther <rguenther@suse.de>
1973
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
a7a2dd08 1979 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
c5168a9e 1980 (build_succ_graph): Add edges from STOREDANYTHING to all
1981 non-direct nodes.
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.
1986
1987 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
1988 field.
1989 (do_ds_constraint): Do not add to special var or non-pointer
1990 field solutions.
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.
1998
f36b5ce0 19992009-02-18 H.J. Lu <hongjiu.lu@intel.com>
2000
2001 PR target/39224
a7a2dd08 2002 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
f36b5ce0 2003
807bf718 20042009-02-18 Jason Merrill <jason@redhat.com>
2005
2006 PR target/39179
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".
2012
f29980e5 20132009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
2014
2015 PR target/38891
2016 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
2017 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
2018
58beda63 20192009-02-17 H.J. Lu <hongjiu.lu@intel.com>
2020
2021 PR target/39082
2022 * c.opt (Wabi): Support C and ObjC.
2023 (Wpsabi): New.
2024
2025 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
2026
2027 * config/i386/i386.c (classify_argument): Warn once about the ABI
2028 change when passing union with long double.
2029
2030 * doc/invoke.texi: Update -Wabi for warning psABI changes.
2031
22d77a94 20322009-02-18 Joseph Myers <joseph@codesourcery.com>
2033
2034 PR c/35447
2035 * c-parser.c (c_parser_compound_statement): Always enter and leave
2036 a scope.
2037
492e3336 20382009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2039
2040 PR target/34587
2041 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
2042
b6eab06c 20432009-02-18 Jakub Jelinek <jakub@redhat.com>
2044
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):
2048 Likewise.
2049
4f0507c2 20502009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
2051
2052 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2053 to 0 for EABI64.
2054
be83ab34 20552009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
2056
2057 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
2058
aa6a48b8 20592009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
2060
2061 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
2062 tree sharing.
2063
0f604f19 20642009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
2065 Richard Sandiford <rdsandiford@googlemail.com>
2066
2067 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
2068 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
2069 (loongson_biadd): ...this.
2070
1ab8a912 20712009-02-17 Richard Guenther <rguenther@suse.de>
2072
2073 PR tree-optimization/39202
2074 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
2075 a var make sure to follow existing collapses.
2076
aa03bd5e 20772009-02-17 Richard Guenther <rguenther@suse.de>
2078
2079 PR middle-end/39214
2080 * langhooks.c (lhd_print_error_function): Check for NULL block.
2081
f46bc821 20822009-02-17 Richard Guenther <rguenther@suse.de>
2083
2084 PR tree-optimization/39204
2085 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
2086 of the PHI arg.
2087
974645ce 20882009-02-17 Uros Bizjak <ubizjak@gmail.com>
2089
2090 * config/soft-fp/double.h: Update from glibc CVS.
2091
7197c469 20922009-02-17 Richard Guenther <rguenther@suse.de>
2093
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.
2097
1646bf33 20982009-02-16 Joseph Myers <joseph@codesourcery.com>
2099
2100 PR c/35446
2101 * c-parser.c (c_parser_braced_init): Call pop_init_level when
2102 skipping until next close brace.
2103
0fb2a998 21042009-02-16 H.J. Lu <hongjiu.lu@intel.com>
2105
2106 PR target/37049
2107 * config/i386/i386.c (ix86_expand_push): Set memory alignment
2108 to function argument boundary.
2109
a1a75b07 21102009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
2111
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.
2116
320084b9 21172009-02-16 Jakub Jelinek <jakub@redhat.com>
2118
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.
2131
fde73de8 21322009-02-15 H.J. Lu <hongjiu.lu@intel.com>
2133
2134 PR target/39196
2135 * config/i386/i386.md: Restrict the new peephole2 to move
2136 between MMX/SSE registers.
2137
b5c49426 21382009-02-15 Richard Guenther <rguenther@suse.de>
2139
2140 Revert
2141 2009-02-13 Richard Guenther <rguenther@suse.de>
2142
2143 * configure.ac: Enable LFS.
2144 * configure: Re-generate.
2145 * config.in: Likewise.
2146
70ca06f8 21472009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2148
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.
2158
c49d20be 21592009-02-13 Steve Ellcey <sje@cup.hp.com>
2160
2161 PR target/38056
2162 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
2163 TARGET_CONST_GP.
2164
c81f43ee 21652009-02-13 H.J. Lu <hongjiu.lu@intel.com>
2166
2167 PR target/39149
2168 * config/i386/i386.c (override_options): Correct warning
a6ccab35 2169 messages for -malign-loops, -malign-jumps and -malign-functions.
c81f43ee 2170
bc0a240f 21712009-02-13 H.J. Lu <hongjiu.lu@intel.com>
2172
2173 PR target/39152
2174 * config/i386/i386.md: Restrict the new peephole2 to move
2175 between the general purpose registers.
2176
79a817bf 21772009-02-13 H.J. Lu <hongjiu.lu@intel.com>
2178
2179 PR target/39162
2180 * config/i386/i386.c (type_natural_mode): Add a new argument.
a7a2dd08 2181 Return the original mode and warn ABI change if vector size is 32byte.
79a817bf 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.
2190
a330630f 21912009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
27440859 2192
2193 * loop-iv.c (implies_p): In the final case, test that operands 0
2194 of the two comparisons match.
2195
462ce619 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.
2199
76549266 22002009-02-13 Richard Guenther <rguenther@suse.de>
2201
2202 * configure.ac: Enable LFS.
2203 * configure: Re-generate.
2204 * config.in: Likewise.
2205
1bbf1c2f 22062009-02-13 Joseph Myers <joseph@codesourcery.com>
2207
2208 PR c/35444
2209 * c-parser.c (c_parser_parms_list_declarator): Discard pending
2210 sizes on syntax error after some arguments have been parsed.
2211
ce2801fe 22122009-02-12 Jakub Jelinek <jakub@redhat.com>
2213
2214 * doc/invoke.texi (-fira): Remove.
2215
ac502adf 22162009-02-12 H.J. Lu <hongjiu.lu@intel.com>
2217
2218 * caller-save.c: Replace regclass.c with reginfo.c in comments.
2219 * recog.c: Likewise.
2220 * rtl.h: Likewise.
2221
8b21beb2 22222009-02-12 Uros Bizjak <ubizjak@gmail.com>
2223
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.
2229
22302009-02-12 H.J. Lu <hongjiu.lu@intel.com>
2231
24200b28 2232 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
2233 soft-fp/t-softfp to tmake_file.
8b21beb2 2234
2235 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
24200b28 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.
8b21beb2 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.
2243
2244 * config/ia64/lib1funcs.asm (__divtf3): Define only if
2245 SHARED is defined.
2246 (__fixtfti): Likewise.
2247 (__fixunstfti): Likewise.
2248 (__floattitf): Likewise.
2249
2250 * config/ia64/libgcc-glibc.ver: New.
2251 * config/ia64/t-fprules-softfp: Likewise.
2252 * config/ia64/sfp-machine.h: Likewise.
2253
2254 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
2255 (LIBGCC2_TF_CEXT): Likewise.
2256 (TF_SIZE): Likewise.
2257 (TARGET_INIT_LIBFUNCS): Likewise.
2258
24200b28 2259 * config/ia64/t-glibc (SHLINB_MAPFILES):
a7a2dd08 2260 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
8b21beb2 2261
cffe3086 22622009-02-12 H.J. Lu <hongjiu.lu@intel.com>
2263
2264 * config/i386/i386.c (construct_container): Rewrite processing
2265 BLKmode with X86_64_SSE_CLASS.
2266
fbfa3312 22672009-02-12 Paolo Bonzini <bonzini@gnu.org>
2268
2269 PR target/39152
2270 * config/i386/i386.md: Replace simplify_replace_rtx with
2271 replace_rtx in the new peephole2.
2272
38b64900 22732009-02-12 Nathan Sidwell <nathan@codesourcery.com>
2274
2275 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
2276 loop unrolling do not happen at -O2.
2277
674ca8bf 22782009-02-12 Michael Matz <matz@suse.de>
2279
2280 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
2281
e1b3cc49 22822009-02-12 Jakub Jelinek <jakub@redhat.com>
2283
2284 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
2285 for -g3.
2286
0fbcd2eb 22872009-02-12 Ben Elliston <bje@au.ibm.com>
2288
2289 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
2290 patterns when updating the back chain. Missed in the 2009-02-10
2291 change.
2292
0e86dff0 22932009-02-11 Janis Johnson <janis187@us.ibm.com>
2294
2295 * doc/extend.texi (Decimal Floating Types): Update identifier of
2296 draft TR and list of missing support.
2297
2a92826d 22982009-02-11 Jakub Jelinek <jakub@redhat.com>
2299
2300 PR middle-end/39154
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.
2304
73c5e2aa 23052009-02-11 Uros Bizjak <ubizjak@gmail.com>
2306 Jakub Jelinek <jakub@redhat.com>
2307
2308 PR target/39118
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.
2318
486a1b16 23192009-02-11 Paolo Bonzini <bonzini@gnu.org>
2320
b899e808 2321 PR target/38824
486a1b16 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.
2325
560db68e 23262009-02-10 Janis Johnson <janis187@us.ibm.com>
2327
2328 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
2329 bulleted lists.
2330
892fdb03 23312009-02-10 Eric Botcazou <ebotcazou@adacore.com>
2332
2333 * alias.h (record_alias_subset): Declare.
2334 * alias.c (record_alias_subset): Make global.
2335
4ef8346d 23362009-02-10 Nick Clifton <nickc@redhat.com>
2337
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.
2341
fc92befb 23422009-02-10 Steve Ellcey <sje@cup.hp.com>
2343
2344 PR c/39084
2345 * c-decl.c (start_struct): Return NULL on error.
2346
e15deb4b 23472009-02-10 Jakub Jelinek <jakub@redhat.com>
2348
16ccc50c 2349 PR middle-end/39124
2350 * cfgloopmanip.c (remove_path): Call remove_bbs after
2351 cancel_loop_tree, not before it.
2352
e15deb4b 2353 PR target/39139
73c5e2aa 2354 * function.h (struct function): Add has_local_explicit_reg_vars bit.
e15deb4b 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.
2361
a9c1f295 23622009-02-10 Uros Bizjak <ubizjak@gmail.com>
2363
2364 PR target/39118
2365 * config/i386/i386.c (expand_prologue): Emit blockage at the end
2366 of function prologue when frame pointer is used to access
2367 red zone area.
2368
c85b2faf 23692009-02-10 Richard Guenther <rguenther@suse.de>
2370
2371 PR middle-end/39127
2372 * gimplify.c (gimple_regimplify_operands): Always look if
2373 we need to create a temporary.
2374
8d093dba 23752009-02-10 Richard Guenther <rguenther@suse.de>
2376
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.
2381
edd93683 23822009-02-10 H.J. Lu <hongjiu.lu@intel.com>
2383
2384 PR target/39119
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.
2395
2b6975a6 23962009-02-10 Ben Elliston <bje@au.ibm.com>
2397
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
2405 chain word.
2406
a72d4b7d 24072009-02-09 Sebastian Pop <sebastian.pop@amd.com>
2408
2409 PR middle-end/38953
73c5e2aa 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.
a72d4b7d 2412 (gloog): Remove wrong fix for PR38953.
2413
1f915911 24142009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2415
2416 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
2417 generation due to implicit sign extension.
2418
bbe1fc8f 24192009-02-09 Eric Botcazou <ebotcazou@adacore.com>
2420
2421 PR middle-end/38981
2422 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
2423 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
2424
fd494669 24252009-02-09 Richard Guenther <rguenther@suse.de>
2426
2427 PR middle-end/35202
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.
2431
a64bd5e4 24322009-02-07 Anatoly Sokolov <aesok@post.ru>
2433
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.).
2437
9e830260 24382009-02-06 Joseph Myers <joseph@codesourcery.com>
2439
2440 PR c/35434
2441 * c-common.c (handle_alias_attribute): Disallow attribute for
2442 anything not a FUNCTION_DECL or VAR_DECL.
2443
42dc1cf5 24442009-02-06 Janis Johnson <janis187@us.ibm.com>
2445
2446 PR c/39035
2447 * real.c (do_compare): Special-case compare of zero against
2448 decimal float value.
2449
0af147a4 24502009-02-06 Joseph Myers <joseph@codesourcery.com>
2451
2452 PR c/36432
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.
2456
68b2f511 24572009-02-06 Jan Hubicka <jh@suse.cz>
2458
2459 PR tree-optimization/38844
2460 * ipa-inline.c (try_inline): Stop inlining recursion when edge
2461 is already inlined.
2462
dac59c04 24632009-02-06 Richard Guenther <rguenther@suse.de>
2464
2465 PR middle-end/38977
2466 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
2467 fork because we may expand it as __gcov_fork.
2468
2314f2ef 24692009-02-06 Nick Clifton <nickc@redhat.com>
2470
a9c1f295 2471 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
2314f2ef 2472
3d2d7de7 24732009-02-06 Paolo Bonzini <bonzini@gnu.org>
2474
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
2479 NULL operands.
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.
2486
07d27c98 24872009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
2488
2489 PR target/38991
2490 * config/sh/predicates.md (general_movsrc_operand): Don't check
2491 the subreg of system registers here.
2492
f014e39d 24932009-02-05 Jakub Jelinek <jakub@redhat.com>
2494
2495 PR c++/39106
2496 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
2497 on the copied decl.
2498
99e9b19f 24992009-02-05 Paolo Bonzini <bonzini@gnu.org>
2500
2501 PR rtl-optimization/39110
2502 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
2503 addresses, not aligned ones.
2504
707dd2b0 25052009-02-05 Daniel Berlin <dberlin@dberlin.org>
2506 Richard Guenther <rguenther@suse.de>
2507
2508 PR tree-optimization/39100
2509 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
2510 comment says and add edges.
2511
c34f8a78 25122009-02-05 Joseph Myers <joseph@codesourcery.com>
2513
2514 PR c/35435
2515 * c-common.c (handle_tls_model_attribute): Ignore attribute for
2516 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
2517
7f28086c 25182009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
2519
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
2540
0eee494e 25412009-02-04 Paolo Bonzini <bonzini@gnu.org>
2542 Hans-Peter Nilsson <hp@axis.com>
2543
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.
2551
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.
2557
810c9e65 25582009-02-04 H.J. Lu <hongjiu.lu@intel.com>
2559
2560 AVX Programming Reference (January, 2009)
2561 * config/i386/sse.md (*vpclmulqdq): New.
2562
73d3c8f2 25632009-02-04 Jakub Jelinek <jakub@redhat.com>
2564
2565 PR tree-optimization/38977
2566 PR gcov-profile/38292
6db00048 2567 * calls.c (special_function_p): Disregard __builtin_ prefix.
73d3c8f2 2568
fe898823 25692009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
2570
2571 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
2572 non-indexable addresses even before reload.
2573
51428eb1 25742009-02-03 Joseph Myers <joseph@codesourcery.com>
2575
2576 PR c/29129
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.
2583
4f4106ef 25842009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2585
2586 PR C++/36607
2587 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
2588
5a371c77 25892009-02-03 Jakub Jelinek <jakub@redhat.com>
2590
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.
2596
e5d71db4 25972009-02-03 Joseph Myers <joseph@codesourcery.com>
2598
2599 PR c/35433
2600 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
2601 for composite type involving a zero-length array type.
2602
14e882ea 26032009-02-03 Jakub Jelinek <jakub@redhat.com>
2604
fbcb9be4 2605 PR target/35318
2606 * function.c (match_asm_constraints_1): Skip over
2607 initial optional % in the constraint.
2608
14e882ea 2609 PR inline-asm/39059
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
2615 supported.
2616
f4b3ca46 26172009-02-02 Catherine Moore <clm@codesourcery.com>
2618
a9c1f295 2619 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
f4b3ca46 2620
0a959c1d 26212009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
2622
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.
2626
2f02c19f 26272009-02-02 Paul Brook <paul@codesourcery.com>
2628
2629 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
2630
cde8f1c8 26312009-02-02 Jakub Jelinek <jakub@redhat.com>
2632
2633 PR inline-asm/39058
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
2640 to asm_operand_ok.
2641
e366f125 26422009-02-02 Ben Elliston <bje@au.ibm.com>
2643
2644 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
2645 TARGET_NARROW_VOLATILE_BITFIELD macro names.
2646
a3caf955 26472009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2648
a2853397 2649 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
2650 information. Remove some obsolete information. Reorganize.
2651
a3caf955 2652 * config/pa/fptr.c: Revert license to GPL 2.
2653 * config/pa/milli64.S: Likewise.
2654
8cae609c 26552009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
2656
2657 PR target/38904
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.
2681
27ed8c87 26822009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
2683
2684 PR target/38952
2685 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
6db00048 2686 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27ed8c87 2687
98de8b69 26882009-01-31 Richard Guenther <rguenther@suse.de>
2689
2690 PR tree-optimization/38937
2691 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
2692 computing the transitive closure.
2693
c019af4d 26942009-01-30 Richard Guenther <rguenther@suse.de>
2695
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.
2699
709cdea6 27002009-01-30 Jakub Jelinek <jakub@redhat.com>
2701
2702 PR target/39013
2703 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
2704 inline but never defined.
2705
a7a2dd08 27062009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
26e8b800 2707
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.
2711
27122009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
3b31ea78 2713
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.
2717
26e8b800 27182009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
c45dd88a 2719
2720 PR/38157
2721 * common.opt (flag_conserve_stack): Initialised to zero.
2722
dbc128e8 27232009-01-30 Kai Tietz <kai.tietz@onevision.com>
2724
2725 PR/39002
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
2728 method.
2729
ac50b6ef 27302009-01-29 H.J. Lu <hongjiu.lu@intel.com>
2731
2732 * ira-color.c (allocno_reload_assign): Update comments.
2733 * regmove.c (regmove_optimize): Likewise.
2734
2735 * ra.h: Removed.
2736
3bef4012 27372009-01-29 Robert Millan <rmh@aybabtu.com>
2738
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).
2743
82b19557 27442009-01-29 Kazu Hirata <kazu@codesourcery.com>
2745
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.
2750
a330630f 27512009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
53ae77bf 2752
2753 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
2754 (ASM_OUTPUT_DWARF_PCREL): Define.
2755
a330630f 27562009-01-29 Vladimir Makarov <vmakarov@redhat.com>
cf709bf6 2757
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.
2761
2762 * ra-conflict.c: Remove the file.
2763
2764 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
2765
2766 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
2767 (pass_regclass_init): Rename to pass_reginfo_init.
2768
2769 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
2770
2771 * toplev.h (flag_ira): Remove.
2772
2773 * caller-save.c (setup_save_areas): Remove flag_ira.
2774
6db00048 2775 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
cf709bf6 2776
2777 * global.c: Remove the file.
2778
aca60c7b 2779 * opts.c (decode_options): Remove flag_ira.
cf709bf6 2780
2781 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
2782
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
2790 !flag_ira.
2791
2792 * local-alloc.c: Remove the file.
2793
2794 * common.opt (fira): Remove.
2795
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.
6db00048 2806 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
cf709bf6 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.
2811
2812 * regclass.c: Rename reginfo.c. Change file description.
2813 (FORBIDDEN_INC_DEC_CLASSES): Remove.
a9c1f295 2814 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
cf709bf6 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.
6db00048 2820 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
cf709bf6 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.
2827
2828 * rtl.h (dump_global_regs, retry_global_alloc,
6db00048 2829 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
cf709bf6 2830
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
2835 gt-reginfo.h.
2836 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
2837 (GTFILES): Rename regclass.c to reginfo.c.
2838
2839 * passes.c (init_optimization_passes): Remove pass_local_alloc and
6db00048 2840 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
cf709bf6 2841
2842 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
2843 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
2844 Remove flag_ira.
a7a2dd08 2845 (finish_spills): Ditto. Remove code for !flag_ira.
cf709bf6 2846
237805dd 28472009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
b85ccd2c 2848
2849 PR middle-end/35854
2850 * doc/invoke.texi (rtl debug options): Complete rewrite.
2851 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
2852 to 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"
2858 to "subreg1".
2859
2860
de353418 28612009-01-29 Andrey Belevantsev <abel@ispras.ru>
2862 Alexander Monakov <amonakov@ispras.ru>
2863
2864 PR middle-end/38857
2865 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
2866 register.
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
2870 cant_move.
2871 (move_op_orig_expr_found): Indicate that insn was disconnected from
2872 stream.
2873 (code_motion_process_successors): Do not call after_merge_succs
2874 callback if original expression was not found when traversing any of
2875 the branches.
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.
2880
2fdf186f 28812009-01-28 Pat Haugen <pthaugen@us.ibm.com>
2882
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
2892
c6b3a2da 28932009-01-28 Kazu Hirata <kazu@codesourcery.com>
2894
2895 PR tree-optimization/38997
2896 * tree-loop-distribution.c (generate_memset_zero): Use
2897 POINTER_PLUS_EXPR for a pointer addition.
2898
21676467 28992009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
2900
2901 * config/s390/s390.md (bswap<mode>2): New pattern added.
2902
d3bada4b 29032009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
2904
2905 * config/s390/s390.md (*tls_load_31): Added type attribute.
2906
9925e185 29072009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
2908
2909 * config/s390/s390.md: Fix a few comments.
2910
94ab3c8a 29112009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
2912
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.
2944
d1b5f73a 29452009-01-28 Jakub Jelinek <jakub@redhat.com>
2946
2947 PR rtl-optimization/38740
a7a2dd08 2948 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
2949 if !optimize.
d1b5f73a 2950 * config/mips/mips.c (mips_reorg): Likewise.
2951
3dc4c394 29522009-01-28 Richard Guenther <rguenther@suse.de>
2953
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.
2959
2960 Revert
2961 2008-08-21 Richard Guenther <rguenther@suse.de>
6db00048 2962
c9e47fec 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.
3dc4c394 2967
61349811 29682009-01-28 Jakub Jelinek <jakub@redhat.com>
2969
2970 PR middle-end/38934
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.
2974
a98de126 29752009-01-28 Richard Guenther <rguenther@suse.de>
2976
2977 PR middle-end/38908
2978 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
2979 uninitialized aggregate uses in call arguments.
2980
7f70ef19 29812009-01-28 Paolo Bonzini <bonzini@gnu.org>
2982
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.
2986
8d4c7d80 29872009-01-28 Uros Bizjak <ubizjak@gmail.com>
2988
2989 PR target/38988
2990 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
2991 (set_got_offset_rex64): Ditto.
2992
2687629f 29932009-01-27 H.J. Lu <hongjiu.lu@intel.com>
2994
2995 PR target/38941
2996 * doc/extend.texi: Improve local variable with asm reg.
2997
7a6a48c9 29982009-01-27 Adam Nemet <anemet@caviumnetworks.com>
2999
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
3003 default value of 1.
3004 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
3005 against 1.
3006
57a28426 30072009-01-27 Richard Guenther <rguenther@suse.de>
3008
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
3015 statements.
3016
c9e47fec 30172009-01-27 Uros Bizjak <ubizjak@gmail.com>
9a7965a1 3018
3019 PR middle-end/38969
3020 * calls.c (initialize_argument_information): Do not wrap complex
3021 arguments in SAVE_EXPR.
3022
f1d36ba6 30232009-01-26 Andreas Tobler <a.tobler@schweiz.org>
3024
3025 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
c3f75928 3026 (INSTALL_LIBGCC): Revert typo commit.
f1d36ba6 3027
234294b2 30282009-01-26 Richard Guenther <rguenther@suse.de>
3029
3030 PR tree-optimization/38745
3031 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
3032 from special handling.
3033
1fdf9a6c 30342009-01-26 Richard Guenther <rguenther@suse.de>
3035
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
3040 registers.
3041 * tree-ssa.c (update_alias_info_1): Include those in the set
3042 of addressable vars.
3043
f0e4d727 30442009-01-26 Richard Guenther <rguenther@suse.de>
3045
3046 PR middle-end/38851
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.
3050
e7e7c0fe 30512009-01-24 Jakub Jelinek <jakub@redhat.com>
3052
3053 PR c/38957
3054 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
3055 as PLUS_EXPR.
3056
e6d46e27 30572009-01-24 Julian Brown <julian@codesourcery.com>
3058
3059 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
3060 config/arm/linux-atomic.c.
3061 * config/arm/linux-atomic.c: New.
3062
9a6bab39 30632009-01-24 Eric Botcazou <ebotcazou@adacore.com>
3064
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.
3068
1d86d4d7 30692009-01-24 H.J. Lu <hongjiu.lu@intel.com>
3070
3071 PR c/38938
d83d28c1 3072 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
1d86d4d7 3073 properly.
3074
8db3fb7b 30752009-01-24 Sebastian Pop <sebastian.pop@amd.com>
3076
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
3082 changed the CFG.
3083
c52acdd2 30842009-01-24 Paul Brook <paul@codesourcery.com>
3085
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.
3090
f3d84bf8 30912009-01-24 Ben Elliston <bje@au.ibm.com>
3092
3093 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
3094 void *' warning from -Wc++-compat.
3095 * Makefile.in (dominance.o-warn): Remove.
3096
a330630f 30972009-01-23 Paolo Bonzini <bonzini@gnu.org>
cd30b839 3098
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.
3105
9fd767c5 31062009-01-22 Adam Nemet <anemet@caviumnetworks.com>
3107
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
3112 bitfields.
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.
3118
71ee8477 31192009-01-22 H.J. Lu <hongjiu.lu@intel.com>
3120
3121 * c-opts.c (c_common_post_options): Fix a typo in comments.
3122
1a07ca64 31232009-01-22 Steve Ellcey <sje@cup.hp.com>
3124
3125 PR middle-end/38615
3126 * gimplify.c (gimplify_init_constructor): Fix promotion of const
3127 variables to static.
3128 * doc/invoke.texi (-fmerge-all-constants): Update description.
3129
a6f6ff30 31302009-01-22 Uros Bizjak <ubizjak@gmail.com>
3131
3132 PR target/38931
3133 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
3134 (*movdi_1_rex64): Use type "mmx" for alternative 5.
3135
93fa3baa 31362009-01-22 Richard Earnshaw <rearnsha@arm.com>
3137
3138 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
3139 a word boundary.
3140 (LOCAL_ALIGNMENT): Similarly.
3141
da941808 31422009-01-22 Mark Shinwell <shinwell@codesourcery.com>
a6f6ff30 3143 Joseph Myers <joseph@codesourcery.com>
da941808 3144
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
3149 -march=iwmmxt2.
3150
00bd398c 31512009-01-22 Mark Shinwell <shinwell@codesourcery.com>
3152
3153 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
3154 version number to five.
3155
b2694749 31562009-01-22 Dodji Seketeli <dodji@redhat.com>
3157
3158 PR c++/38930
aca60c7b 3159 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
b2694749 3160 * c-common.c (set_underlying_type): Likewise.
3161 (is_typedef_decl ): Likewise
3162 * tree.h: Likewise
3163 (set_underlying_type): Likewise.
3164 (is_typedef_type): Likewise.
3165
8aad8efd 31662009-01-21 Vladimir Makarov <vmakarov@redhat.com>
3167
3168 PR middle-end/38587
3169 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
3170 crossing setjmps.
3171
8f057ffc 31722009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
3173
3174 PR bootstrap/37660
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.
3178
f92492f7 31792009-01-21 Uros Bizjak <ubizjak@gmail.com>
3180
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.
3185
c973dc47 31862009-01-21 Dodji Seketeli <dodji@redhat.com>
3187
3188 PR c++/26693
aca60c7b 3189 * c-decl.c (clone_underlying_type): Move this ...
c973dc47 3190 * c-common.c (set_underlying_type): ... here.
f92492f7 3191 Also, make sure the function properly sets TYPE_STUB_DECL() on
c973dc47 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.
3198
6e93a4c8 31992009-01-21 Bingfeng Mei <bmei@broadcom.com>
3200
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
3208 alias sets.
3209
a698e1ec 32102009-01-20 Joseph Myers <joseph@codesourcery.com>
3211
3212 PR other/38758
a7a2dd08 3213 * longlong.h: Update copyright years. Use soft-fp license notice.
3214 Sync __clz_tab declaration with glibc.
a698e1ec 3215
b84fdfe2 32162009-01-20 Steve Ellcey <sje@cup.hp.com>
3217
3218 PR target/30687
3219 * doc/extend.texi (syscall_linkage): New.
3220 (version_id): Modify.
3221
c4d6ac81 32222009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
f92492f7 3223 Richard Guenther <rguenther@suse.de>
c4d6ac81 3224
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.
3230
d3399492 32312009-01-20 Sebastian Pop <sebastian.pop@amd.com>
3232
3233 * common.opt (fgraphite, fgraphite-identity): Add comment for
3234 explaining why these options are not documented.
3235
aa3f15b6 32362009-01-20 Sebastian Pop <sebastian.pop@amd.com>
3237
3238 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
3239 gimple_call_lhs is NULL.
3240
a330630f 32412009-01-20 Paolo Bonzini <bonzini@gnu.org>
e077413c 3242
3243 PR target/38868
3244 * emit-rtl.c (adjust_address_1): Make sure memref is never
3245 overwritten.
3246
8c2fa2f7 32472009-01-20 Ben Elliston <bje@au.ibm.com>
3248
3249 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
f92492f7 3250 const qualifier from arg parameter. Remove unnecessary cast to char *.
8c2fa2f7 3251 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
3252 const qualifier from arg 2.
3253
94cd11b9 32542009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3255
f92492f7 3256 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
94cd11b9 3257
c950adc6 32582009-01-19 Vladimir Makarov <vmakarov@redhat.com>
3259
3260 PR c/38869
3261 * rtl.h (reinit_regs): New prototype.
3262 * regclass.c: Include ira.h.
3263 (reinit_regs): New.
3264 * Makefile.in (regclass.o): Add ira.h.
3265 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
3266
02421213 32672009-01-18 H.J. Lu <hongjiu.lu@intel.com>
3268
3269 PR target/38736
3270 * c-common.c (handle_aligned_attribute): Use
3271 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
3272 default alignment value.
3273
3274 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
3275
3276 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
3277 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
3278
3279 * doc/extend.texi: Update __attribute__ ((aligned)). Document
3280 __BIGGEST_ALIGNMENT__.
3281
3282 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
3283
2ac47fdf 32842009-01-18 Richard Guenther <rguenther@suse.de>
3285
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
3293 in this case.
3294
b338dafb 32952009-01-18 Andreas Schwab <schwab@suse.de>
3296
3297 * doc/install.texi (Configuration): Remove obsolete paragraph
3298 about use of --with-gnu-ld with --with-gnu-as.
3299
91f54ca3 33002009-01-18 Kazu Hirata <kazu@codesourcery.com>
3301
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.
3305
76cd80c7 33062009-01-18 Ben Elliston <bje@au.ibm.com>
3307
3308 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
3309 C++ warning about implicit conversion from void * to struct
3310 bitmap_head_def *.
3311 (bitmap_obstack_free): Likewise for bitmap_element *.
df1573c4 3312 * Makefile.in (bitmap.o-warn): Remove.
76cd80c7 3313
89bcc083 33142009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
3315
3316 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
3317
3c560c26 33182009-01-17 Sebastian Pop <sebastian.pop@amd.com>
3319 Tobias Grosser <tobi.grosser@amd.com>
3320
3321 * graphite.c (graphite_trans_scop_block): Do not block single
3322 nested loops.
3323
e106fc2e 33242009-01-16 Alexandre Oliva <aoliva@redhat.com>
3325
3326 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
3327 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
3328 test with assertion.
3329
cd6342bd 33302009-01-16 Richard Guenther <rguenther@suse.de>
3331
3332 PR tree-optimization/38835
3333 PR middle-end/36227
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.
3337
298bbd8d 33382009-01-16 Adam Nemet <anemet@caviumnetworks.com>
3339
3340 PR target/38554
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.
3343
9e5f07d3 33442009-01-16 Sebastian Pop <sebastian.pop@amd.com>
3345 Tobias Grosser <tobi.grosser@amd.com>
3346
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.
3351
35fb1eb0 33522009-01-16 Sebastian Pop <sebastian.pop@amd.com>
3353 Tobias Grosser <tobi.grosser@amd.com>
3354
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.
3364
99e2edfd 33652009-01-16 Jakub Jelinek <jakub@redhat.com>
3366
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.
3371
237805dd 33722009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cff725a2 3373
3374 * dce.c (delete_unmarked_insns): Reversed the order that insns are
3375 examined before deleting them.
3376
daaa06b2 33772009-01-16 Richard Earnshaw <rearnsha@arm.com>
3378
3379 * function.c (aggregate_value_p): Correctly extract the function
3380 type from CALL_EXPR_FN lookup.
3381
237805dd 33822009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
e262db7d 3383
3384 * config/picochip/picochip.c (picochip_override_options): Revert
3385 CFI asm flag disable commited previously.
3386
d635c475 33872009-01-15 Sebastian Pop <sebastian.pop@amd.com>
3388 Tobias Grosser <tobi.grosser@amd.com>
3389 Jan Sjodin <jan.sjodin@amd.com>
3390
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.
3397
f5b7c8a5 33982009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
3399
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.
3403
9e1c1bf0 34042009-01-15 H.J. Lu <hongjiu.lu@intel.com>
3405 Joey Ye <joey.ye@intel.com>
3406
3407 PR middle-end/37843
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.
3412
237805dd 34132009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
66aca59d 3414
f92492f7 3415 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
66aca59d 3416
eb940a48 34172009-01-14 Jakub Jelinek <jakub@redhat.com>
3418
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
3430 argument.
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).
3437
26f62ff4 34382009-01-14 Michael Meissner <gnu@the-meissners.org>
3439
3440 PR target/22599
f92492f7 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
3443 few long lines.
26f62ff4 3444
87736b69 34452009-01-14 Sebastian Pop <sebastian.pop@amd.com>
3446
3447 PR middle-end/38431
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.
3453
4dbb1e0c 34542009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
3455 * doc/gty.texi (Invoking the garbage collector): Added new node
3456 and section documenting ggc_collect.
3457
48d49ced 34582009-01-14 Richard Guenther <rguenther@suse.de>
3459
3460 PR tree-optimization/38826
3461 PR middle-end/38477
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
3467 address-taking.
3468
bef7b1de 34692009-01-14 Nick Clifton <nickc@redhat.com>
3470
3471 * ira-conflicts.c: Include addresses.h for the definition of
3472 base_reg_class.
f92492f7 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.
bef7b1de 3475
cab55469 34762009-01-13 Vladimir Makarov <vmakarov@redhat.com>
3477
3478 PR target/38811
3479 * Makefile.in (ira-lives.o): Add except.h.
3480
3481 * ira-lives.c: Include except.h.
3482 (process_bb_node_lives): Process can_throw_internal.
3483
cac5cd08 34842009-01-13 Jakub Jelinek <jakub@redhat.com>
3485
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
3489 old comparison.
3490
309ef6b4 34912009-01-13 Joseph Myers <joseph@codesourcery.com>
3492
3493 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
3494 values. Remove duplicate arm8 entry.
3495
1ffa850c 34962009-01-13 Sebastian Pop <sebastian.pop@amd.com>
3497
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
8d4c7d80 3506 the gimple_stmt_iterator where it inserts new code.
3507 Do not pass loop_p.
1ffa850c 3508 (copy_bb_and_scalar_dependences): Do not pass loop_p.
3509 (translate_clast): Update call to copy_bb_and_scalar_dependences.
3510
de540910 35112009-01-13 Sebastian Pop <sebastian.pop@amd.com>
3512
3513 * graphite.h (debug_value): Removed.
3514 * graphite.c (debug_value): Removed.
3515
3d1f6e40 35162009-01-13 Richard Earnshaw <rearnsha@arm.com>
3517
f92492f7 3518 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
3519 ldrd/strd with two 32-bit instructions.
3d1f6e40 3520
0f978633 35212009-01-13 Richard Earnshaw <rearnsha@arm.com>
3522
f92492f7 3523 * config/arm/arm.c (struct processors): Pass for speed down into
3524 cost helper functions.
0f978633 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.
3532
d6c48eee 35332009-01-13 Uros Bizjak <ubizjak@gmail.com>
3534
3535 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
f92492f7 3536 relocations of local symbols wider than UNITS_PER_WORD are not valid.
d6c48eee 3537 (alpha_legitimize_address): Do not split local symbols wider than
3538 UNITS_PER_WORD into HIGH/LO_SUM parts.
3539
91e64380 35402009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
3541
3542 PR bootstrap/38580
3543 * gcc.c (process_command): Replace call to execvp with calls
3544 to pex_one and exit.
3545
4addc9bf 35462009-01-03 Anatoly Sokolov <aesok@post.ru>
3547
3548 PR target/29141
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.
aca60c7b 3552 (__tablejump_elpm__): New.
4addc9bf 3553
f0d0d842 35542009-01-12 Jakub Jelinek <jakub@redhat.com>
3555
3556 PR c/32041
3557 * c-parser.c (c_parser_postfix_expression): Allow `->' in
3558 offsetof member-designator, handle it as `[0].'.
3559
55e0e460 35602009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3561
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.
3565
afb33771 35662009-01-12 Richard Earnshaw <rearnsha@arm.com>
3567
3568 * combine.c (combine_instructions): Recompute
3569 optimize_this_for_speed_p for each BB in the main combine loop.
3570
a6c1b5f0 35712009-01-12 Tomas Bily <tbily@suse.cz>
3572
3573 PR middlend/38385
d6c48eee 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.
a6c1b5f0 3577
3a43bfe9 35782009-01-12 Jakub Jelinek <jakub@redhat.com>
3579
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.
3583
95fb59aa 35842009-01-11 Adam Nemet <anemet@caviumnetworks.com>
3585
3586 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
3587 subreg of op0 to the original op0.
3588
237805dd 35892009-01-11 Laurent GUERBY <laurent@guerby.net>
e0b61fdb 3590
3591 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
3592
a32384d7 35932009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
3594
3595 PR debug/7055
3596 * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
3597 starting with digits.
3598
a9467ac5 35992009-01-10 Jakub Jelinek <jakub@redhat.com>
3600
3601 PR target/38695
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.
3604
100329af 36052009-01-09 Steven Bosscher <steven@gcc.gnu.org>
3606
3607 * regrename.c (regrename_optimize): Fix dumping.
3608 (find_oldest_value_reg): Preserve REG_POINTER.
3609 (copy_hardreg_forward_1): Likewise.
3610
51e52fe3 36112009-01-09 Diego Novillo <dnovillo@google.com>
3612
6db00048 3613 * gimple.h (struct gimple_statement_base) <uid>: Document
51e52fe3 3614 the restrictions on its use.
3615 (gimple_uid): Tidy.
3616 (gimple_set_uid): Tidy.
3617
e1e05028 36182009-01-09 Jakub Jelinek <jakub@redhat.com>
3619
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
3622 size_needed.
3623
a330630f 36242009-01-09 Vladimir Makarov <vmakarov@redhat.com>
0c42b4f4 3625
3626 PR rtl-optimization/38495
d6c48eee 3627 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
0c42b4f4 3628 (add_range_and_copies_from_move_list): Print all added ranges.
3629 Add ranges to memory optimized destination.
3630
8f538fc3 36312009-01-09 Jakub Jelinek <jakub@redhat.com>
3632
ede11ffa 3633 PR target/38686
3634 PR target/38708
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.
3650
8f538fc3 3651 PR c/35742
d6c48eee 3652 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
8f538fc3 3653
21a47bc9 36542009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3655
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.
3662
ce090c51 36632009-01-09 Nick Clifton <nickc@redhat.com>
3664
3665 * config/sh/symbian.c: Replace uses of DECL_INLINE with
3666 DECL_DECLARED_INLINE_P.
3667
4e7cb1c5 36682009-01-09 Jakub Jelinek <jakub@redhat.com>
3669
70b6a6e8 3670 PR middle-end/38347
3671 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
3672 GET_MODE (op0) in operand_subword_force calls.
3673
4e7cb1c5 3674 PR middle-end/38771
3675 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
3676 fold_convert arg0 operands to TREE_TYPE (op0) first.
3677
d0388252 36782009-01-08 Vladimir Makarov <vmakarov@redhat.com>
3679
3680 * params.def (ira-max-conflict-table-size): Decrease default value
3681 to 1000.
3682
12c697cd 36832009-01-08 Jakub Jelinek <jakub@redhat.com>
3684
3685 PR tree-optimization/37031
3686 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
3687 on parameter_set.
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
3690 VEC_safe_push.
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.
3698
59835a90 36992009-01-08 Sebastian Pop <sebastian.pop@amd.com>
3700 Jan Sjodin <jan.sjodin@amd.com>
3701
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.
3710
1c48f190 37112009-01-08 Ira Rosen <irar@il.ibm.com>
3712
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.
3717
9538c1d1 37182009-01-07 Nathan Froyd <froydnj@codesourcery.com>
3719 Alan Modra <amodra@bigpond.net.au>
3720
3721 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
3722 non-word-aligned REG+CONST addressing.
3723
292add68 37242009-01-07 Uros Bizjak <ubizjak@gmail.com>
3725
3726 PR target/38706
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.
3731
bbc3ff90 37322009-01-07 Uros Bizjak <ubizjak@gmail.com>
3733
3734 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
bbc3ff90 3735 (ix86_valid_target_attribute_inner_p): Ditto.
3736
145bdf6a 37372009-01-07 Jan Sjodin <jan.sjodin@amd.com>
3738
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
3757 blocked.
3758 (graphite_transform_loops): Do not handle scops that contain condition
3759 scalar phi nodes.
3760
b49a1e34 37612009-01-07 H.J. Lu <hongjiu.lu@intel.com>
3762
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.
3767
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.
3775
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.
3781
4f1351a2 37822009-01-07 Richard Guenther <rguenther@suse.de>
3783
3784 PR middle-end/38751
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.
3788
aad359a1 37892009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
3790
3791 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
3792 hosted cross-compilers generating less efficient code.
3793
2061be83 37942009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3795
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.
3804
6b806743 38052009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3806
3807 PR rtl-optimization/38426.
3808 * ira.c (ira): Set current_function_is_leaf earlier.
3809
095050fc 38102009-01-06 Jakub Jelinek <jakub@redhat.com>
3811
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
3815 undo_all point.
3816
0c87fb2b 38172009-01-06 Janis Johnson <janis187@us.ibm.com>
3818
3819 PR c/34252
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
3828 of emin.
3829
710ab45a 38302009-01-06 Jan Hubicka <jh@suse.cz>
3831
3832 PR target/38744
f92492f7 3833 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
710ab45a 3834
0a46e111 38352009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
3836
3837 * doc/contrib.texi (Contributors): Slightly adjust the end note.
3838 Add Robert Clark to the list of testers.
3839
30095c10 38402009-01-06 Jan Hubicka <jh@suse.cz>
237805dd 3841 Kai Tietz <kai.tietz@onevision.com>
30095c10 3842
f92492f7 3843 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
3844 * config/i386/i386.c (ix86_expand_call): Add clobbers.
30095c10 3845
acb79b5c 38462009-01-06 Jan Hubicka <jh@suse.cz>
237805dd 3847 Kai Tietz <kai.tietz@onevision.com>
acb79b5c 3848
f92492f7 3849 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
3850 for w64 ABI.
3851 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
acb79b5c 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.
bbc3ff90 3856 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
3857 general purpose regs.
acb79b5c 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.
3863
90a81a4b 38642009-01-06 Jan Hubicka <jh@suse.cz>
237805dd 3865 Kai Tietz <kai.tietz@onevision.com>
90a81a4b 3866
f92492f7 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.
90a81a4b 3870
7521b07f 38712009-01-06 H.J. Lu <hongjiu.lu@intel.com>
3872
3873 PR bootstrap/38742
3874 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
3875 before using pseudos_have_intersected_live_ranges_p.
3876
3877 * ira-int.h (ira_assert): Always define.
3878
dbd61cd0 38792009-01-06 H.J. Lu <hongjiu.lu@intel.com>
3880
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.
3888
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.
3900
c4b36071 39012009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3902
dbd61cd0 3903 * pa.c (output_call): Relocate non-jump insns in the delay slot of
3904 long absolute calls when generating PA 2.0 code.
c4b36071 3905
95c83f01 39062009-01-05 Vladimir Makarov <vmakarov@redhat.com>
3907
3908 PR rtl-optimization/38583
3909 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
3910
3911 * params.def (ira-max-conflict-table-size): New.
3912
3913 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
3914
3915 * ira.h (ira_conflicts_p): New external definition.
3916
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.
3921
bbc3ff90 3922 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
95c83f01 3923 (ira_color): Use ira_conflicts_p.
3924
3925 * global.c: Include ira.h.
3926 (pseudo_for_reload_consideration_p, build_insn_chain): Use
3927 ira_conflicts_p.
3928
3929 * Makefile.in (global.o): Add ira.h.
3930
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.
3941
3942 * ira.c (ira_conflicts_p): New global.
3943 (ira): Define and use ira_conflicts_p.
3944
3945 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
3946 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
bbc3ff90 3947 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
95c83f01 3948
da279129 39492009-01-06 Ben Elliston <bje@au.ibm.com>
3950
3951 * gengtype-lex.l (YY_NO_INPUT): Define.
3952
7ec31215 39532009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3954
3955 PR c/34911
da279129 3956 * c-common.c (handle_vector_size_attribute): Also reject
3957 BOOLEAN_TYPE types.
7ec31215 3958
d51c4d4c 39592009-01-05 Sebastian Pop <sebastian.pop@amd.com>
3960
3961 PR tree-optimization/38492
3962 * graphite.c (rename_map_elt, debug_rename_elt,
bbc3ff90 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.
d51c4d4c 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.
3983
3984 * graphite.h (struct sese): Documented. Added fields liveout,
bbc3ff90 3985 num_ver and livein.
d51c4d4c 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.
3990
57c0fd3c 39912009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
3992
3993 PR tree-optimization/38510
3994 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
3995 (translate_clast): Call recompute_all_dominators before
3996 graphite_verify.
3997 (gloog): Call recompute_all_dominators before graphite_verify.
3998
39992009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
237805dd 4000 Jan Sjodin <jan.sjodin@amd.com>
57c0fd3c 4001
4002 PR tree-optimization/38500
4003 * graphite.c (create_sese_edges): Call fix_loop_structure after
4004 splitting blocks.
4005
237805dd 40062009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
e4c85211 4007
4008 * config.gcc: Add m32r*-*-rtems*.
4009 * config/m32r/rtems.h: New file.
4010
e7ae053d 40112009-01-05 Ben Elliston <bje@au.ibm.com>
4012
4013 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
4014 (.po.pox): Likewise.
4015 (po/gcc.pot): Likewise.
4016
aad5aaaf 40172009-01-04 David S. Miller <davem@davemloft.net>
4018
4019 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
4020 (STARTING_FRAME_OFFSET): Always set to zero.
4021
f323bb78 40222009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
4023
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.
4027
b73796fa 40282009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
4029
4030 * config/mips/sync.md (*mb_barrier): Rename to...
4031 (*memory_barrier): ...this.
4032
c17add59 40332009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4034
4035 * doc/extend.texi (Function Attributes): Move @cindex after @item
6c6bce65 4036 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
c17add59 4037 and put in alphabetical order. Fix 'target' name and put in order.
4038 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
4039 typos.
4040
dc178856 40412009-01-04 Uros Bizjak <ubizjak@gmail.com>
4042
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.
4048
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.
4057
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.
4063
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.
4068
4069 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
4070 insn operands.
4071 (*memory_barrier): Use (match_dup 0) as input operand.
4072
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.
bbc3ff90 4076 (*mb_internal): New insn pattern.
dc178856 4077
4078 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
4079
fef299ce 40802009-01-04 Steven Bosscher <steven@gcc.gnu.org>
4081
4082 PR middle-end/38586
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
4089 for the new table.
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.
4103
961c8f72 41042009-01-04 Steven Bosscher <steven@gcc.gnu.org>
4105
4106 PR middle-end/38584
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.
4110
c2ef487a 41112009-01-03 Jakub Jelinek <jakub@redhat.com>
4112
4113 PR target/38707
4114 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
4115 can't be used.
4116
d2472193 41172009-01-03 Diego Novillo <dnovillo@google.com>
4118
4119 * doc/contrib.texi: Update contributions.
4120
062b4460 41212009-01-03 Jakub Jelinek <jakub@redhat.com>
4122
6f52ebeb 4123 PR c++/38705
4124 * builtins.c (fold_builtin_memory_op): Give up if either operand
4125 is volatile. Set srctype or desttype to non-qualified version
4126 of the other type.
4127
062b4460 4128 PR c/38700
4129 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
4130 and FUNCTION_DECLs.
4131
237805dd 41322009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
7e009ff5 4133
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.
4138
c9f77b30 41392009-01-02 Mark Mitchell <mark@codesourcery.com>
4140
4141 PR 33649
4142 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
4143
e70f5f27 41442009-01-02 Jakub Jelinek <jakub@redhat.com>
4145
4146 PR middle-end/38690
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.
4153
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.
4159
db8edef0 41602009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4161
4162 * doc/extend.texi: Fix '#pragma GCC option' typo.
4163
237805dd 41642009-01-02 Richard Guenther <rguenther@suse.de>
6d37614e 4165
e6f4e61f 4166 * doc/install.texi (--enable-checking): Mention different
4167 default for stage1.
4168 (--enable-stage1-checking): Document.
6d37614e 4169
d3a42176 41702009-01-01 Andrew Pinski <pinskia@gmail.com>
4171
4172 PR middle-end/30142
4173 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
4174 case to be an error.
4175
5c8520a4 41762009-01-02 Ben Elliston <bje@au.ibm.com>
4177
4178 * config/fp-bit.h (pack_d): Constify argument.
4179 * config/fp-bit.c (makenan): Constify return type. Remove casts.
4180 (isnan): Constify argument.
4181 (isinf): Likewise.
4182 (iszero): Likewise.
4183 (pack_d): Likewise.
4184 (_fpadd_parts): Constify return type.
4185 (_fpmul_parts): Likewise.
4186 (_fpdiv_parts): Likewise.
4187
d241bf0d 41882009-01-01 Jakub Jelinek <jakub@redhat.com>
4189
4190 PR c/36489
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
4195 add_pending_init.
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.