OSDN Git Service

* doc/extend.texi (pcs): Document new attribute for ARM.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
2
3         * doc/extend.texi (pcs): Document new attribute for ARM.
4
5 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6
7         * arm.c (pcs_attribute_args): Comment out unsupported attribute
8         variants.
9
10 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
11
12         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
13         warning ().
14
15 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
16
17         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
18
19 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
20
21         Merge ARM/hard_vfp_branch to trunk.
22
23         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
24
25         * arm.c (libcall_eq): New function.
26         (libcall_hash): New function.
27         (add_libcall): New function.
28         (arm_libcall_uses_aapcs_base): New function.
29         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
30         libcalls using the base PCS.
31         (arm_init_cumulative_args): Likewise.
32
33         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
34
35         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
36         Use base ABI for conversion libfuncs between HFmode and SFmode.
37
38         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
39
40         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
41         V4SImode as representatives of all 64-bit and 128-bit vector
42         types.  Allow vector types without vector modes.
43         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
44         without vector modes like BLKmode.
45         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
46         BLKmode.  Avoid unsupported vector modes or TImode moves for
47         non-TARGET_NEON.
48         (aapcs_vfp_allocate_return_reg): Likewise.
49         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
50         V8QImode if TARGET_NEON || TARGET_IWMMXT.
51
52         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
53
54         * config/arm/arm.c (arm_handle_pcs_attribute): New.
55         (arm_get_pcs_model): Pass attribute arguments to
56         arm_pcs_from_attribute.
57         (arm_init_cumulative_args): Use base AAPCS for conversions from
58         floating-point types to DImode.
59         (arm_attribute_table): Add pcs attribute.
60         (arm_handle_pcs_attribute): New.
61         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
62         conversions from floating-point types to DImode, also declare them
63         to use base AAPCS and declare functions they call to use base
64         AAPCS and their RTABI names.
65
66         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
67
68         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
69         -mfloat-abi=hard not being supported for VFP.
70
71         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
72
73         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
74         SYMBOL_REF to hard_libcall_value.
75
76         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
77             Richard Earnshaw  <rearnsha@arm.com>
78
79         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
80         has been put on the stack, all remaining co-processory arguments for
81         that co-processor also go on the stack.
82
83         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
84
85         * config/arm/arm.c (arm_return_in_memory): Handle returning
86         vectors of suitable size in registers also for AAPCS case.
87
88         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
89
90         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
91
92         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
93
94         ARM Hard-VFP calling convention
95         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
96         * target.h (gcc_target): Add libcall_value to table of call hooks.
97         * targhooks.h (default_libcall_value): Default implementation.
98         * targhooks.c (default_libcall_value): Likewise.
99         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
100         * optabs.c (expand_unop): Use it.
101         * expr.h (hard_libcall_value): Pass the function RTX through.
102         * calls.c (emit_library_call_value_1): Update call to 
103         hard_libcall_value.
104         * explow.c (hard_libcall_value): Use new target hook.
105         * testsuite/lib/target-supports.exp
106         (check_effective_target_arm_hard_vfp_ok): New hook.
107         (check_effective_target_arm_neon_ok): Improve test for neon
108         availability.
109         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
110         * config/arm/arm.c: Include cgraph.h
111         (TARGET_FUNCTION_VALUE): Override default hook.
112         (arm_pcs_default): New variable.
113         (arm_override_options): Don't fault hard calling convention with VFP.
114         Add support for AAPCS variants.
115         (arm_function_value): Make static.  Handle AAPCS variants.
116         (arm_libcall_value): New function.
117         (arm_apply_result_size): Handle VFP registers in results.
118         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
119         conventions.
120         (pcs_attribute_args): New variable.
121         (arm_pcs_from_attribute): New function.
122         (arm_get_pcs_model): New function.
123         (aapcs_vfp_cum_init): New function.
124         (aapcs_vfp_sub_candidate): New function.
125         (aapcs_vfp_is_return_candidate): New function.
126         (aapcs_vfp_is_call_candidate): New function.
127         (aapcs_vfp_allocate): New function.
128         (aapcs_vfp_allocate_return_reg): New function.
129         (aapcs_vfp_advance): New function.
130         (aapcs_cp_arg_layout): New variable.
131         (aapcs_select_call_coproc): New function.
132         (aapcs_select_return_coproc): New function.
133         (aapcs_allocate_return_reg): New function.
134         (aapcs_libcall_value): New function.
135         (aapcs_layout_arg): New function.
136         (arm_init_cumulative_args): Initialize AAPCS args data.
137         (arm_function_arg): Handle AAPCS variants using new interface.
138         (arm_arg_parital_bytes): Likewise.
139         (arm_function_arg_advance): New function.
140         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
141         calling conventions.
142         (arm_setup_incoming_varargs): Handle new AAPCS args data.
143         * arm.h (NUM_VFP_ARG_REGS): Define.
144         (LIBCALL_VALUE): Update.
145         (FUNCTION_VALUE): Delete.
146         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
147         (arm_pcs): New enum.
148         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
149         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
150         (FUNCTION_ARG_REGNO_P): Add VFP regs.
151         * arm-protos.h (arm_function_arg_advance): Add.
152         (aapcs_libcall_value): Add.
153         (arm_function_value): Delete.
154
155 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
156             H.J. Lu  <hongjiu.lu@intel.com>
157
158         PR target/40957
159         * config/i386/i386.c (standard_sse_mode_p): Remove.
160         (standard_sse_constant_p): Return 2 for integer mode
161         vector_all_ones_operand when SSE2 is enabled.
162         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
163         (ix86_expand_vector_move): Do not check for negative values from
164         standard_sse_constant_p.
165
166 2009-08-06  Richard Guenther  <rguenther@suse.de>
167
168         * tree-ssa.c (useless_type_conversion_p_1): Make function and
169         array type comparisons frontend independent.
170         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
171         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
172         out array reference lower bound and element size operands.
173         (ao_ref_init_from_vn_reference): Properly compute the offset
174         for ARRAY_RANGE_REF.
175         (vn_reference_fold_indirect): Fill out array reference lower
176         bound and element size operands.
177         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
178         a non gimple valued reference operand which can happen for
179         array reference lower bound or element size.
180         (create_component_ref_by_pieces_1): Properly generate the
181         element size operand for array references.
182
183 2009-08-06  Richard Guenther  <rguenther@suse.de>
184
185         PR tree-optimization/40964
186         * tree.c (iterative_hash_host_wide_int): Export.
187         * tree.h (iterative_hash_host_wide_int): Declare.
188         * tree-ssa-structalias.c (heapvar_map): New struct.
189         (heapvar_map_eq): New function.
190         (heapvar_map_hash): Likewise.
191         (heapvar_lookup): Adjust.
192         (heapvar_insert): Likewise.
193         (make_constraint_from_heapvar): Allow multiple heap variables
194         per decl at different offsets.
195         (init_alias_heapvars): Adjust.
196
197 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
198
199         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
200         * mips_output_sync_loop (mips_output_sync_loop): Only emit
201         trailing sync if TARGET_SYNC_AFTER_SC.
202
203 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
204
205         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
206         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
207         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
208         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
209         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
210         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
211         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
212         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
213         test_and_set_12): Rewrite calls to mips_output_sync_loop.
214         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
215         the prototype declaration match the definition.
216         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
217         instructions explicitly.  Add barrier_before and operands
218         parameters.
219         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
220         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
221         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
222         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
223         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
224         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
225
226 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
227
228         * tree-ssa-alias.c: Fix intervals to use [) syntax.
229
230 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
231             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
232
233         PR target/40906
234         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
235         source operand.
236
237 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
238
239         PR rtl-optimization/40924
240         * dse.c (canon_address): Before calling cselib_expand_value_rtx
241         make sure canon_rtx (mem_address) isn't simpler than
242         canon_rtx (expanded_mem_address).
243
244 2009-08-05  Li Feng  <nemokingdom@gmail.com>
245
246         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
247         for each poly_bb_p.
248         (build_scop_drs): Build alias set for each SCoP.
249
250 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
251
252         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
253         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
254         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
255         (MIPS_ARCH_FLOAT_SPEC): Likewise.
256         (BASE_DRIVER_SELF_SPECS): Likewise.
257
258 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
259
260         * tree-ssa-alias.c: Fix some comment typos.
261
262 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
263
264         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
265         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
266
267 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
268
269         PR c/39902
270         * simplify-rtx.c (simplify_binary_operation_1): Disable
271         simplifications for decimal float operations.
272
273 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
274
275         PR middle-end/40943
276         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
277         operand of INDIRECT_REF.
278
279 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
280
281         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
282         constants referencing TLS symbols.
283
284 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
285
286         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
287         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
288
289 2009-08-03  Richard Guenther  <rguenther@suse.de>
290
291         * tree.c (make_vector_type): Build a main variant first,
292         get the canonical one and then build the variant.
293         * tree-ssa.c (useless_type_conversion_p_1): Handle
294         fixed-point types.
295         (useless_type_conversion_p): Conversions to pointers to
296         incomplete record types are useless.
297
298 2009-08-03  Richard Guenther  <rguenther@suse.de>
299
300         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
301         file will be created.
302         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
303         * toplev.c (compile_file): Adjust comment.
304
305 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
306
307         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
308         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
309         (TARGET_PROMOTE_FUNCTION_MODE): Define.
310         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
311         (sh_promote_function_mode): Fix typo.
312
313 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
314
315         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
316
317 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
318
319         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
320         declaration arguments.
321
322 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
323
324         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
325         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
326         (ix86_split_ashl): Ditto.
327         (ix86_expand_vector_init_one_nonzero): Ditto.
328         (ix86_expand_vector_set): Ditto.
329         (ix86_expand_reduc_v4sf): Ditto.
330
331 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
332
333         * explow.c (promote_function_mode): Remove assert.
334         * config/sh/sh.c (sh_promote_function_mode): Declare.
335
336 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
337
338         * config/pa/pa.c (pa_promote_function_mode): Declare.
339         Change to static.  Fix promote_mode call.
340
341         * gthr-dce.h (CONST_CAST2): Define if not defined.
342         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
343
344         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
345
346 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
347
348         * expr.c (store_constructor): Use promote_decl_mode.  Remove
349         now write-only variable unsignedp.
350         (expand_expr_real_1): Use promote_decl_mode.
351         * expr.h (promote_function_mode, promote_decl_mode): New.
352         (promote_mode): Remove last argument.
353         * function.c (assign_temp): Drop last argument of promote_mode.
354         (assign_parm_find_data_types): Use promote_function_mode.
355         (assign_parm_setup_reg): Likewise.
356         (expand_function_end): Use promote_function_mode.
357         * calls.c (initialize_argument_information): Use promote_function_mode.
358         (precompute_arguments): Use promote_mode instead of checking if
359         only PROMOTE_FUNCTION_MODE is defined.
360         (expand_call): When making sibcall decisions, use promote_function_mode.
361         Below, remove an if for targetm.calls.promote_function_return and
362         and use promote_function_mode.
363         (emit_library_call_value_1): Use promote_function_mode, fix bug
364         where promote_mode was passed FOR_CALL == 0 for a return value in an
365         assertion.
366         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
367         * explow.c (promote_function_mode, promote_decl_mode): New.
368         (promote_mode): Keep only the FOR_CALL == 0 case.
369         * combine.c (setup_incoming_promotion): Remove test of
370         promote_function_args.  Use promote_function_mode.
371         * stmt.c (expand_value_return): Use promote_decl_mode.
372         (expand_decl): Use promote_decl_mode.
373
374         * expr.c (store_constructor): Use promote_decl_mode.  Remove
375         now write-only variable unsignedp.
376         (expand_expr_real_1): Use promote_decl_mode.
377         * expr.h (promote_function_mode, promote_decl_mode): New.
378         (promote_mode): Remove last argument.
379         * function.c (assign_temp): Drop last argument of promote_mode.
380         (assign_parm_find_data_types): Use promote_function_mode.
381         (assign_parm_setup_reg): Likewise.
382         (expand_function_end): Use promote_function_mode.
383         * calls.c (initialize_argument_information): Use promote_function_mode.
384         (precompute_arguments): Use promote_mode instead of checking if
385         only PROMOTE_FUNCTION_MODE is defined.
386         (expand_call): When making sibcall decisions, use promote_function_mode.
387         Below, remove an if for targetm.calls.promote_function_return and
388         and use promote_function_mode.
389         (emit_library_call_value_1): Use promote_function_mode, fix bug
390         where promote_mode was passed FOR_CALL == 0 for a return value in an
391         assertion.
392         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
393         * explow.c (promote_function_mode, promote_decl_mode): New.
394         (promote_mode): Keep only the FOR_CALL == 0 case.
395         * combine.c (setup_incoming_promotion): Remove test of
396         promote_function_args.  Use promote_function_mode.
397         * stmt.c (expand_value_return): Use promote_decl_mode.
398         (expand_decl): Use promote_decl_mode.
399
400         * explow.c (promote_function_mode): Just call the target hook.
401         * targhooks.c (default_promote_function_mode,
402         default_promote_function_mode_always_promote): New.
403         * targhooks.h (default_promote_function_mode,
404         default_promote_function_mode_always_promote): Declare.
405         * target.h (promote_function_args, promote_function_return): Remove.
406         (promote_function_mode): New.
407         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
408         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
409         (TARGET_PROMOTE_FUNCTION_MODE): New.
410         (TARGET_CALLS): Adjust.
411         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
412         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
413
414         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
415         * config/s390/s390.c (s390_promote_function_mode): ... here,
416         with pointer handling.
417         (TARGET_PROMOTE_FUNCTION_MODE): Define.
418         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
419
420         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
421         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
422         with pointer handling.
423         (TARGET_PROMOTE_FUNCTION_MODE): Define.
424         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
425         
426         * config/sh/sh-protos.h (sh_promote_function_mode): New.
427         * config/sh/sh.c (sh_promote_function_mode): New.
428         (TARGET_PROMOTE_FUNCTION_MODE): Define.
429         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
430
431         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
432         * config/cris/cris.c (cris_promote_function_mode): ... here.
433         (TARGET_PROMOTE_FUNCTION_MODE): Define.
434         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
435
436         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
437         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
438         (TARGET_PROMOTE_FUNCTION_MODE): Define.
439         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
440
441         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
442         * config/arm/arm.c (arm_promote_function_mode): ... here, without
443         complex type handling.
444         (TARGET_PROMOTE_FUNCTION_MODE): Define.
445         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
446
447         * config/pa/pa.c (pa_promote_function_mode): New.
448         (TARGET_PROMOTE_FUNCTION_MODE): Define.
449         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
450
451         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
452         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
453         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
454         * config/xtensa/xtensa.c: Likewise.
455         * config/stormy16/stormy16.c: Likewise.
456         * config/iq2000/iq2000.c: Likewise.
457         * config/rs6000/rs6000.c: Likewise.
458         * config/picochip/picochip.c: Likewise.
459         * config/arc/arc.c: Likewise.
460         * config/mcore/mcore.c: Likewise.
461         * config/score/score.c: Likewise.
462         * config/mips/mips.c: Likewise.
463         * config/bfin/bfin.c: Likewise.
464         * config/ia64/ia64.c: Likewise (disabled though).
465
466         * config/frv/frv.h: Remove pointless remark.
467
468         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
469         TARGET_PROMOTE_FUNCTION_ARGS,
470         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
471         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
472
473 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
474
475         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
476         -floop-parallelize-all.
477         * toplev.c (process_options): Rename flag_graphite_force_parallel to
478         flag_loop_parallelize_all.
479         * tree-ssa-loop.c (gate_graphite_transforms): Same.
480         * graphite.c (graphite_transform_loops): Same.
481         * common.opt: Same.
482         * graphite-poly.c (apply_poly_transforms): Same.
483
484 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
485
486         PR tree-optimization/40914
487         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
488         if set, then check the delta field of the PMF record.
489         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
490         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
491         call is stored in the delta.
492
493 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
494
495         * config/mips/mips.md (*clear_upper32_dext): New pattern.
496
497 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
498
499         * config/i386/bsd.h (ASM_BYTE): New define.
500         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
501         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
502         .byte.  Use fputs or putc instead of fprintf where appropriate.
503         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
504         fputs or putc instead of fprintf where appropriate.
505         * config/i386/i386elf.h: Ditto.
506         * config/i386/sysv4.h: Ditto.
507         
508         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
509         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
510         (*tls_global_dynamic_64): Ditto.
511
512 2009-07-31  Christian Bruel  <christian.bruel@st.com>   
513
514         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
515         
516 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
517
518         * config/arm/arm.c (arm_arm_address_cost): Fix typo. 
519         Remove dead code for MINUS.
520
521 2009-07-31  Anthony Green  <green@moxielogic.com>
522
523         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
524         $r12 in prologue.
525         (moxie_expand_epilogue): Ditto for epilogue.
526         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
527         incoming arguments.
528         (moxie_function_arg): Ditto.
529         (moxie_pass_by_reference): Ditto.
530         (moxie_arg_partial_bytes): Ditto.
531         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
532         (FUNCTION_ARG_ADVANCE) Ditto.
533         (REG_PARM_STACK_SPACE) Ditto.
534         (FUNCTION_ARG_REGNO_P) Dito.
535
536         * config.gcc: Add moxie linux config support.
537         * gcc/config/moxie/uclinux.h: New file.
538
539 2009-07-31  DJ Delorie  <dj@redhat.com>
540
541         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
542         (UNSPECV_SP_SWITCH_E): New.
543         (sp_switch_1): Change to an unspec.
544         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
545         replace $r15.
546         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
547         reference the new stack's address
548
549 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
550
551         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
552         graphite-clast-to-gimple.o, graphite-dependences.o,
553         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
554         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
555         (graphite-blocking.o,
556         graphite-clast-to-gimple.o, graphite-dependences.o,
557         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
558         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
559         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
560         * cfgloop.h (struct loop): Add can_be_parallel field.
561         * common.opt (fgraphite-identity): Moved up.
562         (fgraphite-force-parallel): New flag.
563         * graphite.c: Rewrite.
564         * graphite.h: Rewrite.
565         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
566         after Graphite.
567         * toplev.c (graphite_out_file): New file descriptor.
568         (graphite_in_file): New.
569         (process_options): flag_graphite_force_parallel cannot be used without
570         Graphite.
571         * tree-ssa-loop.c: Include toplev.h.
572         (gate_graphite_transforms): Enable flag_graphite for
573         flag_graphite_force_parallel.
574
575 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
576
577         * ChangeLog.graphite: New.
578         * graphite-blocking.c: New.
579         * graphite-clast-to-gimple.c: New.
580         * graphite-clast-to-gimple.h: New.
581         * graphite-dependences.c: New.
582         * graphite-dependences.h: New.
583         * graphite-interchange.c: New.
584         * graphite-poly.c: New.
585         * graphite-poly.h: New.
586         * graphite-ppl.c: New.
587         * graphite-ppl.h: New.
588         * graphite-scop-detection.c: New.
589         * graphite-scop-detection.h: New.
590         * graphite-sese-to-poly.c: New.
591         * graphite-sese-to-poly.h: New.
592         * sese.c: New.
593         * sese.h: New.
594
595 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
596
597         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
598         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
599
600 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
601
602         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
603         (scev_is_linear_expression): Return false if the evolution is not
604         affine multivariate.
605
606 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
607
608         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
609         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
610
611 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
612
613         * tree-data-ref.c (debug_data_references): New.
614         (debug_data_reference): New.
615         * tree-data-ref.h (debug_data_references): Declared.
616         (debug_data_reference): Declared.
617
618 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
619
620         * tree-data-ref.c (stmt_simple_memref_p: Removed.
621         * tree-data-ref.h (scop_p): Removed.
622         (struct data_reference): Remove field scop.
623         (DR_SCOP): Removed.
624         (stmt_simple_memref_p): Removed.
625
626 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
627
628         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
629         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
630         basic block empty.
631
632 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
633
634         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
635
636 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
637
638         * doc/invoke.texi (-fgraphite-identity): Documented.
639
640 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
641
642         * tree-scalar-evolution.c: Fix comment.
643         (instantiate_scev_1): Return unknow from scev instantiation if the
644         result is not above instantiate_below.
645
646 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
647
648         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
649         static anymore.  Instantiate the symbols that may have been introduced
650         by chrec_apply.
651         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
652         Declared.
653
654 2009-07-30  DJ Delorie  <dj@redhat.com>
655
656         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
657         .vliw directive to VLIW sections.
658
659 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
660
661         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
662         New variables.
663         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
664         (AUTOHEADER): New variable.
665         ($(srcdir)/cstamp-h.in): Use it.
666
667 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
668             Pat Haugen  <pthaugen@us.ibm.com>
669             Revital Eres <ERES@il.ibm.com>
670
671         * config/rs6000/vector.md (VEC_F): Add VSX support.
672         (VEC_A): Ditto.
673         (VEC_N): Ditto.
674         (mov<mode>): Ditto.
675         (vector_load_<mode>): Ditto.
676         (vector_store_<mode>): Ditto.
677         (vector GPR move split): Ditto.
678         (vec_reload_and_plus_<mptrsize>): Ditto.
679         (vec_reload_and_reg_<mptrsize>): Ditto.
680         (add<mode>3): Ditto.
681         (sub<mode>3): Ditto.
682         (mul<mode>3): Ditto.
683         (neg<mode>2): Ditto.
684         (abs<mode>2): Ditto.
685         (smin<mode>3): Ditto.
686         (smax<mode>3): Ditto.
687         (vector_eq<mode>): Ditto.
688         (vector_gt<mode>): Ditto.
689         (vector_ge<mode>): Ditto.
690         (vector_gtu<mode>): Ditto.
691         (vector_select_<mode>_uns): Ditto.
692         (vector_eq_<mode>_p): Ditto.
693         (vector_gt_<mode>_p): Ditto.
694         (vector_ge_<mode>_p): Ditto.
695         (vector_gtu_<mode>_p): Ditto.
696         (cr6_test_for_zero): Ditto.
697         (cr6_test_for_zero_reverse): Ditto.
698         (cr6_test_for_lt): Ditto.
699         (cr6_test_for_lt_reverse): Ditto.
700         (xor<mode>3): Ditto.
701         (ior<mode>3): Ditto.
702         (and<mode>3): Ditto.
703         (one_cmpl<mode>2): Ditto.
704         (nor<mode>2): Ditto.
705         (andc<mode>2): Ditto.
706         (float<VEC_int<mode>2): Ditto.
707         (unsigned_float<VEC_int><mode>2): Ditto.
708         (fix_trunc<mode><VEC_int>2): Ditto.
709         (fixuns_trunc<mode><VEC_int>2): Ditto.
710         (vec_init<mode>):
711         (vec_set<mode>): Ditto.
712         (vec_extract<mode>): Ditto.
713         (vec_interleave_highv4sf): Ditto.
714         (vec_interleave_lowv4sf): Ditto.
715         (vec_realign_load_<mode>): Ditto.
716         (vec_shl_<mode>): Ditto.
717         (vec_shr_<mode>): Ditto.
718         (div<mode>3): New patterns for VSX.
719         (vec_interleave_highv2df): Ditto.
720         (vec_interleave_lowv2df): Ditto.
721         (vec_pack_trunc_v2df): Ditto.
722         (vec_pack_sfix_trunc_v2df): Ditto.
723         (vec_pack_ufix_trunc_v2df): Ditto.
724         (vec_unpacks_hi_v4sf): Ditto.
725         (vec_unpacks_lo_v4sf): Ditto.
726         (vec_unpacks_float_hi_v4si): Ditto.
727         (vec_unpacku_float_lo_v4si): Ditto.
728         (vec_unpacku_float_hi_v4si): Ditto.
729         (vec_unpacks_float_lo_v4si): Ditto.
730         (movmisalign<mode>): Ditto.
731         (vector_ceil<mode>2): New patterns for vectorizing math library.
732         (vector_floor<mode>2): Ditto.
733         (vector_btrunc<mode>2): Ditto.
734         (vector_copysign<mode>3): Ditto.
735
736         * config/rs6000/predicates.md (easy_vector_constant_msb): New
737         predicate for setting the high bit in each word, used for copysign.
738
739         * config/rs6000/ppc-asm.h (f19): Whitespace.
740         (f32-f63): Define if VSX.
741         (v0-v31): Define if Altivec.
742         (vs0-vs63): Define if VSX.
743
744         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
745
746         * config/rs6000/power7.md: New file, provide tuning parameters for
747         -mcpu=power7.
748
749         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
750         (rs6000_cpu_cpp_builtins): Ditto.
751         (altivec_overloaded_builtins): Ditto.
752         (altivec_resolve_overloaded_builtin): Ditto.
753
754         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
755         debug switch to disable vectorizing simple math builtin
756         functions.
757
758         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
759         Vectorize simple math builtin functions.
760         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
761         hook to vectorize math builtins.
762         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
763         (rs6000_builtin_conversion): Add VSX/power7 support.
764         (rs6000_builtin_vec_perm): Ditto.
765         (vsplits_constant): Add support for loading up a vector constant
766         with just the high bit set in each part.
767         (rs6000_expand_vector_init): Add VSX/power7 support.
768         (rs6000_expand_vector_set): Ditto.
769         (rs6000_expand_vector_extract): Ditto.
770         (rs6000_emit_move): Ditto.
771         (bdesc_3arg): Ditto.
772         (bdesc_2arg): Ditto.
773         (bdesc_1arg): Ditto.
774         (rs6000_expand_ternop_builtin): Ditto.
775         (altivec_expand_builtin): Ditto.
776         (rs6000_expand_unop_builtin): Ditto.
777         (rs6000_init_builtins): Ditto.
778         (altivec_init_builtins): Ditto.
779         (builtin_function_type): Ditto.
780         (rs6000_common_init_builtins): Ditto.
781         (rs6000_handle_altivec_attribute); Ditto.
782         (rs6000_mangle_type): Ditto.
783         (rs6000_vector_mode_supported_p): Ditto.
784         (rs6000_mode_dependent_address): Altivec addresses with AND -16
785         are mode dependent.
786
787         * config/rs6000/vsx.md: New file for VSX support.
788
789         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
790         identifing values with just the most significant bit set.
791         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
792         vectorized builtins.
793
794         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
795         (UNSPEC_VRFIM): Delete.
796         (splitter for loading up vector with most significant bit): New
797         splitter for vectorizing copysign.
798         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
799         vectorizing simple math functions.
800         (altivec_vrfip): Add support for vectorizing simple math functions.
801         (altivec_vrfim): Ditto.
802         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
803
804         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
805         (power7.md, vsx.md): Include for power7 support.
806         (copysigndf3): Use VSX instructions if -mvsx.
807         (negdf2_fpr): Ditto.
808         (absdf2_fpr): Ditto.
809         (nabsdf2_fpr): Ditto.
810         (adddf3_fpr): Ditto.
811         (subdf3_fpr): Ditto.
812         (muldf3_fpr): Ditto.
813         (divdf3_fpr): Ditto.
814         (fix_truncdfdi2_fpr): Ditto.
815         (cmpdf_internal1): Ditto.
816         (fred, fred_fpr): Convert into expander/insn to add VSX support.
817         (btruncdf2, btruncdf2_fpr): Ditto.
818         (ceildf2, ceildf2_fpr): Ditto.
819         (floordf2, floordf2_fpr): Ditto.
820         (floatdidf2, floatdidf2_fpr): Ditto.
821         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
822         (fmsubdf4_fpr): Ditto.
823         (fnmadddf4_fpr_1): Ditto.
824         (fnmadddf4_fpr_2): Ditto.
825         (fnmsubdf4_fpr_1): Ditto.
826         (fnmsubdf4_fpr_2): Ditto.
827         (fixuns_truncdfdi2): Add expander for VSX support.
828         (fix_truncdfdi2): Ditto.
829         (fix_truncdfsi2): Ditto.
830         (ftruncdf2): Ditto.
831         (btruncsf2): Whitespace.
832         (movdf_hardfloat32): Add support for VSX registers.
833         (movdf_softfloat32): Ditto.
834         (movdf_hardfloat64): Ditto.
835         (movdf_hardfloat64_mfpgpr): Ditto.
836         (movdf_softfloat64): Ditto.
837         (movti splitters): Add check for vector registers supporting
838         TImode in the future.
839         (bpermd): Add power7 bpermd instruction.
840
841         * config/rs6000/altivec.h (vec_div): Define if VSX.
842         (vec_mul): Ditto.
843         (vec_msub): Ditto.
844         (vec_nmadd): Ditto.
845         (vec_nearbyint): Ditto.
846         (vec_rint): Ditto.
847         (vec_sqrt): Ditto.
848         (all predicates): Use the generic builtin function, and not the V4SF
849         specific function so that the predicates will work with VSX's V2DF.
850         (vec_all_*): Ditto.
851         (vec_any_*): Ditto.
852
853         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
854         Document new VSX functions and types.
855
856         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
857         switches.
858
859         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
860         "wa", and "j" constraints.  Modify "v" to talk about Altivec
861         instead of just vector.
862
863 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
864
865         PR debug/26475
866         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
867         location for phi arguments.
868         (rewrite_update_phi_arguments): Find locations for reaching defs.
869         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
870         Add location to add_phi_arg calls.
871         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
872         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
873         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
874         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
875         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
876         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
877         * tree-phinodes.c (make_phi_node): Initialize location.
878         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
879         (add_phi_arg): Add location parameter.
880         (remove_phi_arg_num): Move location when moving phi argument.
881         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set 
882         location.
883         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
884         slpeel_update_phi_nodes_for_guard1,
885         slpeel_update_phi_nodes_for_guard2,
886         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
887         vect_loop_versioning): Set locations.
888         * tree-parloops.c (create_phi_for_local_result,
889         transform_to_exit_first_loop, create_parallel_loop): Add locations.
890         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
891         * tree-vect-loop.c (get_initial_def_for_induction,
892         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
893         locations.
894         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
895         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
896         (gimple_phi_arg_set_location): New.  Set locus.
897         (gimple_phi_arg_has_location): New.  Check for locus.
898         (redirect_edge_var_map_location): New.  Return locus from var_map.
899         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
900         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
901         combining PHI arguments.
902         (cond_store_replacement): Set location.
903         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
904         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
905         scop_add_exit_phis_edge): Add locations.
906         * tree-cfgcleanup.c (remove_forwarder_block,
907         remove_forwarder_block_with_phi): Add locations.
908         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
909         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
910         locations.
911         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
912         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
913         flush_pending_stmts): Add source location.
914         * lambda-code.c (perfect_nestify): Maintain location stack with argument
915         stack to preserve locations.
916         * tree-vect-stmts.c (vectorizable_load): Add location.
917         * tree-inline.c (copy_phis_for_bb): Copy locus.
918         (setup_one_parameter): Add call locus to inlined parameter stmts.
919         (initialize_inlined_parameters): Pass in call location as parameter
920         assignment locus.
921         (tree_function_versioning): Pass location to setup_one_parameter.
922         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
923         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
924         copy and edge lists.
925         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
926         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a 
927         locus parameter and override the stmt default if provided.
928         (new_elim_graph, clear_elim_graph, delete_elim_graph,
929         elim_graph_add_edge, elim_graph_remove_succ_edge,
930         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
931         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
932         eliminate_phi):  Add locus info in elimination graph for each edge and
933         value copy.
934         (insert_backedge_copies): Copy locus if present.
935         * tree-flow.h (struct _edge_var_map): Add locus field.
936         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
937         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
938         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add 
939         locations.
940         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
941         
942 2009-07-30  Martin Jambor  <mjambor@suse.cz>
943
944         PR tree-optimization/40570
945         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
946         use inlining loops.
947
948 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
949
950         * ssa-loop-manip.c: Include langhooks.h.
951         (rewrite_phi_with_iv): New.
952         (rewrite_all_phi_nodes_with_iv): New.
953         (canonicalize_loop_ivs): Move here from tree-parloops.c.
954         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
955         * tree-parloops.c (loop_parallel_p): Move out all conditions
956         except dependency check.
957         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
958         (gen_parallel_loop): Call canonicalize_loop_ivs without
959         reduction_list argument.
960         (build_new_reduction): New.
961         (gather_scalar_reductions): New.
962         (try_get_loop_niter): New.
963         (try_create_reduction_list): New.
964         (parallleize_loops): Change the parallel conditions check.
965         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
966         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
967
968 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
969
970         * opt-functions.awk (opt_args): Allow argument to be enclosed in
971         curly braces.
972         * doc/options.texi (Option properties):  Mention new quoting syntax.
973
974 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
975
976         * config/alpha/alpha.c (alpha_start_function):
977         Handle VMS_DEBUG_MAIN_POINTER
978         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
979         * doc/invoke.texi: Document -mdebug-main switch.
980
981 2009-07-29  Richard Henderson  <rth@redhat.com>
982
983         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
984         (cgraph_create_edge_including_clones): Likewise.
985         * tree-inline.c (copy_bb): Operate on the correct edges
986         when updating the callgraph.
987
988 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
989
990         * config/alpha/vms-cc.c: Deleted.
991         * config/alpha/vms-ld.c: Deleted.
992         * config/alpha/t-vms64: Moved to config/vms
993         * config/alpha/vms-crt0-64.c: Moved to config/vms
994         * config/alpha/vms-crt0.c: Moved to config/vms
995         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
996         * config/alpha/vms-psxcrt0.c: Moved to config/vms
997         * config/alpha/xm-vms.h: Moved to config/vms
998         * config/alpha/x-vms: Moved to config/vms
999         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
1000         config/vms/t-vms.
1001         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
1002         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
1003         (version): Set.
1004         * config/vms/t-vms64: Moved here from config/alpha
1005         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
1006         (argc,argv,envp): Enforce 32bit malloc'ing.
1007         * config/vms/vms-psxcrt0-64.c: Likewise.
1008         * config/vms/vms-crt0.c: Moved here from config/alpha.
1009         * config/vms/vms-psxcrt0.c: Likewise.
1010         * config/vms/vms-crtl-64.h: New file.
1011         * config/vms/vms-crtl.h: New file.
1012         * config/vms/vms.opt: New file.
1013         * config/vms/xm-vms64.h: New file.
1014         * config/vms/xm-vms.h: Moved here from config/alpha.
1015         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
1016         Set.
1017         * config/vms/x-vms: Moved here from config/alpha.
1018         (version, VMS_EXTRA_PARTS): Moved to t-vms.
1019         (vms-ld.o, vms-cc.o): Removed.
1020         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
1021
1022 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1023
1024         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
1025         correct stack (obvious VMS fix).
1026
1027 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1028
1029         * dwarf2out.c (output_file_names): Output VMS style file name, size,
1030         date, version info if VMS_DEBUGGING_INFO defined.
1031         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
1032         size, date calculating code moved here.
1033
1034 2009-07-29  Paul Brook  <paul@codesourcery.com>
1035
1036         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
1037         do_push/do_pop.
1038
1039 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
1040
1041         PR target/40577
1042         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
1043         to DImode when generating insq_le insn.
1044
1045 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1046
1047         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
1048         New macro set for VMS_DEBUGGGING_INFO.
1049         (AT_string_form): Use it.
1050
1051 2009-07-28  DJ Delorie  <dj@redhat.com>
1052
1053         * config/mep/mep.c (vtext_section): New.
1054         (vftext_section): New.
1055         (ftext_section): New.
1056         (mep_select_section): Add support for functions.
1057         (mep_unique_section): Likewise.
1058         (mep_asm_init_sections): Likewise.
1059         (mep_encode_section_info): Remove it from here.
1060
1061         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1062
1063 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
1064
1065         * tree.h (TREE_DEPRECATED): Document it is used for types too.
1066         (TYPE_VECTOR_OPAQUE): Use default_def_flag
1067
1068 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1069
1070         * dwarf2out.c (output_file_names): Test new macro
1071         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
1072         (add_comp_dir_attribute): Likewise.
1073
1074 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
1075
1076         * config/i386/mingw-w64.h (LINK_SPEC): Add
1077         separating space between commands.
1078
1079 2009-07-28  Jan Hubicka  <jh@suse.cz>
1080
1081         PR tree-optimization/40759
1082         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
1083         for renaming.
1084
1085 2009-07-27  DJ Delorie  <dj@redhat.com>
1086
1087         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
1088         types are dword-aligned.
1089         (mep_expand_va_start): Likewise.
1090
1091 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1092             Douglas B Rupp  <rupp@gnat.com>
1093
1094         * convert.c (convert_to_pointer): Don't assume the target
1095         pointer type is POINTER_SIZE long. Fetch its precision instead.
1096
1097 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
1098
1099         * system.h (fopen): Undefine if macro.
1100
1101 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1102
1103         * dwarf2out.c (output_cfi_p): Removed.
1104         (output_cfis): New function.
1105         (output_fde): New function, split from output_call_frame_info.
1106         (output_call_frame_info): Use it.
1107         (dwarf2out_switch_text_section): Use output_cfis.
1108
1109 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
1110
1111         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
1112         TARGET_BI_ARCH is specified without enabling SJLJ.
1113         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
1114         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
1115
1116 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
1117
1118         * arm.md (negdi2): Use DImode if forcing a value into a register.
1119
1120 2009-07-26  Ira Rosen  <irar@il.ibm.com>
1121
1122         PR tree-optimization/40801
1123         * tree-vect-stmts.c (vectorizable_call): Get previous copy
1124         of vector operand from the previous copy of vector statement.
1125         Pass the correct definition type value to
1126         vect_get_vec_def_for_stmt_copy().
1127
1128 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1129
1130         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
1131         const char ** conversion.
1132
1133 2009-07-25 David Daney <ddaney@caviumnetworks.com>
1134
1135         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
1136         fancy_abort() if !ENABLE_ASSERT_CHECKING.
1137         (gcc_unreachable): Invoke __builtin_unreachable() if
1138         !ENABLE_ASSERT_CHECKING.
1139
1140 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
1141
1142         PR rtl-optimization/40445
1143         * emit-rtl.c (next_nonnote_insn_bb): New function.
1144         * rtl.h (next_nonnote_insn_bb): Declare new function.
1145         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
1146         with no successors that is the successor of the ENTRY_BLOCK.
1147         Continue from the top after removing an empty fallthrough block.
1148         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
1149         of next_nonnote_insn.
1150
1151 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
1152
1153         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
1154         
1155 2009-07-25  Martin Jambor  <mjambor@suse.cz>
1156
1157         * c-common.c (c_common_attribute_table): New element for noclone.
1158         (handle_noclone_attribute): New function. Forward-declare.
1159         * tree-inline.c (tree_versionable_function_p): Check for noclone
1160         attribute.
1161         * doc/extend.texi (Labels as Values): Document need for noclone.
1162         (Function Attributes): Document noclone attribute.
1163
1164 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
1165
1166         PR rtl-optimization/34999
1167         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
1168         and dw_fde_switched_cold_to_hot fields.
1169         (output_cfi_p): New function.
1170         (output_call_frame_info): If fde->dw_fde_switched_sections,
1171         output 2 FDEs instead of one with corrupted header.
1172         (dwarf2out_do_cfi_startproc): New function.
1173         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
1174         and fde->dw_fde_switched_cold_to_hot.
1175         (dwarf2out_switch_text_section): Compute
1176         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
1177         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
1178         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
1179         Otherwise, compute fde->dw_fde_switch_cfi.
1180
1181 2009-07-24  Cary Coutant  <ccoutant@google.com>
1182
1183         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
1184
1185 2009-07-24  Cary Coutant  <ccoutant@google.com>
1186
1187         * cfghooks.c (split_block): Copy discriminator to new block.
1188         * tree-cfg.c (assign_discriminator): Check location of last
1189         instruction in block as well as first.
1190
1191 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
1192
1193         * config/i386/linux.c: Use fputs or putc instead of fprintf
1194         where appropriate.
1195         * config/i386/gas.h: Ditto.
1196         * config/i386/x86-64.h: Ditto.
1197         * config/i386/att.h: Ditto.
1198
1199 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1200
1201         * expmed.c (emit_store_flag): Use a recursive call to optimize the
1202         xor case.
1203
1204 2009-07-24  Martin Jambor  <mjambor@suse.cz>
1205
1206         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
1207         (ipa_push_func_to_list_1): Declare.
1208         (ipa_push_func_to_list): New function.
1209
1210         * ipa-prop.c (ipa_push_func_to_list_1): New function.
1211         (ipa_init_func_list): Call ipa_push_func_to_list_1.
1212         (ipa_push_func_to_list): Removed.
1213         (ipa_pop_func_from_list): Clear node_enqueued flag.
1214
1215 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1216         
1217         * config/s390/s390.c (override_options): Default
1218         max-unrolled-insns to 100 for z10 tuning.
1219
1220 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
1221
1222         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
1223         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
1224         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
1225         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
1226         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
1227         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
1228         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
1229
1230 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
1231
1232         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
1233         use default set in mingw32.h header.
1234         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
1235         64-bit /mingw/include path.
1236         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
1237         path.
1238
1239 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
1240
1241         PR rtl-optimization/40209
1242         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
1243
1244 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
1245
1246         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
1247         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
1248         with the rest of string where appropriate.  Use fputs or putc
1249         instead of fprintf where appropriate.
1250
1251 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1252             Pat Haugen  <pthaugen@us.ibm.com>
1253             Revital Eres <ERES@il.ibm.com>
1254
1255         * config/rs6000/vector.md: New file.  Move most of the vector
1256         expander support here from altivec.md to allow for the VSX vector
1257         unit in the future.  Add support for secondary_reload patterns.
1258         Rewrite the patterns for vector comparison, and vector comparison
1259         predicate instructions so that the RTL expresses the desired
1260         behavior, instead of using unspec.
1261
1262         * config/rs6000/constraints.md ("f" constraint): Use
1263         rs6000_constraints to hold the precalculated register class.
1264         ("d" constraint): Ditto.
1265         ("wd" constraint): New constraint for VSX.
1266         ("wf" constraint): Ditto.
1267         ("ws" constraint): Ditto.
1268         ("wa" constraint): Ditto.
1269         ("wZ" constraint): Ditto.
1270         ("j" constraint): Ditto.
1271
1272         * config/rs6000/predicates.md (vsx_register_operand): New
1273         predicate for VSX.
1274         (vfloat_operand): New predicate for vector.md.
1275         (vint_operand): Ditto.
1276         (vlogical_operand): Ditto.
1277         (easy_fp_constant): If VSX, 0.0 is an easy constant.
1278         (easy_vector_constant): Add VSX support.
1279         (altivec_indexed_or_indirect_operand): New predicate for
1280         recognizing Altivec style memory references with AND -16.
1281
1282         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
1283         for vector secondary reload support.
1284         (rs6000_vector_reg_class): Delete, replacing it with
1285         rs6000_constraints.
1286         (rs6000_vsx_reg_class): Ditto.
1287         (rs6000_constraints): New array to hold the register classes of
1288         each of the register constraints that can vary at runtime.
1289         (builtin_mode_to_type): New static array for builtin function type
1290         creation.
1291         (builtin_hash_table): New static hash table for builtin function
1292         type creation.
1293         (TARGET_SECONDARY_RELOAD): Define target hook.
1294         (TARGET_IRA_COVER_CLASSES): Ditto.
1295         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
1296         registers are 128 bits if VSX memory reference instructions are used.
1297         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
1298         unit is being used.
1299         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
1300         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
1301         Print several of the scheduling related parameters.
1302         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
1303         rs6000_constraints instead of rs6000_vector_reg_class.  Move
1304         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
1305         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
1306         Altivec.  Add VSX support.  Setup for secondary reload support on
1307         Altivec/VSX registers.
1308         (rs6000_override_options): Make power7 set the scheduling groups
1309         like the power5.  Add support for new debug switches to override
1310         the scheduling defaults.  Temporarily disable -mcpu=power7 from
1311         setting -mvsx.  Add support for debug switches -malways-hint,
1312         -msched-groups, and -malign-branch-targets.
1313         (rs6000_buitlin_conversion): Add support for returning unsigned
1314         vector conversion functions to fix regressions due to stricter
1315         type checking.
1316         (rs6000_builtin_mul_widen_even): Ditto.
1317         (rs6000_builtin_mul_widen_odd): Ditto.
1318         (rs6000_builtin_vec_perm): Ditto.
1319         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
1320         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
1321         to zero a register.
1322         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
1323         generated upstream.
1324         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
1325         VSX types for bit operations.  Changes to accomidate vector.md.
1326         (bdesc_2arg): Ditto.
1327         (bdesc_1arg): Ditto.
1328         (struct builtin_description_predicates): Rewrite predicate
1329         handling so that RTL describes the operation, instead of passing
1330         the instruction to be used as a string argument.
1331         (bdesc_altivec_preds): Ditto.
1332         (altivec_expand_predicate_builtin): Ditto.
1333         (altivec_expand_builtin): Ditto.
1334         (rs6000_expand_ternop_builtin): Use a switch instead of an if
1335         statement for vsldoi support.
1336         (altivec_expand_ld_builtin): Change to use new names from vector.md.
1337         (altivec_expand_st_builtin): Ditto.
1338         (paired_expand_builtin): Whitespace changes.
1339         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
1340         builtin_mode_to_type table for secondary reload.  Call
1341         builtin_function_type to build random builtin functions.
1342         (altivec_init_builtins): Change to use builtin_function_type to
1343         create builtin function types dynamically as we need them.
1344         (builtin_hash_function): New support for hashing the tree types
1345         for builtin function as we need it, rather than trying to build
1346         all of the trees that we need.  Add initial preliminary VSX support.
1347         (builtin_function_type): Ditto.
1348         (builtin_function_eq): Ditto.
1349         (builtin_hash_struct): Ditto.
1350         (rs6000_init_builtins): Ditto.
1351         (rs6000_common_init_builtins): Ditto.
1352         (altivec_init_builtins): Ditto.
1353         (rs6000_common_init_builtins): Ditto.
1354         (enum reload_reg_type): New enum for simplifing reg classes.
1355         (rs6000_reload_register_type): Simplify register classes into GPR,
1356         Vector, and other registers.  Altivec and VSX addresses in reload.
1357         (rs6000_secondary_reload_inner): Ditto.
1358         (rs6000_ira_cover_classes): New target hook, that returns the
1359         appropriate cover classes, based on -mvsx being used or not.
1360         (rs6000_secondary_reload_class): Add VSX support.
1361         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
1362         (get_vsel_insn): Ditto.
1363         (rs6000_emit_vector_compare): Rewrite vector conditional support
1364         so that where we can, we use RTL operators, instead of blindly use
1365         UNSPEC.
1366         (rs6000_emit_vector_select): Ditto.
1367         (rs6000_emit_vector_cond_expr): Ditto.
1368         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
1369         (create_TOC_reference): Add -mdebug=addr support.
1370         (emit_frame_save): VSX loads/stores need register indexed addressing.
1371
1372         * config/rs6000/rs6000.md: Include vector.md.
1373
1374         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
1375
1376         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1377         support for V2DI, V2DF in logical, permute, select operations.
1378
1379         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
1380         switch for vsx/power7.
1381         (-mvsx-scalar-memory): Ditto.
1382         (-mvsx-align-128): Ditto.
1383         (-mallow-movmisalign): Ditto.
1384         (-mallow-df-permute): Ditto.
1385         (-msched-groups): Ditto.
1386         (-malways-hint): Ditto.
1387         (-malign-branch-targets): Ditto.
1388         
1389         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
1390         hook instead.
1391         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
1392         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
1393         (rs6000_vector_reg_class): Delete.
1394         (rs6000_vsx_reg_class): Ditto.
1395         (enum rs6000_reg_class_enum): New enum for the constraints that
1396         vary based on target switches.
1397         (rs6000_constraints): New array to hold the register class for all
1398         of the register constraints that vary based on the switches used.
1399         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
1400         (enum rs6000_builtins): Add unsigned varients for the builtin
1401         declarations returned by target hooks for expanding multiplies,
1402         select, and permute operations.  Add VSX builtins.
1403         (enum rs6000_builtin_type_index): Add entries for VSX.
1404         (V2DI_type_node): Ditto.
1405         (V2DF_type_node): Ditto.
1406         (unsigned_V2DI_type_node): Ditto.
1407         (bool_long_type_node): Ditto.
1408         (intDI_type_internal_node): Ditto.
1409         (uintDI_type_internal_node): Ditto.
1410         (double_type_internal_node): Ditto.
1411
1412         * config/rs6000/altivec.md (whole file): Move all expanders to
1413         vector.md from altivec.md.  Rename insn matching functions to be
1414         altivec_foo.
1415         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
1416         (altivec_vcmp*): Ditto.
1417         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
1418         (VM): New iterator for moves that includes the VSX types.
1419         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
1420         (altivec_vperm_<mode>_uns): New, for unsigned types.
1421         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
1422         (altivec_eq<mode>): Ditto.
1423         (altivec_gt<mode>): Ditto.
1424         (altivec_gtu<mode>): Ditto.
1425         (altivec_eqv4sf): Ditto.
1426         (altivec_gev4sf): Ditto.
1427         (altivec_gtv4sf): Ditto.
1428         (altivec_vcmpbfp_p): Ditto.
1429
1430 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
1431
1432         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to 
1433         unsigned HWI.
1434
1435 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
1436
1437         PR target/40832
1438         * config/i386/i386.c (output_387_ffreep): Rewrite to use
1439         ASM_SHORT instead of .word.
1440         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
1441         instead of .word in asm template.
1442
1443 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
1444
1445         PR target/37488
1446         * ira-lives.c (bb_has_abnormal_call_pred): New function.
1447         (process_bb_node_lives): Use it.
1448
1449         * ira.c (setup_cover_and_important_classes): Don't setup
1450         ira_important_class_nums.  Add cover classes to the end of
1451         important classes.
1452         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
1453         New.
1454         (find_reg_class_closure): Use reorder_important_classes.
1455
1456         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
1457
1458         * config/i386/i386.c (i386_ira_cover_classes): New function.
1459         (TARGET_IRA_COVER_CLASSES): Redefine.
1460
1461         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
1462         importance of order of cover classes in the array.
1463         
1464 2009-07-22  Diego Novillo  <dnovillo@google.com>
1465
1466         * tree-pass.h (TDF_EH): Define.
1467         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
1468         contains TDF_EH, print the EH region number holding GS.
1469         * tree-dump.c (dump_options): Add "eh".
1470         * doc/invoke.texi: Document it.
1471
1472 2009-07-22  Doug Kwan  <dougkwan@google.com>
1473
1474         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
1475
1476 2009-07-22  Michael Matz  <matz@suse.de>
1477
1478         PR tree-optimization/35229
1479         PR tree-optimization/39300
1480
1481         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
1482         (inhibit_phi_insertion): New function.
1483         (insert_into_preds_of_block): Call it for REFERENCEs.
1484         (init_pre): Initialize and finalize scalar evolutions.
1485         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
1486
1487 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
1488
1489         * config/i386/predicates.md (zero_extended_scalar_load_operand):
1490         Use CONST_VECTOR_NUNITS to determine number of elements.
1491
1492 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
1493
1494         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
1495         (U, W): Constraints are now deprecated and will be removed if we
1496         run out of letters.     
1497         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
1498         the file.
1499         ("prefetch"): Add the stcmh instruction for prefetching.
1500         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
1501         changes.
1502         (s390_short_displacement): Return always true if compiling for
1503         machines not providing the long displacement facility.
1504         (s390_mem_constraint): Support the new constraint letter Z.
1505         (s390_check_qrst_address): New function.
1506
1507 2009-07-21  DJ Delorie  <dj@redhat.com>
1508
1509         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
1510         alone too.
1511
1512 2009-07-21  Jason Merrill  <jason@redhat.com>
1513
1514         * c-common.c (max_tinst_depth): Increase default to 1024.
1515
1516 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1517
1518         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
1519         (vec_unpacku_float_lo_v4si): Ditto.
1520
1521 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1522
1523         PR target/40811
1524         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
1525         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
1526         (builtin_description): Add __builtin_ia32_cvtudq2ps.
1527         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
1528
1529 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
1530
1531         PR tree-optimization/40813
1532         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
1533         it.
1534
1535 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1536
1537         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
1538         with a NOP_EXPR if needed.
1539
1540 2009-07-21  Paul Brook <paul@codesourcery.com>
1541
1542         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
1543         Terminate debug dump with newline.
1544
1545 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1546
1547         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
1548         Cast "1" to unsigned HOST_WIDE_INT.
1549         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
1550         deposit length to the maximum length - lsb.  Extend length if
1551         HOST_BITS_PER_WIDE_INT is 32.
1552
1553 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
1554
1555         * cgraph.h (constant_pool_htab): New function.
1556         (constant_descriptor_tree): Move from varasm.c.
1557         * varasm.c (constant_pool_htab): New function.
1558         (constant_descriptor_tree): Move to cgraph.h.
1559
1560 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
1561
1562         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
1563
1564 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
1565
1566         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
1567         $(VARRAY_H).
1568
1569 2009-07-20  Xinliang David Li  <davidxl@google.com>
1570
1571         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
1572
1573 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1574
1575         * config/mips/mips.md (move_type): Add arith.
1576         (type): Handle arith.
1577         (zero_extendsidi2): Rename this into ...
1578         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
1579         (zero_extendsidi2): New expander.
1580         (*zero_extendsidi2_dext): New pattern.
1581
1582 2009-07-20  Nick Clifton  <nickc@redhat.com>
1583
1584         * config.gcc (mips64-*-*): Add definition of tm_defines in order
1585         to set MIPS_ABI_DEFAULT.
1586         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
1587
1588 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
1589
1590         * tree-object-size.c (addr_object_size): Handle unions with
1591         array in it as last field of structs in __bos (, 1) as __bos (, 0).
1592
1593         PR tree-optimization/40792
1594         * tree.c (build_function_type_skip_args): Remove bogus assert.
1595
1596 2009-07-20  Jan Hubicka  <jh@suse.cz>
1597             Martin Jambor  <mjambor@suse.cz>
1598
1599         * cgraph.h (combined_args_to_skip): New field.
1600         * cgraph.c (cgraph_create_virtual_clone): Properly handle
1601         combined_args_to_skip and args_to_skip.
1602         * tree-inline.c (update_clone_info): New function.
1603         (tree_function_versioning): Call update_clone_info.
1604         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
1605         functions.
1606         (cgraph_materialize_all_clones): More extensive dumping, working
1607         with combined_args_to_skip rather than args_to_skip.
1608
1609 2009-07-20  Ira Rosen  <irar@il.ibm.com>
1610
1611         * tree-vectorizer.h (vectorizable_condition): Add parameters.
1612         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
1613         (get_initial_def_for_reduction): Likewise.
1614         (vectorizable_reduction): Skip the check of first operand in case
1615         of COND_EXPR. Add check that it is outer loop vectorization if
1616         nested cycle was detected. Call vectorizable_condition() for 
1617         COND_EXPR. If reduction epilogue cannot be created do not fail for
1618         nested cycles (if it is not double reduction). Assert that there
1619         is only one type in the loop in case of COND_EXPR. Call
1620         vectorizable_condition() to vectorize COND_EXPR.
1621         * tree-vect-stmts.c (vectorizable_condition): Update comment.
1622         Add parameters. Allow nested cycles if called from 
1623         vectorizable_reduction(). Use reduction vector variable if provided.
1624         (vect_analyze_stmt): Call vectorizable_reduction() before
1625         vectorizable_condition().
1626         (vect_transform_stmt): Update call to vectorizable_condition().
1627
1628 2009-07-20  Christian Bruel  <christian.bruel@st.com>
1629         
1630         * config/sh/sh.opt (-mfmovd): Resurrect and document.
1631         * doc/invoke.texi (-mfmovd): Likewise.
1632         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
1633         
1634 2009-07-20  Jan Hubicka  <jh@suse.cz>
1635
1636         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
1637         when handling SSA name.
1638
1639 2009-07-19  Jan Hubicka  <jh@suse.cz>
1640
1641         PR tree-optimization/40676
1642         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
1643         virtual PHIs in empty BBs.
1644
1645 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1646
1647         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
1648         re-expanded the compound use gen_lowpart instead to convert to the
1649         desired mode.
1650
1651 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1652
1653         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
1654         OUTER_CONST arguments.
1655         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
1656         the new wider mode will be masked off.
1657         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
1658
1659 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1660
1661         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
1662         high-order bits are zero.
1663
1664 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1665
1666         * combine.c (simplify_shift_const_1): Split code to determine
1667         shift_mode into ...
1668         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
1669         new bits shifted in are identical to the old sign bit.
1670
1671 2009-07-18  Richard Guenther  <rguenther@suse.de>
1672
1673         PR c/40787
1674         * gimplify.c (gimplify_call_expr): Reject code using results from
1675         functions returning void.
1676
1677 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1678
1679         * doc/md.texi: Document the new PowerPC "es" constraint.
1680         Document that "m" can include automodified addresses on this target,
1681         and explain how %U must be used.  Extend the "Q" and "Z" documentation
1682         to suggest "es" as well as "m".
1683         * config/rs6000/constraints.md (es): New memory constraint.
1684         (Q, Z): Update strings to match new documentation.
1685
1686 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1687
1688         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
1689         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
1690         * config/rs6000/predicates.md (volatile_mem_operand): Use
1691         offsettable_nonstrict_memref_p.
1692         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
1693         (*floatunssidf2_internal): Likewise.
1694         (*fix_truncdfsi2_internal): Likewise.
1695         (*fix_trunctfsi2_internal): Likewise.
1696
1697 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
1698
1699         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
1700         atmega32u2 devices.
1701         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1702
1703 2009-07-17  Richard Guenther  <rguenther@suse.de>
1704
1705         PR c/40401
1706         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
1707         (pass_warn_unused_result): Likewise.
1708         (TODO_set_props): Remove.
1709         * omp-low.c (diagnose_omp_structured_block_errors): Change to
1710         run as a pass.
1711         (pass_diagnose_omp_blocks): Define.
1712         * c-decl.c (pop_file_scope): Do not finalize the CU here.
1713         (c_gimple_diagnostics_recursively): Remove.
1714         (finish_function): Do not call it.
1715         (c_write_global_declarations): Continue after errors.
1716         Finalize the CU here.
1717         * c-gimplify.c (c_genericize): Do not gimplify here.
1718         * c-common.c (c_warn_unused_result): Move ...
1719         * tree-cfg.c (do_warn_unused_result): ... here.
1720         (run_warn_unused_result): New function.
1721         (gate_warn_unused_result): New function.
1722         (pass_warn_unused_result): New pass.
1723         * c-common.h (c_warn_unused_result): Remove.
1724         * flags.h (flag_warn_unused_result): Declare.
1725         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
1726         * opts.c (flag_warn_unused_result): Initialize to false.
1727         * toplev.c (compile_file): Add comment.
1728         * omp-low.c (create_omp_child_function): Do not register
1729         the function with the frontend.
1730         (diagnose_omp_structured_block_errors): Prepare to be
1731         called as optimization pass.
1732         (gate_diagnose_omp_blocks): New function.
1733         (pass_diagnose_omp_blocks): New pass.
1734         * cgraph.h (cgraph_optimize): Remove.
1735         (cgraph_analyze_function): Likewise.
1736         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
1737         * cgraphunit.c (cgraph_lower_function): Lower nested functions
1738         before their parents here.
1739         (cgraph_finalize_function): Not here.
1740         (cgraph_analyze_function): Gimplify functions here.
1741         (cgraph_finalize_compilation_unit): Continue after errors.
1742         Optimize the callgraph from here.
1743         (cgraph_optimize): Make static.
1744         * langhooks.c (write_global_declarations): Finalize the CU.
1745         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
1746         (gimplify_function_tree): Assert we gimplify only once.
1747         Set PROP_gimple_any property.
1748         * tree-nested.c (gimplify_all_functions): New function.
1749         (lower_nested_functions): Gimplify all nested functions.
1750         * gimple.h (diagnose_omp_structured_block_errors): Remove.
1751         * passes.c (init_optimization_passes): Add pass_warn_unused_result
1752         and pass_diagnose_omp_blocks after gimplification.  Do not
1753         set TODO_set_props on all_lowering_passes.
1754         (execute_one_pass): Do not handle TODO_set_props.
1755         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
1756         (gimplify.o): Add tree-pass.h dependency.
1757         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
1758         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
1759         (unsave_r): Likewise.
1760         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
1761         temporary variable.
1762
1763 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
1764
1765         * doc/service.texi (Service): Restore previously removed link,
1766         which isn't broken after all.
1767
1768 2009-07-17  Richard Guenther  <rguenther@suse.de>
1769
1770         PR tree-optimization/40321
1771         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
1772         PHI nodes to the maximal set.
1773         (make_values_for_phi): Add PHI arguments to the maximal set.
1774         (execute_pre): Dump PHI_GEN and the maximal set.
1775
1776 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
1777
1778         PR c++/40780
1779         * gimplify.c (gimplify_conversion): Don't change non-conversions into
1780         VIEW_CONVERT_EXPR.
1781
1782 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1783
1784         * doc/extend.texi (Nested Functions): Replace broken link with
1785         textual reference.
1786         * doc/service.texi (Service): Remove broken link.
1787
1788 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1789
1790         PR bootstrap/40781
1791         * builtins.c (expand_builtin_memcmp): Use loc instead of
1792         EXPR_LOCATION (exp).
1793         (expand_builtin_strncmp): Likewise.
1794
1795 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
1796             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1797
1798         PR 40435 
1799         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
1800         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
1801         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
1802         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
1803         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
1804         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
1805         tree-inline.c, c-common.c, c-common.h, gimple.c,
1806         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
1807         convert.c: Add location argument to fold_{unary,binary,ternary},
1808         fold_build[123], build_call_expr, build_size_arg,
1809         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
1810         fold_build1_initializer, fold_build2_initializer,
1811         fold_build3_initializer, fold_build_call_array,
1812         fold_build_call_array_initializer, fold_single_bit_test,
1813         omit_one_operand, omit_two_operands, invert_truthvalue,
1814         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
1815         combine_comparisons, fold_builtin_*, fold_call_expr,
1816         build_range_check, maybe_fold_offset_to_address, round_up,
1817         round_down.
1818
1819 2009-07-16  Jason Merrill  <jason@redhat.com>
1820
1821         PR libstdc++/37907
1822         * c-common.c (c_common_reswords): Add __is_standard_layout
1823         and __is_trivial.
1824         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
1825         * doc/implement-cxx.texi: New.
1826         * doc/gcc.texi: Include it.
1827
1828 2009-07-16  DJ Delorie  <dj@redhat.com>
1829
1830         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
1831         compares that may be indirectly affected by previous instructions.
1832
1833 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1834
1835         * builtins.c (do_mpc_arg2): New.
1836         (fold_builtin_2): Fold builtin cpow.
1837         * real.h (HAVE_mpc_pow): New.
1838
1839 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
1840
1841         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
1842         comparison to skip unprofitable schedule
1843
1844 2009-07-16  Simon Baldwin  <simonb@google.com>
1845
1846         * gcc.c (option_map): New flag -no-canonical-prefixes.
1847         * (display_help): Print help text for new flag.
1848         * (process_command): Move options translation and language specifics
1849         and handle new flag early.  Use it to set a function pointer to a
1850         prefix builder.  Replace make_relative_prefix calls with calls to
1851         the function pointed to.  Ignore new flag in regular options handling.
1852         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
1853
1854 2009-07-15  DJ Delorie  <dj@redhat.com>
1855
1856         * config/mep/mep.md (sibcall_internal): Change register to avoid
1857         argument registers.
1858         (sibcall_value_internal): Likewise.
1859
1860 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1861
1862         PR rtl-optimization/40710
1863         * resource.c (mark_target_live_regs): Reset DF problem to LR.
1864
1865 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
1866
1867         * config/mips/mips.md (*extenddi_truncate<mode>,
1868         *extendsi_truncate<mode>): Change type attribute to move_type
1869         with shift_shift.  Split out code handling exts from here ...
1870         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
1871         pattern.
1872         (*extendhi_truncateqi): Change type attribute to move_type with
1873         shift_shift.  Split out code handling exts from here ...
1874         (*extendhi_truncateqi_exts): ... to this new pattern.
1875
1876 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
1877
1878         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
1879         instead of "and" with inverted sign bit mask value.  Use
1880         "nonimmediate_operand" for operand 1 and operand 2 predicate.
1881         Allocate registers only for operand 4 and operand 5.
1882
1883 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
1884
1885         PR middle-end/40747
1886         * fold-const.c (fold_cond_expr_with_comparison): When folding
1887         < and <= to MIN, make sure the MIN uses the same type as the
1888         comparison's operands.
1889
1890 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
1891
1892         * arm.md (ior_xor): New code iterator.
1893         (split for ior/xor with shift and zero-extend): New split pattern.
1894         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
1895
1896 2009-07-15  Richard Guenther  <rguenther@suse.de>
1897
1898         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
1899         offset member.
1900
1901 2009-07-15  Richard Guenther  <rguenther@suse.de>
1902
1903         PR middle-end/40753
1904         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
1905
1906 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1907
1908         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
1909         handle 2.6.30 kernel.
1910
1911 2009-07-15  DJ Delorie  <dj@redhat.com>
1912
1913         * config/mep/mep.md (sibcall_internal): Change register to allow
1914         for 24-bit addresses.
1915         (sibcall_value_internal): Likewise.
1916
1917 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1918         
1919         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
1920         that are enabled/disabled by the flags introduced by a previous patch.
1921         
1922 2009-07-14  DJ Delorie  <dj@redhat.com>
1923
1924         * config/mep/mep.md (sibcall_internal): Include non-toggling
1925         non-jmp case.
1926         (sibcall_value_internal): Likewise.
1927
1928 2009-07-14  Taras Glek  <tglek@mozilla.com>
1929             Rafael Espindola  <espindola@google.com>
1930
1931         * doc/sourcebuild.texi: Document install-plugin target.
1932         * configure.ac: Added install-plugin target to language makefiles.
1933         * configure: Regenerate.
1934         * Makefile.in: (install-plugin): Install more headers,
1935         depend on lang.install-plugin.
1936
1937 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1938
1939         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
1940         translation.
1941         
1942 2009-07-14  DJ Delorie  <dj@redhat.com>
1943
1944         * config/mep/mep.c (mep_vliw_jmp_match): New function.
1945         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
1946         * config/mep/mep.md (sibcall_internal): Change test from
1947         mep_vliw_mode_match to mep_vliw_jmp_match.
1948         (sibcall_value_internal): Likewise.
1949
1950 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
1951
1952         * config/i386/sse.md (copysign<mode>3): New expander.
1953         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
1954         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
1955         Use ix86_build_const_vector.
1956         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
1957         IX86_BUILTIN_CPYSGNPD.
1958         (builtin_description): Add __builtin_ia32_copysignps and
1959         __builtin_ia32_copysignpd.
1960         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
1961         and BUILT_IN_COPYSIGNF.
1962
1963 2009-07-13  Jason Merrill  <jason@redhat.com>
1964
1965         * builtins.c (can_trust_pointer_alignment): New fn.
1966         (get_pointer_alignment): Factor it out from here.
1967         * tree.h: Declare it.
1968
1969 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
1970
1971         * config/rs6000/predicates.md (offsettable_mem_operand): Test
1972         RTX_AUTOINC class.
1973
1974 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
1975
1976         PR debug/40705
1977         PR c++/403057
1978         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
1979
1980 2009-07-14  Richard Guenther  <rguenther@suse.de>
1981             Andrey Belevantsev <abel@ispras.ru>
1982
1983         PR middle-end/40745
1984         * cfgexpand.c (partition_stack_vars): Do not bother to update
1985         alias information when not optimizing.
1986
1987 2009-07-14  Richard Guenther  <rguenther@suse.de>
1988             Andrey Belevantsev <abel@ispras.ru>
1989
1990         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
1991         (pt_solution_set): Likewise.
1992         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
1993         * tree-ssa-structalias.c (pt_solution_set): New function.
1994         * final.c (rest_of_clean_state): Free SSA data structures.
1995         * print-rtl.c (print_decl_name): Remove.
1996         (print_mem_expr): Implement in terms of print_generic_expr.
1997         * alias.c (ao_ref_from_mem): New function.
1998         (rtx_refs_may_alias_p): Likewise.
1999         (true_dependence): Query alias-export info.
2000         (canon_true_dependence): Likewise.
2001         (write_dependence_p): Likewise.
2002         * tree-dfa.c (get_ref_base_and_extent): For void types leave
2003         size unknown.
2004         * emit-rtl.c (component_ref_for_mem_expr): Remove.
2005         (mem_expr_equal_p): Use operand_equal_p.
2006         (set_mem_attributes_minus_bitpos): Do not use
2007         component_ref_for_mem_expr.
2008         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
2009         (update_alias_info_with_stack_vars): Likewise.
2010         (partition_stack_vars): Call update_alias_info_with_stack_vars.
2011         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
2012         explicitly nor clear stmt operands.
2013         Free the decl-to-pointer map.
2014         * tree-optimize.c (execute_free_datastructures): Do not free
2015         SSA data structures here.
2016         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
2017         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
2018         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
2019         dependencies.
2020         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
2021
2022 2009-07-13  DJ Delorie  <dj@redhat.com>
2023
2024         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
2025         unrolling at the right iteration count.
2026
2027         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
2028         calculations.
2029
2030 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
2031         
2032         * haifa-sched.c (rank_for_schedule): Introduced flags to
2033         enable/disable individual scheduling heuristics.
2034         * common.opt: Introduced flags to enable/disable individual
2035         heuristics in the scheduler.    
2036         * doc/invoke.texi: Introduced flags to enable/disable individual
2037         heuristics in the scheduler.
2038         
2039 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
2040
2041         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
2042         config/i386/mingw-tls.c.
2043         * config/i386/mingw-tls.c: Removed.
2044
2045 2009-07-13  Ira Rosen  <irar@il.ibm.com>
2046
2047         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the 
2048         checks access only relevant statements.
2049         (vectorizable_reduction): Likewise.
2050
2051 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
2052
2053         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
2054         just for 32-bit case.
2055
2056 2009-07-12  Jan Hubicka  <jh@suse.cz>
2057
2058         PR tree-optimization/40585
2059         * except.c (expand_resx_expr): When there already is resume
2060         instruction, produce linked list.
2061         (build_post_landing_pads): Assert that resume is empty.
2062         (connect_post_landing_pads): Handle resume lists.
2063         (dump_eh_tree): Dump resume list.
2064
2065 2009-07-12  Ira Rosen  <irar@il.ibm.com>
2066
2067         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2068         with additional argument.
2069         * tree-vectorizer.h (enum vect_def_type): Add
2070         vect_double_reduction_def.
2071         (vect_is_simple_reduction): Add argument.
2072         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
2073         indentation.
2074         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
2075         vect_is_simple_reduction with additional argument.
2076         (vect_analyze_loop_operations): Handle exit phi nodes in case of
2077         double reduction.
2078         (reduction_code_for_scalar_code): Handle additional codes by
2079         returning ERROR_MARK for them. Fix comment and indentation.
2080         (vect_is_simple_reduction): Fix comment, add argument to specify
2081         double reduction. Detect double reduction.
2082         (get_initial_def_for_induction): Fix indentation.
2083         (get_initial_def_for_reduction): Fix comment and indentation.
2084         Handle double reduction. Create initial definitions that do not
2085         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
2086         (vect_create_epilog_for_reduction): Fix comment, add argument to
2087         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
2088         epilogue result extraction. Create double reduction phi node and
2089         replace relevant uses.
2090         (vectorizable_reduction): Call vect_is_simple_reduction with
2091         additional argument. Fix indentation. Update epilogue code treatment
2092         according to the changes in reduction_code_for_scalar_code. Check
2093         for double reduction. Call vect_create_epilog_for_reduction with
2094         additional argument.
2095         * tree-vect-stmts.c (process_use): Handle double reduction, update
2096         documentation.
2097         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
2098         (vect_get_vec_def_for_operand): Likewise.
2099
2100 2009-07-12  Danny Smith  <dansmister@gmail.com>
2101
2102         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
2103         dllexport if !TREE_PUBLIC.
2104         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
2105
2106 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
2107
2108         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
2109         (avr_extra_arch_macro) Remove declatation.
2110         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
2111         (avr_extra_arch_macro) Declare as static.
2112         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
2113
2114 2009-07-11  Jan Hubicka  <jh@suse.cz>
2115
2116         PR middle-end/48388
2117         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
2118
2119 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
2120
2121         PR debug/40713
2122         * dwarf2out.c (dw_fde_struct): Add in_std_section and
2123         cold_in_std_section bits.
2124         (dwarf2out_begin_prologue): Initialize them.
2125         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
2126         if already covered by text_section or cold_text_section range.
2127
2128         PR rtl-optimization/40667
2129         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
2130         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
2131         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
2132         * config/i386/i386.c (ix86_minimum_alignment): New function.
2133         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
2134         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
2135         * emit-rtl.c (gen_reg_rtx): Likewise.
2136         * function.c (assign_parms): Likewise.  If nominal_type needs
2137         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
2138         rather than passed_type's alignment.
2139
2140         PR target/40668
2141         * function.c (assign_parm_setup_stack): Adjust
2142         MEM_OFFSET (data->stack_parm) if promoted_mode is different
2143         from nominal_mode on big endian.
2144
2145 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
2146
2147         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
2148
2149 2009-07-10  DJ Delorie  <dj@redhat.com>
2150
2151         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
2152
2153 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
2154
2155         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
2156         attribute.
2157         (thumb2_cbnz): Likewise.
2158
2159 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
2160
2161         PR target/39079
2162         * config.gcc (supported_defaults): Add synci.
2163         (with_synci): Add validation.
2164         (all_defaults): Add synci.
2165         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
2166         ISA_HAS_SYNCI.
2167         (synci): Same.
2168         * config/mips/mips.opt (msynci): New option.
2169         * config/mips/mips.c (mips_override_options): Warn on use of
2170         -msynci for targets that do now support it.
2171         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2172         msynci.
2173         * gcc/doc/invoke.texi (-msynci): Document the new option.
2174         * doc/install.texi (--with-synci): Document the new option.
2175
2176 2009-07-10  Richard Guenther  <rguenther@suse.de>
2177
2178         PR tree-optimization/40496
2179         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
2180         the PHI result with a compatible type.
2181
2182 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2183
2184         PR 25509
2185         PR 40614
2186         * c.opt (Wunused-result): New.
2187         * doc/invoke.texi: Document it.
2188         * c-common.c (c_warn_unused_result): Use it.
2189
2190 2009-07-09  DJ Delorie  <dj@redhat.com>
2191
2192         * targhooks.c (default_target_can_inline_p): Rename from
2193         default_target_option_can_inline_p.
2194         * targhooks.h (default_target_can_inline_p): Likewise.
2195         * target-def.h (TARGET_CAN_INLINE_P): Rename from
2196         TARGET_OPTION_CAN_INLINE_P.
2197         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
2198         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
2199         (mep_target_can_inline_p): Rename from
2200         mep_target_option_can_inline_p.
2201
2202         PR target/40626
2203         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
2204         registers used to pass vectors.
2205
2206         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
2207
2208 2009-07-09  Tom Tromey  <tromey@redhat.com>
2209
2210         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
2211         * config/mmix/mmix.c: Include dwarf2.h.
2212         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
2213         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
2214         * config/sh/sh.c: Include dwarf2.h.
2215         * config/i386/i386.c: Include dwarf2.h.
2216         * Makefile.in (DWARF2_H): Remove 'elf'.
2217         * except.c: Include dwarf2.h.
2218         * unwind-dw2.c: Include dwarf2.h.
2219         * dwarf2out.c: Include dwarf2.h.
2220         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
2221         * unwind-dw2-fde.c: Include dwarf2.h.
2222         * dwarf2asm.c: Include dwarf2.h.
2223
2224 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2225
2226         * haifa-sched.c (insn_finishes_cycle_p): New static function.
2227         (max_issue): Use it.
2228         * sched-int.h (struct sched_info: insn_finishes_block_p): New
2229         scheduler hook.
2230         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
2231         (region_sched_info): Update.
2232         * sched-ebb.c (ebb_sched_info): Update.
2233         * modulo-sched.c (sms_sched_info): Update.
2234         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
2235
2236 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2237
2238         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
2239
2240 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
2241
2242         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. 
2243
2244 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
2245
2246         PR middle-end/40692
2247         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
2248         arg1 with arg01 if arg1 is already INTEGER_CST.
2249
2250 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
2251
2252         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
2253         Transform (and (truncate)) into (truncate (and)).
2254
2255 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
2256
2257         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
2258         creating LHS paradoxical subregs.  Fix surrounding returns to
2259         use NULL_RTX rather than 0.
2260
2261 2009-07-08  DJ Delorie  <dj@redhat.com>
2262
2263         * config/mep/mep.c: (mep_option_can_inline_p): New.
2264         (TARGET_OPTION_CAN_INLINE_P): Define.
2265
2266 2009-07-08  Mark Wielaard  <mjw@redhat.com>
2267
2268         PR debug/40659
2269         * dwarf2out.c (add_data_member_location_attribute): When we have
2270         only a constant offset don't emit a new location description using
2271         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
2272         dwarf_version > 2.
2273
2274 2009-07-08  Richard Henderson  <rth@redhat.com>
2275
2276         PR target/38900
2277         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
2278         (enum reg_class): Add CLOBBERED_REGS.
2279         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2280         * config/i386/i386.c (ix86_conditional_register_usage): Moved
2281         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
2282         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
2283         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
2284         force 64-bit sibcalls into R11.
2285         * config/i386/constraints.md (U): New constraint.
2286         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
2287         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
2288         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
2289
2290 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
2291
2292         * basic-block.h (dump_regset, debug_regset): Remove duplicate
2293         prototypes.
2294         * c-objc-common.h (c_initialize_diagnostics): Ditto.
2295         * ebitmap.h (dump_ebitmap): Ditto.
2296         * optabs.h (optab_libfunc): Ditto.
2297         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
2298         * tree-flow.h (vect_can_force_dr_alignment_p,
2299         get_vectype_for_scalar_type): Ditto.
2300         (vectorize_loops): Move prototype to ...
2301         * tree-vectorizer.h: ... here. Also, adjust comment.
2302         (vect_set_verbosity_level): Remove duplicate prototype.
2303         * tree-ssa-loop.c: Include tree-vectorizer.h.
2304         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
2305
2306 2009-07-08  Nick Clifton  <nickc@redhat.com>
2307
2308         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
2309         forward slash.
2310
2311 2009-07-08  DJ Delorie  <dj@redhat.com>
2312
2313         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
2314         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
2315         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
2316         written to.
2317         * config/mep/intrinsics.md: Regenerated.
2318         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
2319         registers when asm() or calls are detected.
2320
2321 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2322
2323         PR c++/31246
2324         * gimplify.c (gimplify_expr): Propagate no_warning flag when
2325         gimplifying.
2326         * gimple (gimple_build_call_from_tree): Likewise.
2327         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
2328         no_warning flag before warning.
2329
2330 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2331
2332         * tree.c (set_expr_locus): Remove.
2333         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
2334         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
2335         EXPR_LOCATION.
2336         * gimplify.c (internal_get_tmp_var): Likewise.
2337         (gimplify_call_expr): Likewise.
2338         (gimplify_one_sizepos): Likewise.
2339
2340 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
2341
2342         PR debug/40666
2343         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
2344         to variables for debugging purposes.
2345
2346 2009-06-23  Mark Loeser  <mark@halcy0n.com>
2347
2348         PR build/40010
2349         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
2350
2351 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2352
2353         * pretty-print.c (pp_base_format): Remove %J.
2354         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2355         gcc_cxxdiag_char_table): Likewise.
2356         (init_dynamic_diag_info): Likewise.
2357
2358 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2359
2360         * pretty-print.c (pp_base_format): Remove %H.
2361         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2362         gcc_cxxdiag_char_table): Likewise.
2363         (init_dynamic_diag_info): Likewise.
2364         * config/mep/mep.c (mep_select_section): Likewise.
2365
2366 2009-07-07  Duncan Sands  <baldrick@free.fr>
2367
2368         * final.c (pass_clean_state): Give the pass a name.
2369         * passes.c (pass_rest_of_compilation): Likewise.
2370         * tree-optimize.c (pass_all_optimizations): Likewise.
2371
2372 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2373
2374         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
2375         an extra 'decl' for error_at.
2376
2377 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
2378
2379         PR middle-end/40669
2380         * tree-tailcall.c (adjust_return_value_with_ops,
2381         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
2382         if it has complex or vector type.
2383
2384 2009-07-07  Olivier Hainque  <hainque@adacore.com>
2385
2386         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
2387         pthread symbols.
2388
2389 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
2390
2391         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
2392
2393 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2394
2395         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
2396         * c-decl.c: Likewise.
2397         * function.c: Likewise.
2398         * varasm.c: Likewise.
2399         * tree-ssa.c: Likewise.
2400         * c-common.c: Likewise.
2401         * tree-cfg.c: Likewise.
2402         * config/spu/spu.c: Likewise.
2403         * config/ia64/ia64.c: Likewise.
2404         * config/v850/v850.c: Likewise.
2405
2406 2009-07-06  DJ Delorie  <dj@redhat.com>
2407
2408         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
2409         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
2410         unspecified accesses to control registers.
2411         * config/mep/intrinsics.md: Regenerate.
2412         * config/mep/intrinsics.h: Regenerate.
2413         * config/mep/mep-intrin.h: Regenerate.
2414
2415 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2416
2417         * c-lex.c: Replace %H by an explicit location. Update all calls.
2418         * c-common.c: Likewise.
2419         * c-decl.c: Likewise.
2420         * c-typeck.c: Likewise.
2421         * fold-const.c: Likewise.
2422         * gimplify.c: Likewise.
2423         * stmt.c: Likewise.
2424         * tree-cfg.c: Likewise.
2425         * tree-ssa-loop-niter.c: Likewise.
2426         * tree-vrp.c: Likewise.
2427         * value-prof.c: Likewise.
2428
2429 2009-07-06  Diego Novillo  <dnovillo@google.com>
2430
2431         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
2432         if it has one.  Handle cases where VAR does not have an
2433         annotation or cfun is NULL.
2434
2435 2009-07-06  Diego Novillo  <dnovillo@google.com>
2436
2437         * tree.c: Include debug.h.
2438         (initialize_tree_contains_struct): New.
2439         (init_ttree): Call it.
2440         (tree_node_structure_for_code): Factor out of ...
2441         (tree_node_structure): ... here.
2442         * treestruct.def (TS_PHI_NODE): Remove.
2443         (TS_GIMPLE_STATEMENT): Remove.
2444
2445 2009-07-06  Diego Novillo  <dnovillo@google.com>
2446
2447         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
2448         (debug_tree_chain): Handle cycles.
2449
2450 2009-07-06  Nick Clifton  <nickc@redhat.com>
2451             DJ Delorie  <dj@redhat.com>
2452
2453         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2454         __FMOVD_ENABLED__ is defined.
2455         * config/sh/sh.h
2456         (TARGET_FMOVD): Provide a default definition.
2457         (MASK_FMOVD): Likewise.
2458         (TARGET_CPU_CPP_BUILTINS): Define
2459         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2460         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2461         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
2462         (split for DF load from memory into register): Also handle
2463         MEMs which consist of REG+DISP addressing.
2464         (split for DF store from register to memory): Likewise.
2465         (movsf_ie): Always use single fp_mode.
2466         * config/sh/sh.c (sh_override_options): Do not automatically
2467         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2468         that to the -mfmovd command line switch.
2469         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
2470         (fldi_ok): Always allow.
2471         * config/sh/sh.opt (mfmovd): Remove this switch.
2472         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2473
2474 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
2475             Kaz Kojima  <kkojima@gcc.gnu.org>
2476
2477         PR rtl-optimization/30807
2478         * postreload.c (reload_combine): For every new use of REG_SUM,
2479         record the use of BASE.
2480
2481 2009-07-06  Jan Hubicka  <jh@suse.cz>
2482
2483         * params.def: Revert my accidental commit at 2009-06-30.
2484
2485 2009-07-04  Ian Lance Taylor  <iant@google.com>
2486
2487         PR target/40636
2488         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
2489         EXPORTED_CONST.
2490         (mingw_format_attribute_overrides): Likewise.
2491
2492 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
2493
2494         PR debug/40596
2495         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
2496         don't check cfa.reg.  Instead of cfa.indirect use
2497         fde && fde->drap_reg != INVALID_REGNUM test.
2498
2499 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
2500
2501         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
2502
2503 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
2504
2505         PR target/40587
2506         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
2507
2508 2009-07-03  Richard Guenther  <rguenther@suse.de>
2509
2510         PR tree-optimization/40640
2511         * tree-switch-conversion.c (build_arrays): Perform arithmetic
2512         in original type.
2513
2514 2009-07-03  Jan Hubicka  <jh@suse.cz>
2515
2516         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
2517         for size, reduce amount of inlining.
2518
2519 2009-07-03  Richard Guenther  <rguenther@suse.de>
2520
2521         PR middle-end/34163
2522         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
2523         if t +- x is known to not overflow and the conversion widens the
2524         operation.
2525         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
2526
2527 2009-07-03  Jan Hubicka  <jh@suse.cz>
2528
2529         * ipa-pure-const.c (analyze): Update loop optimizer init.
2530         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
2531         try_remove_empty_loop, remove_empty_loops): Remove.
2532         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
2533         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
2534         to mark regular loops as neccesary.
2535         (degenerate_phi_p): New function.
2536         (propagate_necessity, remove_dead_phis): Use it.
2537         (forward_edge_to_pdom): Likewise.
2538         (eliminate_unnecessary_stmts): Take care to remove uses of results of
2539         virtual PHI nodes that became unreachable.
2540         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
2541         * tree-flow.h (remove_empty_loops): Remove.
2542         * passes.c (init_optimization_passes): Remove.
2543
2544 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
2545
2546         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
2547         can_create_pseudo_p.
2548         (*fix_trunc<mode>_i387_1): Ditto.
2549         (*floathi<mode>2_1): Ditto.
2550         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
2551         (*fistdi2_1): Ditto.
2552         (*fist<mode>2_1): Ditto.
2553         (frndintxf2_floor): Ditto.
2554         (*fist<mode>2_floor_1): Ditto.
2555         (frndintxf2_ceil): Ditto.
2556         (*fist<mode>2_ceil_1): Ditto.
2557         (frndintxf2_trunc): Ditto.
2558         (frndintxf2_mask_pm): Ditto.
2559         (fxam<mode>2_i387_with_temp): Ditto.
2560         * config/i386/sse.md (mulv16qi3): Ditto.
2561         (*sse2_mulv4si3): Ditto.
2562         (mulv2di3): Ditto.
2563         (sse4_2_pcmpestr): Ditto.
2564         (sse4_2_pcmpistr): Ditto.
2565
2566 2009-07-03  Jan Hubicka  <jh@suse.cz>
2567
2568         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
2569         (mark_stmt_necessary): Set it.
2570         (mark_operand_necessary): Set it.
2571         (mark_control_dependent_edges_necessary): Set it.
2572         (mark_virtual_phi_result_for_renaming): New function.
2573         (get_live_post_dom): New function.
2574         (forward_edge_to_pdom): New function.
2575         (remove_dead_stmt): Fix handling of control dependences.
2576         (tree_dce_init): Init new bitmap.
2577         (tree_dce_done): Free it.
2578
2579 2009-07-02  Richard Guenther  <rguenther@suse.de>
2580
2581         PR bootstrap/40617
2582         * tree-ssa-structalias.c (new_var_info): Initialize
2583         is_restrict_var.
2584
2585 2009-07-02  Jan Hubicka  <jh@suse.cz>
2586
2587         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
2588         local.
2589
2590 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
2591
2592         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
2593         instead of recomputing it.  Adjust calls.
2594         (emit_store_flag): Adjust recursive calls.
2595
2596 2009-07-02  Richard Guenther  <rguenther@suse.de>
2597
2598         * tree-ssa-live.c (remove_unused_locals): Do not remove
2599         heap variables.
2600         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
2601         of DECL_EXTERNAL for HEAP variables.
2602         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
2603         HEAP variables.  Do not adjust RESTRICT vars.
2604         (find_what_var_points_to): Nobody cares if something
2605         points to READONLY.
2606
2607 2009-07-02  Ben Elliston  <bje@au.ibm.com>
2608
2609         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
2610         pc_low and pc_high declarations to the top of the function.
2611
2612 2009-07-01  DJ Delorie  <dj@redhat.com>
2613
2614         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
2615         registers as fixed.
2616         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
2617         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
2618         unspecified accesses to control registers.
2619         * config/mep/intrinsics.md: Regenerate.
2620         * config/mep/intrinsics.h: Regenerate.
2621         * config/mep/mep-intrin.h: Regenerate.
2622
2623 2009-07-01  Anthony Green  <green@moxielogic.com>
2624
2625         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2626         instruction when possible.
2627         (moxie_expand_prologue): Ditto.  Also, save an instruction and
2628         some complexity by popping off of $r12 instead of $sp.
2629         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
2630         operands.
2631
2632 2009-07-01  Richard Henderson  <rth@redhat.com>
2633
2634         PR bootstrap/40347
2635         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
2636         contained no insns, reposition note before last insn.
2637
2638 2009-07-01  Richard Henderson  <rth@redhat.com>
2639
2640         PR debug/40431
2641         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
2642         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
2643
2644 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2645
2646         PR bootstrap/40558
2647         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
2648         darwin9 for printing reg addresses with %y.
2649
2650 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2651
2652         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
2653         truncation from operands in binary operations.
2654
2655 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2656
2657         Revert:
2658         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
2659         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
2660         subreg of op0 to the original op0.
2661
2662         * expmed.c (store_bit_field_1): Use a temporary as the destination
2663         instead of a paradoxical subreg when we need to truncate the result.
2664
2665 2009-07-01  DJ Delorie  <dj@redhat.com>
2666
2667         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
2668         names to VLIW variants.
2669         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
2670         * config/mep/intrinsics.md: Regenerate.
2671         * config/mep/intrinsics.h: Regenerate.
2672         * config/mep/mep-intrin.h: Regenerate.
2673
2674 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
2675
2676         PR debug/40462
2677         * jump.c (returnjump_p): Revert last patch.
2678         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
2679
2680 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2681
2682         PR target/40575
2683         * pa.md (casesi32p): Use jump table label to determine the offset
2684         of the jump table.
2685         (casesi64p): Likewise.
2686
2687         * pa.c (forward_branch_p): Return bool type.  Use instruction
2688         addresses when available.  Assert that INSN has a jump label.
2689         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
2690         have a jump label.
2691
2692 2009-07-01  Richard Guenther  <rguenther@suse.de>
2693
2694         PR tree-optimization/19831
2695         * tree-ssa-dce.c (propagate_necessity): Calls to functions
2696         that only act as barriers do not make any previous stores necessary.
2697         * tree-ssa-structalias.c (handle_lhs_call): Delay making
2698         HEAP variables global, do not add a constraint from nonlocal.
2699         (find_func_aliases): Handle escapes through return statements.
2700         (compute_points_to_sets): Make escaped HEAP variables global.
2701
2702 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2703
2704         PR bootstrap/40597
2705         * expmed.c (emit_store_flag): Perform a conversion if necessary,
2706         after reducing a DImode cstore to SImode.
2707
2708 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2709
2710         * expr.c (expand_expr_real_1): Reinstate fallthrough to
2711         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
2712
2713 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
2714
2715         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
2716         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
2717         to 0.
2718         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
2719         and umod_optab if TARGET_BSD_DIVMOD.
2720         * config/vax/lib1funcs.asm: New file.
2721         * config/vax/t-linux: New file.
2722         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
2723
2724 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
2725
2726         PR c++/40566
2727         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
2728         to type arguments that have void type.
2729
2730         PR debug/40573
2731         * dwarf2out.c (gen_formal_parameter_die): Call
2732         equate_decl_number_to_die if node is different from origin.
2733
2734 2009-06-30  Anthony Green  <green@moxielogic.com>
2735
2736         Clean up moxie port for --enable-build-with-cxx.
2737         * config/moxie/moxie.c (moxie_function_value): First two
2738         parameters are const_tree, not tree.
2739         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
2740         (REG_CLASS_NAMES): Ditto.
2741         (REGNO_REG_CLASS): Ditto.
2742         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
2743         (moxie_function_value): Fix constyness of arguments.
2744
2745 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2746
2747         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
2748         finalize_size_functions before further processing.
2749         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
2750         (variable_size): Call self_referential_size on size expressions
2751         that contain a PLACEHOLDER_EXPR.
2752         (size_functions): New static variable.
2753         (copy_self_referential_tree_r): New static function.
2754         (self_referential_size): Likewise.
2755         (finalize_size_functions): New global function.
2756         * tree.c: Include tree-inline.h.
2757         (push_without_duplicates): New static function.
2758         (find_placeholder_in_expr): New global function.
2759         (substitute_in_expr) <tcc_declaration>: Return the replacement object
2760         on equality.
2761         <tcc_expression>: Likewise.
2762         <tcc_vl_exp>: If the replacement object is a constant, try to inline
2763         the call in the expression.
2764         * tree.h (finalize_size_functions): Declare.
2765         (find_placeholder_in_expr): Likewise.
2766         (FIND_PLACEHOLDER_IN_EXPR): New macro.
2767         (substitute_placeholder_in_expr): Update comment.
2768         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
2769         is true.
2770         (copy_tree_body_r): Likewise.
2771         (copy_tree_body): New static function.
2772         (maybe_inline_call_in_expr): New global function.
2773         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
2774         (maybe_inline_call_in_expr): Declare.
2775         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
2776         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
2777         GIMPLE_H.
2778
2779 2009-06-30  Richard Guenther  <rguenther@suse.de>
2780
2781         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
2782         continue walking.
2783         (propagate_necessity): Do not mark reaching defs of stores
2784         as necessary.
2785
2786 2009-06-30  Jan Hubicka  <jh@suse.cz>
2787
2788         * cfgloopanal.c (check_irred): Move into ...
2789         (mark_irreducible_loops): ... here; return true if ireducible
2790         loops was found.
2791         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
2792         (analyze_function): Try to prove loop finiteness.
2793         * cfgloop.h (mark_irreducible_loops): Update prototype.
2794         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
2795
2796 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
2797
2798         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
2799
2800 2009-06-30  Ira Rosen  <irar@il.ibm.com>
2801
2802         PR tree-optimization/40542
2803         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
2804         types.
2805
2806 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2807
2808         PR tree-optimization/40582
2809         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
2810         than useless_type_conversion_p.
2811         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
2812         proper place.
2813
2814 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2815
2816         PR middle-end/40554
2817         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
2818
2819 2009-06-30  Richard Guenther  <rguenther@suse.de>
2820
2821         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
2822         use ao_ref references.
2823         (walk_aliased_vdefs): Likewise.
2824         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
2825         * tree-ssa-dce.c (struct ref_data): Remove.
2826         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
2827         (mark_aliased_reaching_defs_necessary): Adjust.
2828         (mark_all_reaching_defs_necessary_1): Likewise.
2829
2830 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
2831
2832         PR boostrap/40597
2833         * expmed.c (emit_cstore): New name of emit_store_flag_1.
2834         (emit_store_flag_1): Extract from emit_store_flag, adjust
2835         calls to (what now is) emit_cstore.
2836         (emit_store_flag): Call emit_store_flag_1 and also use it
2837         for what used to be recursive calls.
2838
2839 2009-06-30  Wei Guozhi  <carrot@google.com>
2840
2841         PR/40416
2842         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
2843         if the target bb post dominates from bb.
2844         * config/i386/i386.c (memory_address_length): Check existence of base
2845         register before using it.
2846
2847 2009-06-30  Nick Clifton  <nickc@redhat.com>
2848             DJ Delorie  <dj@redhat.com>
2849
2850         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2851         __FMOVD_ENABLED__ is defined.
2852         * config/sh/sh.h
2853         (TARGET_FMOVD): Provide a default definition.
2854         (MASK_FMOVD): Likewise.
2855         (TARGET_CPU_CPP_BUILTINS): Define
2856         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2857         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2858         two fmov instructions depending upon whether TARGET_FMOVD is
2859         enabled.
2860         (split for DF load from memory into register): Also handle
2861         MEMs which consist of REG+DISP addressing.
2862         (split for DF store from register to memory): Likewise.
2863         * config/sh/sh.opt (mfmovd): Remove this switch.
2864         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2865         * config/sh/sh.c (sh_override_options): Do not automatically
2866         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2867         that to the -mfmovd command line switch.
2868
2869         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
2870         the SH4 and SH4A.
2871         (fldi_ok): Always allow.
2872         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
2873
2874 2009-06-29  DJ Delorie  <dj@redhat.com>
2875
2876         * doc/install.texi (mep-x-elf): Correct chip's full name.
2877
2878 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2879
2880         * doc/extend.texi: Fix typo.
2881
2882 2009-06-29  Tom Tromey  <tromey@redhat.com>
2883
2884         * dwarf2.h: Remove.
2885         * Makefile.in (DWARF2_H): New variable.
2886         (except.o): Use it.
2887         (dwarf2out.o): Likewise.
2888         (dwarf2asm.o): Likewise.
2889         * config/i386/t-i386: Use DWARF2_H.
2890         * except.c: Include elf/dwarf2.h.
2891         * unwind-dw2.c: Include elf/dwarf2.h.
2892         * dwarf2out.c: Include elf/dwarf2.h.
2893         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
2894         <dtprel>: New field.
2895         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
2896         (size_of_loc_descr): Likewise.
2897         (output_loc_operands_raw): Likewise.
2898         (output_loc_operands): Handle new dtprel field.
2899         (loc_checksum): Update.
2900         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
2901         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
2902         * unwind-dw2-fde.c: Include elf/dwarf2.h.
2903         * dwarf2asm.c: Include elf/dwarf2.h.
2904         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
2905         * config/mmix/mmix.c: Include elf/dwarf2.h.
2906         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
2907         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
2908         * config/sh/sh.c: Include elf/dwarf2.h.
2909         * config/i386/i386.c: Include elf/dwarf2.h.
2910
2911 2009-06-29  DJ Delorie  <dj@redhat.com>
2912
2913         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
2914
2915         * doc/extend.texi: Add MeP attributes and pragmas.
2916         * doc/invoke.text: Add MeP Options.
2917         * doc/contrib.texi: Add MeP contribution.
2918         * doc/md.texi: Add MeP constraints.
2919         * doc/install.texi: Add MeP target.
2920
2921 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
2922
2923         * target.h (struct gcc_target): Add frame_pointer_required field.
2924         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
2925         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
2926         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
2927         hook.
2928         * reload1.c (update_eliminables): (Ditto.).
2929         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
2930         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2931         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
2932
2933         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
2934
2935         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
2936         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2937         (arm_frame_pointer_required): New function.
2938
2939         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
2940         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2941         (avr_frame_pointer_required_p): Declare as static.
2942         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
2943
2944         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
2945         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2946         (bfin_frame_pointer_required): Make as static, change return type
2947         to bool.
2948         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
2949
2950         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
2951         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2952         (cris_frame_pointer_required): New function.
2953         
2954         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
2955
2956         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
2957         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2958         (fr30_frame_pointer_required): New function.
2959         
2960         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
2961         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2962         (frv_frame_pointer_required): Make as static, change return type
2963         to bool.
2964         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
2965
2966         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
2967         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2968         (ix86_frame_pointer_required): Make as static, change return type to
2969         bool.
2970         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
2971
2972         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
2973         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2974
2975         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
2976
2977         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
2978         
2979         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
2980
2981         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
2982         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2983         (mips_frame_pointer_required): Make as static.
2984         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
2985         
2986         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
2987         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2988         (mmix_frame_pointer_required): Mew function.
2989
2990         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
2991         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2992
2993         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
2994
2995         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
2996
2997         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
2998
2999         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
3000         (CAN_ELIMINATE): Redefine.
3001         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3002         (sparc_frame_pointer_required): New function.
3003         (sparc_can_eliminate): New function.
3004         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
3005
3006         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
3007         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3008
3009         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
3010         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3011         (xtensa_frame_pointer_required): Make as static, change return type
3012         to bool.
3013         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
3014         Remove.
3015
3016 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
3017
3018         * doc/plugins.texi: Document PLUGIN_START_UNIT.
3019         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
3020         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
3021         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
3022         (register_callback): Handle PLUGIN_START_UNIT.
3023         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
3024
3025 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3026
3027         * tree.c (process_call_operands): Propagate TREE_READONLY from the
3028         operands.
3029         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
3030         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
3031
3032 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
3033
3034         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
3035         move cost.
3036
3037 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
3038
3039         * doc/extend.texi (Additional Floating Types): __float128 is also
3040         supported on i386 targets.
3041
3042 2009-06-29  Richard Guenther  <rguenther@suse.de>
3043
3044         PR middle-end/14187
3045         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
3046         flag.
3047         (pt_solutions_same_restrict_base): Declare.
3048         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
3049         flag.
3050         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
3051         (make_constraint_from, make_copy_constraint): Move earlier.
3052         (make_constraint_from_heapvar): New function.
3053         (make_constraint_from_restrict): Likewise.
3054         (handle_lhs_call): Use it.
3055         (find_func_aliases): Use it to track conversions to restrict
3056         qualified pointers.
3057         (struct fieldoff): Add only_restrict_pointers flag.
3058         (push_fields_onto_fieldstack): Initialize it.
3059         (create_variable_info_for): Track global restrict qualified pointers.
3060         (intra_create_variable_infos): Use make_constraint_from_heapvar.
3061         Track restrict qualified pointer arguments.
3062         (set_uids_in_ptset): Use varinfo is_global_var flag.
3063         (find_what_var_points_to): Set the vars_contains_restrict flag.
3064         Always create the points-to solution for sets including restrict tags.
3065         (pt_solutions_same_restrict_base): New function.
3066         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
3067         qualified pointers use pt_solutions_same_restrict_base as
3068         additional source for disambiguation.
3069
3070 2009-06-29  Richard Guenther  <rguenther@suse.de>
3071
3072         PR middle-end/38212
3073         * alias.c (find_base_decl): Remove.
3074         (get_deref_alias_set_1): Remove restrict handling.
3075         * c-common.c (c_apply_type_quals_to_decl): Do not set
3076         DECL_POINTER_ALIAS_SET.
3077         * gimplify.c (find_single_pointer_decl_1): Remove.
3078         (find_single_pointer_decl): Likewise.
3079         (internal_get_tmp_var): Remove restrict handling.
3080         (gimple_regimplify_operands): Likewise.
3081         * omp-low.c (expand_omp_atomic_pipeline): Do not set
3082         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
3083         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
3084         * tree.c (restrict_base_for_decl): Remove.
3085         (init_ttree): Do not allocate it.
3086         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
3087         LABEL_DECL_UID for label decls.
3088         (copy_node_stat): Do not copy restrict information.
3089         (decl_restrict_base_lookup): Remove.
3090         (decl_restrict_base_insert): Likewise.
3091         (print_restrict_base_statistics): Likewise.
3092         (dump_tree_statistics): Do not call print_restrict_base_statistics.
3093         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
3094         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
3095         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
3096         (LABEL_DECL_UID): Adjust.
3097         (DECL_BASED_ON_RESTRICT_P): Remove.
3098         (DECL_GET_RESTRICT_BASE): Likewise.
3099         (SET_DECL_RESTRICT_BASE): Likewise.
3100         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
3101
3102         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
3103         instead of DECL_POINTER_ALIAS_SET.
3104         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3105         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
3106         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
3107
3108 2009-06-29  Richard Guenther  <rguenther@suse.de>
3109
3110         PR tree-optimization/40579
3111         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
3112         the IL to simplify has constants that overflowed.
3113
3114 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
3115
3116         PR tree-optimization/40550
3117         * tree-vect-generic.c (expand_vector_operations_1): Compute in
3118         vector_compute_type only when the size of vector_compute_type is
3119         less than the size of type.
3120
3121 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
3122
3123         * fold-const.c (contains_label_1): Fix comments.
3124         (contains_label_p): Do not walk trees multiple time.
3125
3126 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3127
3128         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
3129         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
3130         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
3131         ix86_fp_comparison_operator.
3132         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
3133         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
3134         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
3135         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
3136         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
3137         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
3138         (related splits): Change predicate to ix86_fp_comparison_operator.
3139         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
3140         instead of ix86_fp_comparison_codes.
3141         (ix86_trivial_fp_comparison_operator,
3142         ix86_fp_comparison_operator): New.
3143         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
3144         (ix86_expand_compare): Eliminate last two parameters.
3145         (ix86_fp_jump_nontrivial_p): Kill.
3146         * config/i386/i386.c (put_condition_code): Eliminate call to
3147         ix86_fp_comparison_codes and subsequent assertion.
3148         (ix86_fp_comparison_codes): Eliminate.
3149         (ix86_fp_swap_condition): New.
3150         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
3151         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
3152         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
3153         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
3154         and ix86_fp_swap_condition.
3155         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
3156         Use ix86_fp_comparison_strategy.
3157         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
3158         (ix86_fp_jump_nontrivial_p): Eliminate.
3159         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
3160         call to ix86_expand_compare.
3161         (ix86_split_fp_branch, ix86_expand_setcc,
3162         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
3163         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
3164
3165 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3166
3167         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
3168         related to jump_clobbers.
3169         * config/arm/arm.md (conds): Remove jump_clob case.
3170         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
3171         splits): Change comparison_operator to arm_comparison_operator.
3172         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
3173         Eliminate.
3174
3175 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3176
3177         * dojump.c (do_compare_rtx_and_jump): Try swapping the
3178         condition for floating point modes.
3179         * expmed.c (emit_store_flag_1): Move here a bigger part
3180         of emit_store_flag.
3181         (emit_store_flag): Try swapping the condition for floating point
3182         modes.
3183         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
3184
3185 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3186
3187         * expr.c (expand_expr_real_1): Just use do_store_flag.
3188         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
3189         emit_store_flag_force.
3190         * expmed.c (emit_store_flag_force): Copy here trick
3191         previously in expand_expr_real_1.  Try reversing the comparison.
3192         (emit_store_flag_1): Work if target is NULL.
3193         (emit_store_flag): Work if target is NULL, using the result mode
3194         from the comparison.  Use split_comparison, restructure final part
3195         to simplify conditionals.
3196
3197 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3198
3199         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
3200         * dojump.c (do_jump): Change handling of floating-point
3201         ops to use just do_compare_and_jump.
3202         (split_comparison): New.
3203         (do_compare_rtx_and_jump): Add here logic coming previously
3204         in do_jump, using split_comparison.
3205
3206 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
3207
3208         PR target/40489
3209         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
3210
3211 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3212
3213         * tree-ssa-alias.c: Fix unintentional commit.
3214
3215 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3216
3217         * passes.c (execute_one_pass): Fix unintentional commit.
3218
3219 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3220
3221         * df-problems.c (df_set_seen, df_unset_seen): Delete.
3222         (df_rd_local_compute, df_md_local_compute): Inline them.
3223
3224         (df_md_scratch): New.
3225         (df_md_alloc, df_md_free): Allocate/free it.
3226         (df_md_local_compute): Only include live registers in init.
3227         (df_md_transfer_function): Prune the in-set computed by
3228         the confluence function, and the gen-set too.
3229
3230 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3231
3232         PR rtl-optimization/26854
3233         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
3234         * df-problems.c (df_rd_add_problem): Fix comment.
3235         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
3236         df_md_simulate_artificial_defs_at_top,
3237         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
3238         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
3239         df_md_transfer_function, df_md_init, df_md_confluence_0,
3240         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
3241         problem_MD, df_md_add_problem): New.
3242         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
3243         df_md_get_bb_info): New.
3244         (DF_LAST_PROBLEM_PLUS1): Adjust.
3245
3246         * Makefile.in (fwprop.o): Include domwalk.h.
3247         * fwprop.c: Include domwalk.h.
3248         (reg_defs, reg_defs_stack): New.
3249         (bitmap_only_bit_between): Remove.
3250         (process_defs): New.
3251         (process_uses): Use reg_defs and local_md instead of
3252         bitmap_only_bit_between and local_rd.
3253         (single_def_use_enter_block): New, from build_single_def_use_links.
3254         (single_def_use_leave_block): New.
3255         (build_single_def_use_links): Remove code moved to
3256         single_def_use_enter_block, invoke domwalk.
3257         (use_killed_between): Adjust comment.
3258
3259 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3260
3261         * bitmap.h (bitmap_ior_and_into): New.
3262         * bitmap.c (bitmap_ior_and_into): New.
3263
3264 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3265
3266         * domwalk.h (struct dom_walk_data): Remove all callbacks except
3267         before_dom_children_before_stmts and after_dom_children_after_stmts.
3268         Rename the two remaining callbacks to just before_dom_children and 
3269         after_dom_children. Remove other GIMPLE statement walking bits.
3270         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
3271         * graphite.c: Do not include domwalk.h.
3272         * tree-into-ssa.c (interesting_blocks): New global.
3273         (struct mark_def_sites_global_data): Remove it and names_to_rename.
3274         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
3275         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
3276         now that they're not domwalk callbacks.
3277         (rewrite_initialize_block): Rename to...
3278         (rewrite_enter_block): ... this, place after called functions.  Test
3279         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
3280         (rewrite_finalize_block): Rename to...
3281         (rewrite_leave_block): ... this, place after called functions.
3282         (rewrite_update_init_block): Rename to...
3283         (rewrite_update_enter_block): ... this, place after called functions.
3284         Test interesting_blocks, call rewrite_update_stmt and 
3285         rewrite_update_phi_arguments.
3286         (rewrite_update_fini_block): Rename to...
3287         (rewrite_leave_block): ... this, place after called functions.
3288         (rewrite_blocks): Remove last argument, simplify initialization of
3289         walk_data.
3290         (mark_def_sites_initialize_block): Rename to...
3291         (mark_def_sites_block): ... this, call mark_def_sites.
3292         (mark_def_sites_blocks): Remove argument, simplify initialization of
3293         walk_data.
3294         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
3295         (update_ssa): Likewise.
3296         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
3297         callback.
3298         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
3299         (dom_opt_initialize_block): Rename to...
3300         (dom_opt_enter_block): ... this, place after called functions.  Walk
3301         statements here, inline propagate_to_outgoing_edges.
3302         (dom_opt_finalize_block): Rename to...
3303         (dom_opt_leave_block): ... this, place after called functions.
3304         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
3305         domwalk callback.
3306         (dse_enter_block, dse_record_phi): New.
3307         (dse_record_phis): Delete.
3308         (dse_finalize_block): Rename to...
3309         (dse_leave_block): ... this.
3310         (tree_ssa_dse): Simplify initialization of walk_data.
3311         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
3312         Adjust initialization of walk_data.
3313         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
3314         * tree-ssa-loop-phiopt.c (get_non_trapping):
3315         Adjust initialization of walk_data.
3316         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
3317         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
3318         it's not a domwalk callback.
3319         (uncprop_initialize_block): Rename to...
3320         (dse_enter_block): ... this, call uncprop_into_successor_phis.
3321         (dse_finalize_block): Rename to...
3322         (dse_leave_block): ... this.
3323         (tree_ssa_uncprop): Simplify initialization of walk_data.
3324         * Makefile.in: Adjust dependencies.
3325
3326 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
3327
3328         * arm.md (casesi): Fix test for Thumb1.
3329         (thumb1_casesi_internal_pic): Likewise.
3330         (thumb1_casesi_dispatch): Likewise.
3331
3332 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
3333
3334         * config/arm/arm-cores.def: Added core cortex-m0.
3335         * config/arm/arm-tune.md: Regenerated.
3336         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
3337
3338 2009-06-26  DJ Delorie  <dj@redhat.com>
3339
3340         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
3341
3342         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
3343         the scheduler doesn't tag jump insns.
3344
3345 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3346
3347         * c-decl.c (merge_decls): Re-indent.
3348
3349 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
3350
3351         PR c/39902
3352         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
3353         Special-case decimal float constants.
3354
3355 2009-06-26  Richard Henderson  <rth@redhat.com>
3356
3357         * function.h (struct function): Add cannot_be_copied_reason,
3358         and cannot_be_copied_set.
3359         * tree-inline.c (has_label_address_in_static_1): Rename from
3360         inline_forbidden_p_2; don't set inline_forbidden_reason here.
3361         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
3362         don't set inline_forbidden_reason.
3363         (copy_forbidden): New function, split out of inline_forbidden_p.
3364         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
3365         (inline_forbidden_p): Use copy_forbidden.
3366         (tree_versionable_function_p): Likewise.
3367         (inlinable_function_p): Merge into tree_inlinable_function_p.
3368         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
3369         * ipa-cp.c (ipcp_versionable_function_p): New function.
3370         (ipcp_cloning_candidate_p): Use it.
3371         (ipcp_node_modifiable_p): Likewise.
3372
3373 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
3374
3375         * builtins.c (expand_builtin_alloca): Handle builtin alloca
3376         that is marked not to be inlined. Remove flag_mudflap use.
3377         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
3378         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
3379
3380 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
3381
3382         PR bootstrap/40338
3383         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
3384         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
3385
3386 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
3387
3388         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
3389         shared libgcc.
3390         (__mingwthr_remove_key_dtor): Likewise.
3391
3392 2009-06-26  Richard Guenther  <rguenther@suse.de>
3393
3394         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
3395
3396 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3397
3398         PR middle-end/40525
3399         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
3400         try the non-cond_exec path also.
3401
3402 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3403
3404         PR target/40468
3405         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
3406         (output_cbranch): Use new functions.
3407         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
3408         Likewise.
3409
3410 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3411             Pat Haugen  <pthaugen@us.ibm.com>
3412             Revital Eres <ERES@il.ibm.com>
3413
3414         * config/rs6000/rs6000.c (print_operand): Correct lossage message
3415         for %c error.  Add %x support to print VSX registers as a unified
3416         register set, instead of separate float and altivec registers.
3417         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
3418         %y case, and add support for VSX pre-modify addresses.
3419         (output_toc): Add assert for CONST containing an integer constant
3420         in the PLUS case.
3421         (rs6000_adjust_cost): Add POWER7 support.
3422         (insn_must_be_first_in_group): Ditto.
3423         (insn_must_be_last_in_group): Ditto.
3424         (rs6000_emit_popcount): Ditto.
3425         (rs6000_vector_mode_supported_p): Ditto.
3426
3427         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
3428         Change some of the functions called by macros to being called
3429         through a pointer, so debug functions can be inserted if
3430         -mdebug=addr or -mdebug=cost. 
3431         (rs6000_preferred_reload_class_ptr): Ditto.
3432         (rs6000_secondary_reload_class_ptr): Ditto.
3433         (rs6000_secondary_memory_needed_ptr): Ditto.
3434         (rs6000_cannot_change_mode_class_ptr): Ditto.
3435         (rs6000_secondary_reload_inner): Ditto.
3436         (rs6000_legitimize_reload_address): Ditto.
3437         (rs6000_legitimize_reload_address_ptr): Ditto.
3438         (rs6000_mode_dependent_address): Ditto.
3439         (rs6000_mode_dependent_address_ptr): Ditto.
3440
3441         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
3442         function to return true if the mode allows reg + integer
3443         addresses.
3444         (virtual_stack_registers_memory_p): New function to return true if
3445         the address refers to a virtual stack register.
3446         (rs6000_legitimate_offset_address_p): Move code to say whether a
3447         mode supports reg+int addressing to reg_offset_addressing_ok_p and
3448         call it.
3449         (rs6000_legitimate_address_p): Add checks for modes that only can
3450         do reg+reg addressing.  Start adding VSX support.
3451         (rs6000_legitimize_reload_address): Ditto.
3452         (rs6000_legitimize_address): Ditto.
3453         (rs6000_debug_legitimate_address_p): New debug functions for
3454         -mdebug=addr and -mdebug=cost.
3455         (rs6000_debug_rtx_costs): Ditto.
3456         (rs6000_debug_address_costs): Ditto.
3457         (rs6000_debug_adjust_cost): Ditto.
3458         (rs6000_debug_legitimize_address): Ditto.
3459         (rs6000_legitimize_reload_address_ptr): Point to call normal
3460         function or debug function.  Make functions called via pointer
3461         static.
3462         (rs6000_mode_dependent_address_ptr): Ditto.
3463         (rs6000_secondary_reload_class_ptr): Ditto.
3464         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
3465         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
3466         into a friendlier error.
3467         (rs6000_init_builtins): Add initial VSX support.
3468         (rs6000_adjust_cost): Fix some spacing issues.
3469
3470         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
3471         (REG_CLASS_NAMES): Ditto.
3472         (REG_CLASS_CONTENTS): Ditto.
3473         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
3474         pointer, to add -mdebug=addr support.
3475         (CANNOT_CHANGE_MODE_CLASS): Ditto.
3476         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
3477         -mdebug=addr support.
3478         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
3479         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
3480         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
3481
3482         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
3483         16-bit values.
3484         (bswapsi*): Set attribute types for load/store.  Add combiner
3485         patterns to eliminate zero extend on 64-bit.
3486         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
3487         stdbrx if the hardware supports those instructions.
3488
3489 2009-06-25  Ian Lance Taylor  <iant@google.com>
3490
3491         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
3492         (Link Options): Document -static-libstdc++.
3493
3494 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3495
3496         PR target/38731
3497         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
3498         DATA_ALIGNMENT instead.
3499
3500 2009-06-25  Richard Guenther  <rguenther@suse.de>
3501
3502         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
3503         indirect references against the callused/escaped solutions.
3504         (call_may_clobber_ref_p_1): Likewise.
3505
3506 2009-06-25  Martin Jambor  <mjambor@suse.cz>
3507
3508         PR tree-optimization/40493
3509         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
3510         (enum unscalarized_data_handling): New type.
3511         (handle_unscalarized_data_in_subtree): Return what has been done.
3512         (load_assign_lhs_subreplacements): Handle left flushes differently.
3513         (sra_modify_assign): Use unscalarized_data_handling, simplified
3514         condition determining whether to remove the statement.
3515
3516 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3517
3518         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
3519         excerpt - @ should be doubled for texinfo.
3520
3521 2009-06-24  Ian Lance Taylor  <iant@google.com>
3522
3523         * config/arc/arc.c: Include "df.h".
3524         (arc_attribute_table): Make static.  Move higher in file.
3525         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
3526         (output_shift): Initialize n later to avoid warning.
3527         * config/arm/arm.c (arm_attribute_table): Make static.  Move
3528         higher in file.
3529         * config/avr/avr.c (avr_attribute_table): Make static.  Move
3530         higher in file.
3531         (reg_class_tab): Change array type from int to enum reg_class.
3532         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
3533         LABEL_REF.
3534         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
3535         (lshrhi3_out): Likewise.
3536         (class_likely_spilled_p): Change return type to bool.
3537         (avr_rtx_costs): Use local code variable with enum type.
3538         * config/avr/avr.md (movmemhi): Use add_reg_note.
3539         (andhi3, andsi3): Don't use AS2 with "and".
3540         (iorhi3, iorsi3): Don't use AS2 with "or".
3541         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
3542         * config/crx/crx.c: Include "df.h".
3543         (crx_attribute_table): Make static.
3544         * config/m32r/m32r.c: Include "df.h".
3545         (m32r_attribute_table): Make static.  Move higher in file.
3546         (pop): Use add_reg_note.
3547         (block_move_call): Change 0 to LCT_NORMAL in function call.
3548         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
3549         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
3550         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
3551         declare, not just when TREE_CODE is defined.
3552         * config/m68hc11/m68hc11.c: Include "expr.h".
3553         (m68hc11_attribute_table): Make static.  Move higher in file.
3554         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
3555         function call.
3556         (m68hc11_register_indirect_p): Likewise.
3557         (m68hc11_function_arg_padding): Change return type to enum
3558         direction.
3559         (emit_move_after_reload): Use add_reg_note.
3560         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
3561         (m68hc11_split_logical): Likewise.
3562         (m68hc11_rtx_costs): Add local code_and outer_code variables with
3563         enum type.
3564         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
3565         to VOIDmode in function call.
3566         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
3567         tree is defined.
3568         (m68hc11_split_logical): Update declaration.
3569         (m68hc11_function_arg_padding): Update declaration.
3570         * config/mcore/mcore.c (regno_reg_class): Change form array of int
3571         to array of enum reg_class.
3572         (mcore_attribute_table): Make static.  Move higher in file.
3573         (mcore_rtx_costs): Add cast to enum type.
3574         * config/mcore/mcore.h (regno_reg_class): Update declaration.
3575         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
3576         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
3577         in file.
3578         * config/sh/predicates.md (trapping_target_operand): Rename and to
3579         and_expr.
3580         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
3581         higher in file.
3582         * config/spu/spu.c (spu_attribute_table): Make static.  Move
3583         higher in file.
3584         * config/v850/v850.c (v850_attribute_table): Make static.  Move
3585         higher in file.
3586         (v850_rtx_costs): Use local code with enum type.
3587         (expand_epilogue): Add cast.
3588         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
3589
3590 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
3591
3592         PR target/40515
3593         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
3594         -m2a-single-only and -m2a-nofpu.
3595         * config/sh/sh.opt: Document m2a generates FPU code.  
3596
3597 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
3598
3599         * defaults.h (CAN_ELIMINATE): Provide default.
3600         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
3601         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
3602         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
3603         * config/spu/spu.h (CAN_ELIMINATE): Delete.
3604         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
3605         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
3606         * config/cris/cris.h (CAN_ELIMINATE): Delete.
3607         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
3608         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
3609         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
3610
3611 2009-06-24  DJ Delorie  <dj@redhat.com>
3612
3613         * mep-ext-cop.cpu: Fix copyright notice.
3614         * mep-default: Fix copyright notice.
3615         * mep-core: Fix copyright notice.
3616         * mep: Fix copyright notice.
3617         * mep-ivc2: Fix copyright notice.
3618         * mep-c5: Fix copyright notice.
3619
3620 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
3621
3622         * doc/contrib.texi (Contributors): 
3623
3624 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3625         
3626         PR middle-end/40501
3627         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
3628         src and dst operands if necessary.
3629
3630 2009-06-23  DJ Delorie  <dj@redhat.com>
3631
3632         Add MeP port.
3633         * config.gcc: Add mep support.
3634         * recog.c: Resurrect validate_replace_rtx_subexp().
3635         * recog.h: Likewise.
3636         * config/mep/: Add new port:
3637         * config/mep/constraints.md: New file.
3638         * config/mep/default.h: New file.
3639         * config/mep/intrinsics.h: New file.
3640         * config/mep/intrinsics.md: New file.
3641         * config/mep/ivc2-template.h: New file.
3642         * config/mep/mep-c5.cpu: New file.
3643         * config/mep/mep-core.cpu: New file.
3644         * config/mep/mep-default.cpu: New file.
3645         * config/mep/mep-ext-cop.cpu: New file.
3646         * config/mep/mep-intrin.h: New file.
3647         * config/mep/mep-ivc2.cpu: New file.
3648         * config/mep/mep-lib1.asm: New file.
3649         * config/mep/mep-lib2.c: New file.
3650         * config/mep/mep-pragma.c: New file.
3651         * config/mep/mep-protos.h: New file.
3652         * config/mep/mep-tramp.c: New file.
3653         * config/mep/mep.c: New file.
3654         * config/mep/mep.cpu: New file.
3655         * config/mep/mep.h: New file.
3656         * config/mep/mep.md: New file.
3657         * config/mep/mep.opt: New file.
3658         * config/mep/predicates.md: New file.
3659         * config/mep/t-mep: New file.
3660
3661 2009-06-23  Ian Lance Taylor  <iant@google.com>
3662
3663         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
3664         from loose_warn into c_loose_warn and from strict_warn into
3665         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
3666         --enable-build-with-cxx.  Set and substitute
3667         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
3668         * Makefile.in (CXXFLAGS): New variable.
3669         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
3670         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
3671         the default is the same as $(STRICT_WARN).
3672         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
3673         (CXX): New variable.
3674         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
3675         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
3676         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
3677         (HOST_LIBS): New variable.
3678         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
3679         (ALL_CXXFLAGS): New variable.
3680         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
3681         * doc/install.texi (Configuration): Document
3682         --enable-build-with-cxx, --with-stage1-ldflags,
3683         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
3684         * configure: Rebuild.
3685
3686 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3687
3688         * config/arm/arm.c (arm_override_options): Fix braces and formatting
3689         from previous commit.
3690
3691 2009-06-23  Ian Lance Taylor  <iant@google.com>
3692
3693         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
3694
3695 2009-06-23  Ian Lance Taylor  <iant@google.com>
3696
3697         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
3698         with ATTRIBUTE_UNUSED.
3699
3700 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3701             Pat Haugen  <pthaugen@us.ibm.com>
3702             Revital Eres  <eres@il.ibm.com>
3703
3704         * config.in (HAVE_AS_POPCNTD): Add default definition.
3705         (HAVE_AS_LWSYNC): Ditto.
3706
3707         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
3708         release number.
3709         (gcc_cv_as_powerpc_cmpb): Ditto.
3710         (gcc_cv_as_powerpc_dfp): Ditto.
3711         (gcc_cv_as_powerpc_vsx): Ditto.
3712         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
3713         supporting the popcntd/lwsync instructions.
3714         (gcc_cv_as_powerpc_lwsync): Ditto.
3715         * configure: Regenerate.
3716
3717         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
3718         -mcpu=native and -mcpu=power7.
3719         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
3720
3721         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
3722         a variable instead of a mask to reduce the number of mask bits.
3723         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3724         (-mbit-word): Ditto.
3725         (-mregnames): Ditto.
3726         * config/rs6000/rs6000.opt (-mupdate): Ditto.
3727         (-mfused-madd): Ditto.
3728
3729         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
3730         2.06 instructions.
3731         (-mvsx): New switch for VSX instructions.
3732         (-misel): Move from a variable to a mask to allow it to be set by
3733         -mcpu=.
3734
3735         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
3736         function declaration to an array declaration.
3737         (rs6000_hard_regno_nregs): New external array declaration.
3738
3739         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
3740         files included by rs6000.md.
3741
3742         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3743         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
3744
3745         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
3746         a target mask.
3747         (rs6000_debug_reg): New -mdebug= variables.
3748         (rs6000_debug_addr): Ditto.
3749         (rs6000_debug_cost): Ditto.
3750         (rs6000_pmode): New variable to hold Pmode.
3751         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
3752         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
3753         calculated at compiler start.
3754         (rs6000_hard_regno_nregs): Change function to an array which holds
3755         HARD_REGNO_NREGS calculated at compiler start.
3756         (rs6000_explicit_options): Delete isel field.
3757         (rs6000_vector_unit): New array to hold which vector unit
3758         supports arithmetic options for a given type.
3759         (rs6000_vector_mem): New array to hold which vector unit supports
3760         memory reference operations for a given type.
3761         (rs6000_vector_align): New array to given the alignment of each
3762         vector type.
3763         (power7_cost): New basic costs for power7.
3764         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
3765         (rs6000_hard_regno_nregs_internal): New function, moved from
3766         HARD_REGNO_NREGS, to calculate the number of registers each hard
3767         register takes for each type.
3768         (rs6000_debug_reg_print): New function for -mdebug=reg support.
3769         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
3770         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
3771         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
3772         unit information here so it is calculated once at compiler startup
3773         time.
3774         (rs6000_override_options): Make -misel a target mask.  Add more
3775         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
3776         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
3777         -mdebug=cost.
3778         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
3779         (rs6000_handle_option): Move -misel from variable to target mask.
3780         (rs6000_builtin_mask_for_load): Add VSX support.
3781         (rs6000_conditional_register_usage): Ditto.
3782         (USE_ALTIVEC_FOR_ARG_P): Ditto.
3783         (function_arg_boundary): Ditto.
3784         (rs6000_expand_builtin): Ditto.
3785         (def_builtin): Make abort message a little friendlier.
3786         (rs6000_emit_int_cmove): Add support for 64-bit isel.
3787
3788         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
3789         assembler support the popcntd instruction instead of a vsx
3790         instruction to enable power7 support.
3791         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
3792         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
3793         option to the assembler if -mcpu=native.
3794         (ASM_CPU_NATIVE_SPEC): Ditto.
3795         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
3796         ISA 2.06 features.
3797         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
3798         the lwsync instruction.
3799         (enum processor_type): Add PROCESSOR_POWER7.
3800         (rs6000_debug_reg): New -mdebug= options.
3801         (rs6000_debug_addr): Ditto.
3802         (rs6000_debug_cost): Ditto.
3803         (rs6000_isel): Delete.
3804         (enum rs6000_vector): New enum to say what vector unit we have.
3805         (VECTOR_UNIT_*): New macros to say which vector unit has
3806         arithmetic operations for a given type.
3807         (VECTOR_MEM_*): New macros to say which vector unit has memory
3808         operations for a given type.
3809         (TARGET_LDBRX): Whether the machine supports the ldbrx
3810         instruction.
3811         (TARGET_ISEL): Delete, -misel moved to be a mask.
3812         (TARGET_ISEL64): New macro for 64-bit isel support.
3813         (UNITS_PER_VSX_WORD): New macro.
3814         (POINTER_SIZE): Move to be an external variable, rather than
3815         calculating whether we are generating 32 ot 64-bit code.
3816         (Pmode): Ditto.
3817         (STACK_BOUNDARY): Add VSX support.
3818         (LOCAL_ALIGNMENT): Ditto.
3819         (SLOW_UNALIGNED_ACCESS): Ditto.
3820         (VSX_REGNO_P): New macro for VSX support.
3821         (VFLOAT_REGNO_P): Ditto.
3822         (VINT_REGNO_P): Ditto.
3823         (VLOGICAL_REGNO_P): Ditto.
3824         (VSX_VECTOR_MODE): Ditto.
3825         (VSX_SCALAR_MODE): Ditto.
3826         (VSX_MODE): Ditto.
3827         (VSX_MOVE_MODE): Ditto.
3828         (VSX_REG_CLASS_P): Ditto.
3829         (HARD_REGNO_NREGS): Instead of calling a function, use an array
3830         lookup.
3831         (UNITS_PER_SIMD_WORD): Add VSX support.
3832         (MODES_TIEABLE_P): Ditto.
3833         (STARTING_FRAME_OFFSET): Ditto.
3834         (STACK_DYNAMIC_OFFSET): Ditto.
3835         (EPILOGUE_USES): Ditto.
3836         (REGNO_REG_CLASS): Move to array lookup.
3837         (CLASS_MAX_NREGS): Ditto.
3838         (rs6000_vector_reg_class): Add declaration.
3839         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
3840         overlap with the floating point and Altivec registers.
3841
3842         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
3843
3844         * config/rs6000/driver-rs6000.c (asm_names): New static array to
3845         give the appropriate asm switches if -mcpu=native.
3846         (host_detect_local_cpu): Add support for "asm".
3847         (host_detect_local_cpu): Follow GNU code guidelines for name.
3848
3849         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
3850         -mbit-word to a variable instead of being a target mask.
3851
3852         * config/rs6000/sync.md (lwsync): If the assembler supports it,
3853         emit the lwsync instruction instead of emitting the instruction as
3854         an integer constant.
3855
3856         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
3857         fixuns_trundfsi2, move expander into rs6000.md.
3858
3859         * config/rs6000/rs6000.md (cpu): Add power7.
3860         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
3861         (logical predicate patterns): Change the single instruction
3862         primitives that set CR0 to be fast_compare instead of compare.
3863         (norsi*): Ditto.
3864         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
3865         (popcntddi2): Ditto.
3866         (popcount<mode>): Ditto.
3867         (floating multiply/add insns): Name the floating point
3868         multiply/add insns.
3869         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
3870         (isel_unsigned_<mode>): Ditto.
3871         (fixuns_trundfsi2): Move expander here from spe.md.
3872         (smindi3): Define if we have -misel on 64-bit systems.
3873         (smaxdi3): Ditto.
3874         (umindi3): Ditto.
3875         (umaxdi3): Ditto.
3876
3877 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
3878
3879         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
3880         extra_objs.
3881         * config/avr/avr.c (avr_current_device): New variable.
3882         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
3883         (avr_arch, mcu_type_s): Move to avr.h.
3884         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
3885         default_data_section_start fields.
3886         (avr_arch): Moved from avr.c.
3887         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
3888         library_name fields.
3889         (avr_current_device, avr_mcu_types, avr_arch_types,
3890         avr_device_to_arch, avr_device_to_data_start,
3891         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
3892         (EXTRA_SPEC_FUNCTIONS): Define.
3893         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
3894         options mapping. Use device_to_arch and device_to_data_start insted.
3895         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
3896         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
3897         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
3898         * config/avr/driver-avr.c: New file.
3899         * config/avr/avr-devices.c: New file.
3900
3901 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
3902
3903         * var-tracking.c (unshare_variable): Force initialized to
3904         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
3905         (set_variable_part): Likewise.
3906         (struct variable_union_info): Remove pos_src field.
3907         (vui_vec, vui_allocated): New variables.
3908         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
3909         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
3910         == 1 use a simpler sorting algorithm.  Compute pos field right
3911         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
3912         Avoid quadratic comparison if !flag_var_tracking_uninit.
3913         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
3914         unshare_variable unconditionally.   
3915         (dataflow_set_different_2): Removed.
3916         (dataflow_set_different): Don't traverse second hash table.
3917         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
3918         unconditionally to var_reg_set or var_mem_set.
3919         (emit_notes_in_bb): Likewise.
3920         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
3921         unshare_variable.
3922         (emit_note_insn_var_location): Don't set initialized to
3923         VAR_INIT_STATUS_INITIALIZED early.
3924         (vt_finalize): Free vui_vec if needed, clear vui_vec and
3925         vui_allocated.
3926         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
3927
3928         * tree-object-size.c (addr_object_size): Instead of checking
3929         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
3930         are no FIELD_DECLs following it.
3931
3932 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
3933
3934         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
3935         order to match bswaps with signed source operands.
3936
3937 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3938
3939         * sdbout.c (sdbout_one_type): Fix braces in switch.
3940
3941 2009-06-23  Richard Guenther  <rguenther@suse.de>
3942
3943         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
3944         member.
3945         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
3946         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
3947         var_callused, callused_tree, var_storedanything, storedanything_tree,
3948         var_integer, integer_tree): Remove global variables.
3949         (new_var_info): Do not pass new id, append the new var to the
3950         global variable vector.
3951         (do_ds_constraint): Use is_global_var member of the variable-info.
3952         (new_scalar_tmp_constraint_exp): Adjust.
3953         (create_function_info_for): Likewise.
3954         (create_variable_info_for): Likewise.
3955         (find_what_var_points_to): Remove dead code.
3956         (init_base_vars): Simplify.
3957         (compute_points_to_sets): Adjust.
3958
3959 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3960
3961         * combine.c (try_combine): Dump information about the insns we're
3962         combining.
3963
3964 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3965
3966         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
3967         check when calling force_to_mode on TRUNCATE's operand.
3968
3969 2009-06-22  Ian Lance Taylor  <iant@google.com>
3970
3971         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
3972
3973 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3974
3975         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
3976
3977 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3978
3979         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
3980         override library linkage flags such as -static-libgcc or
3981         -shared-libgcc.
3982
3983 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3984
3985         * config/m68k/m68k-devices.def: Add line for MCF5221x.
3986
3987 2009-06-22  Ian Lance Taylor  <iant@google.com>
3988
3989         * config/linux.opt: Put mglibc ahead of muclibc.
3990
3991         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
3992         for duplicate decls.
3993
3994 2009-06-22  Matthias Klose  <doko@ubuntu.com>
3995
3996         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
3997
3998 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3999
4000         PR objc/28050
4001         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
4002         instead of NULL if a parser error occurs.
4003
4004 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4005
4006         * dwarf2out.c (dwarf2_debug_hooks): Initialize
4007         non-DWARF2_DEBUGGING_INFO version.
4008
4009 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
4010
4011         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
4012         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4013
4014         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
4015         (LIBGCC2_TF_CEXT): Define.
4016         (TF_SIZE): Define.
4017
4018 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4019
4020         PR target/40463
4021         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
4022
4023 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4024
4025         * config/arm/arm.c (arm_override_options): Disable
4026         -mcaller-super-interworking and -mcallee-super-interworking.
4027         * doc/invoke.texi (ARM Options): Document this.
4028
4029 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
4030
4031         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
4032         * config/arm/constraints.md (j): New constraint for movw operands.
4033         (N): Remove thumb2 meaning.
4034         * config/arm/arm.md (*arm_movw): Delete.
4035         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
4036         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
4037         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
4038
4039 2009-06-22  Martin Jambor  <mjambor@suse.cz>
4040
4041         PR tree-optimization/40492
4042         * tree-sra.c (sra_modify_assign): Pass zero offsets to
4043         build_ref_for_offset.
4044
4045 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
4046
4047         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
4048         JUMP_TABLE_DATA_P predicates where applicable.
4049         * auto-inc-dec.c: Ditto.
4050         * builtins.c: Ditto.
4051         * caller-save.c: Ditto.
4052         * calls.c: Ditto.
4053         * cfgcleanup.c: Ditto.
4054         * cfglayout.c: Ditto.
4055         * cfgrtl.c: Ditto.
4056         * combine.c: Ditto.
4057         * combine-stack-adj.c: Ditto.
4058         * cse.c: Ditto.
4059         * cselib.c: Ditto.
4060         * dbxout.c: Ditto.
4061         * df-scan.c: Ditto.
4062         * dse.c: Ditto.
4063         * dwarf2asm.c: Ditto.
4064         * dwarf2out.c: Ditto.
4065         * emit-rtl.c: Ditto.
4066         * except.c: Ditto.
4067         * explow.c: Ditto.
4068         * expmed.c: Ditto.
4069         * expr.c: Ditto.
4070         * final.c: Ditto.
4071         * function.c: Ditto.
4072         * fwprop.c: Ditto.
4073         * gcse.c: Ditto.
4074         * genpreds.c: Ditto.
4075         * genrecog.c: Ditto.
4076         * ifcvt.c: Ditto.
4077         * ira-costs.c: Ditto.
4078         * ira-lives.c: Ditto.
4079         * jump.c: Ditto.
4080         * loop-iv.c: Ditto.
4081         * lower-subreg.c: Ditto.
4082         * modulo-sched.c: Ditto.
4083         * optabs.c: Ditto.
4084         * postreload.c: Ditto.
4085         * print-rtl.c: Ditto.
4086         * recog.c: Ditto.
4087         * reginfo.c: Ditto.
4088         * regmove.c: Ditto.
4089         * reload1.c: Ditto.
4090         * reload.c: Ditto.
4091         * reorg.c: Ditto.
4092         * rtlanal.c: Ditto.
4093         * rtl.c: Ditto.
4094         * sched-vis.c: Ditto.
4095         * sdbout.c: Ditto.
4096         * sel-sched-ir.c: Ditto.
4097         * simplify-rtx.c: Ditto.
4098         * targhooks.c: Ditto.
4099         * var-tracking.c: Ditto.
4100         * vmsdbgout.c: Ditto.
4101
4102 2009-06-22  Matthias Klose  <doko@ubuntu.com>
4103
4104         * Makefile.in (install-plugin): Always use DESTDIR.
4105
4106 2009-06-22  Olivier Hainque  <hainque@adacore.com>
4107         
4108         * config/pa/pa.c (output_call): Don't optimize post call jumps
4109         into return address adjustments if the call may throw.
4110
4111 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
4112
4113         * arm.c (thumb1_output_casesi): New function.
4114         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
4115         optimizing for size or PIC.
4116         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
4117         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
4118         (casesi): Handle Thumb-1 when optimizing for size or PIC.
4119         (thumb1_casesi_internal_pic): New expand rule.
4120         (thumb1_casesi_dispatch): New pattern.
4121         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
4122         thumb-1 mode.
4123         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
4124         in the text seciton when PIC or optimizing for size.
4125         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4126         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
4127         preservation properties of code.
4128         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
4129         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
4130         (__gnu_thumb1_case_si): New function.
4131         * t-arm (LIB1ASMSRC): Define here.
4132         (LIB1ASMFUNCS): Add some common functions.
4133         * t-arm-elf (LIB1ASMSRC): Delete.
4134         (LIB1ASMFUNCS): Append to existing set.
4135         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4136         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4137         * t-symbian (LIB1ASMFUNCS): Likewise.
4138         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4139         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4140
4141 2009-06-21  Richard Guenther  <rguenther@suse.de>
4142
4143         PR tree-optimization/38729
4144         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
4145         to loops with a single exit if -fno-expensive-optimizations.
4146
4147 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
4148
4149         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
4150         (dataflow_set): Change vars type from htab_t to shared_hash.
4151         (shared_hash_pool, empty_shared_hash): New variables.
4152         (vars_clear): Removed.
4153         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
4154         shared_hash_find_slot_unshare, shared_hash_find_slot,
4155         shared_hash_find_slot_noinsert, shared_hash_find): New
4156         static inlines.
4157         (shared_hash_unshare, shared_hash_destroy): New functions.
4158         (unshare_variable): Unshare set->vars if shared, use
4159         shared_hash_htab.
4160         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
4161         (get_init_value, find_src_set_src, dump_dataflow_set,
4162         clobber_variable_part, emit_notes_for_differences): Use
4163         shared_hash_htab.
4164         (dataflow_set_init): Remove second argument, set vars to
4165         empty_shared_hash instead of creating a new htab.
4166         (dataflow_set_clear): Call shared_hash_destroy and set vars
4167         to empty_shared_hash instead of calling vars_clear.
4168         (dataflow_set_copy): Don't call vars_copy, instead just share
4169         the src htab with dst.
4170         (variable_union): Use shared_hash_*, use initially NO_INSERT
4171         lookup if set->vars is shared.  Don't keep slot cleared before
4172         calling unshare_variable.  Unshare set->vars if needed.
4173         Even ->refcount == 1 vars must be unshared if set->vars is shared
4174         and var needs to be modified.
4175         (variable_canonicalize): New function.
4176         (dataflow_set_union): If dst->vars is empty, just share src->vars
4177         with dst->vars and traverse with variable_canonicalize to canonicalize
4178         and unshare what is needed.
4179         (dataflow_set_different): If old_set and new_set use the same shared
4180         htab, they aren't different.  If number of htab elements is different,
4181         htabs are different.  Use shared_hash_*.
4182         (dataflow_set_destroy): Call shared_hash_destroy instead of
4183         htab_delete.
4184         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
4185         second argument to dataflow_set_init.
4186         (vt_initialize): Likewise.  Initialize shared_hash_pool and
4187         empty_shared_hash, move bb in/out initialization afterwards.
4188         Use variable_htab_free instead of NULL as changed_variables del hook.
4189         (variable_was_changed): Change type of second argument to pointer to
4190         dataflow_set.  When inserting var into changed_variables, bump
4191         refcount.  Unshare set->vars if set is shared htab and slot needs to
4192         be cleared.
4193         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
4194         lookup if set->vars is shared.  Unshare set->vars if needed.
4195         Even ->refcount == 1 vars must be unshared if set->vars is shared
4196         and var needs to be modified.  Adjust variable_was_changed caller.
4197         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
4198         vars must be unshared if set->vars is shared and var needs to be
4199         modified.  Adjust variable_was_changed caller.
4200         (emit_note_insn_var_location): Don't pool_free var.
4201         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
4202         instead of 1.
4203         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
4204         free_alloc_pool on shared_hash_pool.
4205
4206 2009-06-20  Anthony Green  <green@moxielogic.com>
4207
4208         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
4209         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
4210
4211 2009-06-20  Richard Guenther  <rguenther@suse.de>
4212
4213         * tree-ssa-structalias.c (find_func_aliases): For memset use
4214         a constraint from NULL if we memset to zero.
4215         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
4216         we explicitly handle that do not read from memory.
4217         (call_may_clobber_ref_p_1): Properly handle builtins that may
4218         set errno.
4219
4220 2009-06-20  Richard Guenther  <rguenther@suse.de>
4221
4222         PR tree-optimization/40495
4223         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
4224         (new_scalar_tmp_constraint_exp): New function.
4225         (process_constraint): Do not create temporary decls.
4226         (process_all_all_constraints): Likewise.
4227         (handle_const_call): Likewise.
4228         (create_function_info_for): Do not set decl.
4229
4230 2009-06-19  Ian Lance Taylor  <iant@google.com>
4231
4232         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
4233         (rs6000_attribute_table): Make static; move before use.
4234
4235 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4236
4237         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
4238         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
4239         Propagate the TREE_READONLY flag without overwriting it.
4240         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
4241         Propagate the TREE_READONLY flag onto the result.
4242         (process_call_operands): Move around.  Use correct constant value.
4243
4244 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4245
4246         PR target/40482
4247         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
4248         * config/arm/arm.md: Likewise.
4249
4250 2009-06-19  Ian Lance Taylor  <iant@google.com>
4251
4252         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
4253         to GIMPLE_ERROR_MARK.
4254
4255         * c-typeck.c (build_conditional_expr): Add op1_original_type and
4256         op2_original_type parameters.  Warn about using different enum types.
4257         * c-parser.c (c_parser_conditional_expression): Pass original
4258         types to build_conditional_expr.
4259         * c-tree.h (build_conditional_expr): Update declaration.
4260
4261 2009-06-19  Ian Lance Taylor  <iant@google.com>
4262
4263         * config/i386/i386.c (ix86_function_specific_save): Test that
4264         fields match values, rather than testing the values are in a
4265         certain range.
4266
4267 2009-06-19  Richard Guenther  <rguenther@suse.de>
4268
4269         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4270         ADDR_EXPR pointers.
4271         (ptr_derefs_may_alias_p): Likewise.
4272         (ptr_deref_may_alias_ref_p_1): New function.
4273         (ptr_deref_may_alias_ref_p): Likewise.
4274         (ref_maybe_used_by_call_p_1): Handle builtins that are not
4275         covered by looking at the ESCAPED solution.
4276         (call_may_clobber_ref_p_1): Likewise.
4277         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
4278         Handle NULL_TREE offset.  Do not produce redundant constraints.
4279         (process_all_all_constraints): New helper function.
4280         (do_structure_copy): Use it.
4281         (handle_lhs_call): Likewise.
4282         (find_func_aliases): Handle some builtins with pointer arguments
4283         and/or return values explicitly.
4284
4285 2009-06-19  Ian Lance Taylor  <iant@google.com>
4286
4287         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
4288
4289 2009-06-19  Ian Lance Taylor  <iant@google.com>
4290
4291         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
4292
4293 2009-06-19  Ian Lance Taylor  <iant@google.com>
4294
4295         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
4296         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
4297         version.
4298
4299         * c-decl.c (finish_decl): If -Wc++-compat, warn about
4300         uninitialized const.
4301
4302 2009-06-19  Ian Lance Taylor  <iant@google.com>
4303
4304         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
4305         all uses.
4306
4307         * c-decl.c (in_struct, struct_types): Remove.
4308         (struct c_binding): Add in_struct field.
4309         (c_binding_ptr): Define type, along with VEC.
4310         (struct c_struct_parse_info): Define.
4311         (struct_parse_info): New static variable.
4312         (bind): Initialize in_struct field.
4313         (start_struct): Remove enclosing_in_struct and
4314         enclosing_struct_types parameters.  Add
4315         enclosing_struct_parse_info parameter.  Change all callers.  Set
4316         struct_parse_info rather than in_struct and struct_types.
4317         (grokfield): If -Wc++-compat and there is a symbol binding for the
4318         field name, set the in_struct flag and push it on the
4319         struct_parse_info->fields vector.
4320         (warn_cxx_compat_finish_struct): New static function.
4321         (finish_struct): Remove enclosing_in_struct and
4322         enclosing_struct_types parameters.  Add
4323         enclosing_struct_parse_info parameter.  Change all callers.  Don't
4324         set C_TYPE_DEFINED_IN_STRUCT here.  Call
4325         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
4326         parameter.  Only push on struct_types if warn_cxx_compat.
4327         (finish_enum): Only push on struct_types if warn_cxx_compat.
4328         (declspecs_add_type): Add loc parameter.  Change all callers.
4329         Change all error calls to error_at.  Pass loc, not input_location,
4330         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
4331         defined in a struct.  If -Wc++-compat and parsing a struct, record
4332         that a typedef name was used.
4333         * c-parser.c (c_parser_declspecs): Get location to pass to
4334         declspecs_add_type.
4335         (c_parser_struct_or_union_specifier): Update calls to start_struct
4336         and finish_struct.
4337         * c-tree.h (struct c_struct_parse_info): Declare.
4338         (finish_struct, start_struct): Update declarations.
4339         (declspecs_add_type): Update declaration.
4340
4341 2009-06-19  Ian Lance Taylor  <iant@google.com>
4342
4343         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
4344         variable with an anonymous type.
4345
4346 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
4347
4348         * see.c: Remove for real.
4349
4350 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
4351
4352         * optabs.h (enum optab_index): Add new OTI_significand.
4353         (significand_optab): Define corresponding macro.
4354         * optabs.c (init_optabs): Initialize significand_optab.
4355         * genopinit.c (optabs): Implement significand_optab using
4356         significand?f2 patterns.
4357         * builtins.c (expand_builtin_mathfn): Handle
4358         BUILT_IN_SIGNIFICAND{,F,L}.
4359         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
4360         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4361
4362         * config/i386/i386.md (significandxf2, significand<mode>2): New
4363         expanders to implement significandf, significand and significandl
4364         built-ins as inline x87 intrinsics.
4365
4366 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
4367
4368         * config/avr/avr.c (avr_override_options): Remove setting value of
4369         PARAM_INLINE_CALL_COST.
4370
4371 2009-06-18  Richard Henderson  <rth@redhat.com>
4372
4373         PR 40488
4374         * tree-pass.h (TDF_ASMNAME): New.
4375         * tree-dump.c (dump_options): Add asmname.
4376         * doc/invoke.texi: Document it.
4377
4378         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
4379         (dump_decl_name): ...here.
4380         (dump_function_name): New flags arg; mind TDF_ASMNAME.
4381         (dump_generic_node): Update dump_function_name calls.
4382         (print_call_name): New flags arg; update all dump calls.
4383         * diagnostic.h (print_call_name): Update.
4384         * gimple-pretty-print.c (dump_gimple_call): Update.
4385
4386 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4387
4388         PR target/40470
4389         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
4390
4391 2009-06-18  Diego Novillo  <dnovillo@google.com>
4392
4393         * doc/plugins.texi: Document plugin_is_GPL_compatible.
4394         * plugin.c (str_license): Declare.
4395         (try_init_one_plugin): Assert that the symbol
4396         'plugin_is_GPL_compatible' exists.
4397
4398 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
4399
4400         * see.c: Remove.
4401         * Makefile.in (OBJS-common): Remove see.o.
4402         (see.o): Remove.
4403         * common.opt (fsee): Mark as preserved for backward compatibility.
4404         * opts.c (common_handle_option): Add OPT_fsee to the backward 
4405         compatibility section.
4406         * passes.c (init_optimization_passes, pass_see): Remove pass.
4407         * timevar.def (TV_SEE): Remove.
4408         * tree-pass.h (pass_see): Remove declaration.
4409         * doc/invoke.texi (-fsee): Remove documentation.
4410         
4411 2009-06-18  Martin Jambor  <mjambor@suse.cz>
4412
4413         * tree-sra.c: Include statistics.h
4414         (sra_stats): New variable.
4415         (sra_initialize): Clear sra_stats.
4416         (create_access_replacement): Increment sra_stats.replacements.
4417         (get_access_replacement): Do not return twice.
4418         (analyze_all_variable_accesses): Increment statistics counter by the
4419         number of scalarized aggregates.
4420         (generate_subtree_copies): Increment sra_stats.subtree_copies.
4421         (sra_modify_expr): Increment sra_stats.exprs.
4422         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
4423         (sra_modify_assign): Increment sra_stats.exprs,
4424         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
4425         (perform_intra_sra): Update statistics counters.
4426         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
4427
4428 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
4429
4430         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
4431         (arm_scalar_mode_supported_p): New function.
4432
4433 2009-06-18  Paul Brook  <paul@codesourcery.com>
4434             Sandra Loosemore  <sandra@codesourcery.com>
4435
4436         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
4437         (__extendhfsf2, __truncsfhf2): Define.
4438         * config/arm/fp16.c: New file.
4439         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
4440         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
4441
4442 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
4443
4444         * doc/extend.texi (Half-Precision): New section.
4445         * doc/invoke.texi (Option Summary): List -mfp16-format.
4446         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
4447         * config/arm/arm.opt (mfp16-format=): New.
4448         * config/arm/arm.c: Include intl.h.
4449         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
4450         (TARGET_INVALID_RETURN_TYPE): Redefine.
4451         (TARGET_PROMOTED_TYPE): Redefine.
4452         (TARGET_CONVERT_TO_TYPE): Redefine.
4453         (arm_fp16_format): Define.
4454         (all_fpus): Add entry for neon-fp16.
4455         (fp_model_for_fpu): Likewise.
4456         (struct fp16_format): Declare.
4457         (all_fp16_formats): Define.
4458         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
4459         functions.
4460         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
4461         and no ldrh.
4462         (arm_legitimate_index_p): Treat HFmode like HImode.
4463         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
4464         (coproc_secondary_reload_class): Special-case HFmode.
4465         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
4466         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
4467         (arm_init_fp16_builtins): New.
4468         (arm_init_builtins): Call it.
4469         (arm_invalid_parameter_type): New.
4470         (arm_invalid_return_type): New.
4471         (arm_promoted_type): New.
4472         (arm_convert_to_type).
4473         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
4474         format.
4475         (arm_emit_fp16_const): New function.
4476         (arm_mangle_type): Mangle __fp16 as "Dh".
4477         * config/arm/arm.h (TARGET_VFPD32): Make it know about
4478         FPUTYPE_NEON_FP16.
4479         (TARGET_NEON_FP16): New.
4480         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
4481         (enum fputype): Add FPUTYPE_NEON_FP16.
4482         (enum arm_fp16_format_type): Declare.
4483         (arm_fp16_format): Declare.
4484         (LARGEST_EXPONENT_IS_NORMAL): Define.
4485         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
4486         * config/arm/arm-modes.def (HFmode): Define.
4487         * config/arm/vfp.md: (*movhf_vfp): New.
4488         (extendhfsf2): New.
4489         (truncsfhf2): New.
4490         * config/arm/arm.md: (fpu): Add neon_fp16.
4491         (floatsihf2, floatdihf2): New.
4492         (fix_trunchfsi2, fix_trunchfdi2): New.
4493         (truncdfhf2): New.
4494         (extendhfdf2): New.
4495         (movhf): New.
4496         (*arm32_movhf): New.
4497         (*thumb1_movhf): New.
4498         (consttable_2): Add check for HFmode constants.
4499         (consttable_4): Handle HFmode constants.
4500
4501 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
4502
4503         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
4504
4505 2009-06-17  Olivier Hainque  <hainque@adacore.com>
4506
4507         * collect2.c (main): Use CONST_CAST2 to perform char ** to
4508         const char ** conversion in AIX specific section.
4509         
4510 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
4511
4512         * config/i386/i386.c (ix86_special_builtin_type): Remove
4513         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
4514         (bdesc_special_args): Updated.
4515         (ix86_init_mmx_sse_builtins): Likewise.
4516         (ix86_expand_special_args_builtin): Likewise.
4517
4518 2009-06-17  Richard Henderson  <rth@redhat.com>
4519
4520         * tree-pretty-print.c (maybe_dump_asm_name): New.
4521         (dump_decl_name): Use it.
4522         (PRINT_FUNCTION_NAME): Merge into...
4523         (dump_function_name): ... here.  Use maybe_dump_asm_name.
4524
4525 2009-06-17  Cary Coutant  <ccoutant@google.com>
4526
4527         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
4528         Change caller.
4529         * debug.c (struct gcc_debug_hooks): Change placeholder for
4530         source_line hook.
4531         (debug_nothing_int_charstar_int): Replaced by...
4532         (debug_nothing_int_charstar_int_bool): ...this.
4533         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
4534         source_line prototype.
4535         (debug_nothing_int_charstar_int): Replaced by...
4536         (debug_nothing_int_charstar_int_bool): ...this.
4537         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
4538         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
4539         Output is_stmt operand when necessary.
4540         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
4541         (notice_source_line): Add is_stmt parameter.
4542         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
4543         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
4544         Change callers.
4545         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
4546         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
4547
4548 2009-06-17  Ian Lance Taylor  <iant@google.com>
4549
4550         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
4551         Change all uses.
4552         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
4553         call uses.
4554
4555 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
4556
4557         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
4558         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
4559         tree_strip_sign_nop_conversions and
4560         tree_ssa_strip_useless_type_conversions rather than stripping
4561         the operations here.
4562         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
4563         Declare them.
4564         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
4565         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
4566         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
4567         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
4568         functions.
4569
4570 2009-06-17  Michael Eager  <eager@eagercon.com>
4571
4572         * config/rs6000/constraints.md (register_constraint "d"): New.
4573         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
4574         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4575         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
4576         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
4577         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4578         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
4579         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
4580         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
4581         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
4582         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
4583         __fctiwz): Same.
4584         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
4585         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
4586         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
4587         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
4588         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
4589         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
4590         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
4591         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
4592         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
4593         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
4594         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
4595         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
4596         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
4597         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
4598
4599 2009-06-16  Ian Lance Taylor  <iant@google.com>
4600
4601         * profile.c (total_num_never_executed): Don't define.
4602         (compute_branch_probabilities): Don't count or print
4603         num_never_executed.
4604         (init_branch_prob): Don't set total_num_never_executed.
4605         (end_branch_prob): Don't print total_num_never_executed.
4606
4607 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
4608
4609         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
4610
4611 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
4612
4613         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
4614         (nabstd2_fpr): Same.
4615
4616 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
4617
4618         * expr.c (expand_assignment): Change complex type check.
4619
4620 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
4621
4622         * doc/plugins.texi (Building GCC plugins): Added new section. 
4623
4624 2009-06-17  Ian Lance Taylor  <iant@google.com>
4625
4626         * c-pch.c (get_ident): Don't set size of templ array.
4627         (pch_init): Don't set size of partial_pch array.
4628
4629         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
4630         string constant to intialize an array whose size is the length of
4631         the string.
4632
4633 2009-06-17  Richard Guenther  <rguenther@suse.de>
4634
4635         PR tree-optimization/40389
4636         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
4637         to addressable types.
4638         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
4639
4640 2009-06-17  Richard Guenther  <rguenther@suse.de>
4641
4642         PR middle-end/40460
4643         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
4644         if there is no evolution of left in the loop bail out.
4645         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
4646         chrec_fold_multiply.
4647
4648 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
4649             Janis Johnson  <janis187@us.ibm.com>
4650
4651         PR target/39254
4652         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
4653         for the symbol ref of a constant that is the source of a move
4654         - nor for any other not-obvious-label-ref constants.
4655
4656 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
4657
4658         * plugin.c (position_pass): Skip newly inserted pass during list
4659         traversal to avoid repeated insertion.
4660
4661 2009-06-16  Ian Lance Taylor  <iant@google.com>
4662
4663         * vec.h (VEC_stack_alloc): Define different version if
4664         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
4665         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
4666         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
4667         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
4668
4669 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4670
4671         * config.gcc (extra_headers): Add ia32intrin.h for x86.
4672
4673         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
4674         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
4675         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
4676         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
4677         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
4678         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4679         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4680         (bdesc_special_args): Add __builtin_ia32_rdtsc and
4681         __builtin_ia32_rdtscp.
4682         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
4683         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
4684         and __builtin_ia32_rorhi.
4685         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
4686         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4687         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4688         (ix86_expand_args_builtin): Likewise.
4689         (ix86_expand_special_args_builtin): Likewise.
4690
4691         * config/i386/i386.md (UNSPECV_RDTSCP): New.
4692         (UNSPECV_RDTSC): Likewise.
4693         (UNSPECV_RDPMC): Likewise.
4694         (*bsr): Renamed to ...
4695         (bsr): This
4696         (*bsr_rex64): Renamed to ...
4697         (bsr_rex64): This.
4698         (rdpmc): New.
4699         (*rdpmc): Likewise.
4700         (*rdpmc_rex64): Likewise.
4701         (rdtsc): Likewise.
4702         (*rdtsc): Likewise.
4703         (*rdtsc_rex64): Likewise.
4704         (rdtscp): Likewise.
4705         (*rdtscp): Likewise.
4706         (*rdtscp_rex64): Likewise.
4707
4708         * config/i386/ia32intrin.h: New.
4709
4710         * config/i386/x86intrin.h: Include <ia32intrin.h>.
4711
4712 2009-06-16  Ian Lance Taylor  <iant@google.com>
4713
4714         * ira-build.c (copy_info_to_removed_store_destinations):
4715         Initialize parent_a.
4716
4717 2009-06-16  Ian Lance Taylor  <iant@google.com>
4718
4719         * c-decl.c (grokdeclarator): Change size_varies to bool.
4720
4721 2009-06-16  Ian Lance Taylor  <iant@google.com>
4722
4723         * sel-sched.c: Make forward declarations of move_op_hooks and
4724         fur_hooks explicitly extern.
4725
4726 2009-06-16  Ian Lance Taylor  <iant@google.com>
4727
4728         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
4729         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
4730
4731 2009-06-16  Ian Lance Taylor  <iant@google.com>
4732
4733         * resource.c (mark_referenced_resources): Change
4734         include_delayed_effects parameter to bool.  Change all callers.
4735         (mark_end_of_function_resources): Likewise.
4736         * reorg.c (insn_references_resource_p): Likewise.
4737         (insn_sets_resource_p): Likewise.
4738         * resource.h (mark_referenced_resources): Update declaration.
4739         (mark_end_of_function_resources): Update declaration.
4740
4741 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4742
4743         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
4744
4745 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4746
4747         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
4748         GCC can bootstrap on AIX with GNU Binutils 2.20.
4749
4750 2009-06-16  Ian Lance Taylor  <iant@google.com>
4751
4752         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
4753
4754 2009-06-16  Ian Lance Taylor  <iant@google.com>
4755
4756         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
4757         inline, not extern inline.
4758         (exact_log2): Likewise.
4759         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
4760         test CLZ_HWI.
4761         (exact_log2): Likewise, but don't test CTZ_HWI.
4762
4763 2009-06-16  Ian Lance Taylor  <iant@google.com>
4764
4765         * bitmap.c (bitmap_clear): Don't declare as inline.
4766         * gimple.c (gimplify_assign): Likewise.
4767         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4768         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
4769         (sched_scan_info): Remove duplicate definition.
4770
4771 2009-06-16  Ian Lance Taylor  <iant@google.com>
4772
4773         * c-common.c (skip_evaluation): Don't define.
4774         (c_inhibit_evaluation_warnings): Define global variable.
4775         (overflow_warning): Check c_inhibit_evaluation_warnings rather
4776         than skip_evaluation.
4777         (convert_and_check, warn_for_div_by_zero): Likewise.
4778         * c-common.h (skip_evaluation): Don't declare.
4779         (c_inhibit_evaluation_warnings): Declare.
4780         * c-parser.c (c_parser_typeof_specifier): Set
4781         c_inhibit_evaluation_warnings rather than skip_evaluation.
4782         (c_parser_conditional_expression): Likewise.
4783         (c_parser_binary_expression): Likewise.
4784         (c_parser_sizeof_expression): Likewise.
4785         (c_parser_alignof_expression): Likewise.
4786         * c-typeck.c (build_indirect_ref): Check
4787         c_inhibit_evaluation_warnings rather than skip_evaluation.
4788         (build_conditional_expr, build_binary_op): Likewise.
4789
4790 2009-06-16  Richard Guenther  <rguenther@suse.de>
4791
4792         * tree-ssa-alias.c (is_escape_site): Remove.
4793         * tree-ssa-alias.h (enum escape_type): Remove.
4794         (is_escape_site): Likewise.
4795         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
4796         via casts and asms without deferring to is_escape_site.
4797
4798 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
4799
4800         PR middle-end/40446
4801         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
4802         use gen_lowpart if op0 has complex mode.
4803
4804 2009-06-16  Richard Guenther  <rguenther@suse.de>
4805
4806         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
4807         variables add them to ESCAPED.
4808         (find_func_aliases): Do not make all indirectly stored values escaped.
4809
4810 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
4811
4812         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
4813         make_decl_one_only.
4814
4815 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4816
4817         PR tree-optimization/40432
4818         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
4819         check whether we need to force gimple register operand.
4820
4821 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4822
4823         PR tree-optimization/40413
4824         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
4825         build_ref_for_offset.
4826         (propagate_subacesses_accross_link): Fix a typo in a comment.
4827
4828 2009-06-16  Ira Rosen  <irar@il.ibm.com>
4829
4830         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
4831         with additional parameter.
4832         * tree-vectorizer.h (enum vect_def_type): Add new value
4833         vect_nested_cycle.
4834         (enum vect_relevant): Add comments.
4835         (vect_is_simple_reduction): Add new argument.
4836         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
4837         Detect nested cycles.
4838         (vect_is_simple_reduction): Update documentation, add an argument to
4839         distinguish inner-loop reduction from nested cycle, detect nested
4840         cycles, fix printings and indentation, don't swap operands in case
4841         of nested cycle.
4842         (get_initial_def_for_reduction): Handle subtraction.
4843         (vect_create_epilog_for_reduction): Add new argument to specify
4844         reduction variable.
4845         (vect_finalize_reduction): Handle subtraction, fix comments.
4846         (vectorizable_reduction): Handle nested cycles. In case of nested
4847         cycle keep track of the reduction variable position. Call 
4848         vect_is_simple_reduction with additional parameter. Use original
4849         statement code in reduction epilogue for nested cycle. Call
4850         vect_create_epilog_for_reduction with additional parameter.
4851         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
4852         inner-loop vectorization.
4853         (vect_recog_widen_sum_pattern): Likewise.
4854         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
4855         and reductions.
4856         (vect_mark_stmts_to_be_vectorized): Likewise.
4857         (vect_get_vec_def_for_operand): Handle nested cycles.
4858
4859 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4860
4861         * doc/invoke.texi (Debugging Options): Fix option index entries
4862         for -fdump-statistics, -frandom-seed add entries for
4863         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
4864         (FRV Options): Fix entries for -mTLS, -mtls.
4865         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
4866         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
4867         (M68hc1x Options): Fix @itemx for -mnominmax.
4868         (MCore Options): Fix entry for -mno-lsim.
4869         (MMIX Options): Fix entry for -mabi=mmixware.
4870         (PDP-11 Options): Fix entry for -mbcopy-builtin.
4871
4872 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
4873
4874         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
4875         Mention the plugin mode of gengtype.
4876         * doc/gty.texi (Source Files Containing Type Information): Likewise.
4877         * gengtype.c: Updated copyright.
4878         (plugin_files, nb_plugin_files) Added new static variables.
4879         (measure_input_list) Care about plugin_files.
4880         (write_rtx_next): Added early return in plugin mode.
4881         (create_file): Updated copyright year in generated file. Added
4882         asserts.
4883         (oprintf): Added early return if NULL outf.
4884         (get_output_file_with_visibility): Care of plugin_files.
4885         (get_output_file_name): May return null.
4886         (write_local): Added early return.
4887         (put_mangled_filename): Ditto.
4888         (finish_root_table): Added check for base_files.
4889         (write_roots): Care about null when plugins.
4890         (main): Added plugin mode.
4891
4892 2009-06-15  Ian Lance Taylor  <iant@google.com>
4893
4894         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
4895         * gcov.c (read_count_file): Add braces around variables declared
4896         before label.
4897
4898         * c.opt (Wjump-misses-init): New warning.
4899         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
4900         -Wall and -Wc++-compat if not already set.
4901         (c_common_post_options): Clear warn_jump_misses_init if it was not
4902         set.
4903         * c-decl.c (struct c_binding): Change type field to a union with
4904         new label field.  Make it the first field in the struct.  Update
4905         references to type to use u.type instead.
4906         (struct c_spot_bindings): Define.
4907         (struct c_goto_bindings): Define.
4908         (c_goto_bindings_p): Define, along with VECs.
4909         (struct c_label_vars): Define.
4910         (struct c_scope): Add has_label_bindings field.
4911         (bind_label, set_spot_bindings): New static functions.
4912         (decl_jump_unsafe, update_spot_bindings): New static functions.
4913         (update_label_decls): New static function.
4914         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
4915         Update binding u.label field to shadowed field.
4916         (c_binding_start_stmt_expr): New function.
4917         (c_binding_end_stmt_expr): New function.
4918         (pushdecl): Don't call c_begin_vm_scope.
4919         (make_label): Add defining and p_label_vars parameters.  Change
4920         all callers.
4921         (lookup_label): Correct test for whether a label has not yet been
4922         defined.  Call bind_label rather than bind.
4923         (warn_about_goto): New static function.
4924         (lookup_label_for_goto): New function.
4925         (declare_label): Call bind_label rather than bind.
4926         (check_earlier_gotos): New static function.
4927         (define_label): Don't give errors about jumping into statement
4928         expressions or scopes of variably modified types.  Call
4929         set_spot_bindings and check_earlier_gotos.  Call bind_label
4930         instead of bind.  Don't set label_context_stack_se or
4931         label_context_stack_vm.
4932         (c_get_switch_bindings): New function.
4933         (c_release_switch_bindings): New function.
4934         (c_check_switch_jump_warnings): New function.
4935         (start_function): Don't set label_context_stack_se or
4936         label_context_stack_vm.
4937         (finish_function): Likewise.
4938         * c-typeck.c (label_context_stack_se): Don't define.
4939         (label_context_stack_vm): Don't define.
4940         (c_finish_goto_label): Call lookup_label_for_goto rather than
4941         lookup_label.  Don't give errors about jumping into a statement
4942         expression or the scope of a variably modified type.  Don't set
4943         label_context_stack_se or label_context_stack_vm.
4944         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
4945         fields.  Add bindings field.
4946         (c_start_case): Don't set deleted fields.  Set bindings field.
4947         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
4948         or blocked_vm.  Call c_check_switch_jump_warnings.
4949         (c_finish_case): Don't test blocked_stmt_expr field.  Call
4950         c_release_switch_bindings.
4951         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
4952         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4953         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
4954         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
4955         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4956         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
4957         (c_begin_vm_scope, c_end_vm_scope): Don't define.
4958         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
4959         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
4960         (C_DECL_UNJUMPABLE_VM): Don't define.
4961         (C_DECL_UNDEFINABLE_VM): Don't define.
4962         (struct c_label_list): Don't define.
4963         (struct c_label_context_se): Don't define.
4964         (struct c_label_context_vm): Don't define.
4965         (struct c_spot_bindings): Declare.
4966         (c_bindings_start_stmt_expr): Declare.
4967         (c_bindings_end_stmt_expr): Declare.
4968         (lookup_label_for_goto): Declare.
4969         (c_get_switch_bindings, c_release_switch_bindings): Declare.
4970         (c_check_switch_jump_warnings): Declare.
4971         (label_context_stack_se, label_context_stack_vm): Don't declare.
4972         (c_finish_goto_label): Update declaration.
4973         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
4974         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
4975         (Warning Options): Document -Wjump-misses-init.
4976
4977 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
4978
4979         * tree-object-size.c (addr_object_size): Fix a pasto in the last
4980         change.
4981
4982 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4983
4984         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
4985
4986 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4987
4988         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
4989
4990 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4991
4992         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
4993
4994 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4995
4996         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
4997         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
4998         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
4999         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
5000         * dwarf2asm.c (dw2_force_const_mem): Update call to
5001         make_decl_one_only.
5002         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
5003         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
5004         * langhooks.c (lhd_comdat_group): Remove.
5005         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
5006         * tree.h (DECL_COMDAT_GROUP): New.
5007         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
5008         (tree_decl_with_vis): Add comdat_group. Remove one_only.
5009         (make_decl_one_only): Change signature.
5010         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
5011         make_decl_one_only.
5012         (make_decl_one_only): Change signature.
5013         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
5014
5015 2009-06-15  Richard Guenther  <rguenther@suse.de>
5016
5017         PR middle-end/40439
5018         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
5019
5020 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5021
5022         * tree-ssa-math-opts.c: Remove extra divide.
5023
5024 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5025
5026         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
5027
5028 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5029
5030         * passes.c: Add bswap pass.
5031         * tree-pass.h: Add pass_optimize_bswap declaration.
5032         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
5033         Include rtl.h, expr.h and optabs.h for optab_handler check.
5034         (struct symbolic_number, pass_optimize_bswap): New definition.
5035         (do_shift_rotate, verify_symbolic_number_p): New functions.
5036         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
5037         (gate_optimize_bswap): New function.
5038         * tree.c (widest_int_cst_value): New function.
5039         * tree.h (widest_int_cst_value): Prototype added.
5040
5041 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
5042
5043         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
5044         REG_EQUAL/REG_EQUIV notes.
5045
5046 2009-06-14  Richard Guenther  <rguenther@suse.de>
5047
5048         PR middle-end/40389
5049         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
5050         has its address taken if NRV was applied and it is addressable.
5051         * tree-ssa-structalias.c (get_constraint_for_address_of): New
5052         function split out from ...
5053         (get_constraint_for_1): ... here.
5054         (handle_rhs_call): Use it to mark the return slot escaped if
5055         it is addressable and NRV was applied.
5056
5057 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
5058
5059         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
5060         Change first argument type to location_t.
5061         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
5062         Do not set input_location.
5063         Use loc instead of input_location throughout.
5064
5065 2009-06-13  Richard Guenther  <rguenther@suse.de>
5066
5067         PR tree-optimization/40421
5068         * tree-predcom.c (should_unroll_loop_p): Remove.
5069         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
5070
5071 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5072
5073         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5074         Add location argument.
5075
5076 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
5077
5078         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
5079         build_decl.
5080         * config/s390/s390.c (s390_build_builtin_va_list): Same.
5081         (s390_gimplify_va_arg): Pass location to create_artificial_label.
5082         * config/spu/spu-protos.h: Add location to
5083         spu_resolve_overloaded_builtin.
5084         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
5085         spu_build_builtin_va_list.
5086         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
5087         argument.  Pass location to build_function_call_vec.
5088         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
5089         build_decl.
5090         (emit_fpu_switch): Same.
5091         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
5092         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
5093         to build_decl and create_artificial_label.
5094         (xtensa_gimplify_va_arg_expr): Same.
5095         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
5096         (xstormy16_gimplify_va_arg_expr): Same.
5097         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
5098         * config/arm/arm.c (arm_build_builtin_va_list): Same.
5099         * config/mips/mips.c (mips_build_builtin_va_list): Same.
5100         (mips16_build_function_stub): Same.
5101         (mips16_build_call_stub): Same.
5102
5103 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
5104
5105         PR target/40327
5106         * arm/constraints.md (Pa, Pb): New constraints.
5107         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
5108         split pattern to deal with them.
5109
5110 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
5111
5112         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
5113         fix index entry for -Xpreprocessor.
5114
5115 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
5116
5117         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5118         Add location argument to build_decl call.
5119         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
5120         (rs6000_init_builtins): Same.
5121         (spe_init_builtins): Same.
5122         (rs6000_gimplify_va_arg): Add location argument to
5123         create_artificial_label call.
5124
5125 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
5126
5127         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
5128         * combine-stack-adj.c (pass_stack_adjustments): Use it.
5129         * Makefile.in: Fix GGC dependency for gcse.o.
5130
5131 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
5132
5133         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
5134         * gimple-pretty-print.c (dump_gimple_stmt): Same.
5135         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
5136         created.
5137         * c-parser.c (c_parser_binary_expression): Use current column while
5138         building binary operations.
5139         * common.opt (fshow-column): Enable by default.
5140         * tree-vrp.c (check_array_ref): Use warning_at.
5141         (check_array_bounds): Use location from call back if expr has no
5142         location.
5143         * tree.h: Add location argument to maybe_fold_*.
5144         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
5145         (maybe_fold_offset_to_array_ref): Add location argument and use it.
5146         (maybe_fold_offset_to_component_ref): Same.
5147         (maybe_fold_offset_to_reference): Same.
5148         (maybe_fold_offset_to_address): Same.
5149         (maybe_fold_stmt_indirect): Same.
5150         (maybe_fold_stmt_addition): Same.
5151         (fold_stmt_r): Pass location to maybe_fold_*.
5152         (fold_gimple_assign): Same.
5153         * c-tree.h: Add location argument to finish_decl,
5154         default_function_array_conversion, store_init_value.
5155         * c-decl.c (define_label): Use error_at.
5156         (c_make_fname_decl): Pass location to finish_decl.
5157         (finish_decl): New location argument.
5158         (build_compound_literal): Pass location to store_init_value.
5159         (grokdeclarator): Pass location to finish_decl.
5160         (grokfield): Same.
5161         * c-typeck.c (array_to_pointer_conversion): New location argument.
5162         (function_to_pointer_conversion): Same.
5163         (default_function_array_conversion): Same.
5164         (parser_build_unary_op): Pass location to overflow_warning.
5165         (parser_build_binary_op): Same.  Use warning_at.
5166         (build_unary_op): Pass location to array_to_pointer_conversion.
5167         (build_c_cast): Pass location to digest_init.
5168         (build_modify_expr): New location argument.
5169         (convert_for_assignment): Same.
5170         (store_init_value): Same.
5171         (digest_init): Same.
5172         (output_init_element): Pass location to digest_init and
5173         array_to_pointer_conversion.
5174         (c_finish_return): Pass location to convert_for_assignment.
5175         * gimplify.c (gimplify_conversion): Pass location to
5176         maybe_fold_offset_to_address.
5177         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
5178         to maybe_fold_stmt_addition.
5179         * c-omp.c (c_finish_omp_atomic): Pass new location to
5180         build_modify_expr.
5181         (c_finish_omp_for): Same.
5182         * c-common.c (overflow_warning): New argument.
5183         * c-common.h: New argument to build_modify_expr, overflow_warning.
5184         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
5185         finish_decl.
5186         (c_parser_initializer): Pass location to
5187         default_function_array_conversion.
5188         (c_parser_initelt): Same.
5189         (c_parser_initval): Same.
5190         (c_parser_asm_operands): Same.
5191         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
5192         (c_parser_conditional_expression): Same.
5193         (c_parser_binary_expression): Add location info to stack.  Use it.
5194         (c_parser_unary_expression): Pass location to
5195         default_function_array_conversion, parser_build_unary_op,
5196         build_indirect_ref, c_parser_postfix_expression_after_primary.
5197         (c_parser_postfix_expression_after_primary): New location argument.
5198         Use it.
5199         (c_parser_expression_conv): Pass location to
5200         default_function_array_conversion.
5201         (c_parser_expr_list): Same.
5202         (c_parser_omp_atomic): Same.
5203         (c_parser_omp_for_loop): Same.
5204         * c-tree.h: (struct c_declarator): Add comment to id_loc.
5205         (build_array_declarator): New argument.
5206         * c-decl.c (build_array_declarator): Add location argument.
5207         (grokdeclarator): Set id_loc for cdk_array.
5208         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
5209         build_array_declarator.
5210         * tree.c (build_omp_clause): Add location argument.
5211         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
5212         (OMP_CLAUSE_LOCATION): New macro.
5213         (struct tree_omp_clause): Add location field.
5214         (build_omp_clause): Add argument.
5215         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
5216         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
5217         build_omp_clause.
5218         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
5219         (cp_parser_omp_clause_collapse): Same.
5220         (cp_parser_omp_clause_default): Same.
5221         (cp_parser_omp_clause_if): Same.
5222         (cp_parser_omp_clause_nowait): Same.
5223         (cp_parser_omp_clause_num_threads): Same.
5224         (cp_parser_omp_clause_ordered): Same.
5225         (cp_parser_omp_clause_schedule): Same.
5226         (cp_parser_omp_clause_untied): Same.
5227         (cp_parser_omp_for_loop): Same.
5228         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
5229         * c-tree.h (c_start_case): Add location argument.
5230         (c_process_expr_stmt): Same.
5231         (c_finish_goto_*): Same.
5232         * tree-parloops.c (initialize_reductions): Pass location to
5233         build_omp_clause.
5234         (create_parallel_loop): Same.
5235         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
5236         (gfc_trans_omp_reduction_list): Same.
5237         (gfc_trans_omp_clauses): Same.
5238         (gfc_trans_omp_do): Same.
5239         * c-typeck.c (c_finish_goto_label): Same.
5240         (c_finish_goto_ptr): New location argument.
5241         (c_start_case): Same.
5242         (emit_side_effect_warnings): Same.
5243         (c_process_expr_stmt): Same.
5244         (c_finish_stmt_expr): Same.
5245         (c_finish_omp_clauses): Use error_at instead of error.
5246         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
5247         build_omp_clause.
5248         * c-omp.c (c_split_parallel_clauses): New location argument.
5249         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
5250         to build_omp_clause.
5251         (convert_local_reference_stmt): Same.
5252         (convert_gimple_call): Same.
5253         * c-common.h (c_split_parallel_clauses): New argument.
5254         * c-parser.c (c_parser_statement_after_labels): Pass location to
5255         c_finish_goto_label.
5256         (c_parser_switch_statement): Pass location to c_start_case.
5257         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
5258         and c_process_expr_stmt.
5259         (c_parser_omp_variable_list): Add location argument.
5260         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
5261         (c_parser_omp_clause_default): Same.
5262         (c_parser_omp_clause_if): Same.
5263         (c_parser_omp_clause_num_threads): Same.
5264         (-c_parser_omp_clause_ordered): Same.
5265         (c_parser_omp_clause_reduction): Pass location to
5266         c_parser_omp_variable_list.
5267         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
5268         (c_parser_omp_clause_untied): Same.
5269         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
5270         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
5271
5272         * c-tree.h (check_for_loop_decls, undeclared_variable,
5273         build_component_ref, build_array_ref, build_external_ref,
5274         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
5275         build_conditional_expr, build_compound_expr, c_cast_expr,
5276         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
5277         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
5278         argument.
5279         * c-semantics.c (build_stmt): Same.
5280         (build_case_label): Same.
5281         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
5282         (undeclared_variable): New argument.
5283         (make_label): Same.
5284         (lookup_label): Pass location on down.
5285         (define_label): Same.
5286         (finish_decl): Same.
5287         (build_compound_literal): Same.
5288         (finish_struct): Same.
5289         (finish_function): Do not set location here.
5290         (check_for_loop_decls): New argument.
5291         * tree.c (save_expr): Set location.
5292         (build_empty_stmt): New argument.
5293         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
5294         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
5295         * builtins.c (gimplify_va_arg_expr): Use locations.
5296         (expand_builtin_sync_operation): Same.
5297         * c-typeck.c (build_component_ref): New argument.
5298         (build_array_ref): Same.
5299         (build_external_ref): Same.
5300         (c_expr_sizeof_expr): Same.
5301         (c_expr_sizeof_type): Same.
5302         (parser_build_unary_op): Same.
5303         (build_conditional_expr): Same.
5304         (build_compound_expr): Pass location on down.
5305         (build_compound_expr): New argument.
5306         (build_c_cast): Same.
5307         (c_cast_expr): Same.
5308         (build_asm_expr): Same.
5309         (c_finish_return): Same.
5310         (c_process_expr_stmt): Pass location on down.
5311         (c_finish_stmt_expr): New argument.
5312         (push_clenaup): Same.
5313         (c_finish_omp_parallel): Same.
5314         (c_finish_omp_task): Same.
5315         * gimplify.c (gimplify_call_expr): Pass location on down.
5316         * c-omp.c (c_finish_omp_master): New argument.
5317         (c_finish_omp_critical): Same.
5318         (c_finish_omp_ordered): Same.
5319         (c_finish_omp_barrier): Same.
5320         (-c_finish_omp_taskwait): Same.
5321         (c_finish_omp_atomic): Same.
5322         (c_finish_omp_flush): Same.
5323         * tree-inline.c (copy_tree_body_r): Pass location on down.
5324         (inline_forbidden_p): Remove use of input_location.
5325         * c-gimplify.c (c_build_bind_expr): New argument.
5326         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
5327         (c_sizeof_or_alignof_type): New argument.
5328         (c_alignof_expr): Same.
5329         (build_va_arg): Same.
5330         (c_add_case_label): Same.
5331         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
5332         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
5333         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
5334         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
5335         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
5336         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
5337         New argument.
5338         * stub-objc.c (objc_build_selector_expr): Same.
5339         (objc_build_throw_stmt): Same.
5340         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
5341         (c_parser_initelt): Same.
5342         (c_parser_compound_statement): Same.
5343         (c_parser_compound_statement_nostart): Same.
5344         (c_parser_label): Same.
5345         (c_parser_statement_after_labels): Same.
5346         (c_parser_if_body): Same.
5347         (c_parser_else_body): Same.
5348         (c_parser_if_statement): Same.
5349         (c_parser_switch_statement): Same.
5350         (c_parser_while_statement): Same.
5351         (c_parser_do_statement): Same.
5352         (c_parser_for_statement): Same.
5353         (c_parser_asm_statement): Same.
5354         (c_parser_conditional_expression): Same.
5355         (c_parser_binary_expression): Same.
5356         (c_parser_cast_expression): Same.
5357         (c_parser_unary_expression): Same.
5358         (c_parser_sizeof_expression): Same.
5359         (c_parser_alignof_expression): Same.
5360         (c_parser_postfix_expression): Same.
5361         (c_parser_expression): Same.
5362         (c_parser_objc_receiver): Same.
5363         (c_parser_omp_variable_list): Same.
5364         (c_parser_omp_structured_block): Same.
5365         (c_parser_omp_atomic): New argument.
5366         (c_parser_omp_barrier): Same.
5367         (c_parser_omp_critical): Same.
5368         (c_parser_omp_flush): Pass location on down.
5369         (c_parser_omp_for_loop): New argument.
5370         (c_parser_omp_for): Same.
5371         (c_parser_omp_master): Same.
5372         (c_parser_omp_ordered): Same.
5373         (c_parser_omp_sections_scope): Same.
5374         (c_parser_omp_sections): Same.
5375         (c_parser_omp_parallel): Same.
5376         (c_parser_omp_single): Same.
5377         (c_parser_omp_task): Same.
5378         (c_parser_omp_taskwait): Pass location on down.
5379         (c_parser_omp_construct): Same.
5380         (c_parser_omp_threadprivate): Same.
5381         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
5382         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
5383         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
5384         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
5385         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
5386         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
5387         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
5388         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
5389         config/i386/i386.c, stmt.c:
5390         Add location argument to the following function definitions and/or
5391         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
5392         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
5393         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
5394         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
5395         do_case, c_finish_bc_stmt, build_compound_literal,
5396         build_function_call.
5397         * c-decl.c (build_compound_literal): Add location argument.
5398         Make all diagnostic calls use location.
5399         (start_struct): Same.
5400         (finish_struct): Same.
5401         (start_enum): Same.
5402         (build_enumerator): Same.
5403         (start_function): Same.
5404         (grokdeclarator): Make all diagnostic calls use location.
5405         (store_parm_decls_oldstyle): Same.
5406         * c-typeck.c (build_function_call): Add location argument.
5407         Make all diagnostic calls use location.
5408         (do_case): Same.
5409         (c_finish_bc_stmt): Same.
5410         * tree-nested.c (get_trampoline_type): Add argument.
5411         Pass location to build_decl.
5412         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
5413         * rtl.h (RTL_LOCATION): New.
5414         * c-common.c (c_add_case_label): Add location argument.
5415         Make all diagnostic calls use location.
5416         * c-common.h: Add location argument to make_fname_decl, do_case,
5417         c_add_case_label, build_function_call, resolve_overloaded_builtin.
5418         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
5419         Set it appropriately for every case.  Pass enum_loc to start_enum
5420         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
5421         parser_xref_tag.
5422         (c_parser_struct_or_union_specifier): Save location.  Use it for
5423         start_struct, finish_struct, and parser_xref_tag.
5424
5425 2009-06-12  Ian Lance Taylor  <iant@google.com>
5426
5427         * fold-const.c (fold_unary): Rename local variable and to and_expr.
5428
5429         * c-opts.c (c_common_handle_option): For -Wc++-compat set
5430         cpp_opts->warn_cxx_operator_names.
5431
5432 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5433
5434         PR tree-opt/38865
5435         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
5436         is returns NULL and OP is a VCE, look through the VCE.
5437
5438 2009-06-12  Ian Lance Taylor  <iant@google.com>
5439
5440         PR bootstrap/40430
5441         * collect2.c (main): Use CONST_CAST2 in code inside #if
5442         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
5443
5444 2009-06-12  Joey Ye  <joey.ye@intel.com>
5445
5446         PR middle-end/39146
5447         * cfgexpand.c (get_decl_align_unit): Update
5448         max_used_stack_slot_alignment with align instead of
5449         stack_alignment_needed.
5450
5451         * function.c (assign_stack_local_1): Update
5452         max_used_stack_slot_alignment with alignment_in_bits instead
5453         of stack_alignment_needed.
5454         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
5455         here.
5456
5457 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
5458
5459         * dwarf2out.c (last_var_location_insn): New variable.
5460         (dwarf2out_end_epilogue): Clear last_var_location_insn.
5461         (dwarf2out_var_location): Don't record anything after last real
5462         insn.  Only change labels if there were any real instructions
5463         in between last note and this one, or if changed sections.
5464
5465 2009-06-11  Richard Henderson  <rth@redhat.com>
5466
5467         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
5468         note when storing the frame pointer in a register.
5469         (FRP): Don't redefine to nothing for epilogue.
5470         (alpha_expand_epilogue): Mark register and sp restores.
5471         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
5472
5473         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
5474         when gen_lowpart is needed.
5475
5476 2009-06-11  Richard Henderson  <rth@redhat.com>
5477
5478         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
5479
5480         * dwarf2out.c (need_data_align_sf_opcode): New.
5481         (div_data_align): Move earlier.
5482         (def_cfa_1, reg_save): Use it.
5483
5484 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
5485
5486         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
5487         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
5488         (ix86_handle_option): Handle OPT_mcrc32.
5489         (ix86_target_string): Add -mcrc32.
5490         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
5491
5492         * config/i386/i386.h (TARGET_CRC32): New.
5493
5494         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
5495         (sse4_2_crc32di): Likewise.
5496
5497         * config/i386/i386.opt (mcrc32): New.
5498
5499         * doc/invoke.texi: Document -mcrc32.
5500
5501 2009-06-11  Richard Henderson  <rth@redhat.com>
5502
5503         * common.opt (gdwarf-): Accept a version number.
5504         * doc/invoke.texi (gdwarf-): Update docs.
5505         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
5506         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
5507         version level, and record it.
5508
5509         * dwarf2.h (DW_CIE_VERSION): Remove.
5510         * dwarf2out.c (DWARF_VERSION): Remove.
5511         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
5512         (output_call_frame_info): Use CIE version 3 for dwarf3,
5513         or if the return register column is out of range for version 1.
5514         (dwarf_stack_op_name): Add all dwarf3 values.
5515         (DEBUG_PUBTYPES_SECTION): New.
5516         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
5517         encoding change for dwarf3.
5518         (output_die) [dw_val_class_die_ref]: Likewise.
5519         (output_compilation_unit_header): Emit correct version for dwarf3.
5520         (output_line_info): Likewise.
5521         (output_pubnames): Update for DWARF_VERSION removal.
5522         (output_aranges): Likewise.
5523         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
5524         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
5525         (dwarf2out_finish): Likewise.
5526
5527 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5528
5529         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
5530         in r148403.
5531
5532 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5533
5534         PR c/39252
5535         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
5536         * builtins.c (expand_builtin_unreachable): New function.
5537         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
5538         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
5539         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
5540         successors.
5541         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
5542         searching for missing barriers.
5543
5544 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5545
5546         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
5547         when -fprofile-generate* was passed.
5548         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
5549
5550 2009-06-11  Anthony Green  <green@moxielogic.com>
5551
5552         * config/moxie/moxie.md: Define length attribute for all instructions.
5553         (rCC): Define.
5554         (*b<cond:code>): Support limited branch ranges for new PC-relative
5555         branch instructions.
5556         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
5557
5558 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
5559
5560         * config/i386/i386.c (min_insn_size): Use get_attr_length
5561         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
5562         For __asm return 0.
5563
5564         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
5565         instead of emit_insn_before.
5566
5567 2009-06-10  Ian Lance Taylor  <iant@google.com>
5568
5569         PR bootstrap/40408
5570         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
5571         GIMPLE_SWITCH.
5572
5573 2009-06-10  Revital Eres  <eres@il.ibm.com>
5574
5575         * passes.c (init_optimization_passes): Reschedule
5576         predictive-commoning pass before complete unroll pass.
5577
5578 2009-06-10  Martin Jambor  <mjambor@suse.cz>
5579
5580         * cgraph.c (cgraph_node_can_be_local_p): New function.
5581         (cgraph_make_node_local): New function.
5582         * cgraph.h (cgraph_node_can_be_local_p): Declare.
5583         (cgraph_make_node_local): Declare.
5584
5585 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
5586
5587         * tree.h (tree_base): Add packed_flag and user_align fields.
5588         Decrease size of spare field.
5589         (TYPE_USER_ALIGN): Use user_align from tree_base.
5590         (DECL_USER_ALIGN): Likewise.
5591         (TYPE_PACKED): Use packed_flag from tree_base.
5592         (DECL_PACKED): Likewise.
5593         (tree_type): Delete packed_flag and user_align fields.  Widen
5594         precision field.  Widen mode field and shuffle fields to align
5595         mode on an 8-bit boundary.
5596         (tree_decl_common): Delete decl_flag_1 and user_align fields.
5597         Renumber decl_flag_* fields.  Fix comments.  Widen
5598         decl_common_unused field.
5599         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
5600         (DECL_EXTERNAL): Likewise.
5601         (DECL_BIT_FIELD): Likewise.
5602         (DECL_NONADDRESSABLE_P): Likewise.
5603         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
5604         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
5605
5606 2009-06-10  Ian Lance Taylor  <iant@google.com>
5607
5608         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
5609         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
5610         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
5611         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
5612         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
5613         DEF_VEC_ALLOC_FUNC_P.
5614         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
5615         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
5616         DEF_VEC_ALLOC_FUNC_O.
5617         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
5618         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
5619         DEF_VEC_ALLOC_FUNC_I.
5620         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
5621         (vec_stack_p_reserve_exact_1): Declare.
5622         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
5623         (vec_stack_free): Declare.
5624         (VEC_stack_alloc): Define.
5625         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
5626         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
5627         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
5628         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
5629         for void_p.
5630         (stack_vecs): New static variable.
5631         (vec_stack_p_reserve_exact_1): New function.
5632         (vec_stack_o_reserve_1): New static function.
5633         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
5634         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
5635         (vec_stack_free): New function.
5636         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
5637         (VEC_df_ref_stack_alloc): Define.
5638         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
5639         DEF_VEC_ALLOC_P_STACK.
5640         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
5641         (struct df_collection_rec): Change _vec fields to VEC.  Remove
5642         _use fields.
5643         (df_free_collection_rec): Adjust for new fields.
5644         (df_insn_rescan): Use new df_collection_rec fields.
5645         (df_notes_rescan, df_canonize_collection_rec): Likewise.
5646         (df_ref_create_structure, df_ref_record): Likewise.
5647         (df_get_conditional_uses, df_get_call_refs): Likewise.
5648         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
5649         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
5650         (df_record_exit_block_uses, df_bb_verify): Likewise.
5651         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
5652         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
5653         Remove count parameter.  Change return type to void.  Change all
5654         callers.
5655         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
5656         Remove count parameter.  Change return type to void.  Change all
5657         callers.
5658         (df_install_refs): Change old_vec parameter to VEC.  Remove count
5659         parameter.  Change all callers.
5660         (df_install_mws): Change old_vec parameter to VEC.  Remove count
5661         parameter.  Change all callers.
5662         (df_refs_verify): Change new_rec parameter to VEC.  Change call
5663         callers.
5664         (df_mws_verify): Likewise.
5665
5666 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
5667
5668         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
5669
5670 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5671
5672         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
5673
5674 2009-06-10  Anthony Green  <green@moxielogic.com>
5675
5676         * config/moxie/crti.asm: New file.
5677         * config/moxie/crtn.asm: New file.
5678         * config/moxie/moxie.c: New file.
5679         * config/moxie/moxie.h: New file.
5680         * config/moxie/sfp-machine.h: New file.
5681         * config/moxie/moxie-protos.h: New file.
5682         * config/moxie/t-moxie: Created.
5683         * config/moxie/t-moxie-softfp: Created.
5684         * config/moxie/moxie.md: Created.
5685         * config/moxie/constraints.md: Created.
5686         * config.gcc: Add moxie support.
5687         * doc/md.texi (Machine Constraints): Add moxie constraints.
5688         * doc/contrib.texi (Contributors): Mention moxie port.
5689         * doc/install.texi (Specific): Mention the moxie port.
5690
5691 2009-06-09  Ian Lance Taylor  <iant@google.com>
5692
5693         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
5694         compiling with C++.
5695         * optabs.c (optab_table): Only use designated initializers if
5696         HAVE_DESIGNATED_INITIALIZERS is defined.
5697         (convert_optab_table): Likewise.
5698         (init_optabs): Always call init_insn_codes if
5699         HAVE_DESIGNATED_INITIALIZERS is not defined.
5700
5701 2009-06-09  Ian Lance Taylor  <iant@google.com>
5702
5703         * targhooks.c (default_builtin_vectorized_function): Change fn
5704         parameter to unsigned int.
5705         (default_builtin_vectorized_conversion): Change code parameter to
5706         unsigned int.
5707         (default_builtin_reciprocal): Change fn parameter to unsigned int.
5708         * targhooks.h: Update declarations.
5709         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
5710         parameter to unsigned int.
5711
5712         * c-typeck.c (comptypes_check_enum_int): New static function.
5713         (comptypes_internal): Add enum_and_int_p parameter.  Change all
5714         callers.
5715         (comp_target_types): Add location parameter.  Change all callers.
5716         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
5717         Change all callers.
5718         (function_types_compatible_p, type_lists_compatible_p): Likewise.
5719         (build_conditional_expr): Add colon_loc parameter.  Change all
5720         callers.
5721         (convert_for_assignment): Add location parameter.  Change all callers.
5722         * c-parser.c (c_parser_conditional_expression): Pass location of
5723         colon to build_conditional_expr.
5724         * c-tree.h (build_conditional_expr): Update declaration.
5725
5726 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5727
5728         * graphite.c: Revert previous patch.
5729
5730 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5731
5732         PR bootstrap/40103
5733         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
5734
5735 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5736
5737         * tree-ssa-loop-prefetch.c
5738         (loop_prefetch_arrays): Fixed a portability problem in printf format
5739         string.
5740
5741 2009-06-09  Martin Jambor  <mjambor@suse.cz>
5742
5743         PR tree-optimization/40351
5744         * tree-sra.c (propagate_subacesses_accross_link): Check that a
5745         refrence to a potential artifical subaccess can be constructed.
5746
5747 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5748
5749         * config/sh/sh-protos.h (sh_optimization_options): Declare.
5750         (sh_override_options): Likewise.
5751         * config/sh/sh.c: Include params.h.
5752         (sh_optimization_options): New.
5753         (sh_override_options): Likewise.
5754         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
5755         (OVERRIDE_OPTIONS): Use sh_override_options.
5756
5757 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5758
5759         * dwarf2out.c (emit_cfa_remember): New variable.
5760         (add_fde_cfi): If emit_cfa_remember, recurse to add
5761         DW_CFA_remember_state first.
5762         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
5763         instead just set emit_cfa_remember.
5764
5765 2009-06-08  Jan Hubicka  <jh@suse.cz>
5766
5767         PR debug/40126
5768         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
5769
5770 2009-06-08  Jan Hubicka  <jh@suse.cz>
5771
5772         PR middle-end/39834
5773         * cgraphunit.c (save_inline_function_body): Do not copy transform
5774         hooks for saved inline bodies.
5775         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
5776         for given function.
5777
5778 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
5779
5780         * jump.c (returnjump_p): Handle delayed branches.  Add missing
5781         function comment.
5782
5783 2009-06-08  Jan Hubicka  <jh@suse.cz>
5784
5785         PR middle-end/40102
5786         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
5787         original node might've been modified.
5788         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
5789
5790 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5791
5792         * tree-object-size.c (addr_object_size): Add OSI argument.
5793         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
5794         (compute_builtin_object_size, expr_object_size): Adjust callers.
5795         (plus_stmt_object_size): Call addr_object_size instead of
5796         compute_builtin_object_size.
5797
5798 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5799             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5800         
5801         * tree-ssa-loop-prefetch.c 
5802         (gather_memory_references): Introduced a counter for the number of 
5803         memory references.
5804         (anything_to_prefetch_p): Introduced a counter for the number of 
5805         prefetches.
5806         (is_loop_prefetching_profitable): New function with a cost model 
5807         for prefetching.
5808         (loop_prefetch_arrays): Use the new cost model to determine if 
5809         prefetching is profitable.
5810         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
5811         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5812         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
5813         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5814         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
5815         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5816         
5817 2009-06-08  Michael Matz  <matz@suse.de>
5818
5819         PR debug/40012
5820         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
5821         partitions use the same.
5822         (expand_one_var): Deal with DECL_RTL sometimes begin set also
5823         for basevars of SSA_NAMEs.
5824         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
5825         to not expand them twice.
5826         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
5827         multiple places.
5828
5829 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
5830
5831         * common.opt (fcompare-debug=, fcompare-debug-second): New.
5832         (fdump-final-insns=, gtoggle): New.
5833         * doc/invoke.texi: Document them.
5834         * final.c (rest_of_clean_state): Dump final insn stream.
5835         * gcc.c (invoke_as): Hook in -fcompare-debug.
5836         (static_spec_functions): Add compare-debug-dump-opt,
5837         compare-debug-self-opt and compare-debug-auxbase-opt.
5838         (compare_debug, compare_debug_second, compare_debug_opt): New.
5839         (switches_debug_check, n_switches_debug_check): New.
5840         (debug_auxbase_opt, debug_check_temp_file): New.
5841         (process_command): Handle -fno-compare-debug, -fcompare-debug and
5842         -fcompare-debug=*.
5843         (do_self_spec): Handle arguments after switches.
5844         (do_spec_1): Add .gk extension to temp file basenames for compare.
5845         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
5846         (cc1_options): Use it instead of normal auxbase computation for
5847         the second compare-debug compilation.
5848         (compare_files): New.
5849         (main): Set up and implement compare debug mode.
5850         (compare_debug_dump_opt_spec_function): New.
5851         (compare_debug_self_opt_spec_function): New.
5852         (compare_debug_auxbase_opt_spec_function): New.
5853         * toplev.c (process_options): Handle flag_gtoggle,
5854         flag_dump_final_insns.
5855         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
5856         during -fcompare-debug-second compilation.
5857
5858 2009-06-07  Ian Lance Taylor  <iant@google.com>
5859
5860         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
5861         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
5862
5863         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
5864         with no default node.  Change warning with %H to warning_at.
5865         Don't clear warn_switch around case checking.
5866         * doc/invoke.texi (Warning Options): Clarify distinction between
5867         -Wswitch and -Wswitch-enum.
5868
5869 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5870
5871         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
5872
5873 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5874
5875         * gbl-ctors.h: Add header guard.
5876
5877 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5878
5879         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
5880         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
5881         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
5882         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
5883         prototypes for removed functions.
5884         (expressions_equal_p): Move to ...
5885         * tree-ssa-sccvn.h: ... here and ...
5886         * matrix-reorg.c: ... adjust includes.
5887
5888 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5889
5890         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
5891
5892 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5893
5894         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
5895         (finish_function): Remove erroneous whitespace.
5896
5897 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5898
5899         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
5900         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
5901
5902 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5903
5904         * errors.c (internal_error): Commentary typo fix.
5905         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
5906         * tree-ssa-pre.c: Ditto.
5907
5908 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5909
5910         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
5911         them is supposed to hold actual statements.
5912
5913 2009-06-06  Ian Lance Taylor  <iant@google.com>
5914
5915         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
5916         empty statements can now have attributes.
5917
5918 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
5919
5920         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
5921         * config/mips/mips.md: Ditto.
5922
5923 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5924
5925         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
5926         _RELOCATABLE.
5927         (__eabi_uconvert): Likewise.
5928
5929 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5930
5931         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
5932         CFI_* definitions with IN_GCC.
5933
5934 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
5935
5936         * xcoffout.h (xcoffout_source_line): Update prototype.
5937
5938 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5939
5940         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
5941         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
5942
5943 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5944
5945         PR middle-end/40340
5946         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
5947         inlined_function_outer_scope_p blocks for artificial inlines
5948         even at -g0/-g1.
5949         * tree.c (tree_nonartificial_location): Rewrite using
5950         block_nonartificial_location.
5951
5952 2009-06-05  Revital Eres  <eres@il.ibm.com>
5953             Leehod Baruch  <leehod@il.ibm.com>
5954
5955         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
5956         (expand_expr_real_1): Remove comment.
5957         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5958         Vectorize misaligned access when the target supports it.
5959         (vect_supportable_dr_alignment): Check for unaligned access support.
5960         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
5961         and remove asset.
5962
5963 2009-06-05  Julian Brown  <julian@codesourcery.com>
5964
5965         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
5966         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
5967
5968 2009-06-05  Richard Guenther  <rguenther@suse.de>
5969
5970         PR bootstrap/40350
5971         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
5972         as possibly unused.
5973
5974 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5975
5976         * config/s390/s390.c (global_not_special_regno_p): New static inline.
5977         (save_gprs): Don't tell unwinder when a global register is saved.
5978         (s390_emit_epilogue): Emit needed epilogue unwind info.
5979
5980 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5981
5982         * dwarf2out.c (deferred_asm_name): New.
5983         (add_name_and_src_coords_attributes): Defer creation of
5984         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
5985         computed yet.
5986         (move_linkage_attr): New.
5987         (dwarf2out_finish): Revisit deferrals and emit attributes at the
5988         right place.
5989
5990 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5991
5992         * tree-nested.c (finalize_nesting_tree_1): Declare the
5993         frame_decl in the binding tree.
5994
5995 2009-06-04  Cary Coutant  <ccoutant@google.com>
5996
5997         * basic-block.h (struct basic_block_def): Add discriminator field.
5998         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
5999         callers.
6000         * debug.c (do_nothing_debug_hooks): Add additional entry.
6001         (debug_nothing_int_charstar_int): New function.
6002         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
6003         (debug_nothing_int_charstar_int): New declaration.
6004         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
6005         discriminator value in .loc directive.
6006         * final.c (last_discriminator): New variable.
6007         (discriminator): New variable.
6008         (final_start_function): Initialize above variables, pass current
6009         discriminator to debug hook.
6010         (notice_source_line): Check for discriminator change.
6011         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
6012         * sdbout.c (sdbout_source_line): New parameter.
6013         * tree-cfg.c (struct locus_discrim_map): New structure type.
6014         (discriminator_per_locus): New hash table.
6015         (build_gimple_cfg): Allocate and free discriminator hash table.
6016         (make_edges): Call assign_discriminator.
6017         (locus_map_hash): New function.
6018         (locus_map_eq): New function.
6019         (next_discriminator_for_locus): New function.
6020         (same_line_p): New function.
6021         (assign_discriminator): New function.
6022         (make_cond_expr_edges): Call assign_discriminator.
6023         (make_gimple_switch_edges): Likewise.
6024         (first_non_label_stmt): New function.
6025         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
6026         all callers.
6027         * xcoffout.c (xcoffout_source_line): Add new parameter.
6028
6029         * configure.ac (gcc_cv_as_discriminator): New configury check for
6030         gas support for discriminator.
6031         * configure: Regenerate.
6032         * config.in: Regenerate.
6033
6034 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6035
6036         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
6037         val after checking for integers.
6038
6039 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
6040
6041         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
6042         X64_REGPARM_MAX.
6043         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
6044         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
6045         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
6046         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
6047         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
6048         X64_SSE_REGPARM_MAX.
6049         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
6050         X64_SSE_REGPARM_MAX.
6051
6052 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
6053
6054         * gcc.c (report_times_to_file): New.
6055         (execute): Implement it.
6056         (process_command): Support -time=.
6057         * doc/invoke.texi: Document it.
6058
6059 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
6060
6061         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
6062         that have value exprs.
6063
6064 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
6065
6066         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
6067         declarations for constants until...
6068         (dw2_output_indirect_constant_1): ... this point.
6069
6070 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
6071
6072         PR target/10242
6073         * arm.md (arm_addsi3): Don't try to split an add with an
6074         eliminable register until after reload has completed.
6075
6076 2009-06-03  Ian Lance Taylor  <iant@google.com>
6077
6078         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
6079         * genattrtab.c (write_length_unit_log): Likewise.
6080         * genchecksum.c (dosum): Likewise.
6081         * gengtype.c (write_rtx_next): Likewise.
6082         (finish_root_table, write_roots): Likewise.
6083         * gimple.c (gimple_ops_offset_): Likewise.
6084         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
6085         * config/arc/arc.c (arc_attribute_table): Likewise.
6086         * config/arm/arm.c (arm_attribute_table): Likewise.
6087         * config/avr/avr.c (avr_attribute_table): Likewise.
6088         * config/crx/crx.c (crx_attribute_table): Likewise.
6089         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
6090         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
6091         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
6092         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
6093         * config/sh/sh.c (sh_attribute_table): Likewise.
6094         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
6095         * config/spu/spu.c (spu_attribute_table): Likewise.
6096         * config/v850/v850.c (v850_attribute_table): Likewise.
6097
6098         * config/alpha/alpha.c (vms_attribute_table): Make static.
6099         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
6100         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
6101         * config/mips/mips.c (mips_attribute_table): Likewise.
6102
6103         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
6104         $(SYSTEM_H).
6105         (cc1-checksum.o): Likewise.
6106
6107 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
6108
6109         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
6110
6111 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
6112
6113         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
6114         insn if it is changing sp.  Use gen_add3_insn instead of
6115         conditionally gen_addsi3 and gen_adddi3.
6116         (offset_below_red_zone_p): New static inline function.
6117         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
6118         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
6119         * config/rs6000/ppc-asm.h: Include auto-host.h.
6120         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
6121         CFI_RESTORE): Define.
6122         * config/rs6000/crtresxgpr.asm: Add unwind info.
6123         * config/rs6000/crtresxfpr.asm: Likewise.
6124         * config/rs6000/crtresgpr.asm: Likewise.
6125         * config/rs6000/crtresfpr.asm: Likewise.
6126         * config/rs6000/crtsavgpr.asm: Likewise.
6127         * config/rs6000/crtsavfpr.asm: Likewise.
6128
6129         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
6130         argument of DWARF2_FRAME_REG_OUT macros.
6131
6132 2009-06-03  Julian Brown  <julian@codesourcery.com>
6133
6134         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
6135         words or less (including TImode) in core registers.
6136
6137 2009-06-03  Richard Guenther  <rguenther@suse.de>
6138
6139         PR middle-end/40328
6140         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
6141
6142 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
6143
6144         * statistics.c (statistics_counter_event): Do not record event 
6145         in pass dump if its number == -1.
6146         (curr_statistics_hash): Add assert that we never get passes 
6147         with static number == -1.
6148
6149 2009-06-03  Richard Guenther  <rguenther@suse.de>
6150             Andrey Belevantsev  <abel@ispras.ru>
6151
6152         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
6153         non-BLKmode arrays addressable.
6154
6155 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
6156
6157         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
6158         * config/m68k/m68k.h: ... here.
6159         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
6160         m68k and fido.
6161
6162 2009-06-03  Martin Jambor  <mjambor@suse.cz>
6163
6164         PR tree-optimization/40323
6165         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
6166         assignment.
6167
6168 2009-06-03  Richard Guenther  <rguenther@suse.de>
6169
6170         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
6171         consistently.
6172
6173 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
6174
6175         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
6176         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
6177         JUMP_TABLE_DATA_P where applicable.
6178         * config/sh/sh.c: Ditto.
6179         * config/sh/sh.h: Ditto.
6180         * config/sh/sh.md: Ditto.
6181         * config/sh/symbian.c: Ditto.
6182
6183 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
6184
6185         * config/i386/driver-i386.c (describe_cache): Optimize
6186         concatenation of strings.  Use snprintf instead of sprintf.
6187         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
6188         target when not compiling with GCC.
6189
6190 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
6191
6192         * config/sh/sh.c: Revert last change.
6193         (sh_expand_epilogue): Emit a blockage insn before the frame
6194         pointer adjustment unconditionally.
6195
6196 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6197
6198         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
6199         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
6200         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
6201         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
6202         to COLLECT_GCC_OPTIONS.
6203
6204 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6205
6206         * collect2.c (target_system_root): New variable.
6207         (main): Handle --sysroot=.
6208         (ignore_library): Strip the sysroot from the library path.
6209
6210 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6211
6212         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
6213         (collect2.o): Depend on collect2-aix.h.
6214         (collect2-aix.o): New rule.
6215         * collect2-aix.h: New file.
6216         * collect2-aix.c: Likewise.
6217         * collect2.c: Include collect2-aix.h.  Don't undefine
6218         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
6219         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
6220         Use TARGET_AIX_VERSION instead of _AIX51.
6221         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
6222         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
6223         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
6224         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
6225         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
6226
6227 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6228
6229         * collect2.c (ignore_library): Avoid premature post-increment
6230         and null deference.
6231
6232 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6233
6234         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
6235         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
6236         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
6237         CROSS_DIRECTORY_STRUCTURE too.
6238         (LINK_LIBG_SPEC): Likewise.
6239         (LIB_SPEC): Add %R to sysroot paths.
6240         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
6241         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
6242         * config/rs6000/aix51.h: As for aix43.h.
6243         * config/rs6000/aix52.h: Likewise.
6244         * config/rs6000/aix53.h: Likewise.
6245         * config/rs6000/aix61.h: Likewise.
6246         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
6247         to the beginning of sysroot paths.
6248
6249 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6250
6251         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
6252         INSN_LISTs that are out of the REG_NOTE range.
6253
6254 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6255
6256         * loop-unroll.c (struct iv_to_split): Add pointer to next.
6257         (struct var_to_expand): Likewise.
6258         (struct opt_info): Add head and tail for linked lists of the above.
6259         (analyze_insn_to_expand_var): Initialize next.
6260         (analyze_iv_to_split_insn): Likewise.
6261         (analyze_insns_in_loop): Create linked lists.
6262         (allocate_basic_variable): Simplify for use without hash table.
6263         (insert_var_expansion_initialization): Likewise, make it type-safer.
6264         (combine_var_copies_in_loop_exit): Likewise.
6265         (apply_opt_in_copies): Walk lists rather than hash tables.
6266         (release_var_copies): Simplified and inlined by hand into...
6267         (free_opt_info): ... this function.
6268
6269 2009-06-02  Richard Guenther  <rguenther@suse.de>
6270
6271         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
6272         for field decls.
6273
6274 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6275
6276         * cfgexpand.c (gimple_expand_cfg): Discard the source location
6277         only for builtins that are not overridden.
6278
6279 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6280
6281         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
6282         label string.
6283
6284 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6285
6286         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
6287
6288 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6289
6290         * combine.c (move_deaths): Compare LUIDs within the same BB only.
6291
6292 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6293
6294         * common.opt (fdump-unnumbered-links): New.
6295         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
6296         * print-rtl.c (flag_dump_unnumbered_links): New.
6297         (print_rtx): Test it.
6298
6299 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
6300
6301         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
6302         push/pop multiple to 8-byte alignment.
6303
6304 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
6305
6306         * config/i386/i386.c (queued_cfa_restores): New static variable.
6307         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
6308         functions.
6309         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
6310         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
6311         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
6312         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
6313         note unconditionally.
6314         (ix86_emit_restore_regs_using_mov): Likewise.
6315         (ix86_emit_restore_sse_regs_using_mov): Likewise.
6316         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
6317         it through to ix86_emit_restore_reg_using_pop.
6318         (ix86_emit_leave): Add RED_OFFSET argument.  Call
6319         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
6320         instead of adding REG_CFA_OFFSET note unconditionally.
6321         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
6322         the above functions.  Call ix86_add_queued_cfa_restore_notes when
6323         needed.
6324
6325         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
6326         force output of the label even for dwarf2out_do_cfi_asm.
6327         (add_fde_cfi): If -g2 and above and cfi might change CFA,
6328         force creation of CFI label and chain DW_CFA_set_loc jumping to it
6329         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
6330         caller.
6331         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
6332         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
6333         dwarf2out_cfi_label callers.
6334         * tree.h (dwarf2out_cfi_label): Adjust prototype.
6335         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
6336         Adjust dwarf2out_cfi_label callers.
6337         * config/vax/vax.c (vax_output_function_prologue): Likewise.
6338
6339         * config/i386/i386.h (struct machine_cfa_state,
6340         struct machine_function): Guard with ifndef USED_FOR_TARGET
6341         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
6342
6343         PR other/40024
6344         * emutls.c (__emutls_get_address): Change arr->size to mean number
6345         of allocated arr->data entries instead of # of slots + 1.
6346
6347         PR middle-end/40316
6348         * recog.c (peep2_reinit_state): New function.
6349         (peephole2_init_state): Use it at the end of a basic block and also
6350         when seeing a RTX_FRAME_RELATED_P insn.
6351
6352 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
6353
6354         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
6355         fixuns_truncrfdi2): New.
6356         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
6357         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
6358         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
6359         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
6360         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
6361         *recip_approx): Remove.
6362         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
6363         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
6364         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
6365         move to div.md.
6366         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
6367         setf_exp_rf): New.
6368
6369 2009-06-01  Ian Lance Taylor  <iant@google.com>
6370
6371         * attribs.c (register_attribute): Use CONST_CAST.
6372         * collect2.c (main): Use CONST_CAST2.
6373         (scan_prog_file): Likewise.
6374         * gcc.c (process_command, main): Likewise.
6375         * toplev.c (toplev_main): Likewise.
6376
6377         * c-typeck.c (handle_warn_cast_qual): New static function,
6378         partially broken out of build_c_cast.
6379         (build_c_cast): Call handle_warn_cast_qual.
6380         * doc/invoke.texi (Warning Options): Document new effect of
6381         -Wcast-qual.
6382
6383 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
6384
6385         * diagnostic.c (diagnostic_build_prefix): Always print columns.
6386         (diagnostic_report_current_module): Print columns.
6387         * common.opt (flag_show_column): Enable by default.
6388
6389 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
6390
6391         * alias.c (find_base_term): Check for NULL term before returning.
6392
6393 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6394
6395         Revert due to PR40320:
6396         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6397         * calls.c (emit_library_call_value_1): Don't force_operand for move
6398         and push insns.
6399
6400 2009-06-01  Olivier Hainque  <hainque@adacore.com>
6401             Eric Botcazou  <ebotcazou@adacore.com>
6402
6403         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
6404         to be processed as a bitfield for constructor output purposes.
6405         * output.h (initializer_constant_valid_for_bitfield_p): Declare
6406         new function.
6407         * varasm.c (oc_local_state): New type, output_constructor
6408         local state to support communication with helpers.
6409         (oc_outer_state): New type, output_constructor outer state of
6410         relevance in recursive calls.
6411         (output_constructor_array_range): New output_constructor helper,
6412         extracted code for an array range element.
6413         (output_constructor_regular_field): New output_constructor helper,
6414         extracted code for an element that is not a bitfield.
6415         (output_constructor_bitfield): New output_constructor helper,
6416         extracted code for a bitfield element.  Accept an OUTER state
6417         argument for recursive processing.  Recurse on record or array
6418         CONSTRUCTOR values, possibly past noop conversions.
6419         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
6420         VALUE is a valid constant-valued expression for use in a static
6421         bit-field initializer.
6422         (output_constructor): Rework to use helpers.  Accept and honor an
6423         OUTER state argument for recursive calls.  Return total size.  Be
6424         prepared for nested constructors initializing bitfields.
6425         (output_constant): Feed OUTER in calls to output_constructor.
6426
6427 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6428
6429         * calls.c (emit_library_call_value_1): Don't force_operand for move
6430         and push insns.
6431
6432 2009-06-01  Nick Clifton  <nickc@redhat.com>
6433
6434         * doc/invoke.texi (IA-64 Options): Fix typo.
6435
6436 2009-06-01  Ira Rosen  <irar@il.ibm.com>
6437
6438         PR tree-optimization/39129
6439         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
6440         printed message.
6441         (vect_do_peeling_for_loop_bound): Use
6442         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6443         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6444         (vect_loop_versioning): Likewise.
6445         (vect_create_cond_for_alias_checks): Fix indentation.
6446         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
6447         macros.
6448         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
6449         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
6450         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
6451         "control flow in loop".
6452         (vect_estimate_min_profitable_iters): Use
6453         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6454         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6455         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6456         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
6457         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
6458         statement belongs to a group of strided accesses with the exact code
6459         check.
6460         (vectorizable_load): Likewise.
6461         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
6462         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
6463
6464 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
6465
6466         * config/freebsd-stdint.h: New file.
6467         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
6468         Add freebsd-stdint.h to tm_file.
6469
6470 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
6471
6472         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
6473         (thumb2_extendhidi2): Likewise.
6474
6475 2009-05-31  Ian Lance Taylor  <iant@google.com>
6476
6477         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
6478
6479 2009-05-31  Ian Lance Taylor  <iant@google.com>
6480
6481         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
6482         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
6483         (ipa-reference.o): Depend upon gt-ipa-reference.h.
6484
6485 2009-05-31  Jason Merrill  <jason@redhat.com>
6486
6487         * tree-pretty-print.c (print_call_name): Take the callee, not the
6488         call itself.  Make non-static.  Use dump_function_name for functions.
6489         (dump_generic_node): Adjust.
6490         * diagnostic.h: Declare print_call_name.
6491         * gimple-pretty-print.c (dump_gimple_call): Use it.
6492
6493 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6494
6495         * config/sh/sh.md (ashldi3_std): New define_expand.
6496         (ashldi3): Use it.
6497
6498 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6499
6500         PR target/40313
6501         * config/sh/sh.c: Include debug.h.
6502         (sh_expand_epilogue): Emit a blockage insn before the frame
6503         pointer adjustment also when dwarf2out_do_frame returns true.
6504
6505 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
6506
6507         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
6508         (thumb2_extendqidi2): New pattern.
6509
6510 2009-05-31  Ira Rosen  <irar@il.ibm.com>
6511
6512         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
6513         mark phis for renaming.
6514         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
6515         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
6516         Call mark_sym_for_renaming.
6517         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
6518         * tree-vect-loop.c (vect_transform_loop): Remove
6519         vect_memsyms_to_rename initialization and a call to
6520         mark_set_for_renaming.
6521
6522 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
6523
6524         PR middle-end/40304
6525         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
6526         frame related even if !set_cfa && style < 0.
6527
6528 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
6529
6530         * config/i386/mingw-tls.c: New file.
6531         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
6532         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
6533         defining _WIN32 but not __CYGWIN__.
6534
6535 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6536
6537         * configure.ac: Add MPC support.
6538         
6539         * config.in, configure: Regenerate.     
6540
6541 2009-05-29  Richard Henderson  <rth@redhat.com>
6542
6543         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
6544         NOTE_INSN_BASIC_BLOCK.
6545         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
6546         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
6547         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
6548         to be deleted.
6549         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
6550         add in_use field.
6551         (add_cfi): Disable check redefining cfa away from drap.
6552         (lookup_cfa_1): Add remember argument; handle remember/restore.
6553         (lookup_cfa): Pass remember argument.
6554         (cfa_remember): New.
6555         (compute_barrier_args_size_1): Remove sibcall check.
6556         (dwarf2out_frame_debug_def_cfa): New.
6557         (dwarf2out_frame_debug_adjust_cfa): New.
6558         (dwarf2out_frame_debug_cfa_offset): New.
6559         (dwarf2out_frame_debug_cfa_register): New.
6560         (dwarf2out_frame_debug_cfa_restore): New.
6561         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
6562         (dwarf2out_begin_epilogue): New.
6563         (dwarf2out_frame_debug_restore_state): New.
6564         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
6565         DW_CFA_restore_state.
6566         (output_cfi_directive): Likewise.
6567         (convert_cfa_to_fb_loc_list): Likewise.
6568         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
6569         * dwarf2out.h: Update.
6570         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
6571         (copy_insn_1): Early out for null.
6572         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
6573         and dwarf2out_frame_debug_restore_state.
6574         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
6575         (prologue_insn_hash, epilogue_insn_hash): New.
6576         (free_after_compilation): Adjust freeing accordingly.
6577         (record_insns): Create hash table if needed; push insns into
6578         hash instead of array.
6579         (maybe_copy_epilogue_insn): New.
6580         (contains): Search hash table instead of array.
6581         (sibcall_epilogue_contains): Remove.
6582         (thread_prologue_and_epilogue_insns): Split eh_return insns
6583         and mark them as epilogues.
6584         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
6585         scanning in terms of basic blocks.
6586         * insn-notes.def (CFA_RESTORE_STATE): New.
6587         * jump.c (returnjump_p_1): Accept EH_RETURN.
6588         (eh_returnjump_p_1, eh_returnjump_p): New.
6589         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
6590         CFA_REGISTER, CFA_RESTORE): New.
6591         * rtl.def (EH_RETURN): New.
6592         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
6593
6594         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
6595         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
6596
6597         * config/i386/i386.c (gen_push): Update cfa state.
6598         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
6599         add a CFA_ADJUST_CFA note.
6600         (ix86_dwarf_handle_frame_unspec): Remove.
6601         (ix86_expand_prologue): Update cfa state.
6602         (ix86_emit_restore_reg_using_pop): New.
6603         (ix86_emit_restore_regs_using_pop): New.
6604         (ix86_emit_leave): New.
6605         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
6606         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
6607         * config/i386/i386.h (struct machine_cfa_state): New.
6608         (ix86_cfa_state): New.
6609         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
6610         (eh_return_internal): Merge from eh_return_<mode>,
6611         use eh_return rtx, split w/ epilogue.
6612
6613 2009-05-29  Ian Lance Taylor  <iant@google.com>
6614
6615         * builtins.c (validate_gimple_arglist): Don't use va_arg with
6616         enum type.
6617         * calls.c (emit_library_call_value_1): Likewise.
6618
6619         * c-typeck.c (c_build_va_arg): New function.
6620         * c-tree.h (c_build_va_arg): Declare.
6621         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
6622         instead of build_va_arg.
6623
6624 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6625
6626         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
6627         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
6628         (ptr_difference_cost): Use affine combinations to compute it.
6629         (difference_cost): Likewise.
6630         (get_computation_cost_at): Compute more accurate cost for addresses
6631         if the ratio is a multiplier allowed in addresses.
6632         For non-addresses, consider that an additional offset or symbol is
6633         added only once.
6634
6635 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6636
6637         * config/i386/i386.c (ix86_decompose_address): Avoid useless
6638         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
6639
6640         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
6641         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
6642         (prefix_rex): For UNIT_MMX don't imply the prefix by default
6643         if MODE_DI.
6644         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
6645         to 1 for TYPE_SSE{IADD1,CVT1}.
6646         (prefix_vex_imm8): Removed.
6647         (length_vex): Only pass 1 as second argument to
6648         ix86_attr_length_vex_default if prefix_extra is 0.
6649         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
6650         (length): For prefix vex computation use length_immediate
6651         attribute instead of prefix_vex_imm8.
6652         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
6653         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
6654         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
6655         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
6656         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
6657         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
6658         a space in between the operands.
6659         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
6660         if one operand is 0xff and the other one si, di, bp or sp.
6661         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
6662         other one si, di, bp or sp.
6663         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
6664         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
6665         type and mode attributes.
6666         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
6667         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
6668         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
6669         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
6670         prefix_data16 attribute iff MODE_DF.
6671         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
6672         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
6673         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
6674         constm128_operand in length_immediate computation.
6675         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
6676         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
6677         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
6678         length_immediate attribute to 1.
6679         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
6680         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
6681         for certain alternatives.
6682         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
6683         prefix_data16 attribute if MODE_V1DF.
6684         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
6685         length_immediate to 1.
6686         (set_got_rex64, set_rip_rex64): Remove length attribute, set
6687         length_address to 4, set mode attribute to MODE_DI.
6688         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
6689         (fxam<mode>2_i387): Set length attribute to 4.
6690         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
6691         *prefetch_3dnow_rex): Override length_address attribute.
6692         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
6693         attributes.
6694         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
6695         (constm128_operand): Removed.
6696         * config/i386/i386.c (memory_address_length): For
6697         disp && !index && !base in 64-bit mode account for SIB byte if
6698         print_operand_address can't optimize disp32 into disp32(%rip)
6699         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
6700         for fs: or gs: segment.
6701         (ix86_attr_length_immediate_default): When checking if shortform
6702         is possible, truncate immediate to the length of the non-shortened
6703         immediate.
6704         (ix86_attr_length_address_default): Ignore MEM_P operands
6705         with X constraint.
6706         (ix86_attr_length_vex_default): Only check for DImode on
6707         GENERAL_REG_P operands.
6708         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
6709         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
6710         (sse_cvttps2pi): Clear prefix_rep attribute.
6711         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
6712         attribute.
6713         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
6714         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
6715         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
6716         iff operand 2 is const_int_operand.
6717         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
6718         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
6719         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
6720         instead of vex.
6721         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
6722         prefix_data16.
6723         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
6724         prefix_data16 attribute for movlpd and movhpd instructions.
6725         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
6726         length_immediate for shufpd instruction.
6727         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
6728         (avx_cmpp<avxmodesuffixf2c><mode>3,
6729         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
6730         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
6731         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
6732         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
6733         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
6734         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
6735         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
6736         prefix_data16 attribute for the first alternative to 1.
6737         (*avx_loadlps): Override length_immediate for the first alternative.
6738         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
6739         attributes for second alternative.
6740         (*vec_concatv2sf_sse4_1): Override length_immediate and
6741         prefix_data16 attributes for second alternative.
6742         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
6743         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
6744         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
6745         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
6746         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
6747         prefix_data16 and length_immediate to 1.
6748         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
6749         to 1.
6750         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
6751         prefix_extra attribute for variants that don't have 0f prefix alone.
6752         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
6753         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
6754         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
6755         *sse4_1_pextrd): Set length_immediate to 1.
6756         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
6757         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
6758         to 1.
6759         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
6760         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
6761         length_immediate to 1 for second alternative.
6762         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
6763         prefix_extra and length_immediate attributes for the first
6764         alternative.
6765         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
6766         first alternative.
6767         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
6768         to 1 for the first and third alternative.
6769         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
6770         alternative.
6771         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
6772         attribute.
6773         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
6774         attribute to 0.
6775         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
6776         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
6777         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
6778         *avx_psign<mode>3): Set prefix_extra attribute to 1.
6779         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
6780         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
6781         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
6782         ssse3_psign<mode>3): Override prefix_rex attribute.
6783         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
6784         (ssse3_palignrti): Override length_immediate to 1.
6785         (ssse3_palignrdi): Override length_immediate to 1, override
6786         prefix_rex attribute.
6787         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
6788         (sse4a_extrqi): Override length_immediate to 2.
6789         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
6790         (sse4a_insertq): Override prefix_data16 to 0.
6791         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
6792         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
6793         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
6794         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
6795         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
6796         and length_immediate to 1.
6797         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
6798         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
6799         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
6800         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
6801         and length_immediate to 1.
6802         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
6803         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
6804         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
6805         avx_ptest256): Override prefix_extra to 1.
6806         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
6807         Override prefix_data16 and length_immediate to 1.
6808         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
6809         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
6810         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
6811         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
6812         prefix_data16 to 0 and prefix_extra to 2.
6813         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
6814         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
6815         attribute.
6816         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
6817         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
6818         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
6819         and prefix_extra to 2.
6820         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
6821         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
6822         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
6823         avx_vpermilvar<mode>3,
6824         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
6825         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
6826         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
6827         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
6828         Override prefix_extra to 1.
6829         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
6830         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
6831         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
6832         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
6833         prefix_extra and length_immediate to 1.
6834         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
6835         modrm to 0.
6836         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
6837         to 1 for the first alternative.
6838         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
6839         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
6840         cases.
6841         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
6842         *movv2sf_internal_avx, *movv2sf_internal): Override
6843         prefix_rep attribute for certain alternatives.
6844         (*mov<mode>_internal): Override prefix_rep or prefix_data16
6845         attributes for certain alternatives.
6846         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
6847         attributes for certain alternatives.
6848         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
6849         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
6850         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
6851         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
6852         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
6853         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
6854         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
6855         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
6856         length_immediate to 1 if operand 2 is const_int_operand.
6857         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
6858         *vec_extractv2si_1): Set length_immediate attribute to 1.
6859         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
6860         using old 3DNOW insn rather than SSE/3DNOW_A.
6861         (mmx_emms, mmx_femms): Clear modrm attribute.
6862
6863 2009-05-29  Martin Jambor  <mjambor@suse.cz>
6864
6865         * tree-sra.c:  New implementation of SRA.
6866
6867         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
6868         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
6869         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
6870         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
6871         (SRA_MAX_STRUCTURE_COUNT): Removed.
6872         (SRA_FIELD_STRUCTURE_RATIO): Removed.
6873         * doc/invoke.texi (sra-max-structure-size): Removed.
6874         (sra-field-structure-ratio): Removed.
6875
6876 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6877
6878         PR middle-end/40291
6879         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
6880         before expansion.
6881
6882 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
6883
6884         PR rtl-optimization/40101
6885         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
6886         seqno.  Adjust comment.
6887         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
6888         inserting bookkeeping before a jump, the jump is not scheduled.
6889         When no positive seqno found, provide a value.  Add comment.
6890
6891 2009-05-29  Richard Guenther  <rguenther@suse.de>
6892
6893         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
6894         short-cutting on the first component.
6895
6896 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6897
6898         PR middle-end/39958
6899         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
6900         for trees other than decls/types.
6901
6902 2009-05-29  Richard Guenther  <rguenther@suse.de>
6903
6904         * tree-ssa-operands.c (get_expr_operands): Do not handle
6905         INDIRECT_REFs in the handled-component case.  Remove
6906         unused get_ref_base_and_extent case.
6907         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
6908         tree_low_cst and host_integerp where possible.
6909         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
6910         codes for equivalence.
6911         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
6912
6913 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
6914
6915         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
6916         to tmake_file for i[34567]86-*-cygwin*. 
6917
6918 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6919
6920         PR target/40017
6921         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
6922         (altivec_categorize_keyword, init_vector_keywords,
6923         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
6924         similar to bool.
6925
6926 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
6927
6928         * tree.c (handle_dll_attribute): Check if node is
6929         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
6930
6931 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
6932
6933         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
6934         component.
6935         (thumb2_zero_extendqidi2): Likewise.
6936
6937 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6938
6939         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
6940         instead of gen_movrt.
6941         * config/sh/sh.md (movrt): Remove.
6942
6943 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
6944
6945         * doc/invoke.texi (IA-64 Options):
6946         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
6947         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
6948         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
6949         -msched-prefer-non-control-spec-insns,
6950         -msched-stop-bits-after-every-cycle,
6951         -msched-count-spec-in-critical-path,
6952         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
6953         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
6954         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
6955         and -msched-spec-verbose.
6956
6957 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
6958
6959         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
6960         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
6961         error if used.
6962         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
6963
6964 2009-05-28  Richard Guenther  <rguenther@suse.de>
6965
6966         * tree-ssa-alias.c (ao_ref_init): New function.
6967         (ao_ref_base): Likewise.
6968         (ao_ref_base_alias_set): Likewise.
6969         (ao_ref_alias_set): Likewise.
6970         (refs_may_alias_p_1): Change signature.
6971         (refs_may_alias_p): Adjust.
6972         (refs_anti_dependent_p): Likewise.
6973         (refs_output_dependent_p): Likewise.
6974         (call_may_clobber_ref_p_1): Change signature.
6975         (call_may_clobber_ref_p): Adjust.
6976         (stmt_may_clobber_ref_p_1): New function split out from ...
6977         (stmt_may_clobber_ref_p): ... here.
6978         (maybe_skip_until): Adjust signature.
6979         (get_continuation_for_phi): Likewise.
6980         (walk_non_aliased_vuses): Likewise.
6981         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
6982         (ao_ref_init): Declare.
6983         (ao_ref_base): Likewise.
6984         (ao_ref_alias_set): Likewise.
6985         (stmt_may_clobber_ref_p_1): Likewise.
6986         (walk_non_aliased_vuses): Adjust.
6987         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
6988         (get_ref_from_reference_ops): remove.
6989         (vn_reference_lookup_2): Adjust signature.
6990         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
6991         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
6992         (vn_reference_lookup): Adjust.
6993         (vn_reference_insert): Likewise.
6994         (vn_reference_insert_pieces): Adjust signature.
6995         (visit_reference_op_call): Adjust.
6996         * tree-ssa-pre.c (get_expr_type): Simplify.
6997         (phi_translate_1): Adjust.
6998         (compute_avail): Likewise.
6999         (translate_vuse_through_block): Do not re-build trees.
7000         (value_dies_in_block_x): Likewise.
7001         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
7002         fields.
7003         (vn_reference_lookup_pieces): Adjust declaration.
7004         (vn_reference_insert_pieces): Likewise.
7005
7006 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
7007
7008         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
7009         with checking disabled.
7010
7011 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
7012
7013         PR target/37216
7014
7015         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
7016         macro definition for support of three-operand format aligned
7017         .comm directive in assembler on cygwin/pe/mingw target OS.
7018         * configure:  Regenerate.
7019         * config.h:  Regenerate.
7020
7021         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
7022         aligned form of .comm directive if -mpe-aligned-commons is in effect.
7023         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
7024
7025         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
7026         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
7027
7028 2009-05-28  Ira Rosen  <irar@il.ibm.com>
7029
7030         PR tree-optimization/40254
7031         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
7032         in analysis of basic blocks.
7033
7034 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
7035
7036         PR middle-end/33699
7037         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
7038         * target-def.h (TARGET_CONST_ANCHOR): New macro.
7039         (TARGET_INITIALIZER): Use it.
7040         * cse.c (CHEAPER): Move it up to the other macros.
7041         (insert): Rename this ...
7042         (insert_with_costs): ... to this.  Add cost parameters.  Update
7043         function comment.
7044         (insert): New function.  Call insert_with_costs.
7045         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
7046         find_reg_offset_for_const, try_const_anchors): New functions.
7047         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
7048         when using a const-anchor.  Call insert_const_anchors.
7049         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
7050         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
7051
7052 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
7053
7054         * tree-inline.c (remap_decls): Enable nonlocalized variables
7055         when not optimizing.
7056
7057 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
7058
7059         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
7060         Simplify other tests involving optimize.
7061
7062 2009-05-27  Tom Tromey  <tromey@redhat.com>
7063
7064         * unwind-dw2.c (_Unwind_DebugHook): New function.
7065         (uw_install_context): Call _Unwind_DebugHook.
7066
7067 2009-05-27  Tom Tromey  <tromey@redhat.com>
7068
7069         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
7070
7071 2009-05-27  Ian Lance Taylor  <iant@google.com>
7072
7073         * Makefile.in (LINKER, LINKER_FLAGS): Define.
7074         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
7075         (ALL_LINKERFLAGS): Define.
7076         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
7077         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
7078         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
7079         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
7080         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
7081         $(LINKER_FOR_BUILD).
7082         (build/gcov-iov$(build_exeext)): Likewise.
7083
7084 2009-05-27  Julian Brown  <julian@codesourcery.com>
7085
7086         * gcse.c (target.h): Include.
7087         (can_assign_to_reg_without_clobbers_p): Check that the target allows
7088         copy of argument to a pseudo register.
7089
7090 2009-05-27  Diego Novillo  <dnovillo@google.com>
7091
7092         * tree-ssa-live.c (dump_scope_block): Document arguments.
7093         (dump_scope_blocks): Document.
7094         (debug_scope_blocks): New.
7095         * tree-flow.h (debug_scope_blocks): Declare.
7096
7097 2009-05-21  Denis Chertykov  <denisc@overta.ru>
7098
7099         * doc/contrib.texi (Contributors): Add myself to the list.
7100
7101 2009-05-27  Olivier Hainque  <hainque@adacore.com>
7102
7103         * expr.c (target_align): New function.  Alignment the TARGET of an
7104         assignment may be assume to have.
7105         (highest_pow2_factor_for_target): Use it instead of relying on
7106         immediate tree attributes of TARGET, not necessarily honored when
7107         intermediate bitfields are involved.
7108         
7109 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7110
7111         PR target/40266
7112         * config/i386/driver-i386.c (host_detect_local_cpu): Support
7113         AVX, SSE4, AES, PCLMUL and POPCNT.
7114
7115 2009-05-27  Diego Novillo  <dnovillo@google.com>
7116
7117         * tree-pretty-print.c (dump_location): New.
7118         (dump_generic_node): Call it.
7119         Factor code to handle BLOCK nodes ...
7120         (dump_block_node): ... here.
7121
7122 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
7123
7124         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
7125         with it.
7126         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
7127         included.
7128         * gcc-plugin.h: Include config.h and system.h.
7129         (IN_GCC): Define if not defined.
7130
7131 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
7132
7133         PR middle-end/40249
7134         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
7135         with -fno-inline.
7136
7137 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
7138
7139         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
7140         applicable.
7141         * config/m32r/m32r.h: Ditto.
7142         * config/m32r/m32r.md: Ditto.
7143         * config/m32r/predicates.md: Ditto.
7144
7145 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
7146
7147         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
7148
7149 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
7150
7151         * doc/plugins.texi
7152         (Loading plugins): typo.
7153         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
7154         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
7155         (Interacting with the GCC Garbage Collector): Added new section.
7156         (Giving information about a plugin): Added new section for
7157         PLUGIN_INFO.
7158         * ggc.h (ggc_register_root_tab): Added declaration.
7159         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
7160         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
7161         (register_callback): Improved comment in declaration.
7162         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
7163         (extra_root_vec) Added static variable for dynamic roots registration.
7164         (ggc_register_root_tab) Added new routine.
7165         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
7166         PLUGIN_GGC_MARKING event.
7167         * ggc-zone.c: Include plugin.h.
7168         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
7169         * ggc-page.c: Include plugin.h.
7170         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
7171         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
7172         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
7173         (register_callback): check lack of callbacks for
7174         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
7175         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
7176         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
7177         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
7178         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
7179         dependency on plugin.h.
7180         (plugin.o): Added dependency on ggc.h...
7181
7182 2009-05-26  Richard Guenther  <rguenther@suse.de>
7183
7184         PR middle-end/40248
7185         Revert
7186         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
7187         with mismatched comparison modes.
7188
7189         * expr.c (expand_expr_real_1): Expand the operand of a
7190         VIEW_CONVERT_EXPR in its natural mode.
7191
7192 2009-05-26  Ian Lance Taylor  <iant@google.com>
7193
7194         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
7195         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
7196         (ALL_COMPILERFLAGS): Define.
7197         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
7198         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
7199         (collect2$(exeext), collect2.o): Likewise.
7200         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
7201         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
7202         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
7203         (libbackend.o, intl.o, cppdefault.o): Likewise.
7204         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
7205         (build/%.o): Use $(COMPILER_FOR_BUILD).
7206         (build/gen%$(build_exeext)): Likewise.
7207         (build/gcov-iov$(build_exeext)): LIkewise.
7208         * config/t-darwin (darwin.o): Use $(COMPILER).
7209         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
7210         * config/t-sol2 (sol2-c.o): Likewise.
7211         (sol2.o): Likewise.
7212         * config/t-vxworks (vxworks.o): Likewise.
7213         * config/x-darwin (host-darwin.o): Likewise.
7214         * config/x-hpux (host-hpux.o): Likewise.
7215         * config/x-linux (host-linux.o): Likewise.
7216         * config/x-solaris (host-solaris.o): Likewise.
7217         * config/alpha/x-alpha (driver-alpha.o): Likewise.
7218         * config/arm/t-arm (arm-c.o): Likewise.
7219         * config/arm/t-pe (pe.o): Likewise.
7220         * config/arm/t-wince-pe (pe.o): Likewise.
7221         * config/i386/t-cygming (winnt.o): Likewise.
7222         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
7223         * config/i386/t-cygwin (cygwin1.o): Likewise.
7224         (cygwin2.o): Likewise.
7225         * config/i386/t-i386 (i386-c.o): Likewise.
7226         * config/i386/t-interix (winnt.o): Likewise.
7227         * config/i386/t-netware (netware.o): Likewise.
7228         * config/i386/t-nwld (nwld.o): Likewise.
7229         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
7230         * config/i386/x-i386 (driver-i386.o): Likewise.
7231         * config/i386/x-cygwin (host-cygwin.o): Likewise.
7232         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
7233         * config/ia64/t-ia64 (ia64-c.o): Likewise.
7234         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
7235         * config/mips/x-native (driver-native.o): Likewise.
7236         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
7237         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
7238         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
7239         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
7240         * config/score/t-score-elf (score7.o): Likewise.
7241         (score3.o): Likewise.
7242         * config/sh/t-sh (sh-c.o): Likewise.
7243         * config/sh/t-symbian (sh-c.o): Likewise.
7244         (symbian.o): Likewise.
7245         * config/spu/t-spu-elf (spu-c.o): Likewise.
7246         * config/v850/t-v850 (v850-c.o): Likewise.
7247         * config/v850/t-v850e (v850-c.o): Likewise.
7248
7249 2009-05-26  Richard Guenther  <rguenther@suse.de>
7250
7251         PR tree-optimization/40122
7252         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
7253         VECTOR_CSTs if possible.
7254         (fold_gimple_assign): Likewise.
7255
7256 2009-05-26  Richard Guenther  <rguenther@suse.de>
7257
7258         PR middle-end/40252
7259         * fold-const.c (fold_binary): Use the correct types for building
7260         rotates.
7261
7262 2009-05-26  Richard Guenther  <rguenther@suse.de>
7263
7264         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
7265         redundant calls to merge_alias_info.
7266         (bump_vector_ptr): Likewise.
7267         * tree-ssa-copy.c (merge_alias_info): Remove.
7268         (replace_exp_1): Remove call to merge_alias_info.
7269         (propagate_tree_value): Likewise.
7270         (fini_copy_prop): Propagate points-to info.
7271         * tree-flow.h (merge_alias_info): Remove.
7272
7273 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
7274
7275         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
7276
7277 2009-05-25  Jan Hubicka  <jh@suse.cz>
7278
7279         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
7280         * cgraph.h (struct inline_summary): New filed self_wize,
7281         size_inlining_benefit, self_time and time_inlining_benefit.
7282         (struct cgraph_global_info): Replace insns by time ans size fields.
7283         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
7284         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
7285         (ipcp_update_callgraph): Do not touch function bodies.
7286         * ipa-inline.c: Include except.h
7287         (MAX_TIME): New constant.
7288         (overall_insns): Remove.
7289         (leaf_node_p): New.
7290         (overall_size, max_benefit): New static variables.
7291         (cgraph_estimate_time_after_inlining): New function.
7292         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
7293         (cgraph_clone_inlined_nodes): Update size.
7294         (cgraph_mark_inline_edge): Update size.
7295         (cgraph_estimate_growth): Use size info.
7296         (cgraph_check_inline_limits): Check size.
7297         (cgraph_default_inline_p): Likewise.
7298         (cgraph_edge_badness): Compute badness based on benefit and size cost.
7299         (cgraph_decide_recursive_inlining): Check size.
7300         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
7301         and times.
7302         (cgraph_decide_inlining): Likewise.
7303         (cgraph_decide_inlining_incrementally): Likewise; honor
7304         PARAM_EARLY_INLINING_INSNS.
7305         (likely_eliminated_by_inlining_p): New predicate.
7306         (estimate_function_body_sizes): New function.
7307         (compute_inline_parameters): Use it.
7308         * except.c (must_not_throw_labels): New function.
7309         * except.h (must_not_throw_labels): Declare.
7310         * tree-inline.c (init_inline_once): Kill inlining_weigths
7311         * tree-ssa-structalias.c: Avoid uninitialized warning.
7312         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
7313         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
7314         (PARAM_INLINE_CALL_COST): Remove.
7315         (PARAM_EARLY_INLINING_INSNS): New.
7316
7317 2009-05-25  Richard Guenther  <rguenther@suse.de>
7318
7319         PR tree-optimization/36327
7320         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
7321         callback for reference translation or lookup at the point of may-defs.
7322         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
7323         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
7324         for union COMPONENT_REFs.
7325         (vn_reference_lookup_3): New callback.  Lookup from memset
7326         and CONSTRUCTOR assignment, translate through struct copies.
7327         (vn_reference_lookup_pieces): Make sure to not free the
7328         passed operands array.  Adjust walk_non_aliased_vuses call.
7329         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
7330         make sure we do not leak memory.
7331
7332 2009-05-25  Richard Guenther  <rguenther@suse.de>
7333
7334         * tree-ssa-alias.h (dump_points_to_solution): Declare.
7335         * tree-inline.c (expand_call_inline): Reset the escaped and
7336         callused solutions.
7337         * tree-ssa-structalias.c (pass_build_ealias): New.
7338         * tree-pass.h (pass_build_ealias): Declare.
7339         * passes.c (init_optimization_passes): Add PTA during 
7340         early optimizations.
7341         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
7342         and CALLUSED solutions.
7343         (dump_points_to_solution): New function, split out from ...
7344         (dump_points_to_info_for): ... here.
7345         * tree-parloops.c (parallelize_loops): Reset the escaped and
7346         callused solutions.
7347
7348 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7349
7350         PR bootstrap/40027
7351         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
7352         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
7353
7354 2009-05-25  Ira Rosen  <irar@il.ibm.com>
7355
7356         PR tree-optimization/40238
7357         * tree-vect-stmts.c (vect_init_vector): Insert initialization
7358         statements after basic block's labels.
7359         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
7360         to free the allocated memory.
7361
7362 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7363
7364         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
7365         return address with a USE.
7366
7367 2009-05-24  Richard Guenther  <rguenther@suse.de>
7368
7369         PR middle-end/40233
7370         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
7371         array type from the main variant of the inner type.
7372
7373 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7374
7375         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
7376         definition to bool (from int) to un-break build.
7377         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
7378
7379 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
7380
7381         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
7382         discard_stmt_changes): Delete.
7383         * tree-ssa-operands.c (scb_stack): Delete.
7384         (init_ssa_operands): Do not initialize it.
7385         (fini_ssa_operands): Do not free it.
7386         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
7387
7388         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
7389         update_stmt, remove the others.  Fix comments.
7390         * tree-dfa.c (optimize_stack_restore): Likewise.
7391         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
7392         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
7393         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7394         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
7395         Likewise.
7396         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
7397         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7398         (dom_opt_finalize_block): Likewise, adjusting access to
7399         stmts_to_rescan.
7400         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
7401         (stmts_to_rescan): Change item type to gimple.
7402         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
7403
7404 2009-05-24  Ira Rosen  <irar@il.ibm.com>
7405
7406         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
7407         * tree-pass.h (pass_slp_vectorize): New pass.
7408         * params.h (SLP_MAX_INSNS_IN_BB): Define.
7409         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
7410         * tree-vectorizer.c (timevar.h): Include.
7411         (user_vect_verbosity_level): Declare.
7412         (vect_location): Fix comment.
7413         (vect_set_verbosity_level): Update user_vect_verbosity_level
7414         instead of vect_verbosity_level.
7415         (vect_set_dump_settings): Add an argument. Ignore user defined
7416         verbosity if dump flags require higher level of verbosity. Print to
7417         stderr only for loop vectorization.
7418         (vectorize_loops): Update call to vect_set_dump_settings.
7419         (execute_vect_slp): New function.
7420         (gate_vect_slp): Likewise.
7421         (struct gimple_opt_pass pass_slp_vectorize): New.
7422         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
7423         access its members.
7424         (vec_info_for_bb): New function.
7425         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
7426         (VECTORIZATION_ENABLED): New macro.
7427         (SLP_ENABLED, SLP_DISABLED): Likewise.
7428         (vect_is_simple_use): Add bb_vec_info argument.
7429         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
7430         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7431         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7432         vect_schedule_slp, vect_analyze_slp): Likewise.
7433         (vect_analyze_stmt): Add slp_tree argument.
7434         (find_bb_location): Declare.
7435         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
7436         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
7437         (vect_analyze_loop_operations, vect_analyze_loop,
7438         get_initial_def_for_induction, vect_create_epilog_for_reduction,
7439         vect_finalize_reduction, vectorizable_reduction,
7440         vectorizable_live_operation, vect_transform_loop): Likewise.
7441         * tree-data-ref.c (dr_analyze_innermost): Update comment,
7442         skip evolution analysis if analyzing a basic block.
7443         (dr_analyze_indices): Likewise.
7444         (initialize_data_dependence_relation): Skip the test whether the
7445         object is invariant for basic blocks.
7446         (compute_all_dependences): Skip dependence analysis for data
7447         references in basic blocks.
7448         (find_data_references_in_stmt): Don't fail in case of invariant
7449         access in basic block.
7450         (find_data_references_in_bb): New function.
7451         (find_data_references_in_loop): Move code to
7452         find_data_references_in_bb and add a call to it.
7453         (compute_data_dependences_for_bb): New function.
7454         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
7455         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
7456         that STEP is 0.
7457         (vect_analyze_data_ref_dependence): Check for interleaving in case of
7458         unknown dependence in basic block and fail in case of dependence in
7459         basic block.
7460         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
7461         dependence instances from either loop or basic block vectorization
7462         info.
7463         (vect_compute_data_ref_alignment): Check if it is loop vectorization
7464         before calling nested_in_vect_loop_p.
7465         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
7466         dependence instances from either loop or basic block vectorization
7467         info.
7468         (vect_verify_datarefs_alignment): Likewise.
7469         (vect_enhance_data_refs_alignment): Adjust function calls.
7470         (vect_analyze_data_refs_alignment): Likewise.
7471         (vect_analyze_group_access): Fix printing. Skip different checks if
7472         DR_STEP is 0. Keep strided stores either in loop or basic block
7473         vectorization data structure. Fix indentation.
7474         (vect_analyze_data_ref_access): Fix comments, allow zero step in
7475         basic blocks.
7476         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
7477         dependence instances from either loop or basic block vectorization
7478         info.
7479         (vect_analyze_data_refs): Update comment. Call
7480         compute_data_dependences_for_bb to analyze basic blocks.
7481         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
7482         case of loop vectorization. In case of basic block vectorization use
7483         data-ref itself as a base.
7484         (vect_create_data_ref_ptr): In case of basic block vectorization:
7485         don't advance the pointer, add new statements before the current
7486         statement.  Adjust function calls.
7487         (vect_supportable_dr_alignment): Support only aligned accesses in
7488         basic block vectorization.
7489         * common.opt (ftree-slp-vectorize): New flag.
7490         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
7491         (vect_pattern_recog_1): Likewise.
7492         * tree-vect-stmts.c (process_use): Likewise.
7493         (vect_init_vector): Add new statements in the beginning of the basic
7494         block in case of basic block SLP.
7495         (vect_get_vec_def_for_operand): Adjust function calls.
7496         (vect_finish_stmt_generation): Likewise.
7497         (vectorizable_call): Add assert that it is loop vectorization, adjust
7498         function calls.
7499         (vectorizable_conversion, vectorizable_assignment): Likewise.
7500         (vectorizable_operation): In case of basic block SLP, take
7501         vectorization factor from statement's type and skip the relevance
7502         check. Adjust function calls.
7503         (vectorizable_type_demotion): Add assert that it is loop
7504         vectorization, adjust function calls.
7505         (vectorizable_type_promotion): Likewise.
7506         (vectorizable_store): Check for outer loop only in case of loop
7507         vectorization. Adjust function calls. For basic blocks, skip the
7508         relevance check and don't advance pointers.
7509         (vectorizable_load): Likewise.
7510         (vectorizable_condition): Add assert that it is loop vectorization,
7511         adjust function calls.
7512         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
7513         that it is not reduction, get vector type, call only supported
7514         functions, skip loop specific parts.
7515         (vect_transform_stmt): Check for outer loop only in case of loop
7516         vectorization.
7517         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
7518         (vect_is_simple_use): Fix comment, add new argument, fix conditions
7519         for external definition.
7520         * passes.c (pass_slp_vectorize): New pass.
7521         * tree-vect-slp.c (find_bb_location): New function.
7522         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
7523         check for patterns only in loops.
7524         (vect_build_slp_tree): Add argument, adjust function calls, fail in
7525         case of multiple types in basic block SLP.
7526         (vect_mark_slp_stmts_relevant): New function.
7527         (vect_supported_load_permutation_p): Fix comment.
7528         (vect_analyze_slp_instance): Add argument. In case of basic block
7529         SLP, take vectorization factor from statement's type, check that
7530         unrolling factor is 1. Adjust function call. Save SLP instance in
7531         either loop or basic block vectorization structure. Return FALSE,
7532         if SLP failed.
7533         (vect_analyze_slp): Add argument. Get strided stores groups from
7534         either loop or basic block vectorization structure. Return FALSE
7535         if basic block SLP failed.
7536         (new_bb_vec_info): New function.
7537         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
7538         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
7539         (vect_schedule_slp): Add argument. Get SLP instances from either
7540         loop or basic block vectorization structure. Set vectorization factor
7541         to be 1 for basic block SLP.
7542         (vect_slp_transform_bb): New function.
7543         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
7544
7545 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
7546
7547         * final.c (shorten_branches): Do not align labels for jump tables.
7548         (final_scan_insn): Use JUMP_TABLE_DATA_P.
7549
7550 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
7551
7552         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
7553         Remove outdated reference to flow.c and fix nits.
7554         * doc/gccint.texi: Tweak RTL description.
7555         * doc/rtl.texi: Likewise.
7556
7557 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
7558
7559         * config/avr/avr.c: Change my email address.
7560         * config/avr/avr.h: Likewise.
7561         * config/avr/avr.md: Likewise.
7562         * config/avr/avr-protos.h: Likewise.
7563         * config/avr/libgcc.S: Likewise.
7564
7565 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
7566
7567         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
7568         (spu_split_load, spu_split_store): Change return type to int.
7569         (spu_split_convert): Declare.
7570         * config/spu/predicates.md (spu_mem_operand): Remove.
7571         (spu_mov_operand): Update.
7572         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
7573         * config/spu/spu.c (regno_aligned_for_load): Remove.
7574         (reg_aligned_for_addr, spu_expand_load): Define.
7575         (spu_expand_extv): Reimplement and handle MEM.
7576         (spu_expand_insv): Handle MEM.
7577         (spu_sched_reorder): Handle insn's with length 0.
7578         (spu_legitimate_address_p): Reimplement.
7579         (store_with_one_insn_p): Return TRUE for any mode with size
7580         larger than 16 bytes.
7581         (address_needs_split): Define.
7582         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
7583         operands.
7584         (spu_convert_move): Define.
7585         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
7586         (spu_split_store): Change all MEM's to TImode.
7587         (spu_init_expanders): Preallocate registers that correspond to
7588         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
7589         mark_reg_pointer.
7590         (spu_split_convert): Define.
7591         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
7592         (_move<mode>, _movdi, _movti): Update predicate and condition.
7593         (load, store): Change to define_split.
7594         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
7595         extend<mode>ti2.
7596         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
7597         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
7598         define_insn_and_split of lshr<mode>3.
7599         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
7600         (<v>ashr<mode>3_imm): Define.
7601         (extv, extzv, insv): Allow MEM operands.
7602         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
7603         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
7604         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
7605         (_spu_convert2): Change to define_insn_and_split and remove the
7606         corresponding define_peephole2.
7607         (stack_protect_set, stack_protect_test, stack_protect_test_si):
7608         Change predicates to memory_operand.
7609
7610 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7611
7612         * config/arm/thumb2.md: Add 16-bit multiply instructions.
7613
7614 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7615
7616         PR tree-optimization/40219
7617         * tree.c (iterative_hash_expr): Make sure the builtin function is
7618         a normal builtin function and not a front end or back end builtin
7619         before indexing into the built_in_decls array.
7620
7621 2009-05-22  Richard Guenther  <rguenther@suse.de>
7622
7623         PR middle-end/38964
7624         * alias.c (write_dependence_p): Do not use TBAA for answering
7625         anti-dependence or output-dependence.
7626         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
7627         (emit_pointer_definition): Remove.
7628         (emit_alias_warning): Likewise.
7629         (find_what_var_points_to): Remove TBAA pruning code.
7630         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
7631         violations.
7632         (compute_points_to_sets): Remove code computing the set of
7633         dereferenced pointers.
7634         * tree-data-ref.c (dr_may_alias_p): Properly use the split
7635         oracle for querying anti and output dependencies.
7636         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
7637         if TBAA may be applied.
7638         (refs_anti_dependent_p): New function.
7639         (refs_output_dependent_p): Likewise.
7640         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
7641         (refs_output_dependent_p): Likewise.
7642         * doc/tree-ssa.texi (Memory model): New section.
7643         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7644         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7645         * cfgexpand.c (expand_gimple_basic_block): Do not handle
7646         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
7647         * expr.c (expand_expr_real_1): Likewise.
7648         * gimple-low.c (lower_stmt): Likewise.
7649         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
7650         (dump_gimple_cdt): Remove.
7651         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7652         (gimple_size): Likewise.
7653         (walk_gimple_op): Likewise.
7654         (is_gimple_stmt): Likewise.
7655         (walk_stmt_load_store_addr_ops): Likewise.
7656         (gimple_build_cdt): Remove.
7657         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7658         * gimple.h (gimple_cdt_new_type): Remove.
7659         (gimple_cdt_new_type_ptr): Likewise.
7660         (gimple_cdt_set_new_type): Likewise.
7661         (gimple_cdt_location): Likewise.
7662         (gimple_cdt_location_ptr): Likewise.
7663         (gimple_cdt_set_location): Likewise.
7664         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7665         * tree-cfg.c (remove_useless_stmts_1): Do not handle
7666         GIMPLE_CHANGE_DYNAMIC_TYPE.
7667         (verify_types_in_gimple_stmt): Likewise.
7668         * tree-inline.c (estimate_num_insns): Likewise.
7669         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
7670         (copy_decl_to_var): Likewise.
7671         (copy_result_decl_to_var): Likewise.
7672         * tree-pretty-print.c (dump_generic_node): Do not handle
7673         CHANGE_DYNAMIC_TYPE_EXPR.
7674         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7675         * tree-ssa-operands.c (get_expr_operands): Likewise.
7676         * tree-ssa-structalias.c (struct variable_info): Remove
7677         no_tbaa_pruning member.
7678         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
7679         (unify_nodes): Do not copy it.
7680         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7681         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
7682         (set_uids_in_ptset): Do not check it.
7683         (find_what_var_points_to): Likewise.
7684         (compute_tbaa_pruning): Remove.
7685         (compute_points_to_sets): Do not call it.
7686         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7687         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7688         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
7689         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
7690         (DECL_NO_TBAA_P): Likewise.
7691         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
7692         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
7693         (expand_omp_atomic_pipeline): Do not set it.
7694         * print-tree.c (print_node): Do not dump it.
7695         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
7696         redundant check.
7697
7698 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
7699
7700         PR target/39856
7701         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
7702         for clobber.
7703
7704 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7705
7706         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
7707         non-external.
7708
7709 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7710
7711         * Makefile.in (bversion.h, s-bversion): New targets.
7712         (TOPLEV_H): Add bversion.h.
7713         * toplev.h: Include "bversion.h".
7714         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
7715         the __format__ attribute only if compiling with the same version
7716         of GCC as the sources (the "build version").
7717
7718 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7719
7720         * c-format.c (handle_format_attribute): Fix comment typo.
7721
7722 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
7723
7724         PR target/37846
7725         * config/ia64/ia64.opt (mfused-madd): New.
7726         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
7727         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
7728         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
7729         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
7730         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
7731         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
7732         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
7733         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
7734         instruction if !TARGET_FUSED_MADD.
7735         (fpma, fpms): Remove colon from name.
7736
7737 2009-05-22  Richard Guenther  <rguenther@suse.de>
7738
7739         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
7740         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
7741         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7742         TARGET_MEM_REF.
7743         (create_expression_by_pieces): Only convert if necessary.
7744         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
7745         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
7746
7747 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
7748
7749         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
7750         regular pattern from a template and rename it ...
7751         (*extzv_truncsi_exts): ... to this.
7752
7753 2009-05-21  Richard Guenther  <rguenther@suse.de>
7754
7755         * cgraph.h (struct cgraph_node): Remove inline_decl member.
7756         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
7757         (cgraph_default_inline_p): Likewise.
7758         (cgraph_decide_inlining_incrementally): Likewise.
7759
7760 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7761             Uros Bizjak  <ubizjak@gmail.com>
7762
7763         * config/i386/cpuid.h (bit_MOVBE): New.
7764
7765         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
7766
7767         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
7768         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
7769         (ix86_handle_option): Handle OPT_mmovbe.
7770         (ix86_target_string): Add -mmovbe.
7771         (pta_flags): Add PTA_MOVBE.
7772         (processor_alias_table): Add PTA_MOVBE to "atom".
7773         (override_options): Handle PTA_MOVBE.
7774
7775         * config/i386/i386.h (TARGET_MOVBE): New.
7776
7777         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
7778         (*bswapsi_movbe): New.
7779         (*bswapdi_movbe): Likewise.
7780         (bswapdi2): Renamed to ...
7781         (*bswapdi_1): This.
7782         (bswapdi2): New expander.
7783
7784         * config/i386/i386.opt (mmovbe): New.
7785
7786         * doc/invoke.texi: Document -mmovbe.
7787
7788 2009-05-21  Taras Glek  <tglek@mozilla.com>
7789
7790         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
7791         * gcc-plugin.h (plugin_init): Updated signature.
7792         * gcc-plugin.h (plugin_name_args): Moved to this header.
7793         * doc/plugins.texi (plugin_init): Updated documention to reflect
7794         API change.
7795         * doc/plugins.texi (plugin_name_args): Added to documention.
7796
7797 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
7798
7799         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
7800         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
7801
7802 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
7803
7804         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
7805         JUMP_TABLE_DATA_P predicates where applicable.
7806         * config/i386/predicates.md: Ditto.
7807         * config/i386/sse.md: Ditto.
7808
7809 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
7810
7811         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
7812         operand2 -128 override length_immediate attribute to 1.
7813         * config/i386/predicates.md (constm128_operand): New predicate.
7814
7815         * config/i386/i386.c (memory_address_length): Handle %r12
7816         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
7817         also check REGNO.
7818         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
7819         mode look through optional ZERO_EXTEND and SUBREG.
7820         * config/i386/i386.md (R12_REG): New define_constant.
7821         (prefix_data16): For sse unit set also for MODE_TI insns.
7822         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
7823         insns set if operand 1 is ext_QIreg_operand.
7824         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
7825         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
7826         immediate.
7827         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
7828         mode from MODE_DI to MODE_SI.
7829         (movdi_1_rex64): Override modrm and length_immediate attributes
7830         only for movabs (TYPE_IMOV, alternative 2).
7831         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
7832         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7833         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7834         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7835         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
7836         prefix_rex attribute if DImode.
7837         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
7838         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
7839         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
7840         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
7841         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
7842         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
7843         Likewise.  For TYPE_IMOV clear length_immediate attribute.
7844         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
7845         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
7846         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
7847         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
7848         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
7849         or one operand TYPE_ISHIFT.
7850         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
7851         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
7852         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
7853         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
7854         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
7855         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
7856         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
7857         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
7858         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
7859         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
7860         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
7861         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
7862         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
7863         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
7864         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
7865         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
7866         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
7867         set mode attribute, don't override length attribute.
7868         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
7869         to 1.
7870         (return_internal_long): Set length attribute to 2 instead of 1.
7871         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
7872         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
7873         prefix_rex attribute.
7874         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
7875         New predicates.
7876         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
7877
7878 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7879
7880         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
7881
7882 2009-05-20  Ian Lance Taylor  <iant@google.com>
7883
7884         * tree.c (build_tree_list_vec_stat): New function.
7885         (ctor_to_vec): New function.
7886         (build_nt_call_vec): New function.
7887         (build_call_array): Change args to be a const pointer.
7888         (build_call_vec): New function.
7889         * tree.h (build_nt_call_vec): Declare.
7890         (build_tree_list_vec_stat): Declare.
7891         (build_tree_list_vec): Define.
7892         (build_call_array): Update declaration.
7893         (build_call_vec): Declare.
7894         (ctor_to_vec): Declare.
7895         * c-common.c (tree_vector_cache): New static variable.
7896         (make_tree_vector): New function.
7897         (release_tree_vector): New function.
7898         (make_tree_vector_single): New function.
7899         (make_tree_vector_copy): New function.
7900         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
7901         (make_tree_vector_single, make_tree_vector_copy): Declare.
7902         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
7903         (c_parser_expr_list): Don't manage cache here, instead call
7904         make_tree_vector.
7905         (c_parser_release_expr_list): Remove static function.
7906         (c_parser_vec_to_tree_list): Remove static function.
7907         (c_parser_attributes): Call build_tree_list_vec instead of
7908         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
7909         c_parser_release_expr_list.
7910         (c_parser_postfix_expression_after_primary): Likewise.
7911         (c_parser_objc_keywordexpr): Likewise.
7912
7913 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
7914
7915         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
7916         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
7917         TARGET_CONVERT_TO_TYPE.
7918         * hooks.c (hook_tree_const_tree_null): Define.
7919         * hooks.h (hook_tree_const_tree_null): Declare.
7920         * target.h (struct gcc_target):  Add invalid_parameter_type,
7921         invalid_return_type, promoted_type, and convert_to_type fields.
7922         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
7923         (TARGET_INVALID_RETURN_TYPE): Define.
7924         (TARGET_PROMOTED_TYPE): Define.
7925         (TARGET_CONVERT_TO_TYPE): Define.
7926         (TARGET_INITIALIZER): Update for new fields.
7927         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
7928         (grokparms): Check targetm.invalid_parameter_type.
7929         * c-typeck.c (default_conversion): Check targetm.promoted_type.
7930         * c-convert.c (convert): Check targetm.convert_to_type.
7931
7932 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
7933
7934         * config/mips/mips.md (*extenddi_truncate<mode>,
7935         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
7936         defintions.
7937         (*extendhi_truncateqi): New define_insn_and_sptit.
7938
7939 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
7940
7941         PR middle-end/40204
7942         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
7943         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
7944
7945 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7946
7947         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
7948         the operand of VIEW_CONVERT_EXPR.
7949
7950 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
7951
7952         * config/i386/driver-i386.c (host_detect_local_cpu): Check
7953         extended family and model for Intel processors.  Support Intel Atom.
7954
7955 2009-05-20  Olivier Hainque  <hainque@adacore.com>
7956
7957         * gstab.h (stab_code_type): Define, to be used instead of the
7958         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
7959         notice.
7960         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
7961         occurrences by stab_code_type.
7962         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
7963
7964 2009-05-20  Martin Jambor  <mjambor@suse.cz>
7965
7966         * tree-flow.h (insert_edge_copies_seq): Undeclare.
7967         (sra_insert_before): Likewise.
7968         (sra_insert_after): Likewise.
7969         (sra_init_cache): Likewise.
7970         (sra_type_can_be_decomposed_p): Likewise.
7971         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
7972         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
7973         (sra_insert_before): Likewise.
7974         (sra_insert_after): Likewise.
7975         (sra_init_cache): Likewise.
7976         (insert_edge_copies_seq): Made static and moved upwards.
7977
7978         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
7979         case.
7980
7981         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
7982
7983         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
7984         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
7985         simple copies.
7986
7987 2009-05-20  Richard Guenther  <rguenther@suse.de>
7988
7989         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
7990         with mismatched comparison modes.
7991
7992 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7993
7994         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
7995         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
7996         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
7997         with shifts for Thumb2.
7998         (orsi_notsi): New for orn.
7999         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
8000         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
8001         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
8002         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
8003         Don't invert remainder for IOR.
8004         
8005 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
8006
8007         PR tree-optimization/40087
8008         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
8009         number_of_iterations_ne): Rename never_infinite argument.
8010         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
8011         number_of_iterations_le): Handle pointer-type ivs when
8012         exit_must_be_taken is false.
8013         (number_of_iterations_cond):  Do not always assume that
8014         exit_must_be_taken if the control variable is a pointer.
8015
8016 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8017
8018         * c-typeck.c (build_binary_op): Allow % on integal vectors.
8019         * doc/extend.texi (Vector Extension): Document that % is allowed too.
8020
8021 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8022
8023         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
8024         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
8025
8026 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8027
8028         PR c/40172
8029         * c.opt (Wlogical-op): Disabled by default.
8030         * c-opt (c_common_post_options): Do not enable Wlogical-op with
8031         Wextra.
8032         * doc/invoke.texi (Wlogical-op): Likewise.
8033         
8034 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8035
8036         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
8037         into CASE_CONVERT.
8038         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
8039         Propagate the type of the first operand.
8040         <ASSERT_EXPR>: Simplify.
8041         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
8042         Rewrite using the RHS code as discriminant.
8043         <NOP_EXPR>: Turn into CASE_CONVERT.
8044         <PLUS_EXPR>: Propagate the type of the first operand.
8045
8046 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
8047
8048         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
8049         (ia64_dconst_0_375): New.
8050         * config/ia64/ia64.c (ia64_override_options): Remove
8051         -minline-sqrt-min-latency warning.
8052         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
8053         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
8054         * config/ia64/ia64.md (*sqrt_approx): Remove.
8055         (sqrtsf2): Remove #if 0.
8056         (sqrtsf2_internal_thr): Rewrite and move to div.md.
8057         (sqrtdf): Remove assert.
8058         (sqrtdf2_internal_thr): Rewrite and move to div.md.
8059         (sqrtxf2): Remove #if 0.
8060         (sqrtxf2_internal_thr): Rewrite and move to div.md.
8061         * div.md (sqrt_approx_rf): New.
8062         (sqrtsf2_internal_thr): New implementation.
8063         (sqrtsf2_internal_lat): New.
8064         (sqrtdf2_internal_thr: New implementation.
8065         (sqrtxf2_internal): New implementation.
8066
8067 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
8068             Hans-Peter Nilsson  <hp@axis.com>
8069
8070         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
8071         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
8072         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
8073         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
8074         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
8075         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
8076         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
8077         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
8078         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
8079         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
8080         * c-common.c: ...from here.
8081
8082 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8083
8084         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
8085
8086 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8087
8088         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
8089
8090 2009-05-19  Ben Elliston  <bje@au.ibm.com>
8091
8092         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
8093         assignments with memcpy calls.
8094         (add_fdes): Likewise.
8095         (binary_search_unencoded_fdes): Likewise.
8096         (linear_search_fdes): Eliminate type puns.
8097         
8098 2009-05-19  Richard Guenther  <rguenther@suse.de>
8099
8100         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
8101         not falsely claim to have propagated into all uses.
8102
8103 2009-05-19  Ben Elliston  <bje@au.ibm.com>
8104
8105         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
8106         version to v3.0.
8107
8108 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8109
8110         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
8111         * config/sh/sh.c (sh_legitimate_address_p): Make static.
8112         (TARGET_LEGITIMATE_ADDRESS_P): New.
8113         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8114         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8115         
8116 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
8117
8118         PR debug/40109
8119         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
8120         child of the containing namespace's DIE.
8121
8122 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
8123
8124         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
8125         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
8126         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
8127         extend patterns.
8128
8129 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8130
8131         PR target/39942
8132         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
8133         gen_align with gen_pad.
8134         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
8135         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
8136
8137         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
8138         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
8139
8140         * config/i386/i386.md (align): Renamed to ...
8141         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
8142         ASM_OUTPUT_MAX_SKIP_PAD.
8143
8144 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
8145
8146         * config.gcc: Fix variable syntax.
8147
8148         PR target/39531
8149         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
8150         before calling exact_log2.
8151         (output_iorsi3): Likewise.
8152         (output_xorsi3): Likewise.
8153
8154 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8155
8156         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
8157         for the none zero constant operand except for EQ and NE
8158         comprisons even when the first operand is R0.
8159
8160 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
8161
8162         * config/s390/2064.md: Remove trailing whitespaces.
8163         * config/s390/2084.md: Likewise.
8164         * config/s390/constraints.md: Likewise.
8165         * config/s390/fixdfdi.h: Likewise.
8166         * config/s390/libgcc-glibc.ver: Likewise.
8167         * config/s390/s390-modes.def: Likewise.
8168         * config/s390/s390-protos.h: Likewise.
8169         * config/s390/s390.c: Likewise.
8170         * config/s390/s390.h: Likewise.
8171         * config/s390/s390.md: Likewise.
8172         * config/s390/tpf-unwind.h: Likewise.
8173
8174 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8175
8176         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
8177
8178 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8179
8180         M68K TLS support.
8181         * configure.ac (m68k-*-*): Check if binutils support TLS.
8182         * configure: Regenerate.
8183         * config/m68k/predicates.md (symbolic_operand): Extend comment.
8184         * config/m68k/constraints.md (Cu): New constraint.
8185         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
8186         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
8187         (movsi): Handle TLS symbols.
8188         (addsi3_5200): Handle XTLS symbols, indent.
8189         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
8190         (m68k_tls_reference_p): Declare.
8191         (m68k_legitimize_address): Declare.
8192         (m68k_unwrap_symbol): Declare.
8193         * config/m68k/m68k.opt (mxtls): New option.
8194         * config/m68k/m68k.c (ggc.h): Include.
8195         (m68k_output_dwarf_dtprel): Implement hook.
8196         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
8197         (m68k_expand_prologue): Load GOT pointer when function needs it.
8198         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
8199         (m68k_legitimate_constant_address_p): Same.
8200         (m68k_decompose_address): Handle TLS references.
8201         (m68k_get_gp): New static function.
8202         (enum m68k_reloc): New contants.
8203         (TLS_RELOC_P): New macro.
8204         (m68k_wrap_symbol): New static function.
8205         (m68k_unwrap_symbol): New function.
8206         (m68k_final_prescan_insn_1): New static function.
8207         (m68k_final_prescan_insn): New function.
8208         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
8209         functions.
8210         (legitimize_pic_address): Handle TLS references..
8211         (m68k_tls_get_addr, m68k_get_tls_get_addr)
8212         (m68k_libcall_value_in_a0_p)
8213         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
8214         (m68k_call_m68k_read_tp): Helper variables and functions for ...
8215         (m68k_legitimize_tls_address): Handle TLS references.
8216         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
8217         New functions.
8218         (m68k_legitimize_address): Handle TLS symbols.
8219         (m68k_get_reloc_decoration): New static function.
8220         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
8221         UNSPEC_RELOC32.
8222         (m68k_output_dwarf_dtprel): Implement hook.
8223         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
8224         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
8225         m68k_call_* routines.
8226         (sched_attr_op_type): Handle TLS symbols.
8227         (gt-m68k.h): Include.
8228         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
8229         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
8230
8231 2009-05-18  Martin Jambor  <mjambor@suse.cz>
8232
8233         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
8234         (visit_store_addr_for_mod_analysis): New function.
8235         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
8236         (determine_cst_member_ptr): Use gimple_assign_single_p.
8237         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
8238         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
8239         operands.  Don't check number of operands of a NOP_EXPR.
8240
8241 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
8242
8243         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
8244
8245 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8246
8247         PR c/40172
8248         * c-common.c (warn_logical_operator): Don't warn if one of
8249         expression isn't always true or false.
8250
8251 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
8252
8253         * config/i386/biarch32.h: New file.
8254         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
8255
8256 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
8257
8258         * config/mips/mips.md (*zero_extend<mode>_trunchi,
8259         *zero_extend<mode>_truncqi): Merge these into ...
8260         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
8261         Name the pattern following this as *zero_extendhi_truncqi.
8262
8263 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
8264
8265         PR middle-end/39301
8266         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
8267         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
8268         (output_info): Make field HOST_WIDEST_INT.
8269         (print_statistics): Use HOST_WIDEST_INT_PRINT.
8270         (dump_bitmat_statistics): Same.
8271
8272 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
8273
8274         * config.gcc (use_gcc_stdint):  Set to wrap.
8275         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
8276         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
8277         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8278         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
8279         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
8280         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
8281         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8282         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
8283
8284 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
8285
8286         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
8287         tune_64.
8288         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
8289         Move definitions earlier.
8290         (OPT_ARCH64, OPT_ARCH32): Define.
8291         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
8292         and tune_64.
8293
8294 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
8295
8296         PR target/40153
8297         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
8298         implies.
8299
8300 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
8301
8302         * arm.md (movdi2): Copy non-reg values to DImode registers.
8303
8304 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
8305
8306         PR target/39942
8307         * final.c (label_to_max_skip): New function.
8308         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
8309         CODE_LABEL_NUMBER <= max_labelno.
8310         * output.h (label_to_max_skip): New prototype.
8311         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
8312         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
8313         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
8314         Handle CODE_LABELs with >= 16 byte alignment or with
8315         max_skip == (1 << align) - 1.
8316         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
8317         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
8318
8319         PR target/39942
8320         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
8321         .p2align 3 if MAX_SKIP is smaller than 7.
8322         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8323
8324 2009-05-15  Ian Lance Taylor  <iant@google.com>
8325
8326         * alias.c (struct alias_set_entry_d): Rename from struct
8327         alias_set_entry.  Change all uses.
8328         * except.c (struct call_site_record_d): Rename from struct
8329         call_site_record.  Change all uses.
8330         * except.h (struct eh_region_d): Rename from struct eh_region.
8331         Change all uses.
8332         * gcse.c (struct hash_table_d): Rename from struct hash_table.
8333         Change all uses.
8334         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
8335         ivtype_map_elt.  Change all uses.
8336         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
8337         Change all uses.
8338         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
8339         * graphite.h (struct name_tree_d): Rename from struct name_tree.
8340         Change all uses.
8341         (struct sese_d): Rename from struct sese.  Change all uses.
8342         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
8343         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
8344         * optabs.h (struct optab_d): Rename from struct optab.  Change all
8345         uses.
8346         (struct convert_optab_d): Rename from struct convert_optab.
8347         Change all uses.
8348         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
8349         ipa_opt_pass.  Change all uses.
8350         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
8351         all uses.
8352
8353         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
8354         defined as a typedef.
8355         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
8356         defined as a tag.
8357
8358 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8359
8360         PR 16302
8361         * fold-const.c (make_range,build_range_check,merge_ranges): Move
8362         declaration to...
8363         (merge_ranges): Returns bool. 
8364         * tree.h (make_range): .. to here.
8365         (build_range_check): Likewise.
8366         (merge_ranges): Likewise. Renamed from merge_ranges.
8367         * c-typeck.c (parser_build_binary_op): Update calls to
8368         warn_logical_operator.
8369         * c-common.c (warn_logical_operator): Add new warning.
8370         * c-common.h (warn_logical_operator): Update declaration.
8371         
8372 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8373
8374         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
8375         
8376 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8377
8378         * doc/install.texi: Document MPC requirements, flags etc.
8379
8380         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
8381         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
8382         Evaluate constant arguments.
8383         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
8384         (fold_builtin_1): Likewise, also evaluate constant arguments.
8385         Remove superfluous break.
8386         (do_mpc_ckconv): New.
8387         * real.h: Include mpc.h.
8388         * toplev.c (print_version): Output MPC version info if available.
8389
8390 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8391
8392         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
8393
8394 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8395
8396         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
8397         only once.
8398
8399 2009-05-15  Jan Hubicka  <jh@suse.cz>
8400
8401         * doc/invoke.texi (max-early-inliner-iterations): New flag.
8402         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
8403         (try_inline): Fix return value.
8404         (cgraph_decide_inlining_incrementally): Honor new value.
8405         (cgraph_early_inlining): Handle indirect inlining.
8406         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
8407
8408 2009-05-15  Jan Hubicka  <jh@suse.cz>
8409
8410         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
8411         * cgraphunit.c (cgraph_finalize_function): Set it.
8412         (cgraph_expand_function): Use it.
8413
8414 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8415
8416         * real.c (encode_ieee_half): Define.
8417         (decode_ieee_half): Define.
8418         (ieee_half_format): Define.
8419         (arm_half_format): Define.
8420         * real.h (ieee_half_format): Declare.
8421         (arm_half_format): Declare.
8422
8423 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8424
8425         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
8426         swapped, and reversed optabs exist before trying to use them.
8427
8428 2009-05-15  Paul Brook  <paul@codesourcery.com>
8429             Sandra Loosemore  <sandra@codesourcery.com>
8430
8431         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
8432         loads.  Allow PRE_DEC.
8433         (output_move_neon): Handle PRE_DEC.
8434         (arm_print_operand): Add 'A' for neon structure loads.
8435         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
8436         * config/arm/neon.md (neon_mov): Update comment.
8437         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
8438         calls.
8439         (Um): New constraint.
8440
8441 2009-05-15  Jan Hubicka  <jh@suse.cz>
8442
8443         Revert the following patch until testsuite fallout is fixed:
8444         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8445         * cgraph.h (struct inline_summary): New filed self_wize,
8446         size_inlining_benefit, self_time and time_inlining_benefit.
8447         (struct cgraph_global_info): Replace insns by time ans size fields.
8448         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8449         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8450         (ipcp_update_callgraph): Do not touch function bodies.
8451         * ipa-inline.c: Include except.h
8452         (MAX_TIME): New constant.
8453         (overall_insns): Remove
8454         (overall_size, max_benefit): New static variables.
8455         (cgraph_estimate_time_after_inlining): New function.
8456         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8457         (cgraph_clone_inlined_nodes): Update size.
8458         (cgraph_mark_inline_edge): Update size.
8459         (cgraph_estimate_growth): Use size info.
8460         (cgraph_check_inline_limits): Check size.
8461         (cgraph_default_inline_p): Likewise.
8462         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8463         (cgraph_decide_recursive_inlining): Check size.
8464         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8465         and times.
8466         (cgraph_decide_inlining): Likewise.
8467         (cgraph_decide_inlining_incrementally): Likewise; honor
8468         PARAM_EARLY_INLINING_INSNS.
8469         (likely_eliminated_by_inlining_p): New predicate.
8470         (estimate_function_body_sizes): New function.
8471         (compute_inline_parameters): Use it.
8472         * except.c (must_not_throw_labels): New function.
8473         * except.h (must_not_throw_labels): Declare.
8474         * tree-inline.c (init_inline_once): Kill inlining_weigths
8475         * tree-ssa-structalias.c: Avoid uninitialized warning.
8476         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8477         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8478         (PARAM_INLINE_CALL_COST): Remove.
8479         (PARAM_EARLY_INLINING_INSNS): New.
8480
8481 2009-05-15  Richard Guenther  <rguenther@suse.de>
8482
8483         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
8484         not TODO_update_ssa.
8485
8486 2009-05-15  Richard Guenther  <rguenther@suse.de>
8487
8488         PR tree-optimization/39999
8489         * gimple.h (gimple_expr_type): Use the expression type looking
8490         through useless conversions.
8491         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
8492         (vn_nary_op_insert_stmt): Likewise.
8493         (simplify_binary_expression): Likewise.
8494
8495 2009-05-15  Richard Guenther  <rguenther@suse.de>
8496
8497         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8498         New options, enabled by default.
8499         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8500         Document.
8501         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
8502         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
8503         * tree-ssa-structalias.c (gate_tree_pta): New function.
8504         (pass_build_alias): Use it.
8505
8506 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
8507
8508         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
8509         recurse on an invariant address if a conversion from a pointer
8510         type to a wider integer type is involved.
8511
8512 2009-05-15  Jan Hubicka  <jh@suse.cz>
8513
8514         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8515         * cgraph.h (struct inline_summary): New filed self_wize,
8516         size_inlining_benefit, self_time and time_inlining_benefit.
8517         (struct cgraph_global_info): Replace insns by time ans size fields.
8518         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8519         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8520         (ipcp_update_callgraph): Do not touch function bodies.
8521         * ipa-inline.c: Include except.h
8522         (MAX_TIME): New constant.
8523         (overall_insns): Remove
8524         (overall_size, max_benefit): New static variables.
8525         (cgraph_estimate_time_after_inlining): New function.
8526         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8527         (cgraph_clone_inlined_nodes): Update size.
8528         (cgraph_mark_inline_edge): Update size.
8529         (cgraph_estimate_growth): Use size info.
8530         (cgraph_check_inline_limits): Check size.
8531         (cgraph_default_inline_p): Likewise.
8532         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8533         (cgraph_decide_recursive_inlining): Check size.
8534         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8535         and times.
8536         (cgraph_decide_inlining): Likewise.
8537         (cgraph_decide_inlining_incrementally): Likewise; honor
8538         PARAM_EARLY_INLINING_INSNS.
8539         (likely_eliminated_by_inlining_p): New predicate.
8540         (estimate_function_body_sizes): New function.
8541         (compute_inline_parameters): Use it.
8542         * except.c (must_not_throw_labels): New function.
8543         * except.h (must_not_throw_labels): Declare.
8544         * tree-inline.c (init_inline_once): Kill inlining_weigths
8545         * tree-ssa-structalias.c: Avoid uninitialized warning.
8546         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8547         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8548         (PARAM_INLINE_CALL_COST): Remove.
8549         (PARAM_EARLY_INLINING_INSNS): New.
8550         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
8551         (inline-call-cost): Remove.
8552         (early-inlining-insns): New.
8553
8554 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8555
8556         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
8557         for bounds.
8558         (print_int_cst_bounds_in_octal_p): Likewise.
8559         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
8560         with subtypes.
8561         * dwarf2out.c (base_type_die): Likewise.
8562         (is_subrange_type): Delete.
8563         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
8564         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
8565         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
8566         if the destination type is boolean.
8567         (build_range_check): Do not special-case subtypes.
8568         (fold_sign_changed_comparison): Likewise.
8569         (fold_unary): Likewise.
8570         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
8571         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
8572         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
8573         * tree.c (subrange_type_for_debug_p): New predicate based on the
8574         former is_subrange_type.
8575         * tree.h (subrange_type_for_debug_p): Declare.
8576         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
8577         (convert_affine_scev): Remove call to above function.
8578         (chrec_convert_aggressive): Likewise.
8579         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
8580         false for conversions involving subtypes.
8581         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
8582         (vrp_val_min): Likewise.
8583         (needs_overflow_infinity): Likewise.
8584         (extract_range_from_unary_expr): Likewise.
8585
8586 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
8587
8588         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8589         * config/frv/frv.c: Likewise.
8590         * config/s390/s390.c: Likewise.
8591         * config/sparc/sparc.h: Likewise.
8592         * config/i386/i386.h: Likewise.
8593         * config/i386/i386.c: Likewise.
8594         * config/crx/crx.c: Likewise.
8595         * config/m68hc11/m68hc11.h: Likewise.
8596         * config/iq2000/iq2000.c: Likewise.
8597         * config/mn10300/mn10300.h: Likewise.
8598         * config/mn10300/mn10300.c: Likewise.
8599         * config/m68k/m68k.c: Likewise.
8600         * config/rs6000/rs6000.c: Likewise.
8601         * config/rs6000/xcoff.h: Likewise.
8602         * config/rs6000/linux64.h: Likewise.
8603         * config/rs6000/sysv4.h: Likewise.
8604         * config/score/score3.c: Likewise.
8605         * config/score/score7.c: Likewise.
8606         * config/score/score.c: Likewise.
8607         * config/arm/arm.md: Likewise.
8608         * config/mips/mips.c: Likewise.
8609         * config/mips/mips.md: Likewise.
8610         * config/bfin/bfin.h: Likewise.
8611         * config/pa/pa.c: Likewise.
8612         * config/pa/constraints.md: Likewise.
8613
8614         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
8615         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
8616         * config/pdp11/pdp11.h: Use memory_address_p instead.
8617
8618 2009-05-14  Ian Lance Taylor  <iant@google.com>
8619
8620         * passes.c (finish_optimization_passes): Change i to int.
8621         * plugin.c (plugins_active_p): Change event to int.
8622         (dump_active_plugins): Likewise.
8623         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
8624         Add cast.
8625         * tree.c (tree_range_check_failed): Change c to unsigned int.
8626         (omp_clause_range_check_failed): Likewise.
8627         (build_common_builtin_nodes): Change mode to int.  Add cast.
8628         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
8629         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
8630
8631         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
8632         ++ or -- with a variable of enum type.
8633
8634 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8635
8636         PR driver/40144
8637         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
8638
8639 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8640
8641         * store-motion.c: Do not include params.h
8642         * Makefile.in: Fix dependencies for various files.
8643
8644 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8645
8646         * auto-inc-dec.c: Fix pass description, remove apparent
8647         accidental duplication.
8648
8649 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8650
8651         PR middle-end/40147
8652         * ipa-utils.h (memory_identifier_string): Moved to ...
8653         * tree.h (memory_identifier_string): Here.  Add GTY(()).
8654
8655 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8656
8657         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
8658         in the former documentation of...
8659         (GO_IF_LEGITIMATE_ADDRESS): ... this.
8660         * ira-conflicts.c (get_dup_num): Use address_operand.
8661         * targhooks.c (default_legitimate_address_p): New.
8662         * targhooks.h (default_legitimate_address_p): New.
8663         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
8664         Call hook.
8665         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
8666         * target.h (struct target): Add legitimate_address_p.
8667         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
8668         (TARGET_INITIALIZER): Include it.
8669
8670         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8671         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
8672         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
8673         (TARGET_LEGITIMATE_ADDRESS_P): New.
8674
8675         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8676         (REG_OK_STRICT_P): Delete.
8677         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
8678         (frv_legitimate_address_p_1): ... this.
8679         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
8680         (frv_legitimate_address_p_1): ... the renamed old
8681         frv_legitimate_address_p.
8682         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
8683         (TARGET_LEGITIMATE_ADDRESS_P): New.
8684
8685         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8686         * config/s390/s390-protos.h (legitimate_address_p): Remove.
8687         * config/s390/s390.c (legitimate_address_p): Rename to...
8688         (s390_legitimate_address_p): ... this, make static.
8689         (legitimize_address): Adjust call.
8690         (TARGET_LEGITIMATE_ADDRESS_P): New.
8691         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
8692
8693         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8694         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
8695         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
8696         (TARGET_LEGITIMATE_ADDRESS_P): New.
8697
8698         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8699         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
8700         * config/spu/spu.c (spu_legitimate_address): Rename to...
8701         (spu_legitimate_address_p): ... this, make static.
8702         (TARGET_LEGITIMATE_ADDRESS_P): New.
8703
8704         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8705         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
8706         * config/sparc/sparc.c (legitimate_address_p): Rename to...
8707         (sparc_legitimate_address_p): ... this, make static and return bool.
8708         (legitimize_address): Adjust call.
8709         (TARGET_LEGITIMATE_ADDRESS_P): New.
8710
8711         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8712         * config/i386/i386-protos.h (legitimate_address_p): Remove.
8713         * config/i386/i386.c (legitimate_address_p): Rename to...
8714         (ix86_legitimate_address_p): ... this, make static.
8715         (constant_address_p): Move after it, adjust call.
8716         (TARGET_LEGITIMATE_ADDRESS_P): New.
8717
8718         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8719         * config/avr/avr-protos.h (legitimate_address_p): Remove.
8720         * config/avr/avr.c (legitimate_address_p): Rename to...
8721         (avr_legitimate_address_p): ... this, make static.
8722         (legitimize_address): Adjust call.
8723         (TARGET_LEGITIMATE_ADDRESS_P): New.
8724
8725         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8726         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
8727         * config/crx/crx.c (crx_legitimate_address_p): Make static.
8728         (TARGET_LEGITIMATE_ADDRESS_P): New.
8729
8730         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8731         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
8732         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
8733         (TARGET_LEGITIMATE_ADDRESS_P): New.
8734
8735         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8736         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
8737         Remove.
8738         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8739         Make static.
8740         (TARGET_LEGITIMATE_ADDRESS_P): New.
8741
8742         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8743         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
8744         Remove.
8745         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
8746         Rename to...
8747         (m68hc11_legitimate_address_p): ... this, make static.
8748         (go_if_legitimate_address_internal): Rename to...
8749         (m68hc11_legitimate_address_p_1): ... this.
8750         (legitimize_address): Adjust call.
8751         (TARGET_LEGITIMATE_ADDRESS_P): New.
8752
8753         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8754         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
8755         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
8756         (TARGET_LEGITIMATE_ADDRESS_P): New.
8757
8758         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8759         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
8760         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
8761         (mn10300_legitimate_address_p): ... this, make static.
8762         (TARGET_LEGITIMATE_ADDRESS_P): New.
8763
8764         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8765         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
8766         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
8767         (TARGET_LEGITIMATE_ADDRESS_P): New.
8768
8769         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8770         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
8771         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
8772         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8773         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
8774         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
8775         (rs6000_legitimate_address_p): ... this, make static.
8776         (TARGET_LEGITIMATE_ADDRESS_P): New.
8777         (REG_MODE_OK_FOR_BASE_P): Delete.
8778         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
8779
8780         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8781         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
8782         Delete.
8783         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
8784         static, adjust types.
8785         (TARGET_LEGITIMATE_ADDRESS_P): New.
8786
8787         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8788         * config/score/score.c (score_address_p): Rename to...
8789         (score_legitimate_address_p): ... this.
8790         (TARGET_LEGITIMATE_ADDRESS_P): New.
8791         * config/score/score3.c (score3_address_p): Rename to...
8792         (score3_legitimate_address_p): ... this.
8793         * config/score/score7.c (score7_address_p): Rename to...
8794         (score7_legitimate_address_p): ... this.
8795
8796         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
8797         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
8798         GO_IF_LEGITIMATE_ADDRESS): Delete.
8799         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
8800         thumb2_legitimate_address_p): Delete.
8801         (arm_legitimate_address_p): Rename to...
8802         (arm_legitimate_address_outer_p): ... this.
8803         * config/arm/constraints.md ("Uq"): Adjust call.
8804         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
8805         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
8806         to...
8807         (arm_legitimate_address_outer_p): ... this.
8808         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
8809         static.
8810         (TARGET_LEGITIMATE_ADDRESS_P): New.
8811
8812         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8813         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
8814         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
8815         (TARGET_LEGITIMATE_ADDRESS_P): New.
8816
8817         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8818         * config/vax/vax-protos.h (legitimate_address_p): Remove.
8819         * config/vax/vax.c (legitimate_address_p): Rename to...
8820         (vax_legitimate_address_p): ... this, make static.
8821         (TARGET_LEGITIMATE_ADDRESS_P): New.
8822
8823         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8824         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
8825         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
8826         (TARGET_LEGITIMATE_ADDRESS_P): New.
8827
8828         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8829         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
8830         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
8831         (mmix_legitimate_address_p): ... this, make static.
8832         (TARGET_LEGITIMATE_ADDRESS_P): New.
8833
8834         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8835         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
8836         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
8837         (TARGET_LEGITIMATE_ADDRESS_P): New.
8838
8839 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8840
8841         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
8842         of MODE_COMPLEX_INT.
8843
8844 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8845
8846         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
8847         LCT_NORMAL in function call.
8848         * mips-tdump.c (print_file_desc): Add cast to enum type.
8849         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
8850         (mark_stabs): Add casts to enum types.
8851         (parse_stabs_common): Add casts to enum types.
8852
8853 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8854
8855         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
8856         Check for invalid values of LETTER.
8857
8858 2009-05-13  Taras Glek  <tglek@mozilla.com>
8859
8860         * attribs.c (register_attribute): moved out attribute registration
8861         into register_attribute.
8862         * doc/plugins.texi: Documented register_attribute and
8863         PLUGIN_ATTRIBUTES.
8864         * gcc-plugin.h: Added forward decl for register_attribute.
8865         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
8866         * plugin.c (register_callback, invoke_plugin_callbacks): Added
8867         PLUGIN_ATTRIBUTES boilerplate.
8868
8869 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
8870
8871         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
8872         values even in sentinel and empty entries.
8873         (ms_printf_flag_specs):  Likewise.
8874         (ms_scanf_flag_specs):  Likewise.
8875         (ms_strftime_flag_specs):  Likewise.
8876         (ms_print_char_table):  Likewise.
8877         (ms_scan_char_table):  Likewise.
8878         (ms_time_char_table):  Likewise.
8879
8880 2009-05-13  Doug Kwan  <dougkwan@google.com>
8881
8882         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
8883
8884 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8885
8886         * config/mips/mips.md (store): Add attributes for QI and HI.
8887         Update comment.
8888         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
8889         (truncdi<mode>2): ... this new pattern.
8890
8891 2009-05-13  Brad Hards  <bradh@kde.org>
8892
8893         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
8894
8895 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
8896             Ben Elliston <bje@au.ibm.com>
8897
8898         PR middle-end/40035
8899         * dse.c (check_mem_read_rtx): Guard against width == -1.
8900
8901 2009-05-13  Michael Matz  <matz@suse.de>
8902
8903         PR middle-end/39976
8904         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
8905         (trivially_conflicts_p): New function.
8906         (insert_backedge_copies): Use it.
8907
8908 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
8909
8910         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
8911         (handle_stdc_pragma): Use new enum constant names.
8912         (handle_pragma_float_const_decimal64): Ditto.
8913
8914 2009-05-13  Ian Lance Taylor  <iant@google.com>
8915
8916         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
8917         tree.def.
8918
8919 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
8920
8921         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
8922         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
8923         multilibs.
8924         * config/m68k/m68k.h (FL_UCLINUX): Define.
8925
8926 2009-05-13  Jan Hubicka  <jh@suse.cz>
8927
8928         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
8929
8930 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8931
8932         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
8933         unless -fschedule-insns is specified.
8934
8935 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8936
8937         PR target/39561
8938         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
8939         TARGET_EXPAND_CBRANCHDI4.
8940         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
8941         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
8942         (cmpeqdi): Fix comment.
8943
8944 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8945
8946         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
8947         (sh_legitimate_address_p): Likewise.
8948         * config/sh/sh.c (sh_legitimate_index_p): New.
8949         (sh_legitimate_address_p): Likewise.
8950         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
8951         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
8952         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
8953         (MAYBE_BASE_REGISTER_RTX_P): New macro.
8954         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
8955         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
8956         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
8957         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
8958         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
8959
8960 2009-05-12  Jan Hubicka  <jh@suse.cz>
8961
8962         * tree-inline.c (estimate_operator_cost): Add operands;
8963         when division happens by constant, it is cheap.
8964         (estimate_num_insns): Loads and stores are not having cost of 0;
8965         EH magic stuff is cheap; when computing runtime cost of switch,
8966         use log2 base of amount of its cases; builtin_expect has cost of 0;
8967         compute cost for moving return value of call.
8968         (init_inline_once): Initialize time_based flags.
8969         * tree-inline.h (eni_weights_d): Add time_based flag.
8970
8971 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8972
8973         * df-core.c: Update head documentation.
8974
8975 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8976
8977         PR bootstrap/40118
8978         * rs6000.c (rs6000_generate_compare): Use op1b instead of
8979         shadowing exisiting variable op1.
8980
8981 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
8982
8983         PR target/37179
8984         * config/i386/driver-i386.c (processor_signatures): New enum.
8985         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
8986         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
8987         processor signature to detect geode processor.
8988
8989 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8990
8991         Revert:
8992
8993         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8994
8995         * optabs.c (prepare_cmp_insn): Temporarily disable test that
8996         causes spurious differences between trunk and cond-optab branch.
8997
8998 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8999
9000         * dojump.c (compare_from_rtx): Delete.
9001         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
9002         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
9003         if the comparison does not satisfy the predicate; test predicates for
9004         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
9005         further if one existing pattern fails.
9006         * expr.h (compare_from_rtx): Delete.
9007         (prepare_operand): Declare it.
9008         * optabs.c: Change "lib call" to "libcall" throughout.
9009         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
9010         HAVE_conditional_trap, emit_cmp_insn): Delete.
9011         (can_compare_p): Delete cmp_optab case.
9012         (prepare_float_lib_cmp): Return an rtx and a machine mode.
9013         Accept other parameters by value.
9014         (prepare_operand): Make non-static.
9015         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
9016         other parameters by value.  Try to widen operands here based on
9017         an optab_methods argument and looking at cbranch_optab.
9018         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
9019         loop.  Use cbranch_optab directly.
9020         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
9021         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
9022         assertion.
9023         (emit_conditional_move, emit_conditional_add): Inline what's needed
9024         of compare_from_rtx, using new prepare_cmp_insn for the rest.
9025         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
9026         with COMPARE.  Move cmov_optab and cstore_optab above
9027         with cbranch_optab, move cmp_optab down with ucmp_optab,
9028         remove tst_otpab.  Do not initialize trap_rtx.
9029         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
9030         for trap code.  Do not check HAVE_conditional_trap.  Use
9031         prepare_cmp_insn.  Accept no predicate for operand 3.
9032         * optabs.h (OTI_cmp): Mark as used only for libcalls.
9033         (OTI_ctrap, ctrap_optab): New.
9034         (tst_optab): Delete.
9035         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
9036         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
9037         with lookup of ctrap_optab.
9038         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
9039         Delete.
9040         (ctrap_optab): New.
9041
9042         * combine.c (combine_simplify_rtx, simplify_set): Do not
9043         special case comparing against zero for cc0 machines.
9044         * simplify-rtx.c (simplify_binary_operation_1): Never remove
9045         COMPARE on cc0 machines.
9046         (simplify_relational_operation): Return a new expression when
9047         a COMPARE could be removed.
9048         * final.c (final_scan_insn): Compare cc_status values
9049         against LHS of a (compare FOO (const_int 0)) cc0 source.
9050         Also check if cc_status.value is the full compare.
9051
9052         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
9053         (cstoreMM4): Document.
9054         (conditional_trap): Document ctrapMM4 instead.
9055         (sync_compare_and_swapMM): Refer to cbranchcc4.
9056         (Dependent Patterns): Eliminate obsolete information referring to
9057         the old jump optimization phase.
9058         (Canonicalization): Include cbranchcc4 case, omit canonicalization
9059         of compares with 0 on cc0 machines.
9060         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
9061         avoiding references to cc0.  Remove text about storing operands
9062         in cmpMM.
9063         * doc/tm.texi (Condition Codes): Include blurb on different
9064         condition code representations, separate into subsections for
9065         CC0, MODE_CC and conditional execution.
9066
9067         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
9068         alpha_emit_setcc): Accept operands and a machine mode.
9069         * config/alpha/alpha.c (alpha_emit_conditional_branch):
9070         Get code/op0/op1 from operands, use machine mode argument
9071         instead of alpha_compare.fp_p.  Emit the branch here.
9072         (alpha_emit_setcc): Likewise, and return boolean.
9073         (alpha_emit_conditional_move): Likewise.  Assert that
9074         cmp_op_mode == cmp_mode, and simplify accordingly.
9075         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
9076         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
9077         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
9078         Delete.
9079         (stack probe test): Use cbranchdi4.
9080         * config/alpha/predicates.md (alpha_cbranch_operator): New.
9081
9082         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
9083         * config/arc/arc.h (movsicc, movsfcc): Use it.
9084         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
9085         (cbranchsi4, cstoresi4): New.
9086         (cmpsi, bCC and sCC expanders): Remove. 
9087
9088         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
9089         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
9090         * config/arm/predicates.md (arm_comparison_operator): Only include
9091         floating-point operators if there is a hardware floating-point unit.
9092         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
9093         deferring to cbranch_cc and cstore_cc respectively.
9094         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
9095         cbranch_cc, cstore_cc): New.
9096         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
9097         arm_compare_op1.
9098         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
9099
9100         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
9101         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
9102         as an argument.
9103         (adjust_insn_length): Adjust calls.
9104         (avr_reorg): Handle (compare (foo) (const_int 0)).
9105         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
9106         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
9107         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
9108         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
9109         (bCC): Remove.
9110         (cbranchqi4, cbranchhi4, cbranchsi4): New.
9111         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
9112
9113         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
9114         (cbranchsi4, cstorebi4, cstoresi4): New.
9115         (movbisi): This insn is duplicate, split it to zero_extend.
9116         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
9117         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
9118         (bfin_optimize_loop): Use cbranch expander.
9119         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
9120         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
9121         (bfin_bimode_comparison_operator): ... this.
9122         (bfin_direct_comparison_operator): New.
9123  
9124         * config/cris/cris.c (cris_normal_notice_update_cc): Look
9125         inside (compare FOO (const_int 0)).
9126         (cris_rtx_costs): Handle ZERO_EXTRACT.
9127         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
9128         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
9129         (*tstdi_v32): Delete.
9130         (*cmpdi_non_v32): Add M alternative for operand 1.
9131         (cmpsi, cmp<mode>): Make private.
9132         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
9133         with COMPARE.
9134         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
9135
9136         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
9137         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
9138         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
9139         (cc_reg_operand): New.
9140         (any_cond): Delete.
9141         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
9142         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
9143         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
9144         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
9145         crx_expand_scond): Delete.
9146
9147         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
9148         (cbranchsi4): New.
9149         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
9150         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
9151
9152         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
9153         cstoresi4, cstoresf4, cstoredf4): New.
9154         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
9155         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
9156         Receive the entire operands array.
9157         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
9158         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
9159         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
9160         Get test/op0/op1 from the operands array.
9161         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
9162
9163         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
9164         (h8300_expand_store): New.
9165         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
9166         (const_int 0)).
9167         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
9168         (h8300_expand_store): New.
9169         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
9170         or do not try to produce (set (cc0) REG).
9171         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
9172         change a compare into a move to a scratch register.  Disable some
9173         peepholes when comparing with zero.
9174         (tstsi, tsthi, tstsi, cmpqi): Make private.
9175         (cmphi): Delete.
9176         (bCC, sCC): Delete.
9177         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
9178         cstoresi4): New.
9179
9180         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
9181         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
9182         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
9183         (ix86_emit_i387_log1p): Use cbranchxf2.
9184         (ix86_expand_setcc): Return void.
9185         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
9186         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
9187         cmp<MODEF>, cmpcc): Remove.
9188         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
9189         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
9190         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
9191         (sCC and bCC expanders): Remove.
9192         (stack_protect_test): Use cbranchcc4.
9193
9194         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
9195         Delete.
9196         (ia64_expand_compare): Accept three rtx by reference and return void.
9197         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
9198         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
9199         from *expr.  Update *expr with the BImode comparison to do.
9200         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
9201         cmptf, bCC, sCC, conditional_trap): Delete.
9202         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
9203         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
9204         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
9205         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
9206         * config/ia64/predicates.md (ia64_cbranch_operator): New.
9207
9208         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
9209         type of last argument.
9210         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
9211         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
9212         use machine mode argument instead of branch_type.  Remove dead
9213         code for floating-point comparisons.
9214         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
9215         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
9216         Remove.
9217         (cbranchsi4, cstoresi4): New.
9218         * config/iq2000/predicates.md (reg_or_const_operand): New.
9219
9220         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
9221         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
9222         (b<code>_op): Rewrite to...
9223         (bcc_op): ... this, using match_operator.
9224         (s<code>_op): Rewrite to...
9225         (scc_op): ... this, using match_operator.
9226         (s<code>_24_op): Rewrite to...
9227         (scc_op_24): ... this, using match_operator.
9228         (s<code>_<mode>): Rewrite to...
9229         (cstore<mode>4): ... this, using match_operator.
9230         (s<code>_<mode>_24): Rewrite to...
9231         (cstore<mode>4_24): ... this, using match_operator.
9232         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
9233         m32c_unpend_compare, m32c_expand_scc): Delete.
9234         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
9235         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
9236         (m32c_expand_movcc): Change NE to EQ if necessary.
9237         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
9238
9239         * config/m32r/m32r-protos.h (gen_cond_store): New.
9240         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
9241         (gen_cond_store): New, from sCC patterns.
9242         (m32r_expand_block_move): Use cbranchsi4.
9243         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
9244         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
9245         (cbranchsi4, cstoresi4): New.
9246         
9247         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
9248         Delete.
9249         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
9250         (m68hc11_notice_update_cc): Look into a compare with 0.
9251         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
9252         Delete.
9253         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
9254         cmphi, cmpqi, bCC): Delete.
9255         (cbranchsi4, cbranchhi4, cbranchqi4): New.
9256         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
9257         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
9258         sets with COMPARE.
9259
9260         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
9261         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
9262         * config/m68k/constraints.md (H): New.
9263         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
9264         the define_insn below.
9265         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
9266         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
9267         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
9268         patterns): Wrap RHS with COMPARE.
9269         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
9270         (*cmpdi_internal): Name this pattern.
9271         (cmpdi): Change to define_insn.
9272         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
9273         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
9274         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
9275         predicate.
9276         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
9277         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
9278         (conditional_trap): Change to...
9279         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
9280         (*conditional_trap): Use the ordered_comparison_operator and
9281         const1_operand predicates.
9282         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
9283         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
9284         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
9285         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
9286
9287         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
9288         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
9289         (mcore_gen_compare): New. 
9290         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
9291         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
9292         (mcore_gen_compare): ... this.
9293         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
9294         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
9295         (stack probe pattern): Use cbranchsi4.
9296
9297         * config/mips/predicates.md (mips_cstore_operator): New.
9298         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
9299         * config/mips/mips.md (any_cond): Delete.
9300         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
9301         always succeed.
9302         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
9303         fixuns_truncsfdi2): Use cbranch patterns.
9304         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
9305         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
9306         Adjust call to mips_expand_conditional_branch.
9307         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
9308         cstore<GPR:mode>4.
9309         * config/mips/mips-protos.h (mips_expand_conditional_branch,
9310         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
9311         * config/mips/mips.c (cmp_operands): Delete.
9312         (mips_emit_compare): Get comparison operands from *op0/*op1.
9313         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
9314         that it succeeds.  Use op0/op1 instead of cmp_operands.
9315         (mips_expand_conditional_branch, mips_expand_conditional_move,
9316         mips_expand_conditional_trap): Likewise.
9317         (mips_block_move_loop): Use cbranch patterns. 
9318         * config/mips/mips.h (cmp_operands): Delete.
9319
9320         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
9321         (mmix_gen_compare_reg): Just return a register in the right CC mode.
9322         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
9323         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
9324         (*cmpcc_folded): Rename to...
9325         (*cmpdi_folded): this.
9326         (*cmpcc): Rename to...
9327         (*cmps): ... this.
9328         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
9329         (bCC): Remove.
9330         (cbranchdi4): New.
9331         (cbranchdf4): New.  Handle invalid comparisons here.
9332         * config/mmix/predicates.md (float_comparison_operator): New.
9333
9334         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
9335         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
9336         * config/mn10300/mn10300.md (tst): Delete.
9337         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
9338         Name these patterns and wrap RHS in a compare.
9339         (*cmpsi): Make this pattern private.  Include tst.
9340         (*cmpsf): Make this pattern private.
9341         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
9342         (compare with zero peepholes): Likewise.
9343         (bCC): Remove.
9344         (cbranchsi4, cbranchsf4): New.
9345         (casesi): Use cbranchsi4.
9346
9347         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
9348         hppa_branch_type): Delete.
9349         (return_addr_rtx): Use cbranchsi4.
9350         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
9351         Emit CCFPmode comparison here.
9352         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
9353         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
9354         hppa_branch_type): Delete.
9355         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
9356         (movsicc, movdicc): Remove references to hppa_compare_op0,
9357         hppa_compare_op1 and compare_from_rtx.
9358         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
9359         (casesi): Use cbranchsi4.
9360
9361         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
9362         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
9363         * config/pdp11/pdp11.md (register_or_const0_operand): New.
9364         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
9365         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
9366         (bCC): Delete.
9367         (cbranchdf4, cbranchhi4, cbranchqi4): New.
9368         (*branch, *branch_inverted): New.
9369
9370         * config/picochip/picochip.md (cbranchhi4): Use
9371         ordered_comparison_operator.
9372         (cmphi, bCC): Remove.
9373
9374         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
9375         (trap_comparison_operator): Delete.
9376         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
9377         rs6000_emit_cbranch): Accept mode and operands.
9378         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
9379         rs6000_compare_fp_p): Delete.   
9380         (rs6000_generate_compare): Accept mode and comparison.  Extract code
9381         and op0/op1 from there.  Replace references to rs6000_compare_op0
9382         and rs6000_compare_op1.
9383         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
9384         extract result from passed operands.
9385         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
9386         extract loc from passed operands.
9387         (rs6000_emit_cmove): Likewise.
9388         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
9389         rs6000_compare_fp_p): Delete.
9390         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
9391         (cbranch<GPR>4, cbranch<FP>4): New.
9392         (cstore<mode>4): New.  Consolidate here all choices about when to use
9393         portable or specialized sCC sequences.
9394         (stack_protect_test): Use cbranchsi4.
9395         (conditional_trap): Replace with ctrap<GPR>4.
9396         (conditional trap insn): Replace trap_comparison_operator with
9397         ordered_comparison_operator. 
9398
9399         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
9400         (s390_emit_prologue): Use ctrap.
9401         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
9402         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
9403         New predicates replacing...
9404         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
9405         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
9406         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
9407         (add<mode>cc): Do not use s390_compare_op0/op1.
9408         (s<code>): Change to...
9409         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
9410         (seq): Change to...
9411         (cstorecc4): ... this.  Handle EQ or NE equally.
9412         (*sne): Un-privatize for use in cstorecc4.
9413         (b<code>): Change to...
9414         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
9415         (conditional_trap): Replace with...
9416         (ctrap<GPR>4, ctrap<FP>4): ... these.
9417         (stack_protect): Use cbranchcc4.
9418
9419         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
9420         * config/score/score-protos.h (score_gen_cmp): Delete.
9421         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
9422         (score_block_move-loop): Use cbranchsi4.
9423         * config/score/score.md (cbranchsi4): New.
9424         (cmpsi, bCC): Delete.
9425         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
9426         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9427         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
9428         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9429         * config/score/score3.h (score3_gen_cmp): Delete.
9430         * config/score/score7.h (score7_gen_cmp): Delete.
9431
9432         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
9433         (sh_emit_scc_to_t): ... this.  Return void.
9434         (from_compare): Rename to...
9435         (sh_emit_compare_and_branch): ... this.
9436         (sh_emit_compare_and_set): New.
9437         (sh_expand_t_scc): Accept operands.
9438         * config/sh/predicates.md (sh_float_comparison_operator): New.
9439         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
9440         (prepare_scc_operands): Rename to...
9441         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
9442         arguments.
9443         (sh_emit_cheap_store_flag): New.
9444         (sh_emit_set_t_insn): New.
9445         (from_compare): Rename to...
9446         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
9447         handling of TARGET_SH2E floating point to avoid recursive call.
9448         Generate branch here.
9449         (sh_emit_compare_and_set): New.
9450         (sh_expand_t_scc): Get op0/op1 from arguments.
9451         (sh_emit_cheap_store_flag): New.
9452         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
9453         cases.
9454         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
9455         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
9456         (movsicc, movdicc): Do nothing when it recreated operands from
9457         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
9458         prepare_scc_operands (now sh_emit_scc_to_t).
9459         (udivdi3): Use cstoresi4.
9460         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
9461         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
9462         (cbranchint4_media, cbranchfp4_media): New.
9463         (casesi): Use cbranchdi4.
9464         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
9465         Delete.
9466         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
9467         (movnegt): Remove second operand.
9468         (cbranchsf4, cbranchdf4): New.
9469         (stack_protect): Use cbranchdi4/cbranchsi4.
9470
9471         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
9472         (gen_compare_reg): Accept comparison, extract part of it to...
9473         (gen_compare_reg_1): ... this. 
9474         (gen_compare_operator): Delete.
9475         (gen_v9_scc): Accept separate destination, comparison code and arms.
9476         Do not use sparc_compare_op0/sparc_compare_op1.
9477         (emit_scc_insn, emit_conditional_branch_insn): New.
9478         (emit_v9_brxx): Make static.  Remove useless assertion.
9479         (sparc_emit_float_lib_cmp): Return RTL instead of calling
9480         emit_cmp_insn.
9481         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
9482         * config/sparc/sparc-protos.h (gen_compare_reg,
9483         sparc_emit_float_lib_cmp): Adjust prototype.
9484         (emit_scc_insn, emit_conditional_branch_insn): New.
9485         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
9486         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
9487         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
9488         iterators to the top.
9489         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
9490         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
9491         snedi_special_trunc): Delete.
9492         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
9493         and snedi_special_trunc.
9494         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
9495         cbranchdi4, cbranch<F:mode>4): New.
9496         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
9497         here.  Use gen_compare_reg instead of gen_compare_operator.
9498         (conditional_trap): Replace with...
9499         (ctrapsi4, ctrapdi4): ... this.
9500         (stack_protect_test): Use cbranchcc4.
9501
9502         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
9503         argument to rtx.
9504         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
9505         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
9506         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
9507         from operands[0] or operands[3] depending on is_set.
9508         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
9509         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
9510         cmpdf, bCC), sCC: Remove.
9511         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
9512         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
9513         cstoredf4): New.
9514         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
9515         spu_emit_branch_or_set.
9516
9517         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
9518         Add two arguments.
9519         * config/stormy16/stormy16.h (xstormy16_compare_op0,
9520         xstormy16_compare_op1): Delete.
9521         * config/stormy16/stormy16.c (xstormy16_compare_op0,
9522         xstormy16_compare_op1): Delete. 
9523         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
9524         Adjust calls.
9525         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
9526         (cmphi, cmpsi, bCC): Remove.
9527
9528         * config/v850/v850.md (tstsi, cmpsi): Fold into...
9529         (*cmpsi): ... this one.
9530         (cbranchsi4, cstoresi4): New.
9531         (bCC expanders): Delete.
9532         (sCC insns): Fold into...
9533         (*setcc): ... this one.
9534         (casesi): Do not use gen_cmpsi and gen_bgtu. 
9535         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
9536         (movsicc): Simplify.
9537         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
9538
9539         * config/vax/vax-protos.h (cond_name): New.
9540         (vax_output_conditional_branch): Remove.
9541         * config/vax/vax.c (cond_name): New.
9542         (vax_output_conditional_branch): Remove.
9543         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
9544         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
9545         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
9546         (bit<VAXint>): Wrap source with (compare).
9547         (b<code> and following unnamed pattern): Rename to *branch and
9548         *branch_reversed.  Change macroization to match_operator.
9549         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
9550
9551         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
9552         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
9553         Change last argument to machine_mode.
9554         (xtensa_expand_scc): Add machine_mode argument.
9555         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
9556         (gen_conditional_move, xtensa_expand_conditional_branch,
9557         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
9558         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
9559         Adjust operand numbers.
9560         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
9561         Delete.
9562         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
9563         (cmpsi, cmpsf, b<code>, s<code>): Delete.
9564         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
9565
9566 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
9567
9568         * optabs.c (prepare_cmp_insn): Temporarily disable test that
9569         causes spurious differences between trunk and cond-optab branch.
9570
9571 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9572
9573         PR target/37137
9574         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
9575
9576 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9577
9578         * tree.c (iterative_hash_pointer): Delete.
9579         (iterative_hash_expr): Short-circuit handling of NULL pointer.
9580         Hash UIDs and versions of SSA names.  Don't special-case built-in
9581         function declarations.
9582
9583 2009-05-11  Ian Lance Taylor  <iant@google.com>
9584
9585         PR bootstrap/40103
9586         * graphite.c: Force -Wc++-compat to only be a warning before
9587         #including "cloog/cloog.h".
9588
9589 2009-05-11  Martin Jambor  <mjambor@suse.cz>
9590
9591         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
9592         
9593 2009-05-11  Jan Hubicka  <jh@suse.cz>
9594
9595         * tree-ssa-loop-ivcanon.c: Include target.h
9596         (struct loop_size): new structure.
9597         (constant_after_peeling): New predicate.
9598         (tree_estimate_loop_size): New function.
9599         (estimated_unrolled_size): Rewrite for new estimates.
9600         (try_unroll_loop_completely): Use new estimates.
9601         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
9602
9603 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9604
9605         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
9606         libcpp interface change.
9607         (spu_macro_to_expand): Likewise.
9608
9609 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
9610
9611         PR tree-optimization/40026
9612         * gimplify.c (gimplify_init_constructor): Change initial conditional
9613         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
9614         optimize_compound_literals_in_ctor.
9615
9616 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
9617
9618         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
9619         New devices.
9620         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
9621
9622 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9623
9624         * tree-vect-data-refs.c (vect_analyze_group_access): Use
9625         HOST_WIDE_INT for gap.
9626
9627 2009-05-11  Ira Rosen  <irar@il.ibm.com>
9628
9629         PR tree-optimization/40074
9630         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
9631         account in group size and step comparison.
9632
9633 2009-05-11  Richard Guenther  <rguenther@suse.de>
9634
9635         * passes.c (init_optimization_passes): Strip now incorrect comment.
9636         (execute_function_todo): Do not set PROP_alias.
9637         * tree-pass.h (PROP_alias): Remove.
9638         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
9639         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
9640         * tree-nrv.c (pass_return_slot): Likewise.
9641         * tree-object-size.c (pass_object_sizes): Likewise.
9642         * tree-ssa-dom.c (pass_dominator): Likewise.
9643         (pass_phi_only_cprop): Likewise.
9644         * tree-ssa-dse.c (pass_dse): Likewise.
9645         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
9646         (pass_cselim): Likewise.
9647         * tree-ssa-pre.c (pass_pre): Likewise.
9648         (pass_fre): Likewise.
9649         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9650         * tree-ssa-sink.c (pass_sink_code): Likewise.
9651         * tree-stdarg.c (pass_stdarg): Likewise.
9652         * tree-tailcall.c (pass_tail_calls): Likewise.
9653         * tree-vrp.c (pass_vrp): Likewise.
9654
9655 2009-05-10  Ian Lance Taylor  <iant@google.com>
9656
9657         * basic-block.h (enum profile_status): Break out of struct
9658         control_flow_graph.
9659         * cgraph.h (struct inline_summary): Break out of struct
9660         cgraph_local_info.
9661         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
9662         of struct cgraph_order_sort.
9663         * combine.c (enum undo_kind): New enum, broken out of struct undo.
9664         * cse.c (struct branch_path): Break out of struct
9665         cse_basic_block_data.
9666         * except.h (enum eh_region_type): Break out of struct eh_region.
9667         * gcc.c (enum add_del): Break out of struct modify_target.
9668         * genrecog.c (enum decision_type): Break out of struct decision_test.
9669         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
9670         ggc_pch_data.
9671         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
9672         * regmove.c (enum match_use): New enum, broken out of struct match.
9673         * sched-int.h (enum post_call_group): New enum, broken out of
9674         struct deps.
9675         (struct deps_reg): Break out of struct deps.
9676         * target.h (struct asm_int_op): Break out of struct gcc_target.
9677         * tree-eh.c (struct goto_queue_node): Break out of struct
9678         leh_tf_state.
9679         * tree-inline.h (enum copy_body_cge_which): Break out of
9680         copy_body_data.
9681         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
9682
9683         * c-decl.c (in_struct, struct_types): New static variables.
9684         (pushtag): Add loc parameter.  Change all callers.
9685         (lookup_tag): Add ploc parameter.  Change all callers.
9686         (check_compound_literal_type): New function.
9687         (parser_xref_tag): Add loc parameter.  Change all callers.  If
9688         -Wc++-compat, warn about struct/union/enum types defined within a
9689         struct or union.
9690         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
9691         and loc parameters.  Change all callers.  Change error calls to
9692         error_at, using loc.  For a redefinition, if the location of the
9693         original definition is known, report it.  Set in_struct and
9694         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
9695         (finish_struct): Add new parameters enclosing_in_struct and
9696         enclosing_struct_types.  Change all callers.  Set
9697         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
9698         in the struct.  If in a struct, add this struct to struct_types.
9699         (start_enum): Add loc parameter.  Change all callers.  Use
9700         error_at for errors, using loc.  For a redefinition, if the
9701         location of the original definition is known, report it.  If in a
9702         struct, add this enum type to struct_types.  If -Wc++-compat warn
9703         if in sizeof, typeof, or alignof.
9704         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
9705         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
9706         (c_parser_enum_specifier): Get enum location for start_enum.
9707         (c_parser_struct_or_union_specifier): Get struct location for
9708         start_struct.  Save in_struct and struct_types status between
9709         start_struct and finish_struct.
9710         (c_parser_cast_expression): Get location of cast.
9711         (c_parser_alignof_expression): Get location of type.
9712         (c_parser_postfix_expression): Likewise.
9713         (c_parser_postfix_expression_after_paren_type): Add type_loc
9714         parameter.  Change all callers.  Call check_compound_literal_type.
9715         Use type_loc for error about variable size type.
9716         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
9717         of an enum constant from an enum type defined in a struct or union.
9718         (c_cast_expr): Add loc parameter.  Change all callers.  If
9719         -Wc++-compat, warn about defining a type in a cast.
9720         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
9721         (start_enum, start_struct, finish_struct): Update declarations.
9722         (parser_xref_tag, c_cast_expr): Update declarations.
9723         (check_compound_literal_type): Declare.
9724
9725 2009-05-11  Ben Elliston  <bje@au.ibm.com>
9726
9727         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
9728         for recent libcpp interface change.
9729         (rs6000_macro_to_expand): Likewise.
9730
9731 2009-05-10  Michael Matz  <matz@suse.de>
9732
9733         PR target/40031
9734         * config/arm/arm.c (require_pic_register): Emit on entry edge,
9735         not at entry of function.
9736
9737 2009-05-10  Richard Guenther  <rguenther@suse.de>
9738
9739         PR tree-optimization/40081
9740         Revert
9741         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9742         using the main variant of the element type.  Do not fiddle with
9743         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9744
9745         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
9746         structs with volatile fields.
9747
9748 2009-05-10  Jan Hubicka  <jh@suse.cz>
9749
9750         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
9751         (estimate_move_cost): Assert that it does not get called for
9752         VOID_TYPE_P.
9753         (estimate_num_insns): Skip VOID types in argument handling.
9754         (optimize_inline_calls): Delete unreachable blocks and verify that
9755         callgraph is valid.
9756
9757 2009-05-10  Jan Hubicka  <jh@suse.cz>
9758
9759         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
9760         * cgraph.c (cgraph_mark_address_taken_node): New function.
9761         (dump_cgraph_node): Dump new flag.
9762         * cgraph.h (struct cgraph_node): Add address_taken.
9763         (cgraph_mark_address_taken_node): New function.
9764         * ipa.c (cgraph_postorder): Prioritize functions with address taken
9765         since new direct calls can be born.
9766
9767 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9768
9769         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
9770         tok->val.node.node.
9771
9772 2009-05-10  Jan Hubicka  <jh@suse.cz>
9773
9774         PR middle-end/40084
9775         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
9776         argument; rewrite.
9777         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
9778         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
9779         * tree-inline.c (copy_bb): Set frequency correctly.
9780         (fold_marked_statements): Update call to
9781         cgraph_update_edges_for_call_stmt.
9782
9783 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9784
9785         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
9786         identifiers in diagnostics.
9787         * config/arm/arm.c (arm_handle_fndecl_attribute,
9788         arm_handle_isr_attribute): Likewise.
9789         * config/avr/avr.c (avr_handle_progmem_attribute,
9790         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
9791         * config/bfin/bfin.c (handle_int_attribute,
9792         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
9793         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
9794         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
9795         Likewise.
9796         * config/darwin.c (darwin_handle_kext_attribute,
9797         darwin_handle_weak_import_attribute): Likewise.
9798         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
9799         h8300_handle_eightbit_data_attribute,
9800         h8300_handle_tiny_data_attribute): Likewise.
9801         * config/i386/i386.c (ix86_handle_cconv_attribute,
9802         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
9803         * config/i386/winnt.c (ix86_handle_shared_attribute,
9804         ix86_handle_selectany_attribute): Likewise.
9805         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
9806         * config/m32c/m32c.c (function_vector_handler): Likewise.
9807         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
9808         m68hc11_handle_fntype_attribute): Likewise.
9809         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
9810         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
9811         * config/mips/mips.c (mips_insert_attributes,
9812         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
9813         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
9814         rs6000_handle_struct_attribute): Likewise.
9815         * config/sh/sh.c (sh_insert_attributes,
9816         sh_handle_resbank_handler_attribute,
9817         sh_handle_interrupt_handler_attribute,
9818         sh2a_handle_function_vector_handler_attribute,
9819         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
9820         Likewise.
9821         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
9822         * config/spu/spu.c (spu_handle_fndecl_attribute,
9823         spu_handle_vector_attribute): Likewise.
9824         * config/stormy16/stormy16.c
9825         (xstormy16_handle_interrupt_attribute): Likewise.
9826         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
9827         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
9828
9829 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9830
9831         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
9832         (pp_translate_identifiers): New.
9833         (pp_identifier): Only conditionally translate identifier to locale
9834         character set.
9835         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
9836         (pp_base_tree_identifier): Only conditionally translate identifier
9837         to locale character set.
9838         * c-pretty-print.c (M_): Define.
9839         (pp_c_type_specifier, pp_c_primary_expression): Mark English
9840         fragments for conditional translation with M_.
9841         * tree-pretty-print.c (maybe_init_pretty_print): Disable
9842         identifier translation.
9843
9844 2009-05-10  Richard Guenther  <rguenther@suse.de>
9845
9846         PR tree-optimization/40081
9847         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9848         using the main variant of the element type.  Do not fiddle with
9849         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9850
9851 2009-05-09  Jan Hubicka  <jh@suse.cz>
9852
9853         PR middle-end/40080
9854         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
9855         indirect calls; verify cgraph afterwards.
9856
9857 2009-05-09  Jan Hubicka  <jh@suse.cz>
9858
9859         PR bootstrap/40082
9860         * ipa.c (update_inlined_to_pointer): New function.
9861         (cgraph_remove_unreachable_nodes): Use it.
9862
9863 2009-05-09  Jan Hubicka  <jh@suse.cz>
9864
9865         * tree-eh.c (struct leh_state): Remove prev_try.
9866         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
9867         not track prev_try.
9868         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
9869         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
9870         remove_eh_handler_and_replace, foreach_reachable_handler,
9871         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
9872         * except.h (struct eh_region): Remove eh_region_u_cleanup.
9873         (gen_eh_region_cleanup): Update prototype.
9874
9875 2009-05-09  Jan Hubicka  <jh@suse.cz>
9876
9877         PR middle-end/40043
9878         * except.c (copy_eh_region): Always set prev_try.
9879         (redirect_eh_edge_to_label): Find outer try.
9880         (foreach_reachable_handler): When looking for prev try
9881         handle case where previous try is not going to be taken.
9882
9883 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
9884
9885         PR tree-optimization/40049
9886         * tree-vect-stmts.c (vectorizable_operation): If the machine has
9887         only vector/vector shifts, convert the type of the constant to the
9888         appropriate type to avoid building incorrect trees, which
9889         eventually have problems with garbage collection.
9890
9891 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
9892
9893         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
9894         -1 for complex floating-point types if honoring signed zeros.
9895
9896 2009-05-08  Jan Hubicka  <jh@suse.cz>
9897
9898         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
9899         argument; handle correctly when profile is absent.
9900         (build_cgraph_edges): Update.
9901         (rebuild_cgraph_edges): Update.
9902         * cgraph.c: Do not include varray.h.
9903         (cgraph_set_call_stmt_including_clones): New function.
9904         (cgraph_create_edge_including_clones): Likewise
9905         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9906         (cgraph_update_edges_for_call_stmt): Handle clones.
9907         (cgraph_remove_node): Handle clone tree.
9908         (cgraph_remove_node_and_inline_clones): New function.
9909         (dump_cgraph_node): Dump clone tree.
9910         (cgraph_clone_node): Handle clone tree.
9911         (clone_function_name): Bring here from tree-inline.c.
9912         (cgraph_create_virtual_clone): New function.
9913         * cgraph.h (ipa_replace_map): Move here from ipa.h.
9914         (cgraph_clone_info): New function.
9915         (strut cgraph_node): Add clone_info and new clone tree pointers.
9916         (cgraph_remove_node_and_inline_clones,
9917         cgraph_set_call_stmt_including_clones,
9918         cgraph_create_edge_including_clones,
9919         cgraph_create_virtual_clone): Declare.
9920         (cgraph_function_versioning): Use VEC argument.
9921         (compute_call_stmt_bb_frequency): Update prototype.
9922         (cgraph_materialize_all_clones): New function.
9923         * ipa-cp.c (ipcp_update_cloned_node): Remove.
9924         (ipcp_create_replace_map): Update to VECtors.
9925         (ipcp_update_callgraph): Use virtual clones.
9926         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
9927         (ipcp_update_profiling): Do not update local profiling.
9928         (ipcp_insert_stage): Use VECtors and virtual clones.
9929         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
9930         (clone_of_p): New function.
9931         (cgraph_preserve_function_body_p): Use clone tree.
9932         (cgraph_optimize): Materialize clones.
9933         (cgraph_function_versioning): Update for VECtors.
9934         (save_inline_function_body): Use clone tree.
9935         (cgraph_materialize_clone): New function.
9936         (cgraph_materialize_all_clones): Likewise.
9937         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
9938         * ipa.c: Include gimple.h.
9939         (cgraph_remove_unreachable_nodes): Use clone tree.
9940         * ipa-prop.c (ipa_note_param_call): Update call to
9941         compute_call_stmt_bb_frequencycall.
9942         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
9943         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9944         (copy_bb): Handle updating of clone tree; add new edge when new call
9945         appears.
9946         (expand_call_inline): Be strict about every call having edge.
9947         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
9948         (delete_unreachable_blocks_update_callgraph): New function.
9949         (tree_function_versioning): Use VECtors; always remove unreachable
9950         blocks and fold conditionals.
9951         * tree-inline.h: Do not include varray.h.
9952         (tree_function_versioning): Remove.
9953         * Makefile.in (GTFILES): Remove tree-inline.c
9954         * passes.c (do_per_function): Do only functions having body.
9955         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
9956         tree.
9957
9958 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9959             Andrew Morrow  <acm@google.com>
9960
9961         PR c/36892
9962         * c-common.c (c_common_attribute_table): Permit deprecated
9963         attribute to take an optional argument.
9964         (handle_deprecated_attribute): If the optional argument to
9965         __attribute__((deprecated)) is not a string ignore the attribute
9966         and emit a warning.
9967
9968         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
9969         * c-typeck.c (build_component_ref): Likewise.
9970         (build_external_ref): Likewise.
9971
9972         * toplev.c (warn_deprecated_use): Add an attribute argument.
9973         Emit the message associated with __attribute__((deprecated)).
9974
9975         * toplev.h (warn_deprecated_use): Updated.
9976
9977         * doc/extend.texi: Document new optional parameter to
9978         __attribute__((deprecated))
9979
9980 2009-05-08  Michael Eager <eager@eagercon.com>
9981
9982         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
9983         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
9984
9985 2009-05-08  Richard Guenther  <rguenther@suse.de>
9986
9987         PR tree-optimization/40062
9988         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
9989         Avoid exponential behavior.
9990
9991 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9992
9993         PR rtl-optimization/33928
9994         PR 26854
9995         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
9996         process_uses, build_single_def_use_links): New.
9997         (update_df): Update use_def_ref.
9998         (forward_propagate_into): Use get_def_for_use instead of use-def
9999         chains.
10000         (fwprop_init): Call build_single_def_use_links and let it initialize
10001         dataflow.
10002         (fwprop_done): Free use_def_ref.
10003         (fwprop_addr): Eliminate duplicate call to df_set_flags.
10004         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
10005         df_rd_simulate_one_insn): New.
10006         (df_rd_bb_local_compute_process_def): Update head comment.
10007         (df_chain_create_bb): Use the new RD simulation functions.
10008         * df.h (df_rd_simulate_artificial_defs_at_top, 
10009         df_rd_simulate_one_insn): New.
10010         * opts.c (decode_options): Enable fwprop at -O1.
10011         * doc/invoke.texi (-fforward-propagate): Document this.
10012
10013 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
10014
10015         PR c/24581
10016         * c-typeck.c (build_binary_op): Handle arithmetic between one real
10017         and one complex operand specially.
10018         * tree-complex.c (some_nonzerop): Do not identify a real value as
10019         zero if flag_signed_zeros.
10020
10021 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
10022
10023         PR rtl-optimization/33928
10024         * loop-invariant.c (record_use): Fix && vs. || mishap.
10025
10026 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
10027
10028         PR rtl-optimization/33928
10029         * loop-invariant.c (struct use): Add addr_use_p.
10030         (struct def): Add n_addr_uses.
10031         (struct invariant): Add cheap_address.
10032         (create_new_invariant): Set cheap_address.
10033         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
10034         (record_uses): Pass df_ref to record_use.
10035         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
10036         used only as such.
10037
10038 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10039
10040         * config/sh/sh.c: Do not include c-pragma.h.
10041
10042 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10043
10044         * config/spu/spu.c: Remove include of c-common.h.
10045
10046 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
10047
10048         PR c/39037
10049         * c-common.h (mark_valid_location_for_stdc_pragma,
10050         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
10051         clear_float_const_decimal64, float_const_decimal64_p): New.
10052         * c.opt (Wunsuffixed-float-constants): New.
10053         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
10054         unsuffixed float constant, handle new warning.
10055         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
10056         * c-decl.c (c_scope): New flag float_const_decimal64.
10057         (set_float_const_decimal64, clear_float_const_decimal64,
10058         float_const_decimal64_p): New.
10059         (push_scope): Set new flag.
10060         * c-parser.c (c_parser_translation_unit): Mark when it's valid
10061         to use STDC pragmas.
10062         (c_parser_external_declaration): Ditto.
10063         (c_parser_compound_statement_nostart): Ditto.
10064         * c-pragma.c (valid_location_for_stdc_pragma,
10065         mark_valid_location_for_stdc_pragma,
10066         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
10067         handle_pragma_float_const_decimal64): New.
10068         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
10069         * cp/semantics.c (valid_location_for_stdc_pragma_p,
10070         set_float_const_decimal64, clear_float_const_decimal64,
10071         float_const_decimal64_p): New dummy functions.
10072         * doc/extend.texi (Decimal Float): Remove statement that the
10073         pragma, and suffix for double constants, are not supported.
10074         * doc/invoke.texi (Warning Options): List new option.
10075         (-Wunsuffixed-float-constants): New.
10076
10077 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
10078
10079         * config/i386/i386.c: Do not include c-common.h.
10080
10081 2009-05-07  Mark Heffernan  <meheff@google.com>
10082
10083         * doc/invoke.texi (Debugging Options): Document change of debugging
10084         dump location.
10085         * opts.c (decode_options): Make dump_base_name relative to
10086         aux_base_name directory.
10087
10088 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
10089
10090         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
10091         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
10092
10093 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
10094
10095         * Makefile.in (install-plugin): Simplify a bit.
10096
10097 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
10098
10099         * Makefile.in (OBJS-common): Add regcprop.o.
10100         (regcprop.o): New.
10101         * timevar.def (TV_CPROP_REGISTERS): New.
10102         * regrename.c (regrename_optimize): Return 0.
10103         (rest_of_handle_regrename): Delete.
10104         (pass_rename_registers): Point to regrename_optimize.
10105         (struct value_data_entry, struct value_data, 
10106         kill_value_one_regno, kill_value_regno, kill_value,
10107         set_value_regno, init_value_data, kill_clobbered_value,
10108         kill_set_value, kill_autoinc_value, copy_value,
10109         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
10110         replace_oldest_value_reg, replace_oldest_value_addr,
10111         replace_oldest_value_mem, copyprop_hardreg_forward_1,
10112         debug_value_data, validate_value_data): Move...
10113         * regcprop.c: ... here.
10114         (rest_of_handle_cprop): Delete.
10115         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
10116
10117 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
10118
10119         PR middle-end/40057
10120         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
10121         GEN_INT for 1 << bitnum.
10122         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
10123         build_int_cst_type.
10124
10125 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
10126
10127         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
10128         Remove wrong description of "nand" operation.
10129
10130 2009-05-06  Richard Guenther  <rguenther@suse.de>
10131             Adam Nemet  <anemet@caviumnetworks.com>
10132
10133         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
10134         comment.  Add that if LHS is not a gimple register, then RHS1 has
10135         to be a single object (GIMPLE_SINGLE_RHS).
10136
10137 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
10138
10139         * expr.c (get_def_for_expr): Move it up in the file.
10140         (store_field): When expanding a bit-field store, look at the
10141         defining gimple stmt for the masking conversion.
10142
10143 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
10144
10145         PR middle-end/39986
10146         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
10147         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
10148         32-bit memcpy into long.
10149
10150 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
10151
10152         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
10153         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
10154         new_reg_loc_descr.
10155         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
10156         instead of appending DW_OP_deref*.
10157
10158 2009-05-06  Michael Matz  <matz@suse.de>
10159
10160         PR middle-end/40021
10161         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
10162         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
10163
10164 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
10165
10166         * Makefile.in (install-plugin): Fix srcdir handling.
10167
10168 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
10169
10170         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
10171         when processing for not_regs_needed bitmap.
10172         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
10173         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
10174         handling it for rhs. 
10175
10176 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10177
10178         * config/i386/i386.md (unnamed inc/dec peephole): Use
10179         optimize_insn_for_size_p instead of optimize_size.
10180         * config/i386/predicates.md (incdec_operand): Likewise.
10181         (aligned_operand): Likewise.
10182         * config/i386/sse.md (divv8sf3): Likewise.
10183         (sqrtv8sf2): Likewise.
10184
10185 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10186
10187         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
10188
10189         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
10190
10191 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10192
10193         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
10194         ssemodesuffixf2c with avxmodesuffixf2c.
10195
10196 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
10197
10198         PR c/40032
10199         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
10200
10201 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
10202
10203         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
10204         (struct tree_base): Adjust spacing for 8 bit boundaries.
10205         (struct tree_decl_common): Add decl_by_reference_flag bit.
10206         (DECL_BY_REFERENCE): Adjust.
10207         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
10208         print DECL_BY_REFERENCE bit.
10209         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
10210         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
10211         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
10212         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
10213         unconditionally.
10214
10215         PR middle-end/39666
10216         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
10217         range of the type, but default label is missing, add it with one
10218         of the existing labels instead of adding a new label for it.
10219
10220 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
10221
10222         * dwarf.h: Remove.
10223
10224 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
10225
10226         * Makefile.in (enable_plugin, plugin_includedir): New.
10227         (install): Depend on install-plugin.
10228         (PLUGIN_HEADERS): New.
10229         (install-plugin): New.
10230         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
10231
10232 2009-05-05  Richard Guenther  <rguenther@suse.de>
10233
10234         PR tree-optimization/40022
10235         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
10236         the only vuse.
10237         (phivn_valid_p): Fix tuplification error, simplify.
10238         (phiprop_insert_phi): Add dumps.
10239         (propagate_with_phi): Simplify.
10240
10241 2009-05-05  Richard Guenther  <rguenther@suse.de>
10242
10243         PR middle-end/40023
10244         * builtins.c (gimplify_va_arg_expr): Properly build the address.
10245
10246 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
10247
10248         * tree.h (strip_float_extensions): Remove duplicate declaration.
10249         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
10250         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
10251         block_ultimate_origin): Rearrange the declarations line to match the
10252         comment that indicates the .c file which the functions are defined.
10253         (dwarf2out_*, set_decl_rtl): Add comment.
10254         (get_base_address): Adjust comment.
10255         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
10256         declarations line and add comment.
10257         (is_builtin_name): Add blank after function name, for clarity.
10258
10259 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * attribs.c (decl_attributes): Use %qE for identifiers in
10262         diagnostics.
10263         * cgraphunit.c (verify_cgraph_node): Translate function names to
10264         locale character set in diagnostics.
10265         * coverage.c (get_coverage_counts): Use %qE for identifiers in
10266         diagnostics.
10267         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
10268         Document that functions are named in UTF-8.
10269         * expr.c (expand_expr_real_1): Translate function names to locale
10270         character set in diagnostics.
10271         * gimplify.c (omp_notice_variable, omp_is_private,
10272         gimplify_scan_omp_clauses): Use %qE for identifiers in
10273         diagnostics.
10274         * langhooks.c (lhd_print_error_function): Translate function names
10275         to locale character set.
10276         * langhooks.h (decl_printable_name): Document that return value is
10277         in internal character set.
10278         * stmt.c: Include pretty-print.h
10279         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
10280         diagnostics.
10281         (resolve_operand_name_1): Translate named operand name to locale
10282         character set.
10283         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
10284         diagnostics.
10285         * toplev.c (announce_function): Translate function names to locale
10286         character set.
10287         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
10288         (default_tree_printer): Use pp_identifier or translate identifiers
10289         to locale character set.  Mark "<anonymous>" for translation.
10290         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
10291         for identifiers in diagnostics.
10292         * tree.c (handle_dll_attribute): Use %qE for identifiers in
10293         diagnostics.
10294         * varasm.c (output_constructor): Use %qE for identifiers in
10295         diagnostics.
10296
10297 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
10298
10299         * configure.ac: use ` ` instead of $()
10300         * configure: Regenerate.
10301
10302 2009-05-05  Ben Elliston  <bje@au.ibm.com>
10303
10304         * config/pa/linux-atomic.c: Eliminate conditional include of
10305         errno.h on non-LP64 systems to simplify build requirements.
10306
10307 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10308
10309         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
10310         diagnostics.
10311         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
10312         and pass value to identifier_to_locale.
10313         (warn_variable_length_array): Make name a tree.
10314         (grokdeclarator): Separate diagnostic texts for named and unnamed
10315         declarators.  Use %qE for named declarators.
10316         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
10317         diagnostics.
10318         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
10319         identifiers in diagnostics.
10320         * c-typeck.c (push_member_name, start_init): Pass identifiers to
10321         identifier_to_locale.  Mark "anonymous" strings for translation.
10322
10323 2009-05-04  Michael Eager <eager@eagercon.com>
10324
10325         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
10326         address for DImode/DFmode only if double-precision FP regs.
10327
10328 2009-05-04  Michael Eager <eager@eagercon.com>
10329
10330         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
10331         TARGET_SINGLE_FLOAT check.
10332
10333 2009-05-04  Michael Eager <eager@eagercon.com>
10334
10335         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
10336
10337 2009-05-04  Michael Eager <eager@eagercon.com>
10338
10339         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
10340         * config/rs6000/t-xilinx: New
10341
10342 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
10343
10344         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
10345         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
10346         * gcc/explow.c (memory_address): Use target hook.
10347         * gcc/targhooks.c (default_legitimize_address): New.
10348         * gcc/targhooks.h (default_legitimize_address): New.
10349         * gcc/target.h (legitimize_address): New.
10350         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
10351         (TARGET_INITIALIZER): Include it.
10352         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
10353
10354         * config/bfin/bfin-protos.h (legitimize_address): Remove.
10355         * config/bfin/bfin.c (legitimize_address): Remove.
10356         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
10357         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
10358         Remove.
10359         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
10360         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
10361
10362         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
10363         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
10364         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
10365         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
10366         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
10367         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
10368         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
10369         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
10370         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
10371         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
10372         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
10373         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
10374         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
10375         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
10376         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
10377         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
10378         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
10379         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
10380         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
10381         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
10382         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
10383         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
10384         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
10385
10386         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
10387         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
10388         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
10389         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
10390         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
10391         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
10392         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
10393         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
10394         (thumb_legitimize_address): Delete.
10395         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
10396         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
10397         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
10398         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
10399         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
10400         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
10401         Delete.
10402         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
10403         Delete.
10404
10405         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
10406         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
10407         * config/m32r/m32r.c (m32r_legitimize_address): New.
10408         * config/m68k/m68k.c (m68k_legitimize_address): New.
10409         * config/score/score.c (score_legitimize_address): Standardize.
10410         * config/score/score3.c (score3_legitimize_address): Standardize.
10411         * config/score/score3.h (score3_legitimize_address): Adjust.
10412         * config/score/score7.c (score7_legitimize_address): Standardize.
10413         * config/score/score7.h (score7_legitimize_address): Adjust.
10414         * config/sh/sh.c (sh_legitimize_address): New.
10415         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
10416
10417         * gcc/config/s390/s390.c (legitimize_address): Rename to...
10418         (s390_legitimize_address): ... this.
10419         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
10420         (sparc_legitimize_address): ... this.
10421         * gcc/config/i386/i386.c (legitimize_address): Rename to...
10422         (ix86_legitimize_address): ... this.
10423         * gcc/config/avr/avr.c (legitimize_address): Rename to...
10424         (avr_legitimize_address): ... this.
10425         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
10426         (mn10300_legitimize_address): ... this.
10427         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
10428         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
10429         (alpha_expand_mov): Adjust call.
10430
10431         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
10432         * config/spu/spu.c (spu_legitimize_address): Likewise.
10433         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
10434         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
10435
10436 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * intl.c (locale_encoding, locale_utf8): New.
10439         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
10440         * intl.h (locale_encoding, locale_utf8): Declare.
10441         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
10442         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
10443         New.
10444         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
10445         argument.
10446         (pp_tree_identifier): Define to call pp_base_tree_identifier.
10447         (pp_base_tree_identifier): Declare as function.
10448         (identifier_to_locale): Declare.
10449         * Makefile.in (pretty-print.o): Update dependencies.
10450         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
10451
10452 2009-05-04  Richard Guenther  <rguenther@suse.de>
10453
10454         PR middle-end/40015
10455         * builtins.c (fold_builtin_memory_op): Do not decay to element
10456         type if the size matches the whole array.
10457
10458 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
10459
10460         * expmed.c (synth_mult): When trying out a shift, pass the result
10461         of a signed shift.
10462
10463 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
10464
10465         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
10466         (shiftsub1_cost): New.
10467         (init_expmed): Compute shiftsub1_cost.
10468         (synth_mult): Optimize multiplications by constants of the form
10469         -(2^^m-1) for some constant positive integer m.
10470
10471 2009-05-03  Richard Guenther  <rguenther@suse.de>
10472
10473         PR c/39983
10474         * c-typeck.c (array_to_pointer_conversion): Do not built
10475         ADDR_EXPRs of arrays of pointer-to-element type.
10476         * c-gimplify.c (c_gimplify_expr): Revert change fixing
10477         up wrong ADDR_EXPRs after-the-fact.
10478         * c-common.c (strict_aliasing_warning): Strip pointer
10479         conversions for obtaining the original type.
10480         * builtins.c (fold_builtin_memset): Handle array types.
10481         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
10482         and array types
10483
10484 2009-05-03  Richard Guenther  <rguenther@suse.de>
10485
10486         PR middle-end/23329
10487         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
10488         Do not lose casts from array types with unknown extent to array
10489         types with known extent.
10490         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
10491         alias set compatibility.
10492
10493 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10494
10495         * flags.h (extra_warnings): Delete.
10496         * toplev.c (process_options): Handle Wuninitialized here.
10497         * opts.c (extra_warnings): Delete.
10498         (set_Wextra): Delete.
10499         (common_handle_option): -Wextra can be handled automatically.
10500         * c-opts.c (c_common_handle_option): Delete obsolete code.
10501         (c_common_post_options): Simplify comment.
10502         * common.opt (W): Add Var.
10503         (Wextra): Add Var.
10504         (Wuninitialized): Initialize to -1.
10505
10506 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
10507             Richard Guenther  <rguenther@suse.de>
10508
10509         * expr.c (get_def_for_expr): New function.
10510         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
10511         SSA rather than trees.
10512         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
10513         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
10514         
10515 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
10516
10517         * c-common.c (reswords): Add _Imaginary.
10518         * c-common.c (enum rid): Add RID_IMAGINARY.
10519
10520 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
10521
10522         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
10523         Patch by Richard Guenther.
10524
10525 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
10526
10527         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
10528         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10529         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
10530         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
10531         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
10532         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
10533         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
10534         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
10535         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
10536         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
10537         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
10538         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
10539         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
10540         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
10541         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
10542         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
10543         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
10544         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
10545
10546 2009-05-02  Richard Guenther  <rguenther@suse.de>
10547
10548         PR tree-optimization/39940
10549         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
10550         doing so.
10551
10552 2009-05-02  Richard Guenther  <rguenther@suse.de>
10553
10554         PR middle-end/40001
10555         * tree-ssa.c (execute_update_addresses_taken): Properly check
10556         if we can mark a variable DECL_GIMPLE_REG_P.
10557         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
10558         back to the end of the function.
10559         (is_gimple_reg_type): Remove complex type special casing.
10560         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
10561         if not optimizing.
10562
10563 2009-05-02  Ben Elliston  <bje@au.ibm.com>
10564
10565         * doc/collect2.texi (Collect2): Document search path behaviour
10566         when configured with --with-ld.
10567
10568 2009-05-02  Jan Hubicka  <jh@suse.cz>
10569
10570         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
10571         parameter; update callers.
10572         (coalesce_cost_edge): EH edges are costier because they needs
10573         splitting even if not critical and even more costier when there are
10574         multiple EH predecestors.
10575
10576 2009-05-02  Jan Hubicka  <jh@suse.cz>
10577
10578         * except.c (remove_eh_handler_and_replace): Handle updating after
10579         removing TRY blocks.
10580
10581 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
10582
10583         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
10584
10585 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
10586
10587         * varasm.c: Do not include c-pragma.h.
10588         * attribs.c: Do not incude c-common.h.
10589
10590 2009-05-01  Michael Matz  <matz@suse.de>
10591
10592         * calls.c (initialize_argument_information): Handle SSA names like
10593         decls with a non MEM_P DECL_RTL.
10594
10595 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10596
10597         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
10598         * ipa-utils.c: Likewise.
10599         * ipa-type-escape.c: Likewise.
10600         * cgraphunit.c Do not include c-common.h.
10601         * ipa-pure-const.c: Likewise.
10602         * tree-if-conv.c: Likewise.
10603         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
10604         * ipa-struct-reorg.c: Likewise.
10605         * tree-nomudflap.c: Likewise.
10606         * tree-ssa-structalias.c: Likewise.
10607
10608 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10609
10610         * store-motion.c: Many cleanups to make this pass a first-class
10611         citizen instead of an appendix to gcse load motion.  Add TODO list
10612         to make this pass faster/cleaner/better.
10613
10614         (struct ls_expr): Post gcse.c-split cleanups.
10615         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
10616         "stores" field to "avail_stores".
10617         (pre_ldst_mems): Rename to store_motion_mems.
10618         (pre_ldst_table): Rename to store_motion_mems_table.
10619         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
10620         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
10621         (ldst_entry): Rename to st_expr_entry, update users.
10622         (free_ldst_entry): Rename to free_st_expr_entry, update users.
10623         (free_ldst_mems): Rename to free_store_motion_mems, update users.
10624         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
10625         update caller.
10626         (first_ls_expr): Rename to first_st_expr, update users.
10627         (next_ls_expr): Rename to next_st_expr, update users.
10628         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
10629         fields properly for store motion instead of names inherited from load
10630         motion in gcse.c.
10631         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
10632         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
10633         are done with it.
10634
10635         (ae_kill): Rename to st_kill, update users.
10636         (ae_gen): Rename to st_avloc, update users.
10637         (transp): Rename to st_transp, update users.
10638         (pre_insert_map): Rename to st_insert_map, update users.
10639         (pre_delete_map): Rename to st_delete_map, update users.
10640         (insert_store, build_store_vectors, free_store_memory,
10641         one_store_motion_pass): Update for abovementioned changes.
10642
10643         (gcse_subst_count, gcse_create_count): Remove.
10644         (one_store_motion_pass): New statistics counters "n_stores_deleted"
10645         and "n_stores_created", local variables.
10646
10647         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
10648         use for_each_rtx.
10649
10650         (regvec, compute_store_table_current_insn): Remove.
10651         (reg_set_info, reg_clear_last_set): Remove.
10652         (compute_store_table): Use DF caches instead of local dataflow
10653         solvers.
10654
10655 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
10656
10657         * c-objc-common.c (c_tree_printer): Print identifiers with
10658         pp_identifier, not pp_string.  Mark "({anonymous})" for
10659         translation.
10660         * c-pretty-print.c (pp_c_ws_string): New.
10661         (pp_c_cv_qualifier, pp_c_type_specifier,
10662         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
10663         pp_c_storage_class_specifier, pp_c_function_specifier,
10664         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
10665         pp_c_primary_expression, pp_c_postfix_expression,
10666         pp_c_unary_expression, pp_c_shift_expression,
10667         pp_c_relational_expression, pp_c_equality_expression,
10668         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
10669         use pp_string and pp_c_ws_string in place of pp_identifier and
10670         pp_c_identifier for non-identifiers.  Mark English strings for
10671         translation.
10672         * c-pretty-print.h (pp_c_ws_string): Declare.
10673
10674 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
10675             Roland McGrath <roland@redhat.com>
10676
10677         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
10678         (ENABLE_LD_BUILDID): New configuration option.
10679         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
10680         (LINK_BUILDID_SPEC): New macro.
10681         (init_spec): If defined, prepend it between LINK_EH_SPEC and
10682         link_spec.
10683         * doc/install.texi: Document --enable-linker-build-id option.
10684         * configure: Rebuild.
10685         * config.in: Rebuild.
10686
10687 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
10688
10689         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
10690         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
10691         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
10692         MIPS_GP_SAVE_AREA_SIZE.
10693         * config/mips/mips.c (struct mips_frame_info): Update comment
10694         before arg_pointer_offset and hard_frame_pointer_offset.
10695         (mips_compute_frame_info): Update diagram before function: to
10696         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
10697         indicate the position of frame_pointer_rtx with -fstack-protector and
10698         to show args_size.  Don't allocate cprestore area for leaf functions
10699         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
10700         cprestore_size.
10701         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
10702
10703 2009-04-30  Michael Matz  <matz@suse.de>
10704
10705         PR tree-optimization/39955
10706         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
10707
10708 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10709
10710         * ira.c (setup_cover_and_important_classes):  Use safe macro
10711         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
10712         directly.
10713         * genpreds.c (write_tm_preds_h):  Output suitable definition of
10714         REG_CLASS_FOR_CONSTRAINT.
10715
10716 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10717
10718         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
10719         instead of an int.
10720         * bitmap.c (bitmap_descriptor): Likewise.
10721         * ggc-common.c (loc_descriptor): Likewise.
10722         * varray.c (varray_descriptor): Likewise.
10723         * vec.c (vec_descriptor): Likewise.
10724
10725 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10726
10727         * Makefile.in (dce.o): Add $(EXCEPT_H).
10728         * dce.c: Include except.h and delete redundant vector definitions.
10729         (deletable_insn_p): Return false for non-call insns that can throw
10730         if DF is running.
10731
10732 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10733
10734         * gcse.c (ae_gen): Remove.
10735         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
10736         and make non-static function to make it available in store-motion.c.
10737         Update call sites with search-and-replace.
10738         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
10739         extract_mentioned_regs, extract_mentioned_regs_helper,
10740         find_moveable_store, compute_store_table, load_kills_store, find_loads,
10741         store_killed_in_insn, store_killed_after, store_killed_before,
10742         build_store_vectors, insert_insn_start_basic_block, insert-store,
10743         remove_reachable_equiv_notes, replace_store_insn, delete_store,
10744         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
10745         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
10746         * store-motion.c: ...new file.  Also copy data structures from gcse.c
10747         and clean up to remove parts not used by store motion.
10748         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
10749         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
10750
10751 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10752
10753         PR target/38571
10754         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
10755         when optimizing for size.
10756
10757 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
10758
10759         * gcse.c (gcse_constant_p): Fix typo in last change.
10760
10761 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10762
10763         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
10764
10765 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
10766
10767         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
10768
10769 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
10770
10771         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
10772         CONST_HIGH_PART result.
10773
10774 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
10775
10776         * config/avr/avr.c (initial_elimination_offset): Rename to
10777         avr_initial_elimination_offset.
10778         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
10779         change return type to bool.
10780         (avr_can_eliminate): New function.
10781         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
10782         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
10783         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
10784         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
10785         avr_initial_elimination_offset.
10786         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
10787         (avr_initial_elimination_offset): Define.
10788
10789 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
10790             Steven Bosscher  <steven@gcc.gnu.org>
10791
10792         PR rtl-optimization/39938
10793         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
10794         * cfgrtl.c: Include insn-attr.h.
10795         (rest_of_pass_free_cfg): New function.
10796         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
10797         * resource.c (init_resource_info): Remove call to df_analyze.
10798
10799 2009-04-29  Richard Guenther  <rguenther@suse.de>
10800
10801         PR target/39943
10802         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
10803         allow conversion to signed integers.
10804
10805 2009-04-29  Richard Guenther  <rguenther@suse.de>
10806
10807         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
10808         shifts of floating point vectors if the shift amount is
10809         a constant multiple of the element size.
10810
10811 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
10812             Michael Matz  <matz@suse.de>
10813
10814         PR middle-end/39927
10815         PR bootstrap/39929
10816         * tree-outof-ssa.c (emit_partition_copy): New function.
10817         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10818         insert_part_to_rtx_on_edge): Perform the partition base var
10819         copy using emit_partition_copy.
10820         (insert_value_copy_on_edge): Convert constants to the right mode.
10821         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
10822         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
10823
10824 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10825
10826         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
10827         scan backwards to try to find a constant to initialize it.
10828
10829         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
10830         insn before the loop_end instruction, don't look past labels.
10831
10832 2009-04-29  Richard Guenther  <rguenther@suse.de>
10833
10834         PR middle-end/39937
10835         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
10836         loose type conversions.
10837         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
10838         stmts only if there are no uses of its definition.
10839
10840 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10841
10842         * config/bfin/bfin.h (splitting_loops): Declare.
10843         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
10844         Reorder bit definitions to be ascending.
10845         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
10846         * config/bfin/bfin.c (splitting_loops): New variable.
10847         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
10848         (struct loop_info): Remove members INIT and LOOP_INIT.
10849         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
10850         the LSETUP sequence.  Allow LC to be loaded from any register, but
10851         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
10852         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
10853         set to 1.
10854         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
10855         of reload_completed.
10856
10857         From Jie Zhang:
10858         * config/bfin/bfin.md (movsi_insn): Refine constraints.
10859
10860 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
10861
10862         * Makefile.in (PLUGIN_VERSION_H): New.
10863         (OBJS-common): Remove plugin-version.o.
10864         (plugin.o): Depend on (PLUGIN_VERSION_H).
10865         (plugin-version.o): Remove.
10866         * configure: Regenerate
10867         * configure.ac: Create plugin-version.h.
10868         * gcc-plugin.h (plugin_gcc_version): Remove.
10869         (plugin_default_version_check): Change signature.
10870         * plugin-version.c: Remove.
10871         * plugin.c: Include plugin-version.h.
10872         (str_plugin_gcc_version_name): Remove.
10873         (try_init_one_plugin): Pass gcc version to plugin_init.
10874         (plugin_default_version_check): Both gcc and plugin versions are now
10875         arguments.
10876
10877 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10878         
10879         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
10880         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
10881         Remove special case testing for last insn of inner loops. Don't fail
10882         if the loop ends with a jump, emit an extra nop instead.
10883
10884         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
10885         DREGS rather than comparing directly.  Remove code that tries to
10886         account for latencies.
10887
10888 2009-04-29  Richard Guenther  <rguenther@suse.de>
10889
10890         PR tree-optimization/39941
10891         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
10892         eliminating an indirect call.
10893
10894 2009-04-29  Richard Guenther  <rguenther@suse.de>
10895
10896         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
10897         parameter.  Allow invariants as base if !require_lvalue.
10898         (verify_gimple_assign_single): Adjust.
10899
10900 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10901
10902         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
10903         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
10904         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
10905         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
10906         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
10907         a VEC_SELECT.
10908         * config/bfin/bfin.c (bfin_expand_builtin,
10909         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
10910
10911 2009-04-28  Richard Guenther  <rguenther@suse.de>
10912
10913         * tree-vect-loop.c (get_initial_def_for_induction): Use
10914         correct types for pointer increment.
10915
10916 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10917
10918         * toplev.c (print_version): Update GMP version string calculation.
10919
10920 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10921
10922         PR rtl-optimization/39938
10923         * resource.c (init_resource_info): Add call to df_analyze.
10924
10925 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10926
10927         * config/alpha/alpha.md (usegp): Cast the result of
10928         alpha_find_lo_sum_using_gp to enum attr_usegp.
10929         * config/alpha/alpha.c (override_options): Remove end-of-structure
10930         marker element from cpu_table.  Use array size of cpu_table to handle
10931         -mcpu and -mtune options.
10932         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
10933
10934 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
10935
10936         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
10937         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
10938         tune_32 and tune_64.
10939         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10940         support on PowerPC.
10941         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
10942         * config/rs6000/option-defaults.h: ... here.  New file.
10943         (OPT_64, OPT_32): Define.
10944         (MASK_64BIT): Define to 0 if not already defined.
10945         (OPT_ARCH64, OPT_ARCH32): Define.
10946         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
10947         and tune_64.
10948
10949 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10950
10951         * config/arm/arm.c (arm_override_options): Emit error on using
10952         fpa with AAPCS.
10953
10954 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10955
10956         PR rtl-optimization/39914
10957         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
10958         registers for allocnos created from user-defined variables only
10959         when not optimizing.
10960
10961 2009-04-28  Richard Guenther  <rguenther@suse.de>
10962
10963         PR middle-end/39937
10964         * fold-const.c (fold_binary): Use distribute_real_division only
10965         on float types.
10966
10967 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
10968
10969         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
10970         add hpux-stdint.h to tm_file.
10971         (hppa[12]*-*-hpux11*): Ditto.
10972         (ia64*-*-hpux*): Ditto.
10973         * config/hpux-stdint.h: New.
10974         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
10975         __STDC_EXT__ for all compiles.
10976         * config/pa/pa-hpux.h: Ditto.
10977         * config/pa/pa-hpux10.h: Ditto.
10978         * config/pa/pa-hpux11.h: Ditto.
10979
10980 2009-04-28  Catherine Moore  <clm@codesourcery.com>
10981
10982         * debug.h (set_name): Add comment.
10983
10984 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
10985
10986         PR target/39929
10987         * config/darwin.c (machopic_gen_offset): Check
10988         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
10989         * config/arm/arm.c (require_pic_register): Likewise.
10990
10991 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
10992
10993         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
10994         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
10995         m32c_promote_prototypes): Delete.
10996
10997 2009-04-28  Michael Matz  <matz@suse.de>
10998
10999         PR middle-end/39922
11000         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
11001         constants.
11002
11003 2009-04-28  Richard Guenther  <rguenther@suse.de>
11004
11005         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
11006
11007 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11008
11009         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
11010         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
11011         * config/arm/arm-tune.md: Regenerate.
11012
11013 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
11014
11015         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
11016         block if there are complex incoming edges.
11017         (sel_merge_blocks): Remove useless assert.
11018         (sel_redirect_edge_and_branch): Check that edge was redirected.
11019         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
11020         (sel_find_rgns): Delete declaration.
11021         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
11022         the region when it is not a preheader.
11023
11024 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
11025
11026         PR c/39323
11027         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
11028
11029 2009-04-28  Richard Guenther  <rguenther@suse.de>
11030
11031         * tree.h (SSA_NAME_VALUE): Remove.
11032         (struct tree_ssa_name): Remove value_handle member.
11033         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
11034         array for jump threading.
11035         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
11036         SSA_NAME_VALUEs.
11037         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
11038         * tree-flow.h (threadedge_initialize_values): Declare.
11039         (threadedge_finalize_values): Likewise.
11040         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
11041         (SSA_NAME_VALUE): Define.
11042         (threadedge_initialize_values): New function.
11043         (threadedge_finalize_values): Likewise.
11044         * tree-ssa-dom.c (ssa_name_values): New global variable.
11045         (SSA_NAME_VALUE): Define.
11046         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
11047
11048 2009-04-28  Ira Rosen  <irar@il.ibm.com>
11049
11050         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11051         Use REPORT_VECTORIZED_LOCATIONS instead 
11052         REPORT_VECTORIZED_LOOPS.
11053         * tree-vectorizer.c (vect_verbosity_level): Make static.
11054         (vect_loop_location): Rename to vect_location.
11055         (vect_set_verbosity_level): Update comment.
11056         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
11057         and vect_location.
11058         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
11059         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
11060         instead REPORT_UNVECTORIZED_LOOPS.
11061         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
11062         and vect_loop_def to vect_external_def and vect_internal_def.
11063         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
11064         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
11065         REPORT_UNVECTORIZED_LOCATIONS.
11066         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
11067         and vect_used_in_loop and to vect_unused_in_scope and 
11068         vect_used_in_scope.
11069         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
11070         (vect_verbosity_level): Remove declaration.
11071         (vect_analyze_operations): Likewise.
11072         (vect_analyze_stmt): Declare.
11073         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
11074         REPORT_UNVECTORIZED_LOCATIONS.
11075         (vect_get_loop_niters): Fix indentation.
11076         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
11077         (vect_analyze_loop_operations): New function.
11078         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
11079         vect_analyze_operations.
11080         (vect_is_simple_reduction): Use new names.
11081         (vectorizable_live_operation, vect_transform_loop): Likewise.
11082         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
11083         to specify whether the data references can be a part of interleaving
11084         chain.
11085         (vect_analyze_data_ref_dependence): Use new names.
11086         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
11087         (vect_create_addr_base_for_vector_ref): Remove redundant code.
11088         * tree-vect-patterns.c (widened_name_p): Use new names.
11089         (vect_recog_dot_prod_pattern): Likewise.
11090         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
11091         (process_use, vect_mark_stmts_to_be_vectorized, 
11092         vect_model_simple_cost, vect_model_store_cost,
11093         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
11094         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
11095         vectorizable_operation, vectorizable_type_demotion,
11096         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
11097         vectorizable_condition): Likewise.
11098         (vect_analyze_operations): Split into vect_analyze_loop_operations
11099         and ...
11100         (vect_analyze_stmt): ... new function.
11101         (new_stmt_vec_info): Use new names.
11102         (vect_is_simple_use): Use new names and fix comment.
11103         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
11104         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
11105
11106 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
11107
11108         PR target/39911
11109         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
11110         and integer modes for x87 operands.  Do not ICE for unsupported size,
11111         generate error instead.  Generate error for unsupported operand types.
11112         ['z']: Do not handle HImode memory operands specially.  Warning
11113         for floating-point operands.  Fallthru to 'Z' for unsupported operand
11114         types.  Do not ICE for unsupported size, generate error instead.
11115         (output_387_binary_op): Use %Z to output operands.
11116         (output_fp_compare): Ditto.
11117         (output_387_reg_move): Ditto.
11118
11119 2009-04-28  Ben Elliston  <bje@au.ibm.com>
11120
11121         PR c++/35652
11122         Revert:
11123
11124         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11125
11126         * builtins.c (c_strlen): Do not warn here.
11127         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
11128         * c-common.c (pointer_int_sum): Take an explicit location.
11129         Warn about offsets out of bounds.
11130         * c-common.h (pointer_int_sum): Adjust declaration.
11131
11132 2009-04-27  Ian Lance Taylor  <iant@google.com>
11133
11134         * collect2.c (is_ctor_dtor): Change type of ret field in struct
11135         names to symkind.
11136         * dce.c (run_fast_df_dce): Change type of old_flags to int.
11137         * df-core.c (df_set_flags): Change return type to int.  Change
11138         type of old_flags to int.
11139         (df_clear_flags): Likewise.
11140         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
11141         (df_get_conditional_uses): Likewise.
11142         * df.h (df_set_flags, df_clear_flags): Update declarations.
11143         * dwarf2out.c (struct indirect_string_node): Change type of form
11144         field to enum dwarf_form.
11145         (AT_string_form): Change return type to enum dwarf_form.
11146         * fixed-value.c (fixed_compare): Add cast to enum type.
11147         * fwprop.c (update_df): Change 0 to VOIDmode.
11148         * gensupport.c: Change 0 to UNKNOWN.
11149         * gimple.h (gimple_cond_code): Add cast to enum type.
11150         * haifa-sched.c (reemit_notes): Add cast to enum type.
11151         * hooks.c (hook_int_void_no_regs): Remove function.
11152         * hooks.h (hook_int_void_no_regs): Remove declaration.
11153         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
11154         * predict.c (combine_predictions_for_insn): Add casts to enum type.
11155         * real.c (real_arithmetic): Add cast to enum type.
11156         (real_compare): Likewise.
11157         * target.h (struct gcc_target): Change return type of
11158         branch_target_register_class to enum reg_class.
11159         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
11160         default_branch_target_register_class.
11161         * targhooks.c (default_branch_target_register_class): New function.
11162         * targhooks.h (default_branch_target_register_class): Declare.
11163         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
11164         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
11165         cast to int.
11166         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
11167         ERROR_MARK.
11168         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
11169         vect_uninitialized_def.  Change 0 to ERROR_MARK.
11170         * tree-vect-stmts.c (supportable_widening_operation): Don't
11171         initialize icode1 and icode2.
11172         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
11173         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
11174         and to STD_C89.
11175         (cmn_err_flag_specs): Change 0 to STD_C89.
11176         (cmn_err_char_table): Likewise.
11177         * config/arm/arm.c (get_arm_condition_code): Change type of code
11178         to enum arm_cond_code.
11179         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
11180         (IWMMXT_BUILTIN2): Likewise.
11181         (neon_builtin_type_bits): Don't define typedef.
11182         (neon_builtin_datum): Change type of bits field to int.
11183         (arm_expand_neon_args): Add cast to enum type.
11184         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
11185         TLS_MODEL_NONE.
11186         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
11187         casts to enum type.
11188         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
11189         MIPS_FP_COND_f.
11190         * config/mips/mips.md (jal_macro): Return enum constant.
11191         (single_insn): Likewise.
11192         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
11193         CODE_FOR_nothing.
11194         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11195         casts to enum type.
11196         * config/s390/s390.c (s390_tune_flags): Change type to int.
11197         (s390_arch_flags): Likewise.
11198         (s390_handle_arch_option): Change flags field of struct pta to int.
11199         * config/s390/s390.h (s390_tune_flags): Update declaration.
11200         (s390_arch_flags): Likewise.
11201         * config/sh/sh.c (prepare_move_operands): Compare
11202         tls_symbolic_operand result with enum constant.
11203         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
11204         (sh_expand_prologue): Add cast to enum type.
11205         (sh_expand_epilogue): Likewise.
11206         (tls_symbolic_operand): Change return type to enum tls_model.
11207         (fpscr_set_from_mem): Add cast to enum type.
11208         (legitimize_pic_address): Compare tls_symbolic_operand result with
11209         enum constant.
11210         (sh_target_reg_class): Change return type to enum reg_class.
11211         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
11212         PROCESSOR_xxx.
11213         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
11214         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
11215         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
11216         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
11217         (delayed_branch, tls_call_delay): Likewise.
11218         (eligible_for_sibcall_delay): Likewise.
11219         (eligible_for_return_delay): Likewise. 
11220         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
11221         (spu_expand_builtin_1): Likewise.
11222
11223         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
11224         for all types of conversions.
11225         (output_init_element): Issue -Wc++-compat warning if needed when
11226         initializing a bitfield with enum type.
11227         * c-parser.c (c_parser_expression): Set original_type to
11228         original_type of right hand operand of comman operator.
11229
11230 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11231
11232         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
11233         grammar nits.
11234         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
11235         * doc/cpp.texi (Standard Predefined Macros)
11236         (Implementation-defined behavior): Likewise.
11237         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
11238         * doc/gimple.texi (GIMPLE Exception Handling)
11239         (@code{GIMPLE_ASSIGN}): Likewise.
11240         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
11241         * doc/invoke.texi (Warning Options, Optimize Options)
11242         (AVR Options, Darwin Options): Likewise.
11243         (Optimize Options): Reformulate -fwhole-program description.
11244         * doc/loop.texi (Lambda): Likewise.
11245         * doc/md.texi (Output Template, Define Constraints)
11246         (Standard Names, Insn Splitting): Likewise.
11247         * doc/options.texi (Option properties): Likewise.
11248         * doc/passes.texi (Tree-SSA passes): Likewise.
11249         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
11250         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
11251         (File Names and DBX): Likewise.
11252         * doc/trouble.texi (Incompatibilities): Likewise.
11253
11254 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11255
11256         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
11257         instruction is correct.
11258
11259 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11260
11261         Allow non-constant arguments to conversion intrinsics.
11262         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
11263         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
11264         * spu.c (print_operand): Handle 'v' and 'w'.
11265         (exp2_immediate_p, spu_gen_exp2): Define.
11266         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
11267         spu_convtf_1): Update parameter descriptions.
11268         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
11269         * constraints.md ('v', 'w'): New.
11270         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
11271         Remove.
11272         (i2f, I2F): New define_mode_attr.
11273         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
11274         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
11275         fixuns_truncv4sfv4si2):  Update to use mode attribute.
11276         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
11277         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
11278         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
11279         patterns for combine.
11280
11281 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
11282
11283         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
11284         (cprop, hoist, pre, store_motion): New debug counters.
11285         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
11286         is not an RTL pass anymore.
11287         (pass_profiling): Remove extern decl for pass removed in 2005.
11288         (pass_gcse, pass_jump_bypass): Remove.
11289         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
11290         to 0 for clean state.
11291         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
11292         * cse.c (gate_handle_cse_after_global_opts,
11293         rest_of_handle_cse_after_global_opts): New functions.
11294         (pass_cse_after_global_opts): New pass, does local CSE.
11295         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
11296         (TV_CPROP): New timevar.
11297         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
11298         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
11299         (gcse_main, recompute_all_luids): Remove.
11300         (compute_hash_table_work): Call max_reg_num instead of reading
11301         max_gcse_regno.
11302         (cprop_jump): Don't set run_jump_opt_after_gcse.
11303         (constprop_register): Always allow to alter jumps.
11304         (cprop_insn): Likewise.
11305         (do_local_cprop): Likewise.
11306         (local_cprop_pass): Likewise.  Return non-zero if something changed.
11307         (cprop): Remove function, fold interesting bits into one_cprop_pass.
11308         (find_implicit_sets): Add note about missed optimization opportunity.
11309         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
11310         pass_rtl_cprop execute function.
11311         Don't bother tracking the pass number, each pass gets its own dumpfile
11312         now anyway.
11313         Always allow to alter jumpsand bypass jumps.
11314         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
11315         will just find no suitable set.
11316         (pre_edge_insert): Fix dumping, this function is for PRE only.
11317         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
11318         pass_rtl_pre execute function.
11319         (hoist_code): Return non-zero if something changed.  Keep track of
11320         substitutions and insertions for statistics gathering similar to PRE.
11321         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
11322         called from the pass_rtl_hoist execute function.  Show pass statistics.
11323         (compute_store_table): Use max_reg_num directly instead of using the
11324         formerly global max_gcse_regno.
11325         (build_store_vectors): Likewise.
11326         (replace_store_insn): Fix dumping.
11327         (store_motion): Rename to ...
11328         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
11329         pass, called from the pass_rtl_store_motion execute function.  Keep
11330         track of substitutions and insertions for statistics gathering similar
11331         to PRE.
11332         (bypass_jumps): Remove, fold interesting bits into ...
11333         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
11334         from the pass_rtl_cprop execute function.
11335         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
11336         pass_jump_bypass): Remove.
11337         (gate_handle_gcse, rest_of_handle_gcse): Remove.
11338         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
11339         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
11340         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
11341         (gate_rtl_store_motion, execute_rtl_store_motion,
11342         pass_rtl_store_motion): New.
11343         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
11344         make it clear that -fcse-skip-blocks is a no-op for backward compat.
11345         * passes.c (init_optimization_passes): Remove pass_gcse and
11346         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
11347         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
11348         instead of pass_jump_bypass.
11349
11350 2009-04-27  Richard Guenther  <rguenther@suse.de>
11351
11352         PR middle-end/39928
11353         * gimplify.c (gimplify_expr): If we are required to create
11354         a temporary make sure it ends up as register.
11355
11356 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
11357
11358         PR target/39903
11359         * config/i386/i386.c (construct_container): Don't call
11360         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
11361         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
11362
11363 2009-04-27  Michael Matz  <matz@suse.de>
11364
11365         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
11366         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
11367         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
11368         (dump_replaceable_exprs): Take a bitmap.
11369         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
11370         array.
11371         (expand_gimple_basic_block): Likewise.
11372         * tree-ssa-ter.c (struct temp_expr_table_d): Make
11373         replaceable_expressions member a bitmap.
11374         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
11375         (mark_replaceable): Likewise.
11376         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
11377         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
11378
11379 2009-04-27  Richard Guenther  <rguenther@suse.de>
11380
11381         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
11382         (verify_stmts): Dispatch to gimple/type verification code.
11383         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
11384         issue with call argument types.
11385
11386 2009-04-27  Michael Matz  <matz@suse.de>
11387
11388         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
11389         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
11390         to above.
11391
11392 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
11393             Eric Botcazou  <ebotcazou@adacore.com>
11394
11395         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
11396         a label's basic block.
11397         (mark_target_live_regs): Tidy and rework obsolete comments.
11398         Change back DF problem to LIVE.  If a label starts a basic block,
11399         assume that all registers that used to be live then still are.
11400         (init_resource_info): If a label starts a basic block, set its
11401         BLOCK_FOR_INSN accordingly.
11402         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
11403
11404 2009-04-27  Richard Guenther  <rguenther@suse.de>
11405
11406         * tree-flow-inline.h (function_ann): Remove.
11407         (get_function_ann): Likewise.
11408         * tree-dfa.c (create_function_ann): Remove.
11409         * tree-flow.h (struct static_var_ann_d): Remove.
11410         (struct function_ann_d): Likewise.
11411         (union tree_ann_d): Remove fdecl member.
11412         (function_ann_t): Remove.
11413         (function_ann, get_function_ann, create_function_ann): Remove
11414         declarations.
11415
11416 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
11417
11418         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
11419
11420 2009-04-27  Jan Hubicka  <jh@suse.cz>
11421
11422         * ipa-pure-const.c (struct funct_state_d): New fields
11423         state_previously_known, looping_previously_known; remove
11424         state_set_in_source.
11425         (analyze_function): Use new fields.
11426         (propagate): Avoid assumption that state_set_in_source imply
11427         nonlooping.
11428
11429         * tree-ssa-loop-niter.c (finite_loop_p): New function.
11430         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
11431         * cfgloop.h (finite_loop_p): Declare.
11432
11433 2009-04-26  Michael Matz  <matz@suse.de>
11434
11435         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
11436
11437 2009-04-26  Michael Matz  <matz@suse.de>
11438
11439         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
11440         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
11441         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
11442         pass_mark_used_blocks): Remove.
11443         * tree-optimize.c (pass_free_datastructures,
11444         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
11445         * passes.c (init_optimization_passes): Don't call
11446         pass_mark_used_blocks, remove dead code.
11447
11448 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
11449
11450         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
11451         * tree-ssa-live.h (register_ssa_partition): Likewise.
11452
11453 2009-04-26  Michael Matz  <matz@suse.de>
11454
11455         Expand from SSA.
11456         * builtins.c (fold_builtin_next_arg): Handle SSA names.
11457         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
11458         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
11459         SSA names. 
11460         (compare_pairs): Swap cost comparison.
11461         (coalesce_ssa_name): Don't use change_partition_var.
11462         * tree-nrv.c (struct nrv_data): Add modified member.
11463         (finalize_nrv_r): Set it.
11464         (tree_nrv): Use it to update statements.
11465         (pass_nrv): Require PROP_ssa.
11466         * tree-mudflap.c (mf_decl_cache_locals,
11467         mf_build_check_statement_for): Use make_rename_temp.
11468         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
11469         * alias.c (find_base_decl): Handle SSA names.
11470         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
11471         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
11472         * rtl.h (set_reg_attrs_for_parm): Declare.
11473         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
11474         to "optimized", remove unused locals at finish.
11475         (execute_free_datastructures): Make global, call
11476         delete_tree_cfg_annotations.
11477         (execute_free_cfg_annotations): Don't call
11478         delete_tree_cfg_annotations.
11479
11480         * ssaexpand.h: New file.
11481         * expr.c (toplevel): Include ssaexpand.h.
11482         (expand_assignment): Handle SSA names the same as register variables.
11483         (expand_expr_real_1): Expand SSA names.
11484         * cfgexpand.c (toplevel): Include ssaexpand.h.
11485         (SA): New global variable.
11486         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
11487         (SSAVAR): New macro.
11488         (set_rtl): New helper function.
11489         (add_stack_var): Deal with SSA names, use set_rtl.
11490         (expand_one_stack_var_at): Likewise.
11491         (expand_one_stack_var): Deal with SSA names.
11492         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
11493         before unique numbers.
11494         (expand_stack_vars): Use set_rtl.
11495         (expand_one_var): Accept SSA names, add asserts for them, feed them
11496         to above subroutines.
11497         (expand_used_vars): Expand all partitions (without default defs),
11498         then only the local decls (ignoring those expanded already).
11499         (expand_gimple_cond): Remove edges when jumpif() expands an
11500         unconditional jump.
11501         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
11502         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
11503         SSA name.
11504         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
11505         members of SA; deal with PARM_DECL partitions here; expand
11506         all PHI nodes, free tree datastructures and SA.  Commit instructions
11507         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
11508         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
11509         info and statements at start, collect garbage at finish.
11510         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
11511         (VAR_ANN_PARTITION) Remove.
11512         (change_partition_var): Don't declare.
11513         (partition_to_var): Always return SSA names.
11514         (var_to_partition): Only accept SSA names.
11515         (register_ssa_partition): Only check argument.
11516         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
11517         member.
11518         (delete_var_map): Don't free it.
11519         (var_union): Only accept SSA names, simplify.
11520         (partition_view_init): Mark only useful SSA names as used.
11521         (partition_view_fini): Only deal with SSA names.
11522         (change_partition_var): Remove.
11523         (dump_var_map): Use ssa_name instead of partition_to_var member.
11524         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
11525         basic blocks.
11526         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
11527         (struct _elim_graph): New member const_dests; nodes member vector of
11528         ints.
11529         (set_location_for_edge): New static helper.
11530         (create_temp): Remove.
11531         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
11532         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
11533         (new_elim_graph): Allocate const_dests member.
11534         (clean_elim_graph): Truncate const_dests member.
11535         (delete_elim_graph): Free const_dests member.
11536         (elim_graph_size): Adapt to new type of nodes member.
11537         (elim_graph_add_node): Likewise.
11538         (eliminate_name): Likewise.
11539         (eliminate_build): Don't take basic block argument, deal only with
11540         partition numbers, not variables.
11541         (get_temp_reg): New static helper.
11542         (elim_create): Use it, deal with RTL temporaries instead of trees.
11543         (eliminate_phi): Adjust all calls to new signature.
11544         (assign_vars, replace_use_variable, replace_def_variable): Remove.
11545         (rewrite_trees): Only do checking.
11546         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
11547         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
11548         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
11549         contains_tree_r, MAX_STMTS_IN_LATCH,
11550         process_single_block_loop_latch, analyze_edges_for_bb,
11551         perform_edge_inserts): Remove.
11552         (expand_phi_nodes): New global function.
11553         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
11554         functions, initialize new parameter, remember partitions having a
11555         default def.
11556         (finish_out_of_ssa): New global function.
11557         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
11558         don't reset in_ssa_p here, don't disable TER when mudflap.
11559         (pass_del_ssa): Remove.
11560         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
11561         partition members.
11562         (execute_free_datastructures): Declare.
11563         * Makefile.in (SSAEXPAND_H): New variable.
11564         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
11565         * basic-block.h (commit_one_edge_insertion): Declare.
11566         * passes.c (init_optimization_passes): Move pass_nrv and
11567         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
11568         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
11569         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
11570         (redirect_branch_edge): Deal with super block when expanding, split
11571         out jump patching itself into ...
11572         (patch_jump_insn): ... here, new static helper.
11573
11574 2009-04-26  Michael Matz  <matz@suse.de>
11575
11576         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
11577         beyond num_ssa_names.
11578         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
11579         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
11580
11581 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11582
11583         PR inline-asm/39543
11584         * fwprop.c (forward_propagate_asm): New function.
11585         (forward_propagate_and_simplify): Propagate also into __asm, if it
11586         doesn't increase the number of referenced registers.
11587
11588         PR c/39889
11589         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
11590
11591 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11592
11593         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
11594         note_nonlocal_vla_type for nonlocal VLAs.
11595         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
11596         contains_remapped_vars, remap_vla_decls): New functions.
11597         (convert_nonlocal_reference_stmt): If not optimizing, call
11598         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
11599         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
11600         if it wasn't found in var_map.
11601         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
11602         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
11603         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
11604         declare_vars.
11605         * gimplify.c (nonlocal_vlas): New variable.
11606         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
11607         referenced VLAs.
11608         (gimplify_body): Create and destroy nonlocal_vlas.
11609
11610         * dwarf2out.c (loc_descr_plus_const): New function.
11611         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
11612         mem_loc_descriptor, loc_descriptor_from_tree_1,
11613         descr_info_loc, gen_variable_die): Use it.
11614
11615         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
11616         !TREE_STATIC VAR_DECLs.
11617         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
11618         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
11619         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
11620         DECL_BY_REFERENCE is valid.
11621         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
11622         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
11623         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
11624         Copy DECL_BY_REFERENCE.
11625         (struct nesting_copy_body_data): New type.
11626         (nesting_copy_decl): New function.
11627         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
11628         if they have variable length.
11629
11630 2009-04-26  Michael Matz  <matz@suse.de>
11631
11632         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
11633         mark new temporaries for renaming.
11634
11635 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11636
11637         PR c/39581
11638         * c-decl.c (global_bindings_p): Return negative value.
11639         (c_variable_size): New.  Based on variable_size from
11640         stor-layout.c.
11641         (grokdeclarator): Call c_variable_size not variable_size.
11642
11643 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
11644
11645         * config/i386/i386.c (print_operand) ['z']: Fix typo.
11646
11647 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
11648
11649         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
11650         Redefine it to just use mingw/include.
11651         (ASM_SPEC): Rules for -m32 and -m64.
11652         (LINK_SPEC): Use Likewise.
11653         (SPEC_32): New define.
11654         (SPEC_64): Likewise.
11655         (SUB_LINK_SPEC): Likewise.
11656         (MULTILIB_DEFAULTS): New define.
11657         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
11658         Add multilib options.
11659         (MULTILIB_DIRNAMES): Likewise.
11660         (MULTILIB_OSDIRNAMES): Likewise.
11661         (LIBGCC): Likewise.
11662         (INSTALL_LIBGCC): Likewise.
11663
11664 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11665
11666         PR c/39556
11667         * c-tree.h (enum c_inline_static_type): New.
11668         (record_inline_static): Declare.
11669         * c-decl.c (struct c_inline_static, c_inline_statics,
11670         record_inline_static, check_inline_statics): New.
11671         (pop_file_scope): Call check_inline_statics.
11672         (start_decl): Call record_inline_static instead of pedwarning
11673         directly for static in inline function.
11674         * c-typeck.c (build_external_ref): Call record_inline_static
11675         instead of pedwarning directly for static referenced in inline
11676         function.
11677
11678 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
11679
11680         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
11681         not new but only being rescanned.
11682         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
11683         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
11684         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
11685         record_set_info, compute_set, grealloc): Remove.
11686         (recompute_all_luids): New function.
11687         (gcse_main): Don't compute sets, and don't do related memory
11688         allocations/free-ing.  If something changed before the end of the
11689         pass, update LUIDs using recompute_all_luids.
11690         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
11691         (free_gcse_mem): Don't free it either.
11692         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
11693         Use the df insn LUIDs.
11694         (load_killed_in_block): Likewise.
11695         (compute_hash_table_work): Don't compute reg_set_in_block.
11696         (compute_transp): Use DF_REG_DEF_CHAINs.
11697         (local_cprop_pass): Don't use compute_sets and related functions.
11698         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
11699         Use get_max_uid() instead of max_cuid.
11700         (insert_insn_end_basic_block, pre_insert_copy_insn,
11701         update_ld_motion_stores): Don't try to
11702         keep reg_set tables up to date.
11703         (pre_insert_copies): Use df insn LUIDs.
11704         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
11705         (reg_set_info): Don't use extra bitmap argument.
11706         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
11707         information to compute regs_set_in_block.
11708         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
11709         (bypass_jumps): Don't use compute_sets and friends.
11710
11711 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11712
11713         PR testsuite/39710
11714         * opts.c (undocumented_msg): Do not leave blank even with
11715         ENABLE_CHECKING.
11716
11717 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11718
11719         * c-decl.c (build_enumerator): Allow values folding to integer
11720         constants but not integer constant expressions with a pedwarn if
11721         pedantic.
11722
11723 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11724
11725         PR c/39582
11726         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
11727         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
11728         type is an integer constant.
11729
11730 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11731
11732         PR target/39897
11733         * config/i386/i386.c (print_operand) ['z']: Revert handling of
11734         HImode operands.
11735
11736 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11737
11738         PR c/39564
11739         * c-decl.c (grokdeclarator): Diagnose declarations of functions
11740         with variably modified return type and no storage class
11741         specifiers, except for the case of nested functions.  Distinguish
11742         extern declarations of functions with variably modified return
11743         types from those of objects with variably modified types.
11744
11745 2009-04-25  Jan Hubicka  <jh@suse.cz>
11746
11747         * tree.c (list_equal_p): New function.
11748         * tree.h (list_equal_p): Declare.
11749         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11750         basic_block_def, basic_block, const_basic_block): New.
11751         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
11752         (redirect_eh_edge): New function.
11753         (make_eh_edge_update_phi): EH edges are not abnormal.
11754         * except.c: Include tree-flow.h.
11755         (list_match): New function.
11756         (eh_region_replaceable_by_p): New function.
11757         (replace_region): New function.
11758         (hash_type_list): New function.
11759         (hash_eh_region): New function.
11760         (eh_regions_equal_p): New function.
11761         (merge_peers): New function.
11762         (remove_unreachable_regions): Verify EH tree when checking;
11763         merge peers.
11764         (copy_eh_region_1): New function.
11765         (copy_eh_region): New function.
11766         (push_reachable_handler): New function.
11767         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
11768         regions without label but with live RESX.
11769         * except.h (redirect_eh_edge_to_label): New.
11770         * tree-flow.h (redirect_eh_edge): New.
11771         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11772         basic_block_def, basic_block, const_basic_block): Remove.
11773         * Makefile.in (except.o): Add dependency on tree-flow.h
11774         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
11775         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
11776         Remove.
11777
11778 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
11779
11780         PR bootstrap/39645
11781         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
11782         on the destination of memcpy.
11783
11784 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
11785
11786         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
11787         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
11788         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
11789
11790 2009-04-25  Jan Hubicka  <jh@suse.cz>
11791
11792         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
11793         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
11794         to be reached by different label than left.
11795         (update_eh_edges): Update comment; remove edge_to_remove if possible
11796         and return true if suceeded.
11797         (cleanup_empty_eh): Accept sharing map; handle shared regions.
11798         (cleanup_eh): Compute sharing map.
11799         * except.c (remove_eh_handler_and_replace): Add argument if we should
11800         update regions.
11801         (remove_unreachable_regions): Update for label sharing.
11802         (label_to_region_map): Likewise.
11803         (get_next_region_sharing_label): New function.
11804         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
11805         prev_try pointers.
11806         (remove_eh_handler): Update.
11807         (remove_eh_region_and_replace_by_outer_of): New function.
11808         * except.h (struct eh_region): Add next_region_sharing_label.
11809         (remove_eh_region_and_replace_by_outer_of,
11810         get_next_region_sharing_label): Declare.
11811         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
11812
11813 2009-04-25  Jan Hubicka  <jh@suse.cz>
11814
11815         * tree-cfg.c (split_critical_edges): Split also edges where we can't
11816         insert code even if they are not critical.
11817
11818 2009-04-25  Jan Hubicka  <jh@suse.cz>
11819
11820         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11821         (gimple_can_remove_branch_p): EH edges won't remove branch by
11822         redirection.
11823         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
11824         updating of non-abnormal EH edges.
11825         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11826         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
11827         (split_critical_edges): Split also edges where emitting code on them
11828         will lead to splitting later.
11829
11830 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11831             H.J. Lu  <hongjiu.lu@intel.com>
11832
11833         PR target/39590
11834         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
11835         the configured assembler supports fildq and fistpq mnemonics.
11836         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
11837         * configure: Regenerated.
11838         * config.in: Ditto.
11839
11840         * config/i386/i386.c (print_operand): Handle 'Z'.
11841         ['z']: Remove handling of special fild/fist suffixes.
11842         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
11843         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
11844         suffix of fild insn.
11845         (*floatsi<mode>2_vector_mixed): Ditto.
11846         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
11847         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
11848         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11849         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
11850         * config/i386/gas.h (GAS_MNEMONICS): Remove.
11851
11852 2009-04-25  Ben Elliston  <bje@au.ibm.com>
11853  
11854         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
11855         the source of a set operation.
11856
11857 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
11858
11859         * target.h (struct gcc_target): Add case_values_threshold field.
11860         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
11861         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
11862         * targhooks.c (default_case_values_threshold): New function.
11863         * targhooks.h (default_case_values_threshold): Declare function.
11864         * stmt.c (expand_case): Use case_values_threshold target hook.
11865         * expr.h (case_values_threshold): Remove declartation.
11866         * expr.c (case_values_threshold): Remove function.
11867         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
11868
11869         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
11870         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11871         (avr_case_values_threshold): Declare as static.
11872         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
11873
11874         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
11875         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11876         (mn10300_case_values_threshold): New function.
11877
11878 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11879
11880         * ira.c (setup_cover_and_important_classes): Add enum cast.
11881
11882 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
11883
11884         * genpreds.c (write_enum_constraint_num): Output definition of
11885         CONSTRAINT_NUM_DEFINED_P macro.
11886         * ira.c (setup_cover_and_important_classes): Use
11887         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
11888         
11889 2009-04-24  DJ Delorie  <dj@redhat.com>
11890
11891         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
11892         __SH2A_SINGLE_ONLY__ also.
11893
11894 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
11895
11896         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
11897         (movdf_internal): Ditto.
11898         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
11899         SFmode and DFmode constants.
11900         (ia64_print_operand): Add 'G' format for printing
11901         floating point constants.
11902
11903 2009-04-24  Richard Guenther  <rguenther@suse.de>
11904
11905         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
11906         from unsigned additions.
11907
11908 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
11909
11910         * c-typeck.c (set_init_index): Allow array designators that are
11911         not integer constant expressions with a pedwarn if pedantic.
11912
11913 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11914
11915         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
11916         zero if no overlap in nonzero bits between the operands.
11917
11918 2009-04-24  Ian Lance Taylor  <iant@google.com>
11919
11920         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
11921         (record_dead_and_set_regs): Likewise.
11922         * df.h (struct df_mw_hardreg): Change flags field to int.
11923         (struct df_base_ref): Likewise.
11924         (struct df): Change changeable_flags field to int.
11925         * df-scan.c (df_defs_record): Change clobber_flags to int.
11926         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
11927         constants rather than #define macros.
11928         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
11929         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
11930         (enum dwarf_calling_convention): Likewise.
11931         (enum dwarf_line_number_x_ops): Likewise.
11932         (enum dwarf_call_frame_info): Likewise.
11933         (enum dwarf_source_language): Likewise.
11934         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
11935         (add_calling_convention_attribute): Likewise.
11936         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
11937         (combine_comparisons): Change compcode to int.  Add cast to enum type.
11938         * genrecog.c (maybe_both_true_2): Change c to int.
11939         (write_switch): Likewise.  Add cast to enum type.
11940         * gimplify.c (gimplify_omp_for): Handle return values from
11941         gimplify_expr using MIN rather than bitwise or.
11942         (gimplify_expr): Add cast to enum type.
11943         * ipa-prop.c (update_jump_functions_after_inlining): Change
11944         IPA_BOTTOM to IPA_JF_UNKNOWN.
11945         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
11946         Add casts to enum type.
11947         (setup_cover_and_important_classes): Change cl to int.  Add casts
11948         to enum type.
11949         (setup_class_translate): Change cl and mode to int.
11950         (ira_init_once): Change mode to int.
11951         (free_register_move_costs): Likewise.
11952         (setup_prohibited_mode_move_regs): Add casts to enum type.
11953         * langhooks.c (add_builtin_function_common): Rework assertion that
11954         value fits bitfield.
11955         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
11956         * omega.c (omega_do_elimination): Avoid math on enum types.
11957         * optabs.c (expand_vec_shift_expr): Remove casts to int.
11958         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
11959         int local to handle integral_argment value.
11960         * regmove.c (try_auto_increment): Change PUT_MODE to
11961         PUT_REG_NOTE_KIND.
11962         * reload.c (push_secondary_reload): Add casts to enum type.
11963         (secondary_reload_class, find_valid_class): Likewise.
11964         * reload1.c (emit_input_reload_insns): Likewise.
11965         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
11966         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
11967         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
11968         constant.
11969         * tree.c (build_common_builtin_nodes): Add casts to enum type.
11970         * tree-complex.c (complex_lattice_t): Typedef to int rather than
11971         enum type.
11972         (expand_complex_libcall): Add casts to enum type.
11973         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
11974         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
11975         with ERROR_MARK, not NUM_TREE_CODES.
11976         (vect_create_epilog_for_reduction): Likewise.
11977         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
11978         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
11979         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
11980         enum machine_mode.
11981         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
11982         vect_unused_in_loop.  Change 0 to loop_vect.
11983         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
11984         * var-tracking.c (get_init_value): Change return type to enum
11985         var_init_status.
11986         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
11987         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
11988         arm_fp_model.
11989         (arm_override_options): Add casts to enum type.
11990         (arm_emit_tls_decoration): Likewise.
11991         * config/i386/i386.c (ix86_function_specific_restore): Add casts
11992         to enum type.
11993         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
11994         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
11995         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
11996         enum type.
11997         * config/s390/s390.c (code_for_builtin_64): Change to array of
11998         enum insn_code.
11999         (code_for_builtin_31): Likewise.
12000         (s390_expand_builtin): Change code_for_builtin to enum insn_code
12001         const *.
12002         * config/sparc/sparc.c (sparc_override_options): Change value
12003         field in struct code_model to enum cmodel.  In initializer change
12004         0 to NULL and add cast to enum type.
12005
12006         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
12007         Change all callers.  Issue a -Wc++-compat warning using
12008         lhs_origtype if necessary.
12009         (convert_for_assignment): Issue -Wc++-compat warnings about
12010         invalid conversions to enum type on assignment.
12011         * c-common.h (build_modify_expr): Update declaration.
12012
12013 2009-04-24  Nick Clifton  <nickc@redhat.com>
12014
12015         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
12016         (function_arg_advance): Likewise.
12017         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
12018         5th alternative.
12019
12020 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12021
12022         * config/s390/constraints.md ('I', 'J'): Fix condition.
12023
12024 2009-04-24  Diego Novillo  <dnovillo@google.com>
12025
12026         * gengtype-parse.c (parse_error): Add newline after message.
12027
12028 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
12029
12030         * config/i386/sse.md (avxmodesuffixs): Removed.
12031         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
12032         (*avx_pinsr<ssevecsize>): This.
12033
12034 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
12035
12036         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
12037         follow chains of regs with a single definition, and allow expressions
12038         that are function_invariant_p.
12039         (simple_rhs_p): Allow expressions that are function_invariant_p.
12040
12041 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
12042
12043         PR middle-end/39867
12044         * fold-const.c (fold_cond_expr_with_comparison): When folding
12045         > and >= to MAX, make sure the MAX uses the same type as the
12046         comparison's operands.
12047
12048 2009-04-24  Nick Clifton  <nickc@redhat.com>
12049
12050         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
12051         addressing for DImode accesses.
12052         (frv_print_operand_address): Handle PLUS case.
12053         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
12054
12055 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
12056
12057         PR rtl-optimization/39794
12058         * alias.c (canon_true_dependence): Add x_addr argument.
12059         * rtl.h (canon_true_dependence): Adjust prototype.
12060         * cse.c (check_dependence): Adjust canon_true_dependence callers.
12061         * cselib.c (cselib_invalidate_mem): Likewise.
12062         * gcse.c (compute_transp): Likewise.
12063         * dse.c (scan_reads_nospill): Likewise.
12064         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
12065         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
12066         canon_base_addr of the group, plus optional offset.
12067         (struct group_info): Rename canon_base_mem to
12068         canon_base_addr.
12069         (get_group_info): Set canon_base_addr to canon_rtx of base, not
12070         canon_rtx of base_mem.
12071
12072 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
12073
12074         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12075         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
12076
12077 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12078
12079         * config/spu/spu-builtins.h: Delete file.
12080
12081         * config/spu/spu.h (enum spu_builtin_type): Move here from
12082         spu-builtins.h.
12083         (struct spu_builtin_description): Likewise.  Add GTY marker.
12084         Do not use enum spu_function_code or enum insn_code.
12085         (spu_builtins): Add extern declaration.
12086
12087         * config/spu/spu.c: Do not include "spu-builtins.h".
12088         (enum spu_function_code, enum spu_builtin_type_index,
12089         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
12090         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
12091         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
12092         unsigned_V2DI_type_node): Move here from spu-builtins.h.
12093         (spu_builtin_types): Make static.  Add GTY marker.
12094         (spu_builtins): Add extern declaration with GTY marker.
12095         Include "gt-spu.h".
12096
12097         * config/spu/spu-c.c: Do not include "spu-builtins.h".
12098         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
12099         Check programmatically whether all parameters are scalar.
12100
12101         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
12102
12103 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
12104
12105         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
12106         assignment from the constructor either if the target is volatile.
12107
12108 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
12109
12110         * config/arm/arm.md (insv): Do not share operands[0].
12111
12112 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
12113
12114         * config/vxlib-tls.c (active_tls_threads): Delete.
12115         (delete_hook_installed): New.
12116         (tls_delete_hook): Don't delete the delete hook.
12117         (tls_destructor): Delete it here.
12118         (__gthread_set_specific): Adjust installing the delete hook.
12119         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
12120         __gthread_leave_tsd_dtor_context.
12121
12122 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
12123
12124         * c-format.c (gcc_tdiag_char_table): Add support for %E.
12125
12126 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
12127
12128         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
12129         enum type.
12130         (alpha_rtx_costs): Ditto.
12131         (emit_unlikely_jump): Use add_reg_note.
12132         (emit_frame_store_1): Ditto.
12133         (alpha_expand_prologue): Ditto.
12134         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12135         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
12136
12137 2009-04-23  Nick Clifton  <nickc@redhat.com>
12138
12139         * config/v850/v850.md (epilogue): Remove suppressed code.
12140         (return): Rename to return_simple and remove test of frame size.
12141         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
12142         to gen_return_simple.
12143
12144 2009-04-22  Jing Yu  <jingyu@google.com>
12145
12146         PR testsuite/39781
12147         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
12148
12149 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12150
12151         PR C/31499
12152         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
12153         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
12154         value is a VECTOR_CST, the element type is the element type of the
12155         vector.
12156
12157 2009-04-22  DJ Delorie  <dj@redhat.com>
12158
12159         * config/m32c/m32c.h: Update GTY annotations to new syntax.
12160
12161 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
12162
12163         * alias.c (find_base_term): Move around LO_SUM case, so that
12164         CONST falls through into PLUS/MINUS handling.
12165
12166         PR c/39855
12167         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
12168         into 0, use omit_one_operand.
12169
12170 2009-04-23  Ben Elliston  <bje@au.ibm.com>
12171
12172         * config/rs6000/linux-unwind.h (get_regs): Remove type
12173         puns. Change the type of `pc' to an array of unsigned ints and
12174         update all users.  Constify frame24.
12175
12176 2009-04-22  DJ Delorie  <dj@redhat.com>
12177
12178         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
12179         declarations before code.
12180         (current_function_special_page_vector): Likewise.
12181         (m32c_expand_insv): Silence a warning.
12182
12183 2009-04-21  Taras Glek  <tglek@mozilla.com>
12184
12185         * alias.c: Update GTY annotations to new syntax.
12186         * basic-block.h: Likewise.
12187         * bitmap.h: Likewise.
12188         * c-common.h: Likewise.
12189         * c-decl.c: Likewise.
12190         * c-parser.c: Likewise.
12191         * c-pragma.c: Likewise.
12192         * c-tree.h: Likewise.
12193         * cfgloop.h: Likewise.
12194         * cgraph.h: Likewise.
12195         * config/alpha/alpha.c: Likewise.
12196         * config/arm/arm.h: Likewise.
12197         * config/avr/avr.h: Likewise.
12198         * config/bfin/bfin.c: Likewise.
12199         * config/cris/cris.c: Likewise.
12200         * config/darwin.c: Likewise.
12201         * config/frv/frv.c: Likewise.
12202         * config/i386/i386.c: Likewise.
12203         * config/i386/i386.h: Likewise.
12204         * config/i386/winnt.c: Likewise.
12205         * config/ia64/ia64.h: Likewise.
12206         * config/iq2000/iq2000.c: Likewise.
12207         * config/mips/mips.c: Likewise.
12208         * config/mmix/mmix.h: Likewise.
12209         * config/pa/pa.c: Likewise.
12210         * config/pa/pa.h: Likewise.
12211         * config/rs6000/rs6000.c: Likewise.
12212         * config/s390/s390.c: Likewise.
12213         * config/sparc/sparc.c: Likewise.
12214         * config/xtensa/xtensa.c: Likewise.
12215         * cselib.h: Likewise.
12216         * dbxout.c: Likewise.
12217         * dwarf2out.c: Likewise.
12218         * except.c: Likewise.
12219         * except.h: Likewise.
12220         * fixed-value.h: Likewise.
12221         * function.c: Likewise.
12222         * function.h: Likewise.
12223         * gimple.h: Likewise.
12224         * integrate.c: Likewise.
12225         * optabs.c: Likewise.
12226         * output.h: Likewise.
12227         * real.h: Likewise.
12228         * rtl.h: Likewise.
12229         * stringpool.c: Likewise.
12230         * tree-data-ref.c: Likewise.
12231         * tree-flow.h: Likewise.
12232         * tree-scalar-evolution.c: Likewise.
12233         * tree-ssa-address.c: Likewise.
12234         * tree-ssa-alias.h: Likewise.
12235         * tree-ssa-operands.h: Likewise.
12236         * tree.c: Likewise.
12237         * tree.h: Likewise.
12238         * varasm.c: Likewise.
12239         * varray.h: Likewise.
12240         * vec.h: Likewise.
12241         * coretypes.h: Do not define GTY macro if it is already defined.
12242         * doc/gty.texi: Update GTY documentation to new syntax.
12243         * gengtype-lex.l: Enforce attribute-like syntax for GTY
12244         annotations on structs.
12245         * gengtype-parse.c: Likewise.
12246
12247 2009-04-22  Mark Heffernan  <meheff@google.com>
12248
12249         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
12250
12251 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
12252
12253         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
12254         where appropriate.
12255
12256 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
12257
12258         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
12259         the same as a PLUS without a shift.  Increase the cost of a
12260         CONST_INT in MULT.
12261
12262 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12263
12264         * Makefile.in: Update dependencies.
12265         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
12266         * errors.h: Remove bogus comment about compatibility.
12267         (warning): Update declaration.
12268         * genautomata.c: Update all calls to warning.
12269         * gimple.c: Do not include errors.h. Include toplev.h.
12270         * tree-ssa-structalias.c: Do not include errors.h.
12271         * omega.c: Likewise.
12272         * tree-ssa-reassoc.c: Likewise.
12273         * config/spu/spu-c.c: Likewise.
12274         * config/spu/t-spu-elf: Update dependencies.
12275
12276 2009-04-22  Richard Guenther  <rguenther@suse.de>
12277
12278         PR tree-optimization/39824
12279         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
12280         make sure the types are compatible.
12281
12282 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12283
12284         PR c++/14875
12285         * c-common.c (c_parse_error): Take a token_flags parameter.
12286         Use token_type for the token type instead.
12287         Pass token_flags to cpp_type2name.
12288         * c-common.h (c_parse_error): Update declaration.
12289         * c-parser.c (c_parser_error): Pass 0 as token flags.
12290
12291 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
12292
12293         PR rtl-optimization/39580
12294         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
12295         
12296 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12297
12298         * function.c (expand_function_end): Do not emit a jump to the "naked"
12299         return label for fall-through returns.
12300         * except.c (sjlj_emit_function_exit): Always place the call to the
12301         unregister function at the location installed by expand_function_end.
12302
12303 2009-04-22  Richard Guenther  <rguenther@suse.de>
12304
12305         PR tree-optimization/39845
12306         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
12307         (gen_inbound_check): Likewise.
12308
12309 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
12310
12311         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
12312         padding for PPC.
12313         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
12314         * config/vxlib.c (__gthread_once): Add race guard for PPC.
12315
12316 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12317
12318         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
12319         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
12320         shift counts to avoid out-of-bounds array accesses.
12321
12322 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12323
12324         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
12325         (Pmode): Move above.
12326
12327 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
12328
12329         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
12330         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
12331         GET_CODE macro.  Use IN_RANGE macro where appropriate.
12332         * config/alpha/alpha.h: Ditto.
12333         * config/alpha/alpha.md: Ditto.
12334         * config/alpha/constraints.md: Ditto.
12335         * config/alpha/predicates.md: Ditto.
12336         
12337 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12338
12339         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
12340         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12341         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12342         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12343         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12344         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12345         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12346         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12347         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12348         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12349         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12350         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12351         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12352         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12353         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12354         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12355         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12356         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12357         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12358         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12359         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12360         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12361         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12362         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12363         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12364         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12365         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12366
12367 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12368
12369         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
12370         references from comments.
12371         * cfgbuild.c: (count_basic_blocks): Delete.
12372         (find_basic_blocks_1): Delete.
12373         (find_basic_blocks): Delete.
12374         * except.c (finish_eh_generation): Make static.  Move comment from
12375         except.h here.  Remove find_basic_blocks references from comments.
12376         * except.h (finish_eh_generation): Delete.
12377         * basic-block.h (find_basic_blocks): Delete.
12378         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
12379
12380 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
12381
12382         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
12383         (sdbout_parms):  Likewise.
12384
12385 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
12386
12387         * config/sh/sh.c (prepare_cbranch_operands): Use
12388         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
12389         (expand_cbranchdi4): Likewise.
12390         (from_compare): Add cast to enum type.
12391         (expand_cbranchsi4): Use add_reg_note.
12392         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
12393         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
12394         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
12395         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12396         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
12397         instead of CODE_FOR_nothing.
12398         (cbranchdi4): Likewise.  Fix the order of arguments for
12399         gen_rtx_fmt_ee.
12400         (push_fpscr): Use add_reg_note.
12401         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
12402         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
12403         
12404 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
12405
12406         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
12407         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12408         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12409         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
12410         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
12411         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
12412         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
12413         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
12414         config/alpha/x-vms, config/arc/t-arc,
12415         config/arm/README-interworking, config/arm/arm-c.c,
12416         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
12417         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
12418         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
12419         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
12420         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
12421         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
12422         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
12423         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
12424         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
12425         config/cris/t-elfmulti, config/crx/t-crx,
12426         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
12427         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
12428         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
12429         config/h8300/t-h8300, config/i386/athlon.md,
12430         config/i386/darwin-libgcc.10.4.ver,
12431         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
12432         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
12433         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
12434         config/i386/t-linux64, config/i386/t-nwld,
12435         config/i386/t-rtems-i386, config/i386/t-sol2-10,
12436         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
12437         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
12438         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
12439         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
12440         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
12441         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
12442         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
12443         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
12444         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
12445         config/m68k/t-uclinux, config/mcore/t-mcore,
12446         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
12447         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
12448         config/mips/crtn.asm, config/mips/irix-crti.asm,
12449         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
12450         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
12451         config/mips/mips-fixed.md, config/mips/sb1.md,
12452         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
12453         config/mips/t-iris6, config/mips/t-isa3264,
12454         config/mips/t-libgcc-mips16, config/mips/t-linux64,
12455         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
12456         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
12457         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
12458         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
12459         config/mn10300/t-linux, config/mn10300/t-mn10300,
12460         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
12461         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
12462         config/picochip/libgccExtras/clzsi2.asm,
12463         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
12464         config/rs6000/darwin-libgcc.10.4.ver,
12465         config/rs6000/darwin-libgcc.10.5.ver,
12466         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
12467         config/rs6000/t-aix43, config/rs6000/t-aix52,
12468         config/rs6000/t-darwin, config/rs6000/t-fprules,
12469         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
12470         config/rs6000/t-lynx, config/rs6000/t-netbsd,
12471         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
12472         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
12473         config/rs6000/t-rtems, config/rs6000/t-spe,
12474         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
12475         config/score/t-score-elf, config/sh/divcost-analysis,
12476         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
12477         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
12478         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
12479         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
12480         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
12481         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
12482         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
12483         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
12484         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
12485         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
12486         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
12487         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
12488         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
12489         limitx.h, version.c, xcoff.h: Add copyright and license notices.
12490         * config/h8300/genmova.sh: Include copyright and license notices
12491         in generated output.
12492         * config/h8300/mova.md: Regenerate.
12493         * doc/install.texi2html: Include word "Copyright" in copyright
12494         notice and use name "Free Software Foundation, Inc.".
12495         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12496         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12497         ChangeLog-2007, ChangeLog-2008: Correct dates.
12498
12499 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
12500
12501         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
12502         NE_EXPR operations as well.
12503         * c-parser.c (c_parser_condition): Do not set location information on
12504         the condition.
12505         (c_parser_conditional_expression): Likewise.
12506         (c_parser_binary_expression): Set location information on operators.
12507         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
12508         TRUTH_NOT_EXPR has been folded.
12509         * fold-const.c (fold_truth_not_expr): Copy location information from
12510         the incoming expression to the outgoing one.
12511         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
12512         recursive calls on the LHS of the operator but pass that of the
12513         operator to recursive calls on the RHS of the operator.  Set it
12514         on the COND_EXPR.
12515         (shortcut_cond_expr): Set the locus of the operator on the second
12516         COND_EXPR and that of the expression on the first in degenerate cases.
12517         Pass the locus of the expression to calls to shortcut_cond_r.
12518         Set the locus of the 'then' block on the associated jump, if any.
12519         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
12520         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
12521         expression to call to gimplify_boolean_expr.
12522
12523 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
12524
12525         * config.gcc: Add additional configuration for
12526         i686-w64-mingw* and x86_64-w64-mingw* triplet.
12527         * config/i386/mingw-w64.h: New mingw-w64 specific header.
12528         (CPP_SPEC): Redefine for allowing -municode option.
12529         (STARTFILE_SPEC): Likewise.
12530         * config/i386/t-mingw-w64: New.
12531         * config/i386/mingw-w64.opt: New.
12532         (municode): Add new target option.
12533         * doc/invoke.texi (municode): Add documentation for new option.
12534
12535 2009-04-21  Ian Lance Taylor  <iant@google.com>
12536
12537         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12538         Correct test for number of arguments.
12539         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12540
12541 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
12542
12543         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
12544         argument of emit_library_call.
12545
12546 2009-04-21  Richard Guenther  <rguenther@suse.de>
12547
12548         PR middle-end/39829
12549         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
12550         inside VIEW_CONVERT_EXPRs.
12551
12552 2009-04-21  Martin Jambor  <mjambor@suse.cz>
12553
12554         * tree-switch-conversion.c (build_constructors): Split a long line.
12555         (constructor_contains_same_values_p): New function.
12556         (build_one_array): Create assigns of constants if possible, do not
12557         call mark_sym_for_renaming, call update_stmt.
12558         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
12559         make_rename_temp.  Do not call mark_symbols_for_renaming, call
12560         update_stmt.
12561         (gen_def_assigns): Do not call mark_symbols_for_renaming or
12562         find_new_referenced_vars, call update_stmt.
12563         (gen_inbound_check): Use create_tmp_var and create ssa names manually
12564         instead of calling make_rename_temp.  Do not call
12565         find_new_referenced_vars or mark_symbols_for_renaming, call
12566         update_stmt.
12567
12568 2009-04-21  Richard Guenther  <rguenther@suse.de>
12569
12570         PR tree-optimization/39827
12571         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
12572         (tree_ssa_phiprop): Pass the correct array size.
12573
12574 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
12575
12576         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
12577
12578 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12579
12580         PR 16202
12581         * c-typeck.c (lvalue_p): Move declaration ...
12582         * c-common.h (lvalue_p): ... to here.
12583         * c-common.c (candidate_equal_p): New.
12584         (add_tlist): Use it.
12585         (merge_tlist): Use it.
12586         (warn_for_collisions_1): Likewise.
12587         (warning_candidate_p): Accept more candidates.
12588         (verify_tree): A warning candidate can be an expression. Use
12589         candidate_equal_p.
12590
12591 2009-04-21  Ben Elliston  <bje@au.ibm.com>
12592
12593         PR target/5267
12594         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
12595         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
12596         options.  Remove -mcall-solaris documentation.
12597
12598 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12599
12600         PR c++/13358
12601         * doc/invoke.texi (-Wlong-long): Update description.
12602         * c-lex (interpret_integer): Only warn if there was no previous
12603         overflow and -Wlong-long is enabled.
12604         * c-decl.c (declspecs_add_type): Drop redundant flags.
12605         * c.opt (Wlong-long): Init to -1.
12606         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
12607         and front-end warn_long_long. Wlong-long only depends on other
12608         flags if it is uninitialized.
12609         * c-parser.c (disable_extension_diagnostics): warn_long_long is
12610         the same for CPP and FE.
12611         (restore_extension_diagnostics): Likewise.
12612
12613 2009-04-20  Ian Lance Taylor  <iant@google.com>
12614
12615         Fix enum conversions which are invalid in C++:
12616         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
12617         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
12618         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
12619         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
12620         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
12621         (dbxout_parms): Likewise.
12622         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
12623         (df_clear_flags): Likewise.
12624         * df-problems.c (df_rd_bb_local_compute_process_def): Change
12625         top_flag parameter to int.
12626         (df_chain_create_bb_process_use): Likewise.
12627         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
12628         Remove cast.
12629         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
12630         (df_ref_create_structure, df_def_record_1): Likewise.
12631         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
12632         (df_notes_rescan): Change 0 to VOIDmode in function call.
12633         (df_get_call_refs, df_insn_refs_collect): Likewise.
12634         (df_bb_regs_collect): Likewise.
12635         (df_entry_block_defs_collect): Likewise.
12636         (df_exit_block_uses_collect): Likewise.
12637         * df.h: Update declarations.
12638         * double-int.c (double_int_divmod): Add cast to enum type.
12639         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
12640         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
12641         (based_loc_descr): Likewise.
12642         (loc_descriptor_from_tree_1): Change first_op and second_op to
12643         enum dwarf_location_atom.  Add cast to enum type.
12644         * expmed.c (init_expmed): Change 0 to SET in function call.
12645         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
12646         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
12647         (do_store_flag): Likewise.
12648         * fixed-value.h (struct fixed_value): Change mode to enum
12649         machine_mode.
12650         * function.c (assign_parms): Change 0 to VOIDmode in function call.
12651         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
12652         function call.
12653         (insert_insn_decl, insert_decl, insert_state): Likewise.
12654         (automata_list_finish): Likewise.
12655         * genrecog.c (process_define_predicate): Add cast to enum type.
12656         * gensupport.c (init_predicate_table): Add cast to enum type.
12657         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
12658         function call.
12659         (gimple_build_call_1, gimple_build_label): Likewise.
12660         (gimple_build_goto, gimple_build_asm_1): Likewise.
12661         (gimple_build_switch_1, gimple_build_cdt): Likewise.
12662         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
12663         (enum fallback): Rename from enum fallback_t.
12664         (fallback_t): Typedef as int.
12665         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
12666         GSI_SAME_STMT in function call.
12667         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
12668         enum type.
12669         (setup_reg_class_relations): Likewise.
12670         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
12671         (setup_prohibited_class_mode_regs): Add cast to enum type.
12672         (setup_prohibited_mode_move_regs): Likewise.
12673         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
12674         (record_address_regs): Change i to enum reg_class.
12675         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
12676         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
12677         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
12678         (GET_MODE_2XWIDER_MODE): Likewise.
12679         (GET_CLASS_NARROWEST_MODE): Likewise.
12680         * omp-low.c (expand_omp_for): Add cast to enum type.
12681         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
12682         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
12683         * postreload.c (reload_cse_simplify_operands): Change rclass local
12684         to enum reg_class.
12685         * predict.c (combine_predictions_for_insn): Change best_predictor
12686         and predictor to enum br_predictor.
12687         (combine_predictions_for_bb): Likewise.
12688         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
12689         use SET_PREDICT_EXPR_OUTCOME.
12690         * real.c (real_arithmetic): Change icode to code in function call.
12691         * reginfo.c (init_move_cost): Add casts to enum type.
12692         (init_reg_sets_1, init_fake_stack_mems): Likewise.
12693         * regmove.c (regclass_compatible_p): Change class0 and class1 to
12694         enum reg_class.
12695         * reload.c (find_valid_class): Add casts to enum type.
12696         (push_reload): Change 0 to NO_REGS in function call.
12697         (find_reloads): Change this_alternative to array of enum
12698         reg_class.  Remove some now-unnecessary casts.
12699         (make_memloc): Change 0 to VOIDmode in function call.
12700         * reload1.c (reload): Change 0 to VOIDmode in function call.
12701         (eliminate_regs_1, elimination_effects): Likewise.
12702         (eliminate_regs_in_insn): Likewise.
12703         (emit_input_reload_insns): Add cast to enum type.
12704         (delete_output_reload): Change 0 to VOIDmode in function call.
12705         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
12706         to enum type in function call.
12707         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
12708         (SET_PREDICT_EXPR_OUTCOME): Define.
12709         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
12710         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
12711         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
12712         (dump_function): Likewise.
12713         * tree-dump.h: Update declarations.
12714         * tree-pass.h: Update declarations.
12715         * varasm.c (assemble_integer): Change mclass to enum mode_class.
12716         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
12717         enum type.
12718         (arm_rtx_costs_1): Correct parenthesization.
12719         (arm_rtx_costs): Add casts to enum type.
12720         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
12721         (vfp_emit_fstmd): Use add_rg_note.
12722         (emit_multi_reg_push, emit_sfm): Likewise.
12723         (thumb_set_frame_pointer): Likewise.
12724         (arm_expand_prologue): Likewise.
12725         (arm_regno_class): Change return type to enum reg_class.
12726         (thumb1_expand_prologue): Use add_reg_note.
12727         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
12728         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
12729         in function call.
12730         * config/arm/gentune.sh: Add cast to enum type.
12731         * config/arm/arm-tune.md: Rebuild.
12732         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
12733         (ix86_split_fp_branch, predict_jump): Likewise.
12734         (ix86_expand_multi_arg_builtin): Change sub_code from enum
12735         insn_code to enum rtx_code.
12736         (ix86_builtin_vectorized_function): Add cast to enum type.
12737         * config/i386/i386.md (truncdfsf2): Change slot to enum
12738         ix86_stack_slot.
12739         (truncxf<mode>2, isinf<mode>2): Likewise.
12740         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
12741         enum type.
12742         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
12743         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
12744         (insert_bundle_state): Change 1 to INSERT in function call.
12745         (ia64_add_bundle_selector_before): Likewise.
12746         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
12747         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
12748         (restore_stack_nonlocal): Likewise.
12749         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
12750         function call.
12751         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
12752         function call.
12753         (mips_rtx_costs): Likewise.
12754         (mips_override_options): Add casts to enum type.
12755         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
12756         in function call.
12757         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
12758         (store_reg, set_reg_plus_d): Likewise.
12759         (hppa_expand_prologue, hppa_profile_hook): Likewise.
12760         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12761         cast to enum type.
12762         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
12763         function call.
12764         (emit_unlikely_jump): Use add_reg_note.
12765         (rs6000_emit_allocate_stack): Likewise.
12766         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
12767         (output_toc): Change 1 to INSERT in function call.
12768         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
12769         (rs6000_initialize_trampoline): Likewise.
12770         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
12771         function call.
12772         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
12773         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
12774         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
12775         (save_gprs): Use add_reg_note.
12776         (s390_emit_prologue): Likewise.
12777         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12778         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
12779         (sparc_fold_builtin): Add cast to enum type.
12780         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
12781         enum insn_code.
12782         (spu_expand_prologue): Use add_reg_note.
12783         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
12784
12785 2009-04-20  Ian Lance Taylor  <iant@google.com>
12786
12787         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
12788         (c_parser_postfix_expression_after_primary): Get VEC for list of
12789         arguments.  Get original types of arguments.  Call
12790         build_function_call_vec.
12791         (cached_expr_list_1, cached_expr_list_2): New static variables.
12792         (c_parser_expr_list): Change return type to VEC *.  Add
12793         p_orig_types parameter.  Change all callers.
12794         (c_parser_release_expr): New static function.
12795         (c_parser_vec_to_tree_list): New static function.
12796         * c-typeck.c (build_function_call): Rewrite to build a VEC and
12797         call build_function_call_vec.
12798         (build_function_call_vec): New function, based on old
12799         build_function_call.
12800         (convert_arguments): Remove nargs and argarray parameters.  Change
12801         values to a VEC.  Add origtypes parameter.
12802         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
12803         (convert_for_assignment): Add origtype parameter.  Change all
12804         callers.  If warn_cxx_compat, check for conversion to an enum
12805         type when calling a function.
12806         (store_init_value): Add origtype parameter.  Change all callers.
12807         (digest_init): Likewise.
12808         (struct init_node): Add origtype field.
12809         (add_pending_init): Add origtype parameter.  Change all callers.
12810         (output_init_element): Likewise.
12811         (output_pending_init_elements): Pass origtype from init_node to
12812         output_init_element.
12813         (process_init_element): Pass origtype from c_expr to
12814         output_init_element.
12815         (c_finish_return): Add origtype parameter.  Change all callers.
12816         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
12817         caller.
12818         (sync_resolve_params): Likewise.
12819         (sync_resolve_return): Change params to first_param.  Change caller.
12820         (resolve_overloaded_builtins): Change params to VEC *.  Change
12821         callers.  Save first parameter around call to build_function_call_vec.
12822         * c-decl.c (finish_decl): Add origtype parameter.  Change all
12823         callers.  Call build_function_call_vec rather than
12824         build_function_call for cleanup.
12825         * c-tree.h: Update declarations.
12826         * c-common.h: Update declarations.
12827         * stub-objc.c (objc_rewrite_function_call): Change parameter from
12828         params to first_param.
12829         * target.h (struct gcc_target): Change resolve_overloaded_builtin
12830         params parameter from tree to void *.
12831         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12832         Change arglist parameter to have type void *, and to be a pointer
12833         to a VEC.
12834         * config/rs6000/rs6000-protos.h
12835         (altivec_resolve_overloaded_builtin): Update declaration.
12836         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
12837         fnargs parameter to have type void *, and to be a pointer to a
12838         VEC.  Call build_function_call_vec instead of
12839         build_function_call.
12840         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
12841
12842 2009-04-20  Joey Ye  <joey.ye@intel.com>
12843             Xuepeng Guo  <xuepeng.guo@intel.com>
12844             H.J. Lu  <hongjiu.lu@intel.com>
12845
12846         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
12847
12848         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
12849         (IX86_LEA_PRIORITY): Likewise.
12850         (distance_non_agu_define): New function.
12851         (distance_agu_use): Likewise.
12852         (ix86_lea_for_add_ok): Likewise.
12853         (ix86_dep_by_shift_count): Likewise.
12854
12855         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
12856         should split for LEA.
12857
12858         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
12859         function.
12860         (ix86_dep_by_shift_count): Likewise.
12861
12862 2009-04-20  Richard Guenther  <rguenther@suse.de>
12863
12864         * expr.c (handled_component_p): Move ...
12865         * tree.h (handled_component_p): ... here.
12866         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
12867         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
12868         and REALPART_EXPR to be in one group.
12869
12870 2009-04-20  Richard Guenther  <rguenther@suse.de>
12871
12872         * basic-block.h (get_all_dominated_blocks): Declare.
12873         * dominance.c (get_all_dominated_blocks): New function.
12874         * tree-cfg.c (get_all_dominated_blocks): Remove.
12875         (remove_edge_and_dominated_blocks): Adjust.
12876         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
12877         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
12878         instead of recursing.
12879
12880 2009-04-20  Doug Kwan  <dougkwan@google.com>
12881
12882         * cgraph.h (cgraph_node_ptr): New type for vector functions.
12883         (struct cgraph_node_set_def): New type.
12884         (cgraph_node_set) New type. Also declare vector functions.
12885         (struct cgraph_node_set_element_def): New type.
12886         (cgraph_node_set_element): Ditto.
12887         (cgraph_node_set_iterator): New iterator type.
12888         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
12889         cgraph_node_set_remove, dump_cgraph_node_set,
12890         debug_cgraph_node_set): New prototypes.
12891         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
12892         cgraph_node_set_size): New inlines.
12893         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
12894         including cgraph.h.
12895         (struct ipa_opt_pass): Add struct cgraph_node_set_def
12896         argument to function 'write_summary'.
12897         * ipa.c: Include ggc.h.
12898         (hash_cgraph_node_set_element,
12899         eq_cgraph_node_set_element, cgraph_node_set_new,
12900         cgraph_node_set_add, cgraph_node_set_remove,
12901         cgraph_node_set_find, dump_cgraph_node_set,
12902         debug_cgraph_node_set): New functions.
12903         * Makefile.in (ipa.o): Add dependency on GGC_H.
12904
12905 2009-04-20  Ira Rosen  <irar@il.ibm.com>
12906
12907         PR tree-optimization/39675
12908         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
12909         check of the return code of vect_schedule_slp. Check that
12910         stmt_vec_info still exists for the statement, before checking its
12911         vectorization type.
12912
12913 2009-04-20  Michael Matz  <matz@suse.de>
12914
12915         * Makefile.in (generated_files): Take out $(simple_generated_c).
12916
12917 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
12918
12919         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
12920         (UINTPTR_TYPE):  Likewise.
12921
12922 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12923
12924         PR c/37481
12925         * c-typeck.c (digest_init): Check for initializing an array with a
12926         string literal.
12927
12928 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12929
12930         PR c/19771
12931         * c-semantics.c (pop_stmt_list): Propagate
12932         STATEMENT_LIST_HAS_LABEL to parent statement list.
12933
12934 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
12935
12936         * config/mips/mips.h (mips_tune_attr): New macro.
12937         * config/mips/mips.md (cpu): Use it.
12938
12939 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12940
12941         PR c/38243
12942         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
12943         declaring a tag.
12944
12945 2009-04-19  Diego Novillo  <dnovillo@google.com>
12946
12947         * toplev.c (compile_file): Move call to coverage_finish ...
12948         * cgraphunit.c (ipa_passes): ... here.
12949         Call cgraph_process_new_functions.
12950         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
12951         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
12952
12953 2009-04-19  Jan Hubicka  <jh@suse.cz>
12954
12955         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
12956         cfun.
12957         (dump_cgraph_node): Dump can throw external flag.
12958         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
12959
12960 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12961
12962         PR c/32061
12963         PR c++/36954
12964         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
12965         * common.opt (Wlogical-op): Move from here...
12966         * c.opt (Wlogical-op): ... to here.
12967         * c-typeck.c (parser_build_binary_op): Update call to
12968         warn_logical_operator.
12969         * c-opts.c (c_common_post_options): Enable warn_logical_op with
12970         extra_warnings.
12971         * c-common.c (warn_logical_op): Update.
12972         * c-common.h (warn_logical_op): Update declaration.
12973
12974 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12975
12976         * tree.c (protected_set_expr_location): Fix formatting.
12977
12978 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12979
12980         PR c/27676
12981         * c-typeck.c (readonly_warning): new.
12982         (build_unary_op, build_modify_expr): Use readonly_warning for
12983         storing into something readonly but not const-qualified.
12984
12985 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12986
12987         PR c/22367
12988         * c-typeck.c (build_unary_op): Check for taking address of
12989         expression of type void.
12990
12991 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12992
12993         PR c/35210
12994         * c-typeck.c (build_function_call): Check for calling a function
12995         with qualified void return types.  Call require_complete_type when
12996         generating a trap.
12997
12998 2009-04-18  Jan Hubicka  <jh@suse.cz>
12999
13000         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
13001         Set nothrow flag.
13002         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
13003         can_throw_external flag.
13004         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
13005         * ipa-pure-const.c (ignore_edge): New function.
13006         (propagate): Compute order for NOTHROW computation; set NOTHROWs
13007         only over can_throw_external edges.
13008         (local_pure_const): Add nothrow flag.
13009         * ipa-utils.c (searchc): Add ignore_edge callback.
13010         (ipa_utils_reduced_inorder): Add ignore_edge callback.
13011         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
13012         (set_nothrow_function_flags): Update cgraph.
13013         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
13014
13015 2009-04-18  Richard Guenther  <rguenther@suse.de>
13016
13017         PR middle-end/39804
13018         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
13019         (fold_stmt): ... this and ...
13020         (fold_stmt_inplace): ... this.
13021         (fold_stmt_1): Fold references in calls and asms.
13022         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
13023
13024 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13025
13026         * tree-vrp.c (ssa_name_nonzero_p): Remove.
13027         * tree.h: Remove the prototype for ssa_name_nonzero_p.
13028
13029 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13030
13031         * tree.c (function_args_count): Remove.
13032         * tree.h: Remove the prototype for function_args_count.
13033
13034 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13035
13036         * tree-iterator.c (expr_only): Remove.
13037         * tree.h: Remove the prototype for expr_only.
13038
13039 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13040
13041         * reginfo.c (cannot_change_mode_set_regs): Remove.
13042         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
13043
13044 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
13045
13046         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
13047         whether operands 0 and 1 overlaps.
13048
13049 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13050
13051         PR middle-end/36902
13052         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
13053         pointer. Use warning_at instead of warning.
13054         (search_for_addr_array): Likewise.
13055         (check_array_bounds): Likewise.
13056         (check_all_array_refs): Check that the incoming edge is not in the
13057         list of edges to be removed.
13058         (check_all_array_refs): Avoid the temporal pointer.
13059         (vrp_visit_cond_stmt): Fix typo.
13060         (simplify_switch_using_ranges): Handle the case where the switch
13061         index is an integer constant.
13062
13063 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
13064
13065         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
13066
13067 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13068
13069         * doc/extend.texi, doc/invoke.texi: Fix typos.
13070
13071 2009-04-17  Cary Coutant  <ccoutant@google.com>
13072
13073         * tree-flow-inline.h (get_lineno): Fix inverted test.
13074
13075 2009-04-17  Diego Novillo  <dnovillo@google.com>
13076
13077         * tree-ssa-pre.c (create_expression_by_pieces): Remove
13078         assertion for AVAIL_OUT.
13079
13080 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
13081
13082         PR target/38627
13083         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
13084         * config/sh/linux-atomic.asm: Likewise.
13085
13086 2009-04-17  Diego Novillo  <dnovillo@google.com>
13087
13088         * except.c (debug_eh_tree): New.
13089         (struct eh_region, struct eh_status): Move ...
13090         * except.h: ... here.
13091         (add_type_for_runtime): Declare extern.
13092         (lookup_type_for_runtime): Likewise.
13093         (debug_eh_tree): Declare.
13094         * Makefile.in (GTFILES): List except.h before except.c
13095
13096 2009-04-17  Diego Novillo  <dnovillo@google.com>
13097
13098         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
13099         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13100         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
13101         (find_vars_r): ... here.
13102         * tree-flow.h (find_referenced_vars_in): Declare.
13103         * tree-ssa-pre.c (create_expression_by_pieces): Assert
13104         that AVAIL_OUT exists for BLOCK.
13105         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
13106         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
13107         (tree-parloops.o): Likewise.
13108
13109 2009-04-17  Simon Baldwin  <simonb@google.com>
13110
13111         * toplev.c (default_tree_printer): Add handling for %E format.
13112
13113 2009-04-17  Diego Novillo  <dnovillo@google.com>
13114
13115         * tree-pretty-print.c (dump_generic_node): Add break after
13116         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
13117         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
13118         FUNCTION_TYPE together.  Call print_struct_decl when printing
13119         structures and TDF_SLIM is not given.
13120         (print_struct_decl): Fix logic for detecting recursion.
13121
13122 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
13123
13124         PR 31567
13125         * gcc.c (create_at_file): New.
13126         (compile_input_file_p): New.
13127         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
13128         * main.c (main): Update call to toplev_main.
13129         * toplev.c (toplev_main): Change signature. Call expandargv.
13130         * toplev.h (toplev_main): Change signature.
13131
13132 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
13133
13134         * dwarf2out.c (field_byte_offset): Use the type size as the field size
13135         if the latter is not constant.
13136
13137 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
13138
13139         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
13140
13141 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
13142
13143         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
13144         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
13145
13146 2009-04-17  Richard Guenther  <rguenther@suse.de>
13147
13148         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13149         Handle component references view-converting an invariant address.
13150
13151 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
13152
13153         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
13154         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
13155         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
13156         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
13157         Use @deftypevr rather than @deftypevar.
13158
13159 2009-04-17  Richard Guenther  <rguenther@suse.de>
13160
13161         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
13162         (get_prop_source_stmt): Likewise.
13163         (can_propagate_from): Likewise.
13164
13165 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
13166
13167         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
13168         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
13169         (--with-multilib-list): Add default value.
13170         * configure: Regenerate.
13171         * Makefile.in (TM_ENDIAN_CONFIG): Define.
13172         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
13173         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
13174         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
13175         Don't add default cpu to multilib list unnecessarily, but do enable
13176         the relevant compiler option..
13177         Add support for --with-multilib-list=<blank> and
13178         --with-multilib-list=!<somelib> to supress unwanted multilibs.
13179         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
13180         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
13181         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
13182         TM_MULTILIB_CONFIG.
13183         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
13184         (MULTILIB_OSDIRNAMES): New variable.
13185         * config/sh/t-1e: Delete file.
13186         * config/sh/t-mlib-sh1: Delete file.
13187         * config/sh/t-mlib-sh2: Delete file.
13188         * config/sh/t-mlib-sh2a: Delete file.
13189         * config/sh/t-mlib-sh2a-nofpu: Delete file.
13190         * config/sh/t-mlib-sh2a-single: Delete file.
13191         * config/sh/t-mlib-sh2a-single-only: Delete file.
13192         * config/sh/t-mlib-sh2e: Delete file.
13193         * config/sh/t-mlib-sh3e: Delete file.
13194         * config/sh/t-mlib-sh4: Delete file.
13195         * config/sh/t-mlib-sh4-nofpu: Delete file.
13196         * config/sh/t-mlib-sh4-single: Delete file.
13197         * config/sh/t-mlib-sh4-single-only: Delete file.
13198         * config/sh/t-mlib-sh4a: Delete file.
13199         * config/sh/t-mlib-sh4a-nofpu: Delete file.
13200         * config/sh/t-mlib-sh4a-single: Delete file.
13201         * config/sh/t-mlib-sh4a-single-only: Delete file.
13202         * config/sh/t-mlib-sh4al: Delete file.
13203         * config/sh/t-mlib-sh5-32media: Delete file.
13204         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
13205         * config/sh/t-mlib-sh5-64media: Delete file.
13206         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
13207         * config/sh/t-mlib-sh5-compact: Delete file.
13208         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
13209         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
13210         * doc/install.texi (Options specification): Add
13211         --with-multilib-list and --with-endian.
13212
13213 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
13214
13215         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
13216         REVISION_c.
13217         (OBJS-common): Add plugin-version.o.
13218         (plugin-version.o): New.
13219         * gcc-plugin.h (plugin_gcc_version): New.
13220         (plugin_default_version_check): New.
13221         (plugin_init_func, plugin_init): Add version argument.
13222         * plugin-version.c: New.
13223         * plugin.c (str_plugin_gcc_version_name): New.
13224         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
13225         pass it to the init function.
13226         (plugin_default_version_check): New.
13227
13228 2009-04-17  Richard Guenther  <rguenther@suse.de>
13229
13230         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
13231         for decl-vs-decl disambiguation.
13232
13233 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13234
13235         * config/s390/s390.h (s390_tune_attr): New macro definition.
13236         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
13237
13238 2009-04-17  Richard Guenther  <rguenther@suse.de>
13239
13240         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
13241         (fold_stmt_r): Likewise.
13242         (maybe_fold_reference): New function.
13243         (fold_gimple_assign): Handle cases fold_stmt_r did.
13244         (fold_stmt): Do not use fold_stmt_r.
13245         (fold_stmt_inplace): Likewise.
13246
13247 2009-04-17  Richard Guenther  <rguenther@suse.de>
13248
13249         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
13250         (record_equivalences_from_stmt): Remove useless checks and
13251         simplifications.
13252         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
13253         the type is already suitable.
13254
13255 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
13256
13257         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
13258
13259 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
13260
13261         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
13262         (CMPtype): Define as __gcc_CMPtype.
13263
13264 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
13265
13266         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
13267         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
13268
13269 2009-04-17  Richard Guenther  <rguenther@suse.de>
13270
13271         PR tree-optimization/39746
13272         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
13273         special-casing for builtins and static variable use/def.
13274         (call_may_clobber_ref_p_1): Likewise.
13275
13276 2009-04-16  Ian Lance Taylor  <iant@google.com>
13277
13278         * df.h: Include "timevar.h".
13279         (struct df_problem): Change tv_id field to timevar_id_t.
13280         * tree-pass.h: Include "timevar.h".
13281         (struct opt_pass): Change tv_id field to timevar_id_t.
13282         * timevar.h (timevar_id_t): Define TV_NONE.
13283         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
13284         TV_NONE rather than tv_id != 0.
13285         (execute_one_pass): Likewise.
13286         * Makefile.in (DF_H): Add $(TIMEVAR_H).
13287         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
13288         dependencies to $(TREE_PASS_H).
13289         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
13290         to TV_NONE.
13291         (pass_branch_target_load_optimize2): Likewise.
13292         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
13293         (pass_outof_cfg_layout_mode): Likewise.
13294         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
13295         (pass_rebuild_cgraph_edges): Likewise.
13296         (pass_remove_cgraph_callee_edges): Likewise.
13297         * df-core.c (pass_df_initialize_opt): Likewise.
13298         (pass_df_initialize_no_opt): Likewise.
13299         (pass_df_finish): Likewise.
13300         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
13301         * except.c (pass_set_nothrow_function_flags): Likewise.
13302         (pass_convert_to_eh_region_ranges): Likewise.
13303         * final.c (pass_compute_alignments): Likewise.
13304         * function.c (pass_instantiate_virtual_regs): Likewise.
13305         (pass_init_function): Likewise.
13306         (pass_leaf_regs): Likewise.
13307         (pass_match_asm_constraints): Likewise.
13308         * gimple-low.c (pass_lower_cf): Likewise.
13309         (pass_mark_used_blocks): Likewise.
13310         * init-regs.c (pass_initialize_regs): Likewise.
13311         * integrate.c (pass_initial_value_sets): Likewise.
13312         * ira.c (pass_ira): Likewise.
13313         * jump.c (pass_cleanup_barriers): Likewise.
13314         * omp-low.c (pass_expand_omp): Likewise.
13315         (pass_lower_omp): Likewise.
13316         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
13317         * recog.c (pass_split_all_insns): Likewise.
13318         (pass_split_after_reload): Likewise.
13319         (pass_split_before_regstack): Likewise.
13320         (pass_split_before_sched2): Likewise.
13321         (pass_split_for_shorten_branches): Likewise.
13322         * reginfo.c (pass_reginfo_init): Likewise.
13323         (pass_subregs_of_mode_init): Likewise.
13324         (pass_subregs_of_mode_finish): Likewise.
13325         * passes.c (pass_postreload): Likewise.
13326         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
13327         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
13328         (pass_warn_function_return): Likewise.
13329         (pass_warn_function_noreturn): Likewise.
13330         * tree-complex.c (pass_lower_complex): Likewise.
13331         (pass_lower_complex_O0): Likewise.
13332         * tree-if-conv.c (pass_if_conversion): Likewise.
13333         * tree-into-ssa.c (pass_build_ssa): Likewise.
13334         * tree-mudflap.c (pass_mudflap_1): Likewise.
13335         (pass_mudflap_2): Likewise.
13336         * tree-nomudflap.c (pass_mudflap_1): Likewise.
13337         (pass_mudflap_2): Likewise.
13338         * tree-nrv.c (pass_return_slot): Likewise.
13339         * tree-object-size.c (pass_object_sizes): Likewise.
13340         * tree-optimize.c (pass_all_optimizations): Likewise.
13341         (pass_early_local_passes): Likewise.
13342         (pass_all_early_optimizations): Likewise.
13343         (pass_cleanup_cfg): Likewise.
13344         (pass_cleanup_cfg_post_optimizing): Likewise.
13345         (pass_free_datastructures): Likewise.
13346         (pass_free_cfg_annotations): Likewise.
13347         (pass_fixup_cfg): Likewise.
13348         (pass_init_datastructures): Likewise.
13349         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
13350         (pass_late_warn_uninitialized): Likewise.
13351         (pass_update_address_taken): Likewise.
13352         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
13353         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
13354         (pass_cse_sincos): Likewise.
13355         (pass_convert_to_rsqrt): Likewise.
13356         * tree-ssa-structalias.c (pass_build_alias): Likewise.
13357         * tree-stdarg.c (pass_stdarg): Likewise.
13358         * tree-tailcall.c (pass_tail_recursion): Likewise.
13359         (pass_tail_calls): Likewise.
13360         * tree-vect-generic.c (pass_lower_vector): Likewise.
13361         (pass_lower_vector_ssa): Likewise.
13362         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
13363
13364 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
13365
13366         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
13367         XLR entry.
13368         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
13369         Handle -march=xlr.
13370         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
13371         logical and signext.
13372
13373 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13374
13375         PR target/39767
13376         * config/sh/predicates.md (arith_operand): Check if the operand
13377         of TRUNCATE is a REG.
13378
13379 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13380
13381         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
13382         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
13383
13384 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13385
13386         * tree-iterator.c (tsi_split_statement_list_after,
13387         tsi_split_statement_list_before): Remove.
13388         * tree-iterator.h: Remove the prototypes for
13389         tsi_split_statement_list_after and tsi_split_statement_list_before.
13390
13391 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13392
13393         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
13394         * tree-ssa-propagate.h: Remove the prototype for
13395         stmt_makes_single_load.
13396
13397 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13398
13399         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
13400         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
13401
13402 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13403
13404         * tree-iterator.c (EXPR_LAST_BODY): Remove.
13405
13406 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13407
13408         * except.c (eh_region_outer_p): Remove.
13409         * except.h: Remove the prototype for eh_region_outer_p.
13410
13411 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13412
13413         * function.c (current_function_assembler_name): Remove.
13414         * function.h: Remove the prototype for
13415         current_function_assembler_name.
13416
13417 2009-04-16  Ian Lance Taylor  <iant@google.com>
13418
13419         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
13420         (add_reg_note): Call alloc_reg_note.
13421         * rtl.h (alloc_reg_note): Declare.
13422         * combine.c (try_combine): Use alloc_reg_note.
13423         (recog_for_combine, move_deaths): Likewise.
13424         (distribute_notes): Use alloc_reg_note and add_reg_note.
13425         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
13426         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
13427         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
13428
13429 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
13430
13431         PR rtl-optimization/39762
13432         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
13433         ira_may_move_out_cost): Add comments about way of their usage.
13434         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
13435
13436         * ira-conflicts.c (process_regs_for_copy): Use function
13437         ira_get_register_move_cost instead of global
13438         ira_register_move_cost.
13439
13440         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
13441         color_pass, move_spill_restore, update_curr_costs): Ditto.
13442
13443         * ira-lives.c (process_single_reg_class_operands): Ditto.
13444
13445         * ira-emit.c (emit_move_list): Ditto.
13446
13447         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
13448         (record_reg_classes): Ditto.  Use functions
13449         ira_get_register_move_cost and ira_get_may_move_cost instead of
13450         global vars ira_register_move_cost, ira_may_move_out_cost and
13451         ira_may_move_in_cost.
13452         (record_address_regs): Don't call ira_init_register_move_cost.
13453         Use function ira_get_may_move_cost instead of global
13454         ira_may_move_in_cost.
13455         (process_bb_node_for_hard_reg_moves): Use function
13456         ira_get_register_move_cost instead of global ira_register_move_cost.
13457         (ira_costs): Don't call ira_init_register_move_cost.
13458
13459 2009-04-16  Richard Guenther  <rguenther@suse.de>
13460
13461         * tree-cfg.c (verify_gimple_assign_binary):
13462         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
13463         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
13464         (create_general_new_stmt): Note that this function is broken.
13465
13466 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13467
13468         * common.opt (fhelp): Add Var(help_flag).
13469         * gcc-plugin.h (plugin_info): Add help.
13470         * plugin.c (plugin_name_args): Add help.
13471         (register_plugin_info): Set plugin->help.
13472         (print_help_one_plugin): New.
13473         (print_plugins_help): New.
13474         * plugin.h (print_plugins_help): New.
13475         * toplev.c (toplev_main): Call print_plugins_help if needed.
13476
13477 2009-04-16  Richard Guenther  <rguenther@suse.de>
13478
13479         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
13480         (gimple_ior_addresses_taken_1): New function.
13481         (gimple_ior_addresses_taken): Likewise.
13482         * gimple.h (struct gimple_statement_with_ops_base): Remove
13483         addresses_taken member.
13484         (gimple_ior_addresses_taken): Declare.
13485         (gimple_addresses_taken, gimple_addresses_taken_ptr,
13486         gimple_set_addresses_taken): Remove.
13487         * ipa-reference.c (mark_address): New function.
13488         (scan_stmt_for_static_refs): Use it for marking addresses taken.
13489         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
13490         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
13491         (gimple_add_to_addresses_taken): Remove.
13492         (get_tmr_operands): Call mark_address_taken.
13493         (get_asm_expr_operands): Likewise.
13494         (get_expr_operands): Likewise.
13495         (build_ssa_operands): Do not clear the addresses_taken bitmap.
13496         (free_stmt_operands): Do not free it.
13497         * tree-ssa.c (delete_tree_ssa): Likewise.
13498         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
13499
13500 2009-04-16  Richard Guenther  <rguenther@suse.de>
13501
13502         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
13503         (walk_stmt_load_store_ops): Likewise.
13504         * gimple.c (get_base_loadstore): New function.
13505         (walk_stmt_load_store_addr_ops): Likewise.
13506         (walk_stmt_load_store_ops): Likewise.
13507         * ipa-pure-const.c (check_op): Simplify.
13508         (check_load, check_store): New functions.
13509         (check_stmt): Use walk_stmt_load_store_ops.
13510         * ipa-reference.c (mark_load): Adjust signature.
13511         (mark_store): Likewise.
13512         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
13513
13514 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13515
13516         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
13517         (plugin_info): New.
13518         * opts.c (common_handle_option): Don't call print_version.
13519         * plugin.c (plugin_name_args): Add version.
13520         (register_plugin_info): New.
13521         (register_callback): Handle PLUGIN_INFO.
13522         (try_init_one_plugin): New.
13523         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
13524         if failed to init.
13525         (finalize_one_plugin): New.
13526         (finalize_plugins): New.
13527         (print_one_plugin): New.
13528         (print_plugins_versions): New.
13529         * plugin.h (print_plugins_versions): New.
13530         (finalize_plugins): New.
13531         * toplev.c (compile_file): Don't call initialize_plugins.
13532         (print_version): Call print_plugins_versions.
13533         (toplev_main): Call initialize_plugins. Print version if needed.
13534         Call finalize_plugins.
13535
13536 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13537
13538         * common.opt (fversion): New.
13539         * gcc.c (print_version): New.
13540         (process_command): Don't print the version. Just set print_version.
13541         (main): Print version. Call subprocesses if print_version and
13542         verbose_flag are set.
13543         * opts.c (common_handle_option): Handle OPT_fversion.
13544
13545 2009-04-16  Richard Guenther  <rguenther@suse.de>
13546             Ira Rosen  <irar@il.ibm.com>
13547
13548         PR tree-optimization/39698
13549         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
13550         type of the reduction variable.  Only generate the def if
13551         it is needed.
13552
13553         * omp-low.c (expand_omp_for_generic): When converting to a pointer
13554         make sure to first convert to an integer of the same precision.
13555         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
13556         the type of the evolution correctly in computing the new
13557         induction variable base.
13558
13559 2009-04-16  Richard Guenther  <rguenther@suse.de>
13560
13561         PR middle-end/39625
13562         * tree-cfg.c (make_blocks): Split statements with to-be
13563         abnormal SSA names on the lhs.
13564
13565 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
13566
13567         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
13568         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
13569         * c-typeck.c (really_start_incremental_init): Likewise.
13570         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
13571         (TARGET_INITIALIZER): Remove it.
13572         * target.h (struct target): Remove vector_opaque_p.
13573         * tree.c (build_opaque_vector_type): New.
13574         * tree.h (TYPE_VECTOR_OPAQUE): New.
13575         (build_opaque_vector_type): Declare.
13576         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
13577         * config/rs6000/rs6000.c (build_opaque_vector_type,
13578         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
13579         (rs6000_init_builtins): Use build_opaque_vector_type for
13580         opaque_V4SI_type_node.
13581
13582 2009-04-15  Catherine Moore  <clm@codesourcery.com>
13583
13584         * debug.h (set_name):  Declare.
13585         * dwarf2out.c (dwarf2out_set_name): Declare.
13586         (dwarf2_debug_hooks): Add set_name.
13587         (find_AT_string): New.
13588         (add_AT_string): Call find_AT_string.
13589         (dwarf2out_set_name): New.
13590         * cp/decl.c (grokdeclarator): Call set_name.
13591         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
13592         * debug.c (do_nothing_debug_hooks):  Likewise.
13593         * dbxout.c (dbx_debug_hooks): Likewise.
13594         * sdbout.c (sdb_debug_hooks): Likewise.
13595
13596 2009-04-15  Michael Eager  <eager@eagercon.com>
13597
13598         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
13599         reg for single-precision FPU.
13600         * config/rs6000/rs6000.md (movsi_internal1): Only for
13601         !TARGET_SINGLE_FPU.
13602         (movsi_internal1_single): New. Add pattern to move SI values to/from
13603         single-precision FP regs.
13604
13605 2009-04-15  Richard Guenther  <rguenther@suse.de>
13606
13607         * omp-low.c (lower_rec_input_clauses): Build correct address
13608         expressions.
13609         (expand_omp_for_generic): Fix multiplication type.
13610         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
13611         (generate_memset_zero): Fix types.
13612         * tree-profile.c (prepare_instrumented_value): Correctly
13613         widen a pointer.
13614
13615 2009-04-15  Ian Lance Taylor  <iant@google.com>
13616
13617         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
13618         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
13619         for -Wall and for -Wc++-compat.
13620         (c_common_post_options): For C++, set warn_enum_compare if not
13621         already set.
13622         * c-tree.h (struct c_expr): Add field original_type.
13623         (build_external_ref): Update declaration.
13624         * c-parser.c (c_parser_braced_init): Set original_type.
13625         (c_parser_initelt): Likewise.
13626         (c_parser_expr_no_commas): Likewise.
13627         (c_parser_conditional_expression): Likewise.
13628         (c_parser_cast_expression): Likewise.
13629         (c_parser_unary_expression): Likewise.  Pull setting of
13630         original_code to top of function.
13631         (c_parser_sizeof_expression): Set original_type.
13632         (c_parser_alignof_expression): Likewise.
13633         (c_parser_postfix_expression): Likewise.  Pull setting of
13634         original_code to top of function.
13635         (c_parser_postfix_expression_after_paren_type): Set original_type.
13636         (c_parser_postfix_expression_after_primary): Likewise.
13637         (c_parser_expression): Likewise.
13638         * c-typeck.c (build_external_ref): Add type parameter.  Change all
13639         callers.
13640         (c_expr_sizeof_expr): Set original_type field.
13641         (parser_build_unary_op): Likewise.
13642         (parser_build_binary_op): Likewise.  Optionally warn about
13643         comparisons of enums of different types.
13644         (digest_init): Set original_type field.
13645         (really_start_incremental_init): Likewise.
13646         (push_init_level, pop_init_level): Likewise.
13647         * doc/invoke.texi (Warning Options): -Wenum-compare now
13648         supported in C.
13649
13650 2009-04-15  Richard Guenther  <rguenther@suse.de>
13651
13652         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
13653         out a necessary conversion.
13654         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
13655         names we didn't value number.
13656         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
13657
13658 2009-04-15  Richard Guenther  <rguenther@suse.de>
13659
13660         PR tree-optimization/39764
13661         * tree-ssa-ccp.c (get_value): Canonicalize value with
13662         canonicalize_float_value.
13663
13664 2009-04-15  Jan Hubicka  <jh@suse.cz>
13665
13666         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
13667         Wrong version of patch.
13668
13669 2009-04-15  Jan Hubicka  <jh@suse.cz>
13670
13671         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
13672
13673 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
13674
13675         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
13676         our distinct integral and vector types.
13677
13678 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
13679
13680         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
13681         * init.c (build_vtbl_address): Remove call to assemble_external.
13682
13683 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
13684
13685         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
13686         output for other floating point modes.
13687
13688 2009-04-14  Diego Novillo  <dnovillo@google.com>
13689
13690         * diagnostic.c (diagnostic_report_diagnostic): Do not
13691         warn about loaded plugins for DK_ERROR and DK_WARNING.
13692         * c-decl.c (declspecs_add_type): Move call to
13693         invoke_plugin_callbacks ...
13694         * c-parser.c (c_parser_declspecs): ... here.
13695         * plugin.c (dump_active_plugins): Tidy output.
13696
13697 2009-04-14  Diego Novillo  <dnovillo@google.com>
13698             Le-Chun Wu  <lcwu@google.com>
13699
13700         * configure.ac: Add --enable-plugin support.
13701         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
13702         * Makefile.in (PLUGIN_H): Define.
13703         Export ENABLE_PLUGIN and GMPINC to site.exp.
13704         Add PLUGINLIBS to link command.
13705         Add/modify dependencies for plugin.o and files including plugin.h.
13706         (plugin.o): New.
13707         * config.in: Regenerate.
13708
13709         * opts.c (common_handle_option): Handle OPT_fplugin_ and
13710         OPT_fplugin_arg_.
13711
13712 2009-04-14  Le-Chun Wu  <lcwu@google.com>
13713
13714         * tree-pass.h (register_one_dump_file): Add a prototype for
13715         register_one_dump_file.
13716         * toplev.c (compile_file): Call initialize_plugins.
13717         (do_compile): Call invoke_plugin_callbacks.
13718         (toplev_main): Call invoke_plugin_callbacks.
13719         * common.opt: Add -fplugin= and -fplugin-arg-.
13720         * gcc-plugin.h: New public header file for plugins to include.
13721         * plugin.c: New source file.
13722         * plugin.h: New internal header file.
13723         * passes.c (register_one_dump_file): Make it external.
13724
13725         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
13726
13727 2009-04-14  Diego Novillo  <dnovillo@google.com>
13728
13729         * doc/plugins.texi: New.
13730         * doc/gccint.texi: Add reference to Plugins chapter.
13731         * doc/invoke.texi: Document -fplugin and -fplugin-arg
13732         * diagnostic.c (diagnostic_report_diagnostic): Warn about
13733         loaded plugins, if any.
13734         * timevar.def (TV_PLUGIN_INIT): Define.
13735         (TV_PLUGIN_RUN): Define.
13736         * plugin.c: Include timevar.h
13737         (plugins_active_p): New.
13738         (dump_active_plugins): New.
13739         (debug_active_plugins): New.
13740
13741 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
13742
13743         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
13744         library paths.
13745         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
13746
13747 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
13748
13749         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
13750         the same as a minus without a shift.
13751
13752 2009-04-14  Nick Clifton  <nickc@redhat.com>
13753
13754         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
13755         comparisons with small integers will always produce a short
13756         branch.
13757
13758 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
13759
13760         Merge:
13761         2008-12-19  Diego Novillo  <dnovillo@google.com>
13762
13763         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
13764
13765 2009-04-14  Richard Guenther  <rguenther@suse.de>
13766
13767         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
13768         verification.
13769         (verify_gimple_assign_binary): Likewise.  Handle shifts and
13770         rotates correctly.
13771         (verify_gimple_phi): Print the mismatched argument position.
13772         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13773         Fix types.
13774         (vect_update_init_of_dr): Likewise.
13775         * matrix-reorg.c (transform_access_sites): Do what the
13776         comment suggests.
13777         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
13778
13779 2009-04-13  Michael Eager  <eager@eagercon.com>
13780
13781         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
13782         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
13783         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
13784         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
13785         remove duplicate config
13786
13787 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13788
13789         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
13790         file_name:line_number type locator of the call site.
13791
13792 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
13793
13794         * genautomata.c: Put blank after comma.
13795         (automaton_decls): New.
13796         (struct unit_usage): Add comments to member next.
13797         (store_alt_unit_usage): Keep the list ordered.
13798         (unit_present_on_list_p, equal_alternatives_p): New.
13799         (check_regexp_units_distribution): Check units distribution
13800         correctness correctly.
13801         (main): Don't write automata if error is found.  Return correct
13802         exit code.
13803
13804         * config/m68k/cf.md (cfv4_ds): Remove.
13805         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
13806         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
13807
13808         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
13809         power4-load-ext, power4-store, power4-store-update,
13810         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
13811         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
13812         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
13813         power4-sqrt, power4-isync): Modify reservation to make correct
13814         unit distribution to automata.
13815
13816         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
13817         power5-store-update, power5-two, power5-three, power5-lmul,
13818         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
13819
13820 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
13821
13822         * except.c (pass_set_nothrow_function_flags): Set name and add
13823         TODO_dump_func.
13824         (set_nothrow_function_flags): Mention in the dump file when
13825         changing a function to nothrow.
13826
13827 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
13828
13829         PR/39066
13830         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
13831         instead of unsigned long.
13832
13833 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13834
13835         * config/arm/arm.c (return_used_this_function): Remove.
13836         (arm_output_function_prologue): Remove use of
13837         return_used_this_function.
13838         (output_return_instruction): Replace use of
13839         return_used_this_function
13840         by cfun->machine->return_used_this_function.
13841         (arm_output_epilogue): Likewise.
13842         (arm_output_function_epilogue): Likewise.
13843         (thumb_unexpanded_epilogue): Likewise.
13844         * config/arm/arm.h (struct machine_function):
13845         New member return_used_this_function.
13846
13847 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
13848
13849         * doc/install.texi: Correct description of default directory for
13850         --with-gxx-include-dir.
13851
13852 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13853
13854         * fold-const.c (build_range_check): Properly deal with enumeral and
13855         boolean base types.
13856
13857 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
13858
13859         * doc/invoke.texi (max_gcse_passes): Remove documentation.
13860         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
13861         * params.h (MAX_GCSE_PASSES): Remove.
13862         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
13863         in sequence.  Remove ability to run multiple passes.
13864         (bypass_jumps): Report run as third CPROP pass.
13865
13866 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
13867
13868         PR middle-end/39651
13869         * except.c (can_throw_external): Look at each insn in a SEQUENCE
13870         when deciding whether the whole SEQUENCE can throw.
13871
13872 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
13873
13874         PR target/39740
13875         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
13876         offseted label references.
13877
13878 2009-04-11  Jan Hubicka  <jh@suse.cz>
13879
13880         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
13881
13882 2009-04-11  Richard Guenther  <rguenther@suse.de>
13883
13884         PR middle-end/39732
13885         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
13886         return variables as TREE_ADDRESSABLE.
13887
13888 2009-04-11  Richard Guenther  <rguenther@suse.de>
13889
13890         PR tree-optimization/39713
13891         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
13892         reference trees have SSA_NAME operands.
13893
13894 2009-04-11  Richard Guenther  <rguenther@suse.de>
13895
13896         PR c/39712
13897         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
13898         address expressions.
13899
13900 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
13901
13902         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
13903         match changes in Cygwin 1.7
13904         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
13905         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
13906
13907 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13908
13909         PR tree-optimization/39701
13910         * doc/invoke.texi (Optimization Options): Document change in
13911         meaning and initialization of -fdelete-null-pointer-checks.
13912
13913 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13914
13915         PR middle-end/39701
13916         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
13917
13918         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
13919         here.
13920
13921         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
13922
13923 2009-04-10  Chao-ying Fu  <fu@mips.com>
13924
13925         * doc/tm.texi (Instruction Output): Document
13926         TARGET_ASM_FINAL_POSTSCAN_INSN.
13927         * target.h (final_postscan_insn): New field in asm_out.
13928         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13929         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
13930         * final.c (final_scan_insn): Call
13931         targetm.asm_out.final_postscan_insn after outputting
13932         an asm macro and a normal instruction.
13933
13934         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
13935         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
13936         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
13937         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
13938         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13939
13940 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13941
13942         PR middle-end/39701
13943         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
13944         variables as non-NULL even with -fdelete-null-pointer-checks.
13945
13946 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13947
13948         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
13949
13950 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
13951
13952         PR target/39678
13953         * config/i386/i386.c (classify_argument): Handle SCmode with
13954         (bit_offset % 64) != 0.
13955
13956 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
13957
13958         * doc/invoke.texi (Optimize Options): Add cross-reference to
13959         -Q --help=optimizers examples.
13960
13961 2009-04-10  Ben Elliston  <bje@au.ibm.com>
13962
13963         PR target/36800
13964         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
13965         regalign for the reg == fpr and TDmode case.
13966
13967 2009-04-09  David Ayers  <ayers@fsfe.org>
13968
13969         PR objc/29200
13970         * objc/objc-act.c (warn_with_method): Remove helper function.
13971         (check_duplicates): Call warning and inform directly.
13972         (really_start_method): Likewise.
13973
13974 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
13975
13976         * expmed.c (expand_divmod): Always use a comparison for a division
13977         by a large unsigned integer.
13978
13979         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
13980         for things others than variables or functions as nonzero.
13981
13982 2009-04-09  Nick Clifton  <nickc@redhat.com>
13983
13984         * unwind-compat.c: Change copyright header to refer to version
13985         3 of the GNU General Public License with version 3.1 of the
13986         GCC Runtime Library Exception and to point readers at the
13987         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
13988         * config/alpha/crtfastmath.c: Likewise.
13989         * config/alpha/linux-unwind.h: Likewise.
13990         * config/alpha/qrnnd.asm: Likewise.
13991         * config/alpha/vms-crt0-64.c: Likewise.
13992         * config/alpha/vms-crt0.c: Likewise.
13993         * config/alpha/vms-dwarf2.asm: Likewise.
13994         * config/alpha/vms-dwarf2eh.asm: Likewise.
13995         * config/alpha/vms-psxcrt0-64.c: Likewise.
13996         * config/alpha/vms-psxcrt0.c: Likewise.
13997         * config/alpha/vms_tramp.asm: Likewise.
13998         * config/arc/initfini.c: Likewise.
13999         * config/arc/lib1funcs.asm: Likewise.
14000         * config/arm/bpabi-v6m.S: Likewise.
14001         * config/arm/bpabi.S: Likewise.
14002         * config/arm/bpabi.c: Likewise.
14003         * config/arm/crti.asm: Likewise.
14004         * config/arm/crtn.asm: Likewise.
14005         * config/arm/ieee754-df.S: Likewise.
14006         * config/arm/ieee754-sf.S: Likewise.
14007         * config/arm/lib1funcs.asm: Likewise.
14008         * config/arm/libunwind.S: Likewise.
14009         * config/arm/linux-atomic.c: Likewise.
14010         * config/arm/mmintrin.h: Likewise.
14011         * config/arm/pr-support.c: Likewise.
14012         * config/arm/unaligned-funcs.c: Likewise.
14013         * config/arm/unwind-arm.c: Likewise.
14014         * config/arm/unwind-arm.h: Likewise.
14015         * config/avr/libgcc.S: Likewise.
14016         * config/bfin/crti.s: Likewise.
14017         * config/bfin/crtlibid.s: Likewise.
14018         * config/bfin/crtn.s: Likewise.
14019         * config/bfin/lib1funcs.asm: Likewise.
14020         * config/bfin/linux-unwind.h: Likewise.
14021         * config/cris/arit.c: Likewise.
14022         * config/cris/cris_abi_symbol.c: Likewise.
14023         * config/darwin-64.c: Likewise.
14024         * config/darwin-crt2.c: Likewise.
14025         * config/darwin-crt3.c: Likewise.
14026         * config/darwin.h: Likewise.
14027         * config/dbxelf.h: Likewise.
14028         * config/dfp-bit.c: Likewise.
14029         * config/dfp-bit.h: Likewise.
14030         * config/elfos.h: Likewise.
14031         * config/fixed-bit.c: Likewise.
14032         * config/fixed-bit.h: Likewise.
14033         * config/fp-bit.c: Likewise.
14034         * config/fp-bit.h: Likewise.
14035         * config/fr30/crti.asm: Likewise.
14036         * config/fr30/crtn.asm: Likewise.
14037         * config/fr30/lib1funcs.asm: Likewise.
14038         * config/freebsd-spec.h: Likewise.
14039         * config/frv/cmovd.c: Likewise.
14040         * config/frv/cmovh.c: Likewise.
14041         * config/frv/cmovw.c: Likewise.
14042         * config/frv/frvbegin.c: Likewise.
14043         * config/frv/frvend.c: Likewise.
14044         * config/frv/lib1funcs.asm: Likewise.
14045         * config/glibc-stdint.h: Likewise.
14046         * config/h8300/clzhi2.c: Likewise.
14047         * config/h8300/crti.asm: Likewise.
14048         * config/h8300/crtn.asm: Likewise.
14049         * config/h8300/ctzhi2.c: Likewise.
14050         * config/h8300/fixunssfsi.c: Likewise.
14051         * config/h8300/lib1funcs.asm: Likewise.
14052         * config/h8300/parityhi2.c: Likewise.
14053         * config/h8300/popcounthi2.c: Likewise.
14054         * config/i386/ammintrin.h: Likewise.
14055         * config/i386/att.h: Likewise.
14056         * config/i386/avxintrin.h: Likewise.
14057         * config/i386/biarch64.h: Likewise.
14058         * config/i386/bmmintrin.h: Likewise.
14059         * config/i386/cpuid.h: Likewise.
14060         * config/i386/cross-stdarg.h: Likewise.
14061         * config/i386/crtfastmath.c: Likewise.
14062         * config/i386/crtprec.c: Likewise.
14063         * config/i386/cygming-crtbegin.c: Likewise.
14064         * config/i386/cygming-crtend.c: Likewise.
14065         * config/i386/cygwin.asm: Likewise.
14066         * config/i386/emmintrin.h: Likewise.
14067         * config/i386/gmm_malloc.h: Likewise.
14068         * config/i386/gthr-win32.c: Likewise.
14069         * config/i386/i386.h: Likewise.
14070         * config/i386/immintrin.h: Likewise.
14071         * config/i386/linux-unwind.h: Likewise.
14072         * config/i386/linux64.h: Likewise.
14073         * config/i386/mm3dnow.h: Likewise.
14074         * config/i386/mmintrin-common.h: Likewise.
14075         * config/i386/mmintrin.h: Likewise.
14076         * config/i386/nmmintrin.h: Likewise.
14077         * config/i386/pmm_malloc.h: Likewise.
14078         * config/i386/pmmintrin.h: Likewise.
14079         * config/i386/smmintrin.h: Likewise.
14080         * config/i386/sol2-c1.asm: Likewise.
14081         * config/i386/sol2-ci.asm: Likewise.
14082         * config/i386/sol2-cn.asm: Likewise.
14083         * config/i386/sol2-gc1.asm: Likewise.
14084         * config/i386/tmmintrin.h: Likewise.
14085         * config/i386/unix.h: Likewise.
14086         * config/i386/w32-unwind.h: Likewise.
14087         * config/i386/wmmintrin.h: Likewise.
14088         * config/i386/x86-64.h: Likewise.
14089         * config/i386/x86intrin.h: Likewise.
14090         * config/i386/xmmintrin.h: Likewise.
14091         * config/ia64/crtbegin.asm: Likewise.
14092         * config/ia64/crtend.asm: Likewise.
14093         * config/ia64/crtfastmath.c: Likewise.
14094         * config/ia64/crti.asm: Likewise.
14095         * config/ia64/crtn.asm: Likewise.
14096         * config/ia64/fde-glibc.c: Likewise.
14097         * config/ia64/lib1funcs.asm: Likewise.
14098         * config/ia64/linux-unwind.h: Likewise.
14099         * config/ia64/quadlib.c: Likewise.
14100         * config/ia64/unwind-ia64.c: Likewise.
14101         * config/linux.h: Likewise.
14102         * config/m32c/m32c-lib1.S: Likewise.
14103         * config/m32c/m32c-lib2-trapv.c: Likewise.
14104         * config/m32c/m32c-lib2.c: Likewise.
14105         * config/m32r/initfini.c: Likewise.
14106         * config/m68hc11/larith.asm: Likewise.
14107         * config/m68hc11/m68hc11-crt0.S: Likewise.
14108         * config/m68k/cf.md: Likewise.
14109         * config/m68k/crti.s: Likewise.
14110         * config/m68k/crtn.s: Likewise.
14111         * config/m68k/lb1sf68.asm: Likewise.
14112         * config/m68k/linux-unwind.h: Likewise.
14113         * config/mcore/crti.asm: Likewise.
14114         * config/mcore/crtn.asm: Likewise.
14115         * config/mcore/lib1.asm: Likewise.
14116         * config/mips/linux-unwind.h: Likewise.
14117         * config/mips/loongson.h: Likewise.
14118         * config/mips/mips16.S: Likewise.
14119         * config/mmix/crti.asm: Likewise.
14120         * config/mmix/crtn.asm: Likewise.
14121         * config/pa/fptr.c: Likewise.
14122         * config/pa/hpux-unwind.h: Likewise.
14123         * config/pa/lib2funcs.asm: Likewise.
14124         * config/pa/linux-atomic.c: Likewise.
14125         * config/pa/linux-unwind.h: Likewise.
14126         * config/pa/milli64.S: Likewise.
14127         * config/pa/quadlib.c: Likewise.
14128         * config/pa/stublib.c: Likewise.
14129         * config/picochip/libgccExtras/adddi3.asm: Likewise.
14130         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
14131         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
14132         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
14133         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
14134         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
14135         * config/picochip/libgccExtras/divmod15.asm: Likewise.
14136         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
14137         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
14138         * config/picochip/libgccExtras/longjmp.asm: Likewise.
14139         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
14140         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
14141         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
14142         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
14143         * config/picochip/libgccExtras/setjmp.asm: Likewise.
14144         * config/picochip/libgccExtras/subdi3.asm: Likewise.
14145         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
14146         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
14147         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
14148         * config/rs6000/750cl.h: Likewise.
14149         * config/rs6000/altivec.h: Likewise.
14150         * config/rs6000/biarch64.h: Likewise.
14151         * config/rs6000/crtresfpr.asm: Likewise.
14152         * config/rs6000/crtresgpr.asm: Likewise.
14153         * config/rs6000/crtresxfpr.asm: Likewise.
14154         * config/rs6000/crtresxgpr.asm: Likewise.
14155         * config/rs6000/crtsavfpr.asm: Likewise.
14156         * config/rs6000/crtsavgpr.asm: Likewise.
14157         * config/rs6000/darwin-asm.h: Likewise.
14158         * config/rs6000/darwin-fallback.c: Likewise.
14159         * config/rs6000/darwin-fpsave.asm: Likewise.
14160         * config/rs6000/darwin-ldouble.c: Likewise.
14161         * config/rs6000/darwin-tramp.asm: Likewise.
14162         * config/rs6000/darwin-unwind.h: Likewise.
14163         * config/rs6000/darwin-vecsave.asm: Likewise.
14164         * config/rs6000/darwin-world.asm: Likewise.
14165         * config/rs6000/e500crtres32gpr.asm: Likewise.
14166         * config/rs6000/e500crtres64gpr.asm: Likewise.
14167         * config/rs6000/e500crtres64gprctr.asm: Likewise.
14168         * config/rs6000/e500crtrest32gpr.asm: Likewise.
14169         * config/rs6000/e500crtrest64gpr.asm: Likewise.
14170         * config/rs6000/e500crtresx32gpr.asm: Likewise.
14171         * config/rs6000/e500crtresx64gpr.asm: Likewise.
14172         * config/rs6000/e500crtsav32gpr.asm: Likewise.
14173         * config/rs6000/e500crtsav64gpr.asm: Likewise.
14174         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
14175         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
14176         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
14177         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
14178         * config/rs6000/eabi-ci.asm: Likewise.
14179         * config/rs6000/eabi-cn.asm: Likewise.
14180         * config/rs6000/eabi.asm: Likewise.
14181         * config/rs6000/linux-unwind.h: Likewise.
14182         * config/rs6000/linux64.h: Likewise.
14183         * config/rs6000/paired.h: Likewise.
14184         * config/rs6000/paired.md: Likewise.
14185         * config/rs6000/ppc64-fp.c: Likewise.
14186         * config/rs6000/ppu_intrinsics.h: Likewise.
14187         * config/rs6000/rs6000.h: Likewise.
14188         * config/rs6000/si2vmx.h: Likewise.
14189         * config/rs6000/sol-ci.asm: Likewise.
14190         * config/rs6000/sol-cn.asm: Likewise.
14191         * config/rs6000/spe.h: Likewise.
14192         * config/rs6000/spu2vmx.h: Likewise.
14193         * config/rs6000/sysv4.h: Likewise.
14194         * config/rs6000/tramp.asm: Likewise.
14195         * config/rs6000/vec_types.h: Likewise.
14196         * config/s390/linux-unwind.h: Likewise.
14197         * config/s390/tpf-unwind.h: Likewise.
14198         * config/score/crti.asm: Likewise.
14199         * config/score/crtn.asm: Likewise.
14200         * config/sh/crt1.asm: Likewise.
14201         * config/sh/crti.asm: Likewise.
14202         * config/sh/crtn.asm: Likewise.
14203         * config/sh/divtab-sh4-300.c: Likewise.
14204         * config/sh/divtab-sh4.c: Likewise.
14205         * config/sh/divtab.c: Likewise.
14206         * config/sh/lib1funcs-4-300.asm: Likewise.
14207         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
14208         * config/sh/lib1funcs.asm: Likewise.
14209         * config/sh/lib1funcs.h: Likewise.
14210         * config/sh/linux-atomic.asm: Likewise.
14211         * config/sh/linux-unwind.h: Likewise.
14212         * config/sh/shmedia.h: Likewise.
14213         * config/sh/sshmedia.h: Likewise.
14214         * config/sh/ushmedia.h: Likewise.
14215         * config/sparc/crtfastmath.c: Likewise.
14216         * config/sparc/linux-unwind.h: Likewise.
14217         * config/sparc/sol2-c1.asm: Likewise.
14218         * config/sparc/sol2-ci.asm: Likewise.
14219         * config/sparc/sol2-cn.asm: Likewise.
14220         * config/spu/divmodti4.c: Likewise.
14221         * config/spu/divv2df3.c: Likewise.
14222         * config/spu/float_disf.c: Likewise.
14223         * config/spu/float_unsdidf.c: Likewise.
14224         * config/spu/float_unsdisf.c: Likewise.
14225         * config/spu/float_unssidf.c: Likewise.
14226         * config/spu/mfc_multi_tag_release.c: Likewise.
14227         * config/spu/mfc_multi_tag_reserve.c: Likewise.
14228         * config/spu/mfc_tag_release.c: Likewise.
14229         * config/spu/mfc_tag_reserve.c: Likewise.
14230         * config/spu/mfc_tag_table.c: Likewise.
14231         * config/spu/multi3.c: Likewise.
14232         * config/spu/spu_internals.h: Likewise.
14233         * config/spu/spu_intrinsics.h: Likewise.
14234         * config/spu/spu_mfcio.h: Likewise.
14235         * config/spu/vec_types.h: Likewise.
14236         * config/spu/vmx2spu.h: Likewise.
14237         * config/stormy16/stormy16-lib2.c: Likewise.
14238         * config/svr4.h: Likewise.
14239         * config/sync.c: Likewise.
14240         * config/v850/lib1funcs.asm: Likewise.
14241         * config/vxlib-tls.c: Likewise.
14242         * config/vxlib.c: Likewise.
14243         * config/vxworks-dummy.h: Likewise.
14244         * config/xtensa/crti.asm: Likewise.
14245         * config/xtensa/crtn.asm: Likewise.
14246         * config/xtensa/ieee754-df.S: Likewise.
14247         * config/xtensa/ieee754-sf.S: Likewise.
14248         * config/xtensa/lib1funcs.asm: Likewise.
14249         * config/xtensa/lib2funcs.S: Likewise.
14250         * config/xtensa/linux-unwind.h: Likewise.
14251         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14252         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
14253         * coretypes.h: Likewise.
14254         * crtstuff.c: Likewise.
14255         * defaults.h: Likewise.
14256         * dwarf2.h: Likewise.
14257         * emutls.c: Likewise.
14258         * gbl-ctors.h: Likewise.
14259         * gcov-io.h: Likewise.
14260         * ginclude/float.h: Likewise.
14261         * ginclude/iso646.h: Likewise.
14262         * ginclude/stdarg.h: Likewise.
14263         * ginclude/stdbool.h: Likewise.
14264         * ginclude/stddef.h: Likewise.
14265         * ginclude/stdfix.h: Likewise.
14266         * ginclude/stdint-gcc.h: Likewise.
14267         * ginclude/tgmath.h: Likewise.
14268         * gthr-aix.h: Likewise.
14269         * gthr-dce.h: Likewise.
14270         * gthr-gnat.c: Likewise.
14271         * gthr-gnat.h: Likewise.
14272         * gthr-lynx.h: Likewise.
14273         * gthr-mipssde.h: Likewise.
14274         * gthr-nks.h: Likewise.
14275         * gthr-posix.c: Likewise.
14276         * gthr-posix.h: Likewise.
14277         * gthr-posix95.h: Likewise.
14278         * gthr-rtems.h: Likewise.
14279         * gthr-single.h: Likewise.
14280         * gthr-solaris.h: Likewise.
14281         * gthr-tpf.h: Likewise.
14282         * gthr-vxworks.h: Likewise.
14283         * gthr-win32.h: Likewise.
14284         * gthr.h: Likewise.
14285         * libgcc2.c: Likewise.
14286         * libgcc2.h: Likewise.
14287         * libgcov.c: Likewise.
14288         * tsystem.h: Likewise.
14289         * typeclass.h: Likewise.
14290         * unwind-c.c: Likewise.
14291         * unwind-compat.h: Likewise.
14292         * unwind-dw2-fde-compat.c: Likewise.
14293         * unwind-dw2-fde-darwin.c: Likewise.
14294         * unwind-dw2-fde-glibc.c: Likewise.
14295         * unwind-dw2-fde.c: Likewise.
14296         * unwind-dw2-fde.h: Likewise.
14297         * unwind-dw2.c: Likewise.
14298         * unwind-dw2.h: Likewise.
14299         * unwind-generic.h: Likewise.
14300         * unwind-pe.h: Likewise.
14301         * unwind-sjlj.c: Likewise.
14302         * unwind.inc: Likewise.
14303         * config/arm/neon-gen.ml: Change generated copyright header to
14304         refer to version 3 of the GNU General Public License with
14305         version 3.1 of the GCC Runtime Library Exception and to point
14306         readers at the COPYING3 and COPYING3.RUNTIME files and the
14307         FSF's license web page.
14308         * config/arm/arm_neon.h: Regenerate.
14309
14310 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
14311
14312         * config/cris/cris.md: Change copyright header to refer to version
14313         3 of the GNU General Public License.
14314         * doc/install.texi2html: Change copyright header to refer to version
14315         3 of the GNU General Public License and to point readers at the
14316         COPYING3 file and the FSF's license web page.
14317         * config/vax/linux.h: Likewise.
14318
14319 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
14320
14321         * config/i386/i386.md (cmpcc): New.
14322         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
14323         (sync_compare_and_swap_cc*): Delete.
14324
14325         * config/s390/s390.c (s390_compare_emitted): Remove.
14326         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
14327         s390_compare_emitted used to be handled.  Assert that modes match.
14328         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
14329         refer to sync_compare_and_swap_ccsi.
14330         * config/s390/s390.h (s390_compare_emitted): Remove.
14331         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
14332         instead of s390_compare_emitted.
14333         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
14334         instead of s390_compare_emitted.
14335         * config/s390/s390.md (cmpcc): New.
14336         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
14337         CC_REGNUM, do not pretend it's set.
14338         (sync_compare_and_swap_cc*): Delete.
14339         * config/s390/predicates.md (cc_reg_operand): New.
14340
14341         * expr.c (sync_compare_and_swap_cc): Delete.
14342         * optabs.h (sync_compare_and_swap_cc): Delete.
14343         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
14344         is being used with can_compare_p.
14345         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
14346         (find_cc_set): New.
14347         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
14348         look for a MODE_CC set instead.  Use emit_store_flag.
14349         (expand_compare_and_swap_loop): Likewise, with some additional
14350         complication to avoid a force_reg when useless.  Use
14351         emit_cmp_and_jump_insns.
14352         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
14353         * doc/md.texi (sync_compare_and_swap_cc): Merge with
14354         sync_compare_and_swap documentation.
14355
14356 2009-04-09  Jan Hubicka  <jh@suse.cz>
14357
14358         * except.c (find_prev_try): Break out from ....
14359         (duplicate_eh_regions): ... here; properly update prev_try pointers
14360         when duplication part of tree.
14361         (dump_eh_tree): Improve dumping.
14362         (verify_eh_region): New.
14363         (verify_eh_tree): Use it.
14364
14365 2009-04-06  Richard Guenther  <rguenther@suse.de>
14366
14367         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
14368         &ARRAY addresses by adjusting their types and prepending
14369         a conversion.
14370         * tree-cfg.c (verify_gimple_assign_single): Verify that
14371         addresses are correct.
14372
14373 2009-04-09  Richard Guenther  <rguenther@suse.de>
14374
14375         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
14376         indices into an array reference if possible.
14377         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14378         Fold POINTER_PLUS_EXPR statements with invariant address.
14379
14380 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
14381
14382         PR target/39634
14383         * config.gcc (powerpc64-*-linux*): Always build biarch.
14384
14385 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
14386
14387         PR c/39613
14388         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
14389         it and pedwarn if this results in an INTEGER_CST.
14390
14391 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14392
14393         * doc/install.texi: Update minimum GMP version.  Remove obsolete
14394         text in MPFR section.
14395
14396 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
14397
14398         * dwarf2out.c (class_scope_p): New static inline.
14399         (class_or_namespace_scope_p): Use it.
14400         (gen_variable_die): Use DW_TAG_member tag for static data member
14401         declarations instead of DW_TAG_variable.
14402
14403         PR middle-end/39573
14404         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
14405         variables.
14406
14407 2009-04-08  Richard Guenther  <rguenther@suse.de>
14408
14409         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
14410         valueize random data.
14411
14412 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
14413
14414         * config.gcc (aix tm_file):  Add aix-stdint.h.
14415         (aix tm clause use_gcc_stdint):  Set to wrap.
14416         * config/rs6000/aix-stdint.h:  New file.
14417
14418 2009-04-08  Richard Guenther  <rguenther@suse.de>
14419
14420         PR middle-end/36291
14421         * tree-dfa.c (add_referenced_var): Do not recurse into
14422         global initializers.
14423         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
14424         exposed variables.
14425         (fold_const_aggregate_ref): Likewise.
14426
14427 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
14428
14429         * recog.c (ordered_comparison_operator): New.
14430         * gensupport.c (std_preds): Add it.
14431         * doc/md.texi (Machine-Independent Predicates): Document it.
14432
14433 2009-04-08  Jan Hubicka  <jh@suse.cz>
14434
14435         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
14436         * function.h (rtl_eh): Remove exception_handler_label_map.
14437         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
14438         remove_exception_handler_label, for_each_eh_label_1): Remove.
14439         (rtl_remove_unreachable_regions): Remove.
14440         (convert_from_eh_region_ranges): Do not remove unreachable regions.
14441         (find_exception_handler_labels): Don't build the hashtable.
14442         (maybe_remove_eh_handler): Remove.
14443         (for_each_eh_label): Rewrite to walk the tree.
14444         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
14445         * except.h (maybe_remove_eh_handler): Remove.
14446         * passes.c (init_optimization_passes): Schedule second EH cleanup
14447         before out-of-ssa.
14448         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
14449         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
14450
14451 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
14452
14453         * genoutput.c (validate_optab_operands): New.
14454         (gen_insn, gen_expand): Call it.
14455
14456         * genflags.c (gen_insn): Detect misused iterators.
14457         (main): Pass line_no to gen_insn, exit with status 1 on error.
14458
14459         * genextract.c (line_no): Make global.
14460         (VEC_safe_set_locstr): Change assertion to error message.
14461         (main): Exit with status 1 on error.
14462
14463 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
14464
14465         PR c/39614
14466         PR c/39673
14467         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
14468         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
14469         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
14470         * c-convert.c (convert): Do not call fold on results of conversion
14471         functions when the result is a C_MAYBE_CONST_EXPR.
14472         * c-parser.c (c_parser_postfix_expression): Do not fold condition
14473         of __builtin_choose_expr.
14474         * c-typeck.c (remove_c_maybe_const_expr): New.
14475         (build_unary_op, build_conditional_expr, build_compound_expr,
14476         build_binary_op, c_objc_common_truthvalue_conversion): Call
14477         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
14478         integer operands.
14479
14480 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
14481
14482         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
14483         CODE to produce a new one. Add a prototype to use fold_convert_const
14484
14485 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
14486
14487         PR bootstrap/39660
14488         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
14489         mix declarations and code.
14490
14491 2009-04-08  Ben Elliston  <bje@au.ibm.com>
14492
14493         * gcc.c: Replace `CC' with `GCC' throughout.
14494
14495 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
14496
14497         * doc/invoke.texi: Document Atom support.
14498
14499 2009-04-07  Jason Merrill  <jason@redhat.com>
14500
14501         PR c++/25185
14502         * c-common.h, c-common.c: Add flag_pretty_templates.
14503         * c-opts.c (c_common_handle_option): Set it.
14504         * c.opt: Add -fno-pretty-templates.
14505         * doc/invoke.texi (C++ Dialect Options): Likewise.
14506
14507 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
14508
14509         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
14510         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
14511         (ia64_expand_builtin): Likewise.
14512
14513 2009-04-07  Martin Jambor  <mjambor@suse.cz>
14514
14515         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
14516         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
14517         ADDR_EXPRS are include too.
14518
14519 2009-04-07  Richard Guenther  <rguenther@suse.de>
14520
14521         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
14522         decls are only used if passes as parameters or if they are
14523         local statics and the call is not to a builtin.
14524         (call_may_clobber_ref_p_1): Likewise.
14525
14526 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14527
14528         * expr.c (do_store_flag): Remove last argument.  Simplify code
14529         to avoid duplication of tests already done by can_compare_p.
14530         (expand_expr_real_1): Adjust caller.
14531
14532 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14533
14534         * optabs.c (can_compare_p): Test the predicate of a
14535         cbranch and cstore pattern.
14536
14537 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14538
14539         * expr.c (convert_move): Use emit_store_flag instead of
14540         "emulating" it.
14541
14542 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14543
14544         * config/i386/i386.c (ix86_compare_emitted): Remove.
14545         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
14546         ix86_compare_op0 like ix86_compare_emitted used to be handled.
14547         * config/i386/i386.h (ix86_compare_emitted): Remove.
14548         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
14549         instead of ix86_compare_emitted.
14550         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
14551
14552 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
14553
14554         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
14555         Add t-sysroot-suffix to tmake_file.
14556         * config/print-sysroot-suffix.sh: New file.
14557         * config/t-sysroot-suffix: New file.
14558
14559 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14560
14561         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
14562         as the latter produces a warning when the target does not support
14563         infinity.
14564
14565 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14566
14567         * dfp.c: Replace type punning assignments with memcpy throughout.
14568         * Makefile.in (dfp.o-warn): Remove.
14569
14570 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
14571
14572         PR target/39634
14573         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
14574         Include soft-fp/t-softfp after rs6000/t-linux64.
14575
14576 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14577
14578         * stor-layout.c (set_sizetype): Use the full precision of their
14579         machine mode for bitsize types.
14580
14581 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14582
14583         * config/i386/i386.md: Revert 2 accidental checkins.
14584
14585 2009-04-06  Joey Ye  <joey.ye@intel.com>
14586             Xuepeng Guo  <xuepeng.guo@intel.com>
14587             H.J. Lu  <hongjiu.lu@intel.com>
14588
14589         Atom pipeline model, tuning and insn selection.
14590         * config.gcc (atom): Add atom config options and target.
14591
14592         * config/i386/atom.md: New.
14593
14594         * config/i386/i386.c (atom_cost): New cost.
14595         (m_ATOM): New macro flag.
14596         (initial_ix86_tune_features): Set m_ATOM.
14597         (x86_accumulate_outgoing_args): Likewise.
14598         (x86_arch_always_fancy_math_387): Likewise.
14599         (processor_target): Add Atom cost.
14600         (cpu_names): Add Atom cpu name.
14601         (override_options): Set Atom ISA.
14602         (ix86_issue_rate): New case PROCESSOR_ATOM.
14603         (ix86_adjust_cost): Likewise.
14604
14605         * config/i386/i386.h (TARGET_ATOM): New target macro.
14606         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
14607         (TARGET_OPT_AGU): New target option.
14608         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
14609         (processor_type): Add PROCESSOR_ATOM.
14610
14611         * config/i386/i386.md (cpu): Add new value "atom".
14612         (use_carry, movu): New attr.
14613         (atom.md): Include atom.md.
14614         (adddi3_carry_rex64): Set attr "use_carry".
14615         (addqi3_carry): Likewise.
14616         (addhi3_carry): Likewise.
14617         (addsi3_carry): Likewise.
14618         (*addsi3_carry_zext): Likewise.
14619         (subdi3_carry_rex64): Likewise.
14620         (subqi3_carry): Likewise.
14621         (subhi3_carry): Likewise.
14622         (subsi3_carry): Likewise.
14623         (x86_movdicc_0_m1_rex64): Likewise.
14624         (*x86_movdicc_0_m1_se): Likewise.
14625         (x86_movsicc_0_m1): Likewise.
14626         (*x86_movsicc_0_m1_se): Likewise.
14627         (*adddi_1_rex64): Emit add insn as much as possible.
14628         (*addsi_1): Likewise.
14629         (return_internal): Set atom_unit.
14630         (return_internal_long): Likewise.
14631         (return_pop_internal): Likewise.
14632         (*rcpsf2_sse): Set atom_sse_attr attr.
14633         (*qrt<mode>2_sse): Likewise.
14634         (*prefetch_sse): Likewise.
14635
14636         * config/i386/i386-c.c (ix86_target_macros_internal): New case
14637         PROCESSOR_ATOM.
14638         (ix86_target_macros_internal): Likewise.
14639
14640         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
14641         (*prefetch_sse_rex): Likewise.
14642         (sse_rcpv4sf2): Likewise.
14643         (sse_vmrcpv4sf2): Likewise.
14644         (sse_sqrtv4sf2): Likewise.
14645         (<sse>_vmsqrt<mode>2): Likewise.
14646         (sse_ldmxcsr): Likewise.
14647         (sse_stmxcsr): Likewise.
14648         (*sse_sfence): Likewise.
14649         (sse2_clflush): Likewise.
14650         (*sse2_mfence): Likewise.
14651         (*sse2_lfence): Likewise.
14652         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
14653         (<sse>_movup<ssemodesuffixf2c>): Likewise.
14654         (avx_movdqu<avxmodesuffix>): Likewise.
14655         (avx_lddqu<avxmodesuffix>): Likewise.
14656         (sse2_movntv2di): Change attr "type" to "ssemov".
14657         (sse2_movntsi): Likewise.
14658         (rsqrtv8sf2): Change attr "type" to "sseadd".
14659         (sse3_addsubv2df3): Set attr "atom_unit".
14660         (sse3_h<plusminus_insn>v4sf3): Likewise.
14661         (*sse2_pmaddwd): Likewise.
14662         (*vec_extractv2di_1_rex64): Likewise.
14663         (*vec_extractv2di_1_avx): Likewise.
14664         (sse2_psadbw): Likewise.
14665         (ssse3_phaddwv8hi3): Likewise.
14666         (ssse3_phaddwv4hi3): Likewise.
14667         (ssse3_phadddv4si3): Likewise.
14668         (ssse3_phadddv2si3): Likewise.
14669         (ssse3_phaddswv8hi3): Likewise.
14670         (ssse3_phaddswv4hi3): Likewise.
14671         (ssse3_phsubwv8hi3): Likewise.
14672         (ssse3_phsubwv4hi3): Likewise.
14673         (ssse3_phsubdv4si3): Likewise.
14674         (ssse3_phsubdv2si3): Likewise.
14675         (ssse3_phsubswv8hi3): Likewise.
14676         (ssse3_phsubswv4hi3): Likewise.
14677         (ssse3_pmaddubsw128): Likewise.
14678         (sse3_pmaddubsw: Likewise.
14679         (ssse3_palignrti): Likewise.
14680         (ssse3_palignrdi): Likewise.
14681
14682 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
14683
14684         * doc/install.texi (Specific): Fix two cross-references to MinGW.
14685
14686 2009-04-06  Richard Guenther  <rguenther@suse.de>
14687
14688         PR tree-optimization/28868
14689         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
14690         of which PHI results we inserted.
14691         (insert_into_preds_of_block): Record inserted PHIs.
14692         (eliminate): Eliminate redundant PHI nodes.
14693         (init_pre): Init inserted_phi_names.
14694
14695 2009-04-06  Richard Guenther  <rguenther@suse.de>
14696
14697         PR tree-optimization/39643
14698         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
14699         IMAGPART_EXPRs of complex constants.
14700         (execute_fold_all_builtins): If we folded a call queue
14701         TODO_update_address_taken.
14702
14703 2009-04-06  Jan Hubicka  <jh@suse.cz>
14704
14705         PR middle-end/39659
14706         * except.c (remove_unreachable_regions): Propagate may_contain_throw
14707         flag.
14708
14709 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
14710
14711         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
14712         delay slot.
14713         (ic_invalidate_array): Likewise.
14714
14715 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
14716
14717         * calls.c (emit_library_call_value_1): Fix a problem with parameter
14718         alignment for library calls.
14719
14720 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
14721
14722         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
14723         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
14724         * config/i386/mingw-stdint.h:  New file.
14725
14726 2009-04-05  Richard Guenther  <rguenther@suse.de>
14727
14728         PR tree-optimization/39648
14729         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
14730         our &A vs. &A[0] IL deficiencies.
14731
14732 2009-04-04  Jan Hubicka  <jh@suse.cz>
14733
14734         * except.c (sjlj_find_directly_reachable_regions): Be ready for
14735         removed toplevel regions.
14736         (sjlj_mark_call_sites): Likewise.
14737
14738 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
14739
14740         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
14741         (cygwin tm clause use_gcc_stdint):  Set to wrap.
14742         * config/i386/cygwin-stdint.h:  New file.
14743
14744 2009-04-04  Richard Guenther  <rguenther@suse.de>
14745
14746         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
14747         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
14748         single-argument PHIs if we are in loop-closed SSA form.
14749         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
14750         for the pre-condition.
14751         (slpeel_tree_peel_loop_to_edge): Likewise.
14752         (vect_build_loop_niters): Take an optional sequence to append stmts.
14753         (vect_generate_tmps_on_preheader): Likewise.
14754         (vect_do_peeling_for_loop_bound): Take extra guards for the
14755         pre-condition.
14756         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
14757         the cost model check.
14758         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
14759         guards if we are going to peel.  Do not apply versioning in that case.
14760         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
14761         (vect_do_peeling_for_loop_bound): Likewise.
14762         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
14763         loop bound only record extra pre-conditions, do not apply loop
14764         versioning.
14765
14766 2009-04-04  Richard Guenther  <rguenther@suse.de>
14767
14768         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
14769         renaming code.
14770
14771 2009-04-04  Jan Hubicka  <jh@suse.cz>
14772
14773         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14774         last_basic_block for size of bb->index indexed array.
14775         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
14776         compute_out, link_btr_uses, build_btr_def_use_webs,
14777         build_btr_def_use_webs, migrate_btr_defs): Likewise.
14778
14779 2009-04-04  Jan Hubicka  <jh@suse.cz>
14780
14781         * except.c (remove_eh_handler_and_replace): Break out from ...
14782         (remove_eh_handler): ... here.
14783         (bring_to_root): New function.
14784         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
14785         handled ones, bring others to root of tree.
14786
14787 2009-04-04  Jan Hubicka  <jh@suse.cz>
14788
14789         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
14790         (all_phis_safe_to_merge): New function.
14791         (update_info): New structure.
14792         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
14793         (cleanup_empty_eh): Update SSA if possible.
14794
14795 2009-04-04  Richard Guenther  <rguenther@suse.de>
14796
14797         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
14798         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
14799         (append_vuse): Likewise.
14800
14801 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
14802
14803         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
14804         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
14805         instead of REG_UNSAVED for DW_CFA_undefined.
14806         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
14807         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
14808         outermost frame.
14809
14810 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
14811
14812         PR target/39501
14813         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
14814         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
14815         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
14816
14817 2009-04-04  Richard Guenther  <rguenther@suse.de>
14818
14819         PR tree-optimization/8781
14820         PR tree-optimization/37892
14821         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
14822         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
14823         (valueize_refs): Call it for *& valueizations.
14824         (shared_reference_ops_from_ref): Rename to ...
14825         (valueize_shared_reference_ops_from_ref): ... this and valueize.
14826         (shared_reference_ops_from_call): Rename to ...
14827         (valueize_shared_reference_ops_from_call): ... this and valueize.
14828         (vn_reference_lookup): Update.
14829         (visit_reference_op_call): Likewise.
14830         * tree-ssa-pre.c (phi_translate_1): Fold *&.
14831         (eliminate): Value-replace the call address in call statements.
14832
14833 2009-04-04  Richard Guenther  <rguenther@suse.de>
14834
14835         PR tree-optimization/39636
14836         * tree-ssa-forwprop.c
14837         (forward_propagate_addr_into_variable_array_index): Check for
14838         GIMPLE_ASSIGN before accessing the rhs code.
14839
14840 2009-04-03  Jason Merrill  <jason@redhat.com>
14841
14842         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
14843
14844 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
14845
14846         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
14847         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
14848         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
14849         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
14850         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
14851         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
14852         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
14853         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
14854         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
14855         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
14856         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
14857         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
14858         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
14859         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
14860         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
14861         Use fr_reg_or_fp01_operand instead of fr_register_operand
14862
14863         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
14864         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
14865         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
14866
14867 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
14868
14869         PR rtl-optimization/39607
14870         PR rtl-optimization/39631
14871
14872         Revert:
14873
14874         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14875         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
14876         instead of DF_LR_OUT.
14877         * ira-lives.c (process_bb_node_lives): Ditto.
14878         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
14879         instead of DF_LR_{OUT,IN}.
14880         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
14881         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
14882
14883 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
14884
14885         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
14886         (execute_lower_omp): Always run but take the short way out if -fopenmp
14887         is not given.
14888         (gate_lower_omp): Remove, forcing the pass manager to always run the
14889         pass and always set PROP_gimple_lomp.
14890         (pass_lower_omp): Remove gate function.
14891         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
14892         PROP_trees.  Instead, require it.
14893         * ipa-cp.c (pass_ipa_cp): Likewise.
14894         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
14895         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
14896         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
14897         and PROP_gimple_leh.
14898
14899 2009-04-03  Richard Guenther  <rguenther@suse.de>
14900
14901         PR middle-end/13146
14902         PR tree-optimization/23940
14903         PR tree-optimization/33237
14904         PR middle-end/33974
14905         PR middle-end/34093
14906         PR tree-optimization/36201
14907         PR tree-optimization/36230
14908         PR tree-optimization/38049
14909         PR tree-optimization/38207
14910         PR tree-optimization/38230
14911         PR tree-optimization/38301
14912         PR tree-optimization/38585
14913         PR middle-end/38895
14914         PR tree-optimization/38985
14915         PR tree-optimization/39299
14916         * tree-ssa-structalias.h: Remove.
14917         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
14918         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
14919         (struct vuse_element_d): Remove.
14920         (struct vuse_vec_d): Likewise.
14921         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
14922         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
14923         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
14924         VUSE_ELEMENT_VAR): Likewise.
14925         (struct voptype_d): Likewise.
14926         (NUM_VOP_FREE_BUCKETS): Likewise.
14927         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
14928         (struct stmt_operands_d): Remove.
14929         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
14930         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
14931         VDEF_NUM, VDEF_VECT): Likewise.
14932         (copy_virtual_operands): Remove.
14933         (operand_build_cmp): Likewise.
14934         (create_ssa_artificial_load_stmt): Likewise.
14935         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
14936         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
14937         vuse_index and mayuse_index members.  Pack and move done and iter_type
14938         members to the front.
14939         (SSA_OP_VMAYUSE): Remove.
14940         (SSA_OP_VIRTUAL_USES): Adjust.
14941         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
14942         (unlink_stmt_vdef): Declare.
14943         (add_to_addressable_set): Remove.
14944         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
14945         (vrp_visit_stmt): Likewise.
14946         * doc/tree-ssa.texi (Alias analysis): Update.
14947         * doc/invoke.texi (max-aliased-vops): Remove docs.
14948         (avg-aliased-vops): Likewise.
14949         * tree-into-ssa.c (syms_to_rename): Remove.
14950         (need_to_update_vops_p): Likewise.
14951         (need_to_initialize_update_ssa_p): Rename to ...
14952         (update_ssa_initialized_fn): ... this.  Track function we are
14953         initialized for.
14954         (symbol_marked_for_renaming): Simplify.
14955         (add_new_name_mapping): Do not set need_to_update_vops_p.
14956         (dump_currdefs): Use SYMS_TO_RENAME.
14957         (rewrite_update_stmt): Always walk all uses/defs.
14958         (dump_update_ssa): Adjust.
14959         (init_update_ssa): Take function argument.  Track what we are
14960         initialized for.
14961         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
14962         (create_new_def_for): Initialize for cfun, assert we are initialized
14963         for cfun.
14964         (mark_sym_for_renaming): Simplify.
14965         (mark_set_for_renaming): Do not initialize update-ssa.
14966         (need_ssa_update_p): Simplify.  Take function argument.
14967         (name_mappings_registered_p): Assert we ask for the correct function.
14968         (name_registered_for_update_p): Likewise.
14969         (ssa_names_to_replace): Likewise.
14970         (release_ssa_name_after_update_ssa): Likewise.
14971         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
14972         (dump_decl_set): Do not print a newline.
14973         (debug_decl_set): Do it here.
14974         (dump_update_ssa): And here.
14975         * tree-ssa-loop-im.c (move_computations): Adjust.
14976         (movement_possibility): Likewise.
14977         (determine_max_movement): Likewise.
14978         (gather_mem_refs_stmt): Likewise.
14979         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
14980         or NAME_MEMORY_TAG.
14981         * tree-complex.c (update_all_vops): Remove.
14982         (expand_complex_move): Adjust.
14983         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
14984         Simplify test for memory referencing statement.  Exclude
14985         non-invariant ADDR_EXPRs.
14986         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
14987         * tree-loop-distribution.c (generate_memset_zero): Adjust.
14988         (rdg_flag_uses): Likewise.
14989         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
14990         related code.
14991         (tree_optimize_tail_calls_1): Also split the
14992         edge from the entry block if we have degenerate PHI nodes in
14993         the first basic block.
14994         * tree.c (init_ttree): Remove memory-tag related code.
14995         (tree_code_size): Likewise.
14996         (tree_node_structure): Likewise.
14997         (build7_stat): Re-write to be build6_stat.
14998         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
14999         (SSA_VAR_P): Adjust.
15000         (struct tree_memory_tag): Remove.
15001         (struct tree_memory_partition_tag): Likewise.
15002         (union tree_node): Adjust.
15003         (build7): Re-write to be build6.
15004         * tree-pass.h (pass_reset_cc_flags): Remove.
15005         (TODO_update_address_taken): New flag.
15006         (pass_simple_dse): Remove.
15007         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
15008         * params.h (MAX_ALIASED_VOPS): Remove.
15009         (AVG_ALIASED_VOPS): Likewise.
15010         * omp-low.c (expand_omp_taskreg): Update SSA form.
15011         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
15012         aliases the lhs in a copy stmt.
15013         * tree-ssa-dse.c (struct address_walk_data): Remove.
15014         (memory_ssa_name_same): Likewise.
15015         (memory_address_same): Likewise.
15016         (get_kill_of_stmt_lhs): Likewise.
15017         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
15018         unused stores.  Look through PHI nodes into post-dominated regions.
15019         (dse_optimize_stmt): Simplify.  Properly remove stores.
15020         (tree_ssa_dse): Compute dominators.
15021         (execute_simple_dse): Remove.
15022         (pass_simple_dse): Likewise.
15023         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
15024         gimple_loaded_syms and gimple_stored_syms computation.
15025         * toplev.c (dump_memory_report): Dump alias and pta stats.
15026         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
15027         (vn_reference_eq): Likewise.
15028         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
15029         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
15030         valueize_vuses): Remove.
15031         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
15032         (get_def_ref_stmt_vuse): ... this.
15033         (vn_reference_lookup_2): New function.
15034         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
15035         walking equivalent vuses.  Simplify.
15036         (vn_reference_lookup): Likewise.
15037         (vn_reference_insert): Likewise.
15038         (vn_reference_insert_pieces): Likewise.
15039         (visit_reference_op_call): Simplify.
15040         (visit_reference_op_load): Likewise.
15041         (visit_reference_op_store): Likewise.
15042         (init_scc_vn): Remove shared_lookup_vuses initialization.
15043         (free_scc_vn): Remove shared_lookup_vuses freeing.
15044         (sort_vuses, sort_vuses_heap): Remove.
15045         (get_ref_from_reference_ops): Export.
15046         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
15047         vector with single vuse pointer.
15048         (vn_reference_lookup_pieces, vn_reference_lookup,
15049         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
15050         (shared_vuses_from_stmt): Remove.
15051         (get_ref_from_reference_ops): Declare.
15052         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
15053         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15054         memory-tag related code.
15055         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
15056         (likely_value): Add comment, skip static-chain of call statements.
15057         (surely_varying_stmt_p): Adjust.
15058         (gimplify_and_update_call_from_tree): Likewise.
15059         (execute_fold_all_builtins): Do not rebuild alias info.
15060         (gimplify_and_update_call_from_tree): Properly update VOPs.
15061         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
15062         (copy_ref_info): Remove memory-tag related code.
15063         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
15064         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
15065         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
15066         computation.
15067         * tree-ssa-dom.c (gimple_p): Remove typedef.
15068         (eliminate_redundant_computations): Adjust.
15069         (record_equivalences_from_stmt): Likewise.
15070         (avail_expr_hash): Likewise.
15071         (avail_expr_eq): Likewise.
15072         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
15073         (stmt_makes_single_load): Likewise.
15074         (stmt_makes_single_store): Likewise.
15075         * tree-ssa-alias.c: Rewrite completely.
15076         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
15077         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
15078         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
15079         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
15080         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
15081         Remove public functions.
15082         (pass_reset_cc_flags): Remove.
15083         (pass_build_alias): Move ...
15084         * tree-ssa-structalias.c (pass_build_alias): ... here.
15085         * tree-ssa-alias.c (may_be_aliased): Move ...
15086         * tree-flow-inline.h (may_be_aliased): ... here.
15087         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
15088         count_uses_and_derefs): Move ...
15089         * gimple.c: ... here.
15090         * gimple.h (count_uses_and_derefs): Declare.
15091         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
15092         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
15093         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
15094         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
15095         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
15096         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
15097         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
15098         New functions.
15099         * tree-dfa.c (refs_may_alias_p): Move ...
15100         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
15101         * tree-ssa-alias.h: New file.
15102         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
15103         (statement_sink_location): Likewise.
15104         * opts.c (decode_options): Do not adjust max-aliased-vops or
15105         avg-aliased-vops values.
15106         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
15107         (TV_CALL_CLOBBER): Likewise.
15108         (TV_FLOW_SENSITIVE): Likewise.
15109         (TV_FLOW_INSENSITIVE): Likewise.
15110         (TV_MEMORY_PARTITIONING): Likewise.
15111         (TV_ALIAS_STMT_WALK): New timevar.
15112         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
15113         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
15114         (get_address_description): Remove memory-tag related code.
15115         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
15116         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
15117         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
15118         and immediate uses in statements.  Document.
15119         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
15120         (dump_symbols): Remove.
15121         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
15122         * alias.c (get_deref_alias_set): New function split out from ...
15123         (get_alias_set): ... here.
15124         * alias.h (get_deref_alias_set): Declare.
15125         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
15126         type parameter.  Remove restrict pointer handling.  Create a
15127         ref-all pointer in case type-based alias sets do not conflict.
15128         (vect_analyze_data_refs): Remove SMT related code.
15129         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
15130         (vectorizable_load): Likewise.
15131         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
15132         (DR_SYMBOL_TAG, DR_VOPS): Remove.
15133         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
15134         Ignore vops and SMTs.
15135         (dr_analyze_alias): Likewise..
15136         (free_data_ref): Likewise.
15137         (create_data_ref): Likewise.
15138         (analyze_all_data_dependences): Likewise.
15139         (get_references_in_stmt): Adjust.
15140         * tree-flow-inline.h (gimple_aliases_computed_p,
15141         gimple_addressable_vars, gimple_call_clobbered_vars,
15142         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
15143         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
15144         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
15145         gimple_mem_ref_stats): Remove.
15146         (gimple_vop): New function.
15147         (op_iter_next_use): Remove vuses and mayuses cases.
15148         (op_iter_next_def): Remove vdefs case.
15149         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
15150         (clear_and_done_ssa_iter): Do not set removed fields.
15151         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
15152         Assert we are not iterating over vuses or vdefs if not also
15153         iterating over uses or defs.
15154         (op_iter_init_use): Likewise.
15155         (op_iter_init_def): Likewise.
15156         (op_iter_next_vdef): Remove.
15157         (op_iter_next_mustdef): Likewise.
15158         (op_iter_init_vdef): Likewise.
15159         (compare_ssa_operands_equal): Likewise.
15160         (link_use_stmts_after): Handle vuse operand.
15161         (is_call_used): Use is_call_clobbered.
15162         (is_call_clobbered): Global variables are always call clobbered,
15163         query the call-clobbers bitmap.
15164         (mark_call_clobbered): Ignore global variables.
15165         (clear_call_clobbered): Likewise.
15166         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
15167         virtual operands sanity check.
15168         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
15169         Remove.
15170         (TARGET_MEM_REF): Remove TMR_TAG operand.
15171         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
15172         Remove call-clobber related code.
15173         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
15174         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
15175         partitions or escape reason.
15176         (get_single_def_stmt, get_single_def_stmt_from_phi,
15177         get_single_def_stmt_with_phi): Remove.
15178         (dump_referenced_vars): Tidy.
15179         (get_ref_base_and_extent): Allow bare decls.
15180         (collect_dfa_stats): Adjust.
15181         * graphite.c (rename_variables_in_stmt): Adjust.
15182         (graphite_copy_stmts_from_block): Likewise.
15183         (translate_clast): Likewise.
15184         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
15185         (EXPR_DIES): New.
15186         (translate_vuse_through_block): Use the oracle.
15187         (phi_translate_1): Adjust.
15188         (value_dies_in_block_x): Use the oracle.  Cache the outcome
15189         in EXPR_DIES.
15190         (valid_in_sets): Check if the VUSE for
15191         a REFERENCE is available.
15192         (eliminate): Do not remove stmts during elimination,
15193         instead queue and remove them afterwards.
15194         (do_pre): Do not rebuild alias info.
15195         (pass_pre): Run TODO_rebuild_alias before PRE.
15196         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
15197         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
15198         (mark_all_v_defs_stmt): Remove.
15199         (mark_all_v_defs_seq): Adjust.
15200         (sra_replace): Likewise.
15201         (scalarize_use): Likewise.
15202         (scalarize_copy): Likewise.
15203         (scalarize_init): Likewise.
15204         (scalarize_ldst): Likewise.
15205         (todoflags): Remove.
15206         (tree_sra): Do not rebuild alias info.
15207         (tree_sra_early): Adjust.
15208         (pass_sra): Run TODO_update_address_taken before SRA.
15209         * tree-predcom.c (set_alias_info): Remove.
15210         (prepare_initializers_chain): Do not call it.
15211         (mark_virtual_ops_for_renaming): Adjust.
15212         (mark_virtual_ops_for_renaming_list): Remove.
15213         (initialize_root_vars): Adjust.
15214         (initialize_root_vars_lm): Likewise.
15215         (prepare_initializers_chain): Likewise.
15216         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
15217         (may_propagate_copy_into_stmt): Likewise.
15218         (merge_alias_info): Do nothing for now.
15219         (propagate_tree_value_into_stmt): Adjust.
15220         (stmt_may_generate_copy): Likewise.
15221         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
15222         not mark symbols for renaming.
15223         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
15224         with the same statement, make sure to update the new pointed-to one.
15225         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
15226         call statements, do not mark symbols for renaming.
15227         (mark_operand_necessary): Dump something.
15228         (ref_may_be_aliased): New function.
15229         (mark_aliased_reaching_defs_necessary_1): New helper function.
15230         (mark_aliased_reaching_defs_necessary): Likewise.
15231         (mark_all_reaching_defs_necessary_1): Likewise.
15232         (mark_all_reaching_defs_necessary): Likewise.
15233         (propagate_necessity): Do not process virtual PHIs.  For
15234         non-aliased loads mark all reaching definitions as necessary.
15235         For aliased loads and stores mark the immediate dominating
15236         aliased clobbers as necessary.
15237         (visited): New global static.
15238         (perform_tree_ssa_dce): Free visited bitmap after propagating
15239         necessity.
15240         (remove_dead_phis): Perform simple dead virtual PHI removal.
15241         (remove_dead_stmt): Properly unlink virtual operands when
15242         removing stores.
15243         (eliminate_unnecessary_stmts): Schedule PHI removal after
15244         stmt removal.
15245         * tree-ssa-ter.c (is_replaceable_p): Adjust.
15246         (process_replaceable): Likewise.
15247         (find_replaceable_in_bb): Likewise.
15248         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
15249         based on the single gimple vop.
15250         (verify_flow_insensitive_alias_info): Remove.
15251         (verify_flow_sensitive_alias_info): Likewise.
15252         (verify_call_clobbering): Likewise.
15253         (verify_memory_partitions): Likewise.
15254         (verify_alias_info): Likewise.
15255         (verify_ssa): Adjust..
15256         (execute_update_addresses_taken): Export.  Update SSA
15257         manually.  Optimize only when optimizing.  Use a local bitmap.
15258         (pass_update_address_taken): Remove TODO_update_ssa, add
15259         TODO_dump_func.
15260         (pass_update_address_taken): Just use TODO_update_address_taken.
15261         (init_tree_ssa): Do not initialize addressable_vars.
15262         (verify_ssa): Verify new VUSE / VDEF properties.
15263         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
15264         Do not call verify_alias_info.
15265         (delete_tree_ssa): Clear the VUSE, VDEF operands.
15266         Do not free the loaded and stored syms bitmaps.  Reset the escaped
15267         and callused solutions.  Do not free addressable_vars.
15268         Remove memory-tag related code.
15269         (warn_uninitialized_var): Aliases are always available.
15270         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
15271         * lambda-code.c (can_put_in_inner_loop): Adjust.
15272         (can_put_after_inner_loop): Likewise.
15273         (perfect_nestify): Likewise.
15274         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
15275         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
15276         (vectorizable_conversion): Do not mark symbols for renaming.
15277         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
15278         (expand_call_inline): Unlink the calls virtual operands before
15279         replacing it.
15280         (tree_function_versioning): Do not call update_ssa if we are not
15281         updating clones.  Simplify.
15282         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
15283         (propagate_with_phi): Likewise..
15284         * tree-outof-ssa.c (create_temp): Remove memory tag and call
15285         clobber code.  Assert we are not aliased or global.
15286         * tree-flow.h: Include tree-ssa-alias.h
15287         (enum escape_type): Remove.
15288         (struct mem_sym_stats_d): Likewise.
15289         (struct mem_ref_stats_d): Likewise.
15290         (struct gimple_df): Add vop member.  Remove global_var,
15291         call_clobbered_vars, call_used_vars, addressable_vars,
15292         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
15293         escaped and callused members.
15294         (struct ptr_info_def): Remove all members, add points-to solution
15295         member pt.
15296         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
15297         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
15298         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
15299         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
15300         (tree-ssa-alias.o): Likewise.
15301         (toplev.o): Add tree-ssa-alias.h
15302         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
15303         * gimple.c (gimple_set_bb): Fix off-by-one error.
15304         (is_gimple_reg): Do not handle memory tags.
15305         (gimple_copy): Also copy virtual operands.
15306         Delay updating the statement.  Do not reset loaded and stored syms.
15307         (gimple_set_stored_syms): Remove.
15308         (gimple_set_loaded_syms): Likewise.
15309         (gimple_call_copy_skip_args): Copy the virtual operands
15310         and mark the new statement modified.
15311         * tree-ssa-structalias.c (may_alias_p): Remove.
15312         (set_uids_in_ptset): Take the alias set to prune with as
15313         parameter.  Fold in the alias test of may_alias_p.
15314         (compute_points_to_sets): Compute whether a ptr is dereferenced
15315         in a local sbitmap.
15316         (process_constraint): Deal with &ANYTHING on the lhs, reject all
15317         other ADDRESSOF constraints on the lhs.
15318         (get_constraint_for_component_ref): Assert that we don't get
15319         ADDRESSOF constraints from the base of the reference.
15320         Properly generate UNKNOWN_OFFSET for DEREF if needed.
15321         (struct variable_info): Remove collapsed_to member.
15322         (get_varinfo_fc): Remove.
15323         (new_var_info): Do not set collapsed_to.
15324         (dump_constraint): Do not follow cycles.
15325         (dump_constraint_graph): Likewise.
15326         (build_pred_graph): Likewise.
15327         (build_succ_graph): Likewise.
15328         (rewrite_constraints): Likewise.
15329         (do_simple_structure_copy): Remove.
15330         (do_rhs_deref_structure_copy): Remove.
15331         (do_lhs_deref_structure_copy): Remove.
15332         (collapse_rest_of_var): Remove.
15333         (do_structure_copy): Re-implement.
15334         (pta_stats): New global variable.
15335         (dump_pta_stats): New function.
15336         (struct constraint_expr): Make offset signed.
15337         (UNKNOWN_OFFSET): Define special value.
15338         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
15339         (solution_set_expand): New helper function split out from ...
15340         (do_sd_constraint): ... here.
15341         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
15342         (do_ds_constraint): Likewise.
15343         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
15344         and CALLUSED = *CALLUSED.
15345         (set_union_with_increment): Make inc argument signed.
15346         (type_safe): Remove.
15347         (get_constraint_for_ptr_offset): Handle unknown and negative
15348         constant offsets.
15349         (first_vi_for_offset): Handle offsets before start.  Bail
15350         out early for offsets beyond the variable extent.
15351         (first_or_preceding_vi_for_offset): New function.
15352         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
15353         Together with ESCAPED = *ESCAPED this properly computes reachability.
15354         (find_what_var_points_to): New function.
15355         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
15356         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
15357         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
15358         pt_solutions_intersect): New functions.
15359         (compute_call_used_vars): Remove.
15360         (compute_may_aliases): New main entry into PTA computation.
15361         * gimple.h (gimple_p): New typedef.
15362         (struct gimple_statement_base): Remove references_memory_p.
15363         (struct gimple_statement_with_memory_ops_base): Remove
15364         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
15365         members.
15366         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
15367         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
15368         gimple_set_references_memory): Remove.
15369         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
15370         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
15371         New functions.
15372         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
15373         (verify_expr): Allow RESULT_DECL.
15374         (gimple_duplicate_bb): Do not copy virtual operands.
15375         (gimple_duplicate_sese_region): Adjust.
15376         (gimple_duplicate_sese_tail): Likewise.
15377         (mark_virtual_ops_in_region): Remove.
15378         (move_sese_region_to_fn): Do not call it.
15379         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
15380         and pass_simple_dse.
15381         (execute_function_todo): Handle TODO_update_address_taken,
15382         call execute_update_addresses_taken for TODO_rebuild_alias.
15383         (execute_todo): Adjust.
15384         (execute_one_pass): Init dump files early.
15385         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
15386         call-clobbered.
15387         (create_general_new_stmt): Clear vops.
15388         * tree-ssa-reassoc.c (get_rank): Adjust.
15389         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
15390         symbols for renaming.
15391         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
15392         (PARAM_AVG_ALIASED_VOPS): Likewise.
15393         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
15394         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
15395         * tree-ssa-operands.c: Simplify for new virtual operand representation.
15396         (operand_build_cmp, copy_virtual_operands,
15397         create_ssa_artificial_load_stmt, add_to_addressable_set,
15398         gimple_add_to_addresses_taken): Remove public functions.
15399         (unlink_stmt_vdef): New function.
15400
15401 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
15402
15403         * config.gcc (powerpc-*-linux*): Merge variants.
15404
15405 2009-04-02  Chao-ying Fu  <fu@mips.com>
15406             James Grosbach  <james.grosbach@microchip.com>
15407
15408         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
15409         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
15410         cop0_sp_offset.
15411         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
15412         keep_interrupts_masked_p, use_debug_exception_return_p.
15413         (mips_attribute_table): Add interrupt, use_shadow_register_set,
15414         keep_interrupts_masked, use_debug_exception_return.
15415         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
15416         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
15417         New functions.
15418         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
15419         (mips_print_operand): Process COP0 registers to print $0 .. $31
15420         correctly for GAS to process.
15421         (mips_interrupt_extra_call_saved_reg_p): New function.
15422         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
15423         extra registers.
15424         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
15425         (mips_compute_frame_info): Add supports for interrupt context that
15426         includes doubleword accumulators and COP0 registers.
15427         (mips_for_each_saved_acc): New function.
15428         (mips_for_each_saved_gpr_and_fpr): Change the function name from
15429         mips_for_each_saved_reg.
15430         (mips_save_reg): Save accumulators.
15431         (mips_kernel_reg_p): A new for_each_rtx callback.
15432         (mips_expand_prologue): Support interrupt handlers.
15433         (mips_restore_reg): Restore accumulators.
15434         (mips_expand_epilogue): Support interrupt handlers.
15435         (mips_can_use_return_insn): Return false for interrupt handlers.
15436         (mips_epilogue_uses): New function.
15437         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
15438         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
15439         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
15440         cop0_move): New instructions.
15441         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
15442         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
15443         defines.
15444         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
15445         New defines.
15446         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
15447         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
15448         interrupt handlers, we use K0 as the temporary register.
15449         (EPILOGUE_USES): Change to a function call.
15450         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
15451         handlers, we use K0 as the temporary register.
15452
15453         * doc/extend.texi (Function Attributes): Document interrupt,
15454         use_shadow_register_set, keep_interrupts_masked,
15455         use_debug_exception_return for MIPS attributes.
15456
15457 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
15458
15459         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
15460         Remove a number of t-files from tmake_file.
15461         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
15462         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
15463         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15464         target_prototype, not TARGET_PROTOTYPE.
15465         (LINK_OS_GNU_SPEC): Define.
15466         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
15467         and darwin-ldoubdle.c.
15468
15469 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15470
15471         PR driver/39293
15472         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
15473         (cpp_options): Ditto.
15474         (default_compilers): Ditto.
15475         (display_help): Ditto.
15476         (process_command): Ditto.
15477         (do_spec_1): Ditto.
15478         (set_input): Use lbasename instead of duplicate code.
15479         (save_temps_prefix): New static for -save-temps=obj.
15480         (save_temps_length): Ditto.
15481
15482         * doc/invoke.texi (-save-temps=obj): Document new variant to
15483         -save-temps switch.
15484
15485 2009-04-02  Jeff Law  <law@redhat.com>
15486
15487         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
15488         variable.
15489
15490 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
15491
15492         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
15493         * configure: Regenerated.
15494
15495 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15496
15497         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
15498         share the argument list.
15499
15500 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15501
15502         Merge
15503
15504         2009-02-12  Diego Novillo  <dnovillo@google.com>
15505
15506         * varpool.c (debug_varpool): New.
15507         * cgraph.h (debug_varpool): Declare.
15508
15509 2009-04-02  Jan Hubicka  <jh@suse.cz>
15510
15511         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
15512         pass.
15513
15514 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
15515
15516         * config/i386/i386.c (ix86_abi): Move initialization to ...
15517         (override_options): Here.
15518
15519 2009-04-02  Christian Bruel  <christian.bruel@st.com>
15520
15521         * config/sh/sh.c (sh_dwarf_register_span): New function.
15522         (TARGET_DWARF_REGISTER_SPAN): Define.
15523         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
15524
15525 2009-04-02  Ira Rosen  <irar@il.ibm.com>
15526
15527         PR tree-optimization/39595
15528         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
15529         interleaved loads group is not  greater than the SLP group size.
15530
15531 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15532
15533         * builtins.c (is_builtin_name): New.
15534         (called_as_built_in): Use is_builtin_name.
15535         * tree.h (is_builtin_name): New.
15536         * varasm.c (incorporeal_function_p): Use is_builtin_name
15537
15538 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
15539
15540         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
15541
15542 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
15543
15544         PR c++/26693
15545         * c-decl.c (clone_underlying_type): Move this ...
15546         * c-common.c (set_underlying_type): ... here.
15547         Also, make sure the function properly sets TYPE_STUB_DECL() on
15548         the newly created typedef variant type.
15549         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
15550         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
15551         points.
15552
15553 2009-04-02  Richard Guenther  <rguenther@suse.de>
15554
15555         PR tree-optimization/37221
15556         * tree-flow.h (degenerate_phi_result): Declare.
15557         * tree-ssa-dom.c (degenerate_phi_result): Export.
15558         * tree-scalar-evolution.c (analyze_initial_condition): If
15559         the initial condition is defined by a degenerate PHI node
15560         use the degenerate value.
15561
15562 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
15563
15564         PR rtl-optimization/39588
15565         * combine.c (merge_outer_ops): Do not set the constant when this
15566         is not necessary.
15567         (simplify_shift_const_1): Do not modify it either in this case.
15568
15569 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
15570
15571         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
15572         tuning is deprecated if -mtune value is set to an Itanium1 variant.
15573
15574 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
15575
15576         PR c/29027
15577         * c-lex.c (interpret_float): Default (no suffix) is double.
15578
15579 2009-04-1  Xinliang David Li  <davidxl@google.com>
15580
15581         * config/i386/i386.c (legitimate_constant_p): Recognize
15582         all one vector constant.
15583
15584 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15585
15586         * config/vax/vax.c: Add #includes to silence warnings.
15587         Change #include order to silence two warnings.
15588
15589 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15590
15591         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
15592         (ASM_SPEC): Pass -k to the assembler for PIC code.
15593
15594 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15595
15596         * config.gcc: Add vax-*-linux* to the switch.
15597         * config/vax/linux.h: New file. (TARGET_VERSION,
15598         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
15599
15600 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15601
15602         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
15603         Use predicate macros instead of GET_CODE() == foo.
15604         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
15605         ashlsi3, rotrsi3, <unnamed>): Likewise.
15606
15607 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15608
15609         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
15610         jbbccihi, jbbccisi): Remova trailing whitespace.
15611         * config/vax/constraints.md: Likewise.
15612         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15613         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
15614         * config/vax/predicates.md: Likewise.
15615         * config/vax/vax.c (print_operand_address, vax_output_int_move,
15616         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
15617         * config/vax/vax.h: Likewise.
15618         * config/vax/vax.md (nonlocal_goto): Likewise.
15619
15620 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15621
15622         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
15623         (indirectable_address_p, adjacent_operands_p): Add spaces around
15624         braces.
15625         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
15626
15627 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15628
15629         * config/vax/vax.c (legitimate_constant_address_p,
15630         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
15631         index_term_p, reg_plus_index_p, legitimate_address_p,
15632         vax_mode_dependent_address_p): Update comments to match functions
15633         modified by the recent int->bool conversion.
15634
15635 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15636
15637         * config/vax/builtins.md: Update copyright message.
15638         * config/vax/constraints.md: Likewise.
15639         * config/vax/netbsd-elf.h: Likewise.
15640         * config/vax/predicates.md: Likewise.
15641         * config/vax/vax-protos.h: Likewise.
15642         * config/vax/vax.c: Likewise.
15643         * config/vax/vax.h: Likewise.
15644         * config/vax/vax.md: Likewise.
15645         * config/vax/vax.opt: Likewise.
15646
15647 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15648
15649         * config/vax/builtins.md (ffssi2, ffssi2_internal,
15650         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
15651         * config/vax/constraints.md (B, R): Likewise.
15652         * config/vax/predicates.md (external_memory_operand,
15653         nonimmediate_addsub_di_operand): Likewise.
15654         * config/vax/vax.c (vax_output_int_add): Likewise.
15655         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
15656         untyped_call): Likewise.
15657
15658 2009-04-01  Matt Thomas  <matt@3am-software.com>
15659
15660         * config/vax/predicates.md: New file.
15661         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
15662         external_const_operand, nonsymbolic_operand, external_memory_operand,
15663         indirect_memory_operand, indexed_memory_operand,
15664         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
15665         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
15666         predicate.
15667         * config/vax/constraints.md: New file.
15668         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
15669         New constraint.
15670         * config/vax/builtins.md: New file.
15671         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
15672         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
15673         jbbccisi): Define.
15674         * config/vax/vax.opt (mqmath): Add option.
15675         * config/vax/vax.md (isfx): Extend with DI.
15676         (VAXintQH, VAXintQHSD): Define.
15677         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
15678         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
15679         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
15680         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
15681         (movdi): Update constraints and use vax_output_int_move().
15682         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
15683         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
15684         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
15685         nonlocal_goto): New.
15686         (mov<mode>): Extend accepted operand types.
15687         (subdi3_old): Rename from subdi3, change update constraints and use
15688         a new implementation.
15689         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
15690         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
15691         MOVE_RATIO, CLEAR_RATIO): Define.
15692         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
15693         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
15694         (PRINT_OPERAND): Redefine using a function instead of inlined code.
15695         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15696         (split_quadword_operands): Make static and really allow variable
15697         splitting.
15698         (print_operand_address): Update for PIC generation.
15699         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
15700         indexable_address_p, fixup_mathdi_operand,
15701         vax_expand_addsub_di_operands, adjacent_operands_p): New.
15702         (vax_float_literal, legitimate_constant_p,
15703         indirectable_constant_address_p, index_term_p,
15704         reg_plus_index_p): Return bool instead of int.
15705         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
15706         where needed.
15707         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
15708         generation.
15709         (vax_output_conditional_branch): Indent.
15710         (legitimate_constant_address_p, indirectable_constant_address_p,
15711         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
15712         vax_mode_dependent_address_p): Return bool instead of int, update for
15713         PIC generation.
15714         * config/vax/vax-protos.h (legitimate_constant_address_p,
15715         legitimate_constant_p, legitimate_address_p,
15716         vax_mode_dependent_address_p): Change declaration to bool.
15717         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
15718         vax_expand_addsub_di_operands, vax_output_int_subtract,
15719         vax_output_movmemsi): Declare.
15720         (split_quadword_operands, vax_float_literal): Delete declaration.
15721         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
15722         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
15723         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
15724         ASM_OUTPUT_DWARF_PCREL): Define.
15725         (ASM_SPEC): Change definition to allow PIC generation.
15726
15727 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
15728
15729         * doc/sourcebuild.texi: Update front-end requirements.
15730
15731 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15732
15733         PR target/39226
15734         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
15735         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
15736         (booldi3_internal3): Use boolean_or_operator instead of
15737         boolean_operator.
15738
15739 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
15740
15741         PR c/39605
15742         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
15743         declarator whose size is not an integer constant expression but
15744         folds to an integer constant, then treat it as a constant
15745         subsequently.
15746
15747 2009-04-01  Richard Guenther  <rguenther@suse.de>
15748
15749         * fold-const.c (fold_plusminus_mult_expr): Do not fold
15750         i * 4 + 2 to (i * 2 + 1) * 2.
15751
15752 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15753
15754         PR c/37772
15755         * c-parser.c (c_parser_asm_statement): Skip until close paren and
15756         return if c_parser_asm_string_literal returned NULL.
15757
15758 2009-04-01  Nick Clifton  <nickc@redhat.com>
15759
15760         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
15761         already defined.
15762         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
15763         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
15764         other typedefs to avoid conflicts with libgcc2.c.  Define labels
15765         to gain 16-bit bit-manipulation functions from libgcc2.c and then
15766         include it.
15767         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
15768         to gain 16-bit trapping arithmetic functions from libgcc2.c and
15769         then include it.
15770
15771 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
15772
15773         * varasm.c (default_function_rodata_section): Declare DOT as
15774         const char*.
15775
15776 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
15777             Andrey Galkin  <agalkin@hypercom.com>
15778
15779         PR/39492
15780         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
15781         Make object_name unique for each process.
15782
15783 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15784
15785         PR other/39591
15786         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
15787         addressable variables in the parallel that could go out of scope while
15788         running queued tasks.
15789
15790 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
15791
15792         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
15793         (CASE_VALUES_THRESHOLD): Redefine.
15794         * config/avr/avr.c (avr_override_options): Remove initialization of
15795         avr_case_values_threshold variable.
15796         (avr_case_values_threshold): Remove variable. Add new function.
15797         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
15798         * config/avr/avr.opt (mno-tablejump): Remove option.
15799         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
15800
15801 2009-04-01  DJ Delorie  <dj@redhat.com>
15802
15803         * varasm.c (default_function_rodata_section): Don't assume
15804         anything about where the first '.' in the section name is.
15805
15806 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
15807
15808         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
15809         rs6000_emit_stack_tie.
15810
15811 2009-03-31  Ian Lance Taylor  <iant@google.com>
15812
15813         * tree-eh.c (tree_remove_unreachable_handlers): Compare
15814         gimple_code with GIMPLE_RESX, not RESX.
15815
15816 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15817
15818         * c-common.c (c_get_ident): New.
15819         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
15820
15821 2009-04-01  Ben Elliston  <bje@au.ibm.com>
15822
15823         * config/rs6000/sysv4.opt (msdata): Improve option description.
15824
15825 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
15826
15827         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
15828         (divdf3_internal_lat): Remove.
15829         (divxf3_internal_lat): Remove.
15830         (divxf3_internal_thr): Remove.
15831         (divxf): Use divxf3_internal.
15832         * config/ia64/div.md (divsf3_internal_lat): New.
15833         (divdf3_internal_lat): New.
15834         (divxf3_internal): New.
15835
15836 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15837
15838         PR c/448
15839         * Makefile.in (USE_GCC_STDINT): Define.
15840         (stmp-int-hdrs): Install stdint.h if applicable.
15841         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
15842         if known.
15843         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
15844         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
15845         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15846         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15847         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15848         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15849         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15850         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15851         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15852         (c_common_nodes_and_builtins): Initialize
15853         underlying_wchar_type_node.  Do not initialize
15854         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
15855         nodes for new types.
15856         (c_stddef_cpp_builtins): Define macros for new types.
15857         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
15858         Remove.
15859         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
15860         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
15861         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
15862         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
15863         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
15864         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
15865         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
15866         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
15867         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
15868         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
15869         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
15870         int16_type_node, int32_type_node, int64_type_node,
15871         uint8_type_node, uint16_type_node, c_uint32_type_node,
15872         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
15873         int_least32_type_node, int_least64_type_node,
15874         uint_least8_type_node, uint_least16_type_node,
15875         uint_least32_type_node, uint_least64_type_node,
15876         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
15877         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
15878         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
15879         uintptr_type_node): Define.
15880         * c-cppbuiltin.c (builtin_define_constants,
15881         builtin_define_type_minmax): New.
15882         (builtin_define_stdint_macros): Define more macros.
15883         (c_cpp_builtins): Define more limit macros.
15884         (type_suffix): New.
15885         (builtin_define_type_max): Define in terms of
15886         builtin_define_type_minmax.  Remove is_long parameter.  All
15887         callers changed.
15888         * config.gcc (use_gcc_stdint): Define.
15889         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
15890         Add newlib-stdint.h for generic targets.
15891         * config/glibc-stdint.h, config/newlib-stdint.h,
15892         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
15893         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
15894         * config/score/score.h (UINTPTR_TYPE): Define.
15895         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15896         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15897         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15898         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15899         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15900         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15901         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15902         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15903         * config/spu/spu.h (STDINT_LONG32): Define.
15904         * configure.ac (use_gcc_stdint): Substitute.
15905         * configure: Regenerate.
15906         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
15907         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
15908         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
15909         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
15910         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
15911         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
15912         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
15913         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
15914         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
15915         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
15916         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
15917         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
15918         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
15919         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
15920         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
15921         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
15922         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
15923         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
15924         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
15925         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
15926         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
15927         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
15928         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15929         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15930         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15931         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15932         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15933         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15934         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
15935
15936 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
15937
15938         * loop-iv.c (suitable_set_for_replacement): Renamed from
15939         simplify_using_assignment; changed to return bool and to accept new
15940         args DEST and SRC.  Return true iff we find a source/destination pair
15941         that can be used to make a replacement, and fill SRC and DEST if so.
15942         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
15943         changed.
15944         (simplify_using_initial_values): Deal with altered regs here and track
15945         more precisely the effect they have on the validity of our expression.
15946
15947         * loop-iv.c (simplify_using_condition): A condition of the form
15948         (EQ REG CONST) can be used to simply make a substitution.
15949         (simplify_using_initial_values): Keep track of conditions we have seen
15950         and keep using them to simplify new expressions, while applying the
15951         same substitutions to them as to the expression.
15952
15953         * simplify-rtx.c (simplify_relational_operation_1): Simplify
15954         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
15955         GEU/LTU reversed.
15956
15957         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
15958         changed.  Use this when trying to improve the upper bound.
15959         Generate the comparison by using simplify_gen_relational.
15960
15961         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
15962
15963         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
15964         functions.
15965         (simplify_using_assignment, simplify_using_initial_values): Call
15966         replace_in_expr to make replacements.  Call replace_single_def_regs
15967         once on the initial version of the expression.
15968
15969 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15970
15971         PR target/27237
15972         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
15973
15974 2009-03-31  Richard Guenther  <rguenther@suse.de>
15975
15976         PR middle-end/31029
15977         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
15978         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
15979
15980 2009-03-31  Richard Guenther  <rguenther@suse.de>
15981
15982         * tree.h (div_if_zero_remainder): Declare.
15983         * fold-const.c (div_if_zero_remainder): Export.
15984         * tree-ssa-forwprop.c
15985         (forward_propagate_addr_into_variable_array_index): Handle
15986         constant array index addition outside of the variable index.
15987
15988 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15989
15990         PR target/39592
15991         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
15992         define_splits, floatunssi<mode>2): Require x87 conversions from
15993         DImode to be permitted.
15994
15995 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15996
15997         PR preprocessor/15638
15998         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
15999
16000 2009-03-31  Richard Guenther  <rguenther@suse.de>
16001
16002         PR middle-end/23401
16003         PR middle-end/27810
16004         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
16005         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
16006         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
16007         a separate statement.
16008         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
16009         (lookup_tmp_var): Likewise.
16010         (is_gimple_formal_tmp_or_call_rhs): Remove.
16011         (is_gimple_reg_or_call_rhs): Rename to ...
16012         (is_gimple_reg_rhs_or_call): ... this.
16013         (is_gimple_mem_or_call_rhs): Rename to ...
16014         (is_gimple_mem_rhs_or_call): ... this.
16015         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
16016         DECL_GIMPLE_REG_P only if is_formal is true.
16017         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
16018         for non-proper post-modify expression gimplification.
16019         (gimplify_self_mod_expr): For post-modify expressions gimplify
16020         the lvalue to a minimal lvalue.
16021         (rhs_predicate_for): Remove formal temp case.
16022         (gimplify_modify_expr_rhs): Likewise.
16023         (gimplify_addr_expr): Use is_gimple_reg.
16024         (gimplify_expr): Remove formal temp cases.
16025         (gimple_regimplify_operands): Likewise.
16026         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
16027         and FILTER_EXPR like constants.
16028         * gimple.c (walk_gimple_op): Fix val_only initialization, use
16029         is_gimple_reg.
16030         (is_gimple_formal_tmp_rhs): Remove.
16031         (is_gimple_reg_rhs): Remove special casing.
16032         (is_gimple_mem_rhs): Fix.
16033         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
16034         (is_gimple_formal_tmp_var): Remove.
16035         (is_gimple_formal_tmp_reg): Likewise.
16036         (is_gimple_min_lval): Allow invariant component ref parts.
16037         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
16038         is_gimple_formal_tmp_reg): Remove declarations.
16039         * tree-cfg.c (verify_expr): Verify that variables with address
16040         taken do not have DECL_GIMPLE_REG_P set.
16041         * tree-mudflap.c (mf_build_check_statement_for): Use
16042         force_gimple_operand instead of gimplify_expr.
16043
16044 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
16045
16046         * modulo-sched.c (sms_schedule_by_order): Pass the actual
16047         schedulable rows to compute_split_row.
16048
16049 2009-03-31  Ben Elliston  <bje@au.ibm.com>
16050
16051         PR target/31635
16052         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
16053         OPT_mvrsave.
16054
16055 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
16056
16057         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
16058         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
16059         * configure: Regenerate.
16060         * config.in: Regenerate.
16061         * config/rs6000/rs6000.opt (mtls-markers): Add.
16062         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
16063         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
16064         (tls_ld_aix, tls_ld_sysv): Likewise.
16065         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
16066         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
16067
16068 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
16069
16070         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
16071
16072 2009-03-30  Jan Hubicka  <jh@suse.cz>
16073
16074         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
16075         out of RESX.
16076         (tree_remove_unreachable_handlers): Cleanup EH predecestor
16077         detection and label handling.
16078
16079 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
16080
16081         * ira-int.h (ira_allocno): Rename left_conflicts_num to
16082         left_conflicts_size.
16083         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
16084         ALLOCNO_LEFT_CONFLICTS_SIZE.
16085
16086         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
16087         remove_allocno_from_bucket_and_push,
16088         allocno_spill_priority_compare, push_allocnos_to_stack,
16089         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16090         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
16091         (setup_allocno_left_conflicts_num): Ditto.  Rename to
16092         setup_allocno_left_conflicts_size.
16093         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16094         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
16095         setup_allocno_left_conflicts_size instead of
16096         setup_allocno_left_conflicts_num.
16097
16098         * ira-build.c (ira_create_allocno): Use
16099         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
16100         ALLOCNO_LEFT_CONFLICTS_NUM.
16101
16102 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
16103
16104         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
16105         instead of DF_LR_OUT.
16106
16107         * ira-lives.c (process_bb_node_lives): Ditto.
16108
16109         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
16110         instead of DF_LR_{OUT,IN}.
16111
16112         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
16113
16114         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
16115
16116 2009-03-30  Jan Hubicka  <jh@suse.cz>
16117
16118         * except.c (label_to_region_map): Fix thinko.
16119
16120 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
16121
16122         PR middle-end/38237
16123         * tree.h (tree_find_value): New declaration.
16124         * tree.c (tree_find_value): New function.
16125         * varasm.c (assemble_external): Avoid duplicate entries on lists.
16126
16127 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
16128
16129         PR debug/39563
16130         * c-decl.c (struct c_binding): Add locus field.
16131         (bind): Add locus argument, set locus field from it.
16132         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
16133         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
16134         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
16135         implicitly_declare, undeclared_variable, lookup_label,
16136         declare_label, c_make_fname_decl, c_builtin_function,
16137         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
16138         bind callers.
16139
16140 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
16141
16142         PR target/38781
16143         * config/i386/i386.c (classify_argument): Check total size of
16144         structure.
16145
16146 2009-03-30  Martin Jambor  <mjambor@suse.cz>
16147
16148         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
16149         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
16150         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
16151         respectively.
16152
16153         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
16154         seen_variable_array_ref while also traversing a union.
16155
16156         * tree-inline.c (optimize_inline_calls): Do not call
16157         cgraph_node_remove_callees.
16158         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
16159         (pass_remove_cgraph_callee_edges): New variable.
16160         * passes.c (init_optimization_passes): Add
16161         pass_remove_cgraph_callee_edges after early inlining and before all
16162         late intraprocedural passes.
16163
16164         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
16165
16166 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16167
16168         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
16169         Fix typos in names.
16170
16171 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16172
16173         * combine.c (simplify_comparison): Use have_insn_for.
16174         * dojump.c (do_jump): Likewise.
16175
16176 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16177
16178         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
16179         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
16180         sparc_compare_op0 like sparc_compare_emitted used to be handled.
16181         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
16182         instead of sparc_compare_emitted.
16183         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
16184         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
16185         instead of sparc_compare_emitted.
16186
16187 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16188
16189         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
16190         enter/exit cfglayout mode.
16191         (pass_partition_block): Require it.
16192         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
16193         (combine_instructions): Track basic blocks instead of labels.
16194         (update_cfg_for_uncondjump): New.
16195         (try_combine): Use it.  Update jumps after rescanning.
16196         (pass_combine): Require PROP_cfglayout.
16197         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
16198
16199 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16200
16201         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
16202         Provide/destroy PROP_cfglayout respectively.
16203         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
16204         * tree-pass.h (PROP_cfglayout): New.
16205
16206 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16207
16208         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
16209         fold_convert_const_fixed_from_fixed,
16210         fold_convert_const_fixed_from_int,
16211         fold_convert_const_fixed_from_real, fold_negate_const): Do not
16212         set TREE_CONSTANT_OVERFLOW.
16213         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
16214         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
16215
16216 2009-03-30  Ira Rosen  <irar@il.ibm.com>
16217
16218         * tree-vect-loop-manip.c: New file.
16219         * tree-vectorizer.c: Update documentation and included files.
16220         (vect_loop_location): Make extern.
16221         (rename_use_op): Move to tree-vect-loop-manip.c
16222         (rename_variables_in_bb, rename_variables_in_loop,
16223         slpeel_update_phis_for_duplicate_loop,
16224         slpeel_update_phi_nodes_for_guard1,
16225         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
16226         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
16227         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
16228         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
16229         find_loop_location): Likewise.
16230         (new_stmt_vec_info): Move to tree-vect-stmts.c.
16231         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
16232         get_vectype_for_scalar_type, vect_is_simple_use,
16233         supportable_widening_operation, supportable_narrowing_operation):
16234         Likewise.
16235         (bb_in_loop_p): Move to tree-vect-loop.c.
16236         (new_loop_vec_info, destroy_loop_vec_info,
16237         reduction_code_for_scalar_code, report_vect_op,
16238         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
16239         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
16240         (vect_supportable_dr_alignment): Likewise.
16241         * tree-vectorizer.h (tree-data-ref.h): Include.
16242         (vect_loop_location): Declare.
16243         Reorganize function declarations according to the new file structure.
16244         * tree-vect-loop.c: New file.
16245         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
16246         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
16247         * tree-vect-data-refs.c: New file.
16248         * tree-vect-patterns.c (timevar.h): Don't include.
16249         * tree-vect-stmts.c: New file.
16250         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
16251         tree-vect-slp.c, tree-vect-loop.c.
16252         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
16253         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
16254         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
16255         (tree-vect-analyze.o): Remove.
16256         (tree-vect-transform.o): Likewise.
16257         (tree-vect-data-refs.o): Add rule.
16258         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
16259         tree-vect-slp.o): Likewise.
16260         (tree-vect-patterns.o): Remove redundant dependencies.
16261         (tree-vectorizer.o): Likewise.
16262         * tree-vect-slp.c: New file.
16263
16264 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16265
16266         * optc-gen.awk: Warn if an option flag has multiple different
16267         help strings.
16268
16269 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
16270
16271         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
16272         -floop-block): Document dependences on PPL, CLooG and Graphite.
16273
16274 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
16275
16276         PR rtl-optimization/323
16277         * c-common.c (c_fully_fold, convert_and_check,
16278         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
16279         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
16280         * c-common.def (EXCESS_PRECISION_EXPR): New.
16281         * c-cppbuiltin.c (builtin_define_float_constants): Define
16282         constants with enough digits for long double.
16283         * c-lex.c (interpret_float): Interpret constant with excess
16284         precision where appropriate.
16285         * c-opts.c (c_common_post_options): Set
16286         flag_excess_precision_cmdline.  Give an error for
16287         -fexcess-precision=standard for C++ for processors where the
16288         option is significant.
16289         * c-parser.c (c_parser_conditional_expression): Handle excess
16290         precision in condition.
16291         * c-typeck.c (convert_arguments): Handle arguments with excess
16292         precision.
16293         (build_unary_op): Move excess precision outside operation.
16294         (build_conditional_expr): Likewise.
16295         (build_compound_expr): Likewise.
16296         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
16297         (build_modify_expr): Handle excess precision in RHS.
16298         (convert_for_assignment): Handle excess precision in converted
16299         value.
16300         (digest_init, output_init_element, process_init_element): Handle
16301         excess precision in initializer.
16302         (c_finish_return): Handle excess precision in return value.
16303         (build_binary_op): Handle excess precision in operands and add
16304         excess precision as needed for operation.
16305         * common.opt (-fexcess-precision=): New option.
16306         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
16307         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
16308         For standard excess precision, output explicit conversion to and
16309         truncation from XFmode.
16310         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
16311         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
16312         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
16313         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
16314         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
16315         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
16316         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
16317         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
16318         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
16319         define_splits, sqrt<mode>2): Disable where appropriate for
16320         standard excess precision.
16321         * convert.c (convert_to_real): Do not shorten arithmetic to type
16322         for which excess precision would be used.
16323         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
16324         * doc/invoke.texi (-fexcess-precision=): Document option.
16325         (-mfpmath=): Correct index entry.
16326         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
16327         flag_excess_precision): New.
16328         * langhooks.c (lhd_post_options): Set
16329         flag_excess_precision_cmdline.
16330         * opts.c (common_handle_option): Handle -fexcess-precision=.
16331         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
16332         init_excess_precision): New.
16333         (lang_dependent_init_target): Call init_excess_precision.
16334         * tree.c (excess_precision_type): New.
16335         * tree.h (excess_precision_type): Declare.
16336
16337 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
16338
16339         PR c/35235
16340         * c-typeck.c (build_component_ref): Do not copy qualifiers from
16341         non-lvalue to component.
16342
16343 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
16344
16345         PR preprocessor/34695
16346         * Makefile.in (c-opts.o): Depend on c-tree.h.
16347         * c-common.c: Move down include of diagnostic.h.
16348         (done_lexing, c_cpp_error): New.
16349         * c-common.h (done_lexing): Declare.
16350         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
16351         (parse_in).
16352         * c-opts.c: Include c-tree.h.
16353         (c_common_init_options): Set preprocessor error callback.
16354         (c_common_handle_option): Do not set preprocessor
16355         inhibit_warnings, warnings_are_errors, warn_system_headers,
16356         pedantic_errors or inhibit_warnings flags.
16357         (c_common_post_options): Do not check cpp_errors (parse_in).
16358         (c_common_finish): Do not output dependencies if there were
16359         errors.  Do not check return value of cpp_finish.
16360         * c-ppoutput.c (pp_file_change): Set input_location.
16361         * c-tree.h (c_cpp_error): Declare.
16362         * diagnostic.c (diagnostic_set_info_translated): Also initialize
16363         override_column.
16364         (diagnostic_build_prefix): Check override_column.
16365         * diagnostic.h (diagnostic_info): Add override_column field.
16366         (diagnostic_override_column): Define.
16367
16368 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
16369
16370         * c-common.c (c_expand_expr, c_staticp): Remove.
16371         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
16372         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
16373         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
16374         * c-gimplify.c (gimplify_compound_literal_expr,
16375         optimize_compound_literals_in_ctor): Remove.
16376         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
16377         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
16378         * c-semantics.c (emit_local_var): Remove.
16379
16380         * langhooks-def.h (lhd_expand_expr): Remove.
16381         * langhooks.c (lhd_expand_expr): Remove.
16382         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
16383
16384         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
16385         handling from c-semantics.c; don't call into langhook.
16386         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
16387         * gimplify.c (gimplify_compound_literal_expr,
16388         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
16389         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
16390         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
16391         as was done in c-gimplify.c.
16392         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
16393         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
16394         Move from c-common.h.
16395         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
16396
16397         * tree.c (staticp): Do not call langhook.
16398         * langhooks.c (lhd_staticp): Delete.
16399         * langhooks-def.h (lhd_staticp): Delete prototype.
16400         (LANG_HOOKS_STATICP): Delete.
16401         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
16402
16403         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
16404         instead of DECL_STMTs.
16405
16406 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
16407
16408         PR c/456
16409         PR c/5675
16410         PR c/19976
16411         PR c/29116
16412         PR c/31871
16413         PR c/35198
16414         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
16415         void_type_node.
16416         (fold_call_expr): Return a NOP_EXPR from folding rather than the
16417         contained expression.
16418         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
16419         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
16420         conditional expressions for C.
16421         (decl_constant_value_for_optimization): Move from
16422         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
16423         whether optimizing and that the expression is a VAR_DECL not of
16424         array type instead of doing such checks in the caller.  Do not
16425         check pedantic.  Call gcc_unreachable for C++.
16426         * c-common.def (C_MAYBE_CONST_EXPR): New.
16427         * c-common.h (c_fully_fold, c_save_expr,
16428         decl_constant_value_for_optimization): New prototypes.
16429         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
16430         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
16431         EXPR_INT_CONST_OPERANDS): Define.
16432         * c-convert.c (convert): Strip nops from expression.
16433         * c-decl.c (groktypename): Take extra parameters expr and
16434         expr_const_operands.  Update call to grokdeclarator.
16435         (start_decl): Update call to grokdeclarator.  Add statement for
16436         expressions used in type of decl.
16437         (grokparm): Update call to grokdeclarator.
16438         (push_parm_decl): Update call to grokdeclarator.
16439         (build_compound_literal): Add parameter non_const and build a
16440         C_MAYBE_COSNT_EXPR if applicable.
16441         (grokdeclarator): Take extra parameters expr and
16442         expr_const_operands.  Track expressions used in declaration
16443         specifiers and declarators.  Fold array sizes and track whether
16444         they are constant expressions and whether they are integer
16445         constant expressions.
16446         (parser_xref_tag): Set expr and expr_const_operands fields in
16447         return value.
16448         (grokfield): Update call to grokdeclarator.
16449         (start_function): Update call to grokdeclarator.
16450         (build_null_declspecs): Set expr and expr_const_operands fields in
16451         return value.
16452         (declspecs_add_type): Handle expressions in typeof specifiers.
16453         * c-parser.c (c_parser_declspecs): Set expr and
16454         expr_const_operands fields for declaration specifiers.
16455         (c_parser_enum_specifier): Likewise.
16456         (c_parser_struct_or_union_specifier): Likewise.
16457         (c_parser_typeof_specifier): Likewise.  Update call to
16458         groktypename.  Fold expression as needed.  Return expressions with
16459         type instead of adding statements.
16460         (c_parser_attributes): Update calls to c_parser_expr_list.
16461         (c_parser_statement_after_labels): Fold expression before passing
16462         to objc_build_throw_stmt.
16463         (c_parser_condition): Fold expression.
16464         (c_parser_asm_operands): Fold expression.
16465         (c_parser_conditional_expression): Use c_save_expr.  Update call
16466         to build_conditional_expr.
16467         (c_parser_alignof_expression): Update call to groktypename.
16468         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
16469         original_code.  Fold expression argument of va_arg.  Create
16470         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
16471         argument to va_arg.  Update calls to groktypename.  Fold array
16472         index for offsetof.  Verify that first argument to
16473         __builtin_choose_expr has integer type.
16474         (c_parser_postfix_expression_after_paren_type): Update calls to
16475         groktypename and build_compound_literal.  Handle expressions with
16476         side effects in type name.
16477         (c_parser_postfix_expression_after_primary): Update call to
16478         c_parser_expr_list.  Set original_code for calls to
16479         __builtin_constant_p.
16480         (c_parser_expr_list): Take extra parameter fold_p.  Fold
16481         expressions if requested.
16482         (c_parser_objc_type_name): Update call to groktypename.
16483         (c_parser_objc_synchronized_statement): Fold expression.
16484         (c_parser_objc_receiver): Fold expression.
16485         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
16486         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
16487         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
16488         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
16489         (struct c_typespec): Add elements expr and expr_const_operands.
16490         (struct c_declspecs): Add elements expr and expr_const_operands.
16491         (groktypename, build_conditional_expr, build_compound_literal):
16492         Update prototypes.
16493         (in_late_binary_op): Declare.
16494         * c-typeck.c (note_integer_operands): New function.
16495         (in_late_binary_op): New variable.
16496         (decl_constant_value_for_broken_optimization): Move to c-common.c
16497         and rename to decl_constant_value_for_optimization.
16498         (default_function_array_conversion): Do not strip nops.
16499         (default_conversion): Do not call
16500         decl_constant_value_for_broken_optimization.
16501         (build_array_ref): Do not fold result.
16502         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
16503         result when operand is a VLA.
16504         (c_expr_sizeof_type): Update call to groktypename.  Handle
16505         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
16506         result when operand names a VLA type.
16507         (build_function_call): Update call to build_compound_literal.
16508         Only fold result for calls to __builtin_* functions.  Strip
16509         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
16510         the function designator.
16511         (convert_arguments): Fold arguments.  Update call to
16512         convert_for_assignment.
16513         (build_unary_op): Handle increment and decrement of
16514         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
16515         decrement earlier.  Fold operand of increment and decrement.
16516         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
16517         built for integer operand.  Wrap returns that are INTEGER_CSTs
16518         without being integer constant expressions or that have integer
16519         constant operands without being INTEGER_CSTs.
16520         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
16521         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
16522         result is an integer constant expression or can be used in
16523         unevaluated parts of one and avoid folding and wrap as
16524         appropriate.  Fold operands before possibly doing -Wsign-compare
16525         warnings.
16526         (build_compound_expr): Wrap result for C99 if operands can be used
16527         in integer constant expressions.
16528         (build_c_cast): Update call to digest_init.  Do not ignore
16529         overflow from casting floating-point constants to integers.  Wrap
16530         results that could be confused with integer constant expressions,
16531         null pointer constants or floating-point constants.
16532         (c_cast_expr): Update call to groktypename.  Handle expressions
16533         included in type name.
16534         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
16535         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
16536         Update calls to convert_for_assignment.
16537         (convert_for_assignment): Take new parameter
16538         null_pointer_constant.  Do not strip nops or call
16539         decl_constant_value_for_broken_optimization.  Set
16540         in_late_binary_op for conversions to boolean.
16541         (store_init_value): Update call to digest_init.
16542         (digest_init): Take new parameter null_pointer_constant.  Do not
16543         call decl_constant_value_for_broken_optimization.  pedwarn for
16544         initializers not constant expressions.  Update calls to
16545         convert_for_assignment.
16546         (constructor_nonconst): New.
16547         (struct constructor_stack): Add nonconst element.
16548         (really_start_incremental_init, push_init_level, pop_init_level):
16549         Handle constructor_nonconst and nonconst element.
16550         (set_init_index): Call constant_expression_warning for array
16551         designators.
16552         (output_init_element): Fold value.  Set constructor_nonconst as
16553         applicable.  pedwarn for initializers not constant expressions.
16554         Update call to digest_init.  Call constant_expression_warning
16555         where constant initializers are required.
16556         (process_init_element): Use c_save_expr.
16557         (c_finish_goto_ptr): Fold expression.
16558         (c_finish_return): Fold return value.  Update call to
16559         convert_for_assignment.
16560         (c_start_case): Fold switch expression.
16561         (c_process_expr_stmt): Fold expression.
16562         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
16563         ensure statement expression is not evaluated in constant expression.
16564         (build_binary_op): Track whether results are integer constant
16565         expressions or may occur in such, disable folding and wrap results
16566         as applicable.  Fold operands for -Wsign-compare warnings unless
16567         in_late_binary_op.
16568         (c_objc_common_truthvalue_conversion): Handle results folded to
16569         integer constants that are not integer constant expressions.
16570         * doc/extend.texi: Document when typeof operands are evaluated,
16571         that condition of __builtin_choose_expr is an integer constant
16572         expression, and more about use of __builtin_constant_p in
16573         initializers.
16574
16575 2009-03-29  Richard Guenther  <rguenther@suse.de>
16576
16577         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16578         propagate addresses of array references.
16579
16580 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
16581
16582         * regmove.c (perhaps_ends_bb_p): Remove.
16583         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
16584         from INSN and check that the main loop stays within that basic block.
16585         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
16586         (regmove_forward_pass): Split out from regmove_optimize.  Use
16587         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
16588         (regmove_backward_pass): Split out from regmove_optimize.  Use
16589         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
16590         (regmove_optimize): Simplify.
16591
16592 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16593
16594         PR target/39545
16595         * config/i386/i386.c (classify_argument): Ignore flexible array
16596         member in struct and warn ABI change.
16597
16598 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16599
16600         * config/i386/i386-protos.h (ix86_agi_dependent): New.
16601
16602         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
16603         (ix86_adjust_cost): Updated.
16604
16605 2009-03-29  Jan Hubicka  <jh@suse.cz>
16606
16607         PR middle-end/28850
16608         * tree-pass.h (pass_cleanup_eh): New function.
16609         (remove_unreachable_regions): Break code handling RTL
16610         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
16611         that can not be reached by runtime.
16612         (can_be_reached_by_runtime): New function.
16613         (label_to_region_map): New function.
16614         (num_eh_regions): New function.
16615         (rtl_remove_unreachable_regions): New function.
16616         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
16617         (remove_eh_region): New function.
16618         * except.h: Include sbitmap and vecprim.
16619         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
16620         num_eh_regions): Declare.
16621         * passes.c (init_optimization_passes): Schedule cleanup_eh.
16622         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
16623         * tree-eh.c (tree_remove_unreachable_handlers): New function.
16624         (tree_empty_eh_handler_p): New function.
16625         (cleanup_empty_eh): New function.
16626         (cleanup_eh): New function.
16627         (pass_cleanup_eh): New function.
16628
16629 2009-03-29  Jan Hubicka  <jh@suse.cz>
16630
16631         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
16632         for removed regions.
16633
16634 2009-03-29  Jan Hubicka  <jh@suse.cz>
16635
16636         * except.c (dump_eh_tree): Dump all datastructures.
16637
16638 2009-03-29  Jan Hubicka  <jh@suse.cz>
16639
16640         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
16641         (duplicate_eh_regions_1): Likewise.
16642         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
16643         vector; call EH verification.
16644         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16645         Be ready for region being removed.
16646
16647 2009-03-29  Jan Hubicka  <jh@suse.cz>
16648
16649         * bitmap.c (bitmap_last_set_bit): New function.
16650         * bitmap.h (bitmap_last_set_bit): Declare.
16651
16652 2009-03-29  David Ayers  <ayers@fsfe.org>
16653
16654         PR objc/27377
16655         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
16656         by calling objc_compare_types and surpress warnings about
16657         incompatible C pointers that are compatible ObjC pointers.
16658
16659 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
16660
16661         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
16662         call initialize_inline_failed.
16663         (initialize_inline_failed): Move it from here ...
16664         * cgraph.c (initialize_inline_failed): ... to here.
16665         (cgraph_create_edge): Call initialize_inline_failed rather than
16666         setting inline_failed directly.
16667
16668 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16669
16670         PR target/32542
16671         * sysv4.opt (msdata): Improve comment.
16672         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
16673         * sysv4.h (SVR4_ASM_SPEC): Likewise.
16674
16675 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16676
16677         PR target/30451
16678         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
16679         load and store attributes.
16680
16681 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16682
16683         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
16684         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
16685         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
16686         * doc/extend.texi (X86 Built-in Functions): Add index entries for
16687         __builtin_infq and __builtin_huge_valq.
16688
16689 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
16690
16691         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
16692         atmega8m1 devices.
16693         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16694         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
16695
16696 2009-03-28  Xinliang David Li  <davidxl@google.com>
16697
16698         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
16699         (do_dbg_cnt): New function.
16700
16701 2009-03-28  Jan Hubicka  <jh@suse.cz>
16702
16703         Merge from pretty-ipa:
16704
16705         2009-03-27  Jan Hubicka  <jh@suse.cz>
16706
16707         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16708         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
16709         * passes.c (function_called_by_processed_nodes_p): New.
16710         * ipa-pure-const.c (check_call): Fix handling of operands.
16711         (analyze_function): Dump debug output for skipped bodies.
16712         (local_pure_const): Use function_called_by_processed_nodes_p.
16713         * dwarf2out.c (reference_to_unused): Use output.
16714         * passes.c (do_per_function_toporder): Likewise.
16715
16716         2008-11-12  Jan Hubicka  <jh@suse.cz>
16717
16718         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
16719         * ipa-pure-const.c (funct_state_d): Add can throw field; make
16720         state_set_in_source enum
16721         (check_decl): Ignore memory tags; do not set fake looping flags;
16722         dump diagnostics.
16723         (check_operand, check_tree, check_rhs_var, check_lhs_var,
16724         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
16725         (check_call, analyze_function): Rewrite.
16726         (check_stmt): New.
16727         (add_new_function): Update call of analyze_function.
16728         (generate_summary): Add call of analyze_function.
16729         (propagate): Propagate can_throw; handle state_set_in_source correctly.
16730         (local_pure_const): New function.
16731         (pass_local_pure_const): New pass.
16732         * ipa-inline.c (inline_transform): Set after_inlining.
16733         * tree-eh.c (stmt_can_throw_external): New.
16734         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
16735         work with aliasing built.
16736         * tree-flow.h (stmt_can_throw_external): New.
16737         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
16738         and local pure/const pass in early and late optimization queue.
16739
16740 2009-03-28  Martin Jambor  <mjambor@suse.cz>
16741
16742         * fold-const.c (get_pointer_modulus_and_residue): New parameter
16743         allow_func_align.
16744         (fold_binary): Allow function decl aligment consideration is the
16745         second argument is integer constant one.
16746         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
16747         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
16748         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
16749
16750 2009-03-28  Jan Hubicka  <jh@suse.cz>
16751
16752         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
16753         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
16754         * function.h (rtl_data): Add nothrow flag.
16755         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
16756         set DECL_NOTHROW for AVAILABLE functions.
16757
16758 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
16759
16760         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
16761         following vector keyword has expansion starting with pixel or bool
16762         keyword, expand vector to __vector and pixel or bool to __pixel or
16763         __bool.
16764
16765         PR c++/39554
16766         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
16767         warn_if_disallowed_function_p): Removed.
16768         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
16769         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
16770         warning_if_disallowed_function_p.
16771         * flags.h (warn_if_disallowed_function_p,
16772         warn_disallowed_functions): Removed.
16773         * common.opt (Wdisallowed-function-list=): Removed.
16774         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
16775
16776 2009-03-28  Richard Guenther  <rguenther@suse.de>
16777
16778         PR tree-optimization/38723
16779         * tree-ssa-pre.c (compute_avail): Add all default definitions to
16780         the entry block.
16781
16782 2009-03-28  Jan Hubicka  <jh@suse.cz>
16783
16784         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
16785         test introduced by my previous patch.
16786
16787 2009-03-28  Richard Guenther  <rguenther@suse.de>
16788
16789         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
16790         the PHIs value undefined.
16791
16792 2009-03-28  Jan Hubicka  <jh@suse.cz>
16793
16794         * tree-pass.h (pass_fixup_cfg): New pass.
16795         * ipa-inline.c (inline_transform): Set
16796         always_inline_functions_inlined/after_inlining.
16797         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
16798         (pass_fixup_cfg): New pass.
16799         * passes.c (init_optimization_passes): Add fixup_cfg.
16800
16801 2009-03-28  Richard Guenther  <rguenther@suse.de>
16802
16803         PR tree-optimization/38458
16804         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
16805         argument use the arguments copy-of value.
16806
16807 2009-03-28  Richard Guenther  <rguenther@suse.de>
16808
16809         PR tree-optimization/38180
16810         * tree-ssa-ccp.c (get_default_value): Simplify.
16811         (likely_value): Likewise.
16812         (surely_varying_stmt_p): Properly handle VOP case.
16813         (ccp_initialize): Likewise.
16814         (ccp_fold): Handle propagating through *&.
16815         (fold_const_aggregate_ref): Also handle decls.
16816
16817 2009-03-28  Jan Hubicka  <jh@suse.cz>
16818
16819         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16820         * cgraph.h (cgraph_node): Likewise.
16821         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
16822         (cgraph_reset_node): Use process flag.
16823         (cgraph_mark_functions_to_output): Likewise.
16824         (cgraph_expand_function): Likewise.
16825         (cgraph_expand_all_functions): Likewise.
16826         (cgraph_output_in_order): Likewise.
16827         * dwarf2out.c (reference_to_unused): Likewise.
16828         * passes.c do_per_function_toporder): Likewise.
16829
16830 2009-03-28  Jan Hubicka  <jh@suse.cz>
16831
16832         Bring from lto-branch:
16833
16834         2008-09-03  Doug Kwan  <dougkwan@google.com>
16835
16836         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
16837         enums instead of reason strings.
16838         * cgraph.c (cgraph_create_edge): Same.
16839         (cgraph_inline_failed_string): New function.
16840         * cgraph.h (cgraph_inline_failed_t): New enum type.
16841         (cgraph_inline_failed_string): New prototype.
16842         (struct cgraph_edge): Change type of INLINED_FAILED from constant
16843         char pointer to cgraph_inline_failed_t.
16844         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
16845         (cgraph_default_inline_p): Ditto.
16846         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
16847         to cgraph_inline_failed_t pointer.
16848         * cif-code.def: New file.
16849         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
16850         reason string.
16851         (cgraph_check_inline_limits): Change type of REASON to pointer to
16852         cgraph_inline_failed_t.  Replace reason strings with enums.
16853         (cgraph_default_inline_p): Ditto.
16854         (cgraph_recursive_inlining_p): Ditto.
16855         (update_caller_keys): Change type of FAILED_REASON to
16856         cgraph_inline_failed_t.
16857         (cgraph_set_inline_failed): Change type of REASON to pointer to
16858         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
16859         convert enums to strings for text output.
16860         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
16861         to be of type cgraph_inline_failed_t.  Replace reason strings with
16862         enums.  Call cgraph_inline_failed_string to covert enums
16863         to strings for text output.
16864         (cgraph_decide_inlining): Replace reason strings with enums.
16865         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
16866         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
16867         for text output.
16868         * tree-inline.c (expand_call_inline): Change type of REASON
16869         to cgraph_inline_failed_t.  Replace reason strings with enums.
16870         Call cgraph_inline_failed_string for text output.
16871         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
16872         (cgraph.o): Ditto.
16873
16874 2009-03-28  Jan Hubicka  <jh@suse.cz>
16875
16876         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
16877         cgraph_clone_node): Remove master clone handling.
16878         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16879         * cgraph.h (master_clone): Remove.
16880         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16881         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
16882         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
16883
16884 2009-03-28  Jan Hubicka  <jh@suse.cz>
16885
16886         * cgraph.c (cgraph_function_body_availability): Functions declared
16887         inline are always safe to assume that it is not going to be replaced.
16888
16889 2009-03-28  Richard Guenther  <rguenther@suse.de>
16890
16891         PR tree-optimization/38513
16892         * tree-ssa-pre.c (eliminate): Remove redundant stores.
16893         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
16894         EXC_PTR_EXPR and FILTER_EXPR.
16895         (get_ref_from_reference_ops): Likewise.
16896
16897 2009-03-28  Richard Guenther  <rguenther@suse.de>
16898
16899         PR tree-optimization/38968
16900         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
16901         Use FLOOR_MOD_EXPR to compute misalignment.
16902
16903 2009-03-28  Richard Guenther  <rguenther@suse.de>
16904
16905         PR tree-optimization/37795
16906         * tree.h (combine_comparisons): Declare.
16907         * fold-const.c (combine_comparisons): Export.
16908         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
16909         comparisons.
16910         (ifcombine_iforif): Use combine_comparisons.
16911
16912 2009-03-28  Jan Hubicka  <jh@suse.cz>
16913
16914         * tree-eh.c (inlinable_call_p): New function.
16915         (make_eh_edges): Use it.
16916         (verify_eh_edges): Use it.
16917         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
16918         * except.c (reachable_next_level): Add inlinable_function argument
16919         (sjlj_find_directly_reachable_regions): Update.
16920         (add_reachable_handler): Do not set saw_any_handlers.
16921         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
16922         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16923         Add new inlinable call parameter.
16924         (can_throw_internal, can_throw_external): Update.
16925         * except.h (can_throw_internal_1, can_throw_external_1,
16926         foreach_reachable_handler): Update declaration.
16927
16928 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
16929
16930         * config/arm/t-arm-coff, config/h8300/coff.h,
16931         config/i386/i386-aout.h, config/i386/i386-coff.h,
16932         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
16933         config/pdp11/2bsd.h, config/rs6000/aix41.h,
16934         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
16935         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
16936         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
16937         sys-types.h: Remove.
16938         * Makefile.in: Remove protoize and fixproto support and references
16939         in comments.
16940         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
16941         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
16942         Remove.
16943         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
16944         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
16945         unprotoize$(exeext).
16946         (rest.encap): Don't depend on $(STMP_FIXPROTO)
16947         (.PHONY): Don't depend on proto.
16948         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
16949         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
16950         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
16951         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
16952         build/gen-protos.o, build/scan.o, xsys-protos.h,
16953         build/fix-header$(build_exeext), build/fix-header.o,
16954         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
16955         stmp-install-fixproto): Remove.
16956         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
16957         SYSCALLS.c or fixproto files.
16958         (install-common): Don't install protoize.
16959         (install-headers-tar, install-headers-cpio, install-headers-cp):
16960         Don't depend on $(STMP_FIXPROTO).
16961         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
16962         install fixproto files or write out fixproto settings.
16963         (uninstall): Don't uninstall protoize.
16964         * config.gcc (use_fixproto): Remove.
16965         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
16966         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
16967         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
16968         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
16969         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
16970         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
16971         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
16972         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
16973         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
16974         * config/t-vxworks (STMP_FIXPROTO): Remove.
16975         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
16976         STMP_FIXPROTO): Remove.
16977         * config.in, configure: Regenerate.
16978         * crtstuff.c (gid_t, uid_t): Don't undefine.
16979         * doc/install.texi: Change m68k-coff to m68k-elf in example.
16980         (arm-*-coff, arm-*-aout: Remove target entries.
16981         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
16982         Remove mention of AIX 4.1.
16983         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
16984         * doc/invoke.texi (Running Protoize): Remove.
16985         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
16986         (Protoize Caveats): Remove.
16987         * tsystem.h: Update comments on headers assumed to exist.
16988
16989 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
16990
16991         * genautomata.c: Add a new year to the copyright.  Add a new
16992         reference.
16993         (struct insn_reserv_decl): Add comments for member bypass_list.
16994         (find_bypass): Remove.
16995         (insert_bypass): New.
16996         (process_decls): Use insert_bypass.
16997         (output_internal_insn_latency_func): Output all bypasses with the
16998         same input insn in one switch case.
16999
17000         * rtl.def (define_bypass): Describe bypass choice.
17001         * doc/md.texi (define_bypass): Ditto.
17002
17003 2009-03-27  Richard Guenther  <rguenther@suse.de>
17004
17005         * gimplify.c (mark_addressable): Export.
17006         * tree-flow.h (mark_addressable): Declare.
17007         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
17008         * tree-ssa.c (verify_phi_args): Verify that address taken
17009         variables have TREE_ADDRESSABLE set.
17010
17011 2009-03-27  Richard Guenther  <rguenther@suse.de>
17012
17013         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
17014         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
17015         Do not mark decls TREE_ADDRESSABLE.
17016         (build_fold_addr_expr): Adjust.
17017         (fold_addr_expr): Remove.
17018         (fold_unary): Use build_fold_addr_expr.
17019         (fold_comparison): Likewise.
17020         (split_address_to_core_and_offset): Likewise.
17021         * coverage.c (tree_coverage_counter_addr): Mark the array decl
17022         TREE_ADDRESSABLE.
17023         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
17024         (gimplify_modify_expr_to_memcpy): Mark source and destination
17025         addressable.
17026         * omp-low.c (create_omp_child_function): Mark the object decl
17027         TREE_ADDRESSABLE.
17028         (lower_rec_input_clauses): Mark the var we take the address of
17029         TREE_ADDRESSABLE.
17030         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
17031
17032 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17033
17034         PR middle-end/39315
17035         * cfgexpand.c (expand_one_stack_var_at): Change alignment
17036         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
17037
17038 2009-03-27  Richard Guenther  <rguenther@suse.de>
17039
17040         PR tree-optimization/39120
17041         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
17042         constraints.
17043         (handle_lhs_call): Process return constraints.  Add escape
17044         constraints if necessary.
17045         (handle_const_call): Fill out return constraints.  Make nested
17046         case more precise.  Avoid consttmp if possible.
17047         (handle_pure_call): Fill out return constraints.  Avoid
17048         callused if possible.
17049         (find_func_aliases): Simplify call handling.
17050
17051 2009-03-27  Richard Guenther  <rguenther@suse.de>
17052
17053         PR tree-optimization/39120
17054         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
17055         as a representative.
17056         (solve_graph): Do propagate CALLUSED.
17057         (handle_pure_call): Use a scalar constraint from CALLUSED for
17058         the return value.
17059         (find_what_p_points_to): CALLUSED shall not appear in poins-to
17060         solutions.
17061
17062 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17063
17064         PR c/39323
17065         * c-common.c (handle_aligned_attribute): Properly check alignment
17066         overflow.  Use (1U << i) instead of (1 << i).
17067
17068         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
17069
17070         * expr.h (get_mem_align_offset): Updated.
17071
17072         * tree.h (tree_decl_common): Change align to "unsigned int" and
17073         move it before pointer_alias_set.
17074
17075 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17076             Jakub Jelinek  <jakub@redhat.com>
17077
17078         PR target/38034
17079         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
17080         gr_register_operand with gr_reg_or_0_operand.
17081         (cmpxchg_rel_di): Likewise.
17082         (sync_lock_test_and_set<mode>): Likewise.
17083
17084 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17085
17086         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
17087         (true_regnum): Likewise.
17088
17089         * rtlanal.c (subreg_info): Moved to ...
17090         * rtl.h (subreg_info): Here.  New.
17091         (subreg_get_info): New.
17092
17093         * rtlanal.c (subreg_get_info): Make it extern.
17094
17095 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17096
17097         PR target/39472
17098         * config/i386/i386.c (ix86_abi): New.
17099         (override_options): Handle -mabi=.
17100         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
17101         (ix86_call_abi_override): Likewise.
17102         (init_cumulative_args): Likewise.
17103         (function_arg_advance): Likewise.
17104         (function_arg_64): Likewise.
17105         (function_arg): Likewise.
17106         (ix86_pass_by_reference): Likewise.
17107         (ix86_function_value_regno_p): Likewise.
17108         (ix86_build_builtin_va_list_abi): Likewise.
17109         (setup_incoming_varargs_64): Likewise.
17110         (is_va_list_char_pointer): Likewise.
17111         (ix86_init_machine_status): Likewise.
17112         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
17113         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
17114         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
17115         (ix86_function_abi): Make it static and return enum calling_abi.
17116         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
17117         with ix86_abi.
17118         (ix86_fn_abi_va_list): Updated.
17119
17120         * config/i386/i386.h (ix86_abi): New.
17121         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
17122         (CONDITIONAL_REGISTER_USAGE): Likewise.
17123         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
17124         (machine_function): Likewise.
17125
17126         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
17127         with ix86_abi.
17128         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
17129         (STACK_BOUNDARY): Likewise.
17130         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
17131
17132         * config/i386/i386.opt (mabi=): New.
17133
17134         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
17135         return enum calling_abi.
17136         (ix86_function_type_abi): Likewise.
17137         (ix86_function_abi): Removed.
17138
17139         * doc/invoke.texi: Document -mabi= option for x86.
17140
17141 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17142
17143         * builtins.c (real_dconstp): Delete.
17144         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
17145
17146 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
17147             Jakub Jelinek  <jakub@redhat.com>
17148
17149         PR debug/37959
17150         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
17151         (gen_subprogram_die): When a function is explicit, generate the
17152         DW_AT_explicit attribute.
17153         * langhooks.h (struct lang_hooks_for_decls): Add
17154         function_decl_explicit_p langhook.
17155         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
17156         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
17157
17158 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
17159
17160         * builtins.c (fold_builtin_memory_op): Optimize memmove
17161         into memcpy if we can prove source and destination don't overlap.
17162
17163         * tree-inline.c: Include gt-tree-inline.h.
17164         (clone_fn_id_num): New variable.
17165         (clone_function_name): New function.
17166         (tree_function_versioning): Use it.
17167         * Makefile.in (GTFILES): Add tree-inline.c.
17168
17169 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
17170
17171         * BASE-VER: Change to 4.5.0.
17172
17173 2009-03-27  Xinliang David Li  <davidxl@google.com>
17174
17175         PR tree-optimization/39557
17176         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
17177
17178 2009-03-27  Xinliang David Li  <davidxl@google.com>
17179
17180         PR tree-optimization/39548
17181         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
17182         candidate check.
17183
17184 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17185
17186         * c-common.c (pointer_int_sum): Use %wd on return from
17187         tree_low_cst.
17188
17189 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17190
17191         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
17192         on return from tree_low_cst.
17193
17194 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17195
17196         PR c++/36799
17197         * ginclude/stdarg.h (va_copy): Define also for
17198         __GXX_EXPERIMENTAL_CXX0X__.
17199
17200 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17201
17202         PR c++/35652
17203         * builtins.h (c_strlen): Do not warn here.
17204         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
17205         * c-common.c (pointer_int_sum): Take an explicit location.
17206         Warn about offsets out of bounds.
17207         * c-common.h (pointer_int_sum): Adjust declaration.
17208
17209 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17210
17211         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
17212         markup glitch.
17213
17214 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
17215
17216         PR c++/39554
17217         * opts.c (warn_if_disallowed_function_p): Don't assume
17218         get_callee_fndecl must return non-NULL.
17219
17220 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
17221
17222         PR rtl-optimization/39522
17223         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
17224         when reg_reloaded_valid is set.
17225
17226 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17227
17228         * config/spu/divv2df3.c: New file.
17229         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
17230         (DPBIT_FUNCS): Filter out _div_df.
17231
17232 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
17233
17234         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
17235         a jump insn, count that jump in the distance to the loop start.
17236
17237 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
17238
17239         PR target/39523
17240         * config/sh/sh.c (calc_live_regs): Fix condition for global
17241         registers except PIC_OFFSET_TABLE_REGNUM.
17242
17243 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
17244
17245         PR/39518
17246         * doc/invoke.texi (-mconsole): New.
17247         (-mcygwin): New.
17248         (-mno-cygwin): New.
17249         (-mdll): New.
17250         (-mnop-fun-dllimport): New.
17251         (-mthread): New.
17252         (-mwin32): New.
17253         (-mwindows): New.
17254         (sub section "i386 and x86-64 Windows Options"): New.
17255
17256 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
17257
17258         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
17259         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
17260
17261 2009-03-25  Richard Guenther  <rguenther@suse.de>
17262
17263         PR middle-end/39497
17264         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
17265         of -Wno-error.
17266
17267 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
17268
17269         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
17270         neither of haifa/selective schedulers are working.
17271
17272 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17273
17274         * doc/invoke.texi (Debugging Options): Fix description of
17275         -fno-merge-debug-strings.
17276
17277 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
17278
17279         * config/cris/libgcc.ver: New version-script.
17280         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
17281
17282         * configure.ac <GAS features, nop mnemonic>: Add pattern
17283         crisv32-*-* for "nop".
17284         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
17285         * configure: Regenerate.
17286
17287 2009-03-24  Ira Rosen  <irar@il.ibm.com>
17288
17289         PR tree-optimization/39529
17290         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
17291         mark_sym_for_renaming for the tag copied to the new vector
17292         pointer.
17293
17294 2009-03-24  Arthur Loiret  <aloiret@debian.org>
17295
17296         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
17297         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
17298         EXTRA_SPEC_FUNCTIONS.
17299         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
17300         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
17301         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
17302         -march and -mtune options.
17303
17304 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
17305
17306         * config/m68k/t-rtems: Add m5329 multilib.
17307
17308 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
17309             Jakub Jelinek  <jakub@redhat.com>
17310
17311         PR debug/39524
17312         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
17313         nodes.
17314
17315 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17316
17317         PR c/39495
17318         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
17319         instead of c_parser_expression_conv, if original_code isn't one of the
17320         4 allowed comparison codes, fail.
17321
17322 2009-03-23  Richard Guenther  <rguenther@suse.de>
17323
17324         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
17325         * tree.h (struct tree_type): Likewise.
17326         * reload.h (struct insn_chain): Likewise.
17327         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
17328         * function.h (struct function): Likewise.
17329         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
17330
17331 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17332
17333         PR tree-optimization/39516
17334         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
17335
17336 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
17337
17338         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
17339         should be set true if BITS_PER_WORD of target is bigger than 32
17340
17341 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
17342
17343         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
17344         Translate -B-options to -rpath-link.  Correct existing
17345         rpath-link and conditionalize on !nostdlib.
17346
17347 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17348
17349         * doc/extend.texi (Function Attributes, Variable Attributes):
17350         Fix typos.
17351         * doc/invoke.texi (Debugging Options, Optimize Options)
17352         (i386 and x86-64 Options, MCore Options): Likewise.
17353
17354 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
17355
17356         PR debug/37890
17357         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
17358         it for block local namespace aliases.
17359         (gen_decl_die): Pass context_die to gen_namespace_die.
17360
17361 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
17362
17363         PR c/39495
17364         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
17365         minimum or maximum value.
17366
17367 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
17368
17369         * reginfo.c (globalize_reg): Recompute derived reg sets.
17370
17371 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
17372
17373         PR target/39063
17374         * libgcc2.c (mprotect): Do not use signed arguments for
17375         VirtualProtect, use DWORD arguments.  Also fix the 'may
17376         be used uninitialized' warning for the np variable.
17377
17378 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
17379
17380         PR target/39496
17381         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
17382         functions using regparm calling conventions when not optimizing.
17383         (ix86_function_sseregparm): Similarly for sseregparm calling
17384         conventions.
17385
17386 2009-03-19  Li Feng  <nemokingdom@gmail.com>
17387
17388         PR middle-end/39500
17389         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
17390         dependence if the first conflict is after niter iterations.
17391
17392 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
17393
17394         PR middle-end/38609
17395         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
17396         functions with dynamic stack-pointer adjustments.
17397
17398 2009-03-19  Ben Elliston  <bje@au.ibm.com>
17399
17400         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
17401         option; change to -msdata=data.
17402
17403 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17404
17405         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
17406         and -fopenmp.
17407
17408 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
17409
17410         PR target/35180
17411         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
17412
17413 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
17414
17415         * doc/invoke.texi (Code Gen Options): Expand discussion of
17416         -fno-common.
17417
17418 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
17419
17420         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
17421         * matrix-reorg.c (struct matrix_info): Likewise.
17422         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
17423         * rtl.h (struct mem_attrs): Likewise.
17424         * df.h (struct df): Likewise.
17425         * tree-data-ref.h (struct data_dependence_relation): Likewise.
17426         * ira-int.h (struct ira_allocno): Likewise.
17427         * df-scan.c (struct df_collection_rec): Likewise.
17428         * ira.c (struct equivalence): Likewise.
17429         * function.c (struct temp_slot): Likewise.
17430         * cfgloop.h (struct loop): Likewise.
17431
17432         PR debug/39485
17433         * function.c (use_register_for_decl): When not optimizing, disregard
17434         register keyword for variables with types containing methods.
17435
17436 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
17437
17438         PR middle-end/39447
17439         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
17440         (is_simple_operand): Call contains_component_ref_p before calling data
17441         reference analysis that would fail on COMPONENT_REFs.
17442
17443         * tree-vrp.c (search_for_addr_array): Fix formatting.
17444
17445 2009-03-18  Richard Guenther  <rguenther@suse.de>
17446
17447         * tree-vect-transform.c (vect_loop_versioning): Fold the
17448         generated comparisons.
17449         * tree-vectorizer.c (set_prologue_iterations): Likewise.
17450         (slpeel_tree_peel_loop_to_edge): Likewise.
17451
17452 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17453
17454         PR middle-end/37805
17455         * opts.c (print_specific_help): In addition to `undocumented',
17456         accept `separate' and `joined' flags if passed alone.  Describe
17457         output by the first matched one of those.
17458         (common_handle_option): Skip over empty strings.
17459         * gcc.c (display_help): Fix help string for `--help='.
17460         * doc/invoke.texi (Option Summary, Overall Options): With
17461         `--help=', classes and qualifiers can both be repeated, but
17462         only the latter can be negated.  One should not pass only
17463         negated qualifiers.  Fix markup and examples.
17464
17465         Revert
17466         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
17467         PR middle-end/37805
17468         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
17469         and -fhelp=separate.
17470
17471 2009-03-17  Jing Yu  <jingyu@google.com>
17472
17473         PR middle-end/39378
17474         * function.h (struct rtl_data): Move is_thunk from here...
17475         (struct function): ...to here.
17476         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
17477         * varasm.c (assemble_start_function): Change is_thunk from crtl to
17478         cfun.
17479         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
17480         cfun.
17481         (alpha_does_function_need_gp, alpha_start_function): Likewise.
17482         (alpha_output_function_end_prologue): Likewise.
17483         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
17484         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
17485         (rs6000_output_function_epilogue): Likewise.
17486         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
17487
17488 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
17489
17490         PR target/39482
17491         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
17492         from different units in a single alternative.
17493         (*truncdfsf_i387): Ditto.
17494         (*truncxfsf2_mixed): Ditto.
17495         (*truncxfdf2_mixed): Ditto.
17496
17497 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
17498
17499         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
17500         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
17501
17502         PR debug/39474
17503         * tree-ssa-live.c (remove_unused_locals): Don't remove local
17504         unused non-artificial variables when not optimizing.
17505
17506         PR debug/39471
17507         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
17508         DW_TAG_imported_module even if decl is IMPORTED_DECL with
17509         NAMESPACE_DECL in its DECL_INITIAL.
17510
17511         PR middle-end/39443
17512         * optabs.c (set_user_assembler_libfunc): New function.
17513         * expr.h (set_user_assembler_libfunc): New prototype.
17514         * c-common.c: Include libfuncs.h.
17515         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
17516         for memcmp, memset, memcpy, memmove and abort.
17517         * Makefile.in (c-common.o): Depend on libfuncs.h.
17518
17519         PR debug/39412
17520         * dwarf2out.c (gen_inlined_enumeration_type_die,
17521         gen_inlined_structure_type_die, gen_inlined_union_type_die,
17522         gen_tagged_type_instantiation_die): Removed.
17523         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
17524         do nothing.
17525
17526 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
17527
17528         PR testsuite/38526
17529         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
17530         its use.
17531         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
17532         (check-parallel-%): Ditto.
17533         (check-consistency): Ditto.
17534
17535 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
17536
17537         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
17538         local variable rhs by NULL_TREE.
17539
17540 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17541
17542         PR target/39477
17543         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
17544
17545 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17546
17547         PR target/39476
17548         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
17549
17550 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17551
17552         PR target/39473
17553         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
17554         for ms->sysv ABI calls only in 64bit mode.
17555
17556         * config/i386/i386.md (untyped_call): Support 32bit.
17557
17558 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17559
17560         * doc/extend.texi: Replace x86_65 with x86_64.
17561
17562 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
17563
17564         PR tree-optimization/39455
17565         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
17566         mismatches for POINTER_TYPE_P (type).
17567         (number_of_iterations_le): Likewise.
17568
17569 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
17570
17571         * config/picochip/picochip.c: Removed profiling support.
17572         * config/picochip/picochip.md: Removed profiling instruction.
17573         * config/picochip/picochip.h: Removed profiling builtin.
17574
17575 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
17576
17577         * doc/install.texi (--with-host-libstdcxx): Document.
17578
17579 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
17580
17581         PR target/34299
17582         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
17583         generate a warning if the function name does not begin with
17584         "__vector" and the function has either the 'signal' or 'interrupt'
17585         attribute, from here to ...
17586         (avr_declare_function_name): ...here. New function.
17587         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
17588         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
17589
17590 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
17591
17592         PR bootstrap/39454
17593         * cse.c (fold_rtx): Don't modify original const_arg1 when
17594         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
17595         separate variable instead.
17596         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
17597         from out of range shift counts.
17598         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
17599
17600 2009-03-13  Catherine Moore  <clm@codesourcery.com>
17601
17602         * config/i386/x-mingw32 (host-mingw32.o): Replace
17603         diagnostic.h with $(DIAGNOSTIC_H).
17604
17605 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
17606
17607         PR target/39431
17608         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
17609         predicate.
17610         * config/i386/sync.md (sync_compare_and_swap<mode>,
17611         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
17612         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
17613         into a register.
17614         (sync_double_compare_and_swapdi_pic,
17615         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
17616         cmpxchg8b_pic_memory_operand instead of just memory_operand.
17617
17618 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17619
17620         PR target/39445
17621         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
17622
17623 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17624
17625         PR target/39327
17626         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17627         (avx_addsubv4df3): Likewise.
17628         (*avx_addsubv4sf3): Likewise.
17629         (sse3_addsubv4sf3): Likewise.
17630
17631 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17632
17633         PR target/38824
17634         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
17635
17636 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
17637
17638         PR debug/39432
17639         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
17640         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17641         registers for allocnos created from user-defined variables.
17642
17643 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17644
17645         PR target/39181
17646         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
17647         of non-integer mode as well.
17648
17649 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
17650
17651         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
17652         for functions for which the parameter types are unknown.
17653
17654 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
17655
17656         PR target/39137
17657         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
17658         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
17659         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
17660         * config/i386/i386.c (ix86_local_alignment): For
17661         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
17662         long long variables on the stack to avoid dynamic realignment.
17663         Allow the first argument to be a decl rather than type.
17664         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
17665
17666 2009-03-11  Nick Clifton  <nickc@redhat.com>
17667
17668         PR target/5362
17669         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
17670         options.
17671         Add description to mno-lsim option.
17672         * config/mcore/mcore.h: Remove comment about deprecated m4align
17673         option.
17674         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
17675         * doc/invoke.texi: Add description of mno-lsim and
17676         mstack-increment options.
17677
17678         * config/fr30/fr30.opt: Document the -mno-lsim option.
17679         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
17680         and -mno-lsim options.
17681
17682 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17683
17684         * fold-const.c (fold_comparison): Only call fold_inf_compare
17685         if the mode supports infinities.
17686
17687 2009-03-11  Jason Merrill  <jason@redhat.com>
17688
17689         PR debug/39086
17690         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
17691         end already did.  Notice GIMPLE_CALL modifications of the result.
17692         Don't copy debug information from an ignored decl or a decl from
17693         another function.
17694
17695 2009-03-10  Richard Guenther  <rguenther@suse.de>
17696             Nathan Froyd  <froydnj@codesourcery.com>
17697
17698         PR middle-end/37850
17699         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
17700         (__divMODE3): Likewise.
17701
17702 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
17703
17704         PR tree-optimization/39394
17705         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
17706         DECL_SIZE_UNIT of variable length FIELD_DECLs.
17707
17708 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17709
17710         * recog.c (verfiy_changes): Disallow renaming of hard regs in
17711         inline asms for register asm ("") declarations.
17712
17713 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
17714
17715         * fold-const.c (fold_unary): Fix comment.
17716
17717 2009-03-07  Jan Hubicka  <jh@suse.cz>
17718
17719         PR target/39361
17720         * tree-inline.c (setup_one_parameter): Do replacement of const
17721         argument by constant in SSA form.
17722
17723 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17724
17725         PR middle-end/38028
17726         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
17727         determine alignment passed to assign_stack_local.
17728         (assign_parms_unsplit_complex): Likewise.
17729         * except.c (sjlj_build_landing_pads): Likewise.
17730
17731 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17732
17733         PR middle-end/39360
17734         * tree-flow.h (add_referenced_var): Return bool instead of void.
17735         * tree-dfa.c (add_referenced_var): Return result of
17736         referenced_var_check_and_insert call.
17737         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
17738         of referenced_var_check_and_insert.
17739
17740         PR debug/39372
17741         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
17742         (gen_variable_die): Emit DW_AT_location on abstract static variable's
17743         DIE, don't emit it if abstract origin already has it.
17744         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
17745         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
17746
17747 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17748
17749         * genpreds.c (needs_variable): Fix parentheses at variable name
17750         detection.
17751         (write_tm_constrs_h): Indent generated code.
17752
17753 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17754
17755         * doc/extend.texi (Function Attributes): Add documentation
17756         for isr attributes.
17757
17758 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17759
17760         PR debug/39387
17761         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
17762         take locus from its DECL_SOURCE_LOCATION instead of input_location.
17763
17764 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
17765
17766         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
17767         the loop as bad.
17768
17769 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
17770
17771         PR debug/39379
17772         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
17773         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
17774
17775 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
17776
17777         * config/i386/i386.md (R8_REG, R9_REG): New constants.
17778         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
17779         constants instead of magic numbers.
17780         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
17781         (QI_REG_P): Ditto.
17782         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
17783         (x86_64_ms_abi_int_parameter_registers): Ditto.
17784         (x86_64_int_return_registers): Ditto.
17785         (ix86_maybe_switch_abi): Ditto.
17786         (ix86_expand_call): Ditto for clobbered_registers array.
17787         (ix86_hard_regno_mode_ok): Ditto.
17788         (x86_extended_QIreg_mentioned_p): Ditto.
17789
17790 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
17791
17792         PR tree-optimization/39349
17793         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
17794
17795         * combine.c (gen_lowpart_for_combine): Use omode when generating
17796         clobber.
17797
17798 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
17799
17800         PR rtl-optimization/39235
17801         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
17802
17803 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17804
17805         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
17806
17807 2009-03-04  Richard Guenther  <rguenther@suse.de>
17808
17809         PR tree-optimization/39362
17810         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
17811         that occur in abnormal PHIs should be varying.
17812
17813 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17814
17815         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
17816         Extend comments.
17817         (simple_iv):  Take loop as an argument instead of statement.
17818         * tree-scalar-evolution.h (simple_iv): Declaration changed.
17819         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
17820         to simple_iv.
17821         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
17822         Ditto.
17823         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
17824         * matrix-reorg.c (analyze_transpose): Ditto.
17825         * tree-data-ref.c (dr_analyze_innermost): Ditto.
17826         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
17827         * tree-predcom.c (ref_at_iteration): Ditto.
17828         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
17829
17830 2009-03-04  Richard Guenther  <rguenther@suse.de>
17831
17832         PR tree-optimization/39358
17833         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
17834         escaped_id and callused_id.
17835         (solve_graph): Likewise.
17836
17837 2009-03-04  Richard Guenther  <rguenther@suse.de>
17838
17839         PR tree-optimization/39339
17840         * tree-sra.c (try_instantiate_multiple_fields): Make it
17841         no longer ICE on the above.
17842
17843 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
17844
17845         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
17846         that fits within Pmode.
17847
17848 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17849
17850         PR middle-end/10109
17851         * tm.texi (LIBCALL_VALUE): Update description.
17852
17853 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17854
17855         PR middle-end/34443
17856         * doc/extend.texi (section): Update description.
17857
17858 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
17859
17860         PR middle-end/39345
17861         * tree-inline.c (remapped_type): New.
17862         (can_be_nonlocal): Call remapped_type instead of remap_type.
17863
17864 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17865
17866         PR fortran/39354
17867         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
17868         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
17869
17870 2009-03-03  Richard Guenther  <rguenther@suse.de>
17871
17872         PR middle-end/39272
17873         * tree.c (tree_nonartificial_location): New function.
17874         * tree.h (tree_nonartificial_location): Declare.
17875         * builtins.c (expand_builtin_memory_chk): Provide location
17876         of the call location for artificial function pieces.
17877         (maybe_emit_chk_warning): Likewise.
17878         (maybe_emit_sprintf_chk_warning): Likewise.
17879         (maybe_emit_free_warning): Likewise.
17880         * expr.c (expand_expr_real_1): Likewise.
17881
17882 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17883
17884         PR tree-optimization/39343
17885         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
17886         COMPONENT_REF t has ARRAY_TYPE.
17887
17888 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
17889
17890         PR middle-end/39335
17891         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
17892         when the type precision of the induction variable should be
17893         larger than the type precision of nit.
17894         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
17895         * graphite.c (graphite_loop_normal_form): Same.
17896         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
17897
17898 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17899
17900         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
17901         (*call_1_rex64_ms_sysv): Use named constants instead of magic
17902         numbers to describe clobbered registers.
17903         (*call_value_0_rex64_ms_sysv): Ditto.
17904         * config/i386/mmx.md (mmx_emms): Ditto.
17905         (mmx_femms): Ditto.
17906
17907 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
17908
17909         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
17910         of ABI_64.
17911
17912 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17913
17914         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
17915         (spu_section_type_flags): New function.
17916
17917 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17918
17919         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
17920         reg_class_contents of FLOAT_REGS into a temporary.
17921
17922 2009-03-02  Richard Guenther  <rguenther@suse.de>
17923             Ira Rosen  <irar@il.ibm.com>
17924
17925         PR tree-optimization/39318
17926         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
17927         information to the vectorized statement.
17928
17929 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
17930
17931         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
17932         variable.  Use defined names instead of magic constants for REX SSE
17933         registers.
17934
17935 2009-03-01  Richard Guenther  <rguenther@suse.de>
17936
17937         PR tree-optimization/39331
17938         * omp-low.c (lower_send_shared_vars): Do not receive new
17939         values for the reference of DECL_BY_REFERENCE parms or results.
17940
17941 2009-03-01  Jan Hubicka  <jh@suse.cz>
17942
17943         PR debug/39267
17944         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
17945         BLOCK_NONLOCALIZED_VAR): New macros.
17946         (tree_block): Add nonlocalized_vars.
17947         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
17948         gen_decl_die): Add origin argument.  Allow generation of die with
17949         origin at hand only.
17950         (gen_member_die, gen_type_die_with_usage, force_decl_die,
17951         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
17952         of gen_*.
17953         (gen_block_die): Fix checking for unused blocks.
17954         (process_scope_var): Break out from .... ; work with origins only.
17955         (decls_for_scope) ... here; process nonlocalized list.
17956         (dwarf2out_ignore_block): Look for nonlocalized vars.
17957         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
17958         vars.
17959         (dump_scope_block): Dump them.
17960         * tree-inline.c (remap_decls): Handle nonlocalized vars.
17961         (remap_block): Likewise.
17962         (can_be_nonlocal): New predicate.
17963         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
17964
17965 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17966
17967         * configure: Regenerate.
17968
17969 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17970
17971         * optc-gen.awk: No need to duplicate option flags twice.
17972         Reuse help texts for duplicate options which do not have any.
17973
17974         * gcc.c (display_help): Document --version.
17975
17976         * gcc.c (main): If print_help_list and verbose_flag, ensure
17977         driver output comes before subprocess output.
17978
17979         * optc-gen.awk: Assign all remaining fields to help string,
17980         space-separated, for multi-line help in *.opt.
17981
17982         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
17983         -Wno-pedantic-ms-format is for MinGW targets only.
17984
17985         * doc/options.texi (Option file format): Fix bad indentation,
17986         restoring dropped sentence.
17987
17988 2009-02-28  Jan Hubicka  <jh@suse.cz>
17989
17990         * tree-inline.c (tree_function_versioning): Output debug info.
17991
17992 2009-02-28  Jan Hubicka  <jh@suse.cz>
17993
17994         PR debug/39267
17995         * tree-inline.c (setup_one_parameter): Do not copy propagate
17996         arguments when not optimizing.
17997
17998 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
17999
18000         PR target/39327
18001         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
18002         (avx_addsubv4df3): Likewise.
18003         (*avx_addsubv4sf3): Likewise.
18004         (sse3_addsubv4sf3): Likewise.
18005         (*avx_addsubv2df3): Likewise.
18006         (sse3_addsubv2df3): Likewise.
18007         (avx_unpckhps256): Correct item selectors.
18008         (avx_unpcklps256): Likewise.
18009         (avx_unpckhpd256): Likewise.
18010         (avx_unpcklpd256): Likewise.
18011
18012 2009-02-28  Jan Hubicka  <jh@suse.cz>
18013
18014         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
18015         static vars.
18016         (copy_arguments_for_versioning): If var is declared don't declare it.
18017         (tree_function_versioning): First setup substitutions and then copy
18018         args.
18019
18020 2009-02-27  Jan Hubicka  <jh@suse.cz>
18021
18022         PR debug/39267
18023         * cgraph.h (varpool_output_debug_info): Remove.
18024         * cgraphunit.c (varpool_output_debug_info): Remove.
18025         * dwarf2out.c (deferred_locations_struct): New struct
18026         (deferred_locations): New type.
18027         (deferred_locations_list): New static var.
18028         (deffer_location): New function.
18029         (gen_variable_die): Use it.
18030         (decls_for_scope): Output info on local static vars.
18031         (dwarf2out_finish): Process deferred locations.
18032         * varpool.c (varpool_output_debug_info): Remove.
18033
18034 2009-02-27  Jan Hubicka  <jh@suse.cz>
18035
18036         PR debug/39267
18037         * tree.h (TREE_PROTECTED): Fix comment.
18038         (BLOCK_HANDLER_BLOCK): Remove.
18039         (struct tree_block): Remove handler_block add body_block.
18040         (inlined_function_outer_scope_p): New.
18041         (is_body_block): Remove.
18042         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
18043         * dwarf2out.c (is_inlined_entry_point): Remove.
18044         (add_high_low_attributes): Use inlined_function_outer_scope_p.
18045         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
18046         code.
18047         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
18048         * gimplify.c (gimplify_expr): Gimplify body blocks.
18049         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
18050         block with multiple subblocks.
18051         (dump_scope_block): Prettier output; dump more flags and info.
18052         (dump_scope_blocks): New.
18053         (remove_unused_locals): Use dump_scope_blocks.
18054         * tree-flow.h (dump_scope_blocks): Declare.
18055         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
18056         * stmt.c (is_body_block): Remove.
18057         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
18058         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
18059
18060 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
18061
18062         PR middle-end/39308
18063         * graphite.c (graphite_loop_normal_form): Do not call
18064         number_of_iterations_exit from a gcc_assert.
18065
18066 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18067
18068         * config/s390/s390.c (s390_swap_cmp): Look for conditional
18069         jumps if COND is NULL.
18070         (find_cond_jump): New function.
18071         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
18072         * config/s390/s390.md: Remove z10_cobra attribute value.
18073
18074 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
18075
18076         * config/alpha/alpha.h (alpha_expand_mov): Return false if
18077         force_const_mem returns NULL_RTX.
18078
18079 2009-02-26  Jan Hubicka  <jh@suse.cz>
18080
18081         PR debug/39267
18082         * cgraph.h (varpool_output_debug_info): Remove.
18083         * cgraphunit.c (varpool_output_debug_info): Remove.
18084         * dwarf2out.c (deferred_locations_struct): New struct
18085         (deferred_locations): New type.
18086         (deferred_locations_list): New static var.
18087         (deffer_location): New function.
18088         (gen_variable_die): Use it.
18089         (decls_for_scope): Output info on local static vars.
18090         (dwarf2out_finish): Process deferred locations.
18091         * varpool.c (varpool_output_debug_info): Remove.
18092
18093 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
18094
18095         PR rtl-optimization/39241
18096         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
18097         to subreg_offset_representable_p.
18098
18099 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
18100
18101         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
18102         execute function prototype.  Get f and nregs from max_reg_num
18103         and get_insns.  Remove the first backward pass as it's dead,
18104         guard the forward pass by flag_expensive_optimizations.
18105         (rest_of_handle_regmove): Delete.
18106         (pass_regmove): Replace it with regmove_optimize.
18107
18108 2009-02-25  Martin Jambor  <mjambor@suse.cz>
18109
18110         PR tree-optimization/39259
18111         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
18112         calls_alloca function flags.
18113         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
18114         calls are detected.
18115
18116 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
18117
18118         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
18119         flags_set_1_rtx, flags_set_1_set): Delete.
18120         (regmove_optimize): Do not call mark_flags_life_zones.
18121
18122 2009-02-24  Julian Brown  <julian@codesourcery.com>
18123
18124         PR target/35965
18125         * config/arm/arm.c (require_pic_register): Only set
18126         cfun->machine->pic_reg once per function.
18127
18128 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
18129
18130         * doc/invoke.texi (Link Options): Document an easier way to pass
18131         options that take arguments to the GNU linker using -Xlinker and -Wl.
18132
18133 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
18134
18135         PR target/33785
18136         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
18137
18138 2009-02-24  Richard Guenther  <rguenther@suse.de>
18139
18140         PR debug/39285
18141         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
18142
18143 2009-02-24  Richard Guenther  <rguenther@suse.de>
18144             Zdenek Dvorak  <ook@ucw.cz>
18145
18146         PR tree-optimization/39233
18147         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
18148         from converting them to a generic type.
18149
18150 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
18151
18152         PR tree-optimization/39260
18153         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
18154         contains a condition with a real type.
18155         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
18156
18157 2009-02-23  Jason Merrill  <jason@redhat.com>
18158
18159         PR c++/38880
18160         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
18161         narrowing_initializer_constant_valid_p.
18162         (narrowing_initializer_constant_valid_p): Don't return
18163         null_pointer_node for adding a pointer to itself.
18164
18165 2009-02-23  Jan Hubicka  <jh@suse.cz>
18166
18167         PR c/12245
18168         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
18169         resizing.
18170
18171 2009-02-23  Jan Hubicka  <jh@suse.cz>
18172
18173         PR tree-optimization/37709
18174         * tree.c (block_ultimate_origin): Move here from dwarf2out.
18175         * tree.h (block_ultimate_origin): Declare.
18176         * dwarf2out.c (block_ultimate_origin): Move to tree.c
18177         * tree-ssa-live.c (remove_unused_scope_block_p):
18178         Eliminate blocks containig no instructions nor live variables nor
18179         nested blocks.
18180         (dump_scope_block): New function.
18181         (remove_unused_locals): Enable removal of dead blocks by default;
18182         enable dumping at TDF_DETAILS.
18183
18184 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
18185
18186         * config/i386/i386.c (classify_argument): Don't allow COImode
18187         and OImode.
18188         (function_arg_advance_32): Don't allow OImode.
18189         (function_arg_32): Likewise.
18190         (function_value_32): Likewise.
18191         (return_in_memory_32): Likewise.
18192         (function_arg_64): Remove OImode comment.
18193
18194 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
18195
18196         PR target/39261
18197         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
18198         ix86_expand_vector_set for V4DImode in 64bit mode only.
18199         (ix86_expand_vector_init_one_var): Likewise.
18200
18201 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
18202
18203         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
18204
18205 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
18206
18207         PR bootstrap/39257
18208         * loop-iv.c: Revert last change.
18209         * emit-rtl.c: Likewise.
18210
18211 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
18212
18213         PR target/39256
18214         * config/i386/i386.c (type_natural_mode): Remove an extra
18215         space in the warning message.
18216         (function_value_32): Handle 32-byte vector modes.
18217         (return_in_memory_32): Likewise.
18218
18219 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
18220
18221         * loop-iv.c (truncate_value): New function.
18222         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
18223         of lowpart_subreg.
18224         (lowpart_subreg): Move to...
18225         * emit-rtl.c: ...here.
18226
18227 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
18228
18229         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
18230         accidental and undocumented change at revision 140860.
18231
18232 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
18233
18234         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
18235         take gimple_seq * arguments.
18236         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
18237         types_compatible_p langhook.
18238
18239 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
18240             Joseph Myers  <joseph@codesourcery.com>
18241
18242         * config/arm/arm.c (arm_builtin_va_list): New function.
18243         (arm_expand_builtin_va_start): Likewise.
18244         (arm_gimplify_va_arg_expr): Likewise.
18245         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
18246         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
18247         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
18248         (va_list_type): New variable.
18249         (arm_mangle_type): Mangle va_list_type appropriately.
18250
18251 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
18252
18253         PR middle-end/39157
18254         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
18255         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
18256         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
18257         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
18258         parameter to 1000 for -O1 by default.
18259         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
18260         parameter.
18261         * loop-invariant.c: Include params.h.
18262         (move_loop_invariants): Don't call move_single_loop_invariants on
18263         very large loops.
18264
18265 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
18266
18267         * calls.c (emit_library_call_value_1): Use slot_offset instead of
18268         offset when calculating bounds for indexing stack_usage_map.  Fixes
18269         a buffer overflow with certain target setups.
18270
18271 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
18272
18273         PR target/39240
18274         * calls.c (expand_call): Clear try_tail_call if caller and callee
18275         disagree in promotion of function return value.
18276
18277 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
18278
18279         PR target/39175
18280         * c-common.c (c_determine_visibility): If visibility changed and
18281         DECL_RTL has been already set, call make_decl_rtl to update symbol
18282         flags.
18283
18284 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18285
18286         PR c++/39188
18287         * varasm.c (assemble_variable): Don't check DECL_NAME when
18288         globalizing a variable.
18289
18290 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
18291
18292         PR c/38483
18293         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
18294         expression before any __builtin_trap call.
18295         * c-typeck.c (build_function_call): Convert and check function
18296         arguments before generating a call to a trap.  Evaluate the
18297         function arguments before the trap.
18298
18299 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
18300
18301         PR target/39228
18302         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
18303         (UNSPEC_FXAM_MEM): New unspec.
18304         (fxam<mode>2_i387_with_temp): New insn and split pattern.
18305         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
18306         memory using fxam<mode>2_i387_with_temp to remove excess precision.
18307
18308 2009-02-19  Richard Guenther  <rguenther@suse.de>
18309
18310         PR tree-optimization/39207
18311         PR tree-optimization/39074
18312         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
18313         storedanything_tree): New.
18314         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
18315         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
18316         (build_succ_graph): Add edges from STOREDANYTHING to all
18317         non-direct nodes.
18318         (init_base_vars): Initialize STOREDANYTHING.
18319         (compute_points_to_sets): Free substitution info after
18320         building the succ graph.
18321         (ipa_pta_execute): Likewise.
18322
18323         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
18324         field.
18325         (do_ds_constraint): Do not add to special var or non-pointer
18326         field solutions.
18327         (type_could_have_pointers): Split out from ...
18328         (could_have_pointers): ... here.  For arrays use the element type.
18329         (create_variable_info_for): Initialize may_have_pointers.
18330         (new_var_info): Likewise.
18331         (handle_lhs_call): Make the HEAP variable unknown-sized.
18332         (intra_create_variable_infos): Use a type with pointers for
18333         PARM_NOALIAS, make it unknown-sized.
18334
18335 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18336
18337         PR target/39224
18338         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
18339
18340 2009-02-18  Jason Merrill  <jason@redhat.com>
18341
18342         PR target/39179
18343         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
18344         value if DECL_EXTERNAL.
18345         * tree-sra.c (sra_walk_gimple_assign): Likewise.
18346         * target.h (gcc_target::binds_local_p): Clarify "module".
18347         * tree.h (TREE_PUBLIC): Clarify "module".
18348
18349 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
18350
18351         PR target/38891
18352         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
18353         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
18354
18355 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
18356
18357         PR target/39082
18358         * c.opt (Wabi): Support C and ObjC.
18359         (Wpsabi): New.
18360
18361         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
18362
18363         * config/i386/i386.c (classify_argument): Warn once about the ABI
18364         change when passing union with long double.
18365
18366         * doc/invoke.texi: Update -Wabi for warning psABI changes.
18367
18368 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
18369
18370         PR c/35447
18371         * c-parser.c (c_parser_compound_statement): Always enter and leave
18372         a scope.
18373
18374 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18375
18376         PR target/34587
18377         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
18378
18379 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
18380
18381         PR tree-optimization/36922
18382         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
18383         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
18384         Likewise.
18385
18386 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18387
18388         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
18389         to 0 for EABI64.
18390
18391 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18392
18393         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
18394
18395 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18396
18397         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
18398         tree sharing.
18399
18400 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
18401             Richard Sandiford  <rdsandiford@googlemail.com>
18402
18403         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
18404         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
18405         (loongson_biadd): ...this.
18406
18407 2009-02-17  Richard Guenther  <rguenther@suse.de>
18408
18409         PR tree-optimization/39202
18410         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
18411         a var make sure to follow existing collapses.
18412
18413 2009-02-17  Richard Guenther  <rguenther@suse.de>
18414
18415         PR middle-end/39214
18416         * langhooks.c (lhd_print_error_function): Check for NULL block.
18417
18418 2009-02-17  Richard Guenther  <rguenther@suse.de>
18419
18420         PR tree-optimization/39204
18421         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
18422         of the PHI arg.
18423
18424 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
18425
18426         * config/soft-fp/double.h: Update from glibc CVS.
18427
18428 2009-02-17  Richard Guenther  <rguenther@suse.de>
18429
18430         PR tree-optimization/39207
18431         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
18432         strict-aliasing warnings for pointers pointing to NULL.
18433
18434 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
18435
18436         PR c/35446
18437         * c-parser.c (c_parser_braced_init): Call pop_init_level when
18438         skipping until next close brace.
18439
18440 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
18441
18442         PR target/37049
18443         * config/i386/i386.c (ix86_expand_push): Set memory alignment
18444         to function argument boundary.
18445
18446 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
18447
18448         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
18449         in the lea_add. Reload eventually constraints it properly.
18450         * config/picochip/constraints.md: Remove the target constraint
18451         "b", since it is not needed anymore.
18452
18453 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
18454
18455         * gthr-dce.h: Uglify function parameter and local variable names.
18456         * gthr-gnat.h: Likewise.
18457         * gthr-mipssde.h: Likewise.
18458         * gthr-nks.h: Likewise.
18459         * gthr-posix95.h: Likewise.
18460         * gthr-posix.h: Likewise.
18461         * gthr-rtems.h: Likewise.
18462         * gthr-single.h: Likewise.
18463         * gthr-solaris.h: Likewise.
18464         * gthr-tpf.h: Likewise.
18465         * gthr-vxworks.h: Likewise.
18466         * gthr-win32.h: Likewise.
18467
18468 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
18469
18470         PR target/39196
18471         * config/i386/i386.md: Restrict the new peephole2 to move
18472         between MMX/SSE registers.
18473
18474 2009-02-15  Richard Guenther  <rguenther@suse.de>
18475
18476         Revert
18477         2009-02-13  Richard Guenther  <rguenther@suse.de>
18478
18479         * configure.ac: Enable LFS.
18480         * configure: Re-generate.
18481         * config.in: Likewise.
18482
18483 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18484
18485         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
18486         spu_srqwbyte, spu_srqwbytebc): Define.
18487         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
18488         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
18489         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
18490         "shrqby_<mode>"): New insn-and-split patterns.
18491         * config/spu/spu.c (expand_builtin_args): Determine and return
18492         number of operands using spu_builtin_description data.
18493         (spu_expand_builtin_1): Use it.
18494
18495 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
18496
18497         PR target/38056
18498         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
18499         TARGET_CONST_GP.
18500
18501 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18502
18503         PR target/39149
18504         * config/i386/i386.c (override_options): Correct warning
18505         messages for -malign-loops, -malign-jumps and -malign-functions.
18506
18507 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18508
18509         PR target/39152
18510         * config/i386/i386.md: Restrict the new peephole2 to move
18511         between the general purpose registers.
18512
18513 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18514
18515         PR target/39162
18516         * config/i386/i386.c (type_natural_mode): Add a new argument.
18517         Return the original mode and warn ABI change if vector size is 32byte.
18518         (function_arg_advance): Updated.
18519         (function_arg): Likewise.
18520         (ix86_function_value): Likewise.
18521         (ix86_return_in_memory): Likewise.
18522         (ix86_sol10_return_in_memory): Likewise.
18523         (ix86_gimplify_va_arg): Likewise.
18524         (function_arg_32): Don't warn ABX ABI change here.
18525         (function_arg_64): Likewise.
18526
18527 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18528
18529         * loop-iv.c (implies_p): In the final case, test that operands 0
18530         of the two comparisons match.
18531
18532         * config/bfin/bfin.c (find_prev_insn_start): New function.
18533         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
18534         (find_next_insn_start): Move.
18535
18536 2009-02-13  Richard Guenther  <rguenther@suse.de>
18537
18538         * configure.ac: Enable LFS.
18539         * configure: Re-generate.
18540         * config.in: Likewise.
18541
18542 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
18543
18544         PR c/35444
18545         * c-parser.c (c_parser_parms_list_declarator): Discard pending
18546         sizes on syntax error after some arguments have been parsed.
18547
18548 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18549
18550         * doc/invoke.texi (-fira): Remove.
18551
18552 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18553
18554         * caller-save.c: Replace regclass.c with reginfo.c in comments.
18555         * recog.c: Likewise.
18556         * rtl.h: Likewise.
18557
18558 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
18559
18560         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
18561         (umul_ppmm): Likewise.
18562         (count_leading_zeros): Likewise.
18563         (count_trailing_zeros): Likewise.
18564         (UMUL_TIME): Likewise.
18565
18566 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18567
18568         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
18569         soft-fp/t-softfp to tmake_file.
18570
18571         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
18572         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
18573         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
18574         IA64_BUILTIN_INFQ]: New.
18575         (ia64_init_builtins): Initialize __builtin_infq,
18576         __builtin_fabsq and __builtin_copysignq if not HPUX.
18577         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
18578         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
18579
18580         * config/ia64/lib1funcs.asm (__divtf3): Define only if
18581         SHARED is defined.
18582         (__fixtfti): Likewise.
18583         (__fixunstfti): Likewise.
18584         (__floattitf): Likewise.
18585
18586         * config/ia64/libgcc-glibc.ver: New.
18587         * config/ia64/t-fprules-softfp: Likewise.
18588         * config/ia64/sfp-machine.h: Likewise.
18589
18590         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
18591         (LIBGCC2_TF_CEXT): Likewise.
18592         (TF_SIZE): Likewise.
18593         (TARGET_INIT_LIBFUNCS): Likewise.
18594
18595         * config/ia64/t-glibc (SHLINB_MAPFILES):
18596         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
18597
18598 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18599
18600         * config/i386/i386.c (construct_container): Rewrite processing
18601         BLKmode with X86_64_SSE_CLASS.
18602
18603 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
18604
18605         PR target/39152
18606         * config/i386/i386.md: Replace simplify_replace_rtx with
18607         replace_rtx in the new peephole2.
18608
18609 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
18610
18611         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
18612         loop unrolling do not happen at -O2.
18613
18614 2009-02-12  Michael Matz  <matz@suse.de>
18615
18616         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
18617
18618 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18619
18620         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
18621         for -g3.
18622
18623 2009-02-12  Ben Elliston  <bje@au.ibm.com>
18624
18625         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
18626         patterns when updating the back chain.  Missed in the 2009-02-10
18627         change.
18628
18629 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
18630
18631         * doc/extend.texi (Decimal Floating Types): Update identifier of
18632         draft TR and list of missing support.
18633
18634 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18635
18636         PR middle-end/39154
18637         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
18638         bit to variable length decl's flags, add it also to its
18639         pointer replacement variable.
18640
18641 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
18642             Jakub Jelinek  <jakub@redhat.com>
18643
18644         PR target/39118
18645         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
18646         (memory_blockage): New expander.
18647         (*memory_blockage): New insn pattern.
18648         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
18649         instead of general blockage at the end of function prologue when
18650         frame pointer is used to access red zone area.  Do not emit blockage
18651         when profiling, it is emitted in generic code.
18652         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
18653         function epilogue when frame pointer is used to access red zone area.
18654
18655 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
18656
18657         PR target/38824
18658         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
18659         by arithmetic with memory operands.
18660         * config/i386/predicates.md (commutative_operator): New.
18661
18662 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
18663
18664         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
18665         bulleted lists.
18666
18667 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
18668
18669         * alias.h (record_alias_subset): Declare.
18670         * alias.c (record_alias_subset): Make global.
18671
18672 2009-02-10  Nick Clifton  <nickc@redhat.com>
18673
18674         * tree-parloops.c: Change license to GPLv3.
18675         * ipa-struct-reorg.c: Change license to GPLv3.
18676         * ipa-struct-reorg.h: Change license to GPLv3.
18677
18678 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
18679
18680         PR c/39084
18681         * c-decl.c (start_struct): Return NULL on error.
18682
18683 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
18684
18685         PR middle-end/39124
18686         * cfgloopmanip.c (remove_path): Call remove_bbs after
18687         cancel_loop_tree, not before it.
18688
18689         PR target/39139
18690         * function.h (struct function): Add has_local_explicit_reg_vars bit.
18691         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
18692         VAR_DECLs were seen.
18693         * tree-ssa-live.c (remove_unused_locals): Recompute
18694         cfun->has_local_explicit_reg_vars.
18695         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
18696         copies or clearings if cfun->has_local_explicit_reg_vars.
18697
18698 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
18699
18700         PR target/39118
18701         * config/i386/i386.c (expand_prologue): Emit blockage at the end
18702         of function prologue when frame pointer is used to access
18703         red zone area.
18704
18705 2009-02-10  Richard Guenther  <rguenther@suse.de>
18706
18707         PR middle-end/39127
18708         * gimplify.c (gimple_regimplify_operands): Always look if
18709         we need to create a temporary.
18710
18711 2009-02-10  Richard Guenther  <rguenther@suse.de>
18712
18713         PR tree-optimization/39132
18714         * tree-loop-distribution.c (todo): New global var.
18715         (generate_memset_zero): Trigger TODO_rebuild_alias.
18716         (tree_loop_distribution): Return todo.
18717
18718 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
18719
18720         PR target/39119
18721         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
18722         (x86_64_reg_class_name): Removed.
18723         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
18724         first one isn't X86_64_SSE_CLASS or any other ones aren't
18725         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
18726         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
18727         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
18728         and 3 X86_64_SSEUP_CLASS.
18729         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
18730         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
18731
18732 2009-02-10  Ben Elliston  <bje@au.ibm.com>
18733
18734         * config/rs6000/rs6000.md (allocate_stack): Always use an update
18735         form instruction to update the stack back chain word, even if the
18736         user has disabled the generation of update instructions.
18737         (movdi_<mode>_update_stack): New.
18738         (movsi_update_stack): Likewise.
18739         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
18740         always use an update form instruction to update the stack back
18741         chain word.
18742
18743 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
18744
18745         PR middle-end/38953
18746         * graphite.c (if_region_set_false_region): After moving a region in
18747         the false branch of a condition, remove the empty dummy basic block.
18748         (gloog): Remove wrong fix for PR38953.
18749
18750 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18751
18752         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
18753         generation due to implicit sign extension.
18754
18755 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
18756
18757         PR middle-end/38981
18758         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
18759         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
18760
18761 2009-02-09  Richard Guenther  <rguenther@suse.de>
18762
18763         PR middle-end/35202
18764         * convert.c (convert_to_real): Disable (float)fn((double)x)
18765         to fnf(x) conversion if errno differences may occur and
18766         -fmath-errno is set.
18767
18768 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
18769
18770         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
18771         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18772         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
18773
18774 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18775
18776         PR c/35434
18777         * c-common.c (handle_alias_attribute): Disallow attribute for
18778         anything not a FUNCTION_DECL or VAR_DECL.
18779
18780 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
18781
18782         PR c/39035
18783         * real.c (do_compare): Special-case compare of zero against
18784         decimal float value.
18785
18786 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18787
18788         PR c/36432
18789         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
18790         as indicating flexible array members unless the field itself is
18791         being declarared as the incomplete array.
18792
18793 2009-02-06  Jan Hubicka  <jh@suse.cz>
18794
18795         PR tree-optimization/38844
18796         * ipa-inline.c (try_inline): Stop inlining recursion when edge
18797         is already inlined.
18798
18799 2009-02-06  Richard Guenther  <rguenther@suse.de>
18800
18801         PR middle-end/38977
18802         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
18803         fork because we may expand it as __gcov_fork.
18804
18805 2009-02-06  Nick Clifton  <nickc@redhat.com>
18806
18807         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
18808
18809 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
18810
18811         PR tree-optimization/35659
18812         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
18813         vn_phi_eq): Shortcut if hashcode does not match.
18814         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
18815         NULL operands.
18816         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
18817         and avoid iterative_hash_expr.
18818         (FOR_EACH_VALUE_ID_IN_SET): New.
18819         (value_id_compare): Remove.
18820         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
18821         sort expressions by value id.
18822
18823 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18824
18825         PR target/38991
18826         * config/sh/predicates.md (general_movsrc_operand): Don't check
18827         the subreg of system registers here.
18828
18829 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
18830
18831         PR c++/39106
18832         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
18833         on the copied decl.
18834
18835 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
18836
18837         PR rtl-optimization/39110
18838         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
18839         addresses, not aligned ones.
18840
18841 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
18842             Richard Guenther  <rguenther@suse.de>
18843
18844         PR tree-optimization/39100
18845         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
18846         comment says and add edges.
18847
18848 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
18849
18850         PR c/35435
18851         * c-common.c (handle_tls_model_attribute): Ignore attribute for
18852         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
18853
18854 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
18855
18856         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
18857         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
18858         register_bb_in_sese, new_sese, free_sese): Moved.
18859         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
18860         outermost_loop_in_scop, build_scop_iteration_domain,
18861         expand_scalar_variables_ssa_name, get_vdef_before_scop,
18862         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
18863         Use loop_in_sese_p instead of loop_in_scop_p.
18864         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
18865         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
18866         (scopdet_basic_block_info): Fix bug in scop detection.
18867         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
18868         eq_loop_to_cloog_loop): Remove.
18869         (nb_loops_around_loop_in_scop, nb_loop
18870         ref_nb_loops): Moved here...
18871         * graphite.h (ref_nb_loops): ... from here.
18872         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
18873         (loop_domain_dim, loop_iteration_vector_dim): Remove.
18874         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
18875         * testsuite/gcc.dg/graphite/scop-19.c: New
18876
18877 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
18878             Hans-Peter Nilsson  <hp@axis.com>
18879
18880         PR rtl-optimization/37889
18881         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
18882         Move offset handling from PLUS to before the switch.  Use new
18883         arguments when considering SYMBOL_REFs too.
18884         (rtx_addr_can_trap_p): Pass dummy offset and size.
18885         (enum may_trap_p_flags): Remove.
18886         (may_trap_p_1): Pass size from MEM_SIZE.
18887
18888         PR rtl-optimization/38921
18889         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
18890         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
18891         * rtlanal.c (may_trap_after_code_motion_p): Delete.
18892         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
18893
18894 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
18895
18896         AVX Programming Reference (January, 2009)
18897         * config/i386/sse.md (*vpclmulqdq): New.
18898
18899 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
18900
18901         PR tree-optimization/38977
18902         PR gcov-profile/38292
18903         * calls.c (special_function_p): Disregard __builtin_ prefix.
18904
18905 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
18906
18907         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
18908         non-indexable addresses even before reload.
18909
18910 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18911
18912         PR c/29129
18913         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
18914         as having variable size.  Do not give an error for unnamed
18915         parameters with [*] declarators.  Give a warning for type names
18916         with [*] declarators and mark them as variable size.
18917         * c-parser.c (c_parser_sizeof_expression): Do not give an error
18918         for sizeof applied to [*] type names.
18919
18920 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18921
18922         PR C++/36607
18923         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
18924
18925 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18926
18927         * gcc.c (process_command): Update copyright notice dates.
18928         * gcov.c (print_version): Likewise.
18929         * gcov-dump.c (print_version): Likewise.
18930         * mips-tfile.c (main): Likewise.
18931         * mips-tdump.c (main): Likewise.
18932
18933 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18934
18935         PR c/35433
18936         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
18937         for composite type involving a zero-length array type.
18938
18939 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18940
18941         PR target/35318
18942         * function.c (match_asm_constraints_1): Skip over
18943         initial optional % in the constraint.
18944
18945         PR inline-asm/39059
18946         * c-parser.c (c_parser_postfix_expression): If fixed point is not
18947         supported, don't accept FIXED_CSTs.
18948         * c-decl.c (finish_declspecs): Error if fixed point is not supported
18949         and _Sat is used without _Fract/_Accum.  Set specs->type to
18950         integer_type_node for cts_fract/cts_accum if fixed point is not
18951         supported.
18952
18953 2009-02-02  Catherine Moore  <clm@codesourcery.com>
18954
18955         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
18956
18957 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
18958
18959         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
18960         (ABI_HAS_64BIT_SYMBOLS): Use it.
18961         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
18962
18963 2009-02-02  Paul Brook  <paul@codesourcery.com>
18964
18965         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
18966
18967 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
18968
18969         PR inline-asm/39058
18970         * recog.h (asm_operand_ok): Add constraints argument.
18971         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
18972         recurse on matching constraint.
18973         (check_asm_operands): Pass constraints as 3rd argument to
18974         asm_operand_ok.  Don't look up matching constraint here.
18975         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
18976         to asm_operand_ok.
18977
18978 2009-02-02  Ben Elliston  <bje@au.ibm.com>
18979
18980         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
18981         TARGET_NARROW_VOLATILE_BITFIELD macro names.
18982
18983 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18984
18985         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
18986         information.  Remove some obsolete information.  Reorganize.
18987
18988         * config/pa/fptr.c: Revert license to GPL 2.
18989         * config/pa/milli64.S: Likewise.
18990
18991 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
18992
18993         PR target/38904
18994         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
18995         LIBRARY name in, instead of hard-coding it.
18996         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
18997         extra target make frag to tmake_files according to EH model.
18998         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
18999         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
19000         frags that define makefile variable EH_MODEL appropriately.
19001         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
19002         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
19003         to "-sjlj" according to type of EH configured.
19004         (LIBGCC_SONAME):  Concatenate it to shared library base name.
19005         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
19006         to "_sjlj" according to type of EH configured.
19007         (LIBGCC_SONAME):  Concatenate it to shared library base name.
19008         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
19009         (SHLIB_LINK):  Add missing semicolon to if-else construct.
19010         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
19011         string value of "pe_dll" command-line option.
19012         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
19013         (SHLIB_SONAME):  Use it when overriding t-cygming default.
19014         (SHLIB_IMPLIB):  Override t-cygming default.
19015         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
19016         string value of "pe_dll" command-line option.
19017
19018 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
19019
19020         PR target/38952
19021         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
19022         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
19023
19024 2009-01-31  Richard Guenther  <rguenther@suse.de>
19025
19026         PR tree-optimization/38937
19027         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
19028         computing the transitive closure.
19029
19030 2009-01-30  Richard Guenther  <rguenther@suse.de>
19031
19032         PR tree-optimization/39041
19033         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
19034         Propagate variable indices only if the types match for this stmt.
19035
19036 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
19037
19038         PR target/39013
19039         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
19040         inline but never defined.
19041
19042 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
19043
19044         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
19045         (*insv_h_di_reg_extimm): New insn.
19046         (*insv_l<mode>_reg_extimm): New insn.
19047
19048 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
19049
19050         * config/picochip/picochip.c (flag_conserve_stack): set
19051         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
19052         fconserve-stack. Reduce call-overhead used by inliner.
19053
19054 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
19055
19056         PR/38157
19057         * common.opt (flag_conserve_stack): Initialised to zero.
19058
19059 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
19060
19061         PR/39002
19062         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
19063         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
19064         method.
19065
19066 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
19067
19068         * ira-color.c (allocno_reload_assign): Update comments.
19069         * regmove.c (regmove_optimize): Likewise.
19070
19071         * ra.h: Removed.
19072
19073 2009-01-29  Robert Millan  <rmh@aybabtu.com>
19074
19075         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
19076         * config/i386/kopensolaris-gnu.h: New file.  Undefine
19077         `MD_UNWIND_SUPPORT'.
19078         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
19079
19080 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
19081
19082         PR tree-optimization/39007
19083         * tree-loop-distribution.c (generate_builtin): Use
19084         recompute_dominator to compute the immediate dominator of the
19085         basic block just after the loop.
19086
19087 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19088
19089         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
19090         (ASM_OUTPUT_DWARF_PCREL): Define.
19091
19092 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
19093
19094         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
19095         * doc/passes.texi: Remove entries about regclass, local-alloc, and
19096         global.  Modify entries about regmove and IRA.
19097
19098         * ra-conflict.c: Remove the file.
19099
19100         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
19101
19102         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
19103         (pass_regclass_init): Rename to pass_reginfo_init.
19104
19105         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
19106
19107         * toplev.h (flag_ira): Remove.
19108
19109         * caller-save.c (setup_save_areas): Remove flag_ira.
19110
19111         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
19112
19113         * global.c: Remove the file.
19114
19115         * opts.c (decode_options): Remove flag_ira.
19116
19117         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
19118
19119         * regmove.c: Modify file description.
19120         (find_use_as_address, try_auto_increment): Define them only if
19121         AUTO_INC_DEC is defined.
19122         (replacement_quality, replace_in_call_usage, fixup_match_1,
19123         stable_and_no_regs_but_for_p): Remove.
19124         (reg_set_in_bb): Make it static.
19125         (regmove_optimize): Remove flag_ira and code which worked for
19126         !flag_ira.
19127
19128         * local-alloc.c: Remove the file.
19129
19130         * common.opt (fira): Remove.
19131
19132         * ira.c: Include except.h.
19133         (eliminable_regset): Move from global.c.
19134         (mark_elimination): Ditto.  Remove flag_ira.
19135         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
19136         equiv_mem_modified, validate_equiv_mem_from_store,
19137         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
19138         contains_replace_regs, memref_referenced_p, memref_used_between_p,
19139         no_equiv, recorded_label_ref): Move from local-alloc.c.
19140         (update_equiv_regs): Ditto.  Make it static.
19141         (print_insn_chain, print_insn_chains): Move it from global.c.
19142         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
19143         (build_insn_chain): Ditto.  Make it static.
19144         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
19145         Rename to init_live_subregs.
19146         (gate_ira): Remove flag_ira.
19147
19148         * regclass.c: Rename reginfo.c.  Change file description.
19149         (FORBIDDEN_INC_DEC_CLASSES): Remove.
19150         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
19151         (init_reg_sets_1): Remove code for evaluation of
19152         reg_class_superclasses and losing_caller_save_reg_set.
19153         (init_regs): Remove init_reg_autoinc.
19154         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
19155         ok_for_base_p_nonstrict): Remove.
19156         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
19157         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
19158         corresponding entries.
19159         (dump_regclass, record_operand_costs, scan_one_insn,
19160         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
19161         record_address_regs, auto_inc_dec_reg_p): Remove.
19162         (gt-regclass.h): Rename to gt-reginfo.h.
19163
19164         * rtl.h (dump_global_regs, retry_global_alloc,
19165         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
19166
19167         * Makefile.in (RA_H): Remove.
19168         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
19169         Rename regclass.o to reginfo.o.
19170         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
19171         gt-reginfo.h.
19172         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
19173         (GTFILES): Rename regclass.c to reginfo.c.
19174
19175         * passes.c (init_optimization_passes): Remove pass_local_alloc and
19176         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
19177
19178         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
19179         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
19180         Remove flag_ira.
19181         (finish_spills): Ditto.  Remove code for !flag_ira.
19182
19183 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
19184
19185         PR middle-end/35854
19186         * doc/invoke.texi (rtl debug options): Complete rewrite.
19187         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
19188         to auto_inc_dec".
19189         * mode-switching.c (pass_mode_switching): Rename pass from
19190         "mode-sw" to "mode_sw".
19191         * except.c (pass_convert_to_eh_ranges): Rename pass from
19192         "eh-ranges" to "eh_ranges".
19193         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
19194         to "subreg1".
19195
19196
19197 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
19198             Alexander Monakov  <amonakov@ispras.ru>
19199
19200         PR middle-end/38857
19201         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
19202         register.
19203         (move_exprs_to_boundary): Change return type and pass through
19204         should_move from move_op.  Relax assert.  Update usage ...
19205         (schedule_expr_on_boundary): ... here.  Use should_move instead of
19206         cant_move.
19207         (move_op_orig_expr_found): Indicate that insn was disconnected from
19208         stream.
19209         (code_motion_process_successors): Do not call after_merge_succs
19210         callback if original expression was not found when traversing any of
19211         the branches.
19212         (code_motion_path_driver): Change return type.  Update prototype.
19213         (move_op): Update comment.  Add a new parameter (should_move).  Update
19214         prototype.  Set *should_move based on indication provided by
19215         move_op_orig_expr_found.
19216
19217 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
19218
19219         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
19220         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
19221         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
19222         * config/rs6000/rs6000.c (rs6000_override_options): Default
19223         avoid-indexed-addresses on for Power6, off for everything else.
19224         (avoiding_indexed_address_p): New function.
19225         (rs6000_legitimize_address): Use it.
19226         (rs6000_legitimate_address): Likewise.
19227         * config/rs6000/rs6000.md (movXX_updateX): Likewise
19228
19229 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
19230
19231         PR tree-optimization/38997
19232         * tree-loop-distribution.c (generate_memset_zero): Use
19233         POINTER_PLUS_EXPR for a pointer addition.
19234
19235 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
19236
19237         * config/s390/s390.md (bswap<mode>2): New pattern added.
19238
19239 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
19240
19241         * config/s390/s390.md (*tls_load_31): Added type attribute.
19242
19243 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
19244
19245         * config/s390/s390.md: Fix a few comments.
19246
19247 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
19248
19249         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
19250         (*tm<mode>_full): Fixed z10prop attribute.
19251         (*tst<mode>_extimm): Fixed z10prop attribute.
19252         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
19253         (*tstqiCCT_cconly): Fixed z10prop attribute.
19254         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
19255         (*movsi_larl): Fixed z10prop attribute.
19256         (*movsi_zarch): Fixed z10prop attribute.
19257         (*movsi_eas): Fixed z10prop attribute.
19258         (*movhi): Fixed z10prop attribute.
19259         (*movqi): Fixed z10prop attribute.
19260         (*movstrictqi): Fixed z10prop attribute.
19261         (*mov<mode>): Fixed z10prop attribute.
19262         (*movcc): Fixed z10prop attribute.
19263         (*sethighpartdi_64): Fixed z10prop attribute.
19264         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
19265         (*negdi2_sign_cc): Fixed z10prop attribute.
19266         (*negdi2_sign): Fixed z10prop attribute.
19267         (*absdi2_sign_cc): Fixed z10prop attribute.
19268         (*absdi2_sign): Fixed z10prop attribute.
19269         (*negabsdi2_sign_cc): Fixed z10prop attribute.
19270         (*negabsdi2_sign): Fixed z10prop attribute.
19271         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
19272         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
19273         (doloop_si64): Fixed z10prop attribute.
19274         (doloop_si31): Fixed z10prop attribute.
19275         (doloop_long): Fixed z10prop attribute.
19276         (indirect_jump): Fixed z10prop attribute.
19277         (nop): Fixed z10prop attribute.
19278         (main_base_64): Fixed z10prop attribute.
19279         (reload_base_64): Fixed z10prop attribute.
19280
19281 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
19282
19283         PR rtl-optimization/38740
19284         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
19285         if !optimize.
19286         * config/mips/mips.c (mips_reorg): Likewise.
19287
19288 2009-01-28  Richard Guenther  <rguenther@suse.de>
19289
19290         PR tree-optimization/38926
19291         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
19292         with the correct value id to a value.
19293         (do_regular_insertion): Use the value number of edoubleprime
19294         for the value number of the expr.
19295
19296         Revert
19297         2008-08-21  Richard Guenther  <rguenther@suse.de>
19298
19299         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
19300         a PHI ask VN if it is already available.
19301         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
19302         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
19303
19304 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
19305
19306         PR middle-end/38934
19307         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
19308         set to varying whenever max has TREE_OVERFLOW set, similarly
19309         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
19310
19311 2009-01-28  Richard Guenther  <rguenther@suse.de>
19312
19313         PR middle-end/38908
19314         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
19315         uninitialized aggregate uses in call arguments.
19316
19317 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
19318
19319         PR tree-optimization/38984
19320         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
19321         the nothing_id variable if -fno-delete-null-pointer-checks.
19322
19323 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
19324
19325         PR target/38988
19326         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
19327         (set_got_offset_rex64): Ditto.
19328
19329 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
19330
19331         PR target/38941
19332         * doc/extend.texi: Improve local variable with asm reg.
19333
19334 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
19335
19336         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
19337         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
19338         was not supplied then set warn_packed_bitfield_compat to the
19339         default value of 1.
19340         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
19341         against 1.
19342
19343 2009-01-27  Richard Guenther  <rguenther@suse.de>
19344
19345         PR tree-optimization/38503
19346         * cfgexpand.c (expand_gimple_basic_block): Ignore
19347         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
19348         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
19349         variables that cannot have TBAA applied.
19350         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
19351         statements.
19352
19353 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
19354
19355         PR middle-end/38969
19356         * calls.c (initialize_argument_information): Do not wrap complex
19357         arguments in SAVE_EXPR.
19358
19359 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
19360
19361         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
19362         (INSTALL_LIBGCC): Revert typo commit.
19363
19364 2009-01-26  Richard Guenther  <rguenther@suse.de>
19365
19366         PR tree-optimization/38745
19367         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
19368         from special handling.
19369
19370 2009-01-26  Richard Guenther  <rguenther@suse.de>
19371
19372         PR tree-optimization/38745
19373         * tree-ssa.c (execute_update_addresses_taken): Do not include
19374         variables that cannot possibly be a register in not_reg_needs.
19375         Do not clear TREE_ADDRESSABLE on vars that may not become
19376         registers.
19377         * tree-ssa.c (update_alias_info_1): Include those in the set
19378         of addressable vars.
19379
19380 2009-01-26  Richard Guenther  <rguenther@suse.de>
19381
19382         PR middle-end/38851
19383         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
19384         * tree-ssa-dse.c: Include langhooks.h
19385         (execute_simple_dse): Remove stores with zero size.
19386
19387 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
19388
19389         PR c/38957
19390         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
19391         as PLUS_EXPR.
19392
19393 2009-01-24  Julian Brown  <julian@codesourcery.com>
19394
19395         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
19396         config/arm/linux-atomic.c.
19397         * config/arm/linux-atomic.c: New.
19398
19399 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
19400
19401         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
19402         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
19403         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
19404
19405 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
19406
19407         PR c/38938
19408         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
19409         properly.
19410
19411 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
19412
19413         PR tree-optimization/38953
19414         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
19415         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
19416         (gloog): Split the exit of the scop when the scop exit is a loop exit.
19417         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
19418         changed the CFG.
19419
19420 2009-01-24  Paul Brook  <paul@codesourcery.com>
19421
19422         * config/arm/neon.md (neon_type): Move to arm.md.
19423         (neon_mov<VSTRUCT>): Add neon_type attribute.
19424         * config/arm/arm.md (neon_type): Move to here.
19425         (conds): Add "unconditioal" and use as default for NEON insns.
19426
19427 2009-01-24  Ben Elliston  <bje@au.ibm.com>
19428
19429         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
19430         void *' warning from -Wc++-compat.
19431         * Makefile.in (dominance.o-warn): Remove.
19432
19433 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
19434
19435         PR tree-optimization/38932
19436         * fold-const.c (fold_unary_ignore_overflow): New.
19437         * tree.h (fold_unary_ignore_overflow): Declare.
19438         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
19439         * tree-ssa-sccvn.c (visit_reference_op_load,
19440         simplify_unary_expression): Likewise.
19441
19442 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
19443
19444         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
19445         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
19446         regardless of their type.
19447         * c-common.c (handle_packed_attribute): Don't ignore packed on
19448         bitfields.
19449         * c.opt (Wpacked-bitfield-compat): New warning option.
19450         * stor-layout.c (place_field): Warn if offset of a field changed.
19451         * doc/extend.texi (packed): Mention the ABI change.
19452         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
19453         (Warning Options): Add it to the list.
19454
19455 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
19456
19457         * c-opts.c (c_common_post_options): Fix a typo in comments.
19458
19459 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
19460
19461         PR middle-end/38615
19462         * gimplify.c (gimplify_init_constructor): Fix promotion of const
19463         variables to static.
19464         * doc/invoke.texi (-fmerge-all-constants): Update description.
19465
19466 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
19467
19468         PR target/38931
19469         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
19470         (*movdi_1_rex64): Use type "mmx" for alternative 5.
19471
19472 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
19473
19474         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
19475         a word boundary.
19476         (LOCAL_ALIGNMENT): Similarly.
19477
19478 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
19479             Joseph Myers  <joseph@codesourcery.com>
19480
19481         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
19482         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
19483         * config/arm/arm-tune.md: Regenerate.
19484         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
19485         -march=iwmmxt2.
19486
19487 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
19488
19489         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
19490         version number to five.
19491
19492 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
19493
19494         PR c++/38930
19495         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
19496         * c-common.c (set_underlying_type): Likewise.
19497         (is_typedef_decl ): Likewise
19498         * tree.h: Likewise
19499         (set_underlying_type): Likewise.
19500         (is_typedef_type): Likewise.
19501
19502 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
19503
19504         PR middle-end/38587
19505         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
19506         crossing setjmps.
19507
19508 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
19509
19510         PR bootstrap/37660
19511         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
19512         (LIBGCC_SPEC):  Don't define.
19513         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
19514
19515 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
19516
19517         PR rtl-optimization/38879
19518         * alias.c (base_alias_check): Unaligned access via AND address can
19519         alias all surrounding object types except those with sizes equal
19520         or wider than the size of unaligned access.
19521
19522 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
19523
19524         PR c++/26693
19525         * c-decl.c (clone_underlying_type): Move this ...
19526         * c-common.c (set_underlying_type): ... here.
19527         Also, make sure the function properly sets TYPE_STUB_DECL() on
19528         the newly created typedef variant type.
19529         (is_typedef_decl ): New entry point.
19530         * tree.h: Added a new member member_types_needing_access_check to
19531         struct tree_decl_non_common.
19532         (set_underlying_type): New entry point.
19533         (is_typedef_type): Likewise.
19534
19535 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
19536
19537         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
19538         Check whether two instructions have memory references that
19539         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
19540         are helper functions for traversing.
19541         * alias.h (insn_alias_sets_confilict_p): New prototypes.
19542         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
19543         not to draw dependency edge for instructions with non-conflicting
19544         alias sets.
19545
19546 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
19547
19548         PR other/38758
19549         * longlong.h: Update copyright years.  Use soft-fp license notice.
19550         Sync __clz_tab declaration with glibc.
19551
19552 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
19553
19554         PR target/30687
19555         * doc/extend.texi (syscall_linkage): New.
19556         (version_id): Modify.
19557
19558 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19559             Richard Guenther  <rguenther@suse.de>
19560
19561         PR tree-optimization/38747
19562         PR tree-optimization/38748
19563         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
19564         conversion if the base address is an indirect reference and the
19565         aliasing sets could cause issues.
19566
19567 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19568
19569         * common.opt (fgraphite, fgraphite-identity): Add comment for
19570         explaining why these options are not documented.
19571
19572 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19573
19574         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
19575         gimple_call_lhs is NULL.
19576
19577 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19578
19579         PR target/38868
19580         * emit-rtl.c (adjust_address_1): Make sure memref is never
19581         overwritten.
19582
19583 2009-01-20  Ben Elliston  <bje@au.ibm.com>
19584
19585         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19586         const qualifier from arg parameter. Remove unnecessary cast to char *.
19587         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19588         const qualifier from arg 2.
19589
19590 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19591
19592         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
19593
19594 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
19595
19596         PR c/38869
19597         * rtl.h (reinit_regs): New prototype.
19598         * regclass.c: Include ira.h.
19599         (reinit_regs): New.
19600         * Makefile.in (regclass.o): Add ira.h.
19601         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
19602
19603 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
19604
19605         PR target/38736
19606         * c-common.c (handle_aligned_attribute): Use
19607         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
19608         default alignment value.
19609
19610         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
19611
19612         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
19613         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
19614
19615         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
19616         __BIGGEST_ALIGNMENT__.
19617
19618         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
19619
19620 2009-01-18  Richard Guenther  <rguenther@suse.de>
19621
19622         PR tree-optimization/38819
19623         * tree-flow.h (operation_could_trap_helper_p): Declare.
19624         * tree-eh.c (operation_could_trap_helper_p): Export.
19625         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
19626         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
19627         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
19628         are about to insert a possibly trapping instruction and fail
19629         in this case.
19630
19631 2009-01-18  Andreas Schwab  <schwab@suse.de>
19632
19633         * doc/install.texi (Configuration): Remove obsolete paragraph
19634         about use of --with-gnu-ld with --with-gnu-as.
19635
19636 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
19637
19638         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
19639         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
19640         Follow spelling conventions.
19641
19642 2009-01-18  Ben Elliston  <bje@au.ibm.com>
19643
19644         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
19645         C++ warning about implicit conversion from void * to struct
19646         bitmap_head_def *.
19647         (bitmap_obstack_free): Likewise for bitmap_element *.
19648         * Makefile.in (bitmap.o-warn): Remove.
19649
19650 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
19651
19652         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
19653
19654 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
19655             Tobias Grosser  <tobi.grosser@amd.com>
19656
19657         * graphite.c (graphite_trans_scop_block): Do not block single
19658         nested loops.
19659
19660 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
19661
19662         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
19663         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
19664         test with assertion.
19665
19666 2009-01-16  Richard Guenther  <rguenther@suse.de>
19667
19668         PR tree-optimization/38835
19669         PR middle-end/36227
19670         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
19671         and INT + PTR -> (INT)(PTR p+ INT) folding.
19672         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
19673
19674 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
19675
19676         PR target/38554
19677         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
19678         the subreg from a lowpart subreg if it is also casting the value.
19679
19680 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19681             Tobias Grosser  <tobi.grosser@amd.com>
19682
19683         * graphite.c (compare_prefix_loops): New.
19684         (build_scop_canonical_schedules): Rewritten.
19685         (graphite_transform_loops): Move build_scop_canonical_schedules
19686         after build_scop_iteration_domain.
19687
19688 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19689             Tobias Grosser  <tobi.grosser@amd.com>
19690
19691         * graphite.c (add_conditions_to_domain): Add the loops to
19692         the dimension of the iteration domain.  Do copy the domain
19693         only when it exists.
19694         (build_scop_conditions_1): Do not call add_conditions_to_domain.
19695         (add_conditions_to_constraints): New.
19696         (can_generate_code_stmt, can_generate_code): Removed.
19697         (gloog): Do not call can_generate_code.
19698         (graphite_transform_loops): Call add_conditions_to_constraints
19699         after building the iteration domain.
19700
19701 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
19702
19703         PR tree-optimization/38789
19704         * tree-ssa-threadedge.c
19705         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19706         __builtin_constant_p.
19707
19708 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
19709
19710         * dce.c (delete_unmarked_insns): Reversed the order that insns are
19711         examined before deleting them.
19712
19713 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
19714
19715         * function.c (aggregate_value_p): Correctly extract the function
19716         type from CALL_EXPR_FN lookup.
19717
19718 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
19719
19720         * config/picochip/picochip.c (picochip_override_options): Revert
19721         CFI asm flag disable commited previously.
19722
19723 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
19724             Tobias Grosser  <tobi.grosser@amd.com>
19725             Jan Sjodin  <jan.sjodin@amd.com>
19726
19727         * graphite.c (scan_tree_for_params): On substractions negate
19728         all the coefficients of the term.
19729         (clast_to_gcc_expression_red): New.  Handle reduction expressions
19730         of more than two operands.
19731         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
19732         (get_vdef_before_scop): Handle also the case of default definitions.
19733
19734 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
19735
19736         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
19737         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
19738         Also use them when walking CALL_INSN_FUNCTION_USAGE.
19739
19740 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19741             Joey Ye  <joey.ye@intel.com>
19742
19743         PR middle-end/37843
19744         * cfgexpand.c (expand_stack_alignment): Don't update stack
19745         boundary nor check incoming stack boundary here.
19746         (gimple_expand_cfg): Update stack boundary and check incoming
19747         stack boundary here.
19748
19749 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
19750
19751         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
19752
19753 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
19754
19755         PR rtl-optimization/38245
19756         * calls.c (expand_call): Add stack arguments to
19757         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19758         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
19759         in regs and partially in memory or BLKmode arguments.
19760         (emit_library_call_value_1): Add stack arguments to
19761         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19762         ACCUMULATE_OUTGOING_ARGS).
19763         * dce.c: Include tm_p.h.
19764         (find_call_stack_args): New function.
19765         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
19766         argument.
19767         (mark_insn): Call find_call_stack_args for CALL_Ps.
19768         (prescan_insns_for_dce): Walk insns backwards in bb rather than
19769         forwards.  Allocate and free arg_stores bitmap if needed, pass it
19770         down to deletable_insn_p, don't mark stores set in arg_stores
19771         bitmap, clear the bitmap at the beginning of each bb.
19772         * Makefile.in (dce.o): Depend on $(TM_P_H).
19773
19774 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
19775
19776         PR target/22599
19777         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
19778         to make sure the insn is a conditional test (bug 22599).  Reformat a
19779         few long lines.
19780
19781 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
19782
19783         PR middle-end/38431
19784         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
19785         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
19786         (gloog): Do not call cleanup_tree_cfg.
19787         (graphite_transform_loops): Call cleanup_tree_cfg after all
19788         scops have been code generated.
19789
19790 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
19791         * doc/gty.texi (Invoking the garbage collector): Added new node
19792         and section documenting ggc_collect.
19793
19794 2009-01-14  Richard Guenther  <rguenther@suse.de>
19795
19796         PR tree-optimization/38826
19797         PR middle-end/38477
19798         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
19799         initialization notes only if we actually emitted a warning.
19800         (intra_create_variable_infos): Add constraints for a result decl
19801         that is passed by hidden reference.
19802         (build_pred_graph): Mark all related variables non-direct on
19803         address-taking.
19804
19805 2009-01-14  Nick Clifton  <nickc@redhat.com>
19806
19807         * ira-conflicts.c: Include addresses.h for the definition of
19808         base_reg_class.
19809         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
19810         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
19811
19812 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
19813
19814         PR target/38811
19815         * Makefile.in (ira-lives.o): Add except.h.
19816
19817         * ira-lives.c: Include except.h.
19818         (process_bb_node_lives): Process can_throw_internal.
19819
19820 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
19821
19822         PR rtl-optimization/38774
19823         * combine.c (simplify_set): When undoing cc_use change, don't do
19824         PUT_CODE on the newly created comparison, but instead put back the
19825         old comparison.
19826
19827 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
19828
19829         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
19830         values.  Remove duplicate arm8 entry.
19831
19832 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19833
19834         PR tree-optimization/38786
19835         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
19836         the SSA_NAME case of expand_scalar_variables_expr.
19837         Set the type of an expression to the type of its assign statement.
19838         (expand_scalar_variables_expr): Also gather the scalar computation
19839         used to index the memory access.  Do not pass loop_p.
19840         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
19841         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
19842         the gimple_stmt_iterator where it inserts new code.
19843         Do not pass loop_p.
19844         (copy_bb_and_scalar_dependences): Do not pass loop_p.
19845         (translate_clast): Update call to copy_bb_and_scalar_dependences.
19846
19847 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19848
19849         * graphite.h (debug_value): Removed.
19850         * graphite.c (debug_value): Removed.
19851
19852 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19853
19854         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
19855         ldrd/strd with two 32-bit instructions.
19856
19857 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19858
19859         * config/arm/arm.c (struct processors): Pass for speed down into
19860         cost helper functions.
19861         (const_ok_for_op): Handle COMPARE and inequality nodes.
19862         (arm_rtx_costs_1): Rewrite.
19863         (arm_size_rtx_costs): Update prototype.
19864         (arm_rtx_costs): Pass speed down to helper functions.
19865         (arm_slowmul_rtx_costs): Rework cost calculations.
19866         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
19867         (arm_9e_rtx_costs): Likewise.
19868
19869 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
19870
19871         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
19872         relocations of local symbols wider than UNITS_PER_WORD are not valid.
19873         (alpha_legitimize_address): Do not split local symbols wider than
19874         UNITS_PER_WORD into HIGH/LO_SUM parts.
19875
19876 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
19877
19878         PR bootstrap/38580
19879         * gcc.c (process_command): Replace call to execvp with calls
19880         to pex_one and exit.
19881
19882 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
19883
19884         PR target/29141
19885         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
19886         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
19887         variant for devices with 3-byte PC.
19888         (__tablejump_elpm__): New.
19889
19890 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19891
19892         PR c/32041
19893         * c-parser.c (c_parser_postfix_expression): Allow `->' in
19894         offsetof member-designator, handle it as `[0].'.
19895
19896 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19897
19898         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
19899         function when not using named sections on targets with named sections
19900         if branch distance is less than 262132.
19901
19902 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
19903
19904         * combine.c (combine_instructions):  Recompute
19905         optimize_this_for_speed_p  for each BB in the main combine loop.
19906
19907 2009-01-12  Tomas Bily  <tbily@suse.cz>
19908
19909         PR middlend/38385
19910         * tree-loop-distribution.c (prop_phis): New function.
19911         (generate_builtin): Call prop_phis.
19912         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
19913
19914 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19915
19916         PR tree-optimization/38807
19917         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
19918         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
19919
19920 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
19921
19922         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
19923         subreg of op0 to the original op0.
19924
19925 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
19926
19927         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
19928
19929 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
19930
19931         PR debug/7055
19932         * mips-tfile.c (parse_def): Fix parsing of def strings
19933         starting with digits.
19934
19935 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
19936
19937         PR target/38695
19938         * config/arm/arm.c (arm_is_long_call_p): Don't call
19939         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
19940
19941 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
19942
19943         * regrename.c (regrename_optimize): Fix dumping.
19944         (find_oldest_value_reg): Preserve REG_POINTER.
19945         (copy_hardreg_forward_1): Likewise.
19946
19947 2009-01-09  Diego Novillo  <dnovillo@google.com>
19948
19949         * gimple.h (struct gimple_statement_base) <uid>: Document
19950         the restrictions on its use.
19951         (gimple_uid): Tidy.
19952         (gimple_set_uid): Tidy.
19953
19954 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19955
19956         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
19957         zero guard even if align_bytes != 0 and count is smaller than
19958         size_needed.
19959
19960 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
19961
19962         PR rtl-optimization/38495
19963         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
19964         (add_range_and_copies_from_move_list): Print all added ranges.
19965         Add ranges to memory optimized destination.
19966
19967 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19968
19969         PR target/38686
19970         PR target/38708
19971         * config/i386/i386.c (override_options): Reject
19972         -mstringop-strategy=rep_8byte with -m32.
19973         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
19974         to 1.  Do count comparison against epilogue_size_needed at compile
19975         time even when count_exp was constant forced into register.  For
19976         size_needed don't jump to epilogue, instead just avoid aligning
19977         and invoke the body algorithm.  If need_zero_guard, add zero guard
19978         even if count is non-zero, but smaller than size_needed + number of
19979         bytes that could be stored for alignment.
19980         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
19981         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
19982         but smaller than size_needed + number of bytes that could be stored
19983         for alignment.  Compare size_needed with epilogue_size_needed instead
19984         of desired_align - align, don't adjust size_needed, pass
19985         epilogue_size_needed to the epilogue expanders.
19986
19987         PR c/35742
19988         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
19989
19990 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19991
19992         * pa.c (last_address): Change to unsigned.
19993         (update_total_code_bytes): Change argument to unsigned.  Don't
19994         check if insn addresses are set.
19995         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
19996         addresses are not set.
19997         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
19998
19999 2009-01-09  Nick Clifton  <nickc@redhat.com>
20000
20001         * config/sh/symbian.c: Replace uses of DECL_INLINE with
20002         DECL_DECLARED_INLINE_P.
20003
20004 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
20005
20006         PR middle-end/38347
20007         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
20008         GET_MODE (op0) in operand_subword_force calls.
20009
20010         PR middle-end/38771
20011         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
20012         fold_convert arg0 operands to TREE_TYPE (op0) first.
20013
20014 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
20015
20016         * params.def (ira-max-conflict-table-size): Decrease default value
20017         to 1000.
20018
20019 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
20020
20021         PR tree-optimization/37031
20022         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
20023         on parameter_set.
20024         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
20025         allocate it using gc instead of heap, use VEC_quick_push instead of
20026         VEC_safe_push.
20027         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
20028         instead of heap, use VEC_quick_push instead of VEC_safe_push.
20029         * tree-data-ref.h (struct access_matrix): Change matrix to gc
20030         allocated vector from heap allocated.
20031         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
20032         * tree-loop-linear.c (linear_transform_loops): Allocate nest
20033         vector only after perfect_loop_nest_depth call.
20034
20035 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
20036             Jan Sjodin  <jan.sjodin@amd.com>
20037
20038         PR tree-optimization/38559
20039         * graphite.c (debug_value, copy_constraint,
20040         swap_constraint_variables, scale_constraint_variable, ): New.
20041         (get_lower_bound, get_upper_bound): Removed.
20042         (graphite_trans_bb_strip_mine): Clean up this code that works
20043         only for constant number of iterations.  Fully copy upper and
20044         lower bound constraints, not only the constant part of them.
20045         * graphite.h (debug_value): Declared.
20046
20047 2009-01-08  Ira Rosen  <irar@il.ibm.com>
20048
20049         PR tree-optimization/37194
20050         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
20051         Don't add the cost of cost model guard in prologue to scalar
20052         outside cost in case of known number of iterations.
20053
20054 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
20055             Alan Modra  <amodra@bigpond.net.au>
20056
20057         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
20058         non-word-aligned REG+CONST addressing.
20059
20060 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
20061
20062         PR target/38706
20063         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
20064         free_after_compilation when outputting a thunk.
20065         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
20066         Do not call free_after_compilation here.
20067
20068 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
20069
20070         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
20071         (ix86_valid_target_attribute_inner_p): Ditto.
20072
20073 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
20074
20075         PR tree-optimization/38492
20076         PR tree-optimization/38498
20077         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
20078         * tree-chrec.h (scev_is_linear_expression): Declared.
20079         * graphite.c (graphite_cannot_represent_loop_niter): New.
20080         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
20081         (graphite_loop_normal_form): Use gcc_assert.
20082         (scan_tree_for_params): Use CASE_CONVERT.
20083         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
20084         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
20085         Use gcc_assert.  Discard scops that contain unhandled cases.
20086         (build_scop_conditions): Return a boolean status for unhandled cases.
20087         (strip_mine_profitable_p): Print the loop number, not its depth.
20088         (is_interchange_valid): Pass the depth of the loop nest, don't
20089         recompute it wrongly.
20090         (graphite_trans_bb_block): Same.
20091         (graphite_trans_bb_block): Print tentative of loop blocking.
20092         (graphite_trans_scop_block): Do not print that the loop has been
20093         blocked.
20094         (graphite_transform_loops): Do not handle scops that contain condition
20095         scalar phi nodes.
20096
20097 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
20098
20099         AVX Programming Reference (December, 2008)
20100         * config/i386/avxintrin.h (_mm256_stream_si256): New.
20101         (_mm256_stream_pd): Likewise.
20102         (_mm256_stream_ps): Likewise.
20103
20104         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
20105         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
20106         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
20107         (bdesc_special_args): Add __builtin_ia32_movntdq256,
20108         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
20109         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
20110         (ix86_expand_special_args_builtin): Likewise.
20111
20112         * config/i386/sse.md (AVXMODEDI): New.
20113         (avx_movnt<mode>): Likewise.
20114         (avx_movnt<mode>): Likewise.
20115         (<sse>_movnt<mode>): Remove AVX support.
20116         (sse2_movntv2di): Likewise.
20117
20118 2009-01-07  Richard Guenther  <rguenther@suse.de>
20119
20120         PR middle-end/38751
20121         * fold-const.c (extract_muldiv): Remove obsolete comment.
20122         (fold_plusminus_mult_expr): Undo MINUS_EXPR
20123         to PLUS_EXPR canonicalization for the canonicalization.
20124
20125 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
20126
20127         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
20128         hosted cross-compilers generating less efficient code.
20129
20130 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
20131
20132         * function.h (rtl_data): Add a dbr_scheduled_p field.
20133         * reorg.c (dbr_schedule): Set it.
20134         (gate_handle_delay_slots): Check it.
20135         * config/mips/mips.c (mips_base_delayed_branch): Delete.
20136         (mips_reorg): Check flag_delayed_branch instead of
20137         mips_base_delayed_branch.
20138         (mips_override_options): Don't set mips_base_delayed_branch
20139         or flag_delayed_branch.
20140
20141 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
20142
20143         PR rtl-optimization/38426.
20144         * ira.c (ira): Set current_function_is_leaf earlier.
20145
20146 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
20147
20148         PR rtl-optimization/38722
20149         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
20150         too early, only set a flag and modify after last possible
20151         undo_all point.
20152
20153 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
20154
20155         PR c/34252
20156         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
20157         * real.c (decimal_single_format): Correct values of emin and emax.
20158         (decimal_double_format): Ditto.
20159         (decimal_quad_format): Ditto.
20160         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
20161         computation of DECnn_MIN and DECnn_MAX for corrected values of
20162         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
20163         __DECnn_MIN__, and adjust its computation for the corrected value
20164         of emin.
20165
20166 2009-01-06  Jan Hubicka  <jh@suse.cz>
20167
20168         PR target/38744
20169         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
20170
20171 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
20172
20173         * doc/contrib.texi (Contributors): Slightly adjust the end note.
20174         Add Robert Clark to the list of testers.
20175
20176 2009-01-06  Jan Hubicka  <jh@suse.cz>
20177             Kai Tietz  <kai.tietz@onevision.com>
20178
20179         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
20180         * config/i386/i386.c (ix86_expand_call): Add clobbers.
20181
20182 2009-01-06  Jan Hubicka  <jh@suse.cz>
20183             Kai Tietz  <kai.tietz@onevision.com>
20184
20185         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
20186         for w64 ABI.
20187         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
20188         (ix86_nsaved_regs): Count only general purpose regs.
20189         (ix86_nsaved_sseregs): New.
20190         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
20191         to 16 for w64; compute padding and size of sse reg save area.
20192         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
20193         general purpose regs.
20194         (ix86_emit_save_sse_regs_using_mov): New.
20195         (ix86_expand_prologue): Save SSE regs if needed.
20196         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
20197         (ix86_emit_restore_sse_regs_using_mov): New.
20198         (ix86_expand_epilogue): Save SSE regs if needed.
20199
20200 2009-01-06  Jan Hubicka  <jh@suse.cz>
20201             Kai Tietz  <kai.tietz@onevision.com>
20202
20203         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
20204         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
20205         functions when accumulate outgoing args is off.
20206
20207 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
20208
20209         PR bootstrap/38742
20210         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
20211         before using pseudos_have_intersected_live_ranges_p.
20212
20213         * ira-int.h (ira_assert): Always define.
20214
20215 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
20216
20217         AVX Programming Reference (December, 2008)
20218         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
20219         (_mm256_permute2_pd): Likewise.
20220         (_mm_permute2_ps): Likewise.
20221         (_mm256_permute2_ps): Likewise.
20222         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
20223         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
20224
20225         * config/i386/i386.c (ix86_builtins): Remove
20226         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
20227         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
20228         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
20229         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
20230         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
20231         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
20232         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
20233         __builtin_ia32_vpermil2ps256.
20234         (ix86_init_mmx_sse_builtins): Updated.
20235         (ix86_expand_args_builtin): Likewise.
20236
20237 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20238
20239         * pa.c (output_call): Relocate non-jump insns in the delay slot of
20240         long absolute calls when generating PA 2.0 code.
20241
20242 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
20243
20244         PR rtl-optimization/38583
20245         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
20246
20247         * params.def (ira-max-conflict-table-size): New.
20248
20249         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
20250
20251         * ira.h (ira_conflicts_p): New external definition.
20252
20253         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
20254         table.  Report this.  Return result of building.
20255         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
20256         building conflict table.
20257
20258         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
20259         (ira_color): Use ira_conflicts_p.
20260
20261         * global.c: Include ira.h.
20262         (pseudo_for_reload_consideration_p, build_insn_chain): Use
20263         ira_conflicts_p.
20264
20265         * Makefile.in (global.o): Add ira.h.
20266
20267         * ira-build.c (mark_all_loops_for_removal,
20268         propagate_some_info_from_allocno): New.
20269         (remove_unnecessary_allocnos): Call
20270         propagate_some_info_from_allocno.
20271         (remove_low_level_allocnos): New.
20272         (remove_unnecessary_regions): Add parameter.  Call
20273         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
20274         parameter to remove_unnecessary_regions.
20275         (ira_build): Remove all regions but root if the conflict table was
20276         not built.  Update conflict hard regs for allocnos crossing calls.
20277
20278         * ira.c (ira_conflicts_p): New global.
20279         (ira): Define and use ira_conflicts_p.
20280
20281         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
20282         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
20283         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
20284
20285 2009-01-06  Ben Elliston  <bje@au.ibm.com>
20286
20287         * gengtype-lex.l (YY_NO_INPUT): Define.
20288
20289 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20290
20291         PR c/34911
20292         * c-common.c (handle_vector_size_attribute): Also reject
20293         BOOLEAN_TYPE types.
20294
20295 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
20296
20297         PR tree-optimization/38492
20298         * graphite.c (rename_map_elt, debug_rename_elt,
20299         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
20300         rename_map_elt_info, eq_rename_map_elts,
20301         get_new_name_from_old_name, bb_in_sese_p): Moved around.
20302         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
20303         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
20304         (sese_build_livein_liveouts): New.
20305         (new_sese, free_sese): New.
20306         (new_scop): Call new_sese.
20307         (free_scop): Call free_sese.
20308         (rename_variables_from_edge, rename_phis_end_scop): Removed.
20309         (register_old_new_names): Renamed register_old_and_new_names.
20310         (register_scop_liveout_renames, add_loop_exit_phis,
20311         insert_loop_close_phis, struct igp,
20312         default_liveout_before_guard, add_guard_exit_phis,
20313         insert_guard_phis, copy_renames): New.
20314         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
20315         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
20316         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
20317         (scop_adjust_phis_for_liveouts): New.
20318         (gloog): Call scop_adjust_phis_for_liveouts.
20319
20320         * graphite.h (struct sese): Documented.  Added fields liveout,
20321         num_ver and livein.
20322         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
20323         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
20324         (struct scop): Added field liveout_renames.
20325         (SCOP_LIVEOUT_RENAMES): New.
20326
20327 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
20328
20329         PR tree-optimization/38510
20330         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
20331         (translate_clast): Call recompute_all_dominators before
20332         graphite_verify.
20333         (gloog): Call recompute_all_dominators before graphite_verify.
20334
20335 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
20336             Jan Sjodin  <jan.sjodin@amd.com>
20337
20338         PR tree-optimization/38500
20339         * graphite.c (create_sese_edges): Call fix_loop_structure after
20340         splitting blocks.
20341
20342 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
20343
20344         * config.gcc: Add m32r*-*-rtems*.
20345         * config/m32r/rtems.h: New file.
20346
20347 2009-01-05  Ben Elliston  <bje@au.ibm.com>
20348
20349         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
20350         (.po.pox): Likewise.
20351         (po/gcc.pot): Likewise.
20352
20353 2009-01-04  David S. Miller  <davem@davemloft.net>
20354
20355         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
20356         (STARTING_FRAME_OFFSET): Always set to zero.
20357
20358 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
20359
20360         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
20361         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
20362         fixed-point types, and vectors of the same.
20363
20364 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
20365
20366         * config/mips/sync.md (*mb_barrier): Rename to...
20367         (*memory_barrier): ...this.
20368
20369 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
20370
20371         * doc/extend.texi (Function Attributes): Move @cindex after @item
20372         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
20373         and put in alphabetical order. Fix 'target' name and put in order.
20374         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
20375         typos.
20376
20377 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
20378
20379         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
20380         (memory_barrier): Expand as unspec instead of unspec_volatile.
20381         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20382         (*memory_barrier): Define as unspec instead of unspec_volatile.
20383         Use (match_dup 0) as input operand.
20384
20385         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
20386         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
20387         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
20388         scratch register.  Remove operand 1.
20389         (*stbar): Define as unspec instead of unspec_volatile.
20390         Use (match_dup 0) as input operand, remove (const_int 8).
20391         (*membar): Define as unspec instead of unspec_volatile.
20392         Use (match_dup 0) as input operand, remove input operand 2.
20393
20394         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
20395         (memory_barrier): Expand as unspec instead of unspec_volatile.
20396         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20397         (*memory_barrier): Define as unspec instead of unspec_volatile.
20398         Use (match_dup 0) as input operand.
20399
20400         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
20401         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20402         Set volatile flag on operand 0.
20403         (*memory_barrier): New insn pattern.
20404
20405         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
20406         insn operands.
20407         (*memory_barrier): Use (match_dup 0) as input operand.
20408
20409         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
20410         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20411         Set volatile flag on operand 0.
20412         (*mb_internal): New insn pattern.
20413
20414         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
20415
20416 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
20417
20418         PR middle-end/38586
20419         * function.c (struct temp_slot): Move to the section of the file
20420         that deals with temp slots.  Remove field 'address'.
20421         (temp_slot_address_table): New hash table of address -> temp slot.
20422         (struct temp_slot_address_entry): New struct, items for the table.
20423         (temp_slot_address_compute_hash, temp_slot_address_hash,
20424         temp_slot_address_eq, insert_temp_slot_address): Support functions
20425         for the new table.
20426         (find_temp_slot_from_address): Rewrite to use the new hash table.
20427         (remove_unused_temp_slot_addresses): Remove addresses of temp
20428         slots that have been made available.
20429         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
20430         worker function for remove_unused_temp_slot_addresses.
20431         (assign_stack_temp_for_type): Don't clear the temp slot address list.
20432         Add the temp slot address to the address -> temp slot map.
20433         (update_temp_slot_address): Update via insert_temp_slot_address.
20434         (free_temp_slots): Call remove_unused_temp_slot_addresses.
20435         (pop_temp_slots): Likewise.
20436         (init_temp_slots): Allocate the address -> temp slot map, or empty
20437         the map if it is already allocated.
20438         (prepare_function_start): Initialize temp slot processing.
20439
20440 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
20441
20442         PR middle-end/38584
20443         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
20444         Calculate the size of all stack vars assuming no packing of stack
20445         vars will happen, replacing a quadratic algorithm with a linear one.
20446
20447 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
20448
20449         PR target/38707
20450         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
20451         can't be used.
20452
20453 2009-01-03  Diego Novillo  <dnovillo@google.com>
20454
20455         * doc/contrib.texi: Update contributions.
20456
20457 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
20458
20459         PR c++/38705
20460         * builtins.c (fold_builtin_memory_op): Give up if either operand
20461         is volatile.  Set srctype or desttype to non-qualified version
20462         of the other type.
20463
20464         PR c/38700
20465         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
20466         and FUNCTION_DECLs.
20467
20468 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
20469
20470         PR rtl-optimization/35805
20471         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
20472         problem if fast dce is able to remove any instructions.
20473         * dce.c (dce_process_block): Fix dump message.
20474
20475 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
20476
20477         PR 33649
20478         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
20479
20480 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
20481
20482         PR middle-end/38690
20483         * tree-flow.h (op_code_prio, op_prio): New prototypes.
20484         * tree-pretty-print.c (op_code_prio): New function.
20485         (op_prio): No longer static.  Use op_code_prio.
20486         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
20487         Use op_prio and op_code_prio to determine if () should be
20488         printed around operand(s) or not.
20489
20490         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
20491         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
20492         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
20493         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
20494         pp_character instead of pp_string for single letter printing.
20495
20496 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
20497
20498         * doc/extend.texi: Fix '#pragma GCC option' typo.
20499
20500 2009-01-02  Richard Guenther  <rguenther@suse.de>
20501
20502         * doc/install.texi (--enable-checking): Mention different
20503         default for stage1.
20504         (--enable-stage1-checking): Document.
20505
20506 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
20507
20508         PR middle-end/30142
20509         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
20510         case to be an error.
20511
20512 2009-01-02  Ben Elliston  <bje@au.ibm.com>
20513
20514         * config/fp-bit.h (pack_d): Constify argument.
20515         * config/fp-bit.c (makenan): Constify return type. Remove casts.
20516         (isnan): Constify argument.
20517         (isinf): Likewise.
20518         (iszero): Likewise.
20519         (pack_d): Likewise.
20520         (_fpadd_parts): Constify return type.
20521         (_fpmul_parts): Likewise.
20522         (_fpdiv_parts): Likewise.
20523
20524 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
20525
20526         PR c/36489
20527         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
20528         warn about overwriting initializer with side-effects or
20529         -Woverride-init if !IMPLICIT.
20530         (output_init_element): Likewise.  Pass IMPLICIT down to
20531         add_pending_init.
20532         (process_init_element): Add IMPLICIT argument.  Pass it down
20533         to output_init_element.
20534         (push_init_element, pop_init_level, set_designator): Adjust
20535         process_init_element callers.
20536         (set_nonincremental_init, set_nonincremental_init_from_string):
20537         Adjust add_pending_init callers.
20538         (output_pending_init_elements): Adjust output_init_element callers.
20539         * c-tree.h (process_init_element): Adjust prototype.
20540         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
20541         process_init_element callers.
20542
20543 \f
20544 Copyright (C) 2009 Free Software Foundation, Inc.
20545
20546 Copying and distribution of this file, with or without modification,
20547 are permitted in any medium without royalty provided the copyright
20548 notice and this notice are preserved.