OSDN Git Service

2009-08-11 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-08-11  Andrew Haley  <aph@redhat.com>
2
3         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
4
5 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6
7         PR bootstrap/40103
8         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9
10 2009-08-12  Richard Guenther  <rguenther@suse.de>
11
12         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
13         * gimplify.c (gimplify_modify_expr): Do not use
14         lang_hooks.types_compatible_p.
15         * tree-ssa.c (useless_type_conversion_p): For aggregates
16         just return false if the canonical types differ.
17
18 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
19
20         PR middle-end/40980
21         * sese.c (convert_for_phi_arg): New.
22         (add_guard_exit_phis): Use convert_for_phi_arg.
23
24 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
25
26         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
27         unknown subscript upper bounds.
28
29 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
30             Pranav Garg  <pranav.garg2107@gmail.com>
31
32         * graphite-interchange.c (gather_access_strides): Removed.
33         (ppl_max_for_le): New.
34         (build_linearized_memory_access): New.
35         (memory_stride_in_loop): New.
36         (pbb_interchange_profitable_p): Reimplemented.
37         * graphite-ppl.h (ppl_new_id_map): New.
38         (ppl_interchange): New.
39
40 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
41
42         * graphite-interchange.c (compute_subscript): Removed.
43         (compute_array_size_cstr): Removed.
44         (compute_array_size_poly): Removed.
45         (compute_array_size): Removed.
46         (gather_access_strides_poly): Removed.
47         (gather_access_strides): Empty.
48
49 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
50
51         * graphite-dependences.c (dependence_polyhedron_1): Replace
52         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
53         (graphite_legal_transform_dr): Same.
54         (graphite_carried_dependence_level_k): Same.
55         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
56         Initialize PDR_NB_SUBSCRIPTS.
57         (print_pdr_access_layout): Replace pdr_nb_subscripts with
58         PDR_NB_SUBSCRIPTS.
59         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
60         (PDR_NB_SUBSCRIPTS): New.
61         (pdr_nb_subscripts): Removed.
62         (pdr_dim): Simplified.
63         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
64         with PDR_NB_SUBSCRIPTS.
65
66 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
67
68         * graphite-interchange.c (compute_array_size): Remove use of
69         PDR_DATA_CONTAINER.
70         * graphite-poly.c (new_poly_dr): Remove argument data_container.
71         Do not initialize PDR_DATA_CONTAINER.
72         (print_pdr): Do not print PDR_DATA_CONTAINER.
73         * graphite-poly.h (struct poly_dr): Remove data_container field.
74         (PDR_DATA_CONTAINER): Removed.
75         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
76         PDR_DATA_CONTAINER.
77         (build_poly_dr): Same.
78
79 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
80             Sebastian Pop  <sebastian.pop@amd.com>
81
82         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
83         copy of the dependence polyhedron.  Free the temporary objects.
84         (graphite_carried_dependence_level_k): Free unused objects before
85         returning.
86
87         * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
88         * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
89         * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
90         * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
91         * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
92
93 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
94
95         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
96         Early return without analyzing the data dependences if no
97         transform has been done.  Call restore_scattering if the transform
98         is not legal.
99         (graphite-interchange.c): Same.
100         * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
101         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
102         (apply_poly_transforms): Do not gcc_assert that
103         the transform is legal.
104         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
105         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
106         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
107         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
108         * graphite-poly.h (struct poly_scattering): New.
109         (struct poly_bb): Add original, transformed, and saved fields.
110         Remove transformed_scattering, original_scattering, nb_local_variables,
111         and nb_scattering_transform fields.
112         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
113         (poly_scattering_new): New.
114         (poly_scattering_free): New.
115         (poly_scattering_copy): New.
116         (store_scattering_pbb): New.
117         (store_scattering): New.
118         (restore_scattering_pbb): New.
119         (restore_scattering): New.
120         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
121         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
122
123 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
124
125         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
126         (print_scop): Same.
127
128 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
129
130         * Makefile.in (graphite.o): Depends on PREDICT_H.
131         * graphite.c: Include predict.h.
132         (graphite_finalize): Call tree_estimate_probability.
133         * predict.c (predict_loops): Do not call scev_initialize and
134         scev_finalize.
135         (tree_estimate_probability_bb): New.
136         (tree_estimate_probability): Do not initialize loops: move that
137         code to the driver.  Call tree_estimate_probability_bb.
138         (tree_estimate_probability_driver): New.
139         (pass_profile): Use tree_estimate_probability_driver.
140         * predict.h (tree_estimate_probability): Declared.
141
142 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
143
144         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
145         * graphite-dependences.c (graphite_legal_transform): Add time to
146         TV_GRAPHITE_DATA_DEPS.
147         (dependency_between_pbbs_p): Same.
148         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
149
150 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
151
152         PR rtl-optimization/41033
153         * alias.c (nonoverlapping_component_refs_p): Punt when strict 
154         aliasing is disabled.
155
156 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
157
158         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
159         si_mask_operand, and_load_operand, low_bitmask_operand,
160         and_reg_operand, and_operand): New predicates.
161         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
162         * config/mips/mips.c (and_operands_ok): New function.
163         * config/mips/mips-protos.h (and_operands_ok): Declare it.
164         * config/mips/mips.md (move_type): Add ext_ins and logical.
165         (type): Handle them.
166         (and<mode>3): Use and_reg_operand as the second operand's
167         predicate.
168         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
169         shift_shift.  Remove commutative constraint modifier.
170         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
171         shift_shift.
172         (*clear_upper32_dext): Remove define_insn_and_split.
173         (*clear_upper32): Turn this define_insn_and_split ...
174         (splitter for ANDing register with 0xffff_ffff): .. into this.
175
176 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
177
178         * combine.c (try_widen_shift_mode): Factor out code to check if an
179         integer constant is a low-order bitmask from here ...
180         * rtlanal.c (low_bitmask_len): ... to here.
181         * rtl.h (low_bitmask_len): Declare.
182
183 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
184
185         PR target/8603
186         * config/alpha/alpha.md (addsi3): Remove expander.
187         (addsi3): Rename from *addsi3_internal insn pattern.
188         (subsi3): Remove expander.
189         (subsi3): Rename from *subsi3_internal insn pattern.
190
191 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
192
193         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
194         FWRITE_UNLOCKED.
195
196 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
197             Eric Botcazou  <botcazou@adacore.com>
198             Douglas B Rupp  <rupp@gnat.com>
199
200         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
201         that records that fit in 64 bits are returned by immediate value,
202         as required by OpenVMS Calling Standard.
203         (function_value): Adjust for above modification.
204         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
205         virtual_incoming_args_rtx as base object, not next_arg.
206         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
207
208 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
209
210         * reload.c (find_reloads_subreg_address): Check the original
211         req_equiv_mem address to detect the case where an address is
212         not valid in the outer mode.
213
214 2009-08-11  Richard Guenther  <rguenther@suse.de>
215         
216         PR bootstrap/40788
217         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
218
219 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
220
221         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
222         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
223
224 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
225             Douglas B Rupp  <rupp@gnat.com>
226
227         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
228         PT_STACK when frame_pointer_needed on OpenVMS.
229         (alpha_pv_save_size, alpha_using_fp): Remove.
230         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
231         with proper processing for PT_NULL.
232         (alpha_vms_initial_elimination_offset): New function. Support for
233         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
234         (alpha_sa_size): Force procedure type to PT_STACK when
235         frame_pointer_needed on OpenVMS.
236         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
237         (alpha_using_fp): Likewise.
238         (alpha_vms_can_eliminate): Add prototype.
239         (alpha_vms_initial_elimination_offset): Likewise.
240         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
241         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
242
243 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
244             Douglas B Rupp  <rupp@gnat.com>
245
246         * config/alpha/alpha.c (common_object_handler): New function.
247         (vms_attribute_table): Declare a single attribute "common_object".
248         (vms_output_aligned_decl_common): New global function.
249         (SECTION_VMS_OVERLAY): Delete.
250         (SECTION_VMS_GLOBAL): Likewise.
251         (SECTION_VMS_INITIALIZE): Likewise.
252         (vms_asm_named_section): Remove support for above flags.
253         (vms_section_type_flags): Delete.
254         (TARGET_SECTION_TYPE_FLAGS): Likewise.
255         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
256         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
257         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
258
259 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
260
261         PR target/41015
262         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
263         (sub_ddmmss): Likewise.
264
265 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
266
267         PR bootstrap/41018
268         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
269         year.
270
271 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
272
273         PR target/37053
274         * reload1.c (reload_as_needed): Use cancel_changes to completely
275         undo a failed replacement attempt.
276
277 2009-08-10  Richard Guenther  <rguenther@suse.de>
278
279         PR middle-end/41006
280         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
281         (useless_type_conversion_p): ... here.  Require pointer targets
282         to be compatible.
283
284 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
285
286         PR c++/40866
287         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
288         loose the original type of the statement list.
289
290 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
291
292         * config/alpha/alpha.c: Include libfuncs.h
293         (avms_asm_output_extern): New function.
294         (alpha_init_libfuncs): Init some decc libfuncs.
295         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
296         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
297         (DO_CRTL_NAMES): Define.
298         (LIB_SPEC): Remove.
299         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
300         (LONG_TYPE_SIZE): Define.
301         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
302         (SUBTARGET_SWITCHES): Define malloc64 switch.
303         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
304         (MASK_RETURN_ADDR): Define.
305         doc/invoke.texi (mmalloc64): Document switch.
306
307 2009-08-09  Olivier Hainque  <hainque@adacore.com>
308             Douglas B Rupp  <rupp@gnat.com>
309
310         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
311         uses_condition_handler.
312         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
313         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
314         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
315         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
316         (code_for_builtin): New insn codes for the new alpha_builtins.
317         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
318         (alpha_sa_size): Account for uses_condition_handler.
319         (alpha_expand_prologue): Likewise.
320         (alpha_start_function): Likewise.
321         (alpha_expand_epilogue): Likewise.
322         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
323         establish/revert expanders.
324         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
325         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
326         New expander, resorting to the alpha.c associated function.
327         (builtin_revert_vms_condition_handler): Likewise.
328         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
329         __gcc_shell_handler, the static VMS condition handler used as
330         an indirection wrapper to the current dynamically established
331         handler.
332         * config/alpha/vms-unwind.h: Complete rewrite.
333         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
334         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
335         
336 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
337             Douglas B Rupp  <rupp@gnat.com>
338
339         * config/alpha/alpha.c (alpha_links): Add 'target' field.
340         (alpha_need_linkage): Handle aliases.  Return function symbol.
341         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
342         Use ultimate alias target for the linkage name.
343         * config/alpha/alpha.md (movmemdi): Use the symbol returned
344         by alpha_need_linkage for the function symbol.
345         (setmemdi): Likewise.
346
347 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
348
349         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
350         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
351         (ASM_WEAKEN_LABEL): Define.
352         (CRT_CALL_STATIC_FUNCTION): Define.
353         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
354         (ENDFILE_SPEC): Define.
355         (INIT_SECTION_ASM_OP): Define.
356         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
357         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
358         crtend.o crtendS.o.
359         (MULTILIB_OSDIRNAMES): Define.
360         (shlib_version): Define.
361         (SHLIB_EXT): Define.
362         (SHLIB_OBJS): Define.
363         (SHLIB_NAME): Define.
364         (SHLIB_MULTILIB): Define.
365         (SHLIB_INSTALL): Define.
366         (SHLIB_SYMVEC): Define.
367         (SHLIB_SYMVECX2): Define.
368         (SHLIB_LINK): Define.
369
370 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
371
372         * config/alpha/alpha.c (alpha_initialize_trampoline):
373         Initialize VMS trampoline IAW ABI for bounded procedure calls.
374         (alpha_start_function): Emit transfer address on nested functions
375         for VMS trampoline call.
376         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
377         since no longer used.
378         * config/alpha/vms-tramp.asm: Remove.
379         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
380         since now only data initialized at runtime.
381
382 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
383
384         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
385         (LINK_GCC_C_SEQUENCE_SPEC): Define.
386         (MD_EXEC_PREFIX): Remove, no longer used.
387         (MD_STARTFILE_PREFIX): Likewise.
388         (INCLUDE_DEFAULTS): Likewise.
389         * config/alpha/t-vms:
390         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
391
392 2009-08-09  Richard Guenther  <rguenther@suse.de>
393
394         PR tree-optimization/41016
395         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
396         (operand_precision): Remove.
397         (integral_operand_p): Likewise.
398         (recognize_single_bit_test): Adjust.
399
400 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
401
402         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
403         operation overflows.  Likewise non-cast unary arithmetic.
404         If one arm of a conditional expression is always taken,
405         inhibit evaluation warnings for the other arm.  Likewise inhibit
406         evaluation warnings for the second && or || operand if the first
407         operand is enough to determine the result.
408         * c-typeck.c (build_conditional_expr): Apply the same inhibition
409         rules here.
410         (build_binary_op): Prevent duplicate evaluation warnings.
411
412 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
413
414         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
415         and destination have different modes, Use promote_mode to
416         determine the signedness of the conversion.  Assert that the
417         promoted source mode matches the destination mode.  Don't pass
418         the destination and destination mode to expand_expr if the source
419         mode is different.  Simplify conversion logic.
420
421 2009-08-09  Ira Rosen  <irar@il.ibm.com>
422
423         PR tree-optimization/41008
424         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
425         from condition only in case it's a comparison. Adjust checks.   
426
427 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
428
429         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
430         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
431         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
432         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
433         (dump_cand): Handle them.
434         (struct iv_cand): New members COST_STEP and AINC_USE.
435         (stmt_after_increment): Likewise.
436         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
437         callers changed.  Use gimple_uid comparison instead of scanning.
438         (add_candidate_1): When looking for identical candidates, take
439         AINC_USE into account.  Set it for new candidates.
440         (force_expr_to_var_cost): Cast target_spill_cost to int.
441         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
442         All callers changed.  Check for availability of autoinc addressing
443         modes, both in general for a given mode, and in the specific use case.
444         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
445         changed.
446         (get_computation_cost): Likewise.
447         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
448         add_autoinc_candidates): New static functions.
449         (add_candidate): Call add_autoinc_candidates for candidates based on
450         a USE_ADDRESS use.
451         (find_iv_candidates): Call set_autoinc_for_original_candidates.
452         (determine_use_iv_cost_address): If we have an autoinc candidate at
453         the matching use, verify autoinc is possible and subtract the cost
454         of the candidate's step from the cost.
455         (determine_iv_cost): Record the cost of the increment in the COST_STEP
456         member of the candidate.
457         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
458         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
459
460 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
461
462         * config.build (ia64-hp-*vms*): New target.
463         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
464         with ia64-hp-*vms*.
465         * config.gcc (ia64-hp-*vms*): New target.
466         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
467         with ia64-hp-*vms*.
468         * config.host (ia64-hp-*vms*): New target.
469         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
470         with ia64-hp-*vms*.
471
472 2009-08-08  Richard Guenther  <rguenther@suse.de>
473
474         PR tree-optimization/40991
475         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
476
477 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
478
479         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
480         mode check.  Do truncations in an integer mode.
481         (force_to_mode): Handle subregs for all mode types.  Only do
482         arithmetic simplifications on integer modes.
483
484 2009-08-07  Richard Guenther  <rguenther@suse.de>
485
486         PR tree-optimization/40999
487         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
488         (maybe_fold_reference): Lookup constant initializers.
489         (fold_gimple_assign): Likewise.
490
491 2009-08-07  Richard Guenther  <rguenther@suse.de>
492
493         * tree-ssa.c (useless_type_conversion_p_1): Only for types
494         that require structural equality defer to the langhook.
495
496 2009-08-07  Martin Jambor  <mjambor@suse.cz>
497
498         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
499         comments.
500         (struct ipa_pass_through_data): New type.
501         (struct ipa_ancestor_jf_data): New type.
502         (union jump_func_value): Removed field formal_id, added fields
503         pass_through and ancestor.
504         (struct ipa_param_call_note): Changed type of formal_id to int from
505         unsigned.
506         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
507         operations jump functions and ancestor jump functions.
508         (compute_complex_pass_through): New function.
509         (compute_scalar_jump_functions): Call compute_complex_pass_through,
510         reflect changes in the jump function strucutre.
511         (update_jump_functions_after_inlining): Ignore complex pass-through
512         and ancestor jump functions.
513         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
514         polynomial pass-through with operation jump functions.
515
516 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
517
518         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
519         fde->dw_fde_begin as begin label instead of hot/cold label.
520         Use LLSDAC label instead of LLSDA for second section lsda.
521         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
522         label instead of LLSDA if it is true.
523         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
524         callers.
525         * except.c (add_call_site, dw2_size_of_call_site_table): Add
526         SECTION argument.  Use it as index into crtl->eh.call_site_record
527         array.
528         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
529         use it to determine how to print table entries instead of using
530         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
531         label instead of normal begin label as base.
532         (sjlj_assign_call_site_values): Adjust add_call_site caller.
533         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
534         ensure no EH range spans between sections and that landing pads
535         are always in the corresponding section.
536         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
537         for crtl->eh.call_site_record being an array rather than scalar.
538         (output_one_function_exception_table): New function, copied
539         from output_function_exception_table.  Adjust
540         dw2_size_of_call_site_table, dw2_output_call_site_table
541         callers.  For SECOND section use *C suffixed labels.
542         (output_function_exception_table): Call
543         output_one_function_exception_table and, when doing hot/cold
544         partitioning, also another time for the second section.
545         * opts.c: Include except.h.
546         (decode_options): Allow -freorder-blocks-and-partition with
547         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
548         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
549         * function.h (struct rtl_eh): Change call_site_record from
550         scalar into array of 2 elements.
551
552 2009-08-07  Martin Jambor  <mjambor@suse.cz>
553
554         * ipa-prop.c (count_formal_params_1): New function.
555         (ipa_get_vector_of_formal_parms): New function.
556         (get_vector_of_formal_parm_types): New function.
557         (ipa_modify_formal_parameters): New function.
558         (ipa_modify_call_arguments): New function.
559         (index_in_adjustments_multiple_times_p): New function.
560         (ipa_combine_adjustments): New function.
561         (ipa_dump_param_adjustments): New function.
562         * ipa-prop.h (struct ipa_parm_adjustment): New type.
563         (ipa_get_vector_of_formal_parms): Declare.
564         (ipa_modify_formal_parameters): Declare.
565         (ipa_modify_call_arguments): Declare.
566         (ipa_combine_adjustments): Declare.
567         (ipa_dump_param_adjustments): Declare.
568         (build_ref_for_offset): Declare.
569         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
570         * tree-sra.c: Include ipa-prop.c.
571         (build_ref_for_offset): Make public. 
572
573 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
574
575         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
576         
577 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
578
579         * gcc/doc/extend.texi (__builtin_extract_return_address)
580         (__builtin_frob_return_address): Document.
581
582 2009-08-06  Paul Brook  <paul@codesourcery.com>
583
584         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
585         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
586         implementation on ARMv6-M.
587
588 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
589
590         * doc/extend.texi (pcs): Document new attribute for ARM.
591
592 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
593
594         * arm.c (pcs_attribute_args): Comment out unsupported attribute
595         variants.
596
597 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
598
599         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
600         warning ().
601
602 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
603
604         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
605
606 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
607
608         Merge ARM/hard_vfp_branch to trunk.
609
610         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
611
612         * arm.c (libcall_eq): New function.
613         (libcall_hash): New function.
614         (add_libcall): New function.
615         (arm_libcall_uses_aapcs_base): New function.
616         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
617         libcalls using the base PCS.
618         (arm_init_cumulative_args): Likewise.
619
620         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
621
622         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
623         Use base ABI for conversion libfuncs between HFmode and SFmode.
624
625         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
626
627         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
628         V4SImode as representatives of all 64-bit and 128-bit vector
629         types.  Allow vector types without vector modes.
630         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
631         without vector modes like BLKmode.
632         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
633         BLKmode.  Avoid unsupported vector modes or TImode moves for
634         non-TARGET_NEON.
635         (aapcs_vfp_allocate_return_reg): Likewise.
636         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
637         V8QImode if TARGET_NEON || TARGET_IWMMXT.
638
639         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
640
641         * config/arm/arm.c (arm_handle_pcs_attribute): New.
642         (arm_get_pcs_model): Pass attribute arguments to
643         arm_pcs_from_attribute.
644         (arm_init_cumulative_args): Use base AAPCS for conversions from
645         floating-point types to DImode.
646         (arm_attribute_table): Add pcs attribute.
647         (arm_handle_pcs_attribute): New.
648         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
649         conversions from floating-point types to DImode, also declare them
650         to use base AAPCS and declare functions they call to use base
651         AAPCS and their RTABI names.
652
653         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
654
655         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
656         -mfloat-abi=hard not being supported for VFP.
657
658         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
659
660         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
661         SYMBOL_REF to hard_libcall_value.
662
663         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
664             Richard Earnshaw  <rearnsha@arm.com>
665
666         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
667         has been put on the stack, all remaining co-processory arguments for
668         that co-processor also go on the stack.
669
670         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
671
672         * config/arm/arm.c (arm_return_in_memory): Handle returning
673         vectors of suitable size in registers also for AAPCS case.
674
675         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
676
677         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
678
679         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
680
681         ARM Hard-VFP calling convention
682         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
683         * target.h (gcc_target): Add libcall_value to table of call hooks.
684         * targhooks.h (default_libcall_value): Default implementation.
685         * targhooks.c (default_libcall_value): Likewise.
686         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
687         * optabs.c (expand_unop): Use it.
688         * expr.h (hard_libcall_value): Pass the function RTX through.
689         * calls.c (emit_library_call_value_1): Update call to 
690         hard_libcall_value.
691         * explow.c (hard_libcall_value): Use new target hook.
692         * testsuite/lib/target-supports.exp
693         (check_effective_target_arm_hard_vfp_ok): New hook.
694         (check_effective_target_arm_neon_ok): Improve test for neon
695         availability.
696         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
697         * config/arm/arm.c: Include cgraph.h
698         (TARGET_FUNCTION_VALUE): Override default hook.
699         (arm_pcs_default): New variable.
700         (arm_override_options): Don't fault hard calling convention with VFP.
701         Add support for AAPCS variants.
702         (arm_function_value): Make static.  Handle AAPCS variants.
703         (arm_libcall_value): New function.
704         (arm_apply_result_size): Handle VFP registers in results.
705         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
706         conventions.
707         (pcs_attribute_args): New variable.
708         (arm_pcs_from_attribute): New function.
709         (arm_get_pcs_model): New function.
710         (aapcs_vfp_cum_init): New function.
711         (aapcs_vfp_sub_candidate): New function.
712         (aapcs_vfp_is_return_candidate): New function.
713         (aapcs_vfp_is_call_candidate): New function.
714         (aapcs_vfp_allocate): New function.
715         (aapcs_vfp_allocate_return_reg): New function.
716         (aapcs_vfp_advance): New function.
717         (aapcs_cp_arg_layout): New variable.
718         (aapcs_select_call_coproc): New function.
719         (aapcs_select_return_coproc): New function.
720         (aapcs_allocate_return_reg): New function.
721         (aapcs_libcall_value): New function.
722         (aapcs_layout_arg): New function.
723         (arm_init_cumulative_args): Initialize AAPCS args data.
724         (arm_function_arg): Handle AAPCS variants using new interface.
725         (arm_arg_parital_bytes): Likewise.
726         (arm_function_arg_advance): New function.
727         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
728         calling conventions.
729         (arm_setup_incoming_varargs): Handle new AAPCS args data.
730         * arm.h (NUM_VFP_ARG_REGS): Define.
731         (LIBCALL_VALUE): Update.
732         (FUNCTION_VALUE): Delete.
733         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
734         (arm_pcs): New enum.
735         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
736         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
737         (FUNCTION_ARG_REGNO_P): Add VFP regs.
738         * arm-protos.h (arm_function_arg_advance): Add.
739         (aapcs_libcall_value): Add.
740         (arm_function_value): Delete.
741
742 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
743             H.J. Lu  <hongjiu.lu@intel.com>
744
745         PR target/40957
746         * config/i386/i386.c (standard_sse_mode_p): Remove.
747         (standard_sse_constant_p): Return 2 for integer mode
748         vector_all_ones_operand when SSE2 is enabled.
749         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
750         (ix86_expand_vector_move): Do not check for negative values from
751         standard_sse_constant_p.
752
753 2009-08-06  Richard Guenther  <rguenther@suse.de>
754
755         * tree-ssa.c (useless_type_conversion_p_1): Make function and
756         array type comparisons frontend independent.
757         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
758         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
759         out array reference lower bound and element size operands.
760         (ao_ref_init_from_vn_reference): Properly compute the offset
761         for ARRAY_RANGE_REF.
762         (vn_reference_fold_indirect): Fill out array reference lower
763         bound and element size operands.
764         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
765         a non gimple valued reference operand which can happen for
766         array reference lower bound or element size.
767         (create_component_ref_by_pieces_1): Properly generate the
768         element size operand for array references.
769
770 2009-08-06  Richard Guenther  <rguenther@suse.de>
771
772         PR tree-optimization/40964
773         * tree.c (iterative_hash_host_wide_int): Export.
774         * tree.h (iterative_hash_host_wide_int): Declare.
775         * tree-ssa-structalias.c (heapvar_map): New struct.
776         (heapvar_map_eq): New function.
777         (heapvar_map_hash): Likewise.
778         (heapvar_lookup): Adjust.
779         (heapvar_insert): Likewise.
780         (make_constraint_from_heapvar): Allow multiple heap variables
781         per decl at different offsets.
782         (init_alias_heapvars): Adjust.
783
784 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
785
786         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
787         * mips_output_sync_loop (mips_output_sync_loop): Only emit
788         trailing sync if TARGET_SYNC_AFTER_SC.
789
790 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
791
792         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
793         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
794         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
795         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
796         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
797         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
798         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
799         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
800         test_and_set_12): Rewrite calls to mips_output_sync_loop.
801         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
802         the prototype declaration match the definition.
803         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
804         instructions explicitly.  Add barrier_before and operands
805         parameters.
806         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
807         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
808         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
809         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
810         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
811         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
812
813 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
814
815         * tree-ssa-alias.c: Fix intervals to use [) syntax.
816
817 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
818             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
819
820         PR target/40906
821         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
822         source operand.
823
824 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
825
826         PR rtl-optimization/40924
827         * dse.c (canon_address): Before calling cselib_expand_value_rtx
828         make sure canon_rtx (mem_address) isn't simpler than
829         canon_rtx (expanded_mem_address).
830
831 2009-08-05  Li Feng  <nemokingdom@gmail.com>
832
833         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
834         for each poly_bb_p.
835         (build_scop_drs): Build alias set for each SCoP.
836
837 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
838
839         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
840         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
841         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
842         (MIPS_ARCH_FLOAT_SPEC): Likewise.
843         (BASE_DRIVER_SELF_SPECS): Likewise.
844
845 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
846
847         * tree-ssa-alias.c: Fix some comment typos.
848
849 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
850
851         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
852         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
853
854 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
855
856         PR c/39902
857         * simplify-rtx.c (simplify_binary_operation_1): Disable
858         simplifications for decimal float operations.
859
860 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
861
862         PR middle-end/40943
863         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
864         operand of INDIRECT_REF.
865
866 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
867
868         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
869         constants referencing TLS symbols.
870
871 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
872
873         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
874         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
875
876 2009-08-03  Richard Guenther  <rguenther@suse.de>
877
878         * tree.c (make_vector_type): Build a main variant first,
879         get the canonical one and then build the variant.
880         * tree-ssa.c (useless_type_conversion_p_1): Handle
881         fixed-point types.
882         (useless_type_conversion_p): Conversions to pointers to
883         incomplete record types are useless.
884
885 2009-08-03  Richard Guenther  <rguenther@suse.de>
886
887         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
888         file will be created.
889         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
890         * toplev.c (compile_file): Adjust comment.
891
892 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
893
894         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
895         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
896         (TARGET_PROMOTE_FUNCTION_MODE): Define.
897         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
898         (sh_promote_function_mode): Fix typo.
899
900 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
901
902         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
903
904 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
905
906         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
907         declaration arguments.
908
909 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
910
911         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
912         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
913         (ix86_split_ashl): Ditto.
914         (ix86_expand_vector_init_one_nonzero): Ditto.
915         (ix86_expand_vector_set): Ditto.
916         (ix86_expand_reduc_v4sf): Ditto.
917
918 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
919
920         * explow.c (promote_function_mode): Remove assert.
921         * config/sh/sh.c (sh_promote_function_mode): Declare.
922
923 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
924
925         * config/pa/pa.c (pa_promote_function_mode): Declare.
926         Change to static.  Fix promote_mode call.
927
928         * gthr-dce.h (CONST_CAST2): Define if not defined.
929         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
930
931         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
932
933 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
934
935         * expr.c (store_constructor): Use promote_decl_mode.  Remove
936         now write-only variable unsignedp.
937         (expand_expr_real_1): Use promote_decl_mode.
938         * expr.h (promote_function_mode, promote_decl_mode): New.
939         (promote_mode): Remove last argument.
940         * function.c (assign_temp): Drop last argument of promote_mode.
941         (assign_parm_find_data_types): Use promote_function_mode.
942         (assign_parm_setup_reg): Likewise.
943         (expand_function_end): Use promote_function_mode.
944         * calls.c (initialize_argument_information): Use promote_function_mode.
945         (precompute_arguments): Use promote_mode instead of checking if
946         only PROMOTE_FUNCTION_MODE is defined.
947         (expand_call): When making sibcall decisions, use promote_function_mode.
948         Below, remove an if for targetm.calls.promote_function_return and
949         and use promote_function_mode.
950         (emit_library_call_value_1): Use promote_function_mode, fix bug
951         where promote_mode was passed FOR_CALL == 0 for a return value in an
952         assertion.
953         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
954         * explow.c (promote_function_mode, promote_decl_mode): New.
955         (promote_mode): Keep only the FOR_CALL == 0 case.
956         * combine.c (setup_incoming_promotion): Remove test of
957         promote_function_args.  Use promote_function_mode.
958         * stmt.c (expand_value_return): Use promote_decl_mode.
959         (expand_decl): Use promote_decl_mode.
960
961         * expr.c (store_constructor): Use promote_decl_mode.  Remove
962         now write-only variable unsignedp.
963         (expand_expr_real_1): Use promote_decl_mode.
964         * expr.h (promote_function_mode, promote_decl_mode): New.
965         (promote_mode): Remove last argument.
966         * function.c (assign_temp): Drop last argument of promote_mode.
967         (assign_parm_find_data_types): Use promote_function_mode.
968         (assign_parm_setup_reg): Likewise.
969         (expand_function_end): Use promote_function_mode.
970         * calls.c (initialize_argument_information): Use promote_function_mode.
971         (precompute_arguments): Use promote_mode instead of checking if
972         only PROMOTE_FUNCTION_MODE is defined.
973         (expand_call): When making sibcall decisions, use promote_function_mode.
974         Below, remove an if for targetm.calls.promote_function_return and
975         and use promote_function_mode.
976         (emit_library_call_value_1): Use promote_function_mode, fix bug
977         where promote_mode was passed FOR_CALL == 0 for a return value in an
978         assertion.
979         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
980         * explow.c (promote_function_mode, promote_decl_mode): New.
981         (promote_mode): Keep only the FOR_CALL == 0 case.
982         * combine.c (setup_incoming_promotion): Remove test of
983         promote_function_args.  Use promote_function_mode.
984         * stmt.c (expand_value_return): Use promote_decl_mode.
985         (expand_decl): Use promote_decl_mode.
986
987         * explow.c (promote_function_mode): Just call the target hook.
988         * targhooks.c (default_promote_function_mode,
989         default_promote_function_mode_always_promote): New.
990         * targhooks.h (default_promote_function_mode,
991         default_promote_function_mode_always_promote): Declare.
992         * target.h (promote_function_args, promote_function_return): Remove.
993         (promote_function_mode): New.
994         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
995         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
996         (TARGET_PROMOTE_FUNCTION_MODE): New.
997         (TARGET_CALLS): Adjust.
998         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
999         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
1000
1001         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
1002         * config/s390/s390.c (s390_promote_function_mode): ... here,
1003         with pointer handling.
1004         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1005         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1006
1007         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
1008         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
1009         with pointer handling.
1010         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1011         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1012         
1013         * config/sh/sh-protos.h (sh_promote_function_mode): New.
1014         * config/sh/sh.c (sh_promote_function_mode): New.
1015         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1016         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1017
1018         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
1019         * config/cris/cris.c (cris_promote_function_mode): ... here.
1020         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1021         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1022
1023         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
1024         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
1025         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1026         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1027
1028         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
1029         * config/arm/arm.c (arm_promote_function_mode): ... here, without
1030         complex type handling.
1031         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1032         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1033
1034         * config/pa/pa.c (pa_promote_function_mode): New.
1035         (TARGET_PROMOTE_FUNCTION_MODE): Define.
1036         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1037
1038         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
1039         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1040         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
1041         * config/xtensa/xtensa.c: Likewise.
1042         * config/stormy16/stormy16.c: Likewise.
1043         * config/iq2000/iq2000.c: Likewise.
1044         * config/rs6000/rs6000.c: Likewise.
1045         * config/picochip/picochip.c: Likewise.
1046         * config/arc/arc.c: Likewise.
1047         * config/mcore/mcore.c: Likewise.
1048         * config/score/score.c: Likewise.
1049         * config/mips/mips.c: Likewise.
1050         * config/bfin/bfin.c: Likewise.
1051         * config/ia64/ia64.c: Likewise (disabled though).
1052
1053         * config/frv/frv.h: Remove pointless remark.
1054
1055         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
1056         TARGET_PROMOTE_FUNCTION_ARGS,
1057         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
1058         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
1059
1060 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
1061
1062         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
1063         -floop-parallelize-all.
1064         * toplev.c (process_options): Rename flag_graphite_force_parallel to
1065         flag_loop_parallelize_all.
1066         * tree-ssa-loop.c (gate_graphite_transforms): Same.
1067         * graphite.c (graphite_transform_loops): Same.
1068         * common.opt: Same.
1069         * graphite-poly.c (apply_poly_transforms): Same.
1070
1071 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
1072
1073         PR tree-optimization/40914
1074         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
1075         if set, then check the delta field of the PMF record.
1076         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
1077         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
1078         call is stored in the delta.
1079
1080 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
1081
1082         * config/mips/mips.md (*clear_upper32_dext): New pattern.
1083
1084 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
1085
1086         * config/i386/bsd.h (ASM_BYTE): New define.
1087         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
1088         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
1089         .byte.  Use fputs or putc instead of fprintf where appropriate.
1090         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
1091         fputs or putc instead of fprintf where appropriate.
1092         * config/i386/i386elf.h: Ditto.
1093         * config/i386/sysv4.h: Ditto.
1094         
1095         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
1096         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
1097         (*tls_global_dynamic_64): Ditto.
1098
1099 2009-07-31  Christian Bruel  <christian.bruel@st.com>   
1100
1101         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
1102         
1103 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1104
1105         * config/arm/arm.c (arm_arm_address_cost): Fix typo. 
1106         Remove dead code for MINUS.
1107
1108 2009-07-31  Anthony Green  <green@moxielogic.com>
1109
1110         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
1111         $r12 in prologue.
1112         (moxie_expand_epilogue): Ditto for epilogue.
1113         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
1114         incoming arguments.
1115         (moxie_function_arg): Ditto.
1116         (moxie_pass_by_reference): Ditto.
1117         (moxie_arg_partial_bytes): Ditto.
1118         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
1119         (FUNCTION_ARG_ADVANCE) Ditto.
1120         (REG_PARM_STACK_SPACE) Ditto.
1121         (FUNCTION_ARG_REGNO_P) Dito.
1122
1123         * config.gcc: Add moxie linux config support.
1124         * gcc/config/moxie/uclinux.h: New file.
1125
1126 2009-07-31  DJ Delorie  <dj@redhat.com>
1127
1128         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1129         (UNSPECV_SP_SWITCH_E): New.
1130         (sp_switch_1): Change to an unspec.
1131         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
1132         replace $r15.
1133         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
1134         reference the new stack's address
1135
1136 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1137
1138         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
1139         graphite-clast-to-gimple.o, graphite-dependences.o,
1140         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1141         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
1142         (graphite-blocking.o,
1143         graphite-clast-to-gimple.o, graphite-dependences.o,
1144         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1145         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
1146         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
1147         * cfgloop.h (struct loop): Add can_be_parallel field.
1148         * common.opt (fgraphite-identity): Moved up.
1149         (fgraphite-force-parallel): New flag.
1150         * graphite.c: Rewrite.
1151         * graphite.h: Rewrite.
1152         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
1153         after Graphite.
1154         * toplev.c (graphite_out_file): New file descriptor.
1155         (graphite_in_file): New.
1156         (process_options): flag_graphite_force_parallel cannot be used without
1157         Graphite.
1158         * tree-ssa-loop.c: Include toplev.h.
1159         (gate_graphite_transforms): Enable flag_graphite for
1160         flag_graphite_force_parallel.
1161
1162 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1163
1164         * ChangeLog.graphite: New.
1165         * graphite-blocking.c: New.
1166         * graphite-clast-to-gimple.c: New.
1167         * graphite-clast-to-gimple.h: New.
1168         * graphite-dependences.c: New.
1169         * graphite-dependences.h: New.
1170         * graphite-interchange.c: New.
1171         * graphite-poly.c: New.
1172         * graphite-poly.h: New.
1173         * graphite-ppl.c: New.
1174         * graphite-ppl.h: New.
1175         * graphite-scop-detection.c: New.
1176         * graphite-scop-detection.h: New.
1177         * graphite-sese-to-poly.c: New.
1178         * graphite-sese-to-poly.h: New.
1179         * sese.c: New.
1180         * sese.h: New.
1181
1182 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1183
1184         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1185         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
1186
1187 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1188
1189         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
1190         (scev_is_linear_expression): Return false if the evolution is not
1191         affine multivariate.
1192
1193 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1194
1195         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1196         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1197
1198 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1199
1200         * tree-data-ref.c (debug_data_references): New.
1201         (debug_data_reference): New.
1202         * tree-data-ref.h (debug_data_references): Declared.
1203         (debug_data_reference): Declared.
1204
1205 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1206
1207         * tree-data-ref.c (stmt_simple_memref_p: Removed.
1208         * tree-data-ref.h (scop_p): Removed.
1209         (struct data_reference): Remove field scop.
1210         (DR_SCOP): Removed.
1211         (stmt_simple_memref_p): Removed.
1212
1213 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1214
1215         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
1216         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
1217         basic block empty.
1218
1219 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1220
1221         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
1222
1223 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1224
1225         * doc/invoke.texi (-fgraphite-identity): Documented.
1226
1227 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1228
1229         * tree-scalar-evolution.c: Fix comment.
1230         (instantiate_scev_1): Return unknow from scev instantiation if the
1231         result is not above instantiate_below.
1232
1233 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
1234
1235         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
1236         static anymore.  Instantiate the symbols that may have been introduced
1237         by chrec_apply.
1238         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
1239         Declared.
1240
1241 2009-07-30  DJ Delorie  <dj@redhat.com>
1242
1243         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
1244         .vliw directive to VLIW sections.
1245
1246 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1247
1248         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
1249         New variables.
1250         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
1251         (AUTOHEADER): New variable.
1252         ($(srcdir)/cstamp-h.in): Use it.
1253
1254 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1255             Pat Haugen  <pthaugen@us.ibm.com>
1256             Revital Eres <ERES@il.ibm.com>
1257
1258         * config/rs6000/vector.md (VEC_F): Add VSX support.
1259         (VEC_A): Ditto.
1260         (VEC_N): Ditto.
1261         (mov<mode>): Ditto.
1262         (vector_load_<mode>): Ditto.
1263         (vector_store_<mode>): Ditto.
1264         (vector GPR move split): Ditto.
1265         (vec_reload_and_plus_<mptrsize>): Ditto.
1266         (vec_reload_and_reg_<mptrsize>): Ditto.
1267         (add<mode>3): Ditto.
1268         (sub<mode>3): Ditto.
1269         (mul<mode>3): Ditto.
1270         (neg<mode>2): Ditto.
1271         (abs<mode>2): Ditto.
1272         (smin<mode>3): Ditto.
1273         (smax<mode>3): Ditto.
1274         (vector_eq<mode>): Ditto.
1275         (vector_gt<mode>): Ditto.
1276         (vector_ge<mode>): Ditto.
1277         (vector_gtu<mode>): Ditto.
1278         (vector_select_<mode>_uns): Ditto.
1279         (vector_eq_<mode>_p): Ditto.
1280         (vector_gt_<mode>_p): Ditto.
1281         (vector_ge_<mode>_p): Ditto.
1282         (vector_gtu_<mode>_p): Ditto.
1283         (cr6_test_for_zero): Ditto.
1284         (cr6_test_for_zero_reverse): Ditto.
1285         (cr6_test_for_lt): Ditto.
1286         (cr6_test_for_lt_reverse): Ditto.
1287         (xor<mode>3): Ditto.
1288         (ior<mode>3): Ditto.
1289         (and<mode>3): Ditto.
1290         (one_cmpl<mode>2): Ditto.
1291         (nor<mode>2): Ditto.
1292         (andc<mode>2): Ditto.
1293         (float<VEC_int<mode>2): Ditto.
1294         (unsigned_float<VEC_int><mode>2): Ditto.
1295         (fix_trunc<mode><VEC_int>2): Ditto.
1296         (fixuns_trunc<mode><VEC_int>2): Ditto.
1297         (vec_init<mode>):
1298         (vec_set<mode>): Ditto.
1299         (vec_extract<mode>): Ditto.
1300         (vec_interleave_highv4sf): Ditto.
1301         (vec_interleave_lowv4sf): Ditto.
1302         (vec_realign_load_<mode>): Ditto.
1303         (vec_shl_<mode>): Ditto.
1304         (vec_shr_<mode>): Ditto.
1305         (div<mode>3): New patterns for VSX.
1306         (vec_interleave_highv2df): Ditto.
1307         (vec_interleave_lowv2df): Ditto.
1308         (vec_pack_trunc_v2df): Ditto.
1309         (vec_pack_sfix_trunc_v2df): Ditto.
1310         (vec_pack_ufix_trunc_v2df): Ditto.
1311         (vec_unpacks_hi_v4sf): Ditto.
1312         (vec_unpacks_lo_v4sf): Ditto.
1313         (vec_unpacks_float_hi_v4si): Ditto.
1314         (vec_unpacku_float_lo_v4si): Ditto.
1315         (vec_unpacku_float_hi_v4si): Ditto.
1316         (vec_unpacks_float_lo_v4si): Ditto.
1317         (movmisalign<mode>): Ditto.
1318         (vector_ceil<mode>2): New patterns for vectorizing math library.
1319         (vector_floor<mode>2): Ditto.
1320         (vector_btrunc<mode>2): Ditto.
1321         (vector_copysign<mode>3): Ditto.
1322
1323         * config/rs6000/predicates.md (easy_vector_constant_msb): New
1324         predicate for setting the high bit in each word, used for copysign.
1325
1326         * config/rs6000/ppc-asm.h (f19): Whitespace.
1327         (f32-f63): Define if VSX.
1328         (v0-v31): Define if Altivec.
1329         (vs0-vs63): Define if VSX.
1330
1331         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
1332
1333         * config/rs6000/power7.md: New file, provide tuning parameters for
1334         -mcpu=power7.
1335
1336         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
1337         (rs6000_cpu_cpp_builtins): Ditto.
1338         (altivec_overloaded_builtins): Ditto.
1339         (altivec_resolve_overloaded_builtin): Ditto.
1340
1341         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
1342         debug switch to disable vectorizing simple math builtin
1343         functions.
1344
1345         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
1346         Vectorize simple math builtin functions.
1347         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
1348         hook to vectorize math builtins.
1349         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
1350         (rs6000_builtin_conversion): Add VSX/power7 support.
1351         (rs6000_builtin_vec_perm): Ditto.
1352         (vsplits_constant): Add support for loading up a vector constant
1353         with just the high bit set in each part.
1354         (rs6000_expand_vector_init): Add VSX/power7 support.
1355         (rs6000_expand_vector_set): Ditto.
1356         (rs6000_expand_vector_extract): Ditto.
1357         (rs6000_emit_move): Ditto.
1358         (bdesc_3arg): Ditto.
1359         (bdesc_2arg): Ditto.
1360         (bdesc_1arg): Ditto.
1361         (rs6000_expand_ternop_builtin): Ditto.
1362         (altivec_expand_builtin): Ditto.
1363         (rs6000_expand_unop_builtin): Ditto.
1364         (rs6000_init_builtins): Ditto.
1365         (altivec_init_builtins): Ditto.
1366         (builtin_function_type): Ditto.
1367         (rs6000_common_init_builtins): Ditto.
1368         (rs6000_handle_altivec_attribute); Ditto.
1369         (rs6000_mangle_type): Ditto.
1370         (rs6000_vector_mode_supported_p): Ditto.
1371         (rs6000_mode_dependent_address): Altivec addresses with AND -16
1372         are mode dependent.
1373
1374         * config/rs6000/vsx.md: New file for VSX support.
1375
1376         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
1377         identifing values with just the most significant bit set.
1378         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
1379         vectorized builtins.
1380
1381         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
1382         (UNSPEC_VRFIM): Delete.
1383         (splitter for loading up vector with most significant bit): New
1384         splitter for vectorizing copysign.
1385         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
1386         vectorizing simple math functions.
1387         (altivec_vrfip): Add support for vectorizing simple math functions.
1388         (altivec_vrfim): Ditto.
1389         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
1390
1391         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
1392         (power7.md, vsx.md): Include for power7 support.
1393         (copysigndf3): Use VSX instructions if -mvsx.
1394         (negdf2_fpr): Ditto.
1395         (absdf2_fpr): Ditto.
1396         (nabsdf2_fpr): Ditto.
1397         (adddf3_fpr): Ditto.
1398         (subdf3_fpr): Ditto.
1399         (muldf3_fpr): Ditto.
1400         (divdf3_fpr): Ditto.
1401         (fix_truncdfdi2_fpr): Ditto.
1402         (cmpdf_internal1): Ditto.
1403         (fred, fred_fpr): Convert into expander/insn to add VSX support.
1404         (btruncdf2, btruncdf2_fpr): Ditto.
1405         (ceildf2, ceildf2_fpr): Ditto.
1406         (floordf2, floordf2_fpr): Ditto.
1407         (floatdidf2, floatdidf2_fpr): Ditto.
1408         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
1409         (fmsubdf4_fpr): Ditto.
1410         (fnmadddf4_fpr_1): Ditto.
1411         (fnmadddf4_fpr_2): Ditto.
1412         (fnmsubdf4_fpr_1): Ditto.
1413         (fnmsubdf4_fpr_2): Ditto.
1414         (fixuns_truncdfdi2): Add expander for VSX support.
1415         (fix_truncdfdi2): Ditto.
1416         (fix_truncdfsi2): Ditto.
1417         (ftruncdf2): Ditto.
1418         (btruncsf2): Whitespace.
1419         (movdf_hardfloat32): Add support for VSX registers.
1420         (movdf_softfloat32): Ditto.
1421         (movdf_hardfloat64): Ditto.
1422         (movdf_hardfloat64_mfpgpr): Ditto.
1423         (movdf_softfloat64): Ditto.
1424         (movti splitters): Add check for vector registers supporting
1425         TImode in the future.
1426         (bpermd): Add power7 bpermd instruction.
1427
1428         * config/rs6000/altivec.h (vec_div): Define if VSX.
1429         (vec_mul): Ditto.
1430         (vec_msub): Ditto.
1431         (vec_nmadd): Ditto.
1432         (vec_nearbyint): Ditto.
1433         (vec_rint): Ditto.
1434         (vec_sqrt): Ditto.
1435         (all predicates): Use the generic builtin function, and not the V4SF
1436         specific function so that the predicates will work with VSX's V2DF.
1437         (vec_all_*): Ditto.
1438         (vec_any_*): Ditto.
1439
1440         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
1441         Document new VSX functions and types.
1442
1443         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
1444         switches.
1445
1446         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
1447         "wa", and "j" constraints.  Modify "v" to talk about Altivec
1448         instead of just vector.
1449
1450 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
1451
1452         PR debug/26475
1453         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
1454         location for phi arguments.
1455         (rewrite_update_phi_arguments): Find locations for reaching defs.
1456         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
1457         Add location to add_phi_arg calls.
1458         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
1459         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
1460         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
1461         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
1462         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
1463         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
1464         * tree-phinodes.c (make_phi_node): Initialize location.
1465         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
1466         (add_phi_arg): Add location parameter.
1467         (remove_phi_arg_num): Move location when moving phi argument.
1468         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set 
1469         location.
1470         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
1471         slpeel_update_phi_nodes_for_guard1,
1472         slpeel_update_phi_nodes_for_guard2,
1473         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
1474         vect_loop_versioning): Set locations.
1475         * tree-parloops.c (create_phi_for_local_result,
1476         transform_to_exit_first_loop, create_parallel_loop): Add locations.
1477         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
1478         * tree-vect-loop.c (get_initial_def_for_induction,
1479         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
1480         locations.
1481         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
1482         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
1483         (gimple_phi_arg_set_location): New.  Set locus.
1484         (gimple_phi_arg_has_location): New.  Check for locus.
1485         (redirect_edge_var_map_location): New.  Return locus from var_map.
1486         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
1487         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
1488         combining PHI arguments.
1489         (cond_store_replacement): Set location.
1490         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
1491         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
1492         scop_add_exit_phis_edge): Add locations.
1493         * tree-cfgcleanup.c (remove_forwarder_block,
1494         remove_forwarder_block_with_phi): Add locations.
1495         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
1496         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
1497         locations.
1498         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
1499         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
1500         flush_pending_stmts): Add source location.
1501         * lambda-code.c (perfect_nestify): Maintain location stack with argument
1502         stack to preserve locations.
1503         * tree-vect-stmts.c (vectorizable_load): Add location.
1504         * tree-inline.c (copy_phis_for_bb): Copy locus.
1505         (setup_one_parameter): Add call locus to inlined parameter stmts.
1506         (initialize_inlined_parameters): Pass in call location as parameter
1507         assignment locus.
1508         (tree_function_versioning): Pass location to setup_one_parameter.
1509         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
1510         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
1511         copy and edge lists.
1512         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
1513         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a 
1514         locus parameter and override the stmt default if provided.
1515         (new_elim_graph, clear_elim_graph, delete_elim_graph,
1516         elim_graph_add_edge, elim_graph_remove_succ_edge,
1517         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
1518         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
1519         eliminate_phi):  Add locus info in elimination graph for each edge and
1520         value copy.
1521         (insert_backedge_copies): Copy locus if present.
1522         * tree-flow.h (struct _edge_var_map): Add locus field.
1523         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
1524         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
1525         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add 
1526         locations.
1527         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
1528         
1529 2009-07-30  Martin Jambor  <mjambor@suse.cz>
1530
1531         PR tree-optimization/40570
1532         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
1533         use inlining loops.
1534
1535 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
1536
1537         * ssa-loop-manip.c: Include langhooks.h.
1538         (rewrite_phi_with_iv): New.
1539         (rewrite_all_phi_nodes_with_iv): New.
1540         (canonicalize_loop_ivs): Move here from tree-parloops.c.
1541         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
1542         * tree-parloops.c (loop_parallel_p): Move out all conditions
1543         except dependency check.
1544         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
1545         (gen_parallel_loop): Call canonicalize_loop_ivs without
1546         reduction_list argument.
1547         (build_new_reduction): New.
1548         (gather_scalar_reductions): New.
1549         (try_get_loop_niter): New.
1550         (try_create_reduction_list): New.
1551         (parallleize_loops): Change the parallel conditions check.
1552         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1553         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
1554
1555 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1556
1557         * opt-functions.awk (opt_args): Allow argument to be enclosed in
1558         curly braces.
1559         * doc/options.texi (Option properties):  Mention new quoting syntax.
1560
1561 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1562
1563         * config/alpha/alpha.c (alpha_start_function):
1564         Handle VMS_DEBUG_MAIN_POINTER
1565         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
1566         * doc/invoke.texi: Document -mdebug-main switch.
1567
1568 2009-07-29  Richard Henderson  <rth@redhat.com>
1569
1570         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
1571         (cgraph_create_edge_including_clones): Likewise.
1572         * tree-inline.c (copy_bb): Operate on the correct edges
1573         when updating the callgraph.
1574
1575 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1576
1577         * config/alpha/vms-cc.c: Deleted.
1578         * config/alpha/vms-ld.c: Deleted.
1579         * config/alpha/t-vms64: Moved to config/vms
1580         * config/alpha/vms-crt0-64.c: Moved to config/vms
1581         * config/alpha/vms-crt0.c: Moved to config/vms
1582         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
1583         * config/alpha/vms-psxcrt0.c: Moved to config/vms
1584         * config/alpha/xm-vms.h: Moved to config/vms
1585         * config/alpha/x-vms: Moved to config/vms
1586         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
1587         config/vms/t-vms.
1588         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
1589         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
1590         (version): Set.
1591         * config/vms/t-vms64: Moved here from config/alpha
1592         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
1593         (argc,argv,envp): Enforce 32bit malloc'ing.
1594         * config/vms/vms-psxcrt0-64.c: Likewise.
1595         * config/vms/vms-crt0.c: Moved here from config/alpha.
1596         * config/vms/vms-psxcrt0.c: Likewise.
1597         * config/vms/vms-crtl-64.h: New file.
1598         * config/vms/vms-crtl.h: New file.
1599         * config/vms/vms.opt: New file.
1600         * config/vms/xm-vms64.h: New file.
1601         * config/vms/xm-vms.h: Moved here from config/alpha.
1602         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
1603         Set.
1604         * config/vms/x-vms: Moved here from config/alpha.
1605         (version, VMS_EXTRA_PARTS): Moved to t-vms.
1606         (vms-ld.o, vms-cc.o): Removed.
1607         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
1608
1609 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1610
1611         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
1612         correct stack (obvious VMS fix).
1613
1614 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1615
1616         * dwarf2out.c (output_file_names): Output VMS style file name, size,
1617         date, version info if VMS_DEBUGGING_INFO defined.
1618         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
1619         size, date calculating code moved here.
1620
1621 2009-07-29  Paul Brook  <paul@codesourcery.com>
1622
1623         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
1624         do_push/do_pop.
1625
1626 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
1627
1628         PR target/40577
1629         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
1630         to DImode when generating insq_le insn.
1631
1632 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1633
1634         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
1635         New macro set for VMS_DEBUGGGING_INFO.
1636         (AT_string_form): Use it.
1637
1638 2009-07-28  DJ Delorie  <dj@redhat.com>
1639
1640         * config/mep/mep.c (vtext_section): New.
1641         (vftext_section): New.
1642         (ftext_section): New.
1643         (mep_select_section): Add support for functions.
1644         (mep_unique_section): Likewise.
1645         (mep_asm_init_sections): Likewise.
1646         (mep_encode_section_info): Remove it from here.
1647
1648         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1649
1650 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
1651
1652         * tree.h (TREE_DEPRECATED): Document it is used for types too.
1653         (TYPE_VECTOR_OPAQUE): Use default_def_flag
1654
1655 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1656
1657         * dwarf2out.c (output_file_names): Test new macro
1658         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
1659         (add_comp_dir_attribute): Likewise.
1660
1661 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
1662
1663         * config/i386/mingw-w64.h (LINK_SPEC): Add
1664         separating space between commands.
1665
1666 2009-07-28  Jan Hubicka  <jh@suse.cz>
1667
1668         PR tree-optimization/40759
1669         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
1670         for renaming.
1671
1672 2009-07-27  DJ Delorie  <dj@redhat.com>
1673
1674         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
1675         types are dword-aligned.
1676         (mep_expand_va_start): Likewise.
1677
1678 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1679             Douglas B Rupp  <rupp@gnat.com>
1680
1681         * convert.c (convert_to_pointer): Don't assume the target
1682         pointer type is POINTER_SIZE long. Fetch its precision instead.
1683
1684 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
1685
1686         * system.h (fopen): Undefine if macro.
1687
1688 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1689
1690         * dwarf2out.c (output_cfi_p): Removed.
1691         (output_cfis): New function.
1692         (output_fde): New function, split from output_call_frame_info.
1693         (output_call_frame_info): Use it.
1694         (dwarf2out_switch_text_section): Use output_cfis.
1695
1696 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
1697
1698         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
1699         TARGET_BI_ARCH is specified without enabling SJLJ.
1700         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
1701         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
1702
1703 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
1704
1705         * arm.md (negdi2): Use DImode if forcing a value into a register.
1706
1707 2009-07-26  Ira Rosen  <irar@il.ibm.com>
1708
1709         PR tree-optimization/40801
1710         * tree-vect-stmts.c (vectorizable_call): Get previous copy
1711         of vector operand from the previous copy of vector statement.
1712         Pass the correct definition type value to
1713         vect_get_vec_def_for_stmt_copy().
1714
1715 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1716
1717         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
1718         const char ** conversion.
1719
1720 2009-07-25 David Daney <ddaney@caviumnetworks.com>
1721
1722         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
1723         fancy_abort() if !ENABLE_ASSERT_CHECKING.
1724         (gcc_unreachable): Invoke __builtin_unreachable() if
1725         !ENABLE_ASSERT_CHECKING.
1726
1727 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
1728
1729         PR rtl-optimization/40445
1730         * emit-rtl.c (next_nonnote_insn_bb): New function.
1731         * rtl.h (next_nonnote_insn_bb): Declare new function.
1732         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
1733         with no successors that is the successor of the ENTRY_BLOCK.
1734         Continue from the top after removing an empty fallthrough block.
1735         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
1736         of next_nonnote_insn.
1737
1738 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
1739
1740         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
1741         
1742 2009-07-25  Martin Jambor  <mjambor@suse.cz>
1743
1744         * c-common.c (c_common_attribute_table): New element for noclone.
1745         (handle_noclone_attribute): New function. Forward-declare.
1746         * tree-inline.c (tree_versionable_function_p): Check for noclone
1747         attribute.
1748         * doc/extend.texi (Labels as Values): Document need for noclone.
1749         (Function Attributes): Document noclone attribute.
1750
1751 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
1752
1753         PR rtl-optimization/34999
1754         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
1755         and dw_fde_switched_cold_to_hot fields.
1756         (output_cfi_p): New function.
1757         (output_call_frame_info): If fde->dw_fde_switched_sections,
1758         output 2 FDEs instead of one with corrupted header.
1759         (dwarf2out_do_cfi_startproc): New function.
1760         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
1761         and fde->dw_fde_switched_cold_to_hot.
1762         (dwarf2out_switch_text_section): Compute
1763         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
1764         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
1765         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
1766         Otherwise, compute fde->dw_fde_switch_cfi.
1767
1768 2009-07-24  Cary Coutant  <ccoutant@google.com>
1769
1770         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
1771
1772 2009-07-24  Cary Coutant  <ccoutant@google.com>
1773
1774         * cfghooks.c (split_block): Copy discriminator to new block.
1775         * tree-cfg.c (assign_discriminator): Check location of last
1776         instruction in block as well as first.
1777
1778 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
1779
1780         * config/i386/linux.c: Use fputs or putc instead of fprintf
1781         where appropriate.
1782         * config/i386/gas.h: Ditto.
1783         * config/i386/x86-64.h: Ditto.
1784         * config/i386/att.h: Ditto.
1785
1786 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1787
1788         * expmed.c (emit_store_flag): Use a recursive call to optimize the
1789         xor case.
1790
1791 2009-07-24  Martin Jambor  <mjambor@suse.cz>
1792
1793         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
1794         (ipa_push_func_to_list_1): Declare.
1795         (ipa_push_func_to_list): New function.
1796
1797         * ipa-prop.c (ipa_push_func_to_list_1): New function.
1798         (ipa_init_func_list): Call ipa_push_func_to_list_1.
1799         (ipa_push_func_to_list): Removed.
1800         (ipa_pop_func_from_list): Clear node_enqueued flag.
1801
1802 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1803         
1804         * config/s390/s390.c (override_options): Default
1805         max-unrolled-insns to 100 for z10 tuning.
1806
1807 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
1808
1809         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
1810         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
1811         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
1812         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
1813         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
1814         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
1815         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
1816
1817 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
1818
1819         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
1820         use default set in mingw32.h header.
1821         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
1822         64-bit /mingw/include path.
1823         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
1824         path.
1825
1826 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
1827
1828         PR rtl-optimization/40209
1829         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
1830
1831 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
1832
1833         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
1834         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
1835         with the rest of string where appropriate.  Use fputs or putc
1836         instead of fprintf where appropriate.
1837
1838 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1839             Pat Haugen  <pthaugen@us.ibm.com>
1840             Revital Eres <ERES@il.ibm.com>
1841
1842         * config/rs6000/vector.md: New file.  Move most of the vector
1843         expander support here from altivec.md to allow for the VSX vector
1844         unit in the future.  Add support for secondary_reload patterns.
1845         Rewrite the patterns for vector comparison, and vector comparison
1846         predicate instructions so that the RTL expresses the desired
1847         behavior, instead of using unspec.
1848
1849         * config/rs6000/constraints.md ("f" constraint): Use
1850         rs6000_constraints to hold the precalculated register class.
1851         ("d" constraint): Ditto.
1852         ("wd" constraint): New constraint for VSX.
1853         ("wf" constraint): Ditto.
1854         ("ws" constraint): Ditto.
1855         ("wa" constraint): Ditto.
1856         ("wZ" constraint): Ditto.
1857         ("j" constraint): Ditto.
1858
1859         * config/rs6000/predicates.md (vsx_register_operand): New
1860         predicate for VSX.
1861         (vfloat_operand): New predicate for vector.md.
1862         (vint_operand): Ditto.
1863         (vlogical_operand): Ditto.
1864         (easy_fp_constant): If VSX, 0.0 is an easy constant.
1865         (easy_vector_constant): Add VSX support.
1866         (altivec_indexed_or_indirect_operand): New predicate for
1867         recognizing Altivec style memory references with AND -16.
1868
1869         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
1870         for vector secondary reload support.
1871         (rs6000_vector_reg_class): Delete, replacing it with
1872         rs6000_constraints.
1873         (rs6000_vsx_reg_class): Ditto.
1874         (rs6000_constraints): New array to hold the register classes of
1875         each of the register constraints that can vary at runtime.
1876         (builtin_mode_to_type): New static array for builtin function type
1877         creation.
1878         (builtin_hash_table): New static hash table for builtin function
1879         type creation.
1880         (TARGET_SECONDARY_RELOAD): Define target hook.
1881         (TARGET_IRA_COVER_CLASSES): Ditto.
1882         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
1883         registers are 128 bits if VSX memory reference instructions are used.
1884         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
1885         unit is being used.
1886         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
1887         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
1888         Print several of the scheduling related parameters.
1889         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
1890         rs6000_constraints instead of rs6000_vector_reg_class.  Move
1891         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
1892         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
1893         Altivec.  Add VSX support.  Setup for secondary reload support on
1894         Altivec/VSX registers.
1895         (rs6000_override_options): Make power7 set the scheduling groups
1896         like the power5.  Add support for new debug switches to override
1897         the scheduling defaults.  Temporarily disable -mcpu=power7 from
1898         setting -mvsx.  Add support for debug switches -malways-hint,
1899         -msched-groups, and -malign-branch-targets.
1900         (rs6000_buitlin_conversion): Add support for returning unsigned
1901         vector conversion functions to fix regressions due to stricter
1902         type checking.
1903         (rs6000_builtin_mul_widen_even): Ditto.
1904         (rs6000_builtin_mul_widen_odd): Ditto.
1905         (rs6000_builtin_vec_perm): Ditto.
1906         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
1907         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
1908         to zero a register.
1909         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
1910         generated upstream.
1911         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
1912         VSX types for bit operations.  Changes to accomidate vector.md.
1913         (bdesc_2arg): Ditto.
1914         (bdesc_1arg): Ditto.
1915         (struct builtin_description_predicates): Rewrite predicate
1916         handling so that RTL describes the operation, instead of passing
1917         the instruction to be used as a string argument.
1918         (bdesc_altivec_preds): Ditto.
1919         (altivec_expand_predicate_builtin): Ditto.
1920         (altivec_expand_builtin): Ditto.
1921         (rs6000_expand_ternop_builtin): Use a switch instead of an if
1922         statement for vsldoi support.
1923         (altivec_expand_ld_builtin): Change to use new names from vector.md.
1924         (altivec_expand_st_builtin): Ditto.
1925         (paired_expand_builtin): Whitespace changes.
1926         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
1927         builtin_mode_to_type table for secondary reload.  Call
1928         builtin_function_type to build random builtin functions.
1929         (altivec_init_builtins): Change to use builtin_function_type to
1930         create builtin function types dynamically as we need them.
1931         (builtin_hash_function): New support for hashing the tree types
1932         for builtin function as we need it, rather than trying to build
1933         all of the trees that we need.  Add initial preliminary VSX support.
1934         (builtin_function_type): Ditto.
1935         (builtin_function_eq): Ditto.
1936         (builtin_hash_struct): Ditto.
1937         (rs6000_init_builtins): Ditto.
1938         (rs6000_common_init_builtins): Ditto.
1939         (altivec_init_builtins): Ditto.
1940         (rs6000_common_init_builtins): Ditto.
1941         (enum reload_reg_type): New enum for simplifing reg classes.
1942         (rs6000_reload_register_type): Simplify register classes into GPR,
1943         Vector, and other registers.  Altivec and VSX addresses in reload.
1944         (rs6000_secondary_reload_inner): Ditto.
1945         (rs6000_ira_cover_classes): New target hook, that returns the
1946         appropriate cover classes, based on -mvsx being used or not.
1947         (rs6000_secondary_reload_class): Add VSX support.
1948         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
1949         (get_vsel_insn): Ditto.
1950         (rs6000_emit_vector_compare): Rewrite vector conditional support
1951         so that where we can, we use RTL operators, instead of blindly use
1952         UNSPEC.
1953         (rs6000_emit_vector_select): Ditto.
1954         (rs6000_emit_vector_cond_expr): Ditto.
1955         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
1956         (create_TOC_reference): Add -mdebug=addr support.
1957         (emit_frame_save): VSX loads/stores need register indexed addressing.
1958
1959         * config/rs6000/rs6000.md: Include vector.md.
1960
1961         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
1962
1963         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1964         support for V2DI, V2DF in logical, permute, select operations.
1965
1966         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
1967         switch for vsx/power7.
1968         (-mvsx-scalar-memory): Ditto.
1969         (-mvsx-align-128): Ditto.
1970         (-mallow-movmisalign): Ditto.
1971         (-mallow-df-permute): Ditto.
1972         (-msched-groups): Ditto.
1973         (-malways-hint): Ditto.
1974         (-malign-branch-targets): Ditto.
1975         
1976         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
1977         hook instead.
1978         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
1979         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
1980         (rs6000_vector_reg_class): Delete.
1981         (rs6000_vsx_reg_class): Ditto.
1982         (enum rs6000_reg_class_enum): New enum for the constraints that
1983         vary based on target switches.
1984         (rs6000_constraints): New array to hold the register class for all
1985         of the register constraints that vary based on the switches used.
1986         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
1987         (enum rs6000_builtins): Add unsigned varients for the builtin
1988         declarations returned by target hooks for expanding multiplies,
1989         select, and permute operations.  Add VSX builtins.
1990         (enum rs6000_builtin_type_index): Add entries for VSX.
1991         (V2DI_type_node): Ditto.
1992         (V2DF_type_node): Ditto.
1993         (unsigned_V2DI_type_node): Ditto.
1994         (bool_long_type_node): Ditto.
1995         (intDI_type_internal_node): Ditto.
1996         (uintDI_type_internal_node): Ditto.
1997         (double_type_internal_node): Ditto.
1998
1999         * config/rs6000/altivec.md (whole file): Move all expanders to
2000         vector.md from altivec.md.  Rename insn matching functions to be
2001         altivec_foo.
2002         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
2003         (altivec_vcmp*): Ditto.
2004         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
2005         (VM): New iterator for moves that includes the VSX types.
2006         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
2007         (altivec_vperm_<mode>_uns): New, for unsigned types.
2008         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
2009         (altivec_eq<mode>): Ditto.
2010         (altivec_gt<mode>): Ditto.
2011         (altivec_gtu<mode>): Ditto.
2012         (altivec_eqv4sf): Ditto.
2013         (altivec_gev4sf): Ditto.
2014         (altivec_gtv4sf): Ditto.
2015         (altivec_vcmpbfp_p): Ditto.
2016
2017 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
2018
2019         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to 
2020         unsigned HWI.
2021
2022 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
2023
2024         PR target/40832
2025         * config/i386/i386.c (output_387_ffreep): Rewrite to use
2026         ASM_SHORT instead of .word.
2027         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
2028         instead of .word in asm template.
2029
2030 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
2031
2032         PR target/37488
2033         * ira-lives.c (bb_has_abnormal_call_pred): New function.
2034         (process_bb_node_lives): Use it.
2035
2036         * ira.c (setup_cover_and_important_classes): Don't setup
2037         ira_important_class_nums.  Add cover classes to the end of
2038         important classes.
2039         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
2040         New.
2041         (find_reg_class_closure): Use reorder_important_classes.
2042
2043         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
2044
2045         * config/i386/i386.c (i386_ira_cover_classes): New function.
2046         (TARGET_IRA_COVER_CLASSES): Redefine.
2047
2048         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
2049         importance of order of cover classes in the array.
2050         
2051 2009-07-22  Diego Novillo  <dnovillo@google.com>
2052
2053         * tree-pass.h (TDF_EH): Define.
2054         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
2055         contains TDF_EH, print the EH region number holding GS.
2056         * tree-dump.c (dump_options): Add "eh".
2057         * doc/invoke.texi: Document it.
2058
2059 2009-07-22  Doug Kwan  <dougkwan@google.com>
2060
2061         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
2062
2063 2009-07-22  Michael Matz  <matz@suse.de>
2064
2065         PR tree-optimization/35229
2066         PR tree-optimization/39300
2067
2068         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
2069         (inhibit_phi_insertion): New function.
2070         (insert_into_preds_of_block): Call it for REFERENCEs.
2071         (init_pre): Initialize and finalize scalar evolutions.
2072         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
2073
2074 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
2075
2076         * config/i386/predicates.md (zero_extended_scalar_load_operand):
2077         Use CONST_VECTOR_NUNITS to determine number of elements.
2078
2079 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
2080
2081         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
2082         (U, W): Constraints are now deprecated and will be removed if we
2083         run out of letters.     
2084         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
2085         the file.
2086         ("prefetch"): Add the stcmh instruction for prefetching.
2087         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
2088         changes.
2089         (s390_short_displacement): Return always true if compiling for
2090         machines not providing the long displacement facility.
2091         (s390_mem_constraint): Support the new constraint letter Z.
2092         (s390_check_qrst_address): New function.
2093
2094 2009-07-21  DJ Delorie  <dj@redhat.com>
2095
2096         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
2097         alone too.
2098
2099 2009-07-21  Jason Merrill  <jason@redhat.com>
2100
2101         * c-common.c (max_tinst_depth): Increase default to 1024.
2102
2103 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
2104
2105         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
2106         (vec_unpacku_float_lo_v4si): Ditto.
2107
2108 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
2109
2110         PR target/40811
2111         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
2112         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
2113         (builtin_description): Add __builtin_ia32_cvtudq2ps.
2114         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
2115
2116 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
2117
2118         PR tree-optimization/40813
2119         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
2120         it.
2121
2122 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
2123
2124         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
2125         with a NOP_EXPR if needed.
2126
2127 2009-07-21  Paul Brook <paul@codesourcery.com>
2128
2129         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
2130         Terminate debug dump with newline.
2131
2132 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2133
2134         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
2135         Cast "1" to unsigned HOST_WIDE_INT.
2136         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
2137         deposit length to the maximum length - lsb.  Extend length if
2138         HOST_BITS_PER_WIDE_INT is 32.
2139
2140 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
2141
2142         * cgraph.h (constant_pool_htab): New function.
2143         (constant_descriptor_tree): Move from varasm.c.
2144         * varasm.c (constant_pool_htab): New function.
2145         (constant_descriptor_tree): Move to cgraph.h.
2146
2147 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
2148
2149         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
2150
2151 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
2152
2153         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
2154         $(VARRAY_H).
2155
2156 2009-07-20  Xinliang David Li  <davidxl@google.com>
2157
2158         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
2159
2160 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
2161
2162         * config/mips/mips.md (move_type): Add arith.
2163         (type): Handle arith.
2164         (zero_extendsidi2): Rename this into ...
2165         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
2166         (zero_extendsidi2): New expander.
2167         (*zero_extendsidi2_dext): New pattern.
2168
2169 2009-07-20  Nick Clifton  <nickc@redhat.com>
2170
2171         * config.gcc (mips64-*-*): Add definition of tm_defines in order
2172         to set MIPS_ABI_DEFAULT.
2173         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
2174
2175 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
2176
2177         * tree-object-size.c (addr_object_size): Handle unions with
2178         array in it as last field of structs in __bos (, 1) as __bos (, 0).
2179
2180         PR tree-optimization/40792
2181         * tree.c (build_function_type_skip_args): Remove bogus assert.
2182
2183 2009-07-20  Jan Hubicka  <jh@suse.cz>
2184             Martin Jambor  <mjambor@suse.cz>
2185
2186         * cgraph.h (combined_args_to_skip): New field.
2187         * cgraph.c (cgraph_create_virtual_clone): Properly handle
2188         combined_args_to_skip and args_to_skip.
2189         * tree-inline.c (update_clone_info): New function.
2190         (tree_function_versioning): Call update_clone_info.
2191         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
2192         functions.
2193         (cgraph_materialize_all_clones): More extensive dumping, working
2194         with combined_args_to_skip rather than args_to_skip.
2195
2196 2009-07-20  Ira Rosen  <irar@il.ibm.com>
2197
2198         * tree-vectorizer.h (vectorizable_condition): Add parameters.
2199         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
2200         (get_initial_def_for_reduction): Likewise.
2201         (vectorizable_reduction): Skip the check of first operand in case
2202         of COND_EXPR. Add check that it is outer loop vectorization if
2203         nested cycle was detected. Call vectorizable_condition() for 
2204         COND_EXPR. If reduction epilogue cannot be created do not fail for
2205         nested cycles (if it is not double reduction). Assert that there
2206         is only one type in the loop in case of COND_EXPR. Call
2207         vectorizable_condition() to vectorize COND_EXPR.
2208         * tree-vect-stmts.c (vectorizable_condition): Update comment.
2209         Add parameters. Allow nested cycles if called from 
2210         vectorizable_reduction(). Use reduction vector variable if provided.
2211         (vect_analyze_stmt): Call vectorizable_reduction() before
2212         vectorizable_condition().
2213         (vect_transform_stmt): Update call to vectorizable_condition().
2214
2215 2009-07-20  Christian Bruel  <christian.bruel@st.com>
2216         
2217         * config/sh/sh.opt (-mfmovd): Resurrect and document.
2218         * doc/invoke.texi (-mfmovd): Likewise.
2219         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
2220         
2221 2009-07-20  Jan Hubicka  <jh@suse.cz>
2222
2223         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
2224         when handling SSA name.
2225
2226 2009-07-19  Jan Hubicka  <jh@suse.cz>
2227
2228         PR tree-optimization/40676
2229         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
2230         virtual PHIs in empty BBs.
2231
2232 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2233
2234         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
2235         re-expanded the compound use gen_lowpart instead to convert to the
2236         desired mode.
2237
2238 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2239
2240         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
2241         OUTER_CONST arguments.
2242         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
2243         the new wider mode will be masked off.
2244         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
2245
2246 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2247
2248         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
2249         high-order bits are zero.
2250
2251 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
2252
2253         * combine.c (simplify_shift_const_1): Split code to determine
2254         shift_mode into ...
2255         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
2256         new bits shifted in are identical to the old sign bit.
2257
2258 2009-07-18  Richard Guenther  <rguenther@suse.de>
2259
2260         PR c/40787
2261         * gimplify.c (gimplify_call_expr): Reject code using results from
2262         functions returning void.
2263
2264 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
2265
2266         * doc/md.texi: Document the new PowerPC "es" constraint.
2267         Document that "m" can include automodified addresses on this target,
2268         and explain how %U must be used.  Extend the "Q" and "Z" documentation
2269         to suggest "es" as well as "m".
2270         * config/rs6000/constraints.md (es): New memory constraint.
2271         (Q, Z): Update strings to match new documentation.
2272
2273 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
2274
2275         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
2276         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
2277         * config/rs6000/predicates.md (volatile_mem_operand): Use
2278         offsettable_nonstrict_memref_p.
2279         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
2280         (*floatunssidf2_internal): Likewise.
2281         (*fix_truncdfsi2_internal): Likewise.
2282         (*fix_trunctfsi2_internal): Likewise.
2283
2284 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
2285
2286         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
2287         atmega32u2 devices.
2288         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2289
2290 2009-07-17  Richard Guenther  <rguenther@suse.de>
2291
2292         PR c/40401
2293         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
2294         (pass_warn_unused_result): Likewise.
2295         (TODO_set_props): Remove.
2296         * omp-low.c (diagnose_omp_structured_block_errors): Change to
2297         run as a pass.
2298         (pass_diagnose_omp_blocks): Define.
2299         * c-decl.c (pop_file_scope): Do not finalize the CU here.
2300         (c_gimple_diagnostics_recursively): Remove.
2301         (finish_function): Do not call it.
2302         (c_write_global_declarations): Continue after errors.
2303         Finalize the CU here.
2304         * c-gimplify.c (c_genericize): Do not gimplify here.
2305         * c-common.c (c_warn_unused_result): Move ...
2306         * tree-cfg.c (do_warn_unused_result): ... here.
2307         (run_warn_unused_result): New function.
2308         (gate_warn_unused_result): New function.
2309         (pass_warn_unused_result): New pass.
2310         * c-common.h (c_warn_unused_result): Remove.
2311         * flags.h (flag_warn_unused_result): Declare.
2312         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
2313         * opts.c (flag_warn_unused_result): Initialize to false.
2314         * toplev.c (compile_file): Add comment.
2315         * omp-low.c (create_omp_child_function): Do not register
2316         the function with the frontend.
2317         (diagnose_omp_structured_block_errors): Prepare to be
2318         called as optimization pass.
2319         (gate_diagnose_omp_blocks): New function.
2320         (pass_diagnose_omp_blocks): New pass.
2321         * cgraph.h (cgraph_optimize): Remove.
2322         (cgraph_analyze_function): Likewise.
2323         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
2324         * cgraphunit.c (cgraph_lower_function): Lower nested functions
2325         before their parents here.
2326         (cgraph_finalize_function): Not here.
2327         (cgraph_analyze_function): Gimplify functions here.
2328         (cgraph_finalize_compilation_unit): Continue after errors.
2329         Optimize the callgraph from here.
2330         (cgraph_optimize): Make static.
2331         * langhooks.c (write_global_declarations): Finalize the CU.
2332         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
2333         (gimplify_function_tree): Assert we gimplify only once.
2334         Set PROP_gimple_any property.
2335         * tree-nested.c (gimplify_all_functions): New function.
2336         (lower_nested_functions): Gimplify all nested functions.
2337         * gimple.h (diagnose_omp_structured_block_errors): Remove.
2338         * passes.c (init_optimization_passes): Add pass_warn_unused_result
2339         and pass_diagnose_omp_blocks after gimplification.  Do not
2340         set TODO_set_props on all_lowering_passes.
2341         (execute_one_pass): Do not handle TODO_set_props.
2342         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
2343         (gimplify.o): Add tree-pass.h dependency.
2344         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
2345         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
2346         (unsave_r): Likewise.
2347         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
2348         temporary variable.
2349
2350 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
2351
2352         * doc/service.texi (Service): Restore previously removed link,
2353         which isn't broken after all.
2354
2355 2009-07-17  Richard Guenther  <rguenther@suse.de>
2356
2357         PR tree-optimization/40321
2358         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
2359         PHI nodes to the maximal set.
2360         (make_values_for_phi): Add PHI arguments to the maximal set.
2361         (execute_pre): Dump PHI_GEN and the maximal set.
2362
2363 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
2364
2365         PR c++/40780
2366         * gimplify.c (gimplify_conversion): Don't change non-conversions into
2367         VIEW_CONVERT_EXPR.
2368
2369 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
2370
2371         * doc/extend.texi (Nested Functions): Replace broken link with
2372         textual reference.
2373         * doc/service.texi (Service): Remove broken link.
2374
2375 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
2376
2377         PR bootstrap/40781
2378         * builtins.c (expand_builtin_memcmp): Use loc instead of
2379         EXPR_LOCATION (exp).
2380         (expand_builtin_strncmp): Likewise.
2381
2382 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
2383             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2384
2385         PR 40435 
2386         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
2387         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
2388         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
2389         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
2390         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
2391         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
2392         tree-inline.c, c-common.c, c-common.h, gimple.c,
2393         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
2394         convert.c: Add location argument to fold_{unary,binary,ternary},
2395         fold_build[123], build_call_expr, build_size_arg,
2396         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
2397         fold_build1_initializer, fold_build2_initializer,
2398         fold_build3_initializer, fold_build_call_array,
2399         fold_build_call_array_initializer, fold_single_bit_test,
2400         omit_one_operand, omit_two_operands, invert_truthvalue,
2401         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
2402         combine_comparisons, fold_builtin_*, fold_call_expr,
2403         build_range_check, maybe_fold_offset_to_address, round_up,
2404         round_down.
2405
2406 2009-07-16  Jason Merrill  <jason@redhat.com>
2407
2408         PR libstdc++/37907
2409         * c-common.c (c_common_reswords): Add __is_standard_layout
2410         and __is_trivial.
2411         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
2412         * doc/implement-cxx.texi: New.
2413         * doc/gcc.texi: Include it.
2414
2415 2009-07-16  DJ Delorie  <dj@redhat.com>
2416
2417         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
2418         compares that may be indirectly affected by previous instructions.
2419
2420 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2421
2422         * builtins.c (do_mpc_arg2): New.
2423         (fold_builtin_2): Fold builtin cpow.
2424         * real.h (HAVE_mpc_pow): New.
2425
2426 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
2427
2428         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
2429         comparison to skip unprofitable schedule
2430
2431 2009-07-16  Simon Baldwin  <simonb@google.com>
2432
2433         * gcc.c (option_map): New flag -no-canonical-prefixes.
2434         * (display_help): Print help text for new flag.
2435         * (process_command): Move options translation and language specifics
2436         and handle new flag early.  Use it to set a function pointer to a
2437         prefix builder.  Replace make_relative_prefix calls with calls to
2438         the function pointed to.  Ignore new flag in regular options handling.
2439         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
2440
2441 2009-07-15  DJ Delorie  <dj@redhat.com>
2442
2443         * config/mep/mep.md (sibcall_internal): Change register to avoid
2444         argument registers.
2445         (sibcall_value_internal): Likewise.
2446
2447 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
2448
2449         PR rtl-optimization/40710
2450         * resource.c (mark_target_live_regs): Reset DF problem to LR.
2451
2452 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
2453
2454         * config/mips/mips.md (*extenddi_truncate<mode>,
2455         *extendsi_truncate<mode>): Change type attribute to move_type
2456         with shift_shift.  Split out code handling exts from here ...
2457         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
2458         pattern.
2459         (*extendhi_truncateqi): Change type attribute to move_type with
2460         shift_shift.  Split out code handling exts from here ...
2461         (*extendhi_truncateqi_exts): ... to this new pattern.
2462
2463 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
2464
2465         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
2466         instead of "and" with inverted sign bit mask value.  Use
2467         "nonimmediate_operand" for operand 1 and operand 2 predicate.
2468         Allocate registers only for operand 4 and operand 5.
2469
2470 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
2471
2472         PR middle-end/40747
2473         * fold-const.c (fold_cond_expr_with_comparison): When folding
2474         < and <= to MIN, make sure the MIN uses the same type as the
2475         comparison's operands.
2476
2477 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
2478
2479         * arm.md (ior_xor): New code iterator.
2480         (split for ior/xor with shift and zero-extend): New split pattern.
2481         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
2482
2483 2009-07-15  Richard Guenther  <rguenther@suse.de>
2484
2485         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
2486         offset member.
2487
2488 2009-07-15  Richard Guenther  <rguenther@suse.de>
2489
2490         PR middle-end/40753
2491         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
2492
2493 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2494
2495         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
2496         handle 2.6.30 kernel.
2497
2498 2009-07-15  DJ Delorie  <dj@redhat.com>
2499
2500         * config/mep/mep.md (sibcall_internal): Change register to allow
2501         for 24-bit addresses.
2502         (sibcall_value_internal): Likewise.
2503
2504 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
2505         
2506         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
2507         that are enabled/disabled by the flags introduced by a previous patch.
2508         
2509 2009-07-14  DJ Delorie  <dj@redhat.com>
2510
2511         * config/mep/mep.md (sibcall_internal): Include non-toggling
2512         non-jmp case.
2513         (sibcall_value_internal): Likewise.
2514
2515 2009-07-14  Taras Glek  <tglek@mozilla.com>
2516             Rafael Espindola  <espindola@google.com>
2517
2518         * doc/sourcebuild.texi: Document install-plugin target.
2519         * configure.ac: Added install-plugin target to language makefiles.
2520         * configure: Regenerate.
2521         * Makefile.in: (install-plugin): Install more headers,
2522         depend on lang.install-plugin.
2523
2524 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2525
2526         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
2527         translation.
2528         
2529 2009-07-14  DJ Delorie  <dj@redhat.com>
2530
2531         * config/mep/mep.c (mep_vliw_jmp_match): New function.
2532         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
2533         * config/mep/mep.md (sibcall_internal): Change test from
2534         mep_vliw_mode_match to mep_vliw_jmp_match.
2535         (sibcall_value_internal): Likewise.
2536
2537 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
2538
2539         * config/i386/sse.md (copysign<mode>3): New expander.
2540         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
2541         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
2542         Use ix86_build_const_vector.
2543         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
2544         IX86_BUILTIN_CPYSGNPD.
2545         (builtin_description): Add __builtin_ia32_copysignps and
2546         __builtin_ia32_copysignpd.
2547         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
2548         and BUILT_IN_COPYSIGNF.
2549
2550 2009-07-13  Jason Merrill  <jason@redhat.com>
2551
2552         * builtins.c (can_trust_pointer_alignment): New fn.
2553         (get_pointer_alignment): Factor it out from here.
2554         * tree.h: Declare it.
2555
2556 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
2557
2558         * config/rs6000/predicates.md (offsettable_mem_operand): Test
2559         RTX_AUTOINC class.
2560
2561 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
2562
2563         PR debug/40705
2564         PR c++/403057
2565         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
2566
2567 2009-07-14  Richard Guenther  <rguenther@suse.de>
2568             Andrey Belevantsev <abel@ispras.ru>
2569
2570         PR middle-end/40745
2571         * cfgexpand.c (partition_stack_vars): Do not bother to update
2572         alias information when not optimizing.
2573
2574 2009-07-14  Richard Guenther  <rguenther@suse.de>
2575             Andrey Belevantsev <abel@ispras.ru>
2576
2577         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
2578         (pt_solution_set): Likewise.
2579         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
2580         * tree-ssa-structalias.c (pt_solution_set): New function.
2581         * final.c (rest_of_clean_state): Free SSA data structures.
2582         * print-rtl.c (print_decl_name): Remove.
2583         (print_mem_expr): Implement in terms of print_generic_expr.
2584         * alias.c (ao_ref_from_mem): New function.
2585         (rtx_refs_may_alias_p): Likewise.
2586         (true_dependence): Query alias-export info.
2587         (canon_true_dependence): Likewise.
2588         (write_dependence_p): Likewise.
2589         * tree-dfa.c (get_ref_base_and_extent): For void types leave
2590         size unknown.
2591         * emit-rtl.c (component_ref_for_mem_expr): Remove.
2592         (mem_expr_equal_p): Use operand_equal_p.
2593         (set_mem_attributes_minus_bitpos): Do not use
2594         component_ref_for_mem_expr.
2595         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
2596         (update_alias_info_with_stack_vars): Likewise.
2597         (partition_stack_vars): Call update_alias_info_with_stack_vars.
2598         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
2599         explicitly nor clear stmt operands.
2600         Free the decl-to-pointer map.
2601         * tree-optimize.c (execute_free_datastructures): Do not free
2602         SSA data structures here.
2603         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
2604         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
2605         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
2606         dependencies.
2607         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
2608
2609 2009-07-13  DJ Delorie  <dj@redhat.com>
2610
2611         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
2612         unrolling at the right iteration count.
2613
2614         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
2615         calculations.
2616
2617 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
2618         
2619         * haifa-sched.c (rank_for_schedule): Introduced flags to
2620         enable/disable individual scheduling heuristics.
2621         * common.opt: Introduced flags to enable/disable individual
2622         heuristics in the scheduler.    
2623         * doc/invoke.texi: Introduced flags to enable/disable individual
2624         heuristics in the scheduler.
2625         
2626 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
2627
2628         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
2629         config/i386/mingw-tls.c.
2630         * config/i386/mingw-tls.c: Removed.
2631
2632 2009-07-13  Ira Rosen  <irar@il.ibm.com>
2633
2634         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the 
2635         checks access only relevant statements.
2636         (vectorizable_reduction): Likewise.
2637
2638 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
2639
2640         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
2641         just for 32-bit case.
2642
2643 2009-07-12  Jan Hubicka  <jh@suse.cz>
2644
2645         PR tree-optimization/40585
2646         * except.c (expand_resx_expr): When there already is resume
2647         instruction, produce linked list.
2648         (build_post_landing_pads): Assert that resume is empty.
2649         (connect_post_landing_pads): Handle resume lists.
2650         (dump_eh_tree): Dump resume list.
2651
2652 2009-07-12  Ira Rosen  <irar@il.ibm.com>
2653
2654         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2655         with additional argument.
2656         * tree-vectorizer.h (enum vect_def_type): Add
2657         vect_double_reduction_def.
2658         (vect_is_simple_reduction): Add argument.
2659         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
2660         indentation.
2661         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
2662         vect_is_simple_reduction with additional argument.
2663         (vect_analyze_loop_operations): Handle exit phi nodes in case of
2664         double reduction.
2665         (reduction_code_for_scalar_code): Handle additional codes by
2666         returning ERROR_MARK for them. Fix comment and indentation.
2667         (vect_is_simple_reduction): Fix comment, add argument to specify
2668         double reduction. Detect double reduction.
2669         (get_initial_def_for_induction): Fix indentation.
2670         (get_initial_def_for_reduction): Fix comment and indentation.
2671         Handle double reduction. Create initial definitions that do not
2672         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
2673         (vect_create_epilog_for_reduction): Fix comment, add argument to
2674         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
2675         epilogue result extraction. Create double reduction phi node and
2676         replace relevant uses.
2677         (vectorizable_reduction): Call vect_is_simple_reduction with
2678         additional argument. Fix indentation. Update epilogue code treatment
2679         according to the changes in reduction_code_for_scalar_code. Check
2680         for double reduction. Call vect_create_epilog_for_reduction with
2681         additional argument.
2682         * tree-vect-stmts.c (process_use): Handle double reduction, update
2683         documentation.
2684         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
2685         (vect_get_vec_def_for_operand): Likewise.
2686
2687 2009-07-12  Danny Smith  <dansmister@gmail.com>
2688
2689         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
2690         dllexport if !TREE_PUBLIC.
2691         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
2692
2693 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
2694
2695         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
2696         (avr_extra_arch_macro) Remove declatation.
2697         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
2698         (avr_extra_arch_macro) Declare as static.
2699         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
2700
2701 2009-07-11  Jan Hubicka  <jh@suse.cz>
2702
2703         PR middle-end/48388
2704         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
2705
2706 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
2707
2708         PR debug/40713
2709         * dwarf2out.c (dw_fde_struct): Add in_std_section and
2710         cold_in_std_section bits.
2711         (dwarf2out_begin_prologue): Initialize them.
2712         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
2713         if already covered by text_section or cold_text_section range.
2714
2715         PR rtl-optimization/40667
2716         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
2717         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
2718         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
2719         * config/i386/i386.c (ix86_minimum_alignment): New function.
2720         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
2721         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
2722         * emit-rtl.c (gen_reg_rtx): Likewise.
2723         * function.c (assign_parms): Likewise.  If nominal_type needs
2724         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
2725         rather than passed_type's alignment.
2726
2727         PR target/40668
2728         * function.c (assign_parm_setup_stack): Adjust
2729         MEM_OFFSET (data->stack_parm) if promoted_mode is different
2730         from nominal_mode on big endian.
2731
2732 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
2733
2734         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
2735
2736 2009-07-10  DJ Delorie  <dj@redhat.com>
2737
2738         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
2739
2740 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
2741
2742         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
2743         attribute.
2744         (thumb2_cbnz): Likewise.
2745
2746 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
2747
2748         PR target/39079
2749         * config.gcc (supported_defaults): Add synci.
2750         (with_synci): Add validation.
2751         (all_defaults): Add synci.
2752         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
2753         ISA_HAS_SYNCI.
2754         (synci): Same.
2755         * config/mips/mips.opt (msynci): New option.
2756         * config/mips/mips.c (mips_override_options): Warn on use of
2757         -msynci for targets that do now support it.
2758         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2759         msynci.
2760         * gcc/doc/invoke.texi (-msynci): Document the new option.
2761         * doc/install.texi (--with-synci): Document the new option.
2762
2763 2009-07-10  Richard Guenther  <rguenther@suse.de>
2764
2765         PR tree-optimization/40496
2766         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
2767         the PHI result with a compatible type.
2768
2769 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2770
2771         PR 25509
2772         PR 40614
2773         * c.opt (Wunused-result): New.
2774         * doc/invoke.texi: Document it.
2775         * c-common.c (c_warn_unused_result): Use it.
2776
2777 2009-07-09  DJ Delorie  <dj@redhat.com>
2778
2779         * targhooks.c (default_target_can_inline_p): Rename from
2780         default_target_option_can_inline_p.
2781         * targhooks.h (default_target_can_inline_p): Likewise.
2782         * target-def.h (TARGET_CAN_INLINE_P): Rename from
2783         TARGET_OPTION_CAN_INLINE_P.
2784         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
2785         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
2786         (mep_target_can_inline_p): Rename from
2787         mep_target_option_can_inline_p.
2788
2789         PR target/40626
2790         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
2791         registers used to pass vectors.
2792
2793         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
2794
2795 2009-07-09  Tom Tromey  <tromey@redhat.com>
2796
2797         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
2798         * config/mmix/mmix.c: Include dwarf2.h.
2799         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
2800         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
2801         * config/sh/sh.c: Include dwarf2.h.
2802         * config/i386/i386.c: Include dwarf2.h.
2803         * Makefile.in (DWARF2_H): Remove 'elf'.
2804         * except.c: Include dwarf2.h.
2805         * unwind-dw2.c: Include dwarf2.h.
2806         * dwarf2out.c: Include dwarf2.h.
2807         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
2808         * unwind-dw2-fde.c: Include dwarf2.h.
2809         * dwarf2asm.c: Include dwarf2.h.
2810
2811 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2812
2813         * haifa-sched.c (insn_finishes_cycle_p): New static function.
2814         (max_issue): Use it.
2815         * sched-int.h (struct sched_info: insn_finishes_block_p): New
2816         scheduler hook.
2817         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
2818         (region_sched_info): Update.
2819         * sched-ebb.c (ebb_sched_info): Update.
2820         * modulo-sched.c (sms_sched_info): Update.
2821         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
2822
2823 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2824
2825         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
2826
2827 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
2828
2829         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. 
2830
2831 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
2832
2833         PR middle-end/40692
2834         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
2835         arg1 with arg01 if arg1 is already INTEGER_CST.
2836
2837 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
2838
2839         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
2840         Transform (and (truncate)) into (truncate (and)).
2841
2842 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
2843
2844         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
2845         creating LHS paradoxical subregs.  Fix surrounding returns to
2846         use NULL_RTX rather than 0.
2847
2848 2009-07-08  DJ Delorie  <dj@redhat.com>
2849
2850         * config/mep/mep.c: (mep_option_can_inline_p): New.
2851         (TARGET_OPTION_CAN_INLINE_P): Define.
2852
2853 2009-07-08  Mark Wielaard  <mjw@redhat.com>
2854
2855         PR debug/40659
2856         * dwarf2out.c (add_data_member_location_attribute): When we have
2857         only a constant offset don't emit a new location description using
2858         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
2859         dwarf_version > 2.
2860
2861 2009-07-08  Richard Henderson  <rth@redhat.com>
2862
2863         PR target/38900
2864         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
2865         (enum reg_class): Add CLOBBERED_REGS.
2866         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2867         * config/i386/i386.c (ix86_conditional_register_usage): Moved
2868         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
2869         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
2870         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
2871         force 64-bit sibcalls into R11.
2872         * config/i386/constraints.md (U): New constraint.
2873         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
2874         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
2875         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
2876
2877 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
2878
2879         * basic-block.h (dump_regset, debug_regset): Remove duplicate
2880         prototypes.
2881         * c-objc-common.h (c_initialize_diagnostics): Ditto.
2882         * ebitmap.h (dump_ebitmap): Ditto.
2883         * optabs.h (optab_libfunc): Ditto.
2884         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
2885         * tree-flow.h (vect_can_force_dr_alignment_p,
2886         get_vectype_for_scalar_type): Ditto.
2887         (vectorize_loops): Move prototype to ...
2888         * tree-vectorizer.h: ... here. Also, adjust comment.
2889         (vect_set_verbosity_level): Remove duplicate prototype.
2890         * tree-ssa-loop.c: Include tree-vectorizer.h.
2891         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
2892
2893 2009-07-08  Nick Clifton  <nickc@redhat.com>
2894
2895         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
2896         forward slash.
2897
2898 2009-07-08  DJ Delorie  <dj@redhat.com>
2899
2900         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
2901         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
2902         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
2903         written to.
2904         * config/mep/intrinsics.md: Regenerated.
2905         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
2906         registers when asm() or calls are detected.
2907
2908 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2909
2910         PR c++/31246
2911         * gimplify.c (gimplify_expr): Propagate no_warning flag when
2912         gimplifying.
2913         * gimple (gimple_build_call_from_tree): Likewise.
2914         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
2915         no_warning flag before warning.
2916
2917 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2918
2919         * tree.c (set_expr_locus): Remove.
2920         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
2921         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
2922         EXPR_LOCATION.
2923         * gimplify.c (internal_get_tmp_var): Likewise.
2924         (gimplify_call_expr): Likewise.
2925         (gimplify_one_sizepos): Likewise.
2926
2927 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
2928
2929         PR debug/40666
2930         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
2931         to variables for debugging purposes.
2932
2933 2009-06-23  Mark Loeser  <mark@halcy0n.com>
2934
2935         PR build/40010
2936         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
2937
2938 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2939
2940         * pretty-print.c (pp_base_format): Remove %J.
2941         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2942         gcc_cxxdiag_char_table): Likewise.
2943         (init_dynamic_diag_info): Likewise.
2944
2945 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2946
2947         * pretty-print.c (pp_base_format): Remove %H.
2948         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2949         gcc_cxxdiag_char_table): Likewise.
2950         (init_dynamic_diag_info): Likewise.
2951         * config/mep/mep.c (mep_select_section): Likewise.
2952
2953 2009-07-07  Duncan Sands  <baldrick@free.fr>
2954
2955         * final.c (pass_clean_state): Give the pass a name.
2956         * passes.c (pass_rest_of_compilation): Likewise.
2957         * tree-optimize.c (pass_all_optimizations): Likewise.
2958
2959 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2960
2961         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
2962         an extra 'decl' for error_at.
2963
2964 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
2965
2966         PR middle-end/40669
2967         * tree-tailcall.c (adjust_return_value_with_ops,
2968         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
2969         if it has complex or vector type.
2970
2971 2009-07-07  Olivier Hainque  <hainque@adacore.com>
2972
2973         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
2974         pthread symbols.
2975
2976 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
2977
2978         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
2979
2980 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2981
2982         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
2983         * c-decl.c: Likewise.
2984         * function.c: Likewise.
2985         * varasm.c: Likewise.
2986         * tree-ssa.c: Likewise.
2987         * c-common.c: Likewise.
2988         * tree-cfg.c: Likewise.
2989         * config/spu/spu.c: Likewise.
2990         * config/ia64/ia64.c: Likewise.
2991         * config/v850/v850.c: Likewise.
2992
2993 2009-07-06  DJ Delorie  <dj@redhat.com>
2994
2995         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
2996         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
2997         unspecified accesses to control registers.
2998         * config/mep/intrinsics.md: Regenerate.
2999         * config/mep/intrinsics.h: Regenerate.
3000         * config/mep/mep-intrin.h: Regenerate.
3001
3002 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3003
3004         * c-lex.c: Replace %H by an explicit location. Update all calls.
3005         * c-common.c: Likewise.
3006         * c-decl.c: Likewise.
3007         * c-typeck.c: Likewise.
3008         * fold-const.c: Likewise.
3009         * gimplify.c: Likewise.
3010         * stmt.c: Likewise.
3011         * tree-cfg.c: Likewise.
3012         * tree-ssa-loop-niter.c: Likewise.
3013         * tree-vrp.c: Likewise.
3014         * value-prof.c: Likewise.
3015
3016 2009-07-06  Diego Novillo  <dnovillo@google.com>
3017
3018         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
3019         if it has one.  Handle cases where VAR does not have an
3020         annotation or cfun is NULL.
3021
3022 2009-07-06  Diego Novillo  <dnovillo@google.com>
3023
3024         * tree.c: Include debug.h.
3025         (initialize_tree_contains_struct): New.
3026         (init_ttree): Call it.
3027         (tree_node_structure_for_code): Factor out of ...
3028         (tree_node_structure): ... here.
3029         * treestruct.def (TS_PHI_NODE): Remove.
3030         (TS_GIMPLE_STATEMENT): Remove.
3031
3032 2009-07-06  Diego Novillo  <dnovillo@google.com>
3033
3034         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
3035         (debug_tree_chain): Handle cycles.
3036
3037 2009-07-06  Nick Clifton  <nickc@redhat.com>
3038             DJ Delorie  <dj@redhat.com>
3039
3040         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
3041         __FMOVD_ENABLED__ is defined.
3042         * config/sh/sh.h
3043         (TARGET_FMOVD): Provide a default definition.
3044         (MASK_FMOVD): Likewise.
3045         (TARGET_CPU_CPP_BUILTINS): Define
3046         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
3047         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
3048         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
3049         (split for DF load from memory into register): Also handle
3050         MEMs which consist of REG+DISP addressing.
3051         (split for DF store from register to memory): Likewise.
3052         (movsf_ie): Always use single fp_mode.
3053         * config/sh/sh.c (sh_override_options): Do not automatically
3054         enable TARGET_MOVD for the SH2A when supporting doubles - leave
3055         that to the -mfmovd command line switch.
3056         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
3057         (fldi_ok): Always allow.
3058         * config/sh/sh.opt (mfmovd): Remove this switch.
3059         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
3060
3061 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
3062             Kaz Kojima  <kkojima@gcc.gnu.org>
3063
3064         PR rtl-optimization/30807
3065         * postreload.c (reload_combine): For every new use of REG_SUM,
3066         record the use of BASE.
3067
3068 2009-07-06  Jan Hubicka  <jh@suse.cz>
3069
3070         * params.def: Revert my accidental commit at 2009-06-30.
3071
3072 2009-07-04  Ian Lance Taylor  <iant@google.com>
3073
3074         PR target/40636
3075         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
3076         EXPORTED_CONST.
3077         (mingw_format_attribute_overrides): Likewise.
3078
3079 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
3080
3081         PR debug/40596
3082         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
3083         don't check cfa.reg.  Instead of cfa.indirect use
3084         fde && fde->drap_reg != INVALID_REGNUM test.
3085
3086 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3087
3088         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
3089
3090 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
3091
3092         PR target/40587
3093         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3094
3095 2009-07-03  Richard Guenther  <rguenther@suse.de>
3096
3097         PR tree-optimization/40640
3098         * tree-switch-conversion.c (build_arrays): Perform arithmetic
3099         in original type.
3100
3101 2009-07-03  Jan Hubicka  <jh@suse.cz>
3102
3103         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
3104         for size, reduce amount of inlining.
3105
3106 2009-07-03  Richard Guenther  <rguenther@suse.de>
3107
3108         PR middle-end/34163
3109         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
3110         if t +- x is known to not overflow and the conversion widens the
3111         operation.
3112         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
3113
3114 2009-07-03  Jan Hubicka  <jh@suse.cz>
3115
3116         * ipa-pure-const.c (analyze): Update loop optimizer init.
3117         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
3118         try_remove_empty_loop, remove_empty_loops): Remove.
3119         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
3120         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
3121         to mark regular loops as neccesary.
3122         (degenerate_phi_p): New function.
3123         (propagate_necessity, remove_dead_phis): Use it.
3124         (forward_edge_to_pdom): Likewise.
3125         (eliminate_unnecessary_stmts): Take care to remove uses of results of
3126         virtual PHI nodes that became unreachable.
3127         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
3128         * tree-flow.h (remove_empty_loops): Remove.
3129         * passes.c (init_optimization_passes): Remove.
3130
3131 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
3132
3133         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
3134         can_create_pseudo_p.
3135         (*fix_trunc<mode>_i387_1): Ditto.
3136         (*floathi<mode>2_1): Ditto.
3137         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
3138         (*fistdi2_1): Ditto.
3139         (*fist<mode>2_1): Ditto.
3140         (frndintxf2_floor): Ditto.
3141         (*fist<mode>2_floor_1): Ditto.
3142         (frndintxf2_ceil): Ditto.
3143         (*fist<mode>2_ceil_1): Ditto.
3144         (frndintxf2_trunc): Ditto.
3145         (frndintxf2_mask_pm): Ditto.
3146         (fxam<mode>2_i387_with_temp): Ditto.
3147         * config/i386/sse.md (mulv16qi3): Ditto.
3148         (*sse2_mulv4si3): Ditto.
3149         (mulv2di3): Ditto.
3150         (sse4_2_pcmpestr): Ditto.
3151         (sse4_2_pcmpistr): Ditto.
3152
3153 2009-07-03  Jan Hubicka  <jh@suse.cz>
3154
3155         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
3156         (mark_stmt_necessary): Set it.
3157         (mark_operand_necessary): Set it.
3158         (mark_control_dependent_edges_necessary): Set it.
3159         (mark_virtual_phi_result_for_renaming): New function.
3160         (get_live_post_dom): New function.
3161         (forward_edge_to_pdom): New function.
3162         (remove_dead_stmt): Fix handling of control dependences.
3163         (tree_dce_init): Init new bitmap.
3164         (tree_dce_done): Free it.
3165
3166 2009-07-02  Richard Guenther  <rguenther@suse.de>
3167
3168         PR bootstrap/40617
3169         * tree-ssa-structalias.c (new_var_info): Initialize
3170         is_restrict_var.
3171
3172 2009-07-02  Jan Hubicka  <jh@suse.cz>
3173
3174         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
3175         local.
3176
3177 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
3178
3179         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
3180         instead of recomputing it.  Adjust calls.
3181         (emit_store_flag): Adjust recursive calls.
3182
3183 2009-07-02  Richard Guenther  <rguenther@suse.de>
3184
3185         * tree-ssa-live.c (remove_unused_locals): Do not remove
3186         heap variables.
3187         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
3188         of DECL_EXTERNAL for HEAP variables.
3189         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
3190         HEAP variables.  Do not adjust RESTRICT vars.
3191         (find_what_var_points_to): Nobody cares if something
3192         points to READONLY.
3193
3194 2009-07-02  Ben Elliston  <bje@au.ibm.com>
3195
3196         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
3197         pc_low and pc_high declarations to the top of the function.
3198
3199 2009-07-01  DJ Delorie  <dj@redhat.com>
3200
3201         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
3202         registers as fixed.
3203         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
3204         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
3205         unspecified accesses to control registers.
3206         * config/mep/intrinsics.md: Regenerate.
3207         * config/mep/intrinsics.h: Regenerate.
3208         * config/mep/mep-intrin.h: Regenerate.
3209
3210 2009-07-01  Anthony Green  <green@moxielogic.com>
3211
3212         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3213         instruction when possible.
3214         (moxie_expand_prologue): Ditto.  Also, save an instruction and
3215         some complexity by popping off of $r12 instead of $sp.
3216         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
3217         operands.
3218
3219 2009-07-01  Richard Henderson  <rth@redhat.com>
3220
3221         PR bootstrap/40347
3222         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
3223         contained no insns, reposition note before last insn.
3224
3225 2009-07-01  Richard Henderson  <rth@redhat.com>
3226
3227         PR debug/40431
3228         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
3229         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
3230
3231 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3232
3233         PR bootstrap/40558
3234         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
3235         darwin9 for printing reg addresses with %y.
3236
3237 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
3238
3239         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
3240         truncation from operands in binary operations.
3241
3242 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
3243
3244         Revert:
3245         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
3246         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
3247         subreg of op0 to the original op0.
3248
3249         * expmed.c (store_bit_field_1): Use a temporary as the destination
3250         instead of a paradoxical subreg when we need to truncate the result.
3251
3252 2009-07-01  DJ Delorie  <dj@redhat.com>
3253
3254         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
3255         names to VLIW variants.
3256         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
3257         * config/mep/intrinsics.md: Regenerate.
3258         * config/mep/intrinsics.h: Regenerate.
3259         * config/mep/mep-intrin.h: Regenerate.
3260
3261 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
3262
3263         PR debug/40462
3264         * jump.c (returnjump_p): Revert last patch.
3265         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
3266
3267 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3268
3269         PR target/40575
3270         * pa.md (casesi32p): Use jump table label to determine the offset
3271         of the jump table.
3272         (casesi64p): Likewise.
3273
3274         * pa.c (forward_branch_p): Return bool type.  Use instruction
3275         addresses when available.  Assert that INSN has a jump label.
3276         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
3277         have a jump label.
3278
3279 2009-07-01  Richard Guenther  <rguenther@suse.de>
3280
3281         PR tree-optimization/19831
3282         * tree-ssa-dce.c (propagate_necessity): Calls to functions
3283         that only act as barriers do not make any previous stores necessary.
3284         * tree-ssa-structalias.c (handle_lhs_call): Delay making
3285         HEAP variables global, do not add a constraint from nonlocal.
3286         (find_func_aliases): Handle escapes through return statements.
3287         (compute_points_to_sets): Make escaped HEAP variables global.
3288
3289 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
3290
3291         PR bootstrap/40597
3292         * expmed.c (emit_store_flag): Perform a conversion if necessary,
3293         after reducing a DImode cstore to SImode.
3294
3295 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
3296
3297         * expr.c (expand_expr_real_1): Reinstate fallthrough to
3298         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
3299
3300 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
3301
3302         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
3303         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
3304         to 0.
3305         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
3306         and umod_optab if TARGET_BSD_DIVMOD.
3307         * config/vax/lib1funcs.asm: New file.
3308         * config/vax/t-linux: New file.
3309         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
3310
3311 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
3312
3313         PR c++/40566
3314         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
3315         to type arguments that have void type.
3316
3317         PR debug/40573
3318         * dwarf2out.c (gen_formal_parameter_die): Call
3319         equate_decl_number_to_die if node is different from origin.
3320
3321 2009-06-30  Anthony Green  <green@moxielogic.com>
3322
3323         Clean up moxie port for --enable-build-with-cxx.
3324         * config/moxie/moxie.c (moxie_function_value): First two
3325         parameters are const_tree, not tree.
3326         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
3327         (REG_CLASS_NAMES): Ditto.
3328         (REGNO_REG_CLASS): Ditto.
3329         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
3330         (moxie_function_value): Fix constyness of arguments.
3331
3332 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3333
3334         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
3335         finalize_size_functions before further processing.
3336         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
3337         (variable_size): Call self_referential_size on size expressions
3338         that contain a PLACEHOLDER_EXPR.
3339         (size_functions): New static variable.
3340         (copy_self_referential_tree_r): New static function.
3341         (self_referential_size): Likewise.
3342         (finalize_size_functions): New global function.
3343         * tree.c: Include tree-inline.h.
3344         (push_without_duplicates): New static function.
3345         (find_placeholder_in_expr): New global function.
3346         (substitute_in_expr) <tcc_declaration>: Return the replacement object
3347         on equality.
3348         <tcc_expression>: Likewise.
3349         <tcc_vl_exp>: If the replacement object is a constant, try to inline
3350         the call in the expression.
3351         * tree.h (finalize_size_functions): Declare.
3352         (find_placeholder_in_expr): Likewise.
3353         (FIND_PLACEHOLDER_IN_EXPR): New macro.
3354         (substitute_placeholder_in_expr): Update comment.
3355         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
3356         is true.
3357         (copy_tree_body_r): Likewise.
3358         (copy_tree_body): New static function.
3359         (maybe_inline_call_in_expr): New global function.
3360         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
3361         (maybe_inline_call_in_expr): Declare.
3362         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
3363         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
3364         GIMPLE_H.
3365
3366 2009-06-30  Richard Guenther  <rguenther@suse.de>
3367
3368         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
3369         continue walking.
3370         (propagate_necessity): Do not mark reaching defs of stores
3371         as necessary.
3372
3373 2009-06-30  Jan Hubicka  <jh@suse.cz>
3374
3375         * cfgloopanal.c (check_irred): Move into ...
3376         (mark_irreducible_loops): ... here; return true if ireducible
3377         loops was found.
3378         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
3379         (analyze_function): Try to prove loop finiteness.
3380         * cfgloop.h (mark_irreducible_loops): Update prototype.
3381         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
3382
3383 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
3384
3385         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
3386
3387 2009-06-30  Ira Rosen  <irar@il.ibm.com>
3388
3389         PR tree-optimization/40542
3390         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
3391         types.
3392
3393 2009-06-30  Martin Jambor  <mjambor@suse.cz>
3394
3395         PR tree-optimization/40582
3396         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
3397         than useless_type_conversion_p.
3398         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
3399         proper place.
3400
3401 2009-06-30  Martin Jambor  <mjambor@suse.cz>
3402
3403         PR middle-end/40554
3404         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
3405
3406 2009-06-30  Richard Guenther  <rguenther@suse.de>
3407
3408         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
3409         use ao_ref references.
3410         (walk_aliased_vdefs): Likewise.
3411         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
3412         * tree-ssa-dce.c (struct ref_data): Remove.
3413         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
3414         (mark_aliased_reaching_defs_necessary): Adjust.
3415         (mark_all_reaching_defs_necessary_1): Likewise.
3416
3417 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
3418
3419         PR boostrap/40597
3420         * expmed.c (emit_cstore): New name of emit_store_flag_1.
3421         (emit_store_flag_1): Extract from emit_store_flag, adjust
3422         calls to (what now is) emit_cstore.
3423         (emit_store_flag): Call emit_store_flag_1 and also use it
3424         for what used to be recursive calls.