OSDN Git Service

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