OSDN Git Service

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