OSDN Git Service

522968000e3193388809793fca07b8066da03338
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-07-22  Doug Kwan  <dougkwan@google.com>
2
3         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
4
5 2009-07-22  Michael Matz  <matz@suse.de>
6
7         PR tree-optimization/35229
8         PR tree-optimization/39300
9
10         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11         (inhibit_phi_insertion): New function.
12         (insert_into_preds_of_block): Call it for REFERENCEs.
13         (init_pre): Initialize and finalize scalar evolutions.
14         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
15
16 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
17
18         * config/i386/predicates.md (zero_extended_scalar_load_operand):
19         Use CONST_VECTOR_NUNITS to determine number of elements.
20
21 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
22
23         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
24         (U, W): Constraints are now deprecated and will be removed if we
25         run out of letters.     
26         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
27         the file.
28         ("prefetch"): Add the stcmh instruction for prefetching.
29         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
30         changes.
31         (s390_short_displacement): Return always true if compiling for
32         machines not providing the long displacement facility.
33         (s390_mem_constraint): Support the new constraint letter Z.
34         (s390_check_qrst_address): New function.
35
36 2009-07-21  DJ Delorie  <dj@redhat.com>
37
38         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
39         alone too.
40
41 2009-07-21  Jason Merrill  <jason@redhat.com>
42
43         * c-common.c (max_tinst_depth): Increase default to 1024.
44
45 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
46
47         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
48         (vec_unpacku_float_lo_v4si): Ditto.
49
50 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
51
52         PR target/40811
53         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
54         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
55         (builtin_description): Add __builtin_ia32_cvtudq2ps.
56         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
57
58 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
59
60         PR tree-optimization/40813
61         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
62         it.
63
64 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
65
66         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
67         with a NOP_EXPR if needed.
68
69 2009-07-21  Paul Brook <paul@codesourcery.com>
70
71         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
72         Terminate debug dump with newline.
73
74 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
75
76         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
77         Cast "1" to unsigned HOST_WIDE_INT.
78         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
79         deposit length to the maximum length - lsb.  Extend length if
80         HOST_BITS_PER_WIDE_INT is 32.
81
82 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
83
84         * cgraph.h (constant_pool_htab): New function.
85         (constant_descriptor_tree): Move from varasm.c.
86         * varasm.c (constant_pool_htab): New function.
87         (constant_descriptor_tree): Move to cgraph.h.
88
89 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
90
91         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
92
93 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
94
95         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
96         $(VARRAY_H).
97
98 2009-07-20  Xinliang David Li  <davidxl@google.com>
99
100         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
101
102 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
103
104         * config/mips/mips.md (move_type): Add arith.
105         (type): Handle arith.
106         (zero_extendsidi2): Rename this into ...
107         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
108         (zero_extendsidi2): New expander.
109         (*zero_extendsidi2_dext): New pattern.
110
111 2009-07-20  Nick Clifton  <nickc@redhat.com>
112
113         * config.gcc (mips64-*-*): Add definition of tm_defines in order
114         to set MIPS_ABI_DEFAULT.
115         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
116
117 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
118
119         * tree-object-size.c (addr_object_size): Handle unions with
120         array in it as last field of structs in __bos (, 1) as __bos (, 0).
121
122         PR tree-optimization/40792
123         * tree.c (build_function_type_skip_args): Remove bogus assert.
124
125 2009-07-20  Jan Hubicka  <jh@suse.cz>
126             Martin Jambor  <mjambor@suse.cz>
127
128         * cgraph.h (combined_args_to_skip): New field.
129         * cgraph.c (cgraph_create_virtual_clone): Properly handle
130         combined_args_to_skip and args_to_skip.
131         * tree-inline.c (update_clone_info): New function.
132         (tree_function_versioning): Call update_clone_info.
133         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
134         functions.
135         (cgraph_materialize_all_clones): More extensive dumping, working
136         with combined_args_to_skip rather than args_to_skip.
137
138 2009-07-20  Ira Rosen  <irar@il.ibm.com>
139
140         * tree-vectorizer.h (vectorizable_condition): Add parameters.
141         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
142         (get_initial_def_for_reduction): Likewise.
143         (vectorizable_reduction): Skip the check of first operand in case
144         of COND_EXPR. Add check that it is outer loop vectorization if
145         nested cycle was detected. Call vectorizable_condition() for 
146         COND_EXPR. If reduction epilogue cannot be created do not fail for
147         nested cycles (if it is not double reduction). Assert that there
148         is only one type in the loop in case of COND_EXPR. Call
149         vectorizable_condition() to vectorize COND_EXPR.
150         * tree-vect-stmts.c (vectorizable_condition): Update comment.
151         Add parameters. Allow nested cycles if called from 
152         vectorizable_reduction(). Use reduction vector variable if provided.
153         (vect_analyze_stmt): Call vectorizable_reduction() before
154         vectorizable_condition().
155         (vect_transform_stmt): Update call to vectorizable_condition().
156
157 2009-07-20  Christian Bruel  <christian.bruel@st.com>
158         
159         * config/sh/sh.opt (-mfmovd): Resurrect and document.
160         * doc/invoke.texi (-mfmovd): Likewise.
161         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
162         
163 2009-07-20  Jan Hubicka  <jh@suse.cz>
164
165         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
166         when handling SSA name.
167
168 2009-07-19  Jan Hubicka  <jh@suse.cz>
169
170         PR tree-optimization/40676
171         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
172         virtual PHIs in empty BBs.
173
174 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
175
176         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
177         re-expanded the compound use gen_lowpart instead to convert to the
178         desired mode.
179
180 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
181
182         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
183         OUTER_CONST arguments.
184         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
185         the new wider mode will be masked off.
186         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
187
188 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
189
190         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
191         high-order bits are zero.
192
193 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
194
195         * combine.c (simplify_shift_const_1): Split code to determine
196         shift_mode into ...
197         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
198         new bits shifted in are identical to the old sign bit.
199
200 2009-07-18  Richard Guenther  <rguenther@suse.de>
201
202         PR c/40787
203         * gimplify.c (gimplify_call_expr): Reject code using results from
204         functions returning void.
205
206 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
207
208         * doc/md.texi: Document the new PowerPC "es" constraint.
209         Document that "m" can include automodified addresses on this target,
210         and explain how %U must be used.  Extend the "Q" and "Z" documentation
211         to suggest "es" as well as "m".
212         * config/rs6000/constraints.md (es): New memory constraint.
213         (Q, Z): Update strings to match new documentation.
214
215 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
216
217         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
218         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
219         * config/rs6000/predicates.md (volatile_mem_operand): Use
220         offsettable_nonstrict_memref_p.
221         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
222         (*floatunssidf2_internal): Likewise.
223         (*fix_truncdfsi2_internal): Likewise.
224         (*fix_trunctfsi2_internal): Likewise.
225
226 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
227
228         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
229         atmega32u2 devices.
230         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
231
232 2009-07-17  Richard Guenther  <rguenther@suse.de>
233
234         PR c/40401
235         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
236         (pass_warn_unused_result): Likewise.
237         (TODO_set_props): Remove.
238         * omp-low.c (diagnose_omp_structured_block_errors): Change to
239         run as a pass.
240         (pass_diagnose_omp_blocks): Define.
241         * c-decl.c (pop_file_scope): Do not finalize the CU here.
242         (c_gimple_diagnostics_recursively): Remove.
243         (finish_function): Do not call it.
244         (c_write_global_declarations): Continue after errors.
245         Finalize the CU here.
246         * c-gimplify.c (c_genericize): Do not gimplify here.
247         * c-common.c (c_warn_unused_result): Move ...
248         * tree-cfg.c (do_warn_unused_result): ... here.
249         (run_warn_unused_result): New function.
250         (gate_warn_unused_result): New function.
251         (pass_warn_unused_result): New pass.
252         * c-common.h (c_warn_unused_result): Remove.
253         * flags.h (flag_warn_unused_result): Declare.
254         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
255         * opts.c (flag_warn_unused_result): Initialize to false.
256         * toplev.c (compile_file): Add comment.
257         * omp-low.c (create_omp_child_function): Do not register
258         the function with the frontend.
259         (diagnose_omp_structured_block_errors): Prepare to be
260         called as optimization pass.
261         (gate_diagnose_omp_blocks): New function.
262         (pass_diagnose_omp_blocks): New pass.
263         * cgraph.h (cgraph_optimize): Remove.
264         (cgraph_analyze_function): Likewise.
265         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
266         * cgraphunit.c (cgraph_lower_function): Lower nested functions
267         before their parents here.
268         (cgraph_finalize_function): Not here.
269         (cgraph_analyze_function): Gimplify functions here.
270         (cgraph_finalize_compilation_unit): Continue after errors.
271         Optimize the callgraph from here.
272         (cgraph_optimize): Make static.
273         * langhooks.c (write_global_declarations): Finalize the CU.
274         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
275         (gimplify_function_tree): Assert we gimplify only once.
276         Set PROP_gimple_any property.
277         * tree-nested.c (gimplify_all_functions): New function.
278         (lower_nested_functions): Gimplify all nested functions.
279         * gimple.h (diagnose_omp_structured_block_errors): Remove.
280         * passes.c (init_optimization_passes): Add pass_warn_unused_result
281         and pass_diagnose_omp_blocks after gimplification.  Do not
282         set TODO_set_props on all_lowering_passes.
283         (execute_one_pass): Do not handle TODO_set_props.
284         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
285         (gimplify.o): Add tree-pass.h dependency.
286         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
287         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
288         (unsave_r): Likewise.
289         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
290         temporary variable.
291
292 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
293
294         * doc/service.texi (Service): Restore previously removed link,
295         which isn't broken after all.
296
297 2009-07-17  Richard Guenther  <rguenther@suse.de>
298
299         PR tree-optimization/40321
300         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
301         PHI nodes to the maximal set.
302         (make_values_for_phi): Add PHI arguments to the maximal set.
303         (execute_pre): Dump PHI_GEN and the maximal set.
304
305 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
306
307         PR c++/40780
308         * gimplify.c (gimplify_conversion): Don't change non-conversions into
309         VIEW_CONVERT_EXPR.
310
311 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
312
313         * doc/extend.texi (Nested Functions): Replace broken link with
314         textual reference.
315         * doc/service.texi (Service): Remove broken link.
316
317 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
318
319         PR bootstrap/40781
320         * builtins.c (expand_builtin_memcmp): Use loc instead of
321         EXPR_LOCATION (exp).
322         (expand_builtin_strncmp): Likewise.
323
324 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
325             Manuel López-Ibáñez  <manu@gcc.gnu.org>
326
327         PR 40435 
328         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
329         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
330         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
331         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
332         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
333         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
334         tree-inline.c, c-common.c, c-common.h, gimple.c,
335         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
336         convert.c: Add location argument to fold_{unary,binary,ternary},
337         fold_build[123], build_call_expr, build_size_arg,
338         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
339         fold_build1_initializer, fold_build2_initializer,
340         fold_build3_initializer, fold_build_call_array,
341         fold_build_call_array_initializer, fold_single_bit_test,
342         omit_one_operand, omit_two_operands, invert_truthvalue,
343         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
344         combine_comparisons, fold_builtin_*, fold_call_expr,
345         build_range_check, maybe_fold_offset_to_address, round_up,
346         round_down.
347
348 2009-07-16  Jason Merrill  <jason@redhat.com>
349
350         PR libstdc++/37907
351         * c-common.c (c_common_reswords): Add __is_standard_layout
352         and __is_trivial.
353         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
354         * doc/implement-cxx.texi: New.
355         * doc/gcc.texi: Include it.
356
357 2009-07-16  DJ Delorie  <dj@redhat.com>
358
359         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
360         compares that may be indirectly affected by previous instructions.
361
362 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
363
364         * builtins.c (do_mpc_arg2): New.
365         (fold_builtin_2): Fold builtin cpow.
366         * real.h (HAVE_mpc_pow): New.
367
368 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
369
370         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
371         comparison to skip unprofitable schedule
372
373 2009-07-16  Simon Baldwin  <simonb@google.com>
374
375         * gcc.c (option_map): New flag -no-canonical-prefixes.
376         * (display_help): Print help text for new flag.
377         * (process_command): Move options translation and language specifics
378         and handle new flag early.  Use it to set a function pointer to a
379         prefix builder.  Replace make_relative_prefix calls with calls to
380         the function pointed to.  Ignore new flag in regular options handling.
381         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
382
383 2009-07-15  DJ Delorie  <dj@redhat.com>
384
385         * config/mep/mep.md (sibcall_internal): Change register to avoid
386         argument registers.
387         (sibcall_value_internal): Likewise.
388
389 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
390
391         PR rtl-optimization/40710
392         * resource.c (mark_target_live_regs): Reset DF problem to LR.
393
394 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
395
396         * config/mips/mips.md (*extenddi_truncate<mode>,
397         *extendsi_truncate<mode>): Change type attribute to move_type
398         with shift_shift.  Split out code handling exts from here ...
399         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
400         pattern.
401         (*extendhi_truncateqi): Change type attribute to move_type with
402         shift_shift.  Split out code handling exts from here ...
403         (*extendhi_truncateqi_exts): ... to this new pattern.
404
405 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
406
407         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
408         instead of "and" with inverted sign bit mask value.  Use
409         "nonimmediate_operand" for operand 1 and operand 2 predicate.
410         Allocate registers only for operand 4 and operand 5.
411
412 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
413
414         PR middle-end/40747
415         * fold-const.c (fold_cond_expr_with_comparison): When folding
416         < and <= to MIN, make sure the MIN uses the same type as the
417         comparison's operands.
418
419 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
420
421         * arm.md (ior_xor): New code iterator.
422         (split for ior/xor with shift and zero-extend): New split pattern.
423         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
424
425 2009-07-15  Richard Guenther  <rguenther@suse.de>
426
427         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
428         offset member.
429
430 2009-07-15  Richard Guenther  <rguenther@suse.de>
431
432         PR middle-end/40753
433         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
434
435 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
436
437         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
438         handle 2.6.30 kernel.
439
440 2009-07-15  DJ Delorie  <dj@redhat.com>
441
442         * config/mep/mep.md (sibcall_internal): Change register to allow
443         for 24-bit addresses.
444         (sibcall_value_internal): Likewise.
445
446 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
447         
448         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
449         that are enabled/disabled by the flags introduced by a previous patch.
450         
451 2009-07-14  DJ Delorie  <dj@redhat.com>
452
453         * config/mep/mep.md (sibcall_internal): Include non-toggling
454         non-jmp case.
455         (sibcall_value_internal): Likewise.
456
457 2009-07-14  Taras Glek  <tglek@mozilla.com>
458             Rafael Espindola  <espindola@google.com>
459
460         * doc/sourcebuild.texi: Document install-plugin target.
461         * configure.ac: Added install-plugin target to language makefiles.
462         * configure: Regenerate.
463         * Makefile.in: (install-plugin): Install more headers,
464         depend on lang.install-plugin.
465
466 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
467
468         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
469         translation.
470         
471 2009-07-14  DJ Delorie  <dj@redhat.com>
472
473         * config/mep/mep.c (mep_vliw_jmp_match): New function.
474         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
475         * config/mep/mep.md (sibcall_internal): Change test from
476         mep_vliw_mode_match to mep_vliw_jmp_match.
477         (sibcall_value_internal): Likewise.
478
479 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
480
481         * config/i386/sse.md (copysign<mode>3): New expander.
482         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
483         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
484         Use ix86_build_const_vector.
485         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
486         IX86_BUILTIN_CPYSGNPD.
487         (builtin_description): Add __builtin_ia32_copysignps and
488         __builtin_ia32_copysignpd.
489         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
490         and BUILT_IN_COPYSIGNF.
491
492 2009-07-13  Jason Merrill  <jason@redhat.com>
493
494         * builtins.c (can_trust_pointer_alignment): New fn.
495         (get_pointer_alignment): Factor it out from here.
496         * tree.h: Declare it.
497
498 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
499
500         * config/rs6000/predicates.md (offsettable_mem_operand): Test
501         RTX_AUTOINC class.
502
503 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
504
505         PR debug/40705
506         PR c++/403057
507         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
508
509 2009-07-14  Richard Guenther  <rguenther@suse.de>
510             Andrey Belevantsev <abel@ispras.ru>
511
512         PR middle-end/40745
513         * cfgexpand.c (partition_stack_vars): Do not bother to update
514         alias information when not optimizing.
515
516 2009-07-14  Richard Guenther  <rguenther@suse.de>
517             Andrey Belevantsev <abel@ispras.ru>
518
519         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
520         (pt_solution_set): Likewise.
521         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
522         * tree-ssa-structalias.c (pt_solution_set): New function.
523         * final.c (rest_of_clean_state): Free SSA data structures.
524         * print-rtl.c (print_decl_name): Remove.
525         (print_mem_expr): Implement in terms of print_generic_expr.
526         * alias.c (ao_ref_from_mem): New function.
527         (rtx_refs_may_alias_p): Likewise.
528         (true_dependence): Query alias-export info.
529         (canon_true_dependence): Likewise.
530         (write_dependence_p): Likewise.
531         * tree-dfa.c (get_ref_base_and_extent): For void types leave
532         size unknown.
533         * emit-rtl.c (component_ref_for_mem_expr): Remove.
534         (mem_expr_equal_p): Use operand_equal_p.
535         (set_mem_attributes_minus_bitpos): Do not use
536         component_ref_for_mem_expr.
537         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
538         (update_alias_info_with_stack_vars): Likewise.
539         (partition_stack_vars): Call update_alias_info_with_stack_vars.
540         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
541         explicitly nor clear stmt operands.
542         Free the decl-to-pointer map.
543         * tree-optimize.c (execute_free_datastructures): Do not free
544         SSA data structures here.
545         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
546         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
547         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
548         dependencies.
549         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
550
551 2009-07-13  DJ Delorie  <dj@redhat.com>
552
553         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
554         unrolling at the right iteration count.
555
556         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
557         calculations.
558
559 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
560         
561         * haifa-sched.c (rank_for_schedule): Introduced flags to
562         enable/disable individual scheduling heuristics.
563         * common.opt: Introduced flags to enable/disable individual
564         heuristics in the scheduler.    
565         * doc/invoke.texi: Introduced flags to enable/disable individual
566         heuristics in the scheduler.
567         
568 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
569
570         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
571         config/i386/mingw-tls.c.
572         * config/i386/mingw-tls.c: Removed.
573
574 2009-07-13  Ira Rosen  <irar@il.ibm.com>
575
576         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the 
577         checks access only relevant statements.
578         (vectorizable_reduction): Likewise.
579
580 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
581
582         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
583         just for 32-bit case.
584
585 2009-07-12  Jan Hubicka  <jh@suse.cz>
586
587         PR tree-optimization/40585
588         * except.c (expand_resx_expr): When there already is resume
589         instruction, produce linked list.
590         (build_post_landing_pads): Assert that resume is empty.
591         (connect_post_landing_pads): Handle resume lists.
592         (dump_eh_tree): Dump resume list.
593
594 2009-07-12  Ira Rosen  <irar@il.ibm.com>
595
596         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
597         with additional argument.
598         * tree-vectorizer.h (enum vect_def_type): Add
599         vect_double_reduction_def.
600         (vect_is_simple_reduction): Add argument.
601         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
602         indentation.
603         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
604         vect_is_simple_reduction with additional argument.
605         (vect_analyze_loop_operations): Handle exit phi nodes in case of
606         double reduction.
607         (reduction_code_for_scalar_code): Handle additional codes by
608         returning ERROR_MARK for them. Fix comment and indentation.
609         (vect_is_simple_reduction): Fix comment, add argument to specify
610         double reduction. Detect double reduction.
611         (get_initial_def_for_induction): Fix indentation.
612         (get_initial_def_for_reduction): Fix comment and indentation.
613         Handle double reduction. Create initial definitions that do not
614         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
615         (vect_create_epilog_for_reduction): Fix comment, add argument to
616         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
617         epilogue result extraction. Create double reduction phi node and
618         replace relevant uses.
619         (vectorizable_reduction): Call vect_is_simple_reduction with
620         additional argument. Fix indentation. Update epilogue code treatment
621         according to the changes in reduction_code_for_scalar_code. Check
622         for double reduction. Call vect_create_epilog_for_reduction with
623         additional argument.
624         * tree-vect-stmts.c (process_use): Handle double reduction, update
625         documentation.
626         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
627         (vect_get_vec_def_for_operand): Likewise.
628
629 2009-07-12  Danny Smith  <dansmister@gmail.com>
630
631         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
632         dllexport if !TREE_PUBLIC.
633         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
634
635 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
636
637         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
638         (avr_extra_arch_macro) Remove declatation.
639         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
640         (avr_extra_arch_macro) Declare as static.
641         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
642
643 2009-07-11  Jan Hubicka  <jh@suse.cz>
644
645         PR middle-end/48388
646         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
647
648 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
649
650         PR debug/40713
651         * dwarf2out.c (dw_fde_struct): Add in_std_section and
652         cold_in_std_section bits.
653         (dwarf2out_begin_prologue): Initialize them.
654         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
655         if already covered by text_section or cold_text_section range.
656
657         PR rtl-optimization/40667
658         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
659         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
660         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
661         * config/i386/i386.c (ix86_minimum_alignment): New function.
662         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
663         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
664         * emit-rtl.c (gen_reg_rtx): Likewise.
665         * function.c (assign_parms): Likewise.  If nominal_type needs
666         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
667         rather than passed_type's alignment.
668
669         PR target/40668
670         * function.c (assign_parm_setup_stack): Adjust
671         MEM_OFFSET (data->stack_parm) if promoted_mode is different
672         from nominal_mode on big endian.
673
674 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
675
676         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
677
678 2009-07-10  DJ Delorie  <dj@redhat.com>
679
680         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
681
682 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
683
684         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
685         attribute.
686         (thumb2_cbnz): Likewise.
687
688 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
689
690         PR target/39079
691         * config.gcc (supported_defaults): Add synci.
692         (with_synci): Add validation.
693         (all_defaults): Add synci.
694         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
695         ISA_HAS_SYNCI.
696         (synci): Same.
697         * config/mips/mips.opt (msynci): New option.
698         * config/mips/mips.c (mips_override_options): Warn on use of
699         -msynci for targets that do now support it.
700         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
701         msynci.
702         * gcc/doc/invoke.texi (-msynci): Document the new option.
703         * doc/install.texi (--with-synci): Document the new option.
704
705 2009-07-10  Richard Guenther  <rguenther@suse.de>
706
707         PR tree-optimization/40496
708         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
709         the PHI result with a compatible type.
710
711 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
712
713         PR 25509
714         PR 40614
715         * c.opt (Wunused-result): New.
716         * doc/invoke.texi: Document it.
717         * c-common.c (c_warn_unused_result): Use it.
718
719 2009-07-09  DJ Delorie  <dj@redhat.com>
720
721         * targhooks.c (default_target_can_inline_p): Rename from
722         default_target_option_can_inline_p.
723         * targhooks.h (default_target_can_inline_p): Likewise.
724         * target-def.h (TARGET_CAN_INLINE_P): Rename from
725         TARGET_OPTION_CAN_INLINE_P.
726         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
727         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
728         (mep_target_can_inline_p): Rename from
729         mep_target_option_can_inline_p.
730
731         PR target/40626
732         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
733         registers used to pass vectors.
734
735         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
736
737 2009-07-09  Tom Tromey  <tromey@redhat.com>
738
739         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
740         * config/mmix/mmix.c: Include dwarf2.h.
741         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
742         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
743         * config/sh/sh.c: Include dwarf2.h.
744         * config/i386/i386.c: Include dwarf2.h.
745         * Makefile.in (DWARF2_H): Remove 'elf'.
746         * except.c: Include dwarf2.h.
747         * unwind-dw2.c: Include dwarf2.h.
748         * dwarf2out.c: Include dwarf2.h.
749         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
750         * unwind-dw2-fde.c: Include dwarf2.h.
751         * dwarf2asm.c: Include dwarf2.h.
752
753 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
754
755         * haifa-sched.c (insn_finishes_cycle_p): New static function.
756         (max_issue): Use it.
757         * sched-int.h (struct sched_info: insn_finishes_block_p): New
758         scheduler hook.
759         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
760         (region_sched_info): Update.
761         * sched-ebb.c (ebb_sched_info): Update.
762         * modulo-sched.c (sms_sched_info): Update.
763         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
764
765 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
766
767         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
768
769 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
770
771         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. 
772
773 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
774
775         PR middle-end/40692
776         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
777         arg1 with arg01 if arg1 is already INTEGER_CST.
778
779 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
780
781         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
782         Transform (and (truncate)) into (truncate (and)).
783
784 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
785
786         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
787         creating LHS paradoxical subregs.  Fix surrounding returns to
788         use NULL_RTX rather than 0.
789
790 2009-07-08  DJ Delorie  <dj@redhat.com>
791
792         * config/mep/mep.c: (mep_option_can_inline_p): New.
793         (TARGET_OPTION_CAN_INLINE_P): Define.
794
795 2009-07-08  Mark Wielaard  <mjw@redhat.com>
796
797         PR debug/40659
798         * dwarf2out.c (add_data_member_location_attribute): When we have
799         only a constant offset don't emit a new location description using
800         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
801         dwarf_version > 2.
802
803 2009-07-08  Richard Henderson  <rth@redhat.com>
804
805         PR target/38900
806         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
807         (enum reg_class): Add CLOBBERED_REGS.
808         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
809         * config/i386/i386.c (ix86_conditional_register_usage): Moved
810         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
811         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
812         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
813         force 64-bit sibcalls into R11.
814         * config/i386/constraints.md (U): New constraint.
815         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
816         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
817         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
818
819 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
820
821         * basic-block.h (dump_regset, debug_regset): Remove duplicate
822         prototypes.
823         * c-objc-common.h (c_initialize_diagnostics): Ditto.
824         * ebitmap.h (dump_ebitmap): Ditto.
825         * optabs.h (optab_libfunc): Ditto.
826         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
827         * tree-flow.h (vect_can_force_dr_alignment_p,
828         get_vectype_for_scalar_type): Ditto.
829         (vectorize_loops): Move prototype to ...
830         * tree-vectorizer.h: ... here. Also, adjust comment.
831         (vect_set_verbosity_level): Remove duplicate prototype.
832         * tree-ssa-loop.c: Include tree-vectorizer.h.
833         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
834
835 2009-07-08  Nick Clifton  <nickc@redhat.com>
836
837         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
838         forward slash.
839
840 2009-07-08  DJ Delorie  <dj@redhat.com>
841
842         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
843         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
844         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
845         written to.
846         * config/mep/intrinsics.md: Regenerated.
847         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
848         registers when asm() or calls are detected.
849
850 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
851
852         PR c++/31246
853         * gimplify.c (gimplify_expr): Propagate no_warning flag when
854         gimplifying.
855         * gimple (gimple_build_call_from_tree): Likewise.
856         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
857         no_warning flag before warning.
858
859 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
860
861         * tree.c (set_expr_locus): Remove.
862         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
863         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
864         EXPR_LOCATION.
865         * gimplify.c (internal_get_tmp_var): Likewise.
866         (gimplify_call_expr): Likewise.
867         (gimplify_one_sizepos): Likewise.
868
869 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
870
871         PR debug/40666
872         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
873         to variables for debugging purposes.
874
875 2009-06-23  Mark Loeser  <mark@halcy0n.com>
876
877         PR build/40010
878         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
879
880 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
881
882         * pretty-print.c (pp_base_format): Remove %J.
883         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
884         gcc_cxxdiag_char_table): Likewise.
885         (init_dynamic_diag_info): Likewise.
886
887 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
888
889         * pretty-print.c (pp_base_format): Remove %H.
890         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
891         gcc_cxxdiag_char_table): Likewise.
892         (init_dynamic_diag_info): Likewise.
893         * config/mep/mep.c (mep_select_section): Likewise.
894
895 2009-07-07  Duncan Sands  <baldrick@free.fr>
896
897         * final.c (pass_clean_state): Give the pass a name.
898         * passes.c (pass_rest_of_compilation): Likewise.
899         * tree-optimize.c (pass_all_optimizations): Likewise.
900
901 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
902
903         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
904         an extra 'decl' for error_at.
905
906 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
907
908         PR middle-end/40669
909         * tree-tailcall.c (adjust_return_value_with_ops,
910         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
911         if it has complex or vector type.
912
913 2009-07-07  Olivier Hainque  <hainque@adacore.com>
914
915         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
916         pthread symbols.
917
918 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
919
920         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
921
922 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
923
924         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
925         * c-decl.c: Likewise.
926         * function.c: Likewise.
927         * varasm.c: Likewise.
928         * tree-ssa.c: Likewise.
929         * c-common.c: Likewise.
930         * tree-cfg.c: Likewise.
931         * config/spu/spu.c: Likewise.
932         * config/ia64/ia64.c: Likewise.
933         * config/v850/v850.c: Likewise.
934
935 2009-07-06  DJ Delorie  <dj@redhat.com>
936
937         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
938         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
939         unspecified accesses to control registers.
940         * config/mep/intrinsics.md: Regenerate.
941         * config/mep/intrinsics.h: Regenerate.
942         * config/mep/mep-intrin.h: Regenerate.
943
944 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
945
946         * c-lex.c: Replace %H by an explicit location. Update all calls.
947         * c-common.c: Likewise.
948         * c-decl.c: Likewise.
949         * c-typeck.c: Likewise.
950         * fold-const.c: Likewise.
951         * gimplify.c: Likewise.
952         * stmt.c: Likewise.
953         * tree-cfg.c: Likewise.
954         * tree-ssa-loop-niter.c: Likewise.
955         * tree-vrp.c: Likewise.
956         * value-prof.c: Likewise.
957
958 2009-07-06  Diego Novillo  <dnovillo@google.com>
959
960         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
961         if it has one.  Handle cases where VAR does not have an
962         annotation or cfun is NULL.
963
964 2009-07-06  Diego Novillo  <dnovillo@google.com>
965
966         * tree.c: Include debug.h.
967         (initialize_tree_contains_struct): New.
968         (init_ttree): Call it.
969         (tree_node_structure_for_code): Factor out of ...
970         (tree_node_structure): ... here.
971         * treestruct.def (TS_PHI_NODE): Remove.
972         (TS_GIMPLE_STATEMENT): Remove.
973
974 2009-07-06  Diego Novillo  <dnovillo@google.com>
975
976         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
977         (debug_tree_chain): Handle cycles.
978
979 2009-07-06  Nick Clifton  <nickc@redhat.com>
980             DJ Delorie  <dj@redhat.com>
981
982         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
983         __FMOVD_ENABLED__ is defined.
984         * config/sh/sh.h
985         (TARGET_FMOVD): Provide a default definition.
986         (MASK_FMOVD): Likewise.
987         (TARGET_CPU_CPP_BUILTINS): Define
988         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
989         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
990         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
991         (split for DF load from memory into register): Also handle
992         MEMs which consist of REG+DISP addressing.
993         (split for DF store from register to memory): Likewise.
994         (movsf_ie): Always use single fp_mode.
995         * config/sh/sh.c (sh_override_options): Do not automatically
996         enable TARGET_MOVD for the SH2A when supporting doubles - leave
997         that to the -mfmovd command line switch.
998         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
999         (fldi_ok): Always allow.
1000         * config/sh/sh.opt (mfmovd): Remove this switch.
1001         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
1002
1003 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
1004             Kaz Kojima  <kkojima@gcc.gnu.org>
1005
1006         PR rtl-optimization/30807
1007         * postreload.c (reload_combine): For every new use of REG_SUM,
1008         record the use of BASE.
1009
1010 2009-07-06  Jan Hubicka  <jh@suse.cz>
1011
1012         * params.def: Revert my accidental commit at 2009-06-30.
1013
1014 2009-07-04  Ian Lance Taylor  <iant@google.com>
1015
1016         PR target/40636
1017         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
1018         EXPORTED_CONST.
1019         (mingw_format_attribute_overrides): Likewise.
1020
1021 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
1022
1023         PR debug/40596
1024         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
1025         don't check cfa.reg.  Instead of cfa.indirect use
1026         fde && fde->drap_reg != INVALID_REGNUM test.
1027
1028 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
1029
1030         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
1031
1032 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
1033
1034         PR target/40587
1035         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
1036
1037 2009-07-03  Richard Guenther  <rguenther@suse.de>
1038
1039         PR tree-optimization/40640
1040         * tree-switch-conversion.c (build_arrays): Perform arithmetic
1041         in original type.
1042
1043 2009-07-03  Jan Hubicka  <jh@suse.cz>
1044
1045         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
1046         for size, reduce amount of inlining.
1047
1048 2009-07-03  Richard Guenther  <rguenther@suse.de>
1049
1050         PR middle-end/34163
1051         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
1052         if t +- x is known to not overflow and the conversion widens the
1053         operation.
1054         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
1055
1056 2009-07-03  Jan Hubicka  <jh@suse.cz>
1057
1058         * ipa-pure-const.c (analyze): Update loop optimizer init.
1059         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
1060         try_remove_empty_loop, remove_empty_loops): Remove.
1061         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
1062         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
1063         to mark regular loops as neccesary.
1064         (degenerate_phi_p): New function.
1065         (propagate_necessity, remove_dead_phis): Use it.
1066         (forward_edge_to_pdom): Likewise.
1067         (eliminate_unnecessary_stmts): Take care to remove uses of results of
1068         virtual PHI nodes that became unreachable.
1069         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
1070         * tree-flow.h (remove_empty_loops): Remove.
1071         * passes.c (init_optimization_passes): Remove.
1072
1073 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
1074
1075         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
1076         can_create_pseudo_p.
1077         (*fix_trunc<mode>_i387_1): Ditto.
1078         (*floathi<mode>2_1): Ditto.
1079         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
1080         (*fistdi2_1): Ditto.
1081         (*fist<mode>2_1): Ditto.
1082         (frndintxf2_floor): Ditto.
1083         (*fist<mode>2_floor_1): Ditto.
1084         (frndintxf2_ceil): Ditto.
1085         (*fist<mode>2_ceil_1): Ditto.
1086         (frndintxf2_trunc): Ditto.
1087         (frndintxf2_mask_pm): Ditto.
1088         (fxam<mode>2_i387_with_temp): Ditto.
1089         * config/i386/sse.md (mulv16qi3): Ditto.
1090         (*sse2_mulv4si3): Ditto.
1091         (mulv2di3): Ditto.
1092         (sse4_2_pcmpestr): Ditto.
1093         (sse4_2_pcmpistr): Ditto.
1094
1095 2009-07-03  Jan Hubicka  <jh@suse.cz>
1096
1097         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
1098         (mark_stmt_necessary): Set it.
1099         (mark_operand_necessary): Set it.
1100         (mark_control_dependent_edges_necessary): Set it.
1101         (mark_virtual_phi_result_for_renaming): New function.
1102         (get_live_post_dom): New function.
1103         (forward_edge_to_pdom): New function.
1104         (remove_dead_stmt): Fix handling of control dependences.
1105         (tree_dce_init): Init new bitmap.
1106         (tree_dce_done): Free it.
1107
1108 2009-07-02  Richard Guenther  <rguenther@suse.de>
1109
1110         PR bootstrap/40617
1111         * tree-ssa-structalias.c (new_var_info): Initialize
1112         is_restrict_var.
1113
1114 2009-07-02  Jan Hubicka  <jh@suse.cz>
1115
1116         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
1117         local.
1118
1119 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
1120
1121         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
1122         instead of recomputing it.  Adjust calls.
1123         (emit_store_flag): Adjust recursive calls.
1124
1125 2009-07-02  Richard Guenther  <rguenther@suse.de>
1126
1127         * tree-ssa-live.c (remove_unused_locals): Do not remove
1128         heap variables.
1129         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
1130         of DECL_EXTERNAL for HEAP variables.
1131         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
1132         HEAP variables.  Do not adjust RESTRICT vars.
1133         (find_what_var_points_to): Nobody cares if something
1134         points to READONLY.
1135
1136 2009-07-02  Ben Elliston  <bje@au.ibm.com>
1137
1138         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
1139         pc_low and pc_high declarations to the top of the function.
1140
1141 2009-07-01  DJ Delorie  <dj@redhat.com>
1142
1143         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
1144         registers as fixed.
1145         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
1146         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
1147         unspecified accesses to control registers.
1148         * config/mep/intrinsics.md: Regenerate.
1149         * config/mep/intrinsics.h: Regenerate.
1150         * config/mep/mep-intrin.h: Regenerate.
1151
1152 2009-07-01  Anthony Green  <green@moxielogic.com>
1153
1154         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
1155         instruction when possible.
1156         (moxie_expand_prologue): Ditto.  Also, save an instruction and
1157         some complexity by popping off of $r12 instead of $sp.
1158         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
1159         operands.
1160
1161 2009-07-01  Richard Henderson  <rth@redhat.com>
1162
1163         PR bootstrap/40347
1164         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
1165         contained no insns, reposition note before last insn.
1166
1167 2009-07-01  Richard Henderson  <rth@redhat.com>
1168
1169         PR debug/40431
1170         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
1171         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
1172
1173 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1174
1175         PR bootstrap/40558
1176         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
1177         darwin9 for printing reg addresses with %y.
1178
1179 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
1180
1181         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
1182         truncation from operands in binary operations.
1183
1184 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
1185
1186         Revert:
1187         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
1188         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
1189         subreg of op0 to the original op0.
1190
1191         * expmed.c (store_bit_field_1): Use a temporary as the destination
1192         instead of a paradoxical subreg when we need to truncate the result.
1193
1194 2009-07-01  DJ Delorie  <dj@redhat.com>
1195
1196         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
1197         names to VLIW variants.
1198         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
1199         * config/mep/intrinsics.md: Regenerate.
1200         * config/mep/intrinsics.h: Regenerate.
1201         * config/mep/mep-intrin.h: Regenerate.
1202
1203 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
1204
1205         PR debug/40462
1206         * jump.c (returnjump_p): Revert last patch.
1207         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
1208
1209 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1210
1211         PR target/40575
1212         * pa.md (casesi32p): Use jump table label to determine the offset
1213         of the jump table.
1214         (casesi64p): Likewise.
1215
1216         * pa.c (forward_branch_p): Return bool type.  Use instruction
1217         addresses when available.  Assert that INSN has a jump label.
1218         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
1219         have a jump label.
1220
1221 2009-07-01  Richard Guenther  <rguenther@suse.de>
1222
1223         PR tree-optimization/19831
1224         * tree-ssa-dce.c (propagate_necessity): Calls to functions
1225         that only act as barriers do not make any previous stores necessary.
1226         * tree-ssa-structalias.c (handle_lhs_call): Delay making
1227         HEAP variables global, do not add a constraint from nonlocal.
1228         (find_func_aliases): Handle escapes through return statements.
1229         (compute_points_to_sets): Make escaped HEAP variables global.
1230
1231 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
1232
1233         PR bootstrap/40597
1234         * expmed.c (emit_store_flag): Perform a conversion if necessary,
1235         after reducing a DImode cstore to SImode.
1236
1237 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
1238
1239         * expr.c (expand_expr_real_1): Reinstate fallthrough to
1240         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
1241
1242 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
1243
1244         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
1245         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
1246         to 0.
1247         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
1248         and umod_optab if TARGET_BSD_DIVMOD.
1249         * config/vax/lib1funcs.asm: New file.
1250         * config/vax/t-linux: New file.
1251         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
1252
1253 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
1254
1255         PR c++/40566
1256         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
1257         to type arguments that have void type.
1258
1259         PR debug/40573
1260         * dwarf2out.c (gen_formal_parameter_die): Call
1261         equate_decl_number_to_die if node is different from origin.
1262
1263 2009-06-30  Anthony Green  <green@moxielogic.com>
1264
1265         Clean up moxie port for --enable-build-with-cxx.
1266         * config/moxie/moxie.c (moxie_function_value): First two
1267         parameters are const_tree, not tree.
1268         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
1269         (REG_CLASS_NAMES): Ditto.
1270         (REGNO_REG_CLASS): Ditto.
1271         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
1272         (moxie_function_value): Fix constyness of arguments.
1273
1274 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
1275
1276         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
1277         finalize_size_functions before further processing.
1278         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
1279         (variable_size): Call self_referential_size on size expressions
1280         that contain a PLACEHOLDER_EXPR.
1281         (size_functions): New static variable.
1282         (copy_self_referential_tree_r): New static function.
1283         (self_referential_size): Likewise.
1284         (finalize_size_functions): New global function.
1285         * tree.c: Include tree-inline.h.
1286         (push_without_duplicates): New static function.
1287         (find_placeholder_in_expr): New global function.
1288         (substitute_in_expr) <tcc_declaration>: Return the replacement object
1289         on equality.
1290         <tcc_expression>: Likewise.
1291         <tcc_vl_exp>: If the replacement object is a constant, try to inline
1292         the call in the expression.
1293         * tree.h (finalize_size_functions): Declare.
1294         (find_placeholder_in_expr): Likewise.
1295         (FIND_PLACEHOLDER_IN_EXPR): New macro.
1296         (substitute_placeholder_in_expr): Update comment.
1297         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
1298         is true.
1299         (copy_tree_body_r): Likewise.
1300         (copy_tree_body): New static function.
1301         (maybe_inline_call_in_expr): New global function.
1302         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
1303         (maybe_inline_call_in_expr): Declare.
1304         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
1305         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
1306         GIMPLE_H.
1307
1308 2009-06-30  Richard Guenther  <rguenther@suse.de>
1309
1310         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
1311         continue walking.
1312         (propagate_necessity): Do not mark reaching defs of stores
1313         as necessary.
1314
1315 2009-06-30  Jan Hubicka  <jh@suse.cz>
1316
1317         * cfgloopanal.c (check_irred): Move into ...
1318         (mark_irreducible_loops): ... here; return true if ireducible
1319         loops was found.
1320         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
1321         (analyze_function): Try to prove loop finiteness.
1322         * cfgloop.h (mark_irreducible_loops): Update prototype.
1323         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
1324
1325 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
1326
1327         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
1328
1329 2009-06-30  Ira Rosen  <irar@il.ibm.com>
1330
1331         PR tree-optimization/40542
1332         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
1333         types.
1334
1335 2009-06-30  Martin Jambor  <mjambor@suse.cz>
1336
1337         PR tree-optimization/40582
1338         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
1339         than useless_type_conversion_p.
1340         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
1341         proper place.
1342
1343 2009-06-30  Martin Jambor  <mjambor@suse.cz>
1344
1345         PR middle-end/40554
1346         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
1347
1348 2009-06-30  Richard Guenther  <rguenther@suse.de>
1349
1350         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
1351         use ao_ref references.
1352         (walk_aliased_vdefs): Likewise.
1353         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
1354         * tree-ssa-dce.c (struct ref_data): Remove.
1355         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
1356         (mark_aliased_reaching_defs_necessary): Adjust.
1357         (mark_all_reaching_defs_necessary_1): Likewise.
1358
1359 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
1360
1361         PR boostrap/40597
1362         * expmed.c (emit_cstore): New name of emit_store_flag_1.
1363         (emit_store_flag_1): Extract from emit_store_flag, adjust
1364         calls to (what now is) emit_cstore.
1365         (emit_store_flag): Call emit_store_flag_1 and also use it
1366         for what used to be recursive calls.
1367
1368 2009-06-30  Wei Guozhi  <carrot@google.com>
1369
1370         PR/40416
1371         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
1372         if the target bb post dominates from bb.
1373         * config/i386/i386.c (memory_address_length): Check existence of base
1374         register before using it.
1375
1376 2009-06-30  Nick Clifton  <nickc@redhat.com>
1377             DJ Delorie  <dj@redhat.com>
1378
1379         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
1380         __FMOVD_ENABLED__ is defined.
1381         * config/sh/sh.h
1382         (TARGET_FMOVD): Provide a default definition.
1383         (MASK_FMOVD): Likewise.
1384         (TARGET_CPU_CPP_BUILTINS): Define
1385         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
1386         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
1387         two fmov instructions depending upon whether TARGET_FMOVD is
1388         enabled.
1389         (split for DF load from memory into register): Also handle
1390         MEMs which consist of REG+DISP addressing.
1391         (split for DF store from register to memory): Likewise.
1392         * config/sh/sh.opt (mfmovd): Remove this switch.
1393         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
1394         * config/sh/sh.c (sh_override_options): Do not automatically
1395         enable TARGET_MOVD for the SH2A when supporting doubles - leave
1396         that to the -mfmovd command line switch.
1397
1398         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
1399         the SH4 and SH4A.
1400         (fldi_ok): Always allow.
1401         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
1402
1403 2009-06-29  DJ Delorie  <dj@redhat.com>
1404
1405         * doc/install.texi (mep-x-elf): Correct chip's full name.
1406
1407 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1408
1409         * doc/extend.texi: Fix typo.
1410
1411 2009-06-29  Tom Tromey  <tromey@redhat.com>
1412
1413         * dwarf2.h: Remove.
1414         * Makefile.in (DWARF2_H): New variable.
1415         (except.o): Use it.
1416         (dwarf2out.o): Likewise.
1417         (dwarf2asm.o): Likewise.
1418         * config/i386/t-i386: Use DWARF2_H.
1419         * except.c: Include elf/dwarf2.h.
1420         * unwind-dw2.c: Include elf/dwarf2.h.
1421         * dwarf2out.c: Include elf/dwarf2.h.
1422         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
1423         <dtprel>: New field.
1424         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
1425         (size_of_loc_descr): Likewise.
1426         (output_loc_operands_raw): Likewise.
1427         (output_loc_operands): Handle new dtprel field.
1428         (loc_checksum): Update.
1429         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
1430         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
1431         * unwind-dw2-fde.c: Include elf/dwarf2.h.
1432         * dwarf2asm.c: Include elf/dwarf2.h.
1433         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
1434         * config/mmix/mmix.c: Include elf/dwarf2.h.
1435         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
1436         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
1437         * config/sh/sh.c: Include elf/dwarf2.h.
1438         * config/i386/i386.c: Include elf/dwarf2.h.
1439
1440 2009-06-29  DJ Delorie  <dj@redhat.com>
1441
1442         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
1443
1444         * doc/extend.texi: Add MeP attributes and pragmas.
1445         * doc/invoke.text: Add MeP Options.
1446         * doc/contrib.texi: Add MeP contribution.
1447         * doc/md.texi: Add MeP constraints.
1448         * doc/install.texi: Add MeP target.
1449
1450 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
1451
1452         * target.h (struct gcc_target): Add frame_pointer_required field.
1453         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
1454         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
1455         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
1456         hook.
1457         * reload1.c (update_eliminables): (Ditto.).
1458         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
1459         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
1460         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
1461
1462         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
1463
1464         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
1465         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1466         (arm_frame_pointer_required): New function.
1467
1468         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
1469         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1470         (avr_frame_pointer_required_p): Declare as static.
1471         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
1472
1473         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
1474         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1475         (bfin_frame_pointer_required): Make as static, change return type
1476         to bool.
1477         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
1478
1479         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
1480         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1481         (cris_frame_pointer_required): New function.
1482         
1483         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
1484
1485         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
1486         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1487         (fr30_frame_pointer_required): New function.
1488         
1489         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
1490         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1491         (frv_frame_pointer_required): Make as static, change return type
1492         to bool.
1493         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
1494
1495         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
1496         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1497         (ix86_frame_pointer_required): Make as static, change return type to
1498         bool.
1499         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
1500
1501         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
1502         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1503
1504         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
1505
1506         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
1507         
1508         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
1509
1510         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
1511         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1512         (mips_frame_pointer_required): Make as static.
1513         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
1514         
1515         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
1516         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1517         (mmix_frame_pointer_required): Mew function.
1518
1519         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
1520         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1521
1522         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
1523
1524         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
1525
1526         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
1527
1528         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
1529         (CAN_ELIMINATE): Redefine.
1530         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1531         (sparc_frame_pointer_required): New function.
1532         (sparc_can_eliminate): New function.
1533         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
1534
1535         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
1536         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1537
1538         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
1539         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1540         (xtensa_frame_pointer_required): Make as static, change return type
1541         to bool.
1542         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
1543         Remove.
1544
1545 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
1546
1547         * doc/plugins.texi: Document PLUGIN_START_UNIT.
1548         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
1549         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
1550         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
1551         (register_callback): Handle PLUGIN_START_UNIT.
1552         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
1553
1554 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1555
1556         * tree.c (process_call_operands): Propagate TREE_READONLY from the
1557         operands.
1558         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
1559         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
1560
1561 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
1562
1563         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
1564         move cost.
1565
1566 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
1567
1568         * doc/extend.texi (Additional Floating Types): __float128 is also
1569         supported on i386 targets.
1570
1571 2009-06-29  Richard Guenther  <rguenther@suse.de>
1572
1573         PR middle-end/14187
1574         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
1575         flag.
1576         (pt_solutions_same_restrict_base): Declare.
1577         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
1578         flag.
1579         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
1580         (make_constraint_from, make_copy_constraint): Move earlier.
1581         (make_constraint_from_heapvar): New function.
1582         (make_constraint_from_restrict): Likewise.
1583         (handle_lhs_call): Use it.
1584         (find_func_aliases): Use it to track conversions to restrict
1585         qualified pointers.
1586         (struct fieldoff): Add only_restrict_pointers flag.
1587         (push_fields_onto_fieldstack): Initialize it.
1588         (create_variable_info_for): Track global restrict qualified pointers.
1589         (intra_create_variable_infos): Use make_constraint_from_heapvar.
1590         Track restrict qualified pointer arguments.
1591         (set_uids_in_ptset): Use varinfo is_global_var flag.
1592         (find_what_var_points_to): Set the vars_contains_restrict flag.
1593         Always create the points-to solution for sets including restrict tags.
1594         (pt_solutions_same_restrict_base): New function.
1595         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
1596         qualified pointers use pt_solutions_same_restrict_base as
1597         additional source for disambiguation.
1598
1599 2009-06-29  Richard Guenther  <rguenther@suse.de>
1600
1601         PR middle-end/38212
1602         * alias.c (find_base_decl): Remove.
1603         (get_deref_alias_set_1): Remove restrict handling.
1604         * c-common.c (c_apply_type_quals_to_decl): Do not set
1605         DECL_POINTER_ALIAS_SET.
1606         * gimplify.c (find_single_pointer_decl_1): Remove.
1607         (find_single_pointer_decl): Likewise.
1608         (internal_get_tmp_var): Remove restrict handling.
1609         (gimple_regimplify_operands): Likewise.
1610         * omp-low.c (expand_omp_atomic_pipeline): Do not set
1611         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
1612         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
1613         * tree.c (restrict_base_for_decl): Remove.
1614         (init_ttree): Do not allocate it.
1615         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
1616         LABEL_DECL_UID for label decls.
1617         (copy_node_stat): Do not copy restrict information.
1618         (decl_restrict_base_lookup): Remove.
1619         (decl_restrict_base_insert): Likewise.
1620         (print_restrict_base_statistics): Likewise.
1621         (dump_tree_statistics): Do not call print_restrict_base_statistics.
1622         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
1623         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
1624         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
1625         (LABEL_DECL_UID): Adjust.
1626         (DECL_BASED_ON_RESTRICT_P): Remove.
1627         (DECL_GET_RESTRICT_BASE): Likewise.
1628         (SET_DECL_RESTRICT_BASE): Likewise.
1629         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
1630
1631         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
1632         instead of DECL_POINTER_ALIAS_SET.
1633         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
1634         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1635         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1636
1637 2009-06-29  Richard Guenther  <rguenther@suse.de>
1638
1639         PR tree-optimization/40579
1640         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
1641         the IL to simplify has constants that overflowed.
1642
1643 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
1644
1645         PR tree-optimization/40550
1646         * tree-vect-generic.c (expand_vector_operations_1): Compute in
1647         vector_compute_type only when the size of vector_compute_type is
1648         less than the size of type.
1649
1650 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
1651
1652         * fold-const.c (contains_label_1): Fix comments.
1653         (contains_label_p): Do not walk trees multiple time.
1654
1655 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
1656
1657         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
1658         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
1659         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
1660         ix86_fp_comparison_operator.
1661         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
1662         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
1663         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
1664         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
1665         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
1666         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
1667         (related splits): Change predicate to ix86_fp_comparison_operator.
1668         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
1669         instead of ix86_fp_comparison_codes.
1670         (ix86_trivial_fp_comparison_operator,
1671         ix86_fp_comparison_operator): New.
1672         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
1673         (ix86_expand_compare): Eliminate last two parameters.
1674         (ix86_fp_jump_nontrivial_p): Kill.
1675         * config/i386/i386.c (put_condition_code): Eliminate call to
1676         ix86_fp_comparison_codes and subsequent assertion.
1677         (ix86_fp_comparison_codes): Eliminate.
1678         (ix86_fp_swap_condition): New.
1679         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
1680         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
1681         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
1682         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
1683         and ix86_fp_swap_condition.
1684         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
1685         Use ix86_fp_comparison_strategy.
1686         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
1687         (ix86_fp_jump_nontrivial_p): Eliminate.
1688         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
1689         call to ix86_expand_compare.
1690         (ix86_split_fp_branch, ix86_expand_setcc,
1691         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
1692         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
1693
1694 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
1695
1696         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
1697         related to jump_clobbers.
1698         * config/arm/arm.md (conds): Remove jump_clob case.
1699         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
1700         splits): Change comparison_operator to arm_comparison_operator.
1701         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
1702         Eliminate.
1703
1704 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
1705
1706         * dojump.c (do_compare_rtx_and_jump): Try swapping the
1707         condition for floating point modes.
1708         * expmed.c (emit_store_flag_1): Move here a bigger part
1709         of emit_store_flag.
1710         (emit_store_flag): Try swapping the condition for floating point
1711         modes.
1712         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
1713
1714 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
1715
1716         * expr.c (expand_expr_real_1): Just use do_store_flag.
1717         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
1718         emit_store_flag_force.
1719         * expmed.c (emit_store_flag_force): Copy here trick
1720         previously in expand_expr_real_1.  Try reversing the comparison.
1721         (emit_store_flag_1): Work if target is NULL.
1722         (emit_store_flag): Work if target is NULL, using the result mode
1723         from the comparison.  Use split_comparison, restructure final part
1724         to simplify conditionals.
1725
1726 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
1727
1728         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
1729         * dojump.c (do_jump): Change handling of floating-point
1730         ops to use just do_compare_and_jump.
1731         (split_comparison): New.
1732         (do_compare_rtx_and_jump): Add here logic coming previously
1733         in do_jump, using split_comparison.
1734
1735 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
1736
1737         PR target/40489
1738         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
1739
1740 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1741
1742         * tree-ssa-alias.c: Fix unintentional commit.
1743
1744 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1745
1746         * passes.c (execute_one_pass): Fix unintentional commit.
1747
1748 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1749
1750         * df-problems.c (df_set_seen, df_unset_seen): Delete.
1751         (df_rd_local_compute, df_md_local_compute): Inline them.
1752
1753         (df_md_scratch): New.
1754         (df_md_alloc, df_md_free): Allocate/free it.
1755         (df_md_local_compute): Only include live registers in init.
1756         (df_md_transfer_function): Prune the in-set computed by
1757         the confluence function, and the gen-set too.
1758
1759 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1760
1761         PR rtl-optimization/26854
1762         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
1763         * df-problems.c (df_rd_add_problem): Fix comment.
1764         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
1765         df_md_simulate_artificial_defs_at_top,
1766         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
1767         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
1768         df_md_transfer_function, df_md_init, df_md_confluence_0,
1769         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
1770         problem_MD, df_md_add_problem): New.
1771         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
1772         df_md_get_bb_info): New.
1773         (DF_LAST_PROBLEM_PLUS1): Adjust.
1774
1775         * Makefile.in (fwprop.o): Include domwalk.h.
1776         * fwprop.c: Include domwalk.h.
1777         (reg_defs, reg_defs_stack): New.
1778         (bitmap_only_bit_between): Remove.
1779         (process_defs): New.
1780         (process_uses): Use reg_defs and local_md instead of
1781         bitmap_only_bit_between and local_rd.
1782         (single_def_use_enter_block): New, from build_single_def_use_links.
1783         (single_def_use_leave_block): New.
1784         (build_single_def_use_links): Remove code moved to
1785         single_def_use_enter_block, invoke domwalk.
1786         (use_killed_between): Adjust comment.
1787
1788 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1789
1790         * bitmap.h (bitmap_ior_and_into): New.
1791         * bitmap.c (bitmap_ior_and_into): New.
1792
1793 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1794
1795         * domwalk.h (struct dom_walk_data): Remove all callbacks except
1796         before_dom_children_before_stmts and after_dom_children_after_stmts.
1797         Rename the two remaining callbacks to just before_dom_children and 
1798         after_dom_children. Remove other GIMPLE statement walking bits.
1799         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
1800         * graphite.c: Do not include domwalk.h.
1801         * tree-into-ssa.c (interesting_blocks): New global.
1802         (struct mark_def_sites_global_data): Remove it and names_to_rename.
1803         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
1804         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
1805         now that they're not domwalk callbacks.
1806         (rewrite_initialize_block): Rename to...
1807         (rewrite_enter_block): ... this, place after called functions.  Test
1808         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
1809         (rewrite_finalize_block): Rename to...
1810         (rewrite_leave_block): ... this, place after called functions.
1811         (rewrite_update_init_block): Rename to...
1812         (rewrite_update_enter_block): ... this, place after called functions.
1813         Test interesting_blocks, call rewrite_update_stmt and 
1814         rewrite_update_phi_arguments.
1815         (rewrite_update_fini_block): Rename to...
1816         (rewrite_leave_block): ... this, place after called functions.
1817         (rewrite_blocks): Remove last argument, simplify initialization of
1818         walk_data.
1819         (mark_def_sites_initialize_block): Rename to...
1820         (mark_def_sites_block): ... this, call mark_def_sites.
1821         (mark_def_sites_blocks): Remove argument, simplify initialization of
1822         walk_data.
1823         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
1824         (update_ssa): Likewise.
1825         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
1826         callback.
1827         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
1828         (dom_opt_initialize_block): Rename to...
1829         (dom_opt_enter_block): ... this, place after called functions.  Walk
1830         statements here, inline propagate_to_outgoing_edges.
1831         (dom_opt_finalize_block): Rename to...
1832         (dom_opt_leave_block): ... this, place after called functions.
1833         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
1834         domwalk callback.
1835         (dse_enter_block, dse_record_phi): New.
1836         (dse_record_phis): Delete.
1837         (dse_finalize_block): Rename to...
1838         (dse_leave_block): ... this.
1839         (tree_ssa_dse): Simplify initialization of walk_data.
1840         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
1841         Adjust initialization of walk_data.
1842         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
1843         * tree-ssa-loop-phiopt.c (get_non_trapping):
1844         Adjust initialization of walk_data.
1845         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
1846         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
1847         it's not a domwalk callback.
1848         (uncprop_initialize_block): Rename to...
1849         (dse_enter_block): ... this, call uncprop_into_successor_phis.
1850         (dse_finalize_block): Rename to...
1851         (dse_leave_block): ... this.
1852         (tree_ssa_uncprop): Simplify initialization of walk_data.
1853         * Makefile.in: Adjust dependencies.
1854
1855 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
1856
1857         * arm.md (casesi): Fix test for Thumb1.
1858         (thumb1_casesi_internal_pic): Likewise.
1859         (thumb1_casesi_dispatch): Likewise.
1860
1861 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
1862
1863         * config/arm/arm-cores.def: Added core cortex-m0.
1864         * config/arm/arm-tune.md: Regenerated.
1865         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
1866
1867 2009-06-26  DJ Delorie  <dj@redhat.com>
1868
1869         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
1870
1871         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
1872         the scheduler doesn't tag jump insns.
1873
1874 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1875
1876         * c-decl.c (merge_decls): Re-indent.
1877
1878 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
1879
1880         PR c/39902
1881         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
1882         Special-case decimal float constants.
1883
1884 2009-06-26  Richard Henderson  <rth@redhat.com>
1885
1886         * function.h (struct function): Add cannot_be_copied_reason,
1887         and cannot_be_copied_set.
1888         * tree-inline.c (has_label_address_in_static_1): Rename from
1889         inline_forbidden_p_2; don't set inline_forbidden_reason here.
1890         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
1891         don't set inline_forbidden_reason.
1892         (copy_forbidden): New function, split out of inline_forbidden_p.
1893         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
1894         (inline_forbidden_p): Use copy_forbidden.
1895         (tree_versionable_function_p): Likewise.
1896         (inlinable_function_p): Merge into tree_inlinable_function_p.
1897         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
1898         * ipa-cp.c (ipcp_versionable_function_p): New function.
1899         (ipcp_cloning_candidate_p): Use it.
1900         (ipcp_node_modifiable_p): Likewise.
1901
1902 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
1903
1904         * builtins.c (expand_builtin_alloca): Handle builtin alloca
1905         that is marked not to be inlined. Remove flag_mudflap use.
1906         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
1907         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
1908
1909 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
1910
1911         PR bootstrap/40338
1912         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
1913         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
1914
1915 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
1916
1917         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
1918         shared libgcc.
1919         (__mingwthr_remove_key_dtor): Likewise.
1920
1921 2009-06-26  Richard Guenther  <rguenther@suse.de>
1922
1923         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
1924
1925 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1926
1927         PR middle-end/40525
1928         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
1929         try the non-cond_exec path also.
1930
1931 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1932
1933         PR target/40468
1934         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
1935         (output_cbranch): Use new functions.
1936         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
1937         Likewise.
1938
1939 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
1940             Pat Haugen  <pthaugen@us.ibm.com>
1941             Revital Eres <ERES@il.ibm.com>
1942
1943         * config/rs6000/rs6000.c (print_operand): Correct lossage message
1944         for %c error.  Add %x support to print VSX registers as a unified
1945         register set, instead of separate float and altivec registers.
1946         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
1947         %y case, and add support for VSX pre-modify addresses.
1948         (output_toc): Add assert for CONST containing an integer constant
1949         in the PLUS case.
1950         (rs6000_adjust_cost): Add POWER7 support.
1951         (insn_must_be_first_in_group): Ditto.
1952         (insn_must_be_last_in_group): Ditto.
1953         (rs6000_emit_popcount): Ditto.
1954         (rs6000_vector_mode_supported_p): Ditto.
1955
1956         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
1957         Change some of the functions called by macros to being called
1958         through a pointer, so debug functions can be inserted if
1959         -mdebug=addr or -mdebug=cost. 
1960         (rs6000_preferred_reload_class_ptr): Ditto.
1961         (rs6000_secondary_reload_class_ptr): Ditto.
1962         (rs6000_secondary_memory_needed_ptr): Ditto.
1963         (rs6000_cannot_change_mode_class_ptr): Ditto.
1964         (rs6000_secondary_reload_inner): Ditto.
1965         (rs6000_legitimize_reload_address): Ditto.
1966         (rs6000_legitimize_reload_address_ptr): Ditto.
1967         (rs6000_mode_dependent_address): Ditto.
1968         (rs6000_mode_dependent_address_ptr): Ditto.
1969
1970         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
1971         function to return true if the mode allows reg + integer
1972         addresses.
1973         (virtual_stack_registers_memory_p): New function to return true if
1974         the address refers to a virtual stack register.
1975         (rs6000_legitimate_offset_address_p): Move code to say whether a
1976         mode supports reg+int addressing to reg_offset_addressing_ok_p and
1977         call it.
1978         (rs6000_legitimate_address_p): Add checks for modes that only can
1979         do reg+reg addressing.  Start adding VSX support.
1980         (rs6000_legitimize_reload_address): Ditto.
1981         (rs6000_legitimize_address): Ditto.
1982         (rs6000_debug_legitimate_address_p): New debug functions for
1983         -mdebug=addr and -mdebug=cost.
1984         (rs6000_debug_rtx_costs): Ditto.
1985         (rs6000_debug_address_costs): Ditto.
1986         (rs6000_debug_adjust_cost): Ditto.
1987         (rs6000_debug_legitimize_address): Ditto.
1988         (rs6000_legitimize_reload_address_ptr): Point to call normal
1989         function or debug function.  Make functions called via pointer
1990         static.
1991         (rs6000_mode_dependent_address_ptr): Ditto.
1992         (rs6000_secondary_reload_class_ptr): Ditto.
1993         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
1994         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
1995         into a friendlier error.
1996         (rs6000_init_builtins): Add initial VSX support.
1997         (rs6000_adjust_cost): Fix some spacing issues.
1998
1999         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
2000         (REG_CLASS_NAMES): Ditto.
2001         (REG_CLASS_CONTENTS): Ditto.
2002         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
2003         pointer, to add -mdebug=addr support.
2004         (CANNOT_CHANGE_MODE_CLASS): Ditto.
2005         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
2006         -mdebug=addr support.
2007         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
2008         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
2009         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
2010
2011         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
2012         16-bit values.
2013         (bswapsi*): Set attribute types for load/store.  Add combiner
2014         patterns to eliminate zero extend on 64-bit.
2015         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
2016         stdbrx if the hardware supports those instructions.
2017
2018 2009-06-25  Ian Lance Taylor  <iant@google.com>
2019
2020         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
2021         (Link Options): Document -static-libstdc++.
2022
2023 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2024
2025         PR target/38731
2026         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
2027         DATA_ALIGNMENT instead.
2028
2029 2009-06-25  Richard Guenther  <rguenther@suse.de>
2030
2031         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
2032         indirect references against the callused/escaped solutions.
2033         (call_may_clobber_ref_p_1): Likewise.
2034
2035 2009-06-25  Martin Jambor  <mjambor@suse.cz>
2036
2037         PR tree-optimization/40493
2038         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
2039         (enum unscalarized_data_handling): New type.
2040         (handle_unscalarized_data_in_subtree): Return what has been done.
2041         (load_assign_lhs_subreplacements): Handle left flushes differently.
2042         (sra_modify_assign): Use unscalarized_data_handling, simplified
2043         condition determining whether to remove the statement.
2044
2045 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
2046
2047         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
2048         excerpt - @ should be doubled for texinfo.
2049
2050 2009-06-24  Ian Lance Taylor  <iant@google.com>
2051
2052         * config/arc/arc.c: Include "df.h".
2053         (arc_attribute_table): Make static.  Move higher in file.
2054         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
2055         (output_shift): Initialize n later to avoid warning.
2056         * config/arm/arm.c (arm_attribute_table): Make static.  Move
2057         higher in file.
2058         * config/avr/avr.c (avr_attribute_table): Make static.  Move
2059         higher in file.
2060         (reg_class_tab): Change array type from int to enum reg_class.
2061         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
2062         LABEL_REF.
2063         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
2064         (lshrhi3_out): Likewise.
2065         (class_likely_spilled_p): Change return type to bool.
2066         (avr_rtx_costs): Use local code variable with enum type.
2067         * config/avr/avr.md (movmemhi): Use add_reg_note.
2068         (andhi3, andsi3): Don't use AS2 with "and".
2069         (iorhi3, iorsi3): Don't use AS2 with "or".
2070         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
2071         * config/crx/crx.c: Include "df.h".
2072         (crx_attribute_table): Make static.
2073         * config/m32r/m32r.c: Include "df.h".
2074         (m32r_attribute_table): Make static.  Move higher in file.
2075         (pop): Use add_reg_note.
2076         (block_move_call): Change 0 to LCT_NORMAL in function call.
2077         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
2078         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
2079         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
2080         declare, not just when TREE_CODE is defined.
2081         * config/m68hc11/m68hc11.c: Include "expr.h".
2082         (m68hc11_attribute_table): Make static.  Move higher in file.
2083         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
2084         function call.
2085         (m68hc11_register_indirect_p): Likewise.
2086         (m68hc11_function_arg_padding): Change return type to enum
2087         direction.
2088         (emit_move_after_reload): Use add_reg_note.
2089         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
2090         (m68hc11_split_logical): Likewise.
2091         (m68hc11_rtx_costs): Add local code_and outer_code variables with
2092         enum type.
2093         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
2094         to VOIDmode in function call.
2095         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
2096         tree is defined.
2097         (m68hc11_split_logical): Update declaration.
2098         (m68hc11_function_arg_padding): Update declaration.
2099         * config/mcore/mcore.c (regno_reg_class): Change form array of int
2100         to array of enum reg_class.
2101         (mcore_attribute_table): Make static.  Move higher in file.
2102         (mcore_rtx_costs): Add cast to enum type.
2103         * config/mcore/mcore.h (regno_reg_class): Update declaration.
2104         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
2105         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
2106         in file.
2107         * config/sh/predicates.md (trapping_target_operand): Rename and to
2108         and_expr.
2109         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
2110         higher in file.
2111         * config/spu/spu.c (spu_attribute_table): Make static.  Move
2112         higher in file.
2113         * config/v850/v850.c (v850_attribute_table): Make static.  Move
2114         higher in file.
2115         (v850_rtx_costs): Use local code with enum type.
2116         (expand_epilogue): Add cast.
2117         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
2118
2119 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
2120
2121         PR target/40515
2122         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
2123         -m2a-single-only and -m2a-nofpu.
2124         * config/sh/sh.opt: Document m2a generates FPU code.  
2125
2126 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
2127
2128         * defaults.h (CAN_ELIMINATE): Provide default.
2129         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
2130         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
2131         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
2132         * config/spu/spu.h (CAN_ELIMINATE): Delete.
2133         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
2134         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
2135         * config/cris/cris.h (CAN_ELIMINATE): Delete.
2136         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
2137         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
2138         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
2139
2140 2009-06-24  DJ Delorie  <dj@redhat.com>
2141
2142         * mep-ext-cop.cpu: Fix copyright notice.
2143         * mep-default: Fix copyright notice.
2144         * mep-core: Fix copyright notice.
2145         * mep: Fix copyright notice.
2146         * mep-ivc2: Fix copyright notice.
2147         * mep-c5: Fix copyright notice.
2148
2149 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
2150
2151         * doc/contrib.texi (Contributors): 
2152
2153 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2154         
2155         PR middle-end/40501
2156         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
2157         src and dst operands if necessary.
2158
2159 2009-06-23  DJ Delorie  <dj@redhat.com>
2160
2161         Add MeP port.
2162         * config.gcc: Add mep support.
2163         * recog.c: Resurrect validate_replace_rtx_subexp().
2164         * recog.h: Likewise.
2165         * config/mep/: Add new port:
2166         * config/mep/constraints.md: New file.
2167         * config/mep/default.h: New file.
2168         * config/mep/intrinsics.h: New file.
2169         * config/mep/intrinsics.md: New file.
2170         * config/mep/ivc2-template.h: New file.
2171         * config/mep/mep-c5.cpu: New file.
2172         * config/mep/mep-core.cpu: New file.
2173         * config/mep/mep-default.cpu: New file.
2174         * config/mep/mep-ext-cop.cpu: New file.
2175         * config/mep/mep-intrin.h: New file.
2176         * config/mep/mep-ivc2.cpu: New file.
2177         * config/mep/mep-lib1.asm: New file.
2178         * config/mep/mep-lib2.c: New file.
2179         * config/mep/mep-pragma.c: New file.
2180         * config/mep/mep-protos.h: New file.
2181         * config/mep/mep-tramp.c: New file.
2182         * config/mep/mep.c: New file.
2183         * config/mep/mep.cpu: New file.
2184         * config/mep/mep.h: New file.
2185         * config/mep/mep.md: New file.
2186         * config/mep/mep.opt: New file.
2187         * config/mep/predicates.md: New file.
2188         * config/mep/t-mep: New file.
2189
2190 2009-06-23  Ian Lance Taylor  <iant@google.com>
2191
2192         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
2193         from loose_warn into c_loose_warn and from strict_warn into
2194         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
2195         --enable-build-with-cxx.  Set and substitute
2196         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
2197         * Makefile.in (CXXFLAGS): New variable.
2198         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
2199         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
2200         the default is the same as $(STRICT_WARN).
2201         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
2202         (CXX): New variable.
2203         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
2204         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
2205         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
2206         (HOST_LIBS): New variable.
2207         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
2208         (ALL_CXXFLAGS): New variable.
2209         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
2210         * doc/install.texi (Configuration): Document
2211         --enable-build-with-cxx, --with-stage1-ldflags,
2212         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
2213         * configure: Rebuild.
2214
2215 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2216
2217         * config/arm/arm.c (arm_override_options): Fix braces and formatting
2218         from previous commit.
2219
2220 2009-06-23  Ian Lance Taylor  <iant@google.com>
2221
2222         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
2223
2224 2009-06-23  Ian Lance Taylor  <iant@google.com>
2225
2226         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
2227         with ATTRIBUTE_UNUSED.
2228
2229 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2230             Pat Haugen  <pthaugen@us.ibm.com>
2231             Revital Eres  <eres@il.ibm.com>
2232
2233         * config.in (HAVE_AS_POPCNTD): Add default definition.
2234         (HAVE_AS_LWSYNC): Ditto.
2235
2236         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
2237         release number.
2238         (gcc_cv_as_powerpc_cmpb): Ditto.
2239         (gcc_cv_as_powerpc_dfp): Ditto.
2240         (gcc_cv_as_powerpc_vsx): Ditto.
2241         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
2242         supporting the popcntd/lwsync instructions.
2243         (gcc_cv_as_powerpc_lwsync): Ditto.
2244         * configure: Regenerate.
2245
2246         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
2247         -mcpu=native and -mcpu=power7.
2248         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
2249
2250         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
2251         a variable instead of a mask to reduce the number of mask bits.
2252         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2253         (-mbit-word): Ditto.
2254         (-mregnames): Ditto.
2255         * config/rs6000/rs6000.opt (-mupdate): Ditto.
2256         (-mfused-madd): Ditto.
2257
2258         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
2259         2.06 instructions.
2260         (-mvsx): New switch for VSX instructions.
2261         (-misel): Move from a variable to a mask to allow it to be set by
2262         -mcpu=.
2263
2264         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
2265         function declaration to an array declaration.
2266         (rs6000_hard_regno_nregs): New external array declaration.
2267
2268         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
2269         files included by rs6000.md.
2270
2271         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2272         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
2273
2274         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
2275         a target mask.
2276         (rs6000_debug_reg): New -mdebug= variables.
2277         (rs6000_debug_addr): Ditto.
2278         (rs6000_debug_cost): Ditto.
2279         (rs6000_pmode): New variable to hold Pmode.
2280         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
2281         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
2282         calculated at compiler start.
2283         (rs6000_hard_regno_nregs): Change function to an array which holds
2284         HARD_REGNO_NREGS calculated at compiler start.
2285         (rs6000_explicit_options): Delete isel field.
2286         (rs6000_vector_unit): New array to hold which vector unit
2287         supports arithmetic options for a given type.
2288         (rs6000_vector_mem): New array to hold which vector unit supports
2289         memory reference operations for a given type.
2290         (rs6000_vector_align): New array to given the alignment of each
2291         vector type.
2292         (power7_cost): New basic costs for power7.
2293         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
2294         (rs6000_hard_regno_nregs_internal): New function, moved from
2295         HARD_REGNO_NREGS, to calculate the number of registers each hard
2296         register takes for each type.
2297         (rs6000_debug_reg_print): New function for -mdebug=reg support.
2298         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
2299         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
2300         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
2301         unit information here so it is calculated once at compiler startup
2302         time.
2303         (rs6000_override_options): Make -misel a target mask.  Add more
2304         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
2305         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
2306         -mdebug=cost.
2307         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
2308         (rs6000_handle_option): Move -misel from variable to target mask.
2309         (rs6000_builtin_mask_for_load): Add VSX support.
2310         (rs6000_conditional_register_usage): Ditto.
2311         (USE_ALTIVEC_FOR_ARG_P): Ditto.
2312         (function_arg_boundary): Ditto.
2313         (rs6000_expand_builtin): Ditto.
2314         (def_builtin): Make abort message a little friendlier.
2315         (rs6000_emit_int_cmove): Add support for 64-bit isel.
2316
2317         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
2318         assembler support the popcntd instruction instead of a vsx
2319         instruction to enable power7 support.
2320         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
2321         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
2322         option to the assembler if -mcpu=native.
2323         (ASM_CPU_NATIVE_SPEC): Ditto.
2324         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
2325         ISA 2.06 features.
2326         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
2327         the lwsync instruction.
2328         (enum processor_type): Add PROCESSOR_POWER7.
2329         (rs6000_debug_reg): New -mdebug= options.
2330         (rs6000_debug_addr): Ditto.
2331         (rs6000_debug_cost): Ditto.
2332         (rs6000_isel): Delete.
2333         (enum rs6000_vector): New enum to say what vector unit we have.
2334         (VECTOR_UNIT_*): New macros to say which vector unit has
2335         arithmetic operations for a given type.
2336         (VECTOR_MEM_*): New macros to say which vector unit has memory
2337         operations for a given type.
2338         (TARGET_LDBRX): Whether the machine supports the ldbrx
2339         instruction.
2340         (TARGET_ISEL): Delete, -misel moved to be a mask.
2341         (TARGET_ISEL64): New macro for 64-bit isel support.
2342         (UNITS_PER_VSX_WORD): New macro.
2343         (POINTER_SIZE): Move to be an external variable, rather than
2344         calculating whether we are generating 32 ot 64-bit code.
2345         (Pmode): Ditto.
2346         (STACK_BOUNDARY): Add VSX support.
2347         (LOCAL_ALIGNMENT): Ditto.
2348         (SLOW_UNALIGNED_ACCESS): Ditto.
2349         (VSX_REGNO_P): New macro for VSX support.
2350         (VFLOAT_REGNO_P): Ditto.
2351         (VINT_REGNO_P): Ditto.
2352         (VLOGICAL_REGNO_P): Ditto.
2353         (VSX_VECTOR_MODE): Ditto.
2354         (VSX_SCALAR_MODE): Ditto.
2355         (VSX_MODE): Ditto.
2356         (VSX_MOVE_MODE): Ditto.
2357         (VSX_REG_CLASS_P): Ditto.
2358         (HARD_REGNO_NREGS): Instead of calling a function, use an array
2359         lookup.
2360         (UNITS_PER_SIMD_WORD): Add VSX support.
2361         (MODES_TIEABLE_P): Ditto.
2362         (STARTING_FRAME_OFFSET): Ditto.
2363         (STACK_DYNAMIC_OFFSET): Ditto.
2364         (EPILOGUE_USES): Ditto.
2365         (REGNO_REG_CLASS): Move to array lookup.
2366         (CLASS_MAX_NREGS): Ditto.
2367         (rs6000_vector_reg_class): Add declaration.
2368         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
2369         overlap with the floating point and Altivec registers.
2370
2371         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
2372
2373         * config/rs6000/driver-rs6000.c (asm_names): New static array to
2374         give the appropriate asm switches if -mcpu=native.
2375         (host_detect_local_cpu): Add support for "asm".
2376         (host_detect_local_cpu): Follow GNU code guidelines for name.
2377
2378         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
2379         -mbit-word to a variable instead of being a target mask.
2380
2381         * config/rs6000/sync.md (lwsync): If the assembler supports it,
2382         emit the lwsync instruction instead of emitting the instruction as
2383         an integer constant.
2384
2385         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
2386         fixuns_trundfsi2, move expander into rs6000.md.
2387
2388         * config/rs6000/rs6000.md (cpu): Add power7.
2389         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
2390         (logical predicate patterns): Change the single instruction
2391         primitives that set CR0 to be fast_compare instead of compare.
2392         (norsi*): Ditto.
2393         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
2394         (popcntddi2): Ditto.
2395         (popcount<mode>): Ditto.
2396         (floating multiply/add insns): Name the floating point
2397         multiply/add insns.
2398         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
2399         (isel_unsigned_<mode>): Ditto.
2400         (fixuns_trundfsi2): Move expander here from spe.md.
2401         (smindi3): Define if we have -misel on 64-bit systems.
2402         (smaxdi3): Ditto.
2403         (umindi3): Ditto.
2404         (umaxdi3): Ditto.
2405
2406 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
2407
2408         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
2409         extra_objs.
2410         * config/avr/avr.c (avr_current_device): New variable.
2411         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
2412         (avr_arch, mcu_type_s): Move to avr.h.
2413         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
2414         default_data_section_start fields.
2415         (avr_arch): Moved from avr.c.
2416         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
2417         library_name fields.
2418         (avr_current_device, avr_mcu_types, avr_arch_types,
2419         avr_device_to_arch, avr_device_to_data_start,
2420         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
2421         (EXTRA_SPEC_FUNCTIONS): Define.
2422         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
2423         options mapping. Use device_to_arch and device_to_data_start insted.
2424         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
2425         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
2426         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
2427         * config/avr/driver-avr.c: New file.
2428         * config/avr/avr-devices.c: New file.
2429
2430 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
2431
2432         * var-tracking.c (unshare_variable): Force initialized to
2433         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
2434         (set_variable_part): Likewise.
2435         (struct variable_union_info): Remove pos_src field.
2436         (vui_vec, vui_allocated): New variables.
2437         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
2438         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
2439         == 1 use a simpler sorting algorithm.  Compute pos field right
2440         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
2441         Avoid quadratic comparison if !flag_var_tracking_uninit.
2442         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
2443         unshare_variable unconditionally.   
2444         (dataflow_set_different_2): Removed.
2445         (dataflow_set_different): Don't traverse second hash table.
2446         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
2447         unconditionally to var_reg_set or var_mem_set.
2448         (emit_notes_in_bb): Likewise.
2449         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
2450         unshare_variable.
2451         (emit_note_insn_var_location): Don't set initialized to
2452         VAR_INIT_STATUS_INITIALIZED early.
2453         (vt_finalize): Free vui_vec if needed, clear vui_vec and
2454         vui_allocated.
2455         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
2456
2457         * tree-object-size.c (addr_object_size): Instead of checking
2458         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
2459         are no FIELD_DECLs following it.
2460
2461 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
2462
2463         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
2464         order to match bswaps with signed source operands.
2465
2466 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2467
2468         * sdbout.c (sdbout_one_type): Fix braces in switch.
2469
2470 2009-06-23  Richard Guenther  <rguenther@suse.de>
2471
2472         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
2473         member.
2474         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
2475         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
2476         var_callused, callused_tree, var_storedanything, storedanything_tree,
2477         var_integer, integer_tree): Remove global variables.
2478         (new_var_info): Do not pass new id, append the new var to the
2479         global variable vector.
2480         (do_ds_constraint): Use is_global_var member of the variable-info.
2481         (new_scalar_tmp_constraint_exp): Adjust.
2482         (create_function_info_for): Likewise.
2483         (create_variable_info_for): Likewise.
2484         (find_what_var_points_to): Remove dead code.
2485         (init_base_vars): Simplify.
2486         (compute_points_to_sets): Adjust.
2487
2488 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
2489
2490         * combine.c (try_combine): Dump information about the insns we're
2491         combining.
2492
2493 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
2494
2495         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
2496         check when calling force_to_mode on TRUNCATE's operand.
2497
2498 2009-06-22  Ian Lance Taylor  <iant@google.com>
2499
2500         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
2501
2502 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
2503
2504         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
2505
2506 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2507
2508         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
2509         override library linkage flags such as -static-libgcc or
2510         -shared-libgcc.
2511
2512 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2513
2514         * config/m68k/m68k-devices.def: Add line for MCF5221x.
2515
2516 2009-06-22  Ian Lance Taylor  <iant@google.com>
2517
2518         * config/linux.opt: Put mglibc ahead of muclibc.
2519
2520         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
2521         for duplicate decls.
2522
2523 2009-06-22  Matthias Klose  <doko@ubuntu.com>
2524
2525         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
2526
2527 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
2528
2529         PR objc/28050
2530         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
2531         instead of NULL if a parser error occurs.
2532
2533 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2534
2535         * dwarf2out.c (dwarf2_debug_hooks): Initialize
2536         non-DWARF2_DEBUGGING_INFO version.
2537
2538 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
2539
2540         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
2541         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
2542
2543         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
2544         (LIBGCC2_TF_CEXT): Define.
2545         (TF_SIZE): Define.
2546
2547 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2548
2549         PR target/40463
2550         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
2551
2552 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2553
2554         * config/arm/arm.c (arm_override_options): Disable
2555         -mcaller-super-interworking and -mcallee-super-interworking.
2556         * doc/invoke.texi (ARM Options): Document this.
2557
2558 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
2559
2560         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
2561         * config/arm/constraints.md (j): New constraint for movw operands.
2562         (N): Remove thumb2 meaning.
2563         * config/arm/arm.md (*arm_movw): Delete.
2564         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
2565         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
2566         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
2567
2568 2009-06-22  Martin Jambor  <mjambor@suse.cz>
2569
2570         PR tree-optimization/40492
2571         * tree-sra.c (sra_modify_assign): Pass zero offsets to
2572         build_ref_for_offset.
2573
2574 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
2575
2576         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
2577         JUMP_TABLE_DATA_P predicates where applicable.
2578         * auto-inc-dec.c: Ditto.
2579         * builtins.c: Ditto.
2580         * caller-save.c: Ditto.
2581         * calls.c: Ditto.
2582         * cfgcleanup.c: Ditto.
2583         * cfglayout.c: Ditto.
2584         * cfgrtl.c: Ditto.
2585         * combine.c: Ditto.
2586         * combine-stack-adj.c: Ditto.
2587         * cse.c: Ditto.
2588         * cselib.c: Ditto.
2589         * dbxout.c: Ditto.
2590         * df-scan.c: Ditto.
2591         * dse.c: Ditto.
2592         * dwarf2asm.c: Ditto.
2593         * dwarf2out.c: Ditto.
2594         * emit-rtl.c: Ditto.
2595         * except.c: Ditto.
2596         * explow.c: Ditto.
2597         * expmed.c: Ditto.
2598         * expr.c: Ditto.
2599         * final.c: Ditto.
2600         * function.c: Ditto.
2601         * fwprop.c: Ditto.
2602         * gcse.c: Ditto.
2603         * genpreds.c: Ditto.
2604         * genrecog.c: Ditto.
2605         * ifcvt.c: Ditto.
2606         * ira-costs.c: Ditto.
2607         * ira-lives.c: Ditto.
2608         * jump.c: Ditto.
2609         * loop-iv.c: Ditto.
2610         * lower-subreg.c: Ditto.
2611         * modulo-sched.c: Ditto.
2612         * optabs.c: Ditto.
2613         * postreload.c: Ditto.
2614         * print-rtl.c: Ditto.
2615         * recog.c: Ditto.
2616         * reginfo.c: Ditto.
2617         * regmove.c: Ditto.
2618         * reload1.c: Ditto.
2619         * reload.c: Ditto.
2620         * reorg.c: Ditto.
2621         * rtlanal.c: Ditto.
2622         * rtl.c: Ditto.
2623         * sched-vis.c: Ditto.
2624         * sdbout.c: Ditto.
2625         * sel-sched-ir.c: Ditto.
2626         * simplify-rtx.c: Ditto.
2627         * targhooks.c: Ditto.
2628         * var-tracking.c: Ditto.
2629         * vmsdbgout.c: Ditto.
2630
2631 2009-06-22  Matthias Klose  <doko@ubuntu.com>
2632
2633         * Makefile.in (install-plugin): Always use DESTDIR.
2634
2635 2009-06-22  Olivier Hainque  <hainque@adacore.com>
2636         
2637         * config/pa/pa.c (output_call): Don't optimize post call jumps
2638         into return address adjustments if the call may throw.
2639
2640 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
2641
2642         * arm.c (thumb1_output_casesi): New function.
2643         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
2644         optimizing for size or PIC.
2645         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
2646         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
2647         (casesi): Handle Thumb-1 when optimizing for size or PIC.
2648         (thumb1_casesi_internal_pic): New expand rule.
2649         (thumb1_casesi_dispatch): New pattern.
2650         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
2651         thumb-1 mode.
2652         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
2653         in the text seciton when PIC or optimizing for size.
2654         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2655         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
2656         preservation properties of code.
2657         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
2658         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
2659         (__gnu_thumb1_case_si): New function.
2660         * t-arm (LIB1ASMSRC): Define here.
2661         (LIB1ASMFUNCS): Add some common functions.
2662         * t-arm-elf (LIB1ASMSRC): Delete.
2663         (LIB1ASMFUNCS): Append to existing set.
2664         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2665         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2666         * t-symbian (LIB1ASMFUNCS): Likewise.
2667         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2668         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2669
2670 2009-06-21  Richard Guenther  <rguenther@suse.de>
2671
2672         PR tree-optimization/38729
2673         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
2674         to loops with a single exit if -fno-expensive-optimizations.
2675
2676 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
2677
2678         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
2679         (dataflow_set): Change vars type from htab_t to shared_hash.
2680         (shared_hash_pool, empty_shared_hash): New variables.
2681         (vars_clear): Removed.
2682         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
2683         shared_hash_find_slot_unshare, shared_hash_find_slot,
2684         shared_hash_find_slot_noinsert, shared_hash_find): New
2685         static inlines.
2686         (shared_hash_unshare, shared_hash_destroy): New functions.
2687         (unshare_variable): Unshare set->vars if shared, use
2688         shared_hash_htab.
2689         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
2690         (get_init_value, find_src_set_src, dump_dataflow_set,
2691         clobber_variable_part, emit_notes_for_differences): Use
2692         shared_hash_htab.
2693         (dataflow_set_init): Remove second argument, set vars to
2694         empty_shared_hash instead of creating a new htab.
2695         (dataflow_set_clear): Call shared_hash_destroy and set vars
2696         to empty_shared_hash instead of calling vars_clear.
2697         (dataflow_set_copy): Don't call vars_copy, instead just share
2698         the src htab with dst.
2699         (variable_union): Use shared_hash_*, use initially NO_INSERT
2700         lookup if set->vars is shared.  Don't keep slot cleared before
2701         calling unshare_variable.  Unshare set->vars if needed.
2702         Even ->refcount == 1 vars must be unshared if set->vars is shared
2703         and var needs to be modified.
2704         (variable_canonicalize): New function.
2705         (dataflow_set_union): If dst->vars is empty, just share src->vars
2706         with dst->vars and traverse with variable_canonicalize to canonicalize
2707         and unshare what is needed.
2708         (dataflow_set_different): If old_set and new_set use the same shared
2709         htab, they aren't different.  If number of htab elements is different,
2710         htabs are different.  Use shared_hash_*.
2711         (dataflow_set_destroy): Call shared_hash_destroy instead of
2712         htab_delete.
2713         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
2714         second argument to dataflow_set_init.
2715         (vt_initialize): Likewise.  Initialize shared_hash_pool and
2716         empty_shared_hash, move bb in/out initialization afterwards.
2717         Use variable_htab_free instead of NULL as changed_variables del hook.
2718         (variable_was_changed): Change type of second argument to pointer to
2719         dataflow_set.  When inserting var into changed_variables, bump
2720         refcount.  Unshare set->vars if set is shared htab and slot needs to
2721         be cleared.
2722         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
2723         lookup if set->vars is shared.  Unshare set->vars if needed.
2724         Even ->refcount == 1 vars must be unshared if set->vars is shared
2725         and var needs to be modified.  Adjust variable_was_changed caller.
2726         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
2727         vars must be unshared if set->vars is shared and var needs to be
2728         modified.  Adjust variable_was_changed caller.
2729         (emit_note_insn_var_location): Don't pool_free var.
2730         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
2731         instead of 1.
2732         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
2733         free_alloc_pool on shared_hash_pool.
2734
2735 2009-06-20  Anthony Green  <green@moxielogic.com>
2736
2737         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
2738         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
2739
2740 2009-06-20  Richard Guenther  <rguenther@suse.de>
2741
2742         * tree-ssa-structalias.c (find_func_aliases): For memset use
2743         a constraint from NULL if we memset to zero.
2744         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
2745         we explicitly handle that do not read from memory.
2746         (call_may_clobber_ref_p_1): Properly handle builtins that may
2747         set errno.
2748
2749 2009-06-20  Richard Guenther  <rguenther@suse.de>
2750
2751         PR tree-optimization/40495
2752         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
2753         (new_scalar_tmp_constraint_exp): New function.
2754         (process_constraint): Do not create temporary decls.
2755         (process_all_all_constraints): Likewise.
2756         (handle_const_call): Likewise.
2757         (create_function_info_for): Do not set decl.
2758
2759 2009-06-19  Ian Lance Taylor  <iant@google.com>
2760
2761         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
2762         (rs6000_attribute_table): Make static; move before use.
2763
2764 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
2765
2766         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
2767         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
2768         Propagate the TREE_READONLY flag without overwriting it.
2769         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
2770         Propagate the TREE_READONLY flag onto the result.
2771         (process_call_operands): Move around.  Use correct constant value.
2772
2773 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2774
2775         PR target/40482
2776         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
2777         * config/arm/arm.md: Likewise.
2778
2779 2009-06-19  Ian Lance Taylor  <iant@google.com>
2780
2781         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
2782         to GIMPLE_ERROR_MARK.
2783
2784         * c-typeck.c (build_conditional_expr): Add op1_original_type and
2785         op2_original_type parameters.  Warn about using different enum types.
2786         * c-parser.c (c_parser_conditional_expression): Pass original
2787         types to build_conditional_expr.
2788         * c-tree.h (build_conditional_expr): Update declaration.
2789
2790 2009-06-19  Ian Lance Taylor  <iant@google.com>
2791
2792         * config/i386/i386.c (ix86_function_specific_save): Test that
2793         fields match values, rather than testing the values are in a
2794         certain range.
2795
2796 2009-06-19  Richard Guenther  <rguenther@suse.de>
2797
2798         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2799         ADDR_EXPR pointers.
2800         (ptr_derefs_may_alias_p): Likewise.
2801         (ptr_deref_may_alias_ref_p_1): New function.
2802         (ptr_deref_may_alias_ref_p): Likewise.
2803         (ref_maybe_used_by_call_p_1): Handle builtins that are not
2804         covered by looking at the ESCAPED solution.
2805         (call_may_clobber_ref_p_1): Likewise.
2806         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
2807         Handle NULL_TREE offset.  Do not produce redundant constraints.
2808         (process_all_all_constraints): New helper function.
2809         (do_structure_copy): Use it.
2810         (handle_lhs_call): Likewise.
2811         (find_func_aliases): Handle some builtins with pointer arguments
2812         and/or return values explicitly.
2813
2814 2009-06-19  Ian Lance Taylor  <iant@google.com>
2815
2816         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
2817
2818 2009-06-19  Ian Lance Taylor  <iant@google.com>
2819
2820         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
2821
2822 2009-06-19  Ian Lance Taylor  <iant@google.com>
2823
2824         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
2825         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
2826         version.
2827
2828         * c-decl.c (finish_decl): If -Wc++-compat, warn about
2829         uninitialized const.
2830
2831 2009-06-19  Ian Lance Taylor  <iant@google.com>
2832
2833         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
2834         all uses.
2835
2836         * c-decl.c (in_struct, struct_types): Remove.
2837         (struct c_binding): Add in_struct field.
2838         (c_binding_ptr): Define type, along with VEC.
2839         (struct c_struct_parse_info): Define.
2840         (struct_parse_info): New static variable.
2841         (bind): Initialize in_struct field.
2842         (start_struct): Remove enclosing_in_struct and
2843         enclosing_struct_types parameters.  Add
2844         enclosing_struct_parse_info parameter.  Change all callers.  Set
2845         struct_parse_info rather than in_struct and struct_types.
2846         (grokfield): If -Wc++-compat and there is a symbol binding for the
2847         field name, set the in_struct flag and push it on the
2848         struct_parse_info->fields vector.
2849         (warn_cxx_compat_finish_struct): New static function.
2850         (finish_struct): Remove enclosing_in_struct and
2851         enclosing_struct_types parameters.  Add
2852         enclosing_struct_parse_info parameter.  Change all callers.  Don't
2853         set C_TYPE_DEFINED_IN_STRUCT here.  Call
2854         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
2855         parameter.  Only push on struct_types if warn_cxx_compat.
2856         (finish_enum): Only push on struct_types if warn_cxx_compat.
2857         (declspecs_add_type): Add loc parameter.  Change all callers.
2858         Change all error calls to error_at.  Pass loc, not input_location,
2859         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
2860         defined in a struct.  If -Wc++-compat and parsing a struct, record
2861         that a typedef name was used.
2862         * c-parser.c (c_parser_declspecs): Get location to pass to
2863         declspecs_add_type.
2864         (c_parser_struct_or_union_specifier): Update calls to start_struct
2865         and finish_struct.
2866         * c-tree.h (struct c_struct_parse_info): Declare.
2867         (finish_struct, start_struct): Update declarations.
2868         (declspecs_add_type): Update declaration.
2869
2870 2009-06-19  Ian Lance Taylor  <iant@google.com>
2871
2872         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
2873         variable with an anonymous type.
2874
2875 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
2876
2877         * see.c: Remove for real.
2878
2879 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
2880
2881         * optabs.h (enum optab_index): Add new OTI_significand.
2882         (significand_optab): Define corresponding macro.
2883         * optabs.c (init_optabs): Initialize significand_optab.
2884         * genopinit.c (optabs): Implement significand_optab using
2885         significand?f2 patterns.
2886         * builtins.c (expand_builtin_mathfn): Handle
2887         BUILT_IN_SIGNIFICAND{,F,L}.
2888         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
2889         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2890
2891         * config/i386/i386.md (significandxf2, significand<mode>2): New
2892         expanders to implement significandf, significand and significandl
2893         built-ins as inline x87 intrinsics.
2894
2895 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
2896
2897         * config/avr/avr.c (avr_override_options): Remove setting value of
2898         PARAM_INLINE_CALL_COST.
2899
2900 2009-06-18  Richard Henderson  <rth@redhat.com>
2901
2902         PR 40488
2903         * tree-pass.h (TDF_ASMNAME): New.
2904         * tree-dump.c (dump_options): Add asmname.
2905         * doc/invoke.texi: Document it.
2906
2907         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
2908         (dump_decl_name): ...here.
2909         (dump_function_name): New flags arg; mind TDF_ASMNAME.
2910         (dump_generic_node): Update dump_function_name calls.
2911         (print_call_name): New flags arg; update all dump calls.
2912         * diagnostic.h (print_call_name): Update.
2913         * gimple-pretty-print.c (dump_gimple_call): Update.
2914
2915 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2916
2917         PR target/40470
2918         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
2919
2920 2009-06-18  Diego Novillo  <dnovillo@google.com>
2921
2922         * doc/plugins.texi: Document plugin_is_GPL_compatible.
2923         * plugin.c (str_license): Declare.
2924         (try_init_one_plugin): Assert that the symbol
2925         'plugin_is_GPL_compatible' exists.
2926
2927 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
2928
2929         * see.c: Remove.
2930         * Makefile.in (OBJS-common): Remove see.o.
2931         (see.o): Remove.
2932         * common.opt (fsee): Mark as preserved for backward compatibility.
2933         * opts.c (common_handle_option): Add OPT_fsee to the backward 
2934         compatibility section.
2935         * passes.c (init_optimization_passes, pass_see): Remove pass.
2936         * timevar.def (TV_SEE): Remove.
2937         * tree-pass.h (pass_see): Remove declaration.
2938         * doc/invoke.texi (-fsee): Remove documentation.
2939         
2940 2009-06-18  Martin Jambor  <mjambor@suse.cz>
2941
2942         * tree-sra.c: Include statistics.h
2943         (sra_stats): New variable.
2944         (sra_initialize): Clear sra_stats.
2945         (create_access_replacement): Increment sra_stats.replacements.
2946         (get_access_replacement): Do not return twice.
2947         (analyze_all_variable_accesses): Increment statistics counter by the
2948         number of scalarized aggregates.
2949         (generate_subtree_copies): Increment sra_stats.subtree_copies.
2950         (sra_modify_expr): Increment sra_stats.exprs.
2951         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
2952         (sra_modify_assign): Increment sra_stats.exprs,
2953         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
2954         (perform_intra_sra): Update statistics counters.
2955         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
2956
2957 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
2958
2959         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
2960         (arm_scalar_mode_supported_p): New function.
2961
2962 2009-06-18  Paul Brook  <paul@codesourcery.com>
2963             Sandra Loosemore  <sandra@codesourcery.com>
2964
2965         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
2966         (__extendhfsf2, __truncsfhf2): Define.
2967         * config/arm/fp16.c: New file.
2968         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
2969         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
2970
2971 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
2972
2973         * doc/extend.texi (Half-Precision): New section.
2974         * doc/invoke.texi (Option Summary): List -mfp16-format.
2975         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
2976         * config/arm/arm.opt (mfp16-format=): New.
2977         * config/arm/arm.c: Include intl.h.
2978         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
2979         (TARGET_INVALID_RETURN_TYPE): Redefine.
2980         (TARGET_PROMOTED_TYPE): Redefine.
2981         (TARGET_CONVERT_TO_TYPE): Redefine.
2982         (arm_fp16_format): Define.
2983         (all_fpus): Add entry for neon-fp16.
2984         (fp_model_for_fpu): Likewise.
2985         (struct fp16_format): Declare.
2986         (all_fp16_formats): Define.
2987         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
2988         functions.
2989         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
2990         and no ldrh.
2991         (arm_legitimate_index_p): Treat HFmode like HImode.
2992         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
2993         (coproc_secondary_reload_class): Special-case HFmode.
2994         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
2995         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
2996         (arm_init_fp16_builtins): New.
2997         (arm_init_builtins): Call it.
2998         (arm_invalid_parameter_type): New.
2999         (arm_invalid_return_type): New.
3000         (arm_promoted_type): New.
3001         (arm_convert_to_type).
3002         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
3003         format.
3004         (arm_emit_fp16_const): New function.
3005         (arm_mangle_type): Mangle __fp16 as "Dh".
3006         * config/arm/arm.h (TARGET_VFPD32): Make it know about
3007         FPUTYPE_NEON_FP16.
3008         (TARGET_NEON_FP16): New.
3009         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
3010         (enum fputype): Add FPUTYPE_NEON_FP16.
3011         (enum arm_fp16_format_type): Declare.
3012         (arm_fp16_format): Declare.
3013         (LARGEST_EXPONENT_IS_NORMAL): Define.
3014         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
3015         * config/arm/arm-modes.def (HFmode): Define.
3016         * config/arm/vfp.md: (*movhf_vfp): New.
3017         (extendhfsf2): New.
3018         (truncsfhf2): New.
3019         * config/arm/arm.md: (fpu): Add neon_fp16.
3020         (floatsihf2, floatdihf2): New.
3021         (fix_trunchfsi2, fix_trunchfdi2): New.
3022         (truncdfhf2): New.
3023         (extendhfdf2): New.
3024         (movhf): New.
3025         (*arm32_movhf): New.
3026         (*thumb1_movhf): New.
3027         (consttable_2): Add check for HFmode constants.
3028         (consttable_4): Handle HFmode constants.
3029
3030 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
3031
3032         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
3033
3034 2009-06-17  Olivier Hainque  <hainque@adacore.com>
3035
3036         * collect2.c (main): Use CONST_CAST2 to perform char ** to
3037         const char ** conversion in AIX specific section.
3038         
3039 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
3040
3041         * config/i386/i386.c (ix86_special_builtin_type): Remove
3042         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
3043         (bdesc_special_args): Updated.
3044         (ix86_init_mmx_sse_builtins): Likewise.
3045         (ix86_expand_special_args_builtin): Likewise.
3046
3047 2009-06-17  Richard Henderson  <rth@redhat.com>
3048
3049         * tree-pretty-print.c (maybe_dump_asm_name): New.
3050         (dump_decl_name): Use it.
3051         (PRINT_FUNCTION_NAME): Merge into...
3052         (dump_function_name): ... here.  Use maybe_dump_asm_name.
3053
3054 2009-06-17  Cary Coutant  <ccoutant@google.com>
3055
3056         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
3057         Change caller.
3058         * debug.c (struct gcc_debug_hooks): Change placeholder for
3059         source_line hook.
3060         (debug_nothing_int_charstar_int): Replaced by...
3061         (debug_nothing_int_charstar_int_bool): ...this.
3062         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
3063         source_line prototype.
3064         (debug_nothing_int_charstar_int): Replaced by...
3065         (debug_nothing_int_charstar_int_bool): ...this.
3066         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
3067         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
3068         Output is_stmt operand when necessary.
3069         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
3070         (notice_source_line): Add is_stmt parameter.
3071         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
3072         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
3073         Change callers.
3074         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
3075         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
3076
3077 2009-06-17  Ian Lance Taylor  <iant@google.com>
3078
3079         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
3080         Change all uses.
3081         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
3082         call uses.
3083
3084 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
3085
3086         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
3087         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
3088         tree_strip_sign_nop_conversions and
3089         tree_ssa_strip_useless_type_conversions rather than stripping
3090         the operations here.
3091         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
3092         Declare them.
3093         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
3094         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
3095         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
3096         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
3097         functions.
3098
3099 2009-06-17  Michael Eager  <eager@eagercon.com>
3100
3101         * config/rs6000/constraints.md (register_constraint "d"): New.
3102         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
3103         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
3104         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
3105         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
3106         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
3107         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
3108         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
3109         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
3110         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
3111         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
3112         __fctiwz): Same.
3113         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
3114         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
3115         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
3116         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
3117         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3118         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
3119         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
3120         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
3121         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
3122         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
3123         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
3124         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
3125         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
3126         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
3127
3128 2009-06-16  Ian Lance Taylor  <iant@google.com>
3129
3130         * profile.c (total_num_never_executed): Don't define.
3131         (compute_branch_probabilities): Don't count or print
3132         num_never_executed.
3133         (init_branch_prob): Don't set total_num_never_executed.
3134         (end_branch_prob): Don't print total_num_never_executed.
3135
3136 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
3137
3138         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
3139
3140 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
3141
3142         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
3143         (nabstd2_fpr): Same.
3144
3145 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
3146
3147         * expr.c (expand_assignment): Change complex type check.
3148
3149 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
3150
3151         * doc/plugins.texi (Building GCC plugins): Added new section. 
3152
3153 2009-06-17  Ian Lance Taylor  <iant@google.com>
3154
3155         * c-pch.c (get_ident): Don't set size of templ array.
3156         (pch_init): Don't set size of partial_pch array.
3157
3158         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
3159         string constant to intialize an array whose size is the length of
3160         the string.
3161
3162 2009-06-17  Richard Guenther  <rguenther@suse.de>
3163
3164         PR tree-optimization/40389
3165         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
3166         to addressable types.
3167         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
3168
3169 2009-06-17  Richard Guenther  <rguenther@suse.de>
3170
3171         PR middle-end/40460
3172         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
3173         if there is no evolution of left in the loop bail out.
3174         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
3175         chrec_fold_multiply.
3176
3177 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
3178             Janis Johnson  <janis187@us.ibm.com>
3179
3180         PR target/39254
3181         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
3182         for the symbol ref of a constant that is the source of a move
3183         - nor for any other not-obvious-label-ref constants.
3184
3185 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
3186
3187         * plugin.c (position_pass): Skip newly inserted pass during list
3188         traversal to avoid repeated insertion.
3189
3190 2009-06-16  Ian Lance Taylor  <iant@google.com>
3191
3192         * vec.h (VEC_stack_alloc): Define different version if
3193         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
3194         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
3195         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
3196         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
3197
3198 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3199
3200         * config.gcc (extra_headers): Add ia32intrin.h for x86.
3201
3202         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
3203         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
3204         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
3205         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
3206         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
3207         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
3208         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
3209         (bdesc_special_args): Add __builtin_ia32_rdtsc and
3210         __builtin_ia32_rdtscp.
3211         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
3212         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
3213         and __builtin_ia32_rorhi.
3214         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
3215         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
3216         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
3217         (ix86_expand_args_builtin): Likewise.
3218         (ix86_expand_special_args_builtin): Likewise.
3219
3220         * config/i386/i386.md (UNSPECV_RDTSCP): New.
3221         (UNSPECV_RDTSC): Likewise.
3222         (UNSPECV_RDPMC): Likewise.
3223         (*bsr): Renamed to ...
3224         (bsr): This
3225         (*bsr_rex64): Renamed to ...
3226         (bsr_rex64): This.
3227         (rdpmc): New.
3228         (*rdpmc): Likewise.
3229         (*rdpmc_rex64): Likewise.
3230         (rdtsc): Likewise.
3231         (*rdtsc): Likewise.
3232         (*rdtsc_rex64): Likewise.
3233         (rdtscp): Likewise.
3234         (*rdtscp): Likewise.
3235         (*rdtscp_rex64): Likewise.
3236
3237         * config/i386/ia32intrin.h: New.
3238
3239         * config/i386/x86intrin.h: Include <ia32intrin.h>.
3240
3241 2009-06-16  Ian Lance Taylor  <iant@google.com>
3242
3243         * ira-build.c (copy_info_to_removed_store_destinations):
3244         Initialize parent_a.
3245
3246 2009-06-16  Ian Lance Taylor  <iant@google.com>
3247
3248         * c-decl.c (grokdeclarator): Change size_varies to bool.
3249
3250 2009-06-16  Ian Lance Taylor  <iant@google.com>
3251
3252         * sel-sched.c: Make forward declarations of move_op_hooks and
3253         fur_hooks explicitly extern.
3254
3255 2009-06-16  Ian Lance Taylor  <iant@google.com>
3256
3257         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
3258         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
3259
3260 2009-06-16  Ian Lance Taylor  <iant@google.com>
3261
3262         * resource.c (mark_referenced_resources): Change
3263         include_delayed_effects parameter to bool.  Change all callers.
3264         (mark_end_of_function_resources): Likewise.
3265         * reorg.c (insn_references_resource_p): Likewise.
3266         (insn_sets_resource_p): Likewise.
3267         * resource.h (mark_referenced_resources): Update declaration.
3268         (mark_end_of_function_resources): Update declaration.
3269
3270 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
3271
3272         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
3273
3274 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
3275
3276         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
3277         GCC can bootstrap on AIX with GNU Binutils 2.20.
3278
3279 2009-06-16  Ian Lance Taylor  <iant@google.com>
3280
3281         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
3282
3283 2009-06-16  Ian Lance Taylor  <iant@google.com>
3284
3285         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
3286         inline, not extern inline.
3287         (exact_log2): Likewise.
3288         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
3289         test CLZ_HWI.
3290         (exact_log2): Likewise, but don't test CTZ_HWI.
3291
3292 2009-06-16  Ian Lance Taylor  <iant@google.com>
3293
3294         * bitmap.c (bitmap_clear): Don't declare as inline.
3295         * gimple.c (gimplify_assign): Likewise.
3296         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
3297         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
3298         (sched_scan_info): Remove duplicate definition.
3299
3300 2009-06-16  Ian Lance Taylor  <iant@google.com>
3301
3302         * c-common.c (skip_evaluation): Don't define.
3303         (c_inhibit_evaluation_warnings): Define global variable.
3304         (overflow_warning): Check c_inhibit_evaluation_warnings rather
3305         than skip_evaluation.
3306         (convert_and_check, warn_for_div_by_zero): Likewise.
3307         * c-common.h (skip_evaluation): Don't declare.
3308         (c_inhibit_evaluation_warnings): Declare.
3309         * c-parser.c (c_parser_typeof_specifier): Set
3310         c_inhibit_evaluation_warnings rather than skip_evaluation.
3311         (c_parser_conditional_expression): Likewise.
3312         (c_parser_binary_expression): Likewise.
3313         (c_parser_sizeof_expression): Likewise.
3314         (c_parser_alignof_expression): Likewise.
3315         * c-typeck.c (build_indirect_ref): Check
3316         c_inhibit_evaluation_warnings rather than skip_evaluation.
3317         (build_conditional_expr, build_binary_op): Likewise.
3318
3319 2009-06-16  Richard Guenther  <rguenther@suse.de>
3320
3321         * tree-ssa-alias.c (is_escape_site): Remove.
3322         * tree-ssa-alias.h (enum escape_type): Remove.
3323         (is_escape_site): Likewise.
3324         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
3325         via casts and asms without deferring to is_escape_site.
3326
3327 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
3328
3329         PR middle-end/40446
3330         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
3331         use gen_lowpart if op0 has complex mode.
3332
3333 2009-06-16  Richard Guenther  <rguenther@suse.de>
3334
3335         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
3336         variables add them to ESCAPED.
3337         (find_func_aliases): Do not make all indirectly stored values escaped.
3338
3339 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
3340
3341         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
3342         make_decl_one_only.
3343
3344 2009-06-16  Martin Jambor  <mjambor@suse.cz>
3345
3346         PR tree-optimization/40432
3347         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
3348         check whether we need to force gimple register operand.
3349
3350 2009-06-16  Martin Jambor  <mjambor@suse.cz>
3351
3352         PR tree-optimization/40413
3353         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
3354         build_ref_for_offset.
3355         (propagate_subacesses_accross_link): Fix a typo in a comment.
3356
3357 2009-06-16  Ira Rosen  <irar@il.ibm.com>
3358
3359         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
3360         with additional parameter.
3361         * tree-vectorizer.h (enum vect_def_type): Add new value
3362         vect_nested_cycle.
3363         (enum vect_relevant): Add comments.
3364         (vect_is_simple_reduction): Add new argument.
3365         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
3366         Detect nested cycles.
3367         (vect_is_simple_reduction): Update documentation, add an argument to
3368         distinguish inner-loop reduction from nested cycle, detect nested
3369         cycles, fix printings and indentation, don't swap operands in case
3370         of nested cycle.
3371         (get_initial_def_for_reduction): Handle subtraction.
3372         (vect_create_epilog_for_reduction): Add new argument to specify
3373         reduction variable.
3374         (vect_finalize_reduction): Handle subtraction, fix comments.
3375         (vectorizable_reduction): Handle nested cycles. In case of nested
3376         cycle keep track of the reduction variable position. Call 
3377         vect_is_simple_reduction with additional parameter. Use original
3378         statement code in reduction epilogue for nested cycle. Call
3379         vect_create_epilog_for_reduction with additional parameter.
3380         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
3381         inner-loop vectorization.
3382         (vect_recog_widen_sum_pattern): Likewise.
3383         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
3384         and reductions.
3385         (vect_mark_stmts_to_be_vectorized): Likewise.
3386         (vect_get_vec_def_for_operand): Handle nested cycles.
3387
3388 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3389
3390         * doc/invoke.texi (Debugging Options): Fix option index entries
3391         for -fdump-statistics, -frandom-seed add entries for
3392         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
3393         (FRV Options): Fix entries for -mTLS, -mtls.
3394         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
3395         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
3396         (M68hc1x Options): Fix @itemx for -mnominmax.
3397         (MCore Options): Fix entry for -mno-lsim.
3398         (MMIX Options): Fix entry for -mabi=mmixware.
3399         (PDP-11 Options): Fix entry for -mbcopy-builtin.
3400
3401 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
3402
3403         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
3404         Mention the plugin mode of gengtype.
3405         * doc/gty.texi (Source Files Containing Type Information): Likewise.
3406         * gengtype.c: Updated copyright.
3407         (plugin_files, nb_plugin_files) Added new static variables.
3408         (measure_input_list) Care about plugin_files.
3409         (write_rtx_next): Added early return in plugin mode.
3410         (create_file): Updated copyright year in generated file. Added
3411         asserts.
3412         (oprintf): Added early return if NULL outf.
3413         (get_output_file_with_visibility): Care of plugin_files.
3414         (get_output_file_name): May return null.
3415         (write_local): Added early return.
3416         (put_mangled_filename): Ditto.
3417         (finish_root_table): Added check for base_files.
3418         (write_roots): Care about null when plugins.
3419         (main): Added plugin mode.
3420
3421 2009-06-15  Ian Lance Taylor  <iant@google.com>
3422
3423         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
3424         * gcov.c (read_count_file): Add braces around variables declared
3425         before label.
3426
3427         * c.opt (Wjump-misses-init): New warning.
3428         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
3429         -Wall and -Wc++-compat if not already set.
3430         (c_common_post_options): Clear warn_jump_misses_init if it was not
3431         set.
3432         * c-decl.c (struct c_binding): Change type field to a union with
3433         new label field.  Make it the first field in the struct.  Update
3434         references to type to use u.type instead.
3435         (struct c_spot_bindings): Define.
3436         (struct c_goto_bindings): Define.
3437         (c_goto_bindings_p): Define, along with VECs.
3438         (struct c_label_vars): Define.
3439         (struct c_scope): Add has_label_bindings field.
3440         (bind_label, set_spot_bindings): New static functions.
3441         (decl_jump_unsafe, update_spot_bindings): New static functions.
3442         (update_label_decls): New static function.
3443         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
3444         Update binding u.label field to shadowed field.
3445         (c_binding_start_stmt_expr): New function.
3446         (c_binding_end_stmt_expr): New function.
3447         (pushdecl): Don't call c_begin_vm_scope.
3448         (make_label): Add defining and p_label_vars parameters.  Change
3449         all callers.
3450         (lookup_label): Correct test for whether a label has not yet been
3451         defined.  Call bind_label rather than bind.
3452         (warn_about_goto): New static function.
3453         (lookup_label_for_goto): New function.
3454         (declare_label): Call bind_label rather than bind.
3455         (check_earlier_gotos): New static function.
3456         (define_label): Don't give errors about jumping into statement
3457         expressions or scopes of variably modified types.  Call
3458         set_spot_bindings and check_earlier_gotos.  Call bind_label
3459         instead of bind.  Don't set label_context_stack_se or
3460         label_context_stack_vm.
3461         (c_get_switch_bindings): New function.
3462         (c_release_switch_bindings): New function.
3463         (c_check_switch_jump_warnings): New function.
3464         (start_function): Don't set label_context_stack_se or
3465         label_context_stack_vm.
3466         (finish_function): Likewise.
3467         * c-typeck.c (label_context_stack_se): Don't define.
3468         (label_context_stack_vm): Don't define.
3469         (c_finish_goto_label): Call lookup_label_for_goto rather than
3470         lookup_label.  Don't give errors about jumping into a statement
3471         expression or the scope of a variably modified type.  Don't set
3472         label_context_stack_se or label_context_stack_vm.
3473         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
3474         fields.  Add bindings field.
3475         (c_start_case): Don't set deleted fields.  Set bindings field.
3476         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
3477         or blocked_vm.  Call c_check_switch_jump_warnings.
3478         (c_finish_case): Don't test blocked_stmt_expr field.  Call
3479         c_release_switch_bindings.
3480         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
3481         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
3482         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
3483         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
3484         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
3485         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
3486         (c_begin_vm_scope, c_end_vm_scope): Don't define.
3487         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
3488         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
3489         (C_DECL_UNJUMPABLE_VM): Don't define.
3490         (C_DECL_UNDEFINABLE_VM): Don't define.
3491         (struct c_label_list): Don't define.
3492         (struct c_label_context_se): Don't define.
3493         (struct c_label_context_vm): Don't define.
3494         (struct c_spot_bindings): Declare.
3495         (c_bindings_start_stmt_expr): Declare.
3496         (c_bindings_end_stmt_expr): Declare.
3497         (lookup_label_for_goto): Declare.
3498         (c_get_switch_bindings, c_release_switch_bindings): Declare.
3499         (c_check_switch_jump_warnings): Declare.
3500         (label_context_stack_se, label_context_stack_vm): Don't declare.
3501         (c_finish_goto_label): Update declaration.
3502         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
3503         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
3504         (Warning Options): Document -Wjump-misses-init.
3505
3506 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3507
3508         * tree-object-size.c (addr_object_size): Fix a pasto in the last
3509         change.
3510
3511 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
3512
3513         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
3514
3515 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
3516
3517         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
3518
3519 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
3520
3521         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
3522
3523 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
3524
3525         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
3526         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
3527         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
3528         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
3529         * dwarf2asm.c (dw2_force_const_mem): Update call to
3530         make_decl_one_only.
3531         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
3532         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
3533         * langhooks.c (lhd_comdat_group): Remove.
3534         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
3535         * tree.h (DECL_COMDAT_GROUP): New.
3536         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
3537         (tree_decl_with_vis): Add comdat_group. Remove one_only.
3538         (make_decl_one_only): Change signature.
3539         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
3540         make_decl_one_only.
3541         (make_decl_one_only): Change signature.
3542         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
3543
3544 2009-06-15  Richard Guenther  <rguenther@suse.de>
3545
3546         PR middle-end/40439
3547         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
3548
3549 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3550
3551         * tree-ssa-math-opts.c: Remove extra divide.
3552
3553 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3554
3555         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
3556
3557 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3558
3559         * passes.c: Add bswap pass.
3560         * tree-pass.h: Add pass_optimize_bswap declaration.
3561         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
3562         Include rtl.h, expr.h and optabs.h for optab_handler check.
3563         (struct symbolic_number, pass_optimize_bswap): New definition.
3564         (do_shift_rotate, verify_symbolic_number_p): New functions.
3565         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
3566         (gate_optimize_bswap): New function.
3567         * tree.c (widest_int_cst_value): New function.
3568         * tree.h (widest_int_cst_value): Prototype added.
3569
3570 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
3571
3572         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
3573         REG_EQUAL/REG_EQUIV notes.
3574
3575 2009-06-14  Richard Guenther  <rguenther@suse.de>
3576
3577         PR middle-end/40389
3578         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
3579         has its address taken if NRV was applied and it is addressable.
3580         * tree-ssa-structalias.c (get_constraint_for_address_of): New
3581         function split out from ...
3582         (get_constraint_for_1): ... here.
3583         (handle_rhs_call): Use it to mark the return slot escaped if
3584         it is addressable and NRV was applied.
3585
3586 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
3587
3588         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
3589         Change first argument type to location_t.
3590         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
3591         Do not set input_location.
3592         Use loc instead of input_location throughout.
3593
3594 2009-06-13  Richard Guenther  <rguenther@suse.de>
3595
3596         PR tree-optimization/40421
3597         * tree-predcom.c (should_unroll_loop_p): Remove.
3598         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
3599
3600 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
3601
3602         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3603         Add location argument.
3604
3605 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
3606
3607         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
3608         build_decl.
3609         * config/s390/s390.c (s390_build_builtin_va_list): Same.
3610         (s390_gimplify_va_arg): Pass location to create_artificial_label.
3611         * config/spu/spu-protos.h: Add location to
3612         spu_resolve_overloaded_builtin.
3613         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
3614         spu_build_builtin_va_list.
3615         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
3616         argument.  Pass location to build_function_call_vec.
3617         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
3618         build_decl.
3619         (emit_fpu_switch): Same.
3620         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
3621         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
3622         to build_decl and create_artificial_label.
3623         (xtensa_gimplify_va_arg_expr): Same.
3624         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
3625         (xstormy16_gimplify_va_arg_expr): Same.
3626         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
3627         * config/arm/arm.c (arm_build_builtin_va_list): Same.
3628         * config/mips/mips.c (mips_build_builtin_va_list): Same.
3629         (mips16_build_function_stub): Same.
3630         (mips16_build_call_stub): Same.
3631
3632 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
3633
3634         PR target/40327
3635         * arm/constraints.md (Pa, Pb): New constraints.
3636         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
3637         split pattern to deal with them.
3638
3639 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
3640
3641         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
3642         fix index entry for -Xpreprocessor.
3643
3644 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
3645
3646         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3647         Add location argument to build_decl call.
3648         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
3649         (rs6000_init_builtins): Same.
3650         (spe_init_builtins): Same.
3651         (rs6000_gimplify_va_arg): Add location argument to
3652         create_artificial_label call.
3653
3654 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
3655
3656         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
3657         * combine-stack-adj.c (pass_stack_adjustments): Use it.
3658         * Makefile.in: Fix GGC dependency for gcse.o.
3659
3660 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
3661
3662         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
3663         * gimple-pretty-print.c (dump_gimple_stmt): Same.
3664         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
3665         created.
3666         * c-parser.c (c_parser_binary_expression): Use current column while
3667         building binary operations.
3668         * common.opt (fshow-column): Enable by default.
3669         * tree-vrp.c (check_array_ref): Use warning_at.
3670         (check_array_bounds): Use location from call back if expr has no
3671         location.
3672         * tree.h: Add location argument to maybe_fold_*.
3673         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
3674         (maybe_fold_offset_to_array_ref): Add location argument and use it.
3675         (maybe_fold_offset_to_component_ref): Same.
3676         (maybe_fold_offset_to_reference): Same.
3677         (maybe_fold_offset_to_address): Same.
3678         (maybe_fold_stmt_indirect): Same.
3679         (maybe_fold_stmt_addition): Same.
3680         (fold_stmt_r): Pass location to maybe_fold_*.
3681         (fold_gimple_assign): Same.
3682         * c-tree.h: Add location argument to finish_decl,
3683         default_function_array_conversion, store_init_value.
3684         * c-decl.c (define_label): Use error_at.
3685         (c_make_fname_decl): Pass location to finish_decl.
3686         (finish_decl): New location argument.
3687         (build_compound_literal): Pass location to store_init_value.
3688         (grokdeclarator): Pass location to finish_decl.
3689         (grokfield): Same.
3690         * c-typeck.c (array_to_pointer_conversion): New location argument.
3691         (function_to_pointer_conversion): Same.
3692         (default_function_array_conversion): Same.
3693         (parser_build_unary_op): Pass location to overflow_warning.
3694         (parser_build_binary_op): Same.  Use warning_at.
3695         (build_unary_op): Pass location to array_to_pointer_conversion.
3696         (build_c_cast): Pass location to digest_init.
3697         (build_modify_expr): New location argument.
3698         (convert_for_assignment): Same.
3699         (store_init_value): Same.
3700         (digest_init): Same.
3701         (output_init_element): Pass location to digest_init and
3702         array_to_pointer_conversion.
3703         (c_finish_return): Pass location to convert_for_assignment.
3704         * gimplify.c (gimplify_conversion): Pass location to
3705         maybe_fold_offset_to_address.
3706         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
3707         to maybe_fold_stmt_addition.
3708         * c-omp.c (c_finish_omp_atomic): Pass new location to
3709         build_modify_expr.
3710         (c_finish_omp_for): Same.
3711         * c-common.c (overflow_warning): New argument.
3712         * c-common.h: New argument to build_modify_expr, overflow_warning.
3713         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
3714         finish_decl.
3715         (c_parser_initializer): Pass location to
3716         default_function_array_conversion.
3717         (c_parser_initelt): Same.
3718         (c_parser_initval): Same.
3719         (c_parser_asm_operands): Same.
3720         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
3721         (c_parser_conditional_expression): Same.
3722         (c_parser_binary_expression): Add location info to stack.  Use it.
3723         (c_parser_unary_expression): Pass location to
3724         default_function_array_conversion, parser_build_unary_op,
3725         build_indirect_ref, c_parser_postfix_expression_after_primary.
3726         (c_parser_postfix_expression_after_primary): New location argument.
3727         Use it.
3728         (c_parser_expression_conv): Pass location to
3729         default_function_array_conversion.
3730         (c_parser_expr_list): Same.
3731         (c_parser_omp_atomic): Same.
3732         (c_parser_omp_for_loop): Same.
3733         * c-tree.h: (struct c_declarator): Add comment to id_loc.
3734         (build_array_declarator): New argument.
3735         * c-decl.c (build_array_declarator): Add location argument.
3736         (grokdeclarator): Set id_loc for cdk_array.
3737         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
3738         build_array_declarator.
3739         * tree.c (build_omp_clause): Add location argument.
3740         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
3741         (OMP_CLAUSE_LOCATION): New macro.
3742         (struct tree_omp_clause): Add location field.
3743         (build_omp_clause): Add argument.
3744         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
3745         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
3746         build_omp_clause.
3747         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
3748         (cp_parser_omp_clause_collapse): Same.
3749         (cp_parser_omp_clause_default): Same.
3750         (cp_parser_omp_clause_if): Same.
3751         (cp_parser_omp_clause_nowait): Same.
3752         (cp_parser_omp_clause_num_threads): Same.
3753         (cp_parser_omp_clause_ordered): Same.
3754         (cp_parser_omp_clause_schedule): Same.
3755         (cp_parser_omp_clause_untied): Same.
3756         (cp_parser_omp_for_loop): Same.
3757         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
3758         * c-tree.h (c_start_case): Add location argument.
3759         (c_process_expr_stmt): Same.
3760         (c_finish_goto_*): Same.
3761         * tree-parloops.c (initialize_reductions): Pass location to
3762         build_omp_clause.
3763         (create_parallel_loop): Same.
3764         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
3765         (gfc_trans_omp_reduction_list): Same.
3766         (gfc_trans_omp_clauses): Same.
3767         (gfc_trans_omp_do): Same.
3768         * c-typeck.c (c_finish_goto_label): Same.
3769         (c_finish_goto_ptr): New location argument.
3770         (c_start_case): Same.
3771         (emit_side_effect_warnings): Same.
3772         (c_process_expr_stmt): Same.
3773         (c_finish_stmt_expr): Same.
3774         (c_finish_omp_clauses): Use error_at instead of error.
3775         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
3776         build_omp_clause.
3777         * c-omp.c (c_split_parallel_clauses): New location argument.
3778         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
3779         to build_omp_clause.
3780         (convert_local_reference_stmt): Same.
3781         (convert_gimple_call): Same.
3782         * c-common.h (c_split_parallel_clauses): New argument.
3783         * c-parser.c (c_parser_statement_after_labels): Pass location to
3784         c_finish_goto_label.
3785         (c_parser_switch_statement): Pass location to c_start_case.
3786         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
3787         and c_process_expr_stmt.
3788         (c_parser_omp_variable_list): Add location argument.
3789         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
3790         (c_parser_omp_clause_default): Same.
3791         (c_parser_omp_clause_if): Same.
3792         (c_parser_omp_clause_num_threads): Same.
3793         (-c_parser_omp_clause_ordered): Same.
3794         (c_parser_omp_clause_reduction): Pass location to
3795         c_parser_omp_variable_list.
3796         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
3797         (c_parser_omp_clause_untied): Same.
3798         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
3799         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
3800
3801         * c-tree.h (check_for_loop_decls, undeclared_variable,
3802         build_component_ref, build_array_ref, build_external_ref,
3803         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
3804         build_conditional_expr, build_compound_expr, c_cast_expr,
3805         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
3806         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
3807         argument.
3808         * c-semantics.c (build_stmt): Same.
3809         (build_case_label): Same.
3810         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
3811         (undeclared_variable): New argument.
3812         (make_label): Same.
3813         (lookup_label): Pass location on down.
3814         (define_label): Same.
3815         (finish_decl): Same.
3816         (build_compound_literal): Same.
3817         (finish_struct): Same.
3818         (finish_function): Do not set location here.
3819         (check_for_loop_decls): New argument.
3820         * tree.c (save_expr): Set location.
3821         (build_empty_stmt): New argument.
3822         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
3823         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
3824         * builtins.c (gimplify_va_arg_expr): Use locations.
3825         (expand_builtin_sync_operation): Same.
3826         * c-typeck.c (build_component_ref): New argument.
3827         (build_array_ref): Same.
3828         (build_external_ref): Same.
3829         (c_expr_sizeof_expr): Same.
3830         (c_expr_sizeof_type): Same.
3831         (parser_build_unary_op): Same.
3832         (build_conditional_expr): Same.
3833         (build_compound_expr): Pass location on down.
3834         (build_compound_expr): New argument.
3835         (build_c_cast): Same.
3836         (c_cast_expr): Same.
3837         (build_asm_expr): Same.
3838         (c_finish_return): Same.
3839         (c_process_expr_stmt): Pass location on down.
3840         (c_finish_stmt_expr): New argument.
3841         (push_clenaup): Same.
3842         (c_finish_omp_parallel): Same.
3843         (c_finish_omp_task): Same.
3844         * gimplify.c (gimplify_call_expr): Pass location on down.
3845         * c-omp.c (c_finish_omp_master): New argument.
3846         (c_finish_omp_critical): Same.
3847         (c_finish_omp_ordered): Same.
3848         (c_finish_omp_barrier): Same.
3849         (-c_finish_omp_taskwait): Same.
3850         (c_finish_omp_atomic): Same.
3851         (c_finish_omp_flush): Same.
3852         * tree-inline.c (copy_tree_body_r): Pass location on down.
3853         (inline_forbidden_p): Remove use of input_location.
3854         * c-gimplify.c (c_build_bind_expr): New argument.
3855         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
3856         (c_sizeof_or_alignof_type): New argument.
3857         (c_alignof_expr): Same.
3858         (build_va_arg): Same.
3859         (c_add_case_label): Same.
3860         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
3861         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
3862         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
3863         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
3864         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
3865         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
3866         New argument.
3867         * stub-objc.c (objc_build_selector_expr): Same.
3868         (objc_build_throw_stmt): Same.
3869         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
3870         (c_parser_initelt): Same.
3871         (c_parser_compound_statement): Same.
3872         (c_parser_compound_statement_nostart): Same.
3873         (c_parser_label): Same.
3874         (c_parser_statement_after_labels): Same.
3875         (c_parser_if_body): Same.
3876         (c_parser_else_body): Same.
3877         (c_parser_if_statement): Same.
3878         (c_parser_switch_statement): Same.
3879         (c_parser_while_statement): Same.
3880         (c_parser_do_statement): Same.
3881         (c_parser_for_statement): Same.
3882         (c_parser_asm_statement): Same.
3883         (c_parser_conditional_expression): Same.
3884         (c_parser_binary_expression): Same.
3885         (c_parser_cast_expression): Same.
3886         (c_parser_unary_expression): Same.
3887         (c_parser_sizeof_expression): Same.
3888         (c_parser_alignof_expression): Same.
3889         (c_parser_postfix_expression): Same.
3890         (c_parser_expression): Same.
3891         (c_parser_objc_receiver): Same.
3892         (c_parser_omp_variable_list): Same.
3893         (c_parser_omp_structured_block): Same.
3894         (c_parser_omp_atomic): New argument.
3895         (c_parser_omp_barrier): Same.
3896         (c_parser_omp_critical): Same.
3897         (c_parser_omp_flush): Pass location on down.
3898         (c_parser_omp_for_loop): New argument.
3899         (c_parser_omp_for): Same.
3900         (c_parser_omp_master): Same.
3901         (c_parser_omp_ordered): Same.
3902         (c_parser_omp_sections_scope): Same.
3903         (c_parser_omp_sections): Same.
3904         (c_parser_omp_parallel): Same.
3905         (c_parser_omp_single): Same.
3906         (c_parser_omp_task): Same.
3907         (c_parser_omp_taskwait): Pass location on down.
3908         (c_parser_omp_construct): Same.
3909         (c_parser_omp_threadprivate): Same.
3910         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
3911         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
3912         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
3913         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
3914         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
3915         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
3916         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
3917         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
3918         config/i386/i386.c, stmt.c:
3919         Add location argument to the following function definitions and/or
3920         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
3921         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
3922         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
3923         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
3924         do_case, c_finish_bc_stmt, build_compound_literal,
3925         build_function_call.
3926         * c-decl.c (build_compound_literal): Add location argument.
3927         Make all diagnostic calls use location.
3928         (start_struct): Same.
3929         (finish_struct): Same.
3930         (start_enum): Same.
3931         (build_enumerator): Same.
3932         (start_function): Same.
3933         (grokdeclarator): Make all diagnostic calls use location.
3934         (store_parm_decls_oldstyle): Same.
3935         * c-typeck.c (build_function_call): Add location argument.
3936         Make all diagnostic calls use location.
3937         (do_case): Same.
3938         (c_finish_bc_stmt): Same.
3939         * tree-nested.c (get_trampoline_type): Add argument.
3940         Pass location to build_decl.
3941         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
3942         * rtl.h (RTL_LOCATION): New.
3943         * c-common.c (c_add_case_label): Add location argument.
3944         Make all diagnostic calls use location.
3945         * c-common.h: Add location argument to make_fname_decl, do_case,
3946         c_add_case_label, build_function_call, resolve_overloaded_builtin.
3947         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
3948         Set it appropriately for every case.  Pass enum_loc to start_enum
3949         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
3950         parser_xref_tag.
3951         (c_parser_struct_or_union_specifier): Save location.  Use it for
3952         start_struct, finish_struct, and parser_xref_tag.
3953
3954 2009-06-12  Ian Lance Taylor  <iant@google.com>
3955
3956         * fold-const.c (fold_unary): Rename local variable and to and_expr.
3957
3958         * c-opts.c (c_common_handle_option): For -Wc++-compat set
3959         cpp_opts->warn_cxx_operator_names.
3960
3961 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3962
3963         PR tree-opt/38865
3964         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
3965         is returns NULL and OP is a VCE, look through the VCE.
3966
3967 2009-06-12  Ian Lance Taylor  <iant@google.com>
3968
3969         PR bootstrap/40430
3970         * collect2.c (main): Use CONST_CAST2 in code inside #if
3971         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
3972
3973 2009-06-12  Joey Ye  <joey.ye@intel.com>
3974
3975         PR middle-end/39146
3976         * cfgexpand.c (get_decl_align_unit): Update
3977         max_used_stack_slot_alignment with align instead of