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