OSDN Git Service

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