re PR rtl-optimization/39235 (get_simple_loop_desc returns uninitialized memory)
[gcc.git] / gcc / ChangeLog
1 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
2
3 PR39235:
4 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
5
6 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
7
8 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
9
10 2009-03-04 Richard Guenther <rguenther@suse.de>
11
12 PR tree-optimization/39362
13 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
14 that occur in abnormal PHIs should be varying.
15
16 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
17
18 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
19 Extend comments.
20 (simple_iv): Take loop as an argument instead of statement.
21 * tree-scalar-evolution.h (simple_iv): Declaration changed.
22 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
23 to simple_iv.
24 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
25 Ditto.
26 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
27 * matrix-reorg.c (analyze_transpose): Ditto.
28 * tree-data-ref.c (dr_analyze_innermost): Ditto.
29 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
30 * tree-predcom.c (ref_at_iteration): Ditto.
31 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
32
33 2009-03-04 Richard Guenther <rguenther@suse.de>
34
35 PR tree-optimization/39358
36 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
37 escaped_id and callused_id.
38 (solve_graph): Likewise.
39
40 2009-03-04 Richard Guenther <rguenther@suse.de>
41
42 PR tree-optimization/39339
43 * tree-sra.c (try_instantiate_multiple_fields): Make it
44 no longer ICE on the above.
45
46 2009-03-03 Joseph Myers <joseph@codesourcery.com>
47
48 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
49 that fits within Pmode.
50
51 2009-03-03 Steve Ellcey <sje@cup.hp.com>
52
53 PR middle-end/10109
54 * tm.texi (LIBCALL_VALUE): Update description.
55
56 2009-03-03 Steve Ellcey <sje@cup.hp.com>
57
58 PR middle-end/34443
59 * doc/extend.texi (section): Update description.
60
61 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
62
63 PR middle-end/39345
64 * tree-inline.c (remapped_type): New.
65 (can_be_nonlocal): Call remapped_type instead of remap_type.
66
67 2009-03-03 Jakub Jelinek <jakub@redhat.com>
68
69 PR fortran/39354
70 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
71 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
72
73 2009-03-03 Richard Guenther <rguenther@suse.de>
74
75 PR middle-end/39272
76 * tree.c (tree_nonartificial_location): New function.
77 * tree.h (tree_nonartificial_location): Declare.
78 * builtins.c (expand_builtin_memory_chk): Provide location
79 of the call location for artificial function pieces.
80 (maybe_emit_chk_warning): Likewise.
81 (maybe_emit_sprintf_chk_warning): Likewise.
82 (maybe_emit_free_warning): Likewise.
83 * expr.c (expand_expr_real_1): Likewise.
84
85 2009-03-03 Jakub Jelinek <jakub@redhat.com>
86
87 PR tree-optimization/39343
88 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
89 COMPONENT_REF t has ARRAY_TYPE.
90
91 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
92
93 PR middle-end/39335
94 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
95 when the type precision of the induction variable should be
96 larger than the type precision of nit.
97 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
98 * graphite.c (graphite_loop_normal_form): Same.
99 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
100
101 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
102
103 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
104 (*call_1_rex64_ms_sysv): Use named constants instead of magic
105 numbers to describe clobbbered registers.
106 (*call_value_0_rex64_ms_sysv): Ditto.
107 * config/i386/mmx.md (emms): Ditto.
108 (femms): Ditto.
109
110 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
111
112 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
113 of ABI_64.
114
115 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
116
117 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
118 (spu_section_type_flags): New function.
119
120 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
121
122 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
123 reg_class_contents of FLOAT_REGS into a temporary.
124
125 2009-03-02 Richard Guenther <rguenther@suse.de>
126 Ira Rosen <irar@il.ibm.com>
127
128 PR tree-optimization/39318
129 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
130 information to the vectorized statement.
131
132 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
133
134 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
135 variable. Use defined names instead of magic constants for REX SSE
136 registers.
137
138 2009-03-01 Richard Guenther <rguenther@suse.de>
139
140 PR tree-optimization/39331
141 * omp-low.c (lower_send_shared_vars): Do not receive new
142 values for the reference of DECL_BY_REFERENCE parms or results.
143
144 2009-03-01 Jan Hubicka <jh@suse.cz>
145
146 PR debug/39267
147 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
148 BLOCK_NONLOCALIZED_VAR): New macros.
149 (tree_block): Add nonlocalized_vars.
150 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
151 gen_decl_die): Add origin argument. Allow generation of die with
152 origin at hand only.
153 (gen_member_die, gen_type_die_with_usage, force_decl_die,
154 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
155 of gen_*.
156 (gen_block_die): Fix checking for unused blocks.
157 (process_scope_var): Break out from .... ; work with origins only.
158 (decls_for_scope) ... here; process nonlocalized list.
159 (dwarf2out_ignore_block): Look for nonlocalized vars.
160 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
161 vars.
162 (dump_scope_block): Dump them.
163 * tree-inline.c (remap_decls): Handle nonlocalized vars.
164 (remap_block): Likewise.
165 (can_be_nonlocal): New predicate.
166 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
167
168 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
169
170 * configure: Regenerate.
171
172 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
173
174 * optc-gen.awk: No need to duplicate option flags twice.
175 Reuse help texts for duplicate options which do not have
176 any.
177
178 * gcc.c (display_help): Document --version.
179
180 * gcc.c (main): If print_help_list and verbose_flag, ensure
181 driver output comes before subprocess output.
182
183 * optc-gen.awk: Assign all remaining fields to help string,
184 space-separated, for multi-line help in *.opt.
185
186 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
187 -Wno-pedantic-ms-format is for MinGW targets only.
188
189 * doc/options.texi (Option file format): Fix bad indentation,
190 restoring dropped sentence.
191
192 2009-02-28 Jan Hubicka <jh@suse.cz>
193
194 * tree-inline.c (tree_function_versioning): Output debug info.
195
196 2009-02-28 Jan Hubicka <jh@suse.cz>
197
198 PR debug/39267
199 * tree-inline.c (setup_one_parameter): Do not copy propagate
200 arguments when not optimizing.
201
202 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR target/39327
205 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
206 (avx_addsubv4df3): Likewise.
207 (*avx_addsubv4sf3): Likewise.
208 (sse3_addsubv4sf3): Likewise.
209 (*avx_addsubv2df3): Likewise.
210 (sse3_addsubv2df3): Likewise.
211 (avx_unpckhps256): Correct item selectors.
212 (avx_unpcklps256): Likewise.
213 (avx_unpckhpd256): Likewise.
214 (avx_unpcklpd256): Likewise.
215
216 2009-02-28 Jan Hubicka <jh@suse.cz>
217
218 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
219 static vars.
220 (copy_arguments_for_versioning): If var is declared don't declare it.
221 (tree_function_versioning): First setup substitutions and then copy
222 args.
223
224 2009-02-27 Jan Hubicka <jh@suse.cz>
225
226 PR debug/39267
227 * cgraph.h (varpool_output_debug_info): Remove.
228 * cgraphunit.c (varpool_output_debug_info): Remove.
229 * dwarf2out.c (deferred_locations_struct): New struct
230 (deferred_locations): New type.
231 (deferred_locations_list): New static var.
232 (deffer_location): New function.
233 (gen_variable_die): Use it.
234 (decls_for_scope): Output info on local static vars.
235 (dwarf2out_finish): Process deferred locations.
236 * varpool.c (varpool_output_debug_info): Remove.
237
238 2009-02-27 Jan Hubicka <jh@suse.cz>
239
240 PR debug/39267
241 * tree.h (TREE_PROTECTED): Fix comment.
242 (BLOCK_HANDLER_BLOCK): Remove.
243 (struct tree_block): Remove handler_block add body_block.
244 (inlined_function_outer_scope_p): New.
245 (is_body_block): Remove.
246 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
247 * dwarf2out.c (is_inlined_entry_point): Remove.
248 (add_high_low_attributes): Use inlined_function_outer_scope_p.
249 (gen_block_die): Use is_inlined_entry_point check. Remove body block
250 code.
251 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
252 * gimplify.c (gimplify_expr): Gimplify body blocks.
253 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
254 block with multiple subblocks.
255 (dump_scope_block): Prettier output; dump more flags and info.
256 (dump_scope_blocks): New.
257 (remove_unused_locals): Use dump_scope_blocks.
258 * tree-flow.h (dump_scope_blocks): Declare.
259 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
260 * stmt.c (is_body_block): Remove.
261 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
262 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
263
264 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
265
266 PR middle-end/39308
267 * graphite.c (graphite_loop_normal_form): Do not call
268 number_of_iterations_exit from a gcc_assert.
269
270 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
271
272 * gcc/config/s390/s390.c: (s390_swap_cmp): Look for conditional
273 jumps if COND is NULL.
274 (find_cond_jump): New function.
275 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
276 * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
277
278 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
279
280 * config/alpha/alpha.h (alpha_expand_mov): Return false if
281 force_const_mem returns NULL_RTX.
282
283 2009-02-26 Jan Hubicka <jh@suse.cz>
284
285 PR debug/39267
286 * cgraph.h (varpool_output_debug_info): Remove.
287 * cgraphunit.c (varpool_output_debug_info): Remove.
288 * dwarf2out.c (deferred_locations_struct): New struct
289 (deferred_locations): New type.
290 (deferred_locations_list): New static var.
291 (deffer_location): New function.
292 (gen_variable_die): Use it.
293 (decls_for_scope): Output info on local static vars.
294 (dwarf2out_finish): Process deferred locations.
295 * varpool.c (varpool_output_debug_info): Remove.
296
297 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
298
299 PR rtl-optimization/39241
300 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
301 to subreg_offset_representable_p.
302
303 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
304
305 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
306 execute function prototype. Get f and nregs from max_reg_num
307 and get_insns. Remove the first backward pass as it's dead,
308 guard the forward pass by flag_expensive_optimizations.
309 (rest_of_handle_regmove): Delete.
310 (pass_regmove): Replace it with regmove_optimize.
311
312 2009-02-25 Martin Jambor <mjambor@suse.cz>
313
314 PR tree-optimization/39259
315 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
316 alls_alloca function flags.
317 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
318 calls are detected.
319
320 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
321
322 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
323 flags_set_1_rtx, flags_set_1_set): Delete.
324 (regmove_optimize): Do not call mark_flags_life_zones.
325
326 2009-02-24 Julian Brown <julian@codesourcery.com>
327
328 PR target/35965
329 * config/arm/arm.c (require_pic_register): Only set
330 cfun->machine->pic_reg once per function.
331
332 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
333
334 * doc/invoke.texi (Link Options): Document an easier way to pass
335 options that take arguments to the GNU linker using -Xlinker and -Wl.
336
337 2009-02-24 Steve Ellcey <sje@cup.hp.com>
338
339 PR target/33785
340 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
341
342 2009-02-24 Richard Guenther <rguenther@suse.de>
343
344 PR debug/39285
345 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
346
347 2009-02-24 Richard Guenther <rguenther@suse.de>
348 Zdenek Dvorak <ook@ucw.cz>
349
350 PR tree-optimization/39233
351 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
352 from converting them to a generic type.
353
354 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
355
356 PR tree-optimization/39260
357 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
358 contains a condition with a real type.
359 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
360
361 2009-02-23 Jason Merrill <jason@redhat.com>
362
363 PR c++/38880
364 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
365 narrowing_initializer_constant_valid_p.
366 (narrowing_initializer_constant_valid_p): Don't return
367 null_pointer_node for adding a pointer to itself.
368
369 2009-02-23 Jan Hubicka <jh@suse.cz>
370
371 PR c/12245
372 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
373 resizing.
374
375 2009-02-23 Jan Hubicka <jh@suse.cz>
376
377 PR tree-optimization/37709
378 * tree.c (block_ultimate_origin): Move here from dwarf2out.
379 * tree.h (block_ultimate_origin): Declare.
380 * dwarf2out.c (block_ultimate_origin): Move to tree.c
381 * tree-ssa-live.c (remove_unused_scope_block_p):
382 Eliminate blocks containig no instructions nor live variables nor
383 nested blocks.
384 (dump_scope_block): New function.
385 (remove_unused_locals): Enable removal of dead blocks by default;
386 enable dumping at TDF_DETAILS.
387
388 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
389
390 * config/i386/i386.c (classify_argument): Don't allow COImode
391 and OImode.
392 (function_arg_advance_32): Don't allow OImode.
393 (function_arg_32): Likewise.
394 (function_value_32): Likewise.
395 (return_in_memory_32): Likewise.
396 (function_arg_64): Remove OImode comment.
397
398 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
399
400 PR target/39261
401 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
402 ix86_expand_vector_set for V4DImode in 64bit mode only.
403 (ix86_expand_vector_init_one_var): Likewise.
404
405 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
406
407 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
408
409 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
410
411 PR bootstrap/39257
412 * loop-iv.c: Revert last change.
413 * emit-rtl.c: Likewise.
414
415 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
416
417 PR target/39256
418 * config/i386/i386.c (type_natural_mode): Remove an extra
419 space in the warning message.
420 (function_value_32): Handle 32-byte vector modes.
421 (return_in_memory_32): Likewise.
422
423 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
424
425 * loop-iv.c (truncate_value): New function.
426 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
427 of lowpart_subreg.
428 (lowpart_subreg): Move to...
429 * emit-rtl.c: ...here.
430
431 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
432
433 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
434 accidental and undocumented change at revision 140860.
435
436 2009-02-21 Joseph Myers <joseph@codesourcery.com>
437
438 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
439 take gimple_seq * arguments.
440 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
441 types_compatible_p langhook.
442
443 2009-02-20 Mark Mitchell <mark@codesourcery.com>
444 Joseph Myers <joseph@codesourcery.com>
445
446 * config/arm/arm.c (arm_builtin_va_list): New function.
447 (arm_expand_builtin_va_start): Likewise.
448 (arm_gimplify_va_arg_expr): Likewise.
449 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
450 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
451 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
452 (va_list_type): New variable.
453 (arm_mangle_type): Mangle va_list_type appropriately.
454
455 2009-02-20 Jakub Jelinek <jakub@redhat.com>
456
457 PR middle-end/39157
458 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
459 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
460 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
461 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
462 parameter to 1000 for -O1 by default.
463 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
464 parameter.
465 * loop-invariant.c: Include params.h.
466 (move_loop_invariants): Don't call move_single_loop_invariants on
467 very large loops.
468
469 2009-02-20 Jaka Mocnik <jaka@xlab.si>
470
471 * calls.c (emit_library_call_value_1): Use slot_offset instead of
472 offset when calculating bounds for indexing stack_usage_map. Fixes
473 a buffer overflow with certain target setups.
474
475 2009-02-20 Jakub Jelinek <jakub@redhat.com>
476
477 PR target/39240
478 * calls.c (expand_call): Clear try_tail_call if caller and callee
479 disagree in promotion of function return value.
480
481 2009-02-19 Jakub Jelinek <jakub@redhat.com>
482
483 PR target/39175
484 * c-common.c (c_determine_visibility): If visibility changed and
485 DECL_RTL has been already set, call make_decl_rtl to update symbol
486 flags.
487
488 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
489
490 PR c++/39188
491 * varasm.c (assemble_variable): Don't check DECL_NAME when
492 globalizing a variable.
493
494 2009-02-19 Joseph Myers <joseph@codesourcery.com>
495
496 PR c/38483
497 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
498 expression before any __builtin_trap call.
499 * c-typeck.c (build_function_call): Convert and check function
500 arguments before generating a call to a trap. Evaluate the
501 function arguments before the trap.
502
503 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
504
505 PR target/39228
506 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
507 (UNSPEC_FXAM_MEM): New unspec.
508 (fxam<mode>2_i387_with_temp): New insn and split pattern.
509 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
510 memory using fxam<mode>2_i387_with_temp to remove excess precision.
511
512 2009-02-19 Richard Guenther <rguenther@suse.de>
513
514 PR tree-optimization/39207
515 PR tree-optimization/39074
516 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
517 storedanything_tree): New.
518 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
519 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
520 (build_succ_graph): Add edges from STOREDANYTHING to all
521 non-direct nodes.
522 (init_base_vars): Initialize STOREDANYTHING.
523 (compute_points_to_sets): Free substitution info after
524 building the succ graph.
525 (ipa_pta_execute): Likewise.
526
527 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
528 field.
529 (do_ds_constraint): Do not add to special var or non-pointer
530 field solutions.
531 (type_could_have_pointers): Split out from ...
532 (could_have_pointers): ... here. For arrays use the element type.
533 (create_variable_info_for): Initialize may_have_pointers.
534 (new_var_info): Likewise.
535 (handle_lhs_call): Make the HEAP variable unknown-sized.
536 (intra_create_variable_infos): Use a type with pointers for
537 PARM_NOALIAS, make it unknown-sized.
538
539 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
540
541 PR target/39224
542 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
543
544 2009-02-18 Jason Merrill <jason@redhat.com>
545
546 PR target/39179
547 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
548 value if DECL_EXTERNAL.
549 * tree-sra.c (sra_walk_gimple_assign): Likewise.
550 * target.h (gcc_target::binds_local_p): Clarify "module".
551 * tree.h (TREE_PUBLIC): Clarify "module".
552
553 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
554
555 PR target/38891
556 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
557 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
558
559 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
560
561 PR target/39082
562 * c.opt (Wabi): Support C and ObjC.
563 (Wpsabi): New.
564
565 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
566
567 * config/i386/i386.c (classify_argument): Warn once about the ABI
568 change when passing union with long double.
569
570 * doc/invoke.texi: Update -Wabi for warning psABI changes.
571
572 2009-02-18 Joseph Myers <joseph@codesourcery.com>
573
574 PR c/35447
575 * c-parser.c (c_parser_compound_statement): Always enter and leave
576 a scope.
577
578 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
579
580 PR target/34587
581 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
582
583 2009-02-18 Jakub Jelinek <jakub@redhat.com>
584
585 PR tree-optimization/36922
586 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
587 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
588 Likewise.
589
590 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
591
592 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
593 to 0 for EABI64.
594
595 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
596
597 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
598
599 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
600
601 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
602 tree sharing.
603
604 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
605 Richard Sandiford <rdsandiford@googlemail.com>
606
607 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
608 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
609 (loongson_biadd): ...this.
610
611 2009-02-17 Richard Guenther <rguenther@suse.de>
612
613 PR tree-optimization/39202
614 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
615 a var make sure to follow existing collapses.
616
617 2009-02-17 Richard Guenther <rguenther@suse.de>
618
619 PR middle-end/39214
620 * langhooks.c (lhd_print_error_function): Check for NULL block.
621
622 2009-02-17 Richard Guenther <rguenther@suse.de>
623
624 PR tree-optimization/39204
625 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
626 of the PHI arg.
627
628 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
629
630 * config/soft-fp/double.h: Update from glibc CVS.
631
632 2009-02-17 Richard Guenther <rguenther@suse.de>
633
634 PR tree-optimization/39207
635 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
636 strict-aliasing warnings for pointers pointing to NULL.
637
638 2009-02-16 Joseph Myers <joseph@codesourcery.com>
639
640 PR c/35446
641 * c-parser.c (c_parser_braced_init): Call pop_init_level when
642 skipping until next close brace.
643
644 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
645
646 PR target/37049
647 * config/i386/i386.c (ix86_expand_push): Set memory alignment
648 to function argument boundary.
649
650 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
651
652 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
653 in the lea_add. Reload eventually constraints it properly.
654 * config/picochip/constraints.md : Remove the target constraint
655 "b", since it is not needed anymore.
656
657 2009-02-16 Jakub Jelinek <jakub@redhat.com>
658
659 * gthr-dce.h: Uglify function parameter and local variable names.
660 * gthr-gnat.h: Likewise.
661 * gthr-mipssde.h: Likewise.
662 * gthr-nks.h: Likewise.
663 * gthr-posix95.h: Likewise.
664 * gthr-posix.h: Likewise.
665 * gthr-rtems.h: Likewise.
666 * gthr-single.h: Likewise.
667 * gthr-solaris.h: Likewise.
668 * gthr-tpf.h: Likewise.
669 * gthr-vxworks.h: Likewise.
670 * gthr-win32.h: Likewise.
671
672 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
673
674 PR target/39196
675 * config/i386/i386.md: Restrict the new peephole2 to move
676 between MMX/SSE registers.
677
678 2009-02-15 Richard Guenther <rguenther@suse.de>
679
680 Revert
681 2009-02-13 Richard Guenther <rguenther@suse.de>
682
683 * configure.ac: Enable LFS.
684 * configure: Re-generate.
685 * config.in: Likewise.
686
687 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
688
689 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
690 spu_srqwbyte, spu_srqwbytebc): Define.
691 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
692 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
693 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
694 "shrqby_<mode>"): New insn-and-split patterns.
695 * config/spu/spu.c (expand_builtin_args): Determine and return
696 number of operands using spu_builtin_description data.
697 (spu_expand_builtin_1): Use it.
698
699 2009-02-13 Steve Ellcey <sje@cup.hp.com>
700
701 PR target/38056
702 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
703 TARGET_CONST_GP.
704
705 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
706
707 PR target/39149
708 * config/i386/i386.c (override_options): Correct warning
709 messages for -malign-loops, -malign-jumps and -malign-functions.
710
711 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
712
713 PR target/39152
714 * config/i386/i386.md: Restrict the new peephole2 to move
715 between the general purpose registers.
716
717 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
718
719 PR target/39162
720 * config/i386/i386.c (type_natural_mode): Add a new argument.
721 Return the original mode and warn ABI change if vector size is 32byte.
722 (function_arg_advance): Updated.
723 (function_arg): Likewise.
724 (ix86_function_value): Likewise.
725 (ix86_return_in_memory): Likewise.
726 (ix86_sol10_return_in_memory): Likewise.
727 (ix86_gimplify_va_arg): Likewise.
728 (function_arg_32): Don't warn ABX ABI change here.
729 (function_arg_64): Likewise.
730
731 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
732
733 * loop-iv.c (implies_p): In the final case, test that operands 0
734 of the two comparisons match.
735
736 * config/bfin/bfin.c (find_prev_insn_start): New function.
737 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
738 (find_next_insn_start): Move.
739
740 2009-02-13 Richard Guenther <rguenther@suse.de>
741
742 * configure.ac: Enable LFS.
743 * configure: Re-generate.
744 * config.in: Likewise.
745
746 2009-02-13 Joseph Myers <joseph@codesourcery.com>
747
748 PR c/35444
749 * c-parser.c (c_parser_parms_list_declarator): Discard pending
750 sizes on syntax error after some arguments have been parsed.
751
752 2009-02-12 Jakub Jelinek <jakub@redhat.com>
753
754 * doc/invoke.texi (-fira): Remove.
755
756 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
757
758 * caller-save.c: Replace regclass.c with reginfo.c in comments.
759 * recog.c: Likewise.
760 * rtl.h: Likewise.
761
762 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
763
764 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
765 (umul_ppmm): Likewise.
766 (count_leading_zeros): Likewise.
767 (count_trailing_zeros): Likewise.
768 (UMUL_TIME): Likewise.
769
770 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
771
772 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
773 soft-fp/t-softfp to tmake_file.
774
775 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
776 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
777 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
778 IA64_BUILTIN_INFQ]: New.
779 (ia64_init_builtins): Initialize __builtin_infq,
780 __builtin_fabsq and __builtin_copysignq if not HPUX.
781 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
782 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
783
784 * config/ia64/lib1funcs.asm (__divtf3): Define only if
785 SHARED is defined.
786 (__fixtfti): Likewise.
787 (__fixunstfti): Likewise.
788 (__floattitf): Likewise.
789
790 * config/ia64/libgcc-glibc.ver: New.
791 * config/ia64/t-fprules-softfp: Likewise.
792 * config/ia64/sfp-machine.h: Likewise.
793
794 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
795 (LIBGCC2_TF_CEXT): Likewise.
796 (TF_SIZE): Likewise.
797 (TARGET_INIT_LIBFUNCS): Likewise.
798
799 * config/ia64/t-glibc (SHLINB_MAPFILES):
800 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
801
802 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
803
804 * config/i386/i386.c (construct_container): Rewrite processing
805 BLKmode with X86_64_SSE_CLASS.
806
807 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
808
809 PR target/39152
810 * config/i386/i386.md: Replace simplify_replace_rtx with
811 replace_rtx in the new peephole2.
812
813 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
814
815 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
816 loop unrolling do not happen at -O2.
817
818 2009-02-12 Michael Matz <matz@suse.de>
819
820 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
821
822 2009-02-12 Jakub Jelinek <jakub@redhat.com>
823
824 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
825 for -g3.
826
827 2009-02-12 Ben Elliston <bje@au.ibm.com>
828
829 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
830 patterns when updating the back chain. Missed in the 2009-02-10
831 change.
832
833 2009-02-11 Janis Johnson <janis187@us.ibm.com>
834
835 * doc/extend.texi (Decimal Floating Types): Update identifier of
836 draft TR and list of missing support.
837
838 2009-02-11 Jakub Jelinek <jakub@redhat.com>
839
840 PR middle-end/39154
841 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
842 bit to variable length decl's flags, add it also to its
843 pointer replacement variable.
844
845 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
846 Jakub Jelinek <jakub@redhat.com>
847
848 PR target/39118
849 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
850 (memory_blockage): New expander.
851 (*memory_blockage): New insn pattern.
852 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
853 instead of general blockage at the end of function prologue when
854 frame pointer is used to access red zone area. Do not emit blockage
855 when profiling, it is emitted in generic code.
856 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
857 function epilogue when frame pointer is used to access red zone area.
858
859 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
860
861 PR target/38824
862 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
863 by arithmetic with memory operands.
864 * config/i386/predicates.md (commutative_operator): New.
865
866 2009-02-10 Janis Johnson <janis187@us.ibm.com>
867
868 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
869 bulleted lists.
870
871 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
872
873 * alias.h (record_alias_subset): Declare.
874 * alias.c (record_alias_subset): Make global.
875
876 2009-02-10 Nick Clifton <nickc@redhat.com>
877
878 * tree-parloops.c: Change license to GPLv3.
879 * ipa-struct-reorg.c: Change license to GPLv3.
880 * ipa-struct-reorg.h: Change license to GPLv3.
881
882 2009-02-10 Steve Ellcey <sje@cup.hp.com>
883
884 PR c/39084
885 * c-decl.c (start_struct): Return NULL on error.
886
887 2009-02-10 Jakub Jelinek <jakub@redhat.com>
888
889 PR middle-end/39124
890 * cfgloopmanip.c (remove_path): Call remove_bbs after
891 cancel_loop_tree, not before it.
892
893 PR target/39139
894 * function.h (struct function): Add has_local_explicit_reg_vars bit.
895 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
896 VAR_DECLs were seen.
897 * tree-ssa-live.c (remove_unused_locals): Recompute
898 cfun->has_local_explicit_reg_vars.
899 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
900 copies or clearings if cfun->has_local_explicit_reg_vars.
901
902 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
903
904 PR target/39118
905 * config/i386/i386.c (expand_prologue): Emit blockage at the end
906 of function prologue when frame pointer is used to access
907 red zone area.
908
909 2009-02-10 Richard Guenther <rguenther@suse.de>
910
911 PR middle-end/39127
912 * gimplify.c (gimple_regimplify_operands): Always look if
913 we need to create a temporary.
914
915 2009-02-10 Richard Guenther <rguenther@suse.de>
916
917 PR tree-optimization/39132
918 * tree-loop-distribution.c (todo): New global var.
919 (generate_memset_zero): Trigger TODO_rebuild_alias.
920 (tree_loop_distribution): Return todo.
921
922 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
923
924 PR target/39119
925 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
926 (x86_64_reg_class_name): Removed.
927 (classify_argument): Return 0 if bytes > 32. Return 0 if the
928 first one isn't X86_64_SSE_CLASS or any other ones aren't
929 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
930 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
931 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
932 and 3 X86_64_SSEUP_CLASS.
933 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
934 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
935
936 2009-02-10 Ben Elliston <bje@au.ibm.com>
937
938 * config/rs6000/rs6000.md (allocate_stack): Always use an update
939 form instruction to update the stack back chain word, even if the
940 user has disabled the generation of update instructions.
941 (movdi_<mode>_update_stack): New.
942 (movsi_update_stack): Likewise.
943 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
944 always use an update form instruction to update the stack back
945 chain word.
946
947 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
948
949 PR middle-end/38953
950 * graphite.c (if_region_set_false_region): After moving a region in
951 the false branch of a condition, remove the empty dummy basic block.
952 (gloog): Remove wrong fix for PR38953.
953
954 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
955
956 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
957 generation due to implicit sign extension.
958
959 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
960
961 PR middle-end/38981
962 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
963 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
964
965 2009-02-09 Richard Guenther <rguenther@suse.de>
966
967 PR middle-end/35202
968 * convert.c (convert_to_real): Disable (float)fn((double)x)
969 to fnf(x) conversion if errno differences may occur and
970 -fmath-errno is set.
971
972 2009-02-07 Anatoly Sokolov <aesok@post.ru>
973
974 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
975 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
976 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
977
978 2009-02-06 Joseph Myers <joseph@codesourcery.com>
979
980 PR c/35434
981 * c-common.c (handle_alias_attribute): Disallow attribute for
982 anything not a FUNCTION_DECL or VAR_DECL.
983
984 2009-02-06 Janis Johnson <janis187@us.ibm.com>
985
986 PR c/39035
987 * real.c (do_compare): Special-case compare of zero against
988 decimal float value.
989
990 2009-02-06 Joseph Myers <joseph@codesourcery.com>
991
992 PR c/36432
993 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
994 as indicating flexible array members unless the field itself is
995 being declarared as the incomplete array.
996
997 2009-02-06 Jan Hubicka <jh@suse.cz>
998
999 PR tree-optimization/38844
1000 * ipa-inline.c (try_inline): Stop inlining recursion when edge
1001 is already inlined.
1002
1003 2009-02-06 Richard Guenther <rguenther@suse.de>
1004
1005 PR middle-end/38977
1006 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
1007 fork because we may expand it as __gcov_fork.
1008
1009 2009-02-06 Nick Clifton <nickc@redhat.com>
1010
1011 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
1012
1013 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
1014
1015 PR tree-optimization/35659
1016 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
1017 vn_phi_eq): Shortcut if hashcode does not match.
1018 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
1019 NULL operands.
1020 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
1021 and avoid iterative_hash_expr.
1022 (FOR_EACH_VALUE_ID_IN_SET): New.
1023 (value_id_compare): Remove.
1024 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
1025 sort expressions by value id.
1026
1027 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
1028
1029 PR target/38991
1030 * config/sh/predicates.md (general_movsrc_operand): Don't check
1031 the subreg of system registers here.
1032
1033 2009-02-05 Jakub Jelinek <jakub@redhat.com>
1034
1035 PR c++/39106
1036 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
1037 on the copied decl.
1038
1039 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
1040
1041 PR rtl-optimization/39110
1042 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
1043 addresses, not aligned ones.
1044
1045 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
1046 Richard Guenther <rguenther@suse.de>
1047
1048 PR tree-optimization/39100
1049 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
1050 comment says and add edges.
1051
1052 2009-02-05 Joseph Myers <joseph@codesourcery.com>
1053
1054 PR c/35435
1055 * c-common.c (handle_tls_model_attribute): Ignore attribute for
1056 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
1057
1058 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
1059
1060 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
1061 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
1062 register_bb_in_sese, new_sese, free_sese): Moved.
1063 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
1064 outermost_loop_in_scop, build_scop_iteration_domain,
1065 expand_scalar_variables_ssa_name, get_vdef_before_scop,
1066 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
1067 Use loop_in_sese_p instead of loop_in_scop_p.
1068 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
1069 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
1070 (scopdet_basic_block_info): Fix bug in scop detection.
1071 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
1072 eq_loop_to_cloog_loop): Remove.
1073 (nb_loops_around_loop_in_scop, nb_loop
1074 ref_nb_loops): Moved here...
1075 * graphite.h (ref_nb_loops): ... from here.
1076 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
1077 (loop_domain_dim, loop_iteration_vector_dim): Remove.
1078 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
1079 * testsuite/gcc.dg/graphite/scop-19.c: New
1080
1081 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
1082 Hans-Peter Nilsson <hp@axis.com>
1083
1084 PR rtl-optimization/37889
1085 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
1086 Move offset handling from PLUS to before the switch. Use new
1087 arguments when considering SYMBOL_REFs too.
1088 (rtx_addr_can_trap_p): Pass dummy offset and size.
1089 (enum may_trap_p_flags): Remove.
1090 (may_trap_p_1): Pass size from MEM_SIZE.
1091
1092 PR rtl-optimization/38921
1093 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
1094 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
1095 * rtlanal.c (may_trap_after_code_motion_p): Delete.
1096 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
1097
1098 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
1099
1100 AVX Programming Reference (January, 2009)
1101 * config/i386/sse.md (*vpclmulqdq): New.
1102
1103 2009-02-04 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR tree-optimization/38977
1106 PR gcov-profile/38292
1107 * calls.c (special_function_p): Disregard __builtin_ prefix.
1108
1109 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
1110
1111 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
1112 non-indexable addresses even before reload.
1113
1114 2009-02-03 Joseph Myers <joseph@codesourcery.com>
1115
1116 PR c/29129
1117 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
1118 as having variable size. Do not give an error for unnamed
1119 parameters with [*] declarators. Give a warning for type names
1120 with [*] declarators and mark them as variable size.
1121 * c-parser.c (c_parser_sizeof_expression): Do not give an error
1122 for sizeof applied to [*] type names.
1123
1124 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1125
1126 PR C++/36607
1127 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
1128
1129 2009-02-03 Jakub Jelinek <jakub@redhat.com>
1130
1131 * gcc.c (process_command): Update copyright notice dates.
1132 * gcov.c (print_version): Likewise.
1133 * gcov-dump.c (print_version): Likewise.
1134 * mips-tfile.c (main): Likewise.
1135 * mips-tdump.c (main): Likewise.
1136
1137 2009-02-03 Joseph Myers <joseph@codesourcery.com>
1138
1139 PR c/35433
1140 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
1141 for composite type involving a zero-length array type.
1142
1143 2009-02-03 Jakub Jelinek <jakub@redhat.com>
1144
1145 PR target/35318
1146 * function.c (match_asm_constraints_1): Skip over
1147 initial optional % in the constraint.
1148
1149 PR inline-asm/39059
1150 * c-parser.c (c_parser_postfix_expression): If fixed point is not
1151 supported, don't accept FIXED_CSTs.
1152 * c-decl.c (finish_declspecs): Error if fixed point is not supported
1153 and _Sat is used without _Fract/_Accum. Set specs->type to
1154 integer_type_node for cts_fract/cts_accum if fixed point is not
1155 supported.
1156
1157 2009-02-02 Catherine Moore <clm@codesourcery.com>
1158
1159 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
1160
1161 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
1162
1163 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
1164 (ABI_HAS_64BIT_SYMBOLS): Use it.
1165 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
1166
1167 2009-02-02 Paul Brook <paul@codesourcery.com>
1168
1169 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
1170
1171 2009-02-02 Jakub Jelinek <jakub@redhat.com>
1172
1173 PR inline-asm/39058
1174 * recog.h (asm_operand_ok): Add constraints argument.
1175 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
1176 recurse on matching constraint.
1177 (check_asm_operands): Pass constraints as 3rd argument to
1178 asm_operand_ok. Don't look up matching constraint here.
1179 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
1180 to asm_operand_ok.
1181
1182 2009-02-02 Ben Elliston <bje@au.ibm.com>
1183
1184 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
1185 TARGET_NARROW_VOLATILE_BITFIELD macro names.
1186
1187 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1188
1189 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
1190 information. Remove some obsolete information. Reorganize.
1191
1192 * config/pa/fptr.c: Revert license to GPL 2.
1193 * config/pa/milli64.S: Likewise.
1194
1195 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
1196
1197 PR target/38904
1198 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
1199 LIBRARY name in, instead of hard-coding it.
1200 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
1201 extra target make frag to tmake_files according to EH model.
1202 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
1203 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
1204 frags that define makefile variable EH_MODEL appropriately.
1205 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
1206 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
1207 to "-sjlj" according to type of EH configured.
1208 (LIBGCC_SONAME): Concatenate it to shared library base name.
1209 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
1210 to "_sjlj" according to type of EH configured.
1211 (LIBGCC_SONAME): Concatenate it to shared library base name.
1212 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
1213 (SHLIB_LINK): Add missing semicolon to if-else construct.
1214 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
1215 string value of "pe_dll" command-line option.
1216 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
1217 (SHLIB_SONAME): Use it when overriding t-cygming default.
1218 (SHLIB_IMPLIB): Override t-cygming default.
1219 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
1220 string value of "pe_dll" command-line option.
1221
1222 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
1223
1224 PR target/38952
1225 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
1226 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
1227
1228 2009-01-31 Richard Guenther <rguenther@suse.de>
1229
1230 PR tree-optimization/38937
1231 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
1232 computing the transitive closure.
1233
1234 2009-01-30 Richard Guenther <rguenther@suse.de>
1235
1236 PR tree-optimization/39041
1237 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
1238 Propagate variable indices only if the types match for this stmt.
1239
1240 2009-01-30 Jakub Jelinek <jakub@redhat.com>
1241
1242 PR target/39013
1243 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
1244 inline but never defined.
1245
1246 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
1247
1248 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
1249 (*insv_h_di_reg_extimm): New insn.
1250 (*insv_l<mode>_reg_extimm): New insn.
1251
1252 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1253
1254 * config/picochip/picochip.c (flag_conserve_stack): set
1255 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
1256 fconserve-stack. Reduce call-overhead used by inliner.
1257
1258 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1259
1260 PR/38157
1261 * common.opt (flag_conserve_stack): Initialised to zero.
1262
1263 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
1264
1265 PR/39002
1266 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
1267 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
1268 method.
1269
1270 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
1271
1272 * ira-color.c (allocno_reload_assign): Update comments.
1273 * regmove.c (regmove_optimize): Likewise.
1274
1275 * ra.h: Removed.
1276
1277 2009-01-29 Robert Millan <rmh@aybabtu.com>
1278
1279 * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
1280 * gcc/config/i386/kopensolaris-gnu.h: New file. Undefine
1281 `MD_UNWIND_SUPPORT'.
1282 * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
1283
1284 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
1285
1286 PR tree-optimization/39007
1287 * tree-loop-distribution.c (generate_builtin): Use
1288 recompute_dominator to compute the immediate dominator of the
1289 basic block just after the loop.
1290
1291 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1292
1293 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
1294 (ASM_OUTPUT_DWARF_PCREL): Define.
1295
1296 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
1297
1298 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
1299 * doc/passes.texi: Remove entries about regclass, local-alloc, and
1300 global. Modify entries about regmove and IRA.
1301
1302 * ra-conflict.c: Remove the file.
1303
1304 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
1305
1306 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
1307 (pass_regclass_init): Rename to pass_reginfo_init.
1308
1309 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
1310
1311 * toplev.h (flag_ira): Remove.
1312
1313 * caller-save.c (setup_save_areas): Remove flag_ira.
1314
1315 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
1316
1317 * global.c: Remove the file.
1318
1319 * opts.c: (decode_options): Remove flag_ira.
1320
1321 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
1322
1323 * regmove.c: Modify file description.
1324 (find_use_as_address, try_auto_increment): Define them only if
1325 AUTO_INC_DEC is defined.
1326 (replacement_quality, replace_in_call_usage, fixup_match_1,
1327 stable_and_no_regs_but_for_p): Remove.
1328 (reg_set_in_bb): Make it static.
1329 (regmove_optimize): Remove flag_ira and code which worked for
1330 !flag_ira.
1331
1332 * local-alloc.c: Remove the file.
1333
1334 * common.opt (fira): Remove.
1335
1336 * ira.c: Include except.h.
1337 (eliminable_regset): Move from global.c.
1338 (mark_elimination): Ditto. Remove flag_ira.
1339 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
1340 equiv_mem_modified, validate_equiv_mem_from_store,
1341 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
1342 contains_replace_regs, memref_referenced_p, memref_used_between_p,
1343 no_equiv, recorded_label_ref): Move from local-alloc.c.
1344 (update_equiv_regs): Ditto. Make it static.
1345 (print_insn_chain, print_insn_chains): Move it from global.c.
1346 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
1347 (build_insn_chain): Ditto. Make it static.
1348 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
1349 Rename to init_live_subregs.
1350 (gate_ira): Remove flag_ira.
1351
1352 * regclass.c: Rename reginfo.c. Change file description.
1353 (FORBIDDEN_INC_DEC_CLASSES): Remove.
1354 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
1355 (init_reg_sets_1): Remove code for evaluation of
1356 reg_class_superclasses and losing_caller_save_reg_set.
1357 (init_regs): Remove init_reg_autoinc.
1358 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
1359 ok_for_base_p_nonstrict): Remove.
1360 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
1361 (pass_regclass_init): Rename to pass_reginfo_init. Modify
1362 corresponding entries.
1363 (dump_regclass, record_operand_costs, scan_one_insn,
1364 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
1365 record_address_regs, auto_inc_dec_reg_p): Remove.
1366 (gt-regclass.h): Rename to gt-reginfo.h.
1367
1368 * rtl.h (dump_global_regs, retry_global_alloc,
1369 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
1370
1371 * Makefile.in (RA_H): Remove.
1372 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
1373 Rename regclass.o to reginfo.o.
1374 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
1375 gt-reginfo.h.
1376 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
1377 (GTFILES): Rename regclass.c to reginfo.c.
1378
1379 * passes.c (init_optimization_passes): Remove pass_local_alloc and
1380 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
1381
1382 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
1383 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
1384 Remove flag_ira.
1385 (finish_spills): Ditto. Remove code for !flag_ira.
1386
1387 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
1388
1389 PR middle-end/35854
1390 * doc/invoke.texi (rtl debug options): Complete rewrite.
1391 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
1392 to auto_inc_dec".
1393 * mode-switching.c (pass_mode_switching): Rename pass from
1394 "mode-sw" to "mode_sw".
1395 * except.c (pass_convert_to_eh_ranges): Rename pass from
1396 "eh-ranges" to "eh_ranges".
1397 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
1398 to "subreg1".
1399
1400
1401 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
1402 Alexander Monakov <amonakov@ispras.ru>
1403
1404 PR middle-end/38857
1405 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
1406 register.
1407 (move_exprs_to_boundary): Change return type and pass through
1408 should_move from move_op. Relax assert. Update usage ...
1409 (schedule_expr_on_boundary): ... here. Use should_move instead of
1410 cant_move.
1411 (move_op_orig_expr_found): Indicate that insn was disconnected from
1412 stream.
1413 (code_motion_process_successors): Do not call after_merge_succs
1414 callback if original expression was not found when traversing any of
1415 the branches.
1416 (code_motion_path_driver): Change return type. Update prototype.
1417 (move_op): Update comment. Add a new parameter (should_move). Update
1418 prototype. Set *should_move based on indication provided by
1419 move_op_orig_expr_found.
1420
1421 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
1422
1423 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
1424 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
1425 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
1426 * config/rs6000/rs6000.c (rs6000_override_options): Default
1427 avoid-indexed-addresses on for Power6, off for everything else.
1428 (avoiding_indexed_address_p): New function.
1429 (rs6000_legitimize_address): Use it.
1430 (rs6000_legitimate_address): Likewise.
1431 * config/rs6000/rs6000.md (movXX_updateX): Likewise
1432
1433 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
1434
1435 PR tree-optimization/38997
1436 * tree-loop-distribution.c (generate_memset_zero): Use
1437 POINTER_PLUS_EXPR for a pointer addition.
1438
1439 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
1440
1441 * config/s390/s390.md (bswap<mode>2): New pattern added.
1442
1443 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
1444
1445 * config/s390/s390.md (*tls_load_31): Added type attribute.
1446
1447 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
1448
1449 * config/s390/s390.md: Fix a few comments.
1450
1451 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
1452
1453 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
1454 (*tm<mode>_full): Fixed z10prop attribute.
1455 (*tst<mode>_extimm): Fixed z10prop attribute.
1456 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
1457 (*tstqiCCT_cconly): Fixed z10prop attribute.
1458 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
1459 (*movsi_larl): Fixed z10prop attribute.
1460 (*movsi_zarch): Fixed z10prop attribute.
1461 (*movsi_eas): Fixed z10prop attribute.
1462 (*movhi): Fixed z10prop attribute.
1463 (*movqi): Fixed z10prop attribute.
1464 (*movstrictqi): Fixed z10prop attribute.
1465 (*mov<mode>): Fixed z10prop attribute.
1466 (*movcc): Fixed z10prop attribute.
1467 (*sethighpartdi_64): Fixed z10prop attribute.
1468 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
1469 (*negdi2_sign_cc): Fixed z10prop attribute.
1470 (*negdi2_sign): Fixed z10prop attribute.
1471 (*absdi2_sign_cc): Fixed z10prop attribute.
1472 (*absdi2_sign): Fixed z10prop attribute.
1473 (*negabsdi2_sign_cc): Fixed z10prop attribute.
1474 (*negabsdi2_sign): Fixed z10prop attribute.
1475 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
1476 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
1477 (doloop_si64): Fixed z10prop attribute.
1478 (doloop_si31): Fixed z10prop attribute.
1479 (doloop_long): Fixed z10prop attribute.
1480 (indirect_jump): Fixed z10prop attribute.
1481 (nop): Fixed z10prop attribute.
1482 (main_base_64): Fixed z10prop attribute.
1483 (reload_base_64): Fixed z10prop attribute.
1484
1485 2009-01-28 Jakub Jelinek <jakub@redhat.com>
1486
1487 PR rtl-optimization/38740
1488 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
1489 if !optimize.
1490 * config/mips/mips.c (mips_reorg): Likewise.
1491
1492 2009-01-28 Richard Guenther <rguenther@suse.de>
1493
1494 PR tree-optimization/38926
1495 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
1496 with the correct value id to a value.
1497 (do_regular_insertion): Use the value number of edoubleprime
1498 for the value number of the expr.
1499
1500 Revert
1501 2008-08-21 Richard Guenther <rguenther@suse.de>
1502
1503 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
1504 a PHI ask VN if it is already available.
1505 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
1506 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
1507
1508 2009-01-28 Jakub Jelinek <jakub@redhat.com>
1509
1510 PR middle-end/38934
1511 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
1512 set to varying whenever max has TREE_OVERFLOW set, similarly
1513 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
1514
1515 2009-01-28 Richard Guenther <rguenther@suse.de>
1516
1517 PR middle-end/38908
1518 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
1519 uninitialized aggregate uses in call arguments.
1520
1521 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
1522
1523 PR tree-optimization/38984
1524 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
1525 the nothing_id variable if -fno-delete-null-pointer-checks.
1526
1527 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
1528
1529 PR target/38988
1530 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
1531 (set_got_offset_rex64): Ditto.
1532
1533 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
1534
1535 PR target/38941
1536 * doc/extend.texi: Improve local variable with asm reg.
1537
1538 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
1539
1540 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
1541 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
1542 was not supplied then set warn_packed_bitfield_compat to the
1543 default value of 1.
1544 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
1545 against 1.
1546
1547 2009-01-27 Richard Guenther <rguenther@suse.de>
1548
1549 PR tree-optimization/38503
1550 * cfgexpand.c (expand_gimple_basic_block): Ignore
1551 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
1552 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
1553 variables that cannot have TBAA applied.
1554 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
1555 statements.
1556
1557 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
1558
1559 PR middle-end/38969
1560 * calls.c (initialize_argument_information): Do not wrap complex
1561 arguments in SAVE_EXPR.
1562
1563 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
1564
1565 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
1566 (INSTALL_LIBGCC): Revert typo commit.
1567
1568 2009-01-26 Richard Guenther <rguenther@suse.de>
1569
1570 PR tree-optimization/38745
1571 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
1572 from special handling.
1573
1574 2009-01-26 Richard Guenther <rguenther@suse.de>
1575
1576 PR tree-optimization/38745
1577 * tree-ssa.c (execute_update_addresses_taken): Do not include
1578 variables that cannot possibly be a register in not_reg_needs.
1579 Do not clear TREE_ADDRESSABLE on vars that may not become
1580 registers.
1581 * tree-ssa.c (update_alias_info_1): Include those in the set
1582 of addressable vars.
1583
1584 2009-01-26 Richard Guenther <rguenther@suse.de>
1585
1586 PR middle-end/38851
1587 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
1588 * tree-ssa-dse.c: Include langhooks.h
1589 (execute_simple_dse): Remove stores with zero size.
1590
1591 2009-01-24 Jakub Jelinek <jakub@redhat.com>
1592
1593 PR c/38957
1594 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
1595 as PLUS_EXPR.
1596
1597 2009-01-24 Julian Brown <julian@codesourcery.com>
1598
1599 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
1600 config/arm/linux-atomic.c.
1601 * config/arm/linux-atomic.c: New.
1602
1603 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
1604
1605 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
1606 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
1607 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1608
1609 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
1610
1611 PR c/38938
1612 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
1613 properly.
1614
1615 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
1616
1617 PR tree-optimization/38953
1618 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
1619 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
1620 (gloog): Split the exit of the scop when the scop exit is a loop exit.
1621 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
1622 changed the CFG.
1623
1624 2009-01-24 Paul Brook <paul@codesourcery.com>
1625
1626 * config/arm/neon.md (neon_type): Move to arm.md.
1627 (neon_mov<VSTRUCT>): Add neon_type attribute.
1628 * config/arm/arm.md (neon_type): Move to here.
1629 (conds): Add "unconditioal" and use as default for NEON insns.
1630
1631 2009-01-24 Ben Elliston <bje@au.ibm.com>
1632
1633 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
1634 void *' warning from -Wc++-compat.
1635 * Makefile.in (dominance.o-warn): Remove.
1636
1637 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
1638
1639 PR tree-optimization/38932
1640 * fold-const.c (fold_unary_ignore_overflow): New.
1641 * tree.h (fold_unary_ignore_overflow): Declare.
1642 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
1643 * tree-ssa-sccvn.c (visit_reference_op_load,
1644 simplify_unary_expression): Likewise.
1645
1646 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
1647
1648 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
1649 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
1650 regardless of their type.
1651 * c-common.c (handle_packed_attribute): Don't ignore packed on
1652 bitfields.
1653 * c.opt (Wpacked-bitfield-compat): New warning option.
1654 * stor-layout.c (place_field): Warn if offset of a field changed.
1655 * doc/extend.texi (packed): Mention the ABI change.
1656 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
1657 (Warning Options): Add it to the list.
1658
1659 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
1660
1661 * c-opts.c (c_common_post_options): Fix a typo in comments.
1662
1663 2009-01-22 Steve Ellcey <sje@cup.hp.com>
1664
1665 PR middle-end/38615
1666 * gimplify.c (gimplify_init_constructor): Fix promotion of const
1667 variables to static.
1668 * doc/invoke.texi (-fmerge-all-constants): Update description.
1669
1670 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
1671
1672 PR target/38931
1673 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
1674 (*movdi_1_rex64): Use type "mmx" for alternative 5.
1675
1676 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
1677
1678 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
1679 a word boundary.
1680 (LOCAL_ALIGNMENT): Similarly.
1681
1682 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
1683 Joseph Myers <joseph@codesourcery.com>
1684
1685 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
1686 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
1687 * config/arm/arm-tune.md: Regenerate.
1688 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
1689 -march=iwmmxt2.
1690
1691 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
1692
1693 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
1694 version number to five.
1695
1696 2009-01-22 Dodji Seketeli <dodji@redhat.com>
1697
1698 PR c++/38930
1699 * c-decl.c: (clone_underlying_type): Revert PR c++/26693 changes.
1700 * c-common.c (set_underlying_type): Likewise.
1701 (is_typedef_decl ): Likewise
1702 * tree.h: Likewise
1703 (set_underlying_type): Likewise.
1704 (is_typedef_type): Likewise.
1705
1706 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
1707
1708 PR middle-end/38587
1709 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
1710 crossing setjmps.
1711
1712 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
1713
1714 PR bootstrap/37660
1715 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
1716 (LIBGCC_SPEC): Don't define.
1717 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
1718
1719 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
1720
1721 PR rtl-optimization/38879
1722 * alias.c (base_alias_check): Unaligned access via AND address can
1723 alias all surrounding object types except those with sizes equal
1724 or wider than the size of unaligned access.
1725
1726 2009-01-21 Dodji Seketeli <dodji@redhat.com>
1727
1728 PR c++/26693
1729 * c-decl.c: (clone_underlying_type): Move this ...
1730 * c-common.c (set_underlying_type): ... here.
1731 Also, make sure the function properly sets TYPE_STUB_DECL() on
1732 the newly created typedef variant type.
1733 (is_typedef_decl ): New entry point.
1734 * tree.h: Added a new member member_types_needing_access_check to
1735 struct tree_decl_non_common.
1736 (set_underlying_type): New entry point.
1737 (is_typedef_type): Likewise.
1738
1739 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
1740
1741 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
1742 Check whether two instructions have memory references that
1743 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
1744 are helper functions for traversing.
1745 * alias.h (insn_alias_sets_confilict_p): New prototypes.
1746 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
1747 not to draw dependency edge for instructions with non-conflicting
1748 alias sets.
1749
1750 2009-01-20 Joseph Myers <joseph@codesourcery.com>
1751
1752 PR other/38758
1753 * longlong.h: Update copyright years. Use soft-fp license notice.
1754 Sync __clz_tab declaration with glibc.
1755
1756 2009-01-20 Steve Ellcey <sje@cup.hp.com>
1757
1758 PR target/30687
1759 * doc/extend.texi (syscall_linkage): New.
1760 (version_id): Modify.
1761
1762 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1763 Richard Guenther <rguenther@suse.de>
1764
1765 PR tree-optimization/38747
1766 PR tree-optimization/38748
1767 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
1768 conversion if the base address is an indirect reference and the
1769 aliasing sets could cause issues.
1770
1771 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
1772
1773 * common.opt (fgraphite, fgraphite-identity): Add comment for
1774 explaining why these options are not documented.
1775
1776 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
1777
1778 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
1779 gimple_call_lhs is NULL.
1780
1781 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
1782
1783 PR target/38868
1784 * emit-rtl.c (adjust_address_1): Make sure memref is never
1785 overwritten.
1786
1787 2009-01-20 Ben Elliston <bje@au.ibm.com>
1788
1789 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
1790 const qualifier from arg parameter. Remove unnecessary cast to char *.
1791 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
1792 const qualifier from arg 2.
1793
1794 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1795
1796 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
1797
1798 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
1799
1800 PR c/38869
1801 * rtl.h (reinit_regs): New prototype.
1802 * regclass.c: Include ira.h.
1803 (reinit_regs): New.
1804 * Makefile.in (regclass.o): Add ira.h.
1805 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
1806
1807 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
1808
1809 PR target/38736
1810 * c-common.c (handle_aligned_attribute): Use
1811 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
1812 default alignment value.
1813
1814 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
1815
1816 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
1817 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
1818
1819 * doc/extend.texi: Update __attribute__ ((aligned)). Document
1820 __BIGGEST_ALIGNMENT__.
1821
1822 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
1823
1824 2009-01-18 Richard Guenther <rguenther@suse.de>
1825
1826 PR tree-optimization/38819
1827 * tree-flow.h (operation_could_trap_helper_p): Declare.
1828 * tree-eh.c (operation_could_trap_helper_p): Export.
1829 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
1830 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
1831 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
1832 are about to insert a possibly trapping instruction and fail
1833 in this case.
1834
1835 2009-01-18 Andreas Schwab <schwab@suse.de>
1836
1837 * doc/install.texi (Configuration): Remove obsolete paragraph
1838 about use of --with-gnu-ld with --with-gnu-as.
1839
1840 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
1841
1842 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
1843 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
1844 Follow spelling conventions.
1845
1846 2009-01-18 Ben Elliston <bje@au.ibm.com>
1847
1848 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
1849 C++ warning about implicit conversion from void * to struct
1850 bitmap_head_def *.
1851 (bitmap_obstack_free): Likewise for bitmap_element *.
1852 * Makefile.in (bitmap.o-warn): Remove.
1853
1854 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
1855
1856 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
1857
1858 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
1859 Tobias Grosser <tobi.grosser@amd.com>
1860
1861 * graphite.c (graphite_trans_scop_block): Do not block single
1862 nested loops.
1863
1864 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
1865
1866 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
1867 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
1868 test with assertion.
1869
1870 2009-01-16 Richard Guenther <rguenther@suse.de>
1871
1872 PR tree-optimization/38835
1873 PR middle-end/36227
1874 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
1875 and INT + PTR -> (INT)(PTR p+ INT) folding.
1876 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
1877
1878 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
1879
1880 PR target/38554
1881 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
1882 the subreg from a lowpart subreg if it is also casting the value.
1883
1884 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
1885 Tobias Grosser <tobi.grosser@amd.com>
1886
1887 * graphite.c (compare_prefix_loops): New.
1888 (build_scop_canonical_schedules): Rewritten.
1889 (graphite_transform_loops): Move build_scop_canonical_schedules
1890 after build_scop_iteration_domain.
1891
1892 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
1893 Tobias Grosser <tobi.grosser@amd.com>
1894
1895 * graphite.c (add_conditions_to_domain): Add the loops to
1896 the dimension of the iteration domain. Do copy the domain
1897 only when it exists.
1898 (build_scop_conditions_1): Do not call add_conditions_to_domain.
1899 (add_conditions_to_constraints): New.
1900 (can_generate_code_stmt, can_generate_code): Removed.
1901 (gloog): Do not call can_generate_code.
1902 (graphite_transform_loops): Call add_conditions_to_constraints
1903 after building the iteration domain.
1904
1905 2009-01-16 Jakub Jelinek <jakub@redhat.com>
1906
1907 PR tree-optimization/38789
1908 * tree-ssa-threadedge.c
1909 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1910 __builtin_constant_p.
1911
1912 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
1913
1914 * dce.c (delete_unmarked_insns): Reversed the order that insns are
1915 examined before deleting them.
1916
1917 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
1918
1919 * function.c (aggregate_value_p): Correctly extract the function
1920 type from CALL_EXPR_FN lookup.
1921
1922 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
1923
1924 * config/picochip/picochip.c (picochip_override_options): Revert
1925 CFI asm flag disable commited previously.
1926
1927 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
1928 Tobias Grosser <tobi.grosser@amd.com>
1929 Jan Sjodin <jan.sjodin@amd.com>
1930
1931 * graphite.c (scan_tree_for_params): On substractions negate
1932 all the coefficients of the term.
1933 (clast_to_gcc_expression_red): New. Handle reduction expressions
1934 of more than two operands.
1935 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
1936 (get_vdef_before_scop): Handle also the case of default definitions.
1937
1938 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
1939
1940 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
1941 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
1942 Also use them when walking CALL_INSN_FUNCTION_USAGE.
1943
1944 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
1945 Joey Ye <joey.ye@intel.com>
1946
1947 PR middle-end/37843
1948 * cfgexpand.c (expand_stack_alignment): Don't update stack
1949 boundary nor check incoming stack boundary here.
1950 (gimple_expand_cfg): Update stack boundary and check incoming
1951 stack boundary here.
1952
1953 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
1954
1955 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
1956
1957 2009-01-14 Jakub Jelinek <jakub@redhat.com>
1958
1959 PR rtl-optimization/38245
1960 * calls.c (expand_call): Add stack arguments to
1961 CALL_INSN_FUNCTION_USAGE even for pure calls (when
1962 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
1963 in regs and partially in memory or BLKmode arguments.
1964 (emit_library_call_value_1): Add stack arguments to
1965 CALL_INSN_FUNCTION_USAGE even for pure calls (when
1966 ACCUMULATE_OUTGOING_ARGS).
1967 * dce.c: Include tm_p.h.
1968 (find_call_stack_args): New function.
1969 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
1970 argument.
1971 (mark_insn): Call find_call_stack_args for CALL_Ps.
1972 (prescan_insns_for_dce): Walk insns backwards in bb rather than
1973 forwards. Allocate and free arg_stores bitmap if needed, pass it
1974 down to deletable_insn_p, don't mark stores set in arg_stores
1975 bitmap, clear the bitmap at the beginning of each bb.
1976 * Makefile.in (dce.o): Depend on $(TM_P_H).
1977
1978 2009-01-14 Michael Meissner <gnu@the-meissners.org>
1979
1980 PR target/22599
1981 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
1982 to make sure the insn is a conditional test (bug 22599). Reformat a
1983 few long lines.
1984
1985 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
1986
1987 PR middle-end/38431
1988 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
1989 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
1990 (gloog): Do not call cleanup_tree_cfg.
1991 (graphite_transform_loops): Call cleanup_tree_cfg after all
1992 scops have been code generated.
1993
1994 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
1995 * doc/gty.texi (Invoking the garbage collector): Added new node
1996 and section documenting ggc_collect.
1997
1998 2009-01-14 Richard Guenther <rguenther@suse.de>
1999
2000 PR tree-optimization/38826
2001 PR middle-end/38477
2002 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
2003 initialization notes only if we actually emitted a warning.
2004 (intra_create_variable_infos): Add constraints for a result decl
2005 that is passed by hidden reference.
2006 (build_pred_graph): Mark all related variables non-direct on
2007 address-taking.
2008
2009 2009-01-14 Nick Clifton <nickc@redhat.com>
2010
2011 * ira-conflicts.c: Include addresses.h for the definition of
2012 base_reg_class.
2013 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
2014 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
2015
2016 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
2017
2018 PR target/38811
2019 * Makefile.in (ira-lives.o): Add except.h.
2020
2021 * ira-lives.c: Include except.h.
2022 (process_bb_node_lives): Process can_throw_internal.
2023
2024 2009-01-13 Jakub Jelinek <jakub@redhat.com>
2025
2026 PR rtl-optimization/38774
2027 * combine.c (simplify_set): When undoing cc_use change, don't do
2028 PUT_CODE on the newly created comparison, but instead put back the
2029 old comparison.
2030
2031 2009-01-13 Joseph Myers <joseph@codesourcery.com>
2032
2033 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
2034 values. Remove duplicate arm8 entry.
2035
2036 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2037
2038 PR tree-optimization/38786
2039 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
2040 the SSA_NAME case of expand_scalar_variables_expr.
2041 Set the type of an expression to the type of its assign statement.
2042 (expand_scalar_variables_expr): Also gather the scalar computation
2043 used to index the memory access. Do not pass loop_p.
2044 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
2045 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
2046 the gimple_stmt_iterator where it inserts new code.
2047 Do not pass loop_p.
2048 (copy_bb_and_scalar_dependences): Do not pass loop_p.
2049 (translate_clast): Update call to copy_bb_and_scalar_dependences.
2050
2051 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2052
2053 * graphite.h (debug_value): Removed.
2054 * graphite.c (debug_value): Removed.
2055
2056 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
2057
2058 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
2059 ldrd/strd with two 32-bit instructions.
2060
2061 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
2062
2063 * config/arm/arm.c (struct processors): Pass for speed down into
2064 cost helper functions.
2065 (const_ok_for_op): Handle COMPARE and inequality nodes.
2066 (arm_rtx_costs_1): Rewrite.
2067 (arm_size_rtx_costs): Update prototype.
2068 (arm_rtx_costs): Pass speed down to helper functions.
2069 (arm_slowmul_rtx_costs): Rework cost calculations.
2070 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
2071 (arm_9e_rtx_costs): Likewise.
2072
2073 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
2074
2075 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
2076 relocations of local symbols wider than UNITS_PER_WORD are not valid.
2077 (alpha_legitimize_address): Do not split local symbols wider than
2078 UNITS_PER_WORD into HIGH/LO_SUM parts.
2079
2080 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
2081
2082 PR bootstrap/38580
2083 * gcc.c (process_command): Replace call to execvp with calls
2084 to pex_one and exit.
2085
2086 2009-01-03 Anatoly Sokolov <aesok@post.ru>
2087
2088 PR target/29141
2089 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
2090 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
2091 variant for devices with 3-byte PC.
2092 (__tablejump_elpm__) : New.
2093
2094 2009-01-12 Jakub Jelinek <jakub@redhat.com>
2095
2096 PR c/32041
2097 * c-parser.c (c_parser_postfix_expression): Allow `->' in
2098 offsetof member-designator, handle it as `[0].'.
2099
2100 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2101
2102 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
2103 function when not using named sections on targets with named sections
2104 if branch distance is less than 262132.
2105
2106 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
2107
2108 * combine.c (combine_instructions): Recompute
2109 optimize_this_for_speed_p for each BB in the main combine loop.
2110
2111 2009-01-12 Tomas Bily <tbily@suse.cz>
2112
2113 PR middlend/38385
2114 * tree-loop-distribution.c (prop_phis): New function.
2115 (generate_builtin): Call prop_phis.
2116 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
2117
2118 2009-01-12 Jakub Jelinek <jakub@redhat.com>
2119
2120 PR tree-optimization/38807
2121 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
2122 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
2123
2124 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
2125
2126 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
2127 subreg of op0 to the original op0.
2128
2129 2009-01-11 Laurent GUERBY <laurent@guerby.net>
2130
2131 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2132
2133 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
2134
2135 PR debug/7055
2136 * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
2137 starting with digits.
2138
2139 2009-01-10 Jakub Jelinek <jakub@redhat.com>
2140
2141 PR target/38695
2142 * config/arm/arm.c (arm_is_long_call_p): Don't call
2143 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
2144
2145 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
2146
2147 * regrename.c (regrename_optimize): Fix dumping.
2148 (find_oldest_value_reg): Preserve REG_POINTER.
2149 (copy_hardreg_forward_1): Likewise.
2150
2151 2009-01-09 Diego Novillo <dnovillo@google.com>
2152
2153 * gimple.h (struct gimple_statement_base) <uid>: Document
2154 the restrictions on its use.
2155 (gimple_uid): Tidy.
2156 (gimple_set_uid): Tidy.
2157
2158 2009-01-09 Jakub Jelinek <jakub@redhat.com>
2159
2160 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
2161 zero guard even if align_bytes != 0 and count is smaller than
2162 size_needed.
2163
2164 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
2165
2166 PR rtl-optimization/38495
2167 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
2168 (add_range_and_copies_from_move_list): Print all added ranges.
2169 Add ranges to memory optimized destination.
2170
2171 2009-01-09 Jakub Jelinek <jakub@redhat.com>
2172
2173 PR target/38686
2174 PR target/38708
2175 * config/i386/i386.c (override_options): Reject
2176 -mstringop-strategy=rep_8byte with -m32.
2177 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
2178 to 1. Do count comparison against epilogue_size_needed at compile
2179 time even when count_exp was constant forced into register. For
2180 size_needed don't jump to epilogue, instead just avoid aligning
2181 and invoke the body algorithm. If need_zero_guard, add zero guard
2182 even if count is non-zero, but smaller than size_needed + number of
2183 bytes that could be stored for alignment.
2184 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
2185 to 1. If need_zero_guard, add zero guard even if count is non-zero,
2186 but smaller than size_needed + number of bytes that could be stored
2187 for alignment. Compare size_needed with epilogue_size_needed instead
2188 of desired_align - align, don't adjust size_needed, pass
2189 epilogue_size_needed to the epilogue expanders.
2190
2191 PR c/35742
2192 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
2193
2194 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2195
2196 * pa.c (last_address): Change to unsigned.
2197 (update_total_code_bytes): Change argument to unsigned. Don't
2198 check if insn addresses are set.
2199 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
2200 addresses are not set.
2201 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
2202
2203 2009-01-09 Nick Clifton <nickc@redhat.com>
2204
2205 * config/sh/symbian.c: Replace uses of DECL_INLINE with
2206 DECL_DECLARED_INLINE_P.
2207
2208 2009-01-09 Jakub Jelinek <jakub@redhat.com>
2209
2210 PR middle-end/38347
2211 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
2212 GET_MODE (op0) in operand_subword_force calls.
2213
2214 PR middle-end/38771
2215 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
2216 fold_convert arg0 operands to TREE_TYPE (op0) first.
2217
2218 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
2219
2220 * params.def (ira-max-conflict-table-size): Decrease default value
2221 to 1000.
2222
2223 2009-01-08 Jakub Jelinek <jakub@redhat.com>
2224
2225 PR tree-optimization/37031
2226 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
2227 on parameter_set.
2228 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
2229 allocate it using gc instead of heap, use VEC_quick_push instead of
2230 VEC_safe_push.
2231 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
2232 instead of heap, use VEC_quick_push instead of VEC_safe_push.
2233 * tree-data-ref.h (struct access_matrix): Change matrix to gc
2234 allocated vector from heap allocated.
2235 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
2236 * tree-loop-linear.c (linear_transform_loops): Allocate nest
2237 vector only after perfect_loop_nest_depth call.
2238
2239 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
2240 Jan Sjodin <jan.sjodin@amd.com>
2241
2242 PR tree-optimization/38559
2243 * graphite.c (debug_value, copy_constraint,
2244 swap_constraint_variables, scale_constraint_variable, ): New.
2245 (get_lower_bound, get_upper_bound): Removed.
2246 (graphite_trans_bb_strip_mine): Clean up this code that works
2247 only for constant number of iterations. Fully copy upper and
2248 lower bound constraints, not only the constant part of them.
2249 * graphite.h (debug_value): Declared.
2250
2251 2009-01-08 Ira Rosen <irar@il.ibm.com>
2252
2253 PR tree-optimization/37194
2254 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2255 Don't add the cost of cost model guard in prologue to scalar
2256 outside cost in case of known number of iterations.
2257
2258 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
2259 Alan Modra <amodra@bigpond.net.au>
2260
2261 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
2262 non-word-aligned REG+CONST addressing.
2263
2264 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
2265
2266 PR target/38706
2267 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
2268 free_after_compilation when outputting a thunk.
2269 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
2270 Do not call free_after_compilation here.
2271
2272 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
2273
2274 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
2275 (ix86_valid_target_attribute_inner_p): Ditto.
2276
2277 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
2278
2279 PR tree-optimization/38492
2280 PR tree-optimization/38498
2281 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
2282 * tree-chrec.h (scev_is_linear_expression): Declared.
2283 * graphite.c (graphite_cannot_represent_loop_niter): New.
2284 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
2285 (graphite_loop_normal_form): Use gcc_assert.
2286 (scan_tree_for_params): Use CASE_CONVERT.
2287 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
2288 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
2289 Use gcc_assert. Discard scops that contain unhandled cases.
2290 (build_scop_conditions): Return a boolean status for unhandled cases.
2291 (strip_mine_profitable_p): Print the loop number, not its depth.
2292 (is_interchange_valid): Pass the depth of the loop nest, don't
2293 recompute it wrongly.
2294 (graphite_trans_bb_block): Same.
2295 (graphite_trans_bb_block): Print tentative of loop blocking.
2296 (graphite_trans_scop_block): Do not print that the loop has been
2297 blocked.
2298 (graphite_transform_loops): Do not handle scops that contain condition
2299 scalar phi nodes.
2300
2301 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
2302
2303 AVX Programming Reference (December, 2008)
2304 * config/i386/avxintrin.h (_mm256_stream_si256): New.
2305 (_mm256_stream_pd): Likewise.
2306 (_mm256_stream_ps): Likewise.
2307
2308 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
2309 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
2310 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
2311 (bdesc_special_args): Add __builtin_ia32_movntdq256,
2312 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
2313 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
2314 (ix86_expand_special_args_builtin): Likewise.
2315
2316 * config/i386/sse.md (AVXMODEDI): New.
2317 (avx_movnt<mode>): Likewise.
2318 (avx_movnt<mode>): Likewise.
2319 (<sse>_movnt<mode>): Remove AVX support.
2320 (sse2_movntv2di): Likewise.
2321
2322 2009-01-07 Richard Guenther <rguenther@suse.de>
2323
2324 PR middle-end/38751
2325 * fold-const.c (extract_muldiv): Remove obsolete comment.
2326 (fold_plusminus_mult_expr): Undo MINUS_EXPR
2327 to PLUS_EXPR canonicalization for the canonicalization.
2328
2329 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
2330
2331 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
2332 hosted cross-compilers generating less efficient code.
2333
2334 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
2335
2336 * function.h (rtl_data): Add a dbr_scheduled_p field.
2337 * reorg.c (dbr_schedule): Set it.
2338 (gate_handle_delay_slots): Check it.
2339 * config/mips/mips.c (mips_base_delayed_branch): Delete.
2340 (mips_reorg): Check flag_delayed_branch instead of
2341 mips_base_delayed_branch.
2342 (mips_override_options): Don't set mips_base_delayed_branch
2343 or flag_delayed_branch.
2344
2345 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
2346
2347 PR rtl-optimization/38426.
2348 * ira.c (ira): Set current_function_is_leaf earlier.
2349
2350 2009-01-06 Jakub Jelinek <jakub@redhat.com>
2351
2352 PR rtl-optimization/38722
2353 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
2354 too early, only set a flag and modify after last possible
2355 undo_all point.
2356
2357 2009-01-06 Janis Johnson <janis187@us.ibm.com>
2358
2359 PR c/34252
2360 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
2361 * real.c (decimal_single_format): Correct values of emin and emax.
2362 (decimal_double_format): Ditto.
2363 (decimal_quad_format): Ditto.
2364 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
2365 computation of DECnn_MIN and DECnn_MAX for corrected values of
2366 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
2367 __DECnn_MIN__, and adjust its computation for the corrected value
2368 of emin.
2369
2370 2009-01-06 Jan Hubicka <jh@suse.cz>
2371
2372 PR target/38744
2373 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
2374
2375 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
2376
2377 * doc/contrib.texi (Contributors): Slightly adjust the end note.
2378 Add Robert Clark to the list of testers.
2379
2380 2009-01-06 Jan Hubicka <jh@suse.cz>
2381 Kai Tietz <kai.tietz@onevision.com>
2382
2383 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
2384 * config/i386/i386.c (ix86_expand_call): Add clobbers.
2385
2386 2009-01-06 Jan Hubicka <jh@suse.cz>
2387 Kai Tietz <kai.tietz@onevision.com>
2388
2389 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
2390 for w64 ABI.
2391 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
2392 (ix86_nsaved_regs): Count only general purpose regs.
2393 (ix86_nsaved_sseregs): New.
2394 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
2395 to 16 for w64; compute padding and size of sse reg save area.
2396 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
2397 general purpose regs.
2398 (ix86_emit_save_sse_regs_using_mov): New.
2399 (ix86_expand_prologue): Save SSE regs if needed.
2400 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
2401 (ix86_emit_restore_sse_regs_using_mov): New.
2402 (ix86_expand_epilogue): Save SSE regs if needed.
2403
2404 2009-01-06 Jan Hubicka <jh@suse.cz>
2405 Kai Tietz <kai.tietz@onevision.com>
2406
2407 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
2408 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
2409 functions when accumulate outgoing args is off.
2410
2411 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
2412
2413 PR bootstrap/38742
2414 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
2415 before using pseudos_have_intersected_live_ranges_p.
2416
2417 * ira-int.h (ira_assert): Always define.
2418
2419 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
2420
2421 AVX Programming Reference (December, 2008)
2422 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
2423 (_mm256_permute2_pd): Likewise.
2424 (_mm_permute2_ps): Likewise.
2425 (_mm256_permute2_ps): Likewise.
2426 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
2427 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
2428
2429 * config/i386/i386.c (ix86_builtins): Remove
2430 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2431 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
2432 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
2433 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
2434 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2435 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
2436 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
2437 __builtin_ia32_vpermil2ps256.
2438 (ix86_init_mmx_sse_builtins): Updated.
2439 (ix86_expand_args_builtin): Likewise.
2440
2441 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2442
2443 * pa.c (output_call): Relocate non-jump insns in the delay slot of
2444 long absolute calls when generating PA 2.0 code.
2445
2446 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
2447
2448 PR rtl-optimization/38583
2449 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
2450
2451 * params.def (ira-max-conflict-table-size): New.
2452
2453 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2454
2455 * ira.h (ira_conflicts_p): New external definition.
2456
2457 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
2458 table. Report this. Return result of building.
2459 (ira_build_conflicts): Use ira_conflicts_p. Check result of
2460 building conflict table.
2461
2462 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
2463 (ira_color): Use ira_conflicts_p.
2464
2465 * global.c: Include ira.h.
2466 (pseudo_for_reload_consideration_p, build_insn_chain): Use
2467 ira_conflicts_p.
2468
2469 * Makefile.in (global.o): Add ira.h.
2470
2471 * ira-build.c (mark_all_loops_for_removal,
2472 propagate_some_info_from_allocno): New.
2473 (remove_unnecessary_allocnos): Call
2474 propagate_some_info_from_allocno.
2475 (remove_low_level_allocnos): New.
2476 (remove_unnecessary_regions): Add parameter. Call
2477 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
2478 parameter to remove_unnecessary_regions.
2479 (ira_build): Remove all regions but root if the conflict table was
2480 not built. Update conflict hard regs for allocnos crossing calls.
2481
2482 * ira.c (ira_conflicts_p): New global.
2483 (ira): Define and use ira_conflicts_p.
2484
2485 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
2486 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
2487 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2488
2489 2009-01-06 Ben Elliston <bje@au.ibm.com>
2490
2491 * gengtype-lex.l (YY_NO_INPUT): Define.
2492
2493 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2494
2495 PR c/34911
2496 * c-common.c (handle_vector_size_attribute): Also reject
2497 BOOLEAN_TYPE types.
2498
2499 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
2500
2501 PR tree-optimization/38492
2502 * graphite.c (rename_map_elt, debug_rename_elt,
2503 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
2504 rename_map_elt_info, eq_rename_map_elts,
2505 get_new_name_from_old_name, bb_in_sese_p): Moved around.
2506 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
2507 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
2508 (sese_build_livein_liveouts): New.
2509 (new_sese, free_sese): New.
2510 (new_scop): Call new_sese.
2511 (free_scop): Call free_sese.
2512 (rename_variables_from_edge, rename_phis_end_scop): Removed.
2513 (register_old_new_names): Renamed register_old_and_new_names.
2514 (register_scop_liveout_renames, add_loop_exit_phis,
2515 insert_loop_close_phis, struct igp,
2516 default_liveout_before_guard, add_guard_exit_phis,
2517 insert_guard_phis, copy_renames): New.
2518 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
2519 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
2520 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
2521 (scop_adjust_phis_for_liveouts): New.
2522 (gloog): Call scop_adjust_phis_for_liveouts.
2523
2524 * graphite.h (struct sese): Documented. Added fields liveout,
2525 num_ver and livein.
2526 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
2527 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
2528 (struct scop): Added field liveout_renames.
2529 (SCOP_LIVEOUT_RENAMES): New.
2530
2531 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
2532
2533 PR tree-optimization/38510
2534 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
2535 (translate_clast): Call recompute_all_dominators before
2536 graphite_verify.
2537 (gloog): Call recompute_all_dominators before graphite_verify.
2538
2539 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
2540 Jan Sjodin <jan.sjodin@amd.com>
2541
2542 PR tree-optimization/38500
2543 * graphite.c (create_sese_edges): Call fix_loop_structure after
2544 splitting blocks.
2545
2546 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2547
2548 * config.gcc: Add m32r*-*-rtems*.
2549 * config/m32r/rtems.h: New file.
2550
2551 2009-01-05 Ben Elliston <bje@au.ibm.com>
2552
2553 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
2554 (.po.pox): Likewise.
2555 (po/gcc.pot): Likewise.
2556
2557 2009-01-04 David S. Miller <davem@davemloft.net>
2558
2559 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
2560 (STARTING_FRAME_OFFSET): Always set to zero.
2561
2562 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
2563
2564 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
2565 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
2566 fixed-point types, and vectors of the same.
2567
2568 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
2569
2570 * config/mips/sync.md (*mb_barrier): Rename to...
2571 (*memory_barrier): ...this.
2572
2573 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2574
2575 * doc/extend.texi (Function Attributes): Move @cindex after @item
2576 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
2577 and put in alphabetical order. Fix 'target' name and put in order.
2578 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
2579 typos.
2580
2581 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
2582
2583 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
2584 (memory_barrier): Expand as unspec instead of unspec_volatile.
2585 Remove mem:BLK from insn operands. Use Pmode scratch register.
2586 (*memory_barrier): Define as unspec instead of unspec_volatile.
2587 Use (match_dup 0) as input operand.
2588
2589 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
2590 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
2591 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
2592 scratch register. Remove operand 1.
2593 (*stbar): Define as unspec instead of unspec_volatile.
2594 Use (match_dup 0) as input operand, remove (const_int 8).
2595 (*membar): Define as unspec instead of unspec_volatile.
2596 Use (match_dup 0) as input operand, remove input operand 2.
2597
2598 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
2599 (memory_barrier): Expand as unspec instead of unspec_volatile.
2600 Remove mem:BLK from insn operands. Use Pmode scratch register.
2601 (*memory_barrier): Define as unspec instead of unspec_volatile.
2602 Use (match_dup 0) as input operand.
2603
2604 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
2605 Remove mem:BLK from insn operands. Use Pmode scratch register.
2606 Set volatile flag on operand 0.
2607 (*memory_barrier): New insn pattern.
2608
2609 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
2610 insn operands.
2611 (*memory_barrier): Use (match_dup 0) as input operand.
2612
2613 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
2614 Remove mem:BLK from insn operands. Use Pmode scratch register.
2615 Set volatile flag on operand 0.
2616 (*mb_internal): New insn pattern.
2617
2618 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
2619
2620 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
2621
2622 PR middle-end/38586
2623 * function.c (struct temp_slot): Move to the section of the file
2624 that deals with temp slots. Remove field 'address'.
2625 (temp_slot_address_table): New hash table of address -> temp slot.
2626 (struct temp_slot_address_entry): New struct, items for the table.
2627 (temp_slot_address_compute_hash, temp_slot_address_hash,
2628 temp_slot_address_eq, insert_temp_slot_address): Support functions
2629 for the new table.
2630 (find_temp_slot_from_address): Rewrite to use the new hash table.
2631 (remove_unused_temp_slot_addresses): Remove addresses of temp
2632 slots that have been made available.
2633 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
2634 worker function for remove_unused_temp_slot_addresses.
2635 (assign_stack_temp_for_type): Don't clear the temp slot address list.
2636 Add the temp slot address to the address -> temp slot map.
2637 (update_temp_slot_address): Update via insert_temp_slot_address.
2638 (free_temp_slots): Call remove_unused_temp_slot_addresses.
2639 (pop_temp_slots): Likewise.
2640 (init_temp_slots): Allocate the address -> temp slot map, or empty
2641 the map if it is already allocated.
2642 (prepare_function_start): Initialize temp slot processing.
2643
2644 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
2645
2646 PR middle-end/38584
2647 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
2648 Calculate the size of all stack vars assuming no packing of stack
2649 vars will happen, replacing a quadratic algorithm with a linear one.
2650
2651 2009-01-03 Jakub Jelinek <jakub@redhat.com>
2652
2653 PR target/38707
2654 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
2655 can't be used.
2656
2657 2009-01-03 Diego Novillo <dnovillo@google.com>
2658
2659 * doc/contrib.texi: Update contributions.
2660
2661 2009-01-03 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR c++/38705
2664 * builtins.c (fold_builtin_memory_op): Give up if either operand
2665 is volatile. Set srctype or desttype to non-qualified version
2666 of the other type.
2667
2668 PR c/38700
2669 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
2670 and FUNCTION_DECLs.
2671
2672 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
2673
2674 PR rtl-optimization/35805
2675 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
2676 problem if fast dce is able to remove any instructions.
2677 * dce.c (dce_process_block): Fix dump message.
2678
2679 2009-01-02 Mark Mitchell <mark@codesourcery.com>
2680
2681 PR 33649
2682 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
2683
2684 2009-01-02 Jakub Jelinek <jakub@redhat.com>
2685
2686 PR middle-end/38690
2687 * tree-flow.h (op_code_prio, op_prio): New prototypes.
2688 * tree-pretty-print.c (op_code_prio): New function.
2689 (op_prio): No longer static. Use op_code_prio.
2690 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
2691 Use op_prio and op_code_prio to determine if () should be
2692 printed around operand(s) or not.
2693
2694 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
2695 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
2696 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
2697 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
2698 pp_character instead of pp_string for single letter printing.
2699
2700 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2701
2702 * doc/extend.texi: Fix '#pragma GCC option' typo.
2703
2704 2009-01-02 Richard Guenther <rguenther@suse.de>
2705
2706 * doc/install.texi (--enable-checking): Mention different
2707 default for stage1.
2708 (--enable-stage1-checking): Document.
2709
2710 2009-01-01 Andrew Pinski <pinskia@gmail.com>
2711
2712 PR middle-end/30142
2713 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
2714 case to be an error.
2715
2716 2009-01-02 Ben Elliston <bje@au.ibm.com>
2717
2718 * config/fp-bit.h (pack_d): Constify argument.
2719 * config/fp-bit.c (makenan): Constify return type. Remove casts.
2720 (isnan): Constify argument.
2721 (isinf): Likewise.
2722 (iszero): Likewise.
2723 (pack_d): Likewise.
2724 (_fpadd_parts): Constify return type.
2725 (_fpmul_parts): Likewise.
2726 (_fpdiv_parts): Likewise.
2727
2728 2009-01-01 Jakub Jelinek <jakub@redhat.com>
2729
2730 PR c/36489
2731 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
2732 warn about overwriting initializer with side-effects or
2733 -Woverride-init if !IMPLICIT.
2734 (output_init_element): Likewise. Pass IMPLICIT down to
2735 add_pending_init.
2736 (process_init_element): Add IMPLICIT argument. Pass it down
2737 to output_init_element.
2738 (push_init_element, pop_init_level, set_designator): Adjust
2739 process_init_element callers.
2740 (set_nonincremental_init, set_nonincremental_init_from_string):
2741 Adjust add_pending_init callers.
2742 (output_pending_init_elements): Adjust output_init_element callers.
2743 * c-tree.h (process_init_element): Adjust prototype.
2744 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
2745 process_init_element callers.