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