OSDN Git Service

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