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